@font-face {
    font-family: 'SuperClarendon';
    src: url('/assets/SuperClarendon.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
/* Bad Blocks by Robert Cortez (tinylittlesparks.com), CC BY-NC-ND 2.5 */
@font-face {
    font-family: 'BadBlocks';
    src: url('/assets/BadBlocksTT.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Nimbus';
    src: url('/assets/NimbusSanL-Reg.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
/* Reset and base styles */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: black;
    color: #fff4e7;
    font-family: 'SuperClarendon', Arial, sans-serif;
}

#player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

#hover-blocker {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
   background: linear-gradient(to bottom, 
        rgba(0,0,0,0.8) 0%,
        rgba(0,0,0,0.6) 5%,
        rgba(0,0,0,0) 20%,
        transparent 100%
    );
    pointer-events: auto;
}

.overlay {
    position: fixed;
    z-index: 3;
}

/* Header styles */
.header {
    position: fixed;
    top: 10px;
    left: 27px;
    right: 20px;
    z-index: 1000;
}

/* Logo and artist section */
.logo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.logo-and-artist {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Top buttons container */
.top-buttons {
    display: flex;
    gap: 13px;
    align-items: center;
}

.icon-button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.2s;
}

.icon-button:hover {
    opacity: 1;
}

.icon-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Hamburger menu styles */
#hamburger-button {
    position: relative;
    z-index: 1001;
}

#hamburger-button .hamburger-icon,
#hamburger-button .hamburger-icon-open {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#hamburger-button .hamburger-icon-open {
    opacity: 0;
    transform: rotate(-90deg);
}

#hamburger-button.open .hamburger-icon {
    opacity: 0;
    transform: rotate(90deg);
}

#hamburger-button.open .hamburger-icon-open {
    opacity: 1;
    transform: rotate(0);
}

.menu-overlay {
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    max-height: 0;
    z-index: 999;
    transition: max-height 0.3s ease;
    overflow: hidden;
    pointer-events: none;
    padding-right: 10px;
}

.menu-overlay.open {
    max-height: calc(100vh - 90px);
    pointer-events: auto;
}

/* Desktop menu content panels */
.menu-content-panel {
    position: fixed;
    right: 330px;
    width: 500px;
    max-width: calc(100vw - 360px);
    background: var(--panel-blue);
    padding: 0;
    border-radius: 8px 0 8px 8px;
    font-family: 'Nimbus', Arial, sans-serif;
    font-size: 16px;
    color: #fff4e7;
    line-height: 1.4;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 6000;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-sizing: border-box;
}

/* Narrow width for list-style content */
.menu-content-panel.list-style {
    width: fit-content;
    min-width: 200px;
    max-width: 350px;
}

.menu-content-panel.list-style .content-wrapper {
    text-align: left;
}

.menu-content-panel .content-wrapper {
    position: relative;
    padding: 14px;
    box-sizing: border-box;
    text-align: justify;
}

