:root {
  color-scheme: dark;
  --gold-1: #f7c94c;
  --gold-2: #d79a1f;
  --gold-3: #8b5e13;
  --ink: #241707;
  --glass: rgba(255, 244, 210, 0.18);
  --glass-strong: rgba(255, 239, 196, 0.34);
  --cream: #fff1c4;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #d89b22;
  color: var(--cream);
}

button,
input {
  font: inherit;
}

.stage {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.site-footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 4;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.58rem, 1.7vw, 0.78rem);
  letter-spacing: 0.16em;
  color: rgba(76, 47, 8, 0.48);
  text-shadow: 0 1px 0 rgba(255, 244, 186, 0.16);
  pointer-events: none;
}

.gold-field {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 249, 188, 0.7), transparent 24rem),
    radial-gradient(circle at 20% 80%, rgba(255, 224, 150, 0.2), transparent 24rem),
    radial-gradient(circle at 82% 70%, rgba(255, 255, 255, 0.2), transparent 18rem),
    linear-gradient(145deg, #fbd35e 0%, #eab73c 43%, #c57a19 100%);
}

.gold-field::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    conic-gradient(from 110deg at 50% 50%, transparent, rgba(255, 247, 197, 0.28), transparent 21%, rgba(115, 63, 3, 0.15), transparent 46%),
    repeating-radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
  animation: slowTurn 26s linear infinite;
  opacity: 0.85;
}

.gold-field::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 28%, rgba(255, 244, 192, 0.12) 60%, transparent);
  mix-blend-mode: soft-light;
  animation: shimmer 8s ease-in-out infinite alternate;
}

.light-rings {
  position: fixed;
  inset: 8% 10%;
  z-index: -2;
  border-radius: 50%;
  border: 1px solid rgba(255, 245, 187, 0.28);
  box-shadow: inset 0 0 70px rgba(255, 246, 194, 0.18), 0 0 90px rgba(255, 219, 132, 0.14);
  transform: rotate(-8deg);
}

.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(58px, 9vw, 100px) clamp(12px, 2vw, 24px) 0;
  pointer-events: none;
}

.line-menu,
.language,
.nav-menu {
  pointer-events: auto;
}

.line-menu {
  display: grid;
  gap: 4px;
  width: 42px;
  padding: 9px 6px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.line-menu span {
  display: block;
  height: 1.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(76, 47, 8, 0.22), rgba(76, 47, 8, 0.82), rgba(76, 47, 8, 0.22), transparent);
  box-shadow: 0 0 6px rgba(255, 232, 174, 0.22);
  transform-origin: center;
  transition: transform 260ms ease, opacity 260ms ease;
}

.line-menu.open span:nth-child(1) {
  transform: translateY(5.5px) rotate(35deg);
}

.line-menu.open span:nth-child(2) {
  opacity: 0;
}

.line-menu.open span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-35deg);
}

.nav-menu {
  position: absolute;
  top: clamp(92px, 13vw, 140px);
  right: clamp(12px, 2vw, 24px);
  display: grid;
  gap: 3px;
  min-width: 128px;
  padding: 4px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  opacity: 0;
  transform: translateY(-14px);
  visibility: hidden;
  filter: blur(1.5px);
  transition: opacity 1600ms ease, transform 1600ms cubic-bezier(0.16, 0.82, 0.22, 1), filter 1600ms ease, visibility 1600ms ease;
  text-align: right;
}

.nav-menu.open {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  visibility: visible;
}

.nav-menu a {
  position: relative;
  display: block;
  padding: 5px 2px;
  color: rgba(76, 47, 8, 0.68);
  text-decoration: none;
  text-transform: lowercase;
  font-family: "Iowan Old Style", "Palatino", "Cormorant Garamond", Georgia, serif;
  font-weight: 450;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-shadow: 0 1px 0 rgba(255, 244, 186, 0.14);
  opacity: 0;
  transform: translateX(8px);
  filter: blur(0.8px);
  transition: color 700ms ease, opacity 1500ms ease, transform 1500ms cubic-bezier(0.16, 0.82, 0.22, 1), filter 1500ms ease, text-shadow 700ms ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(76, 47, 8, 0.42), transparent);
  transform: scaleX(0);
  transition: transform 420ms ease;
}

