/* ====================================================================
   Andre — Memory Maze
   Chunky pastel candy-land. Hard drop shadows. Space Grotesk + Bagel Fat One.
   ==================================================================== */

:root {
  /* Core palette */
  --mint:       #C9F2DF;   /* pastel mint background */
  --mint-deep:  #A8E5CB;   /* raised mint */
  --mint-ink:   #7FD2B0;   /* deeper mint for board wells */

  --violet:     #8B6FE8;   /* plump violet primary */
  --violet-hi:  #A088F0;
  --violet-lo:  #6F52D0;
  --violet-wash:#E8E0FE;

  --butter:    #FFE28A;    /* buttery yellow accent (stars/cores) */
  --butter-hi: #FFD75A;
  --butter-lo: #E8B830;

  --coral:     #FF9B8A;    /* soft coral hazards */
  --coral-hi:  #FF7A64;
  --coral-lo:  #E85D48;

  --chalk:     #FFFBF2;    /* chalk white */
  --chalk-2:   #FFF7E4;
  --ink:       #2A2438;    /* near-black */
  --ink-soft:  #4A4160;
  --ink-faint: #7A6F94;

  /* Shadow — hard, no blur */
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-md: 5px 5px 0 var(--ink);
  --shadow-lg: 6px 6px 0 var(--ink);
  --shadow-xl: 8px 8px 0 var(--ink);

  /* Radius */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Type */
  --font-display: 'Bagel Fat One', 'Space Grotesk', system-ui, sans-serif;
  --font-ui:      'Space Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overscroll-behavior: none;
}

body {
  background: var(--mint);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  overflow-x: hidden;
}

/* Subtle dotted candy pattern on the mint bg */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(139,111,232,0.08) 2px, transparent 3px),
    radial-gradient(circle at 80% 70%, rgba(255,226,138,0.12) 2px, transparent 3px),
    radial-gradient(circle at 60% 20%, rgba(255,155,138,0.08) 2px, transparent 3px);
  background-size: 80px 80px, 90px 90px, 70px 70px;
  background-position: 0 0, 40px 40px, 20px 60px;
  pointer-events: none;
  z-index: 0;
}

#root {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

/* ── Phone viewport container ─────────────────────────────── */
.phone-shell {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  padding: 10px 14px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

/* ====================================================================
   TYPE
   ==================================================================== */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
}

.h1 {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.h2 {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}

.h3 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}

