:root {
  --bg0: #0c0a08;
  --bg1: #16110c;
  --ink: #f3ebe1;
  --muted: #9a8b78;
  --line: rgba(243, 235, 225, 0.12);
  --amber: #e6a23c;
  --amber-deep: #b8731a;
  --danger: #c44b3a;
  --ok: #6f9f6a;
  --pad: clamp(1rem, 4vw, 1.5rem);
  --font-display: "Bebas Neue", "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
}

@font-face {
  font-family: "Bebas Neue";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Bebas Neue"), local("Oswald Bold");
}

@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("IBM Plex Sans"), local("Segoe UI");
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg0);
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(230, 162, 60, 0.18), transparent 55%),
    radial-gradient(80% 60% at 100% 100%, rgba(184, 115, 26, 0.12), transparent 50%),
    linear-gradient(180deg, #120e0a 0%, var(--bg0) 45%, #080705 100%);
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.35) 3px
  );
  pointer-events: none;
}

.shell {
  width: min(28rem, 100%);
  margin: 0 auto;
  padding: calc(var(--pad) + env(safe-area-inset-top)) var(--pad) calc(var(--pad) + env(safe-area-inset-bottom));
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.brand {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
  animation: rise 0.6s ease-out both;
}
.brand .call {
  margin: 0;
  letter-spacing: 0.42em;
  font-size: 0.78rem;
  color: var(--amber);
  font-weight: 600;
}
.brand h1 {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 22vw, 6.5rem);
  line-height: 0.85;
  letter-spacing: 0.06em;
  font-weight: 400;
  text-shadow: 0 0 40px rgba(230, 162, 60, 0.25);
}
.brand .tag {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.gate, .deck {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.25rem 0.15rem;
  animation: rise 0.7s ease-out 0.08s both;
}

.gate label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.gate input {
  width: 100%;
  font-size: 1.4rem;
  letter-spacing: 0.35em;
  text-align: center;
  padding: 0.85rem 1rem;
  border-radius: 0.35rem;
  border: 1px solid var(--line);
  background: var(--bg1);
  color: var(--ink);
  margin-bottom: 0.85rem;
}
.gate input:focus {
  outline: 2px solid rgba(230, 162, 60, 0.55);
  outline-offset: 1px;
}

.now {
  text-align: center;
  margin-bottom: 1.35rem;
  min-height: 5.5rem;
}
.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}
.title {
  margin: 0.35rem 0 0;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
}
.artist {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}
.meta {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.transport {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1.15fr 1fr;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1rem;
}

.volume {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

.vol-readout {
  text-align: center;
  min-width: 4.5rem;
}
.vol-readout #vol {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.vol-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #2a2218, #1a1510);
  color: var(--ink);
  font: inherit;
  font-size: 1.35rem;
  font-weight: 600;
  border-radius: 0.45rem;
  padding: 0.95rem 0.75rem;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn.primary {
  width: 100%;
  background: linear-gradient(180deg, var(--amber), var(--amber-deep));
  color: #1a1208;
  border-color: transparent;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1rem;
}
.btn.round {
  aspect-ratio: 1;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 1.25rem;
}
.btn.round.big {
  width: 100%;
  aspect-ratio: 1;
  font-size: 1.55rem;
  border-color: rgba(230, 162, 60, 0.45);
  box-shadow: 0 0 0 1px rgba(230, 162, 60, 0.12), 0 10px 30px rgba(0,0,0,0.35);
}
.btn.round.stop {
  border-color: rgba(196, 75, 58, 0.45);
  color: #f0c2ba;
}

.msg {
  min-height: 1.2em;
  margin: 0.85rem 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.msg.ok { color: var(--ok); }
.msg.err { color: #e88b7d; }

.foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
.linkish {
  appearance: none;
  background: none;
  border: none;
  color: var(--amber);
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.35rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
