/* ─────────────────────────────────────────────────────────────
   GRILLMASTER — ember-on-black HUD for the Ray-Ban Display lens.

   Pure #000 = transparent on the waveguide, so the world shows
   through the dark and only the hot pixels (amber/white) glow.
   Everything here is tuned for a 600×600 single-eye panel read at
   arm's length in daylight, which means four rules:

   1. BIG. A lens is read in a glance, from a face that is looking
      at a fire, not at a screen. 13px is the hard floor — nothing
      that carries meaning goes under it — headline cues run 40–62px,
      and the numbers you actually act on are the largest things on
      the panel. The small tier is exactly three sizes, 13/14/15,
      because six near-identical values just read as sloppy. Tracking
      on small caps stays at or under .18em: on an additive lens,
      over-spaced small type smears long before it looks airy.
   2. BRIGHT. The additive lens subtracts contrast, never adds it,
      so labels, rules and glyphs all sit well above web-normal
      luminance. Nothing dimmer than --ash carries meaning.
   3. WIDE. Content spans the full 548px column instead of a narrow
      centred card — big type reads better across than stacked down.
   4. ONE QUESTION PER SCREEN, all of it centred on a single axis.
      Every screen asks one thing and gets out of the way, which is
      what buys the type its size. Back arrows and the ▲▼ affordance
      are absolutely positioned so they never pull a title off centre.
   ───────────────────────────────────────────────────────────── */
:root {
  --bg:        #000;
  --ash:       #a79b8c;   /* dim label — still legible on the lens */
  --ash-2:     #ddd2c1;   /* bright secondary copy */
  --ember:     #ff7d2e;   /* primary flame orange */
  --ember-hi:  #ffb457;   /* lighter flame */
  --coal:      #ff4b26;   /* deep hot red */
  --white:     #fffbf4;   /* hottest — headline white */
  --safe:      #55f099;   /* food-safe green */
  --line:      #4a3a2c;   /* warm rule */
  --line-hot:  #86501f;   /* hot rule / resting border */
  --fill:      rgba(255,125,46,.10);
  --fill-on:   rgba(255,125,46,.20);

  --pad: 26px;            /* the full-width HUD gutter (600 - 52 = 548) */

  /* micro-motion — see the MOTION block below */
  --m-fast: 140ms;
  --m-base: 210ms;
  --m-ease: cubic-bezier(.22,.68,0,1);
  --m-stagger: 26ms;
}

/* ═════════════════ MOTION ═════════════════
   Amicro's vocabulary — fade-in, fade-up, zoom-in, text-reveal, stagger —
   rebuilt in plain CSS. The library itself is React + Tailwind + Motion
   installed over npm, and this app is deliberately vanilla with no build
   step, so it is the motion that is borrowed, not the dependency. Its
   pointer-driven pieces (tilt-card, magnetic-button, the carousels) have
   no meaning on a device with no pointer, so those become the D-pad
   equivalent: a press squash on activation.

   Four rules, because this is a 600×600 additive lens and not a website:
     1. opacity and transform only. Never a bright wash — it bleaches
        against the real world.
     2. nothing over ~210ms, and text is legible at frame one. A HUD is
        read in a glance; motion must never be in the way of the reading.
     3. it fires on real events only — a screen change, a value actually
        changing, a button actually pressed. The coach and the pit monitor
        re-render five times a second, and anything keyed to a render
        instead of a change would strobe.
     4. all of it off under prefers-reduced-motion, including the ambient
        flame flicker.
   ───────────────────────────────────────── */
@keyframes m-fade    { from { opacity: 0 }                                   to { opacity: 1 } }
@keyframes m-fade-up { from { opacity: 0; transform: translateY(9px) }        to { opacity: 1; transform: none } }
@keyframes m-zoom    { from { opacity: 0; transform: scale(.94) }             to { opacity: 1; transform: none } }
@keyframes m-reveal  { from { opacity: 0; transform: translateY(5px) }        to { opacity: 1; transform: none } }
@keyframes m-bump    { 0%,100% { transform: none }  40% { transform: scale(1.08) } }
@keyframes m-press   { 0% { transform: scale(1) }  45% { transform: scale(.962) }  100% { transform: scale(1) } }