.nav-menu.open a {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.nav-menu.open a:nth-child(2) { transition-delay: 45ms; }
.nav-menu.open a:nth-child(3) { transition-delay: 90ms; }
.nav-menu.open a:nth-child(4) { transition-delay: 135ms; }
.nav-menu.open a:nth-child(5) { transition-delay: 180ms; }
.nav-menu.open a:nth-child(6) { transition-delay: 225ms; }

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after {
  transform: scaleX(1);
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: rgba(76, 47, 8, 0.76);
  text-shadow: 0 0 12px rgba(255, 229, 157, 0.28);
}

.language {
  position: static;
  display: flex;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid rgba(255, 236, 190, 0.22);
  background: rgba(255, 235, 186, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 249, 222, 0.16), 0 0 18px rgba(104, 64, 8, 0.08);
  backdrop-filter: blur(10px);
  transition: border-color 420ms ease, background 420ms ease, box-shadow 420ms ease, opacity 420ms ease;
}

.language button {
  min-width: 34px;
  min-height: 26px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 239, 201, 0.62);
  background: transparent;
  cursor: pointer;
  font-family: "Didot", "Bodoni 72", Georgia, serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  transition: color 420ms ease, background 420ms ease, box-shadow 420ms ease, transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.language button.active {
  color: rgba(76, 47, 9, 0.86);
  background: linear-gradient(180deg, rgba(255, 241, 203, 0.44), rgba(230, 185, 96, 0.2));
  box-shadow: 0 0 18px rgba(255, 221, 139, 0.32), inset 0 1px 0 rgba(255, 250, 226, 0.34);
  transform: scale(1.04);
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-rows: minmax(96px, 17svh) minmax(228px, 31svh) minmax(94px, 13svh) minmax(28px, 4svh) auto;
  justify-items: center;
  align-items: center;
  padding: clamp(24px, 4vw, 42px) 20px 16px;
}

.wordmark-wrap {
  position: relative;
  width: min(78vw, 820px);
  aspect-ratio: 1843 / 465;
  align-self: start;
  margin-top: -6px;
}

.wordmark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wordmark-draw {
  opacity: 0;
  pointer-events: none;
}

.wordmark-writing {
  opacity: 1;
}

.symbol-shell {
  position: relative;
  width: min(54svh, 50vw, 540px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-self: start;
  margin-top: -8px;
}

.symbol-aura {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 245, 174, 0.32), transparent 62%);
  box-shadow: 0 0 80px rgba(255, 249, 199, 0.26), inset 0 0 50px rgba(255, 218, 134, 0.1);
  animation: breathe 5.5s ease-in-out infinite;
}

.symbol {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 32px rgba(104, 55, 0, 0.22)) drop-shadow(0 0 18px rgba(255, 216, 132, 0.12));
}

.playlist-wheel {
  position: relative;
  align-self: start;
  min-height: 128px;
  width: min(92vw, 620px);
  perspective: 400px;
  margin-top: 44px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  touch-action: none;
  user-select: none;
  cursor: grab;
}

.playlist-wheel.dragging {
  cursor: grabbing;
}

.wheel-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(76, 47, 8, 0.54);
  cursor: pointer;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 3.1vw, 3rem);
  letter-spacing: 0.13em;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 244, 186, 0.3);
  transform: translate(-50%, calc(-50% + var(--wheel-y, 0px))) scale(var(--wheel-scale, 1)) rotateX(var(--wheel-rotate, 0deg));
  transform-origin: center;
  transition: opacity 120ms linear, color 120ms linear, filter 120ms linear;
  white-space: nowrap;
}

.wheel-btn.active {
  color: rgba(76, 47, 8, 0.78);
  filter: drop-shadow(0 0 17px rgba(255, 245, 188, 0.38));
}

.wheel-btn.mid {
  opacity: 0.68;
}

.wheel-btn.ghost {
  opacity: 0.42;
}

.wheel-btn.far {
  opacity: 0.22;
}

.now-playing {
  min-height: 24px;
  display: grid;
  justify-items: center;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 300ms ease, transform 300ms ease;
  color: rgba(76, 47, 8, 0.58);
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 244, 186, 0.18);
  margin-top: 34px;
}

.now-playing.live {
  opacity: 1;
  transform: translateY(0);
}

.now-playing strong {
  max-width: min(88vw, 560px);
  font-family: "Iowan Old Style", "Palatino", "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  font-size: clamp(0.66rem, 1.05vw, 0.82rem);
  letter-spacing: 0.07em;
  color: rgba(76, 47, 8, 0.58);
}

