/* Merry Mochi Lights listen page. Same palette, fonts and mascot as the home page. */
:root {
  --night: #0e1322;
  --panel: #171e33;
  --line: #2a3452;
  --ink: #f5f1ea;
  --muted: #aab3c8;
  --mochi: #fff8f1;
  --cheek: #ffb3c1;
  --red: #e8424f;
  --green: #3fb47c;
  --gold: #ffd86b;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at top, #1b2544 0%, var(--night) 60%) fixed, var(--night);
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.45;
}
.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 40px; display: grid; gap: 16px; }

.hero { text-align: center; display: grid; justify-items: center; gap: 4px; }
.mochi-stage { position: relative; width: 150px; height: 140px; transform: scale(.8); margin: -14px 0 -18px; }
.mochi {
  position: absolute; left: 15px; bottom: 6px; width: 120px; height: 92px;
  background: var(--mochi);
  border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%;
  box-shadow: inset -10px -12px 0 rgba(120, 90, 80, .08), 0 0 28px rgba(255, 248, 241, .28);
}
.eye { position: absolute; top: 40px; width: 9px; height: 11px; background: #2b2333; border-radius: 50%; }
.eye.l { left: 36px; } .eye.r { right: 36px; }
.cheek { position: absolute; top: 54px; width: 18px; height: 10px; background: var(--cheek); border-radius: 50%; opacity: .85; }
.cheek.l { left: 20px; } .cheek.r { right: 20px; }
.smile { position: absolute; top: 52px; left: 52px; width: 16px; height: 9px; border-bottom: 3px solid #2b2333; border-radius: 0 0 50% 50%; }
.hat {
  position: absolute; left: 44px; top: 4px; width: 0; height: 0;
  border-left: 30px solid transparent; border-right: 30px solid transparent; border-bottom: 52px solid var(--red);
  transform: rotate(14deg); transform-origin: bottom center;
}
.hat-brim { position: absolute; left: 36px; top: 50px; width: 78px; height: 14px; background: #fff; border-radius: 8px; transform: rotate(6deg); }
.pom { position: absolute; left: 92px; top: 2px; width: 16px; height: 16px; background: #fff; border-radius: 50%; }
.sparkle { position: absolute; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); border-radius: 2px; box-shadow: 0 0 8px var(--gold); }
.sparkle.a { left: 4px; top: 30px; } .sparkle.b { right: 6px; top: 64px; width: 7px; height: 7px; } .sparkle.c { left: 18px; bottom: 6px; width: 6px; height: 6px; }

h1 { margin: 0; font-size: 1.8rem; letter-spacing: .02em; line-height: 1.1; }
h1 .m { color: var(--gold); }
.tag { margin: 0; color: var(--muted); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 8px; }
.card h2 { margin: 0; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); }
.card p { margin: 0; }
.now-title { font-size: 1.3rem; font-weight: 700; }
.now-artist { color: var(--muted); }
.timer { color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }
.off { text-align: center; }

.btn {
  display: block; width: 100%; text-align: center; text-decoration: none; font: inherit;
  padding: 18px 16px; border-radius: 14px; font-size: 1.35rem; font-weight: 700;
  border: 2px solid transparent; cursor: pointer;
}
.btn.go { background: var(--green); color: #07160f; }
.btn.go.on { background: #2a3452; color: var(--ink); border-color: var(--green); }
.btn.go:disabled { opacity: .45; cursor: default; }
.btn.request { background: var(--red); color: #fff; font-size: 1.1rem; padding: 14px; }
.btn:focus-visible, .link:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.status { text-align: center; font-weight: 700; min-height: 1.45em; }
.status.good { color: var(--green); }
.status.warn { color: var(--gold); }
.hint { color: var(--muted); font-size: .92rem; text-align: center; }

.delay input[type=range] { width: 100%; accent-color: var(--gold); height: 32px; }
.delay-row { display: flex; justify-content: space-between; color: var(--muted); font-size: .9rem; }
.delay-row output { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.link { background: none; border: 0; color: var(--muted); text-decoration: underline; font: inherit; font-size: .9rem; justify-self: center; cursor: pointer; padding: 6px; }

.diag summary { cursor: pointer; color: var(--muted); }
.diag dl { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: .85rem; font-variant-numeric: tabular-nums; }
.diag dt { color: var(--muted); }
.diag dd { margin: 0; }

footer { text-align: center; color: var(--muted); font-size: .85rem; }
footer p { margin: 0; }