.label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.body {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.body-sm {
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 500;
}

/* ====================================================================
   BLOCK — the core layout primitive: chunky, drop-shadowed, tactile
   ==================================================================== */
.block {
  background: var(--chalk);
  border: 3px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 20px;
  position: relative;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.block.tight  { padding: 14px; border-radius: var(--r-md); }
.block.big    { padding: 26px; border-radius: var(--r-xl); }
.block.violet { background: var(--violet); color: var(--chalk); }
.block.butter { background: var(--butter); }
.block.coral  { background: var(--coral); color: var(--chalk); }
.block.mint   { background: var(--mint-deep); }

/* ====================================================================
   BUTTONS
   ==================================================================== */
.btn {
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.005em;
  padding: 14px 22px;
  border: 3px solid var(--ink);
  border-radius: var(--r-md);
  background: var(--chalk);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.12s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  white-space: nowrap;
}

.btn:hover:not(:disabled) {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn:active:not(:disabled) {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: 2px 2px 0 var(--ink);
}

.btn.btn-primary   { background: var(--violet);  color: var(--chalk); }
.btn.btn-accent    { background: var(--butter); }
.btn.btn-danger    { background: var(--coral);   color: var(--chalk); }
.btn.btn-ghost     { background: transparent; box-shadow: none; border-color: transparent; color: var(--ink-soft); }
.btn.btn-ghost:hover:not(:disabled) { background: var(--chalk-2); box-shadow: none; transform: none; color: var(--ink); }

.btn.btn-lg { padding: 18px 26px; font-size: 17px; border-radius: var(--r-lg); }
.btn.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: var(--r-sm); border-width: 2px; box-shadow: 3px 3px 0 var(--ink); }
.btn.btn-sm:active:not(:disabled) { box-shadow: 1px 1px 0 var(--ink); transform: translate(2px, 2px); }

.btn.btn-block { width: 100%; }

/* ====================================================================
   INPUT
   ==================================================================== */
.input {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 16px;
  padding: 14px 16px;
  border: 3px solid var(--ink);
  border-radius: var(--r-md);
  background: var(--chalk);
  color: var(--ink);
  width: 100%;
  outline: none;
  box-shadow: inset 3px 3px 0 rgba(42,36,56,0.06);
  -webkit-appearance: none;
}

.input::placeholder { color: var(--ink-faint); font-weight: 400; }
.input:focus { background: var(--chalk-2); }

.input.code {
  font-family: var(--font-display);
  font-size: 28px;
  text-align: center;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 18px 16px;
  color: var(--violet);
}

/* ====================================================================
   TAB TOGGLE (segmented)
   ==================================================================== */
.tabs {
  display: grid;
  gap: 6px;
  padding: 5px;
  background: var(--chalk-2);
  border: 3px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: inset 2px 2px 0 rgba(42,36,56,0.06);
}
.tabs.t2 { grid-template-columns: 1fr 1fr; }
.tabs.t3 { grid-template-columns: repeat(3, 1fr); }
.tabs.t4 { grid-template-columns: repeat(4, 1fr); }

.tab {
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.005em;
  padding: 10px 6px;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.1s ease;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  justify-content: center;
}

.tab.active {
  background: var(--violet);
  color: var(--chalk);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.tab .tab-sub {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.75;
  letter-spacing: 0.02em;
}

/* ====================================================================
   TOP BAR (brand + mute)
   ==================================================================== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--violet);
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  display: grid;
  place-items: center;
  color: var(--chalk);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.brand-mark svg { width: 16px; height: 16px; }
.brand:hover .brand-mark { transform: rotate(-8deg); }

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.icon-btn {
  appearance: none;
  width: 28px; height: 28px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--chalk);
  box-shadow: 2px 2px 0 var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.icon-btn.muted { background: var(--ink); color: var(--chalk); }

/* ====================================================================
   STATUS PILL (the thing that tells you what's happening)
   ==================================================================== */
.status-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--chalk);
  border: 3px solid var(--ink);
  border-radius: var(--r-pill);
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  text-align: center;
  justify-content: center;
  min-height: 42px;
  font-variant-numeric: tabular-nums;
  transition: background 0.15s ease, color 0.15s ease;
}

.status-pill .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--violet);
  flex: none;
}

.status-pill.urgent {
  background: var(--coral);
  color: var(--chalk);
  animation: urgentPulse 0.5s ease-in-out infinite alternate;
}
.status-pill.urgent .dot { background: var(--chalk); }
.status-pill.go      { background: var(--butter); }

/* Disconnect button tucked into the status pill during match mode */
.status-pill .disconnect-btn {
  margin-left: auto;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.04em;
  border-width: 2px;
  box-shadow: 2px 2px 0 var(--ink);
}

/* ====================================================================
   GAME HEADER (scorecards)
   ==================================================================== */
.scorecards {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}