.menu-content-panel .scroll-bar {
    width: 100%;
    height: 30px;
    background: inherit;
    position: sticky;
    z-index: 1600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.menu-content-panel .scroll-bar.top {
    top: 0;
    background: linear-gradient(to bottom, var(--panel-blue) 0%, rgba(60,121,176,0.9) 60%, rgba(60,121,176,0) 100%);
}

.menu-content-panel .scroll-bar.bottom {
    bottom: 0;
    background: linear-gradient(to top, var(--panel-blue) 0%, rgba(60,121,176,0.9) 60%, rgba(60,121,176,0) 100%);
}

.menu-content-panel .scroll-bar button {
    background: transparent;
    border: none;
    color: #ffffff;
    width: 34px;
    height: 24px;
    font-size: 18px;
    line-height: 24px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    visibility: hidden;
}

.menu-content-panel .scroll-bar.visible button {
    visibility: visible;
}

.menu-content-panel .scroll-bar:not(.visible) {
    display: none;
}

.menu-content-panel::-webkit-scrollbar {
    display: none;
}

.menu-content-panel.visible {
    opacity: 1;
    visibility: visible;
}

.menu-content-panel a {
    color: #fff4e7;
}

/* Hide desktop panels on mobile */
@media (max-width: 768px) {
    .menu-content-panel {
        display: none;
    }
}

.menu {
    text-align: right;
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu ul li {
    margin: 0;
}

.menu ul li {
  position: relative;
}

.menu ul li a {
  color: #fff4e7;
  text-decoration: none;
  display: inline-block;
}

.menu ul li a span {
  font-family: 'SuperClarendon', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  background: black;
  padding: 1px 6px 3px;
  letter-spacing: normal;
  display: inline-block;
  transition: background-color 0.2s, transform 0.2s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Desktop hover state */
@media (min-width: 769px) {
  .menu ul li {
    position: relative;
  }
  
  .menu ul li a {
    position: relative;
    display: inline-block;
  }
  
  .menu ul li a:hover span {
    background: var(--panel-blue);
  }
  
  .menu ul li a.active::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 0;
    bottom: 0;
    width: 250px;
    background: var(--panel-blue);
    pointer-events: none;
    z-index: 900;
  }
  
  .menu ul li a.active span {
    background: var(--panel-blue);
    position: relative;
    z-index: 900;
  }
}

/* Mobile hover state */
@media (max-width: 768px) {
  .menu ul li a.active span {
    transform: scale(1.05);
  }
}

/* Fix for Mac font rendering - vertically center text better */
@supports (-webkit-backdrop-filter: blur(1px)) {
  .menu ul li a span {
    padding: 2px 6px 1px;
    line-height: 1.4;
  }
}

.menu ul li a:hover span {
  /* background change kept above in media query; transform now limited to inactive items */
}
/* Hover scale only for inactive items to preserve top alignment when panel is visible */
@media (min-width: 769px) {
  .menu ul li a:not(.active):hover span {
    transform: scale(1.05);
  }
  /* Prevent scaling on active item (panel open) to keep top alignment */
  .menu ul li a.active:hover span {
    transform: none;
  }
}

#artwatch-logo {
    width: 140px;
    height: auto;
    max-width: 100%;
}

.logo-container {
    display: block;
}

.artist-section {
    position: relative;
    display: inline-block;
}

.artist-button {
    background: rgba(0, 0, 0, 1);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s;
    overflow: hidden;
    display: inline-block;
}

.artist-button:hover {
    transform: scale(1.05);
}

.artist-button:hover .artist-button-text {
    transform: none;
}

.artist-button.active {
    border-radius: 8px 8px 0 0;
    transform: none;
}

.artist-info.visible + .artist-button {
    border-radius: 8px 8px 0 0;
    transform: none;
}

.artist-button-text {
    text-align: center;
    display: block;
    padding: 1px 9px 3px;
    background: rgba(0, 0, 0, 1);
    transition: transform 0.2s;
    font-family: 'SuperClarendon', Arial, sans-serif;
    color: #fff4e7;
  font-size: 16px; /* Fixed malformed value */
    line-height: 1.4;
}

.artist-info  {
    width: 500px;
    max-width: calc(100vw - 40px);
    max-height: 500px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: absolute;
    z-index: 100;
    left: 0;
    background: rgba(0, 0, 0, 1);
    padding: 14px;
    font-size: 13px;
    margin-top: 2px;
    border-radius: 0 8px 8px 8px;
    opacity: 0;
    transition: opacity 0.3s;
    display: none;
    font-family: 'Nimbus', Arial, sans-serif !important;
    color: #fff4e7;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Narrow width for list-style content */
.artist-info.list-style {
    width: fit-content;
    min-width: 200px;
    max-width: 350px;
}

.artist-info.list-style .content-wrapper {
    text-align: left;
}

.artist-info::-webkit-scrollbar {
    display: none;
}

.artist-info.visible {
    opacity: 1;
    display: block;
    text-align: justify;
}


/* New bar-based arrows */
.artist-info .scroll-bar { 
  width: 100%;
  height: 30px; /* constant reserved space */
  background: inherit; /* base color; overridden by directional gradients */
  position: sticky;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  cursor: pointer; /* whole bar clickable */
}
.artist-info.panel-mode .scroll-bar { background: inherit; }
.artist-info .scroll-bar.top { top: 0; background: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.9) 60%, rgba(0,0,0,0) 100%); }
.artist-info.panel-mode .scroll-bar.top { background: linear-gradient(to bottom, var(--panel-blue) 0%, rgba(60,121,176,0.9) 60%, rgba(60,121,176,0) 100%); }
.artist-info .scroll-bar.bottom { bottom: 0; background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.9) 60%, rgba(0,0,0,0) 100%); }
.artist-info.panel-mode .scroll-bar.bottom { background: linear-gradient(to top, var(--panel-blue) 0%, rgba(60,121,176,0.9) 60%, rgba(60,121,176,0) 100%); }
.artist-info .scroll-bar button { 
  background: transparent;
  border: none;
  color: #ffffff;
  width: 34px;
  height: 24px;
  font-size: 18px;
  line-height: 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  visibility: hidden; /* hidden by default */
}
.artist-info .scroll-bar { outline: none; }
.artist-info .scroll-bar:focus { outline: none; }
.artist-info .scroll-bar:focus-visible { 
  outline: 2px solid rgba(255,255,255,1);
  outline-offset: -2px;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.25);
}
.artist-info.panel-mode .scroll-bar:focus-visible { outline-color: #ffffff; box-shadow: 0 0 0 2px rgba(0,0,0,0.25); }
.artist-info .scroll-bar.visible button { visibility: visible; }
.artist-info .content-wrapper { position: relative; padding: 14px; box-sizing: border-box; }
.artist-info.panel-mode .content-wrapper { padding: 14px; box-sizing: border-box; }

.artist-info .content-wrapper a { color: #fff4e7; }
.artist-info .scroll-bar:not(.visible) {
  display: none;
}

.artist-info .rotation-debug-block {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: left;
  font-size: 11px;
  line-height: 1.45;
  color: #d7ebff;
}

.artist-info .rotation-debug-title {
  margin-bottom: 6px;
  font-weight: 700;
  color: #ffffff;
}

.artist-info .rotation-debug-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 4px;
}

.artist-info .rotation-debug-label {
  min-width: 56px;
  color: #9fd0ff;
  font-weight: 700;
}

.artist-info .rotation-debug-value {
  color: #ffffff;
  word-break: break-word;
}

/* About mode color variant */
:root { --panel-blue: #3c79b0; }
.artist-button.panel-mode .artist-button-text {
  background: var(--panel-blue);
}
.artist-info.panel-mode {
  background: var(--panel-blue);
  padding: 0; /* remove outer padding so scroll buttons align flush */
}
.artist-info.with-bars { padding: 0; }
.artist-info.with-bars .content-wrapper { padding: 14px; }
/* Ensure padding is always removed when content-wrapper exists */
.artist-info:has(.content-wrapper) { padding: 0; }

/* Smooth height adjustments */
.artist-info.height-transition {
  transition: height 0.25s ease, max-height 0.25s ease;
}


.donate-container {
    position: fixed;
    bottom: 30px;
    left: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    z-index: 1000;
}

.donate-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.donate-text {
    font-family: 'SuperClarendon', Arial, sans-serif;
    color: #fff4e7;
    text-align: left;
    line-height: 1.5;
    font-size: 16px;
    background: rgba(0, 0, 0, 1);
    padding: 1px 9px 3px;
}

/* Shared font styling for consistent text appearance */
.shared-text-style {
    font-family: 'SuperClarendon', Arial, sans-serif;
    color: #fff4e7;
    text-align: left;
    line-height: 1.4;
    font-size: 16px;
}

.donate-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

.donate-button {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    text-decoration: none;
}

.donate-button:hover {
    transform: scale(1.1);
}

.donate-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Donation syringe (built and positioned by scripts/donation.js).
   --ds-unit: pixels per SVG unit; --ds-anchor: plunger offset at which the handle lines up with "today's artist" */
.donation-syringe {
    --ds-unit: 1px;
    --ds-anchor: 59;
    pointer-events: none;
}

.donation-syringe svg {
    display: block;
    width: calc(300 * var(--ds-unit));
    height: calc(95 * var(--ds-unit));
    overflow: visible;
}

.donation-syringe .ds-cream { fill: #fff4e8; }
.donation-syringe .ds-red { fill: #ed1c24; }
.donation-syringe .ds-glass {
    fill: #3f7bb0;
    stroke: #fff4e8;
    stroke-width: 3.1px;
    stroke-miterlimit: 10;
}

/* Timing is set per run by donation.js (constant speed until the total is fully written) */
.donation-syringe .ds-plunger {
    transition: transform 1s linear;
}

.donation-syringe .ds-label {
    font-family: 'SuperClarendon', Arial, sans-serif;
    font-size: 8.2px;
    letter-spacing: 0.05em;
    fill: #fff4e8;
}

.donation-syringe .ds-amount {
    font-family: 'BadBlocks', 'Arial Black', sans-serif;
    font-size: 34.5px;
}

.donation-syringe .ds-last { fill: #fff4e8; }
.donation-syringe .ds-total { fill: #ed1c24; }
.donation-syringe .ds-measure { visibility: hidden; }

/* Each character of the total starts flattened (its strokes look thin) and grows to full height */
.donation-syringe .ds-char {
    transform-box: fill-box;
    transform-origin: 50% 33%;
    animation: ds-grow 280ms linear backwards;
}

@keyframes ds-grow {
    from { transform: scaleY(0.63); }
    to   { transform: scaleY(1); }
}

/* The "just donated" amount: in a bit big, dips smaller, settles at actual size */
.donation-syringe .ds-pop {
    transform-box: fill-box;
    transform-origin: center;
    animation: ds-pop 200ms linear;
}

@keyframes ds-pop {
    0%   { transform: scale(1.085); }
    25%  { transform: scale(1); }
    50%  { transform: scale(0.906); }
    75%  { transform: scale(0.95); }
    100% { transform: scale(1); }
}

/* Phones: relatively larger so it stays readable */
@media (max-width: 768px), (max-device-width: 768px), ((max-width: 1024px) and (pointer: coarse)) {
    .donation-syringe {
        --ds-unit: 0.8px;
        --ds-anchor: 37;
    }
}

.mute-button {
    font-family: 'SuperClarendon', Arial, sans-serif;
    font-size: 12px;
    color: #fff4e7;
    background: rgba(0, 0, 0, 1);
    padding: 8px 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 10px;
    text-align: center;
}

.mute-button:hover {
    transform: scale(1.05);
}

/* Debug overlay styles */
.debug-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 30%;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    font-family: monospace;
    font-size: 0.9vw;
    overflow-y: auto;
    z-index: 1000;
    padding: 0.5vw;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.5);
}

  .debug-summary {
    margin-bottom: 0.75vw;
    padding-bottom: 0.6vw;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .debug-summary-title {
    font-weight: 700;
    margin-bottom: 0.35vw;
  }

  .debug-summary-section-title {
    margin-top: 0.65vw;
    margin-bottom: 0.35vw;
    color: #9fd0ff;
    font-weight: 700;
  }

  .debug-summary-row {
    display: flex;
    gap: 0.8vw;
    align-items: baseline;
    margin-bottom: 0.15vw;
  }

  .debug-summary-label {
    min-width: 8ch;
    color: #9fd0ff;
    font-weight: 700;
  }

  .debug-summary-value {
    color: #ffffff;
    word-break: break-word;
  }

  .debug-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.2vw 1vw;
  }

  .debug-preview-row {
    display: flex;
    gap: 0.65vw;
    align-items: baseline;
    padding: 0.08vw 0;
  }

  .debug-preview-date {
    min-width: 10ch;
    color: #9fd0ff;
  }

  .debug-preview-order {
    min-width: 8ch;
    color: #d7ebff;
  }

  .debug-preview-artist {
    color: #ffffff;
    word-break: break-word;
  }

.debug-messages {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Mobile autoplay prompt styles */
#mobile-play-prompt {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    font-family: 'SuperClarendon', Arial, sans-serif;
    color: #fff4e7;
    text-align: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

#mobile-play-prompt .prompt-content {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive adjustments for smaller screens */

/* Tablet styles */
@media (max-width: 1024px) {
  .header {
    top: 15px;
    left: 27px;
    right: 20px;
  }
  
  #artwatch-logo {
    width: 120px;
    min-width: 100px;
  }
  
  .artist-button-text {
    font-size: 16px;
    padding: 2px 10px 4px;
  }
  
  .icon-button {
    width: 40px;
    height: 40px;
  }
  
  .menu ul li a span {
    font-size: 16px;
    padding: 2px 8px 3px;
  }
  
  /* Mac font rendering fix for tablet */
  @supports (-webkit-backdrop-filter: blur(1px)) {
    .menu ul li a span {
      padding: 3px 8px 2px;
      line-height: 1.4;
    }
  }
  
  .donate-container {
    bottom: 30px;
    left: 40px;
  }
  
  .donate-text {
    font-size: 16px;
    padding: 2px 10px 4px;
  }
  
  .donate-button {
    width: 80px;
    height: 80px;
  }
}

/* Mobile styles - includes high-resolution mobile devices */
@media (max-width: 768px), (max-device-width: 768px), ((max-width: 1024px) and (pointer: coarse)) {
  .header {
    top: 12px;
    left: 27px;
    right: 15px;
  }
  
  .logo-row {
    gap: 15px;
  }
  
  .logo-and-artist {
    gap: 15px;
  }
  
  #artwatch-logo {
    width: 90px;
    min-width: 75px;
  }
  
  .artist-button-text {
    font-size: 14px;
    padding: 1px 8px 3px;
  }
  
  .artist-info  {
    font-size: 14px;
    width: 500px;
    max-width: calc(100vw - 145px);
    max-height: 500px;
  }


  .icon-button {
    width: 40px;
    height: 40px;
  }
  
  .menu ul li a span {
    font-size: 14px;
    padding: 1px 6px 2px;
  }
  
  /* Mac font rendering fix for mobile */
  @supports (-webkit-backdrop-filter: blur(1px)) {
    .menu ul li a span {
      padding: 2px 6px 1px;
      line-height: 1.4;
    }
  }
  
  .donate-container {
    bottom: 15px;
    left: 20px;
  }
  
  .donate-text {
    font-size: 14px;
    padding: 1px 8px 3px;
  }
  
  .donate-button {
    width: 65px;
    height: 65px;
  }
}

/* Small mobile styles */
@media (max-width: 480px), (max-device-width: 480px) {
  .header {
    top: 8px;
    left: 7px;
    right: 10px;
  }
  
  .logo-row {
    gap: 10px;
  }
  
  .logo-and-artist {
    gap: 10px;
  }
  
  #artwatch-logo {
    width: 90px;
    min-width: 75px;
  }
  
  .artist-button-text {
    font-size: 14px;
    padding: 1px 6px 2px;
  }

  .artist-info  {
    font-size: 12px;
    width: 380px;
    max-width: calc(100vw - 143px);
    max-height: 500px;
  }

  .top-buttons {
    gap: 3px;
  }
  
  .icon-button {
    width: 40px;
    height: 40px;
  }
  
  .menu ul li a span {
    font-size: 14px;
    padding: 1px 5px 2px;
  }
  
  /* Mac font rendering fix for small mobile */
  @supports (-webkit-backdrop-filter: blur(1px)) {
    .menu ul li a span {
      padding: 2px 5px 1px;
      line-height: 1.4;
    }
  }
  
  .donate-container {
    bottom: 15px;
    left: 20x;
  }
  
  .donate-text {
    font-size: 12px;
    padding: 1px 6px 2px;
  }
  
  .donate-button {
    width: 65px;
    height: 65px;
  }


}

/* Landscape orientation adjustments for mobile */
@media ((max-width: 768px) and (orientation: landscape)), ((max-device-width: 768px) and (orientation: landscape)), ((max-width: 1024px) and (pointer: coarse) and (orientation: landscape)) {
    .header {
        top: 8px;
        left: 7px;
        right: 12px;
    }
    
    #artwatch-logo {
        width: 90px;
        min-width: 75px;
    }
    
    .artist-button-text {
        font-size: 14px;
        padding: 1px 6px 2px;
    }
    
    .artist-info  {
        font-size: 12px;
        width: 500px;
        max-width: calc(100vw - 145px);
        max-height: 300px;
  }


    .icon-button {
        width: 40px;
        height: 40px;
    }
    
  .menu ul li a span {
        font-size: 14px;
        padding: 1px 5px 2px;
    }
    
    /* Mac font rendering fix for landscape */
    @supports (-webkit-backdrop-filter: blur(1px)) {
    .menu ul li a span {
            padding: 2px 5px 1px;
            line-height: 1.4;
        }
    }
    
    .donate-container {
        bottom: 15px;
        left: 20px;
    }
    
    .donate-text {
        font-size: 12px;
        padding: 1px 6px 2px;
    }
    
    .donate-button {
        width: 65px;
        height: 65px;
    }




}

/* Coming Soon image responsive adjustments */
#comingsoon-image {
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url('/assets/comingsoon.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Mobile portrait: use portrait image */
@media ((max-width: 768px) and (orientation: portrait)), ((max-device-width: 768px) and (orientation: portrait)), ((max-width: 1024px) and (pointer: coarse) and (orientation: portrait)) {
    #comingsoon-image {
        background-image: url('/assets/comingsoon-portrait.jpg');
        background-size: cover;
    }
}

/* Error message styles */
.error-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    font-family: 'SuperClarendon', Arial, sans-serif;
    color: #fff4e7;
    text-align: center;
    font-size: 2vw;
}


/* -------------------------------------------------- */
/* Accessible focus styles: show only on keyboard nav */
/* We suppress the default outline on mouse click but  */
/* keep a visible indicator for keyboard users via     */
/* :focus-visible (supported in modern browsers).      */
/* -------------------------------------------------- */
#hamburger-button { outline: none; }
#hamburger-button:focus { outline: none; }
#hamburger-button:focus:not(:focus-visible) { outline: none; }
/* Custom focus ring appears only when navigating with keyboard */
#hamburger-button:focus-visible {
  outline: 2px solid #fff4e7;
  outline-offset: 3px;
  border-radius: 6px;
}

/* Reuse for other icon buttons if desired */
.icon-button:focus { outline: none; }
.icon-button:focus:not(:focus-visible) { outline: none; }
.icon-button:focus-visible {
  outline: 2px solid #fff4e7;
  outline-offset: 3px;
  border-radius: 6px;
}