.console {
  display: grid;
  align-items: center;
  justify-items: center;
  justify-content: center;
  gap: 0;
  width: min(86vw, 420px);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  align-self: start;
  margin-top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.play-button {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(255, 244, 212, 0.32);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 242, 0.78), rgba(255, 239, 194, 0.3) 25%, rgba(255, 220, 140, 0.12) 55%, rgba(143, 91, 18, 0.12) 78%),
    conic-gradient(from 130deg, rgba(255, 246, 215, 0.12), rgba(255, 214, 126, 0.34), rgba(255, 246, 215, 0.12), rgba(164, 105, 22, 0.18), rgba(255, 246, 215, 0.12));
  box-shadow: 0 0 36px rgba(255, 220, 132, 0.5), 0 16px 34px rgba(86, 52, 7, 0.22), inset 0 1px 6px rgba(255, 255, 238, 0.54), inset 0 -10px 18px rgba(127, 79, 10, 0.08);
  cursor: pointer;
  overflow: hidden;
  color: rgba(255, 247, 220, 0.92);
  color: rgba(76, 47, 8, 0.78);
  text-transform: lowercase;
  font-family: "Iowan Old Style", "Palatino", "Cormorant Garamond", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-shadow: 0 1px 0 rgba(255, 244, 186, 0.2), 0 0 12px rgba(255, 229, 157, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  animation: buttonBreath 4s ease-in-out infinite;
}

.play-button::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 28%, rgba(255, 255, 244, 0.32), transparent 36%), linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 230, 165, 0.04));
  box-shadow: inset 0 1px 5px rgba(255, 255, 245, 0.34), inset 0 -8px 16px rgba(130, 82, 14, 0.08);
}

.play-button::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 238, 0.42) 45%, transparent 62%);
  transform: translateX(-46%) rotate(8deg);
  animation: glassSweep 5.2s ease-in-out infinite;
}

.button-mandala {
  position: absolute;
  inset: 3px;
  z-index: 0;
  border-radius: 50%;
  background: url("assets/button-mandala.png") center / contain no-repeat;
  opacity: 0.56;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 10px rgba(255, 228, 150, 0.54)) brightness(1.18) saturate(1.16);
  animation: mandalaTurn 72s linear infinite, mandalaBreath 4.6s ease-in-out infinite;
}

.play-button span:not(.button-mandala) {
  position: relative;
  z-index: 1;
  max-width: 104px;
  width: 100%;
  opacity: 0.64;
  transition: opacity 260ms ease, transform 260ms ease;
}

.play-button:hover,
.play-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 34px rgba(255, 224, 139, 0.56), 0 12px 24px rgba(86, 52, 7, 0.23), inset 0 1px 5px rgba(255, 250, 228, 0.7), inset 0 -10px 16px rgba(120, 76, 11, 0.14);
}

.play-button.playing {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 249, 228, 0.45), rgba(255, 224, 150, 0.18) 48%, rgba(143, 91, 18, 0.12) 78%),
    conic-gradient(from 210deg, rgba(255, 246, 215, 0.1), rgba(255, 214, 126, 0.34), rgba(255, 246, 215, 0.1), rgba(164, 105, 22, 0.18), rgba(255, 246, 215, 0.1));
  box-shadow: 0 0 50px rgba(255, 224, 139, 0.72), 0 16px 34px rgba(86, 52, 7, 0.22), inset 0 1px 6px rgba(255, 255, 238, 0.54), inset 0 -10px 18px rgba(127, 79, 10, 0.08);
}

.volume {
  --volume: 72;
  position: relative;
  display: block;
  width: 72px;
  height: 118px;
  margin-top: -12px;
  opacity: 0.86;
  animation: sliderPulse 4s ease-in-out infinite;
}

.volume input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.volume-arc {
  position: absolute;
  left: 50%;
  top: 0;
  width: 72px;
  height: 118px;
  transform: translateX(-50%);
  pointer-events: none;
}

.volume-arc::before {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  top: 2px;
  bottom: 10px;
  border-left: 1px solid rgba(255, 242, 210, 0.36);
  border-right: 1px solid rgba(255, 242, 210, 0.36);
  border-bottom: 1px solid rgba(255, 242, 210, 0.36);
  border-top: 0;
  border-radius: 0 0 999px 999px;
  filter: drop-shadow(0 0 9px rgba(255, 224, 145, 0.28));
}

.volume-arc::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 20px;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 242, 210, 0.52), rgba(255, 242, 210, 0.18));
  box-shadow: 0 0 8px rgba(255, 224, 145, 0.24);
}

