/* Stop — game styles. Built on the tokens of /css/common.css (light + dark) and the colors of the Juntos promo video:
   coral→orange hero, deep navy, warm cream, white pills with soft layered shadows. */
:root {
  --stop-red: #E8505B;
  --stop-brand: #FF6B4A;
  --stop-brand-2: #FF9A3C;
  --stop-hero: linear-gradient(145deg, #FF6B4A 0%, #FF9A3C 100%);
  --stop-navy: radial-gradient(circle at 30% 18%, #3A3D5C 0%, #1F2137 78%);
  --stop-teal: linear-gradient(145deg, #0FA394 0%, #22C47C 100%);
  --stop-ink: #2B2D42;
  --stop-deep: #C8381A;                 /* coral dark enough for small/large text on white */
  --stop-sheen: inset 0 1.5px 0 rgba(255, 255, 255, .45);
  --stop-glow: 0 18px 30px -18px rgba(255, 107, 74, .85);
  --stop-ok-fg: #12804A;
  --stop-mid-fg: #8A5A00;
  --stop-bad-fg: #C2410C;
  --stop-ok-bg: color-mix(in srgb, var(--green) 18%, var(--card));
  --stop-mid-bg: color-mix(in srgb, var(--gold) 26%, var(--card));
  --stop-bad-bg: color-mix(in srgb, var(--orange) 16%, var(--card));
  --stop-glass: color-mix(in srgb, var(--bg) 93%, transparent);
  --stop-hi: inset 0 1px 0 rgba(255, 255, 255, .8);
  --stop-edge: rgba(43, 45, 66, .08);
  --stop-top: 60px;
  --stop-emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --stop-ok-fg: #6BE8A6;
    --stop-mid-fg: #FFD27A;
    --stop-bad-fg: #FFAB80;
    --stop-hi: inset 0 1px 0 rgba(255, 255, 255, .06);
    --stop-edge: rgba(255, 255, 255, .09);
  }
}
:root[data-theme="dark"] {
  --stop-ok-fg: #6BE8A6;
  --stop-mid-fg: #FFD27A;
  --stop-bad-fg: #FFAB80;
  --stop-hi: inset 0 1px 0 rgba(255, 255, 255, .06);
  --stop-edge: rgba(255, 255, 255, .09);
}

.stop-ic { width: 20px; height: 20px; flex: none; }
.stop-h1 { font-size: clamp(1.6rem, 6vw, 2.1rem); font-weight: 700; }
.stop-h2 { font-size: 1.25rem; }
.stop-eyebrow { font: 800 .74rem/1.2 var(--font-body); letter-spacing: .13em; text-transform: uppercase; color: var(--fg-2); }
.stop-note { color: var(--fg-2); font-size: .92rem; text-align: center; }
/* a white pill with ink text: the only way small text sits on the coral / navy surfaces */
.stop-pill {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .96); color: var(--stop-ink); box-shadow: 0 6px 12px -8px rgba(31, 33, 55, .6);
  font: 800 .84rem/1.25 var(--font-body); letter-spacing: .01em; text-transform: none;
}
.stop-pill .stop-ic { width: 16px; height: 16px; color: var(--stop-deep); }
.stop-pill.stop-eyebrow { color: var(--stop-ink); }

/* ------------------------------------------------------------ wide screens */
@media (min-width: 1024px) {
  .ndj-app[data-screen="lobby"], .ndj-app[data-screen="review"] { max-width: 1120px; }
  .ndj-app[data-screen="play"] { max-width: 1000px; }
}
@media (min-width: 600px) {
  .stop-screen--final .stop-actionbar__inner { flex-direction: row; }
  .stop-screen--final .stop-actionbar__inner > .btn { flex: 1 1 0; }
}

/* ------------------------------------------------------------ topbar extras */
.stop-tb { display: inline-flex; gap: 6px; flex: none; }
.stop-tb .ndj-topbar__btn { flex: none; }
.stop-invite { gap: 6px; color: var(--fg); }
.stop-invite .stop-ic { width: 19px; height: 19px; }
.stop-invite__txt { font-family: var(--font-display); font-weight: 600; }
.stop-helpbtn .stop-ic { width: 22px; height: 22px; }
@media (max-width: 420px) { .stop-invite__txt { display: none; } .stop-invite { padding: 0 8px; } }

/* ------------------------------------------------------------ sticky action bar */
.stop-actionbar {
  position: sticky; bottom: 0; z-index: 30;
  margin: 4px -16px -40px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--stop-glass);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--stop-edge); box-shadow: 0 -14px 24px -22px rgba(43, 45, 66, .45);
}
.stop-actionbar__inner { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.stop-actionbar__inner[hidden] { display: none; }

/* ------------------------------------------------------------ lobby */
.stop-lobby { display: grid; gap: 16px; align-items: start; }
@media (min-width: 1024px) { .stop-lobby { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; } }
.stop-leave { display: flex; justify-content: center; margin-top: 6px; margin-bottom: -8px; }
.stop-settings { display: flex; flex-direction: column; gap: 18px; }
.stop-settings__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.stop-lock { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--bg-2); color: var(--fg-2); font-size: .82rem; font-weight: 800; }
.stop-lock .stop-ic { width: 15px; height: 15px; }
.stop-setting { display: flex; flex-direction: column; gap: 10px; }
.stop-setting__label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; }
.stop-setting__count { font-size: .9rem; color: var(--fg-2); background: var(--bg-2); padding: 2px 10px; border-radius: 999px; }
.stop-help { color: var(--fg-2); font-size: .86rem; margin-top: -2px; }
.stop-prefs { display: flex; flex-direction: column; gap: 12px; }
.stop-howbtn { min-height: 52px; }