/* a screen arrives as a plain fade; its rows do the moving */
.screen.m-enter    { animation: m-fade var(--m-base) var(--m-ease) both; }
#splash.m-enter    { animation: m-fade var(--m-fast) linear both; }

/* staggered entry for every list in the app. --i is set as each row is
   built, so the cascade follows DOM order. */
.pick-list > .pick,
.cook-list > .cook-row,
.safety-list > .fs-row,
.fire-steps > .fs-row,
.guide-list > .g-row,
.ctx-strip > .ctx,
.plan-target > .tgt-col {
  animation: m-fade-up var(--m-base) var(--m-ease) both;
  animation-delay: calc(var(--i, 0) * var(--m-stagger));
}
/* NB: no declarative transform on .focus for any of the above — an entry
   animation with fill-mode both would win the cascade and pin it. Focus
   is carried by border, fill and glow instead. */

.m-press  { animation: m-press var(--m-fast) var(--m-ease); }
.m-reveal { animation: m-reveal var(--m-base) var(--m-ease) both; }
.m-bump   { animation: m-bump var(--m-fast) var(--m-ease); }

/* overlays punch in rather than appearing */
#cue-alert .cue-card,
#end-confirm .cue-card { animation: m-zoom var(--m-base) var(--m-ease) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 600px; height: 600px; overflow: hidden;
  background: #000; color: var(--white);
  font-family: "Space Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 19px;
}
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }

#app { position: relative; width: 600px; height: 600px; overflow: hidden; background: #000; }

/* ── screens ── */
.screen {
  position: absolute; inset: 0; z-index: 2;
  padding: 24px var(--pad);
  display: flex; flex-direction: column;
  text-align: center;
}
.hidden { display: none !important; }

/* ═════════ SPLASH ═════════
   The canvas fills the panel and paints on cleared black, so the lens
   shows the world everywhere the coals and the wordmark aren't. */
#splash { padding: 0; }
#splash-canvas { display: block; width: 600px; height: 600px; }

/* ═════════ SAFETY ═════════
   Five plain lines in the same numbered form as the lighting steps, so it
   reads as part of the app rather than a warning label bolted on. */
.safety-list {
  flex: 1; display: flex; flex-direction: column;
  gap: 13px; justify-content: center;
}

/* ═════════ shared: brand, asks, rules ═════════ */
.brand { display: flex; align-items: center; justify-content: center; gap: 16px; }
.flame {
  font-size: 40px; line-height: 1; color: var(--ember);
  text-shadow: 0 0 22px rgba(255,125,46,.9);
  animation: flicker 2.6s ease-in-out infinite;
}
@keyframes flicker { 0%,100%{opacity:1;transform:scaleY(1)} 50%{opacity:.72;transform:scaleY(.88)} }
.brand-name { font-size: 38px; font-weight: 700; letter-spacing: .03em; line-height: 1; }
.brand-tag  { font-size: 14px; font-weight: 600; letter-spacing: .22em; color: var(--ash-2); margin-top: 7px; }

/* a hot rule instead of an ambient gradient — a wash bleaches on the lens */
.ember-rule {
  height: 2px; margin: 12px 0 14px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--coal), var(--ember), var(--ember-hi), var(--ember), var(--coal), transparent);
  background-size: 200% 100%;
  animation: sizzle 4.5s linear infinite;
}
@keyframes sizzle { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }

.ask { font-size: 16px; font-weight: 700; letter-spacing: .22em; color: var(--ash-2); margin-bottom: 12px; }

/* ═════════ wizard heads — one question each ═════════ */
.wiz-head { margin-bottom: 18px; }
.wiz-head.tight { margin-bottom: 12px; }
.step-rail {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em;
  color: var(--line-hot); margin-bottom: 12px;
}
.step-rail .sr { color: var(--ash); }
.step-rail .sr.on { color: var(--ember-hi); text-shadow: 0 0 14px rgba(255,125,46,.6); }
.step-rail .sr.done { color: var(--line-hot); }
.step-rail .sr-sep { color: var(--line); }