.volume-knob {
  position: absolute;
  left: 50%;
  top: var(--knob-y, 34px);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(255, 242, 204, 0.88);
  box-shadow: 0 0 15px rgba(255, 226, 151, 0.74), inset 0 1px 3px rgba(255, 255, 245, 0.76);
  transform: translate(-50%, -50%);
}

@keyframes slowTurn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shimmer {
  from {
    transform: translateX(-6%);
    opacity: 0.42;
  }
  to {
    transform: translateX(6%);
    opacity: 0.8;
  }
}

@keyframes glowArrive {
  0%,
  70% {
    opacity: 0;
  }
  100% {
    opacity: 0.72;
  }
}

@keyframes livingGlow {
  from {
    filter: drop-shadow(0 0 8px rgba(255, 218, 105, 0.56));
  }
  to {
    filter: drop-shadow(0 0 18px rgba(255, 230, 142, 0.95)) drop-shadow(0 0 26px rgba(255, 186, 54, 0.46));
  }
}

@keyframes goldPulse {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 0.88;
  }
}

@keyframes breathe {
  50% {
    transform: scale(1.04);
    opacity: 0.72;
  }
}

@keyframes buttonBreath {
  50% {
    box-shadow: 0 0 50px rgba(255, 224, 139, 0.66), 0 16px 34px rgba(86, 52, 7, 0.22), inset 0 1px 6px rgba(255, 255, 238, 0.58), inset 0 -10px 18px rgba(127, 79, 10, 0.08);
  }
}

@keyframes glassSweep {
  0%,
  42% {
    transform: translateX(-56%) rotate(8deg);
    opacity: 0;
  }
  58% {
    opacity: 0.72;
  }
  82%,
  100% {
    transform: translateX(56%) rotate(8deg);
    opacity: 0;
  }
}

@keyframes sliderPulse {
  50% {
    opacity: 0.94;
    filter: drop-shadow(0 0 12px rgba(255, 225, 154, 0.3));
  }
}

@keyframes mandalaTurn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes mandalaBreath {
  50% {
    opacity: 0.72;
    filter: drop-shadow(0 0 14px rgba(255, 231, 160, 0.7)) brightness(1.26) saturate(1.2);
  }
}

@media (max-width: 680px) {
  .hero {
    grid-template-rows: minmax(92px, 15svh) minmax(218px, 29svh) minmax(94px, 15svh) minmax(26px, 4svh) minmax(160px, 24svh);
    padding-inline: 14px;
  }

  .wordmark-wrap {
    width: min(80vw, 500px);
    margin-top: 0;
  }

  .symbol-shell {
    width: min(72vw, 370px);
    margin-top: -4px;
  }

  .playlist-wheel {
    min-height: 112px;
  }

  .now-playing {
    align-self: end;
    margin-top: 0;
    margin-bottom: 0;
    min-height: 18px;
    z-index: 3;
  }

  .now-playing.live {
    transform: translateY(48px);
  }

  .now-playing strong {
    max-width: 86vw;
    font-size: 0.76rem;
    line-height: 1.18;
  }

  .console {
    gap: 0;
    padding: 0;
    align-self: end;
    margin-top: 0;
    padding-bottom: 12px;
  }

  .play-button {
    width: 96px;
    height: 96px;
    font-size: 0.64rem;
  }

  .volume {
    display: none;
  }

  .volume-arc {
    width: 64px;
    height: 106px;
  }
}

@media (min-width: 900px) {
  .hero {
    grid-template-rows: minmax(112px, 17svh) minmax(208px, 28svh) minmax(78px, 11svh) minmax(26px, 4svh) minmax(132px, 18svh);
    padding: 20px 24px 10px;
  }

  .wordmark-wrap {
    width: min(40vw, 580px);
    margin-top: -4px;
  }

  .symbol-shell {
    width: min(27svh, 23vw, 300px);
    margin-top: -6px;
  }

  .playlist-wheel {
    min-height: 104px;
    margin-top: 34px;
  }

  .wheel-btn {
    font-size: clamp(1.05rem, 2.4vw, 2.5rem);
  }

  .wheel-btn.mid {
    opacity: 0.68;
  }

  .wheel-btn.ghost {
    opacity: 0.42;
  }

  .now-playing {
    min-height: 24px;
    margin-top: 28px;
  }

  .console {
    align-self: start;
    margin-top: 12px;
  }

  .play-button {
    width: 104px;
    height: 104px;
  }

  .volume {
    width: 66px;
    height: 104px;
    margin-top: -10px;
  }

  .volume-arc {
    width: 66px;
    height: 104px;
  }
}