/* ready-made category sets */
.stop-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .stop-presets { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stop-preset {
  -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 6px 10px; border-radius: 999px; text-align: center;
  border: 1.5px solid var(--stop-edge); background: var(--card-2); color: var(--fg); cursor: pointer;
  font: 600 .98rem var(--font-display); box-shadow: 0 8px 14px -12px rgba(43, 45, 66, .45), var(--stop-hi);
  transition: background .2s ease, color .2s ease, transform .12s ease;
}
.stop-preset:active { transform: scale(.96); }
.stop-preset .stop-ic { width: 18px; height: 18px; color: var(--stop-deep); }
.stop-preset.is-on { background: var(--stop-hero); color: #fff; border-color: transparent; text-shadow: 0 1px 2px rgba(150, 40, 10, .35); box-shadow: 0 10px 16px -10px rgba(255, 107, 74, .9), var(--stop-sheen); }
.stop-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .stop-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stop-chip {
  --c: var(--coral);
  -webkit-appearance: none; appearance: none;
  display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 8px 6px 6px;
  border-radius: 16px; border: 1.5px solid var(--stop-edge); background: var(--card-2); color: var(--fg);
  font: 800 .9rem/1.15 var(--font-body); text-align: left; cursor: pointer;
  box-shadow: 0 8px 14px -12px rgba(43, 45, 66, .45), var(--stop-hi);
  transition: background .2s ease, border-color .2s ease, transform .12s ease;
}
.stop-chip:active { transform: scale(.97); }
.stop-chip__icon {
  position: relative; width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); transition: background .2s, color .2s;
}
.stop-chip__icon .stop-ic { width: 19px; height: 19px; }
.stop-chip__txt { flex: 1; min-width: 0; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.stop-chip__check {
  position: absolute; right: -6px; bottom: -6px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: #fff; border: 2px solid var(--card); transform: scale(0); transition: transform .2s cubic-bezier(.2, 1.5, .4, 1);
}
.stop-chip__check .ndj-ic { width: 11px; height: 11px; }
.stop-chip.is-on { border-color: color-mix(in srgb, var(--c) 60%, transparent); background: color-mix(in srgb, var(--c) 12%, var(--card)); }
.stop-chip.is-on .stop-chip__icon { background: var(--c); color: #fff; box-shadow: 0 6px 10px -6px color-mix(in srgb, var(--c) 80%, #000), inset 0 1px 0 rgba(255, 255, 255, .35); }
.stop-chip.is-on .stop-chip__check { transform: scale(1); }
.stop-chip:not(.is-on):not(.is-static) .stop-chip__txt { color: var(--fg-2); }
.stop-chips--static { display: flex; flex-wrap: wrap; gap: 8px; }
.stop-chips--center { justify-content: center; }
.stop-chip.is-static { min-height: 38px; padding: 4px 12px 4px 4px; border-radius: 999px; cursor: default; font-size: .88rem; }
.stop-chip.is-static:active { transform: none; }
.stop-chip.is-static .stop-chip__icon { width: 28px; height: 28px; border-radius: 50%; }
.stop-chip.is-static .stop-chip__icon .stop-ic { width: 16px; height: 16px; }

.stop-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; border-radius: 18px; background: var(--bg-2); box-shadow: inset 0 2px 4px rgba(43, 45, 66, .06); }
.stop-seg__btn {
  -webkit-appearance: none; appearance: none; min-height: 48px; border: 0; border-radius: 14px; background: transparent; cursor: pointer;
  font: 600 1.05rem var(--font-display); color: var(--fg-2); transition: background .2s, color .2s, box-shadow .2s;
}
.stop-seg__btn.is-on { background: var(--stop-hero); color: #fff; text-shadow: 0 1px 2px rgba(150, 40, 10, .35); box-shadow: 0 10px 16px -10px rgba(255, 107, 74, .9), var(--stop-sheen); }

.stop-switch {
  -webkit-appearance: none; appearance: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px;
  padding: 10px 14px; border-radius: 18px; border: 1.5px solid var(--stop-edge); background: var(--card-2); color: var(--fg); text-align: left; cursor: pointer;
  box-shadow: 0 8px 14px -12px rgba(43, 45, 66, .45), var(--stop-hi);
}
.stop-switch__txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.stop-switch__txt strong { font: 600 1.02rem var(--font-display); }
.stop-switch__txt small { color: var(--fg-2); font-weight: 800; font-size: .8rem; letter-spacing: .08em; }
.stop-switch--pref .stop-switch__txt small { font-weight: 700; font-size: .84rem; letter-spacing: 0; line-height: 1.3; }
.stop-switch__track { position: relative; flex: none; width: 54px; height: 32px; border-radius: 999px; background: color-mix(in srgb, var(--fg-2) 32%, transparent); box-shadow: inset 0 1px 3px rgba(0, 0, 0, .2); transition: background .2s; }
.stop-switch__track i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .28); transition: transform .2s ease; }
.stop-switch.is-on .stop-switch__track { background: var(--stop-hero); }
.stop-switch.is-on .stop-switch__track i { transform: translateX(22px); }

.stop-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stop-fact { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 16px; background: var(--bg-2); text-align: center; border: 1px solid var(--stop-edge); box-shadow: var(--stop-hi); }
.stop-fact__icon { color: var(--coral); }
.stop-fact__value { font: 700 1.3rem var(--font-display); }
.stop-fact__label { font-size: .78rem; color: var(--fg-2); font-weight: 800; line-height: 1.2; }

.stop-howto__list { margin: 0; padding: 0 4px 0 22px; display: flex; flex-direction: column; gap: 8px; }
.stop-howto__list li::marker { font-family: var(--font-display); font-weight: 700; color: var(--stop-deep); }
.stop-howto__pts { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px 0 4px; font-size: .9rem; font-weight: 700; color: var(--fg-2); }
.stop-howto__pts > span { display: inline-flex; align-items: center; gap: 6px; }

/* ------------------------------------------------------------ letter tile + banners */
.stop-letter {
  flex: none; display: grid; place-items: center; width: 78px; height: 78px; border-radius: 24px;
  background: var(--stop-hero);
  color: #fff; font: 700 3.1rem/1 var(--font-display); text-shadow: 0 2px 4px rgba(120, 20, 20, .22);
  box-shadow: 0 16px 24px -14px rgba(240, 80, 47, .7), var(--stop-sheen), inset 0 -3px 0 rgba(0, 0, 0, .08);
}
.stop-letter--md { width: 64px; height: 64px; border-radius: 20px; font-size: 2.5rem; }

.stop-banner {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px 22px; border-radius: 26px; overflow: hidden;
  color: #fff; background: var(--stop-hero); border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: var(--stop-glow), var(--stop-sheen);
  transition: background .3s ease;
}
.stop-banner .stop-letter { width: 66px; height: 66px; border-radius: 21px; font-size: 2.7rem; background: #fff; color: var(--stop-deep); text-shadow: none; box-shadow: 0 10px 16px -10px rgba(120, 30, 10, .65), inset 0 -3px 0 rgba(200, 56, 26, .12); }
.stop-banner__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.stop-banner__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.stop-banner__title { font: 700 1.3rem/1.15 var(--font-display); color: #fff; text-shadow: 0 1px 3px rgba(150, 40, 10, .4); min-width: 0; overflow-wrap: anywhere; }
.stop-banner__title.is-cap { font-size: 1.08rem; }
/* the title always takes two lines' room (and never more): its text changes while typing ("Escribe con la P",
   "¡Todo listo!", a caption) and a banner that grew and shrank made the whole board jump */
.stop-head .stop-banner__title { min-height: 2.99rem; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.stop-head .stop-banner__pills { flex-wrap: nowrap; }
.stop-head .stop-banner__pills .stop-pill { white-space: nowrap; }
.stop-banner__title--xl { font-size: clamp(1.6rem, 7vw, 2rem); }
.stop-banner__eyebrow { font: 800 .8rem/1.2 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 2px rgba(150, 40, 10, .45); }
.stop-banner__pills { display: flex; flex-wrap: wrap; gap: 6px; }
.stop-banner__pills .stop-pill[hidden] { display: none; }
.stop-banner--ready { background: var(--stop-teal); box-shadow: 0 18px 30px -18px rgba(15, 163, 148, .85), var(--stop-sheen); }
.stop-banner--ready .stop-letter { color: #0B7A6C; }
.stop-banner--wait { background: var(--stop-navy); border-color: rgba(255, 255, 255, .12); box-shadow: 0 18px 30px -18px rgba(31, 33, 55, .9), inset 0 1px 0 rgba(255, 255, 255, .14); }
.stop-banner--wait .stop-letter { color: #1F2137; }
.stop-banner--wait .stop-banner__title { text-shadow: none; }
.stop-clockbox {
  flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px 4px 9px; border-radius: 999px; background: #fff; color: var(--stop-ink);
  box-shadow: 0 8px 14px -9px rgba(31, 33, 55, .7);
}
.stop-clockbox .stop-ic { width: 20px; height: 20px; color: var(--stop-deep); }
.stop-clock { font: 700 1.45rem/1.15 var(--font-display); letter-spacing: .02em; transition: color .3s; }
.stop-clock.is-low { color: #D4281D; animation: stop-throb 1s ease-in-out infinite; }
.stop-head.is-low .stop-clockbox { box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 8px 14px -9px rgba(31, 33, 55, .7); }
.stop-hint.is-ready { color: #0B6B3F; }

/* ------------------------------------------------------------ reveal (letter roulette) */
.stop-reveal {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; overflow: hidden;
  min-height: calc(100vh - var(--stop-top) - 72px); min-height: calc(100dvh - var(--stop-top) - 72px); padding: 22px 16px 26px; border-radius: 30px;
  color: #fff; background: var(--stop-navy); box-shadow: 0 30px 50px -30px rgba(31, 33, 55, .85), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.stop-reveal > :not(.stop-reveal__stage) { position: relative; z-index: 1; }
.stop-reveal__round { padding: 5px 14px; border-radius: 999px; background: #fff; color: var(--stop-ink); font: 800 .88rem/1.2 var(--font-body); box-shadow: 0 8px 14px -9px rgba(0, 0, 0, .6); }
.stop-reveal__title { font-size: clamp(1.7rem, 7vw, 2.3rem); font-weight: 700; color: #fff; }
.stop-reveal__stage { position: relative; isolation: isolate; margin: 26px 0 16px; display: grid; place-items: center; }
.stop-reveal__stage::before {
  content: ""; position: absolute; inset: -46%; z-index: -1; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 154, 60, .55) 0 9deg, transparent 9deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 28%, transparent 68%);
  mask: radial-gradient(circle, #000 28%, transparent 68%);
  opacity: .5; animation: stop-rot 9s linear infinite; transition: opacity .3s ease;
}
.stop-reveal__stage:has(.is-landed)::before { opacity: 1; }
.stop-reveal__tile {
  position: relative; overflow: hidden; width: min(54vw, 210px); aspect-ratio: 1; border-radius: 26%; display: grid; place-items: center;
  background: var(--stop-hero);
  box-shadow: 0 30px 44px -26px rgba(255, 107, 74, .9), 0 0 0 5px rgba(255, 255, 255, .16), var(--stop-sheen), inset 0 -6px 0 rgba(0, 0, 0, .08);
}
.stop-reveal__letter { color: #fff; font: 700 clamp(6rem, 34vw, 8.6rem)/1 var(--font-display); text-shadow: 0 4px 10px rgba(120, 20, 20, .25); }
.stop-reveal__letter.is-bump { animation: stop-bump .12s ease-out; }
/* the reel: the letter that just went by above and the next one coming below, faded */
.stop-reveal__ghost { position: absolute; left: 0; right: 0; text-align: center; color: #fff; opacity: .3; font: 700 clamp(2.6rem, 14vw, 3.6rem)/1 var(--font-display); filter: blur(1px); pointer-events: none; }
.stop-reveal__ghost--up { top: -4%; }
.stop-reveal__ghost--down { bottom: -4%; }
.stop-reveal__tile.is-landed { animation: stop-land .55s cubic-bezier(.2, 1.5, .4, 1) both; }
.stop-reveal__hint { font: 600 1.4rem var(--font-display); color: rgba(255, 255, 255, .8); min-height: 1.6em; }
.stop-reveal__stage:has(.is-landed) + .stop-reveal__hint { color: #fff; }
.stop-reveal .stop-chip.is-static { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff; box-shadow: none; }

/* ------------------------------------------------------------ board */
.stop-head { position: sticky; top: calc(var(--stop-top) + 8px); z-index: 20; }
.stop-timerbar { position: absolute; left: 14px; right: 14px; bottom: 8px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .28); }
.stop-timerbar > i { background: #fff; }
.stop-timerbar.is-low > i { background: #FFE66D; }
.stop-banner--wait .stop-timerbar { background: rgba(255, 255, 255, .14); }

.stop-fields { display: grid; gap: 12px; }
@media (min-width: 720px) { .stop-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.stop-field {
  --c: var(--coral);
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 80px;
  /* a roomy right edge: the quick-reactions tab of the room sits there */
  padding: 10px 20px 10px 10px; border-radius: 22px; cursor: text;
  background: var(--card); border: 2px solid var(--stop-edge); box-shadow: 0 14px 22px -18px rgba(43, 45, 66, .5), var(--stop-hi);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.stop-field:focus-within { border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent), 0 14px 22px -18px rgba(43, 45, 66, .5); }
.stop-field.is-ok { border-color: color-mix(in srgb, var(--green) 60%, transparent); background: color-mix(in srgb, var(--green) 6%, var(--card)); }
.stop-field.is-bad { border-color: color-mix(in srgb, var(--orange) 80%, transparent); background: var(--stop-bad-bg); }
/* easy mode: the box that comes next is lit */
.stop-field.is-next:not(:focus-within) { border-color: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent), 0 14px 22px -18px rgba(43, 45, 66, .5); }
.stop-field__icon {
  width: 46px; height: 46px; border-radius: 15px; flex: none; display: grid; place-items: center;
  background: var(--c) linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 60%); color: #fff;
  box-shadow: 0 8px 12px -8px color-mix(in srgb, var(--c) 80%, #000), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.stop-field__icon .stop-ic { width: 25px; height: 25px; }
.stop-field__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.stop-field__label { display: flex; align-items: baseline; gap: 8px; min-width: 0; font: 800 .78rem/1.3 var(--font-body); letter-spacing: .07em; text-transform: uppercase; color: var(--fg-2); }
.stop-field__label > span:first-child { flex: none; }
.stop-field__why { color: var(--stop-bad-fg); letter-spacing: .02em; text-transform: none; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stop-input {
  width: 100%; min-width: 0; min-height: 38px; padding: 2px 0; border: 0; outline: none; background: transparent;
  font: 800 1.25rem var(--font-body); color: var(--fg); border-radius: 6px;
}
.stop-input::placeholder { color: var(--fg-2); opacity: .7; font-weight: 600; }
/* keep the focused field clear of the sticky header and STOP bar when the phone keyboard scrolls the page */
.stop-input { scroll-margin-top: calc(var(--stop-top) + 150px); scroll-margin-bottom: 170px; }
.stop-input:read-only { cursor: default; }
.stop-field__state {
  -webkit-appearance: none; appearance: none; padding: 0; cursor: pointer;
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: transparent;
  border: 2px dashed color-mix(in srgb, var(--fg-2) 35%, transparent); color: transparent; transition: all .2s ease;
}
.stop-field__state .ndj-ic, .stop-field__state .stop-ic { width: 19px; height: 19px; }
.stop-field.is-ok .stop-field__state { border: 0; background: linear-gradient(180deg, #2DD683, #14A860); color: #fff; box-shadow: 0 6px 10px -6px rgba(18, 128, 74, .8), inset 0 1px 0 rgba(255, 255, 255, .4); animation: ndj-pop .25s ease both; }
.stop-field.is-bad .stop-field__state { border: 0; background: color-mix(in srgb, var(--orange) 28%, transparent); color: var(--stop-bad-fg); }
.stop-screen--play.is-locked .stop-field { cursor: default; opacity: .92; }
.stop-screen--play.is-locked .stop-field:focus-within { box-shadow: 0 14px 22px -18px rgba(43, 45, 66, .5); }
.stop-screen--play.is-locked .stop-field__state { pointer-events: none; }
/* easy mode: bigger boxes, bigger words */
.stop-screen--play.is-easy .stop-field { min-height: 88px; }
.stop-screen--play.is-easy .stop-input { font-size: 1.4rem; min-height: 42px; }
.stop-screen--play.is-easy .stop-field__state { width: 42px; height: 42px; }

.stop-actionbar--play .stop-actionbar__inner { gap: 8px; }
.stop-dots { display: flex; justify-content: center; gap: 7px; flex: none; }
.stop-dots i { width: 11px; height: 11px; border-radius: 50%; background: color-mix(in srgb, var(--fg-2) 25%, transparent); transition: background .2s, transform .2s; }
.stop-dots i.is-on { background: var(--c); transform: scale(1.2); }

/* the big button: a stop sign you cannot miss */
.stop-btn {
  -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 72px; padding: 10px 20px; border-radius: 22px;
  font: 700 1.9rem/1 var(--font-display); letter-spacing: .05em; color: #fff;
  background: linear-gradient(180deg, #FF7A5C 0%, #F0402F 100%);
  box-shadow: 0 18px 28px -14px rgba(226, 62, 46, .85), var(--stop-sheen), inset 0 -4px 0 rgba(0, 0, 0, .13);
  text-shadow: 0 2px 4px rgba(120, 20, 20, .35);
  transition: transform .12s ease, filter .2s ease, box-shadow .2s ease;
}
.stop-btn__ic { width: 42px; height: 42px; flex: none; filter: drop-shadow(0 2px 3px rgba(120, 20, 20, .3)); }
.stop-btn:active { transform: translateY(1px) scale(.98); }
.stop-btn.is-ready { animation: stop-ready 1.5s ease-in-out infinite; }
.stop-btn[aria-disabled="true"] {
  color: var(--fg-2); background: var(--bg-2); text-shadow: none; cursor: not-allowed;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.stop-btn[aria-disabled="true"] .stop-btn__ic { filter: none; }
.stop-btn[aria-disabled="true"] .stop-btn__ic path:first-child { fill: var(--fg-2); stroke: var(--fg-2); }
.stop-btn[aria-disabled="true"] .stop-btn__ic path:last-child { stroke: var(--bg-2); }

.stop-collect { flex-direction: row !important; align-items: center; justify-content: center; gap: 14px; min-height: 72px; padding: 10px 18px; border-radius: 22px; color: #fff; background: var(--stop-navy); box-shadow: 0 16px 26px -16px rgba(31, 33, 55, .9), inset 0 1px 0 rgba(255, 255, 255, .14); }
.stop-collect__txt { display: flex; flex-direction: column; line-height: 1.3; }
.stop-collect__txt strong { font: 600 1.15rem var(--font-display); }
.stop-collect__txt span { color: rgba(255, 255, 255, .85); font-weight: 700; font-size: .92rem; }
.stop-spinner { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .22); border-top-color: var(--stop-brand-2); animation: stop-rot .8s linear infinite; }

/* ------------------------------------------------------------ playful captions */
.stop-quip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin: 0; padding: 7px 18px 7px 10px; border-radius: 999px;
  background: #fff; color: var(--stop-ink); box-shadow: 0 14px 22px -14px rgba(31, 33, 55, .65), inset 0 1px 0 #fff;
  font: 700 1.02rem/1.2 var(--font-display); text-align: left;
}
.stop-quip__e { font: 400 1.55rem/1 var(--stop-emoji); font-style: normal; flex: none; animation: stop-emojipop .6s cubic-bezier(.2, 1.8, .4, 1) both; }
.stop-quip--pop { animation: ndj-pop .35s ease both; }
.stop-quipslot { display: flex; justify-content: center; margin-top: -4px; }
.stop-quipslot:empty { display: none; }
.stop-quip--burst { animation: ndj-in .35s .35s ease both; }

/* ------------------------------------------------------------ STOP burst */
.stop-burst {
  position: fixed; inset: 0; z-index: 250; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 24px; pointer-events: none;
  background: radial-gradient(circle at 50% 44%, rgba(255, 107, 74, .5), rgba(31, 33, 55, .86) 72%);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: ndj-fade .16s ease both;
}
.stop-burst.is-time { background: radial-gradient(circle at 50% 44%, rgba(255, 154, 60, .5), rgba(31, 33, 55, .86) 72%); }
.stop-burst.is-out { opacity: 0; transition: opacity .35s ease; }
.stop-burst__sign { width: min(60vw, 250px); aspect-ratio: 1; filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .4)); animation: stop-slam .6s cubic-bezier(.2, 1.35, .4, 1) both; }
.stop-burst__sign svg { width: 100%; height: 100%; display: block; }
.stop-burst__who {
  max-width: 92vw; text-align: center; overflow-wrap: anywhere;
  font: 700 clamp(1.6rem, 7vw, 2.4rem)/1.15 var(--font-display); color: #fff; text-shadow: 0 3px 14px rgba(0, 0, 0, .4);
  animation: ndj-in .35s .18s ease both;
}
.stop-quake { animation: stop-quake .4s ease; }

/* ------------------------------------------------------------ wait */
.stop-wait { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 28px 20px; }
.stop-wait__icon { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: var(--stop-navy); box-shadow: 0 14px 22px -14px rgba(31, 33, 55, .8), inset 0 1px 0 rgba(255, 255, 255, .2); }
.stop-wait__icon .stop-ic { width: 34px; height: 34px; }

/* ------------------------------------------------------------ review */
.stop-rhead { flex-wrap: wrap; padding-bottom: 14px; }
.stop-rhead__txt { gap: 4px; }
.stop-rhead__by { flex: 1 1 100%; justify-content: center; flex-wrap: wrap; overflow-wrap: anywhere; row-gap: 0; }
.stop-rhead__left { color: var(--fg-2); font-weight: 700; }
.stop-rhead__left::before { content: "·"; margin-right: 6px; }
.stop-banner__title--xl { overflow-wrap: normal; }
.stop-mine { flex: none; display: flex; flex-direction: column; align-items: center; padding: 8px 14px; border-radius: 20px; background: #fff; color: var(--stop-ink); box-shadow: 0 10px 16px -10px rgba(31, 33, 55, .65); }
.stop-mine strong { font: 700 1.7rem/1.1 var(--font-display); color: var(--stop-deep); }
.stop-mine span { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--stop-ink); }
.stop-review { display: grid; gap: 16px; align-items: start; }
/* phones: the answers first (the head already shows my points), the scoreboard after them */
.stop-review__side { order: 2; }
@media (min-width: 1024px) {
  .stop-review { grid-template-columns: 340px minmax(0, 1fr); gap: 20px; }
  .stop-review__side { grid-column: 1; grid-row: 1; position: sticky; top: calc(var(--stop-top) + 12px); }
  .stop-review__main { grid-column: 2; grid-row: 1; }
}
.stop-tip { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: color-mix(in srgb, var(--stop-brand) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--stop-brand) 26%, transparent); font-weight: 800; font-size: 1rem; line-height: 1.3; box-shadow: var(--stop-hi); }
.stop-tip .stop-ic { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 12px; color: #fff; background: var(--stop-hero); box-shadow: var(--stop-sheen); }
.stop-cats { display: grid; gap: 14px; }
@media (min-width: 1200px) { .stop-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.stop-cat { --c: var(--coral); background: var(--card); border: 1px solid var(--stop-edge); border-radius: 22px; box-shadow: 0 20px 34px -28px rgba(43, 45, 66, .5), var(--stop-hi); overflow: hidden; }
.stop-cat__head {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 1.08rem;
  background: color-mix(in srgb, var(--c) 13%, var(--card)); border-bottom: 1px solid var(--stop-edge);
}
.stop-cat__icon, .stop-ans__cat {
  width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center; color: #fff;
  background: var(--c) linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 60%);
  box-shadow: 0 8px 12px -8px color-mix(in srgb, var(--c) 80%, #000), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.stop-cat__icon .stop-ic, .stop-ans__cat .stop-ic { width: 19px; height: 19px; }
.stop-anslist { list-style: none; margin: 0; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.stop-ans {
  -webkit-appearance: none; appearance: none;
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 58px; padding: 8px 18px 8px 10px;   /* room for the reactions tab at the right edge */
  border: 0; border-radius: 14px; background: transparent; color: inherit; font: inherit; text-align: left;
  transition: background .15s ease;
}
button.stop-ans { cursor: pointer; }
button.stop-ans:hover { background: var(--card-2); }
button.stop-ans:active { background: var(--bg-2); }
.stop-ans.is-me { background: linear-gradient(90deg, color-mix(in srgb, var(--coral) 10%, transparent), transparent 85%); }
.stop-ans__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.stop-ans__who { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 800; color: var(--fg-2); overflow-wrap: anywhere; }
.stop-ans__who .ndj-badge { font-size: .62rem; padding: 1px 6px; }
.stop-ans__line { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; min-width: 0; }
.stop-ans__text { font-weight: 800; font-size: 1.1rem; line-height: 1.25; overflow-wrap: anywhere; min-width: 0; }
.stop-ans.is-empty .stop-ans__text { font-style: italic; font-weight: 600; color: var(--fg-2); font-size: .95rem; }
.stop-ans.is-out .stop-ans__text { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--stop-red); color: var(--fg-2); }
.stop-ans__tags { display: flex; flex-wrap: wrap; gap: 4px; }
.stop-ans__tags:empty { display: none; }
.stop-tag { display: inline-flex; padding: 1px 8px; border-radius: 999px; font-size: .74rem; font-weight: 800; white-space: nowrap; }
.stop-cat--solo .stop-cat__head { background: color-mix(in srgb, var(--coral) 10%, var(--card)); }
.stop-cat__icon--letter { font: 700 1.25rem/1 var(--font-display); background: var(--stop-hero); }
.stop-cat--solo { grid-column: 1 / -1; }
.stop-cat--solo .stop-anslist { gap: 0; }
.stop-cat--solo .stop-anslist li + li .stop-ans { border-top: 1px solid var(--line); border-radius: 0; }
.stop-board .ndj-player, .stop-rank .ndj-player { animation: none; }
.stop-tag--rep { background: var(--stop-mid-bg); color: var(--stop-mid-fg); }
.stop-tag--out { background: color-mix(in srgb, var(--stop-red) 16%, var(--card)); color: var(--stop-bad-fg); }
.stop-tag--bad { background: var(--stop-bad-bg); color: var(--stop-bad-fg); }
.stop-pts { flex: none; min-width: 52px; padding: 5px 8px; border-radius: 999px; text-align: center; font: 700 1rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.stop-pts--100 { background: var(--stop-ok-bg); color: var(--stop-ok-fg); }
.stop-pts--50 { background: var(--stop-mid-bg); color: var(--stop-mid-fg); }
.stop-pts--0 { background: var(--bg-2); color: var(--fg-2); }
.stop-vote {
  flex: none; display: inline-flex; align-items: center; gap: 4px; min-width: 44px; height: 38px; padding: 0 9px; justify-content: center;
  border-radius: 999px; border: 1px solid var(--line); color: var(--fg-2); font-size: .84rem; font-weight: 800; transition: all .15s ease;
}
.stop-vote .stop-ic { width: 17px; height: 17px; }
.stop-vote.has-votes { border-color: color-mix(in srgb, var(--stop-red) 45%, transparent); color: var(--stop-bad-fg); }
.stop-ans[aria-pressed="true"] .stop-vote { background: var(--stop-red); border-color: var(--stop-red); color: #fff; }

/* ------------------------------------------------------------ final: the hero card with the podium */
.stop-final {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 22px 14px 24px; border-radius: 30px; overflow: hidden;
  color: #fff; background: var(--stop-hero); border: 1px solid rgba(255, 255, 255, .25); box-shadow: 0 26px 40px -24px rgba(255, 107, 74, .85), var(--stop-sheen);
}
.stop-final__head { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; max-width: 100%; }
.stop-final__trophy { width: 68px; height: 68px; border-radius: 24px; display: grid; place-items: center; color: #E8890C; background: #fff; box-shadow: 0 16px 24px -12px rgba(120, 30, 10, .7), inset 0 -3px 0 rgba(232, 137, 12, .15); animation: ndj-float 4s ease-in-out infinite; }
.stop-final__trophy .stop-ic { width: 38px; height: 38px; }
.stop-final__title { font-size: clamp(2rem, 9vw, 2.7rem); font-weight: 700; overflow-wrap: anywhere; color: #fff; text-shadow: 0 2px 6px rgba(150, 40, 10, .45); }
.stop-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; width: 100%; max-width: 480px; margin: 4px auto 0; }
.stop-podium__col { position: relative; grid-row: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; animation: ndj-in .5s ease both; }
.stop-podium__col--1 { grid-column: 2; animation-delay: .25s; }
.stop-podium__col--2 { grid-column: 1; animation-delay: .1s; }
.stop-podium__col--3 { grid-column: 3; animation-delay: .35s; }
.stop-podium__crown { color: #FFE66D; margin-bottom: -6px; filter: drop-shadow(0 3px 4px rgba(120, 30, 10, .5)); }
.stop-podium__crown .ndj-ic { width: 32px; height: 32px; }
.stop-podium__name {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 3px 10px; border-radius: 14px; background: #fff; color: var(--stop-ink);
  font-weight: 800; font-size: .9rem; text-align: center; overflow-wrap: anywhere; max-width: 100%; line-height: 1.2; box-shadow: 0 8px 12px -8px rgba(31, 33, 55, .6);
}
.stop-podium__name .ndj-badge { font-size: .62rem; }
.stop-podium__block {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 10px;
  border-radius: 18px 18px 8px 8px; color: #fff; font-family: var(--font-display); text-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  box-shadow: 0 20px 26px -18px rgba(31, 33, 55, .7), inset 0 1px 0 rgba(255, 255, 255, .25), inset 0 -3px 0 rgba(0, 0, 0, .1);
}
.stop-podium__rank { font-size: 2rem; font-weight: 700; line-height: 1; }
.stop-podium__pts { font-size: .95rem; font-weight: 600; }
.stop-podium__col--1 .stop-podium__block { height: 150px; background: #fff; color: var(--stop-deep); text-shadow: none; }
.stop-podium__col--1 .stop-podium__pts { color: var(--stop-ink); font-weight: 700; }
.stop-podium__col--2 .stop-podium__block { height: 112px; background: radial-gradient(circle at 30% 12%, #4A4E78, #262944 85%); }
.stop-podium__col--3 .stop-podium__block { height: 86px; background: radial-gradient(circle at 30% 12%, #3F4368, #1F2137 85%); }
.stop-podium--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 320px; }
.stop-podium--2 .stop-podium__col--1 { grid-column: 2; }
.stop-podium--2 .stop-podium__col--2 { grid-column: 1; }
.stop-podium--1 { grid-template-columns: minmax(0, 1fr); max-width: 170px; }
.stop-podium--1 .stop-podium__col--1 { grid-column: 1; }
.stop-record { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #fff; color: var(--stop-mid-fg); font-weight: 800; box-shadow: 0 10px 16px -10px rgba(31, 33, 55, .6); }
.stop-record .stop-ic { color: #E8890C; }
.stop-record.is-new { animation: ndj-pop .4s ease both; }
.stop-letters { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.stop-letters__label { font-size: .85rem; font-weight: 800; color: var(--fg-2); margin-right: 4px; }
.stop-letters__l { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #fff; font: 700 1.1rem var(--font-display); background: var(--stop-hero); box-shadow: 0 8px 12px -8px rgba(240, 80, 47, .6), inset 0 1px 0 rgba(255, 255, 255, .35); }
.stop-fam { margin: 12px 0 0; }

/* round by round (review side + final) */
.stop-histcard[hidden] { display: none; }
.stop-hist__scroll { overflow-x: auto; margin: 0 -6px; padding: 0 6px 4px; -webkit-overflow-scrolling: touch; }
.stop-hist { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: .95rem; }
.stop-hist th, .stop-hist td { padding: 6px 6px; text-align: center; white-space: nowrap; }
.stop-hist thead th { font-weight: 800; color: var(--fg-2); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.stop-hist .stop-hist__who { text-align: left; max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; padding-left: 10px; }
.stop-hist tbody .stop-hist__who { font-weight: 800; font-size: .95rem; letter-spacing: 0; text-transform: none; color: var(--fg); }
.stop-hist tbody tr > * { background: var(--card-2); }
.stop-hist tbody tr > :first-child { border-radius: 12px 0 0 12px; }
.stop-hist tbody tr > :last-child { border-radius: 0 12px 12px 0; }
.stop-hist tbody tr.is-me > * { background: color-mix(in srgb, var(--coral) 10%, var(--card)); }
.stop-hist__l { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; color: #fff; font: 700 1rem/1 var(--font-display); letter-spacing: 0; background: var(--stop-hero); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.stop-hist thead th.is-live .stop-hist__l { background: var(--stop-navy); }
.stop-hist td { font-weight: 800; color: var(--fg-2); }
.stop-hist td.is-top { color: var(--stop-ok-fg); }
.stop-hist td.is-live { font-style: italic; }
.stop-hist .stop-hist__tot { font-family: var(--font-display); font-weight: 700; color: var(--fg); padding-right: 12px; }
.stop-hist thead .stop-hist__tot { color: var(--fg-2); font-family: var(--font-body); font-weight: 800; }

/* ------------------------------------------------------------ help panel + invite sheet */
.stop-sheet { align-items: end; }
@media (min-width: 640px) { .stop-sheet { align-items: center; } }
.stop-sheet__box { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; border-radius: 24px; animation: ndj-pop .25s ease both; box-shadow: var(--shadow-lg); }
.stop-sheet__box > .ndj-share { box-shadow: none; }
.stop-sheet__close, .stop-modal__x {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--stop-edge); background: var(--card-2); color: var(--fg); box-shadow: var(--stop-hi), 0 3px 6px -4px rgba(43, 45, 66, .4);
}
.stop-sheet.is-out { opacity: 0; transition: opacity .18s; }
.stop-modal__box { width: min(480px, 100%); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: auto; padding: 18px 16px 16px; border-radius: 28px; display: flex; flex-direction: column; gap: 14px; }
.stop-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stop-modal__head .ndj-modal__title { margin: 0; font-size: 1.5rem; }
.stop-modal__x { position: static; flex: none; }
.stop-modal__prefs { display: flex; flex-direction: column; gap: 8px; }
.stop-modal__more { border-radius: 16px; background: var(--card-2); border: 1px solid var(--stop-edge); }
.stop-modal__more summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; cursor: pointer; list-style: none; font: 600 1.02rem var(--font-display); }
.stop-modal__more summary::-webkit-details-marker { display: none; }
.stop-modal__more summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2.5px solid var(--fg-2); border-bottom: 2.5px solid var(--fg-2); transform: rotate(45deg); transition: transform .2s; }
.stop-modal__more[open] summary::after { transform: rotate(-135deg); }
.stop-modal__more summary .stop-ic { color: var(--stop-deep); }
.stop-modal__more .stop-rules { padding: 0 14px 14px; }
.stop-guide__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.stop-guide__step { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 20px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--stop-edge); }
.stop-guide__n { position: absolute; left: -4px; top: -4px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; background: var(--stop-deep); font: 800 .9rem var(--font-display); box-shadow: 0 2px 5px rgba(0, 0, 0, .25); }
.stop-guide__ic { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; color: #fff; background: var(--stop-hero); box-shadow: 0 10px 14px -10px rgba(240, 80, 47, .8), var(--stop-sheen); }
.stop-guide__ic .stop-ic { width: 32px; height: 32px; }
.stop-guide__ic svg { width: 34px; height: 34px; }
.stop-guide__ic--letter { font: 700 2rem/1 var(--font-display); text-shadow: 0 2px 4px rgba(120, 20, 20, .25); }
.stop-guide__ic--stop { background: linear-gradient(180deg, #FF7A5C, #F0402F); }
.stop-guide__ic--gold { background: linear-gradient(180deg, #FFC857, #F7931E); }
.stop-guide__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stop-guide__txt strong { font: 700 1.12rem/1.15 var(--font-display); }
.stop-guide__txt span { font-size: .95rem; line-height: 1.3; color: var(--fg-2); }
/* on a short screen the way out stays in reach while the steps scroll */
.stop-modal__box .stop-guide__ok { flex: none; position: sticky; bottom: 0; z-index: 2; box-shadow: 0 0 0 10px var(--card), 0 14px 24px -12px rgba(240, 80, 47, .7), var(--stop-sheen); }

/* ------------------------------------------------------------ animations */
@keyframes stop-rot { to { transform: rotate(360deg); } }
@keyframes stop-bump { from { transform: translateY(-12%) scale(.92); opacity: .5; } to { transform: none; opacity: 1; } }
@keyframes stop-land { 0% { transform: scale(1.35) rotate(-6deg); } 55% { transform: scale(.93) rotate(2deg); } 100% { transform: none; } }
@keyframes stop-slam { 0% { transform: scale(2.6) rotate(-20deg); opacity: 0; } 55% { transform: scale(.9) rotate(4deg); opacity: 1; } 78% { transform: scale(1.05) rotate(-1deg); } 100% { transform: none; } }
@keyframes stop-quake { 0%, 100% { transform: none; } 20% { transform: translate(-6px, 2px); } 40% { transform: translate(5px, -3px); } 60% { transform: translate(-4px, 1px); } 80% { transform: translate(3px, 0); } }
@keyframes stop-throb { 0%, 100% { transform: none; } 50% { transform: scale(1.1); } }
@keyframes stop-emojipop { 0% { transform: scale(.2) rotate(-20deg); } 60% { transform: scale(1.25) rotate(8deg); } 100% { transform: none; } }
@keyframes stop-ready {
  0%, 100% { box-shadow: 0 18px 28px -14px rgba(226, 62, 46, .85), 0 0 0 0 rgba(255, 107, 74, .5), var(--stop-sheen), inset 0 -4px 0 rgba(0, 0, 0, .13); }
  50% { box-shadow: 0 18px 28px -14px rgba(226, 62, 46, .85), 0 0 0 10px rgba(255, 107, 74, 0), var(--stop-sheen), inset 0 -4px 0 rgba(0, 0, 0, .13); }
}
@media (prefers-reduced-motion: reduce) {
  .stop-btn.is-ready, .stop-clock.is-low, .stop-final__trophy, .stop-reveal__stage::before, .stop-quip__e, .stop-quip--pop, .stop-quip--burst,
  .stop-burst, .stop-burst__sign, .stop-burst__who, .stop-quake, .stop-reveal__tile.is-landed, .stop-reveal__letter.is-bump,
  .stop-podium__col, .stop-field.is-ok .stop-field__state, .stop-record.is-new, .stop-spinner { animation: none; }
  .stop-banner, .stop-field, .stop-chip, .stop-preset, .stop-switch__track i, .stop-burst.is-out { transition: none; }
}

/* poor-connection banner */
.stop-net { position: fixed; left: 50%; top: calc(var(--stop-top, 60px) + 6px); transform: translateX(-50%); z-index: 60; max-width: min(92vw, 28rem);
  padding: 8px 14px; border-radius: 999px; background: #3a2a12; color: #ffe9b8; font-size: .85rem; font-weight: 600; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); pointer-events: none; }
.stop-net[hidden] { display: none; }

/* ------------------------------------------------------------ small phones */
@media (max-width: 380px) {
  .stop-banner { padding: 10px 12px 15px; gap: 10px; }
  .stop-banner .stop-letter { width: 58px; height: 58px; font-size: 2.3rem; border-radius: 18px; }
  .stop-banner__title { font-size: 1.15rem; }
  .stop-clock { font-size: 1.25rem; }
  .stop-clockbox .stop-ic { display: none; }
  .stop-field { padding-right: 18px; }
}
@media (max-height: 700px) {
  .stop-banner .stop-letter { width: 54px; height: 54px; font-size: 2.1rem; border-radius: 17px; }
  .stop-banner { padding-top: 10px; }
  .stop-banner__main { gap: 6px; }
  .stop-banner__pills .stop-eyebrow { display: none; }   /* the round number gives way on short screens; the instruction stays */
  .stop-fields { gap: 10px; }
  .stop-field, .stop-screen--play.is-easy .stop-field { min-height: 70px; }
  .stop-btn, .stop-collect { min-height: 62px; }
  .stop-btn { font-size: 1.7rem; }
  .stop-btn__ic { width: 36px; height: 36px; }
  .stop-actionbar { padding-top: 10px; }
  .stop-reveal { padding-top: 16px; }
  .stop-reveal__stage { margin: 20px 0 10px; }
}

/* the phone keyboard is up (iOS slides it over the page): the banner scrolls with the boxes and the STOP bar waits until the keys go away */
.stop-screen--play.is-kb .stop-head { position: relative; top: auto; }
.stop-screen--play.is-kb .stop-actionbar--play { display: none; }

/* the shared reactions tab (reactions.js) rests on the right end of the hero card, under the clock: never on a category's check mark or the STOP button */
html { --ndj-fxtab-top: 150px; }