/* the back arrow floats out of flow so the title stays dead centre */
.wiz-row, .page-head {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 42px;
}
.wiz-row .crumb, .page-head .crumb { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
.wiz-title { font-size: 34px; font-weight: 700; letter-spacing: .01em; line-height: 1.05; }
.wiz-sub { font-size: 16px; font-weight: 600; letter-spacing: .14em; color: var(--ember-hi); margin-top: 8px; }

/* the chosen mode · fire · help, carried along as chips */
.ctx-strip { display: flex; justify-content: center; gap: 8px; margin-top: 9px; }
.ctx {
  font-size: 13px; font-weight: 700; letter-spacing: .12em;
  padding: 5px 11px; border-radius: 7px;
  color: var(--ash-2); border: 1px solid var(--line); background: var(--fill);
}
.ctx.hot { color: var(--ember-hi); border-color: var(--line-hot); }
.preheat-live {
  font-family: "JetBrains Mono", monospace; color: var(--ember-hi);
  border-color: var(--ember); background: var(--fill-on);
}
.preheat-live.up { color: var(--safe); border-color: var(--safe); }

/* ═════════ the pick list — one wide, centred row per choice ═════════ */
.pick-list {
  flex: 1; display: flex; flex-direction: column; gap: 11px;
  justify-content: center; overflow-y: auto;
}
.pick-list::-webkit-scrollbar { width: 0; }
.pick {
  display: flex; flex-direction: column; align-items: center; width: 100%;
  padding: 11px 20px; text-align: center;
  border: 2px solid var(--line); border-radius: 18px;
  transition: all .13s ease;
}
.pick-head { display: flex; align-items: center; justify-content: center; gap: 14px; }
.pick-g { font-size: 38px; line-height: 1; filter: grayscale(.25); }
.pick-k { font-size: 36px; font-weight: 700; letter-spacing: .03em; line-height: 1; color: var(--ash-2); }
.pick-t { font-size: 14px; font-weight: 700; letter-spacing: .18em; color: var(--ash); margin-top: 9px; }
.pick-s { font-size: 15px; font-weight: 500; color: var(--ash); margin-top: 5px; }
.pick.focus {
  border-color: var(--ember); background: var(--fill-on);
  box-shadow: 0 0 26px rgba(255,125,46,.28) inset;
}
.pick.focus .pick-k { color: var(--white); text-shadow: 0 0 18px rgba(255,125,46,.6); }
.pick.focus .pick-t { color: var(--ember-hi); }
.pick.focus .pick-s { color: var(--ash-2); }
.pick.focus .pick-g { filter: none; }

/* ── SIDE-BY-SIDE — the first question, three tiles across ──
   Three modes fit the 548px column at ~175px each, so screen one
   never scrolls: no clipped third option, no hidden affordance.
   max-height + auto margins keep the row a fixed, centred band
   instead of stretching into whatever height is left over. */
.pick-list.side {
  flex-direction: row; align-items: stretch; justify-content: center;
  gap: 12px; max-height: 296px; margin: auto 0; overflow: visible;
}
.pick-list.side .pick { flex: 1; min-width: 0; justify-content: center; padding: 18px 12px; }
.pick-list.side .pick-head { flex-direction: column; gap: 12px; }
.pick-list.side .pick-g { font-size: 62px; }
.pick-list.side .pick-k { font-size: 34px; }
.pick-list.side .pick-t { font-size: 13px; letter-spacing: .14em; margin-top: 14px; }
.pick-list.side .pick-s { font-size: 14px; line-height: 1.3; margin-top: 8px; }

/* four options give a little height back */
.pick-list.compact { gap: 10px; }
.pick-list.compact .pick { padding: 10px 18px; border-radius: 16px; }
.pick-list.compact .pick-g { font-size: 34px; }
.pick-list.compact .pick-k { font-size: 30px; }
.pick-list.compact .pick-t { font-size: 13px; margin-top: 8px; }

/* the doneness ladder — five rungs, no glyphs, still one per row */
.pick-list.ladder { gap: 8px; }
.pick-list.ladder .pick { padding: 8px 18px; border-radius: 14px; }
.pick-list.ladder .pick-k { font-size: 34px; }
.pick-list.ladder .pick-t { font-size: 14px; letter-spacing: .1em; margin-top: 8px; }

/* ═════════ the cook list ═════════ */
.cook-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.cook-list::-webkit-scrollbar { width: 0; }
.cook-row {
  display: flex; flex-direction: column; align-items: center; width: 100%;
  padding: 10px 18px; text-align: center;
  border: 2px solid var(--line); border-radius: 15px; transition: all .12s ease;
}
.cook-head { display: flex; align-items: center; justify-content: center; gap: 13px; }
.cook-row .cg { font-size: 34px; line-height: 1; filter: grayscale(.25); }
.cook-row .cname { font-size: 28px; font-weight: 700; letter-spacing: .01em; line-height: 1; color: var(--ash-2); }
.cook-row .cmeta { font-size: 14px; font-weight: 700; letter-spacing: .1em; color: var(--ash); margin-top: 7px; }
.cook-row .cs-v { font-family: "JetBrains Mono", monospace; font-size: 16px; font-weight: 800; color: var(--ember-hi); }
.cook-row.focus { border-color: var(--ember); background: var(--fill-on); }
.cook-row.focus .cname { color: var(--white); text-shadow: 0 0 16px rgba(255,125,46,.5); }
.cook-row.focus .cg { filter: none; }
.cook-row.focus .cmeta { color: var(--ash-2); }

/* ═════════ buttons ═════════ */
.foot-row, .act-row { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
/* three utilities across the front door need a size down to stay on one line */
.foot-row.three { gap: 9px; }
.foot-row.three .btn { font-size: 15px; padding: 13px 8px; letter-spacing: .06em; }
.act-row { margin-top: 18px; }
/* One action per row, full width, in the order you would do them — the
   same shape as every question screen. Side-by-side buttons make you
   compare two things before you can act. */
.stack { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.stack .btn { flex: none; width: 100%; }
.btn {
  border-radius: 12px; font-weight: 700; letter-spacing: .09em;
  font-size: 19px; padding: 14px 18px; transition: all .13s ease;
  border: 2px solid transparent; flex: 1; text-align: center;
}
.btn.ghost { border-color: var(--line-hot); color: var(--ash-2); }
.btn.ghost.narrow { flex: .5; font-size: 16px; }
/* the live cook's control row: compact ghosts, DONE takes what's left */
.foot-row.cook { gap: 9px; }
.foot-row.cook .btn.ghost { flex: none; font-size: 15px; padding: 13px 12px; letter-spacing: .05em; }
.foot-row.cook .btn.primary { flex: 1; }
.btn.primary { background: var(--ember); color: #1a0b02; }
.btn.add { border-color: var(--ember); color: var(--ember-hi); }
.btn.big { font-size: 23px; padding: 17px 20px; flex: 2; }
.btn.focus {
  box-shadow: 0 0 0 3px var(--ember-hi), 0 0 24px rgba(255,125,46,.45);
  transform: translateY(-1px);
}
.btn.primary.focus { box-shadow: 0 0 0 3px var(--white), 0 0 30px rgba(255,125,46,.7); }
/* armed = the cue is due and this is the thing to press. Pulses on
   brightness rather than box-shadow so it never fights the focus ring. */
.btn.armed { animation: armedpulse 1.1s ease-in-out infinite; }
@keyframes armedpulse { 0%,100% { filter: none; } 50% { filter: brightness(1.18); } }
.act-row .add { flex: 1; }
.act-row .primary { flex: 1.6; }

.crumb {
  font-size: 22px; font-weight: 700; color: var(--ash-2); text-align: center;
  border: 2px solid var(--line); border-radius: 10px;
  width: 48px; height: 42px; line-height: 1; flex: none;
}
.crumb.focus { color: var(--white); border-color: var(--ember); background: var(--fill-on); }
.ph-title { font-size: 24px; font-weight: 700; letter-spacing: .08em; color: var(--white); }
.page-head { margin-bottom: 18px; }
.ph-tail {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--ember-hi);
}

.note { font-size: 14px; font-weight: 600; color: var(--ash); margin-top: 12px; min-height: 20px; letter-spacing: .05em; }

/* ═════════ THE PLAN ═════════ */
.plan-hero { display: flex; flex-direction: column; align-items: center; margin-bottom: 18px; }
.hero-glyph {
  font-size: 56px; width: 92px; height: 92px; line-height: 88px; text-align: center; flex: none;
  border: 2px solid var(--line-hot); border-radius: 22px; background: var(--fill);
}
.hero-cut { font-size: 20px; font-weight: 600; color: var(--ash-2); line-height: 1.25; margin-top: 12px; }
.chip-row { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.chip {
  display: inline-block; font-family: "JetBrains Mono", monospace;
  font-size: 15px; font-weight: 700; letter-spacing: .06em;
  padding: 7px 13px; border-radius: 8px; color: var(--ember-hi);
  border: 2px solid var(--line-hot); background: var(--fill);
}
.chip.alt { color: var(--ash-2); border-color: var(--line); }

.plan-target {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px;
  border-top: 2px solid var(--line); border-bottom: 2px solid var(--line);
  padding: 16px 0; margin-bottom: auto;
}
.tgt-k { font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--ash); margin-bottom: 8px; }
.tgt-v {
  font-family: "JetBrains Mono", monospace; font-size: 34px; font-weight: 800;
  color: var(--ember-hi); text-shadow: 0 0 18px rgba(255,125,46,.35);
}
.tgt-col.safe .tgt-v { color: var(--safe); text-shadow: 0 0 18px rgba(85,240,153,.35); }

/* ═════════ THE FIRE ═════════ */
.fire-fuel {
  font-size: 16px; font-weight: 700; letter-spacing: .16em;
  color: var(--ember-hi); margin-bottom: 16px;
}
.fire-steps { display: flex; flex-direction: column; gap: 11px; margin-bottom: auto; }
.fs-row { display: flex; align-items: center; justify-content: center; gap: 16px; }
.fs-n {
  font-family: "JetBrains Mono", monospace; font-size: 21px; font-weight: 800;
  color: var(--ember); flex: none; width: 46px; height: 46px; line-height: 42px;
  border: 2px solid var(--line-hot); border-radius: 50%; background: var(--fill);
}
.fs-t { font-size: 19px; line-height: 1.3; color: var(--white); max-width: 420px; }

.fire-facts { margin-bottom: auto; }
.ff-line { font-size: 20px; font-weight: 600; color: var(--white); line-height: 1.3; }
.ff-line.dim { font-size: 16px; font-weight: 500; color: var(--ash); margin-top: 9px; }

/* the preheat clock — real minutes, because a cold grate is the
   commonest way a cook goes wrong before it has even started */
.preheat {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  border: 2px solid var(--line-hot); border-radius: 14px; background: var(--fill);
  padding: 11px 16px; margin-top: 14px;
}
.preheat-time { font-family: "JetBrains Mono", monospace; font-size: 36px; font-weight: 800; line-height: 1; color: var(--ember-hi); }
.preheat-lbl { font-size: 14px; font-weight: 700; letter-spacing: .11em; color: var(--ash); }
.preheat.ready { border-color: var(--safe); }
.preheat.ready .preheat-time { color: var(--safe); text-shadow: 0 0 22px rgba(85,240,153,.5); }
.preheat.ready .preheat-lbl { color: var(--ash-2); }

/* ═════════ COACH ═════════ */
.now-top { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 12px; }
.now-item { font-size: 18px; font-weight: 700; letter-spacing: .09em; color: var(--white); }
.now-phase {
  font-family: "JetBrains Mono", monospace; font-size: 15px; font-weight: 700;
  letter-spacing: .09em; color: var(--ember-hi);
  border: 2px solid var(--line-hot); border-radius: 8px; padding: 5px 11px;
}
/* the cue and its clock sit side by side — each block centred on its own axis */
.now {
  display: flex; align-items: center; gap: 18px;
  border: 2px solid var(--line-hot); border-radius: 20px;
  padding: 18px 20px; background: var(--fill);
}
.now-copy { flex: 1; min-width: 0; text-align: center; }
.now-cue {
  font-size: 44px; font-weight: 700; letter-spacing: -.01em; line-height: 1.02;
  color: var(--white); text-shadow: 0 0 24px rgba(255,125,46,.45);
}
.now-sub { font-size: 17px; color: var(--ash-2); line-height: 1.3; margin-top: 10px; }

.clock-ring {
  flex: none; width: 158px; height: 158px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background:
    radial-gradient(closest-side, #000 76%, transparent 77%),
    conic-gradient(var(--ember) var(--pct, 0%), var(--line) var(--pct, 0%));
}
.clock-time { font-family: "JetBrains Mono", monospace; font-size: 40px; font-weight: 800; }
.clock-lbl  { font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--ash); margin-top: 5px; }
.clock-ring.due { animation: ringpulse 1s ease-in-out infinite; }
.clock-ring.due .clock-time { color: var(--ember-hi); }
@keyframes ringpulse { 0%,100%{filter:none} 50%{filter:drop-shadow(0 0 20px rgba(255,125,46,1))} }

.temp { width: 100%; margin-top: 14px; }
.temp-nums { display: flex; align-items: baseline; justify-content: center; gap: 9px; margin-bottom: 9px; }
.temp-est { font-family: "JetBrains Mono", monospace; font-size: 32px; font-weight: 800; color: var(--white); }
.temp-sep { color: var(--ash); font-size: 21px; }
.temp-tgt { font-family: "JetBrains Mono", monospace; font-size: 26px; font-weight: 700; color: var(--ember-hi); }
.temp-lbl { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--ash); }
.temp-bar { position: relative; height: 11px; border-radius: 6px; background: var(--line); overflow: hidden; }
.temp-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
  background: linear-gradient(90deg, var(--coal), var(--ember), var(--ember-hi));
  transition: width .3s linear;
}
.temp-tick { position: absolute; top: -3px; bottom: -3px; width: 3px; background: var(--white); left: 0%; box-shadow: 0 0 8px rgba(255,255,255,.9); }

/* FIRST-TIME fuel reminder */
.hint {
  display: flex; align-items: center; justify-content: center; gap: 11px; flex-wrap: wrap;
  margin-top: 13px; font-size: 15px; font-weight: 600; color: var(--ash-2); line-height: 1.25;
}
.hint b {
  font-family: "JetBrains Mono", monospace; font-size: 13px; font-weight: 800;
  letter-spacing: .09em; color: var(--ember-hi); flex: none;
  border: 2px solid var(--line-hot); border-radius: 7px; padding: 4px 9px;
}

.spacer { flex: 1; }

/* paused: the ring greys out so a frozen countdown never looks live */
.clock-ring.paused { background:
  radial-gradient(closest-side, #000 76%, transparent 77%),
  conic-gradient(var(--line-hot) var(--pct, 0%), var(--line) var(--pct, 0%)); }
.clock-ring.paused .clock-time { color: var(--ash); }
.btn.ghost.on { border-color: var(--ember); color: var(--ember-hi); background: var(--fill-on); }

/* ═════════ MONITOR — pit HUD (smoke + bbq) ═════════ */
.mon-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 12px; }
.mon-item { font-size: 20px; font-weight: 700; letter-spacing: .09em; }
.mon-phase {
  font-family: "JetBrains Mono", monospace; font-size: 15px; font-weight: 700;
  letter-spacing: .09em; color: var(--ember-hi);
  border: 2px solid var(--line-hot); border-radius: 8px; padding: 5px 11px;
}

.mon-banner {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  font-size: 18px; font-weight: 700; letter-spacing: .06em;
  padding: 11px 15px; border-radius: 11px; margin-bottom: 12px;
}
.mon-banner .mb-ico { font-size: 16px; }
.mon-banner.alarm { color: #ffdcd2; background: rgba(255,75,38,.22); border: 2px solid var(--coal); animation: alarmpulse 1.1s ease-in-out infinite; }
@keyframes alarmpulse { 0%,100%{ box-shadow: 0 0 0 rgba(255,75,38,0); } 50%{ box-shadow: 0 0 26px rgba(255,75,38,.55); } }
.mon-banner.spritz { color: var(--ember-hi); background: var(--fill); border: 2px solid var(--line-hot); }

.mon-cue {
  font-size: 40px; font-weight: 700; line-height: 1.02; letter-spacing: -.01em;
  color: var(--white); text-shadow: 0 0 22px rgba(255,125,46,.4);
}
.mon-sub { font-size: 17px; color: var(--ash-2); line-height: 1.3; margin: 9px 0 16px; }

.gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.gauge {
  position: relative; border: 2px solid var(--line-hot); border-radius: 16px;
  padding: 13px 16px; background: var(--fill); transition: all .13s ease;
}
.gauge .g-k { font-size: 13px; font-weight: 800; letter-spacing: .18em; color: var(--ash); margin-bottom: 5px; }
.gauge .g-v { font-family: "JetBrains Mono", monospace; font-size: 58px; font-weight: 800; line-height: 1; }
.gauge .g-tgt { font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--ash-2); margin-top: 7px; }
.gauge.sel {
  border-color: var(--ember); background: var(--fill-on);
  box-shadow: 0 0 0 1px var(--ember), 0 0 26px rgba(255,125,46,.3) inset;
}
.gauge.sel .g-v { color: var(--white); text-shadow: 0 0 20px rgba(255,125,46,.6); }
.gauge.sel::after {
  content: '▲▼'; position: absolute; top: 13px; right: 13px;
  font-size: 13px; color: var(--ember-hi); letter-spacing: -2px; writing-mode: vertical-rl;
}
.gauge.pit-bad { border-color: var(--coal); }
.gauge.pit-bad .g-v { color: var(--coal); }

.eta {
  display: flex; align-items: baseline; justify-content: center; gap: 12px;
  border-top: 2px solid var(--line); padding-top: 14px; margin-bottom: auto;
}
.eta-v { font-family: "JetBrains Mono", monospace; font-size: 32px; font-weight: 800; color: var(--ember-hi); }
.eta.stall .eta-v { color: #ffd98a; }
.eta-s { font-size: 14px; font-weight: 600; color: var(--ash); letter-spacing: .03em; }

.mon-bar { display: flex; gap: 9px; margin-top: 16px; }
.mon-field {
  flex: 1; text-align: center; font-size: 16px; font-weight: 800; letter-spacing: .07em;
  color: var(--ash-2); border: 2px solid var(--line-hot); border-radius: 11px; padding: 13px 0;
  transition: all .12s ease;
}
.mon-field.pull { color: #1a0b02; background: var(--ember); flex: 1.6; }
.mon-field.sel { box-shadow: 0 0 0 3px var(--ember-hi), 0 0 20px rgba(255,125,46,.4); color: var(--white); }
.mon-field.pull.sel { box-shadow: 0 0 0 3px var(--white), 0 0 26px rgba(255,125,46,.7); color: #1a0b02; }

/* ═════════ DONE ═════════ */
#done { align-items: center; justify-content: center; }
.done-mark {
  font-size: 70px; color: var(--safe); margin-bottom: 16px;
  text-shadow: 0 0 32px rgba(85,240,153,.6);
}
.done-title { font-size: 48px; font-weight: 700; letter-spacing: .04em; }
.done-sub { font-size: 19px; color: var(--ash-2); margin-top: 12px; }
.done-actions { margin-top: 32px; display: flex; gap: 12px; justify-content: center; }
.done-actions .btn { min-width: 250px; flex: none; }

/* ═════════ TEMP GUIDE ═════════ */
/* six rows, sized so the whole reference fits without a scroll —
   nothing on this screen is focusable, so the D-pad cannot scroll it */
.guide-list { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.g-row {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 10px 16px; border: 2px solid var(--line); border-radius: 13px;
}
.g-body { flex: none; }
.g-name { font-size: 20px; font-weight: 700; }
.g-note { color: var(--ash); font-weight: 600; }
.g-sub  { font-size: 14px; color: var(--ash); margin-top: 3px; }
.g-temp { font-family: "JetBrains Mono", monospace; font-size: 30px; font-weight: 800; color: var(--safe); flex: none; }
.guide-note { font-size: 14px; font-weight: 600; color: var(--ash-2); margin-top: 14px; letter-spacing: .02em; }

/* ═════════ HELP ═════════ */
.help-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 13px; }
.help-lead { font-size: 19px; line-height: 1.35; color: var(--ash-2); margin-bottom: 4px; }
.help-row { display: flex; align-items: center; justify-content: center; gap: 16px; }
.help-row .hk {
  font-family: "JetBrains Mono", monospace; font-size: 17px; font-weight: 800;
  letter-spacing: .05em; color: var(--ember-hi); min-width: 92px; flex: none;
  border: 2px solid var(--line-hot); border-radius: 10px; padding: 11px 0; background: var(--fill);
}
.help-copy { min-width: 0; width: 320px; text-align: center; }
.help-copy b { font-size: 18px; font-weight: 700; display: block; letter-spacing: .04em; }
.help-copy span { font-size: 14px; color: var(--ash); }

/* ═════════ overlays — cue alert, and the end confirm above it ═════════ */
.overlay {
  position: absolute; inset: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.9);
}
.overlay.top { z-index: 45; background: rgba(0,0,0,.94); }
.end-title {
  font-size: 44px; font-weight: 700; line-height: 1; margin: 12px 0 8px;
  color: var(--white); text-shadow: 0 0 26px rgba(255,125,46,.6);
}
.end-actions { display: flex; gap: 12px; margin-top: 26px; }
.end-actions .btn { flex: 1; }
#end-confirm .cue-card { border-color: var(--coal); box-shadow: 0 0 56px rgba(255,75,38,.45); }
.cue-card {
  position: relative; text-align: center; padding: 36px 44px;
  border: 2px solid var(--ember); border-radius: 22px; background: #0b0402;
  box-shadow: 0 0 56px rgba(255,125,46,.5); width: 500px;
}
.cue-pulse {
  position: absolute; inset: -2px; border-radius: 22px; border: 2px solid var(--ember);
  animation: cuering 1.1s ease-out infinite; pointer-events: none;
}
@keyframes cuering { 0%{opacity:.95;transform:scale(1)} 100%{opacity:0;transform:scale(1.07)} }
.cue-eyebrow { font-size: 14px; font-weight: 800; letter-spacing: .24em; color: var(--ember-hi); }
.cue-big {
  font-size: 62px; font-weight: 700; margin: 12px 0 6px; color: var(--white);
  text-shadow: 0 0 30px rgba(255,125,46,.8); line-height: 1;
}
.cue-item { font-size: 20px; color: var(--ash-2); letter-spacing: .05em; margin-bottom: 26px; }
#cue-alert .cue-card .btn { width: 100%; }

/* ═════════ toast ═════════ */
.toast {
  position: absolute; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(9px);
  z-index: 50; max-width: 540px; background: #140803; border: 2px solid var(--line-hot);
  color: var(--white); font-size: 17px; font-weight: 600; letter-spacing: .02em;
  padding: 13px 20px; border-radius: 12px; box-shadow: 0 0 30px rgba(255,125,46,.35);
  opacity: 0; pointer-events: none; text-align: center;
  transition: opacity var(--m-base) ease, transform var(--m-base) var(--m-ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═════════ assist levels rewire the HUD ═════════
   I GOT THIS drops every explanatory line and spends the space on
   the numbers instead. FIRST TIME keeps everything. */
#app[data-assist="pro"] .now-sub,
#app[data-assist="pro"] .mon-sub { display: none; }
#app[data-assist="pro"] .now-cue { font-size: 50px; }
#app[data-assist="pro"] .clock-ring { width: 178px; height: 178px; }
#app[data-assist="pro"] .clock-time { font-size: 46px; }
#app[data-assist="pro"] .gauge .g-v { font-size: 66px; }
#app[data-assist="pro"] .mon-cue { font-size: 44px; }