.scorecard {
  background: var(--chalk);
  border: 3px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.scorecard.active {
  background: var(--butter);
}

.scorecard .sc-role {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.scorecard .sc-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scorecard .sc-score {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
}

.scorecard.right { text-align: right; align-items: flex-end; }

.port-tag {
  background: var(--violet);
  color: var(--chalk);
  border: 3px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 86px;
}

.port-tag .pt-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}

.port-tag .pt-code {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.port-tag .pt-meta {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 2px;
}

/* ====================================================================
   GAME BOARD (5x7 grid)
   ==================================================================== */
.board-wrap {
  display: flex;
  justify-content: center;
  padding: 2px 0;
}

.board {
  --cell: 54px;
  display: grid;
  grid-template-columns: repeat(5, var(--cell));
  grid-template-rows: 10px repeat(7, var(--cell)) 10px;
  gap: 6px;
  padding: 10px;
  background: var(--mint-ink);
  border: 3px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
  touch-action: none;
}

/* Goal/start indicator strips baked into the board frame — replace the old
   GOAL/START pill labels above and below. Checker pattern for the finish line,
   violet bar for the start line. Each takes the same height as a thin gap so
   they barely consume vertical space. */
.board-strip {
  grid-column: 1 / -1;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  align-self: center;
}
.board-strip.goal {
  background:
    repeating-linear-gradient(
      90deg,
      var(--ink) 0 8px,
      var(--butter) 8px 16px
    );
}
.board-strip.start {
  background: linear-gradient(180deg, var(--violet-hi), var(--violet-lo));
  box-shadow: inset 0 -2px 0 rgba(42,36,56,0.25);
}

@media (max-width: 380px) {
  .board {
    --cell: 48px;
    grid-template-rows: 8px repeat(7, var(--cell)) 8px;
    gap: 5px;
    padding: 8px;
  }
  .board-strip { height: 8px; }
}

.cell {
  background: var(--chalk);
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  box-shadow: inset 0 -3px 0 rgba(42,36,56,0.15);
  cursor: pointer;
  transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.cell:hover {
  background: var(--chalk-2);
}

/* Top row — goal — buttery */
.cell.row-top {
  background: var(--butter);
  box-shadow: inset 0 -3px 0 var(--butter-lo);
}
.cell.row-top:hover { background: var(--butter-hi); }

/* Bottom row — start zone — subtle violet wash so the entry row reads as
   purposeful even before the execute-phase pulse kicks in. */
.cell.row-bottom {
  background: var(--violet-wash);
  box-shadow: inset 0 -3px 0 rgba(139,111,232,0.4);
}
.cell.row-bottom:hover { background: #D8CBFB; }

/* Bottom row start zone (when active) */
.cell.start-zone {
  background: var(--violet-wash);
  border-color: var(--violet);
  box-shadow: inset 0 -3px 0 rgba(139,111,232,0.5);
  cursor: pointer;
  animation: startZonePulse 1.4s ease-in-out infinite;
}
.cell.start-zone:hover { background: #D8CBFB; }
@keyframes startZonePulse {
  0%,100% { background: var(--violet-wash); border-color: var(--violet); }
  50%     { background: #C8B5FF; border-color: var(--violet-lo); }
}

/* Chosen start tile — clearly marked with a violet dot on a butter block */
.cell.start-mark {
  background: var(--butter);
  border-color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--butter-lo);
}
.cell.start-mark::after {
  content: '';
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: var(--violet);
  border: 2.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

/* Winning tile splash — the cell the runner reaches on y=0 */
.cell.win {
  background: var(--butter);
  border-color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--butter-lo), 0 0 0 0 rgba(232,184,48,0.6);
  animation: winSplash 0.42s cubic-bezier(0.2, 1.4, 0.4, 1) both;
  z-index: 2;
}
@keyframes winSplash {
  0%   { transform: scale(1);    box-shadow: inset 0 -3px 0 var(--butter-lo), 0 0 0 0 rgba(232,184,48,0.8); }
  45%  { transform: scale(1.26); box-shadow: inset 0 -3px 0 var(--butter-lo), 0 0 0 14px rgba(232,184,48,0); }
  70%  { transform: scale(0.94); }
  100% { transform: scale(1);    box-shadow: inset 0 -3px 0 var(--butter-lo), 0 0 0 0 rgba(232,184,48,0); }
}

/* Wall (Maker's placement / reveal) */
.cell.wall,
.cell.row-top.wall {
  background: var(--coral);
  border-color: var(--ink);
  box-shadow: inset 0 -4px 0 var(--coral-lo), 0 2px 0 rgba(232,93,72,0.25);
  color: var(--chalk);
  animation: wallPlace 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cell.row-top.wall:hover { background: var(--coral); }
.cell.row-bottom.wall:hover { background: var(--coral); }

@keyframes wallPlace {
  0%   { transform: scale(0.6); }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Hidden (during blind phase — was a wall but now camouflaged) */
.cell.hidden-wall {
  background: var(--chalk);
  border-color: var(--ink);
  box-shadow: inset 0 -3px 0 rgba(42,36,56,0.15);
}

/* Plumbob (bonus point) — Sims-style diamond that bobs in place */
.cell.star { }
.cell.star .star-glyph {
  width: 26px;
  height: 30px;
  color: #3993df;
  filter: drop-shadow(2px 2px 0 var(--ink));
  animation: plumbobBob 2.4s ease-in-out infinite;
}
@keyframes plumbobBob {
  0%,100% { transform: translateY(0)   scale(1); }
  50%     { transform: translateY(-3px) scale(1.04); }
}

/* Ghost path preview */
.cell.ghost {
  background: #b79fff;
  border-color: var(--violet);
  box-shadow: inset 0 -3px 0 var(--violet-lo);
}
.cell.ghost-danger {
  background: #FFD2C9;
  box-shadow: inset 0 -3px 0 rgba(232,93,72,0.3);
}
.cell.ghost-end {
  background: var(--violet);
  border-color: var(--ink);
  box-shadow: inset 0 -3px 0 var(--violet-lo);
}
.cell.ghost-end::after {
  content: '';
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: var(--chalk);
  border: 2.5px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

/* Invalid shake */
.cell.invalid {
  animation: shake 0.3s;
  background: var(--coral) !important;
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25%     { transform: translateX(-4px); }
  75%     { transform: translateX(4px); }
}

/* Cell pop on placement */
.cell.pop { animation: cellPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes cellPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* Balloon pop — spectator's idle-board fidget. Inflates with violet, then
   snaps to a coral burst before springing back to the chalk default. */
.cell.fidget-pop {
  animation: balloonPop 0.48s cubic-bezier(0.34, 1.4, 0.5, 1) forwards;
  z-index: 5;
}
@keyframes balloonPop {
  0%   { transform: scale(1);    background: var(--chalk); }
  35%  { transform: scale(1.28); background: var(--violet-hi); border-color: var(--violet); box-shadow: inset 0 -3px 0 var(--violet-lo); }
  55%  { transform: scale(0.55); background: var(--coral); border-color: var(--coral-lo); opacity: 0.4; }
  100% { transform: scale(1);    background: var(--chalk); opacity: 1; }
}

/* Runner dot */
.runner-dot {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--violet);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  transform: translate(-9999px, -9999px);
  transition: transform 280ms cubic-bezier(0.34, 1.16, 0.64, 1), opacity 140ms ease, background 0.15s ease;
}
.runner-dot.show { opacity: 1; }
.runner-dot.hit  { background: var(--coral); }

/* Board flash on hit */
.board.shake { animation: boardShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes boardShake {
  10%,90% { transform: translate(-2px, 0); }
  20%,80% { transform: translate(3px, -1px); }
  30%,50%,70% { transform: translate(-4px, 2px); }
  40%,60%     { transform: translate(4px, -2px); }
}

/* Board celebration on success — a single hop with a landing squish, plus
   two concentric rings (butter inner, violet outer) radiating outward via
   box-shadow spread. The bounce is a hair shorter than the splash so the
   ring lingers as the board settles back to rest. */
.board.celebrate {
  animation: boardCelebrate 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
             boardSplash 0.7s ease-out;
}
@keyframes boardCelebrate {
  0%   { transform: translateY(0)    scale(1); }
  40%  { transform: translateY(-14px) scaleX(1.04) scaleY(0.96); }
  72%  { transform: translateY(2px)  scaleX(0.97) scaleY(1.04); }
  100% { transform: translateY(0)    scale(1); }
}
@keyframes boardSplash {
  0%   { box-shadow: var(--shadow-lg),
                     0 0 0 0 rgba(255, 226, 138, 0.7),
                     0 0 0 0 rgba(139, 111, 232, 0.4); }
  100% { box-shadow: var(--shadow-lg),
                     0 0 0 24px rgba(255, 226, 138, 0),
                     0 0 0 36px rgba(139, 111, 232, 0); }
}

/* Particles */
.particle {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 30;
  animation: particleFly 700ms cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
  border: 1.5px solid var(--ink);
}
.particle.star   { background: var(--butter); }
.particle.wall   { background: var(--coral); }
.particle.win    { background: var(--violet); }
@keyframes particleFly {
  0%   { transform: translate(-50%, -50%) translate(0,0) rotate(0) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) translate(var(--tx,0), var(--ty,0)) rotate(var(--rot,90deg)) scale(0.3); opacity: 0; }
}

/* ====================================================================
   CONTROL ROWS (builder + runner)
   ==================================================================== */
.timer-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: var(--chalk);
  border: 3px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.timer-pill .timer-value {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: var(--violet);
  font-variant-numeric: tabular-nums;
}

.timer-pill.urgent { background: var(--coral); }
.timer-pill.urgent .timer-value,
.timer-pill.urgent .label { color: var(--chalk); }
.timer-pill.urgent .timer-value {
  animation: urgentPulse 0.5s ease-in-out infinite alternate;
}
@keyframes urgentPulse {
  from { opacity: 0.7; transform: scale(0.96); }
  to   { opacity: 1;   transform: scale(1.04); }
}

.stat-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px;
  background: var(--butter);
  border: 3px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.stat-chip .stat-count {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  color: var(--ink);
}

.kb-hint {
  text-align: center;
  font-size: 11px;
  color: var(--ink-faint);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 2px 0 0;
}

/* ====================================================================
   MODAL
   ==================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(42, 36, 56, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.18s ease forwards;
}
.modal-backdrop.show { display: flex; }

.modal {
  background: var(--chalk);
  border: 3px solid var(--ink);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  padding: 26px 22px 22px;
  max-width: 360px;
  width: 100%;
  position: relative;
  animation: modalPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalPop {
  0%   { transform: scale(0.8) translateY(20px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-title { margin: 0 0 8px; }
.modal-msg   { margin: 0 0 20px; white-space: pre-wrap; }

/* Stylized title tones — opt-in via tone="success" / tone="fail" on the
   showModal opts. Display font + drop-shadow ties them to the splash hero
   so post-run modals feel celebratory (or rueful) instead of generic. */
.modal-title.tone-success,
.modal-title.tone-fail {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.modal-title.tone-success {
  /* Violet on ink — same treatment as the splash logo. The earlier butter
     shadow blended into the chalk modal background and washed the title
     out; ink keeps it legible. */
  color: var(--violet);
  text-shadow: 3px 3px 0 var(--ink);
}
.modal-title.tone-fail {
  /* Mirror the success treatment: ink text + violet shadow (success is
     violet text + ink shadow). The coral shadow muddied letterforms and
     killed legibility — violet has the brightness contrast without the
     hue conflict. */
  color: var(--ink);
  text-shadow: 3px 3px 0 var(--violet);
}

/* Chunky score chips inside the modal — same visual language as the demo
   tour's score card, sized for modal context. Each row staggers in so the
   tally feels like it's being totted up live. */
.modal-breakdown {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 4px 0 18px;
}
.modal-breakdown .mb-row,
.modal-breakdown .mb-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 9px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  box-shadow: 2px 2px 0 var(--ink);
  font-weight: 700;
  font-size: 13px;
  animation: scoreSlide 0.32s cubic-bezier(0.34, 1.16, 0.64, 1) both;
}
.modal-breakdown .mb-row .mb-val,
.modal-breakdown .mb-total .mb-val {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.modal-breakdown .mb-row.pos { background: var(--mint-deep); }
.modal-breakdown .mb-row.neg { background: var(--coral); color: var(--chalk); }
.modal-breakdown .mb-total {
  background: var(--violet);
  color: var(--chalk);
  border-width: 2.5px;
  box-shadow: 3px 3px 0 var(--ink);
  /* Extra breathing room above the total so it reads as a punchline rather
     than another row in the list. */
  margin-top: 14px;
  padding: 12px 14px;
}
.modal-breakdown .mb-total .mb-val { font-size: 22px; }
.modal-breakdown > :nth-child(1) { animation-delay: 0.05s; }
.modal-breakdown > :nth-child(2) { animation-delay: 0.20s; }
.modal-breakdown > :nth-child(3) { animation-delay: 0.35s; }
.modal-breakdown > :nth-child(4) { animation-delay: 0.50s; }
.modal-breakdown > :nth-child(5) { animation-delay: 0.70s; }

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ====================================================================
   TOASTS
   ==================================================================== */
/* Selector matches the #toast-host element in index.html. The previous
   .toast-host class selector never matched, leaving the host as a
   static-positioned div at the bottom of body — toasts pushed page
   height, summoned a vertical scrollbar, and shifted the centered
   phone-shell ~10px left for the toast's lifetime. */
#toast-host {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: calc(100vw - 32px);
  width: max-content;
}
.toast {
  background: var(--chalk);
  border: 3px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 10px 16px;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  animation: toastIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 320px;
}
.toast.warn    { background: var(--butter); }
.toast.error   { background: var(--coral); color: var(--chalk); }
.toast.success { background: var(--mint-deep); }
@keyframes toastIn {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ====================================================================
   MASCOT / ANDRE CHROME
   ==================================================================== */
.mascot-bubble {
  position: relative;
  background: var(--chalk);
  border: 3px solid var(--ink);
  border-radius: var(--r-lg);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  max-width: 220px;
  line-height: 1.35;
}

.mascot-bubble::before {
  content: '';
  position: absolute;
  left: -3px;
  bottom: 18px;
  width: 16px; height: 16px;
  background: var(--chalk);
  border-left: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  transform: translateX(-50%) rotate(45deg);
}

/* In-game mascot overlay — fades out after Andre goes idle so he doesn't
   sit there blocking the board. */
.mascot-overlay {
  position: fixed;
  top: 72px;
  right: 10px;
  z-index: 50;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.mascot-overlay.faded { opacity: 0; }

/* Andre idle float */
@keyframes andreFloat {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%     { transform: translateY(-6px) rotate(2deg); }
}
.andre-idle { animation: andreFloat 3s ease-in-out infinite; }

/* Andre bounce */
@keyframes andreBounce {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-14px) scale(1.06, 0.94); }
}
.andre-bounce { animation: andreBounce 0.7s ease-in-out infinite; }

/* Andre squish (oof) */
@keyframes andreSquish {
  0%   { transform: scale(1,1); }
  30%  { transform: scale(1.2, 0.7); }
  60%  { transform: scale(0.9, 1.1); }
  100% { transform: scale(1,1); }
}
.andre-squish { animation: andreSquish 0.6s ease-out; }

/* ====================================================================
   MISC
   ==================================================================== */
.stack  { display: flex; flex-direction: column; gap: 12px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row    { display: flex; gap: 10px; align-items: center; }
.row-tight { display: flex; gap: 6px; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.join-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: stretch;
}
/* min-width:0 lets the input shrink below its intrinsic min-content width,
   which is what a bare <input> reports in a 1fr grid track. Without this,
   a wider sibling button (e.g. "Randomize") pushes the whole row past the
   block's interior and the centered phone-shell visibly shifts. */
.join-row .input.code { padding: 14px 12px; font-size: 22px; min-width: 0; }

.lb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 2px dashed var(--mint-ink);
  font-size: 14px;
}
.lb-row:last-child { border-bottom: none; }
.lb-row .lb-rank {
  font-family: var(--font-display);
  font-size: 16px;
  width: 26px;
  color: var(--ink-faint);
}
.lb-row.gold .lb-rank { color: var(--butter-lo); }
.lb-row .lb-name { flex: 1; font-weight: 600; }
.lb-row .lb-wins { font-weight: 700; color: var(--violet); }

/* Gauntlet rows show which seed produced the recorded best run, so two
   players on different seeds aren't silently compared against each other. */
.lb-row .lb-seed {
  margin-left: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  font-weight: 400;
  vertical-align: middle;
}

.lb-row.match-row { gap: 10px; padding: 10px 6px; }
.lb-row .match-side {
  flex: 1;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-row .match-side.right { text-align: right; }
.lb-row .match-side.won { color: var(--violet); font-weight: 800; }
.lb-row .match-vs {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--ink-faint);
  flex-shrink: 0;
}

/* Spectator's build-phase progress + Andre commentary card */
.build-progress {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
  background: var(--chalk);
  border: 3px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
}
.bp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.bp-label {
  font-weight: 700;
  font-size: 11px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.bp-count {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--violet);
  letter-spacing: 0.04em;
  line-height: 1;
}
.bp-bar {
  height: 14px;
  background: var(--mint-deep);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-pill);
  overflow: hidden;
  box-shadow: inset 2px 2px 0 rgba(42,36,56,0.12);
}
.bp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--violet-hi));
  border-right: 2px solid var(--ink);
  transition: width 0.4s cubic-bezier(0.34, 1.16, 0.64, 1);
}
.bp-fill.empty { border-right: 0; }
.bp-quip-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}
.bp-quip {
  flex: 1;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.35;
}
.bp-hint {
  margin: 0;
  text-align: center;
  font-size: 10px;
  color: var(--ink-faint);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ====================================================================
   PINNED BOARD — networked gauntlet leaderboard (Friends + Weekly).
   Each one is a chunky tactile card with a seed badge, the top 5 rows,
   the player's own row pinned below if they're not in the top 5, and a
   "Play this seed" CTA. Top-row inline ▶ button doubles as a launcher.
   ==================================================================== */
.pinned-board {
  background: var(--chalk);
  border: 3px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pb-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 2px dashed var(--mint-ink);
}
.pb-title {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.pb-seed-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.pb-seed {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--violet-lo);
}
.pb-meta {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pb-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pb-empty {
  text-align: center;
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 600;
  padding: 12px 0;
}

.pb-row {
  display: grid;
  grid-template-columns: 24px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: var(--r-sm);
  font-size: 14px;
  border: 2px solid transparent;
}
.pb-row .pb-rank {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink-faint);
  text-align: center;
}
.pb-row .pb-name {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.pb-row .pb-stats {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--violet);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Top row glows buttery-gold so the leader is unmistakable. */
.pb-row.gold {
  background: var(--butter);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.pb-row.gold .pb-rank { color: var(--ink); }
.pb-row.gold .pb-stats { color: var(--ink); }

/* Player's own row — subtle violet wash so they spot themselves at a glance.
   Combines with .gold (if you happen to be #1) — gold backdrop wins, but
   border + pb-name color shifts to violet so you still know it's you. */
.pb-row.you {
  background: var(--violet-wash);
  border-color: var(--violet);
}
.pb-row.you.gold { background: var(--butter); border-color: var(--violet-lo); }
.pb-row.you .pb-name { color: var(--violet-lo); }

.pb-play-cta {
  margin-top: 6px;
}

/* Scoring card on the menu */
.score-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 2px 2px 0 var(--ink);
}
.score-row.pos { background: var(--mint-deep); }
.score-row.neg { background: var(--coral); color: var(--chalk); }
/* When the negatives are a single tile, span the full row so it doesn't sit
   alone in the bottom-left of the 2-col grid. */
.score-row.score-row-wide { grid-column: 1 / -1; }
.score-row span:last-child {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.02em;
}

/* DemoTour — looping mini gameplay preview on the splash. Reuses .cell etc.
   but scopes a smaller --demo-cell + softer borders for the miniature size. */
.demo-board {
  --demo-cell: 30px;
  --demo-gap: 4px;
  display: grid;
  grid-template-columns: repeat(5, var(--demo-cell));
  grid-template-rows: repeat(7, var(--demo-cell));
  gap: var(--demo-gap);
  padding: 8px;
  background: var(--mint-ink);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: 3px 3px 0 var(--ink);
  position: relative;
  margin: 0 auto;
  width: max-content;
  /* Whole board is a "next phase" tap target. */
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.demo-board:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}
.demo-board .cell {
  border-width: 1.5px;
  border-radius: 5px;
  cursor: pointer;
  /* In-game cells only transition transform, but the demo crossfades walls on
     phase change — animate the visual props that flip. */
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.demo-board .cell .star-glyph { width: 14px; height: 16px; }
.demo-board .cell.start-mark::after,
.demo-board .cell.ghost-end::after {
  inset: 28%;
  border-width: 1.5px;
  box-shadow: 1px 1px 0 var(--ink);
}

/* Runner dot on the demo — its grid position is driven by --rx / --ry inline
   styles set by React; the calc() resolves them against the demo's own cell
   + gap so it lands centered on each cell as it advances. */
.demo-runner {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--violet);
  border: 2px solid var(--ink);
  box-shadow: 1.5px 1.5px 0 var(--ink);
  z-index: 10;
  pointer-events: none;
  left: calc(8px + var(--rx) * (var(--demo-cell, 30px) + var(--demo-gap, 4px)) + (var(--demo-cell, 30px) - 18px) / 2);
  top:  calc(8px + var(--ry) * (var(--demo-cell, 30px) + var(--demo-gap, 4px)) + (var(--demo-cell, 30px) - 18px) / 2);
  transition: left 280ms cubic-bezier(0.34, 1.16, 0.64, 1),
              top 280ms cubic-bezier(0.34, 1.16, 0.64, 1);
}

.demo-caption {
  text-align: center;
  font-weight: 600;
  font-size: 18px;
  color: var(--ink-soft);
  margin: 14px 0 10px;
  min-height: 20px;
}
.demo-pips {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 6px 0 4px;
}
/* Pips double as tab buttons — click to pin the demo to a phase. Re-clicking
   the same pip replays it from t=0. Cursor + hover signal interactivity. */
.demo-pip {
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mint-deep);
  border: 2px solid var(--ink);
  box-shadow: 1.5px 1.5px 0 var(--ink);
  padding: 0;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.1s ease, box-shadow 0.1s ease;
}
.demo-pip:hover { background: var(--violet-wash); }
.demo-pip:active {
  transform: translate(1px, 1px);
  box-shadow: 0.5px 0.5px 0 var(--ink);
}
.demo-pip.active { background: var(--violet); }

/* Won-phase score mockup — replaces the demo board entirely (so it's the
   hero element, not a footer). Each line slides in on a stagger so the won
   state feels like a live tally being totted up. Re-mounting via
   key={pin.key} replays the stagger on repeat won clicks. */
.demo-score {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 auto;
  width: max-content;
  min-width: 220px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.demo-score-row,
.demo-score-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  border-radius: var(--r-sm);
  box-shadow: 2px 2px 0 var(--ink);
  font-weight: 700;
  font-size: 14px;
  animation: scoreSlide 0.32s cubic-bezier(0.34, 1.16, 0.64, 1) both;
}
.demo-score-row span:first-child,
.demo-score-total span:first-child {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
}
.demo-score-row.pos { background: var(--mint-deep); }
.demo-score-row.neg { background: var(--coral); color: var(--chalk); }
.demo-score-total {
  background: var(--violet);
  color: var(--chalk);
  border-width: 2.5px;
  box-shadow: 3px 3px 0 var(--ink);
  margin-top: 6px;
  padding: 14px 18px;
}
.demo-score-total span:first-child { font-size: 24px; }
.demo-score > :nth-child(1) { animation-delay: 0.05s; }
.demo-score > :nth-child(2) { animation-delay: 0.30s; }
.demo-score > :nth-child(3) { animation-delay: 0.55s; }
.demo-score > :nth-child(4) { animation-delay: 0.85s; }
@keyframes scoreSlide {
  from { transform: translateY(10px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}

/* Gauntlet HUD */
.gauntlet-hud {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  background: var(--violet);
  color: var(--chalk);
  border: 3px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.05em;
}

/* Warning pill */
.warning-pill {
  padding: 10px 14px;
  background: var(--coral);
  color: var(--chalk);
  border: 3px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  font-size: 13px;
  text-align: center;
}

/* Confetti on win */
.confetti {
  position: fixed;
  width: 10px; height: 14px;
  border: 1.5px solid var(--ink);
  pointer-events: none;
  z-index: 999;
  animation: confettiFall 2.6s linear forwards;
}
@keyframes confettiFall {
  0%   { transform: translateY(-20vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 1; }
}

/* ====================================================================
   SCENE TRANSITIONS
   ==================================================================== */
.scene-enter {
  animation: sceneEnter 0.35s cubic-bezier(0.34, 1.16, 0.64, 1) both;
}
@keyframes sceneEnter {
  from { transform: translateY(12px) scale(0.98); opacity: 0.001; }
  to   { transform: translateY(0) scale(1);       opacity: 1; }
}

/* ====================================================================
   MISC FIXES
   ==================================================================== */
input, button { font-family: inherit; }
a { color: var(--violet-lo); }

/* Hide scrollbars on phone feel */
.phone-shell::-webkit-scrollbar { display: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .andre-idle, .andre-bounce, .andre-squish,
  .particle, .board.shake, .cell.invalid, .cell.pop,
  .cell.start-zone, .cell.star .star-glyph, .scene-enter,
  .timer-pill.urgent .timer-value {
    animation: none !important;
  }
}
