/* Mortimer's Midnight Revue, from the street. One look, made for a phone in a dark car: a night sky, candle orange
   for what you can press, and each of the cast in the colour the yard glows when they speak. */
:root {
  color-scheme: dark;
  --night: #0d0a14; --card: #171226; --card-2: #1f1832; --line: #2c2244; --text: #efe9f7; --soft: #b3a6c9; --faint: #7e7296;
  --candle: #ff8a2a; --candle-ink: #24130a; --moon: #cfd8ff; --ok: #6fdc9c; --warn: #ffcf7a;
  --display: "IM Fell English SC", "Iowan Old Style", Georgia, serif;
  --body: Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--text); font: 16px/1.5 var(--body); min-height: 100vh; }
[hidden] { display: none !important; }
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vmax 40vmax at 85% -10%, rgba(140, 92, 255, .22), transparent 60%),
    radial-gradient(50vmax 36vmax at 0% 0%, rgba(255, 138, 42, .10), transparent 55%),
    var(--night); }
main { max-width: 560px; margin: 0 auto; padding: calc(22px + env(safe-area-inset-top)) 16px calc(40px + env(safe-area-inset-bottom)); display: grid; gap: 16px; }
main > * { min-width: 0; }

.mast { text-align: center; padding: 6px 0 2px; }
.eyebrow { margin: 0 0 4px; font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--candle); font-weight: 600; }
h1 { margin: 0; font: 400 clamp(30px, 9vw, 42px)/1.05 var(--display); letter-spacing: .01em; text-wrap: balance; }
h2 { margin: 0 0 6px; font: 400 23px/1.15 var(--display); letter-spacing: .01em; text-wrap: balance; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.sub { margin: 0; color: var(--soft); }
.kicker { margin: 0 0 6px; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.note { margin: 12px 0 0; color: var(--soft); font-size: 15px; }
.note:empty { display: none; }
.note.good { color: var(--ok); } .note.warn { color: var(--warn); }
.hint { margin: 8px 0 0; color: var(--faint); font-size: 13.5px; }

/* what the yard is doing */
.now h2 { font-size: clamp(26px, 7.6vw, 34px); }
.now h2.time { font: 700 clamp(30px, 9vw, 40px)/1.1 var(--body); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.now.live { border-color: rgba(255, 138, 42, .55); box-shadow: 0 0 0 1px rgba(255, 138, 42, .18), 0 10px 40px -18px rgba(255, 138, 42, .55); }
.now.live .kicker { color: var(--candle); }
.count { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; }
.count b { font: 700 46px/1 var(--body); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.count span { color: var(--faint); }
.bar { height: 6px; border-radius: 3px; background: var(--card-2); overflow: hidden; margin-top: 16px; }
.bar i { display: block; height: 100%; width: 0; background: var(--candle); border-radius: 3px; transition: width .5s linear; }

/* the sound */
button { font: inherit; color: inherit; touch-action: manipulation; }
.big { width: 100%; margin-top: 14px; min-height: 58px; border: 0; border-radius: 14px; background: var(--candle); color: var(--candle-ink);
  font-weight: 700; font-size: 18px; cursor: pointer; }
.big:active { transform: translateY(1px); }
.big[aria-pressed="true"] { background: var(--card-2); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--candle); }
.big:disabled { opacity: .6; }
.tune { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.tune label { display: block; font-weight: 600; font-size: 15px; }
.tune input[type="range"] { width: 100%; margin: 10px 0 2px; accent-color: var(--candle); }
.ends { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--faint); font-size: 12.5px; }
.ends output { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.check { display: flex !important; align-items: center; gap: 10px; margin-top: 16px; font-weight: 500 !important; }
.check input { width: 20px; height: 20px; accent-color: var(--candle); }

/* tonight */
.lineup { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.lineup li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.lineup li:first-child { border-top: 0; }
.lineup time { font-weight: 700; font-variant-numeric: tabular-nums; }
.lineup b { display: block; font-weight: 600; }
.lineup small { color: var(--faint); font-size: 13.5px; }

/* the yard's button */
.knock { margin-top: 14px; min-height: 52px; padding: 0 26px; border-radius: 26px 26px 10px 10px; border: 1.5px solid #5c4d7d; background: #2a2140;
  font-weight: 700; letter-spacing: .04em; cursor: pointer; }
.knock:disabled { opacity: .55; }

/* the cast */
.castwrap h2 { text-align: center; margin: 10px 0 12px; }
.cast { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cast li { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 14px; }
.cast .face { width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 0 0 2px var(--who), 0 0 26px -6px var(--who); }
.cast .face svg { display: block; width: 100%; height: 100%; border-radius: 50%; }
.cast h3 { margin: 2px 0 0; font: 400 20px/1.15 var(--display); }
.cast .role { margin: 2px 0 8px; color: var(--who); font-size: 13.5px; font-weight: 600; }
.cast p.fact { margin: 0 0 6px; color: var(--soft); font-size: 14.5px; }
.cast p.fact:last-child { margin-bottom: 0; }
@media (min-width: 520px) { .cast li { grid-template-columns: 96px minmax(0, 1fr); } .cast .face { width: 96px; height: 96px; } }

footer { text-align: center; color: var(--soft); padding: 8px 6px 0; }
footer p { margin: 0 0 8px; }
.fine { color: var(--faint); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
