/* app.css - one stylesheet, themed entirely through custom properties.

   themes.js writes --ink, --line, --accent, --accent2, --bg1, --bg2, --field
   and --mark onto the root element, so switching world repaints everything
   here without a single class change. Sizes are clamped against both the
   viewport width and its height, because a drill has to fit on a phone held
   sideways as well as on a desktop. */

/* Hebrew in one rounded face on every device, offline too (Rubik, SIL OFL,
   fonts/OFL.txt). Only the Hebrew letters: English keeps its own font. */
@font-face {
  font-family: "Bravo Hebrew";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url(../fonts/rubik-hebrew.woff2) format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

:root {
  --ink: #10264a;
  --line: #2f6fd0;
  --accent: #d8322f;
  --accent2: #f2c14e;
  --bg1: #dbeafe;
  --bg2: #f8fbff;
  --field: #eaf4ff;
  --mark: #bcd9f5;

  --green: #1a9b4e;
  --green-ink: #136b38;
  --grey: #45607a;          /* 4.5:1 or better on every world's background */
  --paper: #fff;
  --scene-h: clamp(150px, 32vh, 330px);
  --home-scene-h: clamp(130px, 27vh, 290px);
  --radius: clamp(18px, 1.8vw, 30px);
  --gap: clamp(12px, 1.3vw, 26px);
  --shadow: 0 9px 0 rgba(16, 38, 74, .22);
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  /* a column, so a screen fills exactly what is left under the scoreboard -
     100vh on the screen itself overshoots by the height of the bar, which
     pushed the bottom of the drawings off the page */
  display: flex; flex-direction: column;
  /* dvh accounts for Safari's disappearing toolbar; vh first for anything
     that has not heard of it */
  min-height: 100vh;
  min-height: 100dvh;
  font-family: "Baloo 2", "Bravo Hebrew", "Comic Sans MS", "Trebuchet MS", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg1), var(--bg2));
  -webkit-text-size-adjust: 100%;
  /* no 300ms tap delay and no double-tap zoom on a game board */
  touch-action: manipulation;
  overflow-x: hidden;
}

button { font-family: inherit; color: inherit; cursor: pointer; }

/* ---------- accessibility ---------- */

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 4px solid var(--accent);
  outline-offset: 3px;
}

/* "Less movement" in settings, and the system setting, both land here */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.calm *, .calm *::before, .calm *::after {
  animation-duration: .01ms !important; transition-duration: .01ms !important;
}

/* ---------- the scoreboard ---------- */

.scoreboard {
  /* the back button is on the left in every language - it is the one place a
     child already knows to look - so the bar itself is always laid out left to
     right, and only the words inside it follow the language */
  direction: ltr;
  display: flex; align-items: center; gap: var(--gap);
  padding: clamp(6px, .8vw, 14px) clamp(10px, 1.4vw, 26px);
  padding-top: max(clamp(6px, .8vw, 14px), env(safe-area-inset-top));
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .18);
  position: sticky; top: 0; z-index: 30;
}

.sb-back, .sb-sound, .sb-profile {
  background: rgba(255, 255, 255, .14);
  border: 2px solid rgba(255, 255, 255, .3);
  border-radius: 14px;
  font-size: clamp(18px, 1.6vw, 28px);
  line-height: 1;
  padding: clamp(6px, .6vw, 12px) clamp(9px, .9vw, 16px);
  min-width: 44px; min-height: 44px;
}
.sb-sound.off { opacity: .55; }
.sb-right { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
/* the player's own face, so a child can find their corner without reading */
.sb-profile { border-radius: 999px; padding: 4px; font-size: clamp(22px, 2vw, 34px); }
.sb-profile:hover { background: rgba(255, 255, 255, .28); }

.sb-logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sb-name, .stat-label { unicode-bidi: plaintext; }
.sb-mark { font-size: clamp(22px, 2vw, 38px); line-height: 1; }
.sb-name {
  font-weight: 800; letter-spacing: 1px;
  font-size: clamp(15px, 1.5vw, 26px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.sb-stats { display: flex; gap: clamp(8px, 1.2vw, 22px); margin-inline-start: auto; }
.stat {
  background: rgba(255, 255, 255, .1);
  border-radius: 12px;
  padding: 4px clamp(8px, .9vw, 16px);
  text-align: center;
  min-width: clamp(54px, 5vw, 92px);
}
.stat-label { display: block; font-size: clamp(12px, .9vw, 14px); opacity: .8; text-transform: uppercase; letter-spacing: .3px; }
.stat-value { display: block; font-size: clamp(18px, 1.8vw, 32px); font-weight: 800; }
.stat.hot { background: var(--accent); animation: pop .4s ease; }

/* ---------- screens ---------- */

#screens { flex: 1; display: flex; flex-direction: column; }
.screen { display: none; }
.screen.active { display: block; flex: 1 0 auto; }

.rink {
  max-width: 1800px;
  margin: 0 auto;
  padding: clamp(12px, 1.6vw, 34px) clamp(16px, 2vw, 40px)
           max(clamp(16px, 2vw, 40px), env(safe-area-inset-bottom));
  text-align: center;
}

/* the centre line and circle read as a rink, a pitch or a court alike */
.play-rink {
  position: relative;
  background:
    radial-gradient(circle at 50% 42%, transparent 0 min(18vw, 190px),
                    var(--mark) min(18vw, 190px) calc(min(18vw, 190px) + 4px), transparent 0),
    linear-gradient(var(--mark), var(--mark)) 50% 0 / 4px 100% no-repeat,
    var(--field);
  border-radius: clamp(20px, 2.4vw, 46px);
  /* centred like every other screen: a plain margin here used to override
     the auto that centres .rink, so on a wide screen the board sat left */
  margin: clamp(8px, 1vw, 18px) auto;
  width: calc(100% - 2 * clamp(8px, 1vw, 18px));
  min-height: 70vh;
}

/* ---------- the first page ----------
   Warm rather than clinical: a cream classroom wall, big friendly type, and a
   row of blocks along the bottom. The scoreboard is hidden here - a theme
   title and a mute button mean nothing before anything has been chosen. */

#screen-setup {
  position: relative;
  /* a warm wall with a few soft spots on it, rather than a flat sheet */
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 210, 120, .30) 0 70px, transparent 71px),
    radial-gradient(circle at 86% 16%, rgba(255, 170, 140, .26) 0 54px, transparent 55px),
    radial-gradient(circle at 76% 44%, rgba(160, 215, 200, .26) 0 40px, transparent 41px),
    radial-gradient(circle at 22% 54%, rgba(150, 200, 240, .24) 0 34px, transparent 35px),
    linear-gradient(180deg, #fff1d6 0%, #fff8ea 44%, #fffdf7 100%);
  overflow: hidden;
}
/* While a world is being chosen the page is painted in it - the same colours
   the drills will use - so the choice is visible rather than described. */
#screen-setup.world {
  /* plain gradient first: an older Safari ignores the color-mix rule whole */
  background: linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 70%, var(--paper) 100%);
  background:
    radial-gradient(circle at 12% 22%, color-mix(in srgb, var(--accent2) 22%, transparent)
      0 70px, transparent 71px),
    radial-gradient(circle at 86% 16%, color-mix(in srgb, var(--accent) 16%, transparent)
      0 54px, transparent 55px),
    radial-gradient(circle at 76% 44%, color-mix(in srgb, var(--line) 14%, transparent)
      0 40px, transparent 41px),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 70%, var(--paper) 100%);
}
#screen-setup.world .title { color: var(--ink); }
#screen-setup.world .subtitle, #screen-setup.world .note { color: var(--grey); }
#screen-setup.world .step-note { color: var(--line); }

/* the questions sit in the middle of the room, not pinned to the ceiling */
#screen-setup.active { display: flex; flex-direction: column; justify-content: center; }
#screen-setup .wizard {
  position: relative; z-index: 2;
  padding-bottom: calc(var(--scene-h) + 26px);
  /* a flex item with `margin: 0 auto` sizes to its content instead of
     stretching, which let the language tiles reflow into two rows when the
     words were longer. It stays full width. */
  width: 100%;
}
#screen-setup .title { color: #2a2118; text-shadow: 0 2px 0 #fff; }
#screen-setup .subtitle, #screen-setup .note { color: #7a6a53; }
#screen-setup .step-note { color: #8a6a33; }
#screen-setup .opt, #screen-setup .theme-tile, #screen-setup .avatar,
#screen-setup .name-input { box-shadow: 0 8px 0 rgba(122, 90, 40, .18); }
.name-input.need, #screen-setup .name-input.need {
  border-color: var(--accent); box-shadow: 0 0 0 4px rgba(228, 87, 46, .18); }

/* ---------- the drawings ----------
   One per world, in js/ui/scenes.js, painted into these stages. Both sit at
   the bottom of their screen, span the full width, and never take a tap. */

/* A drawing sits along the bottom like scenery. A photograph fills the whole
   screen behind everything, because squeezing one into a strip wastes it. */
.scene {
  position: absolute; inset-inline: 0; bottom: 0; width: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
}
.scene > svg { display: block; width: 100%; height: 100%; }
.wizard-scene { height: var(--scene-h); }
.home-scene { height: var(--home-scene-h); }

.scene.photo { inset: 0; height: auto; }

/* The veil: enough to keep dark text and white cards readable over any
   photograph, little enough that the picture is still the background. It
   lightens towards the top, where the words are. */
.scene.photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(255, 255, 255, .86) 0%,
    rgba(255, 255, 255, .70) 38%,
    rgba(255, 255, 255, .42) 70%,
    rgba(255, 255, 255, .30) 100%);
}

/* with a photograph behind it, the content no longer keeps a strip clear */
.screen.photo-bg .rink,
.screen.photo-bg .wizard { padding-bottom: clamp(28px, 5vh, 70px); }

.scene .blk {
  font-family: inherit; font-size: 74px; font-weight: 800; fill: #fffdf5;
  text-anchor: middle;
}
.scene .blk.dark { fill: #4a3a10; }
/* letters written on the board rather than printed on a toy */
.scene .blk.chalk { fill: #eef5f0; opacity: .92; }

/* a slow, calm float on three groups per scene, at different speeds so the
   drawing breathes rather than pulses - and switched off entirely with
   "less movement" */
.scene .float-a { animation: bob 6s ease-in-out infinite; }
.scene .float-b { animation: bob 7s ease-in-out infinite .4s; }
.scene .float-c { animation: bob 5.4s ease-in-out infinite .8s; }
.scene .float-a, .scene .float-b, .scene .float-c { transform-box: fill-box;
  transform-origin: center bottom; }

@keyframes bob {
  50% { transform: translateY(-6px); }
}

/* on a short screen the drawings give way to the buttons */
@media (max-height: 620px) {
  .scene { display: none; }
  #screen-setup .wizard { padding-bottom: clamp(16px, 2vw, 40px); }
  #screen-home .rink { padding-bottom: clamp(16px, 2vw, 40px); }
}

/* The school world is the one everybody starts in, and a centre circle makes
   it look like a sport. It gets ruled lines instead - a page from an exercise
   book - which works the same way round in Hebrew. */
:root[data-theme="school"] .play-rink {
  background:
    repeating-linear-gradient(to bottom, transparent 0 clamp(34px, 4vh, 52px),
      var(--mark) clamp(34px, 4vh, 52px), var(--mark) calc(clamp(34px, 4vh, 52px) + 2px)),
    var(--field);
}

.title {
  font-size: clamp(26px, 3vw, 62px);
  margin: clamp(4px, .6vw, 12px) 0;
  line-height: 1.1;
}
.subtitle { font-size: clamp(15px, 1.4vw, 26px); color: var(--grey); margin: 0 0 var(--gap); }
.note { font-size: clamp(13px, 1.1vw, 19px); color: var(--grey); margin: 10px 0; }
.note.warn { color: var(--accent); font-weight: 800; }
.caption { font-size: clamp(14px, 1.2vw, 23px); color: var(--grey); font-weight: 700; margin-top: 8px;
           /* words follow their own language even inside a left-to-right sum */
           direction: rtl; unicode-bidi: plaintext; }

/* ---------- home ---------- */

.hello { display: flex; align-items: center; justify-content: center; gap: clamp(8px, 1vw, 18px); flex-wrap: wrap; }
.hello-avatar { font-size: clamp(34px, 3.4vw, 74px); line-height: 1; }
.streak-chip {
  margin: 0; padding: 6px 14px; border-radius: 999px;
  background: var(--paper); border: 3px solid var(--mark);
  font-size: clamp(12px, 1.1vw, 18px); font-weight: 800; color: var(--grey);
}
.streak-chip.hot { border-color: var(--accent); color: var(--accent); }

.doors {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  margin: var(--gap) auto;
  max-width: 1400px;
}
.door {
  background: var(--paper);
  border: 6px solid var(--line);
  border-radius: clamp(20px, 2vw, 34px);
  padding: clamp(16px, 2vw, 34px) clamp(12px, 1.4vw, 24px);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: transform .1s;
}
.door:hover { transform: translateY(-4px); }
.door:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(16, 38, 74, .22); }
.door-icon { display: flex; gap: 6px; }
.dt {
  background: var(--line); color: #fff; font-weight: 800;
  border-radius: 10px; padding: 2px 10px;
  font-size: clamp(20px, 2.2vw, 40px);
}
.door-title { font-size: clamp(19px, 1.9vw, 34px); font-weight: 800; }
.door-sub { font-size: clamp(12px, 1.1vw, 18px); color: var(--grey); }
.zone-en .dt { background: var(--accent); }
.zone-he .dt { background: var(--green); }
.zone-ru .dt { background: #7a3cc0; }

.home-btns { display: flex; gap: var(--gap); justify-content: center; flex-wrap: wrap; margin-top: var(--gap); }
#screen-home, #screen-profile { position: relative; overflow: hidden; }
#screen-profile .rink { position: relative; z-index: 2;
  padding-bottom: calc(var(--home-scene-h) + 22px); }
#screen-home.photo-bg .rink, #screen-profile.photo-bg .rink { padding-bottom: clamp(28px, 5vh, 70px); }
#screen-home .rink { position: relative; z-index: 2;
  padding-bottom: calc(var(--home-scene-h) + 22px); }
.trophy-btn {
  background: var(--accent2); border: 4px solid var(--ink); border-radius: 999px;
  font-weight: 800; font-size: clamp(14px, 1.3vw, 22px);
  padding: clamp(8px, 1vw, 16px) clamp(16px, 1.8vw, 32px);
  box-shadow: var(--shadow); min-height: 48px;
}
.trophy-btn.ghost { background: var(--paper); }

/* ---------- the drill menu ---------- */

.menu-tiers { max-width: 1700px; margin: 0 auto; }
.tier-head {
  text-align: start; font-size: clamp(18px, 1.8vw, 30px); font-weight: 800;
  margin: clamp(18px, 2.2vw, 36px) 0 clamp(8px, 1vw, 14px);
  padding-bottom: 6px; border-bottom: 3px solid var(--mark);
}
.tier-head:first-child { margin-top: 0; }
.card-grid {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  max-width: 1700px; margin: 0 auto;
}
.card {
  background: var(--paper);
  border: 5px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(10px, 1.2vw, 20px);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-height: clamp(150px, 15vw, 230px);
  transition: transform .1s;
}
.card:hover { transform: translateY(-4px); }
.card:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(16, 38, 74, .22); }
.card-pic {
  /* a fixed stage for the picture; app.js scales each one to fill it */
  width: 100%; height: clamp(96px, 9vw, 170px); flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(30px, 3vw, 60px); line-height: 1; overflow: hidden;
}
.card-fit { display: inline-flex; align-items: center; justify-content: center;
            width: max-content; white-space: nowrap; }
/* laid out at its natural width and scaled after, so it must not wrap first */
.card-fit .pv-row { flex-wrap: nowrap; }
/* the stars sit on the same line in every card of a row */
.card-stars { margin-top: auto; }
.card-name { font-size: clamp(14px, 1.3vw, 22px); font-weight: 800; }
.card-blurb { font-size: clamp(14px, 1.05vw, 17px); color: var(--grey); }
.card-stars, .stars, .t-stars { -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 55%, transparent); }
.card-stars { color: var(--accent2); font-size: clamp(14px, 1.3vw, 22px); letter-spacing: 2px;
              text-shadow: 0 0 2px rgba(0,0,0,.3); }

/* how far along this drill they are, on the card itself */
.card-level { display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
              justify-content: center; }
.chip {
  background: var(--bg1); color: var(--grey); border-radius: 999px;
  padding: 1px 9px; font-size: clamp(13px, 1vw, 16px); font-weight: 800;
}
.chip.new { background: var(--accent2); color: var(--ink); }
.dots { display: inline-flex; gap: 3px; }
.dots i {
  width: clamp(5px, .5vw, 8px); height: clamp(5px, .5vw, 8px); border-radius: 50%;
  background: var(--mark); display: block;
}
.dots i.on { background: var(--green); }

/* the one thing worth doing next */
.next-up {
  display: inline-block; margin-top: var(--gap);
  background: var(--paper); border: 4px dashed var(--line); border-radius: 999px;
  font-weight: 800; font-size: clamp(13px, 1.2vw, 20px); color: var(--ink);
  padding: clamp(8px, 1vw, 14px) clamp(16px, 1.8vw, 30px); min-height: 46px;
}
.next-up:hover { background: var(--bg2); border-style: solid; }
.card-eng, .zone-en.card { border-color: var(--accent); }
.zone-he.card { border-color: var(--green); }
.zone-ru.card { border-color: #7a3cc0; }

/* ---------- playing ---------- */

.coach {
  display: flex; align-items: center; gap: clamp(8px, 1vw, 16px);
  background: var(--paper); border: 4px solid var(--ink);
  border-radius: 999px;
  padding: clamp(6px, .8vw, 14px) clamp(12px, 1.4vw, 24px);
  max-width: 1100px; margin: 0 auto clamp(8px, 1vw, 16px);
  box-shadow: var(--shadow);
}
.coach-face { height: clamp(52px, 5.2vw, 96px); width: auto; margin: calc(clamp(6px, .8vw, 14px) * -1) 0; flex: none; }
.coach-face.bob { animation: owl-bob .5s ease-out; }
@keyframes owl-bob { 0% { transform: scale(.85) translateY(6px); } 60% { transform: scale(1.08) translateY(-4px); } 100% { transform: none; } }
.owl { display: block; margin: 0 auto; height: clamp(90px, 11vw, 170px); width: auto; animation: owl-bob .6s ease-out; }
.owl-small { display: inline-block; margin: 0; height: clamp(48px, 5vw, 90px); }
.cel-stars { font-size: 44px; line-height: 1; margin: 4px 0 2px; letter-spacing: 4px; }
.cel-row { display: flex; align-items: flex-end; justify-content: center; gap: clamp(4px, 1vw, 14px); }
.cel-row .cel-owl { margin: 0; height: clamp(80px, 11vw, 150px); }
.calm .owl, .calm .coach-face.bob { animation: none; }
.coach-text { flex: 1; font-size: clamp(16px, 1.7vw, 32px); font-weight: 800; text-align: center; }
/* sums read left to right in Hebrew too, so the = is always on the right */
.coach-text[dir="ltr"] { unicode-bidi: isolate; }
/* the number drills are drawn left to right in every language: a sum, a
   number line and an arrow from 7 to what comes next all read that way */
.zone-math .card-pic { direction: ltr; }
/* a reading card is drawn in the direction of the language it teaches, and
   its arrow points the way that language reads: A → a, but 🦁 ← א */
.zone-en .card-pic { direction: ltr; }
.zone-he .card-pic { direction: rtl; }
.zone-he .card-pic .pv-arrow { display: inline-block; transform: scaleX(-1); }
.replay {
  background: var(--line); color: #fff; border: 0; border-radius: 999px;
  font-size: clamp(16px, 1.5vw, 26px); padding: 8px 14px; min-width: 44px; min-height: 44px;
}

.shots-left { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.pip { width: clamp(10px, 1vw, 16px); height: clamp(10px, 1vw, 16px); border-radius: 50%;
       background: #cfdced; }
.pip.goal { background: var(--green); }
.pip.miss { background: #c9ced8; }
.pip.now { background: var(--accent); transform: scale(1.3); }
.pip-label { font-size: clamp(14px, 1.1vw, 18px); color: var(--grey); font-weight: 800;
             margin-inline-start: 8px; }

.review-bar { display: flex; gap: 8px; justify-content: center; align-items: center;
              min-height: 40px; flex-wrap: wrap; }
.rev-btn {
  background: var(--paper); border: 3px solid var(--line); border-radius: 999px;
  font-weight: 800; font-size: clamp(14px, 1.2vw, 19px); padding: 6px 16px; min-height: 48px; min-width: 48px;
}
.rev-btn.go { background: var(--line); color: #fff; }
.rev-btn[disabled] { opacity: .4; }
.rev-label { font-weight: 800; color: var(--grey); font-size: clamp(14px, 1.2vw, 19px); }

.question {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(6px, .8vw, 14px);
  min-height: clamp(130px, 22vh, 340px);
  margin: clamp(6px, 1vw, 18px) auto;
}

/* ---------- the things that get counted ---------- */

.tok { display: inline-block; line-height: 1; }
/* as big as the screen allows: the phone floor is what keeps a row of ten on
   a 390px screen, everything above that grows with the window */
.tok-emoji { font-size: min(clamp(30px, 4.4vw, 104px), 10.5vh); }
.tok-puck {
  width: min(clamp(30px, 4.2vw, 98px), 10vh);
  height: min(clamp(30px, 4.2vw, 98px), 10vh);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4a4a4a, #0d0d0d 70%);
  border: 2px solid #000;
}
.tok.sm { font-size: min(clamp(22px, 2.4vw, 54px), 5.8vh); }
.tok-puck.sm { width: min(clamp(22px, 2.4vw, 54px), 5.8vh); height: min(clamp(22px, 2.4vw, 54px), 5.8vh); }
.tok.out { opacity: .35; filter: grayscale(1); position: relative; }
.tok.out::after {
  content: '✗'; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; color: var(--accent); font-weight: 900; font-size: .9em;
}

.tok-grid { display: flex; flex-direction: column; gap: clamp(4px, .5vw, 10px); }
.tok-row { display: flex; gap: clamp(4px, .5vw, 10px); justify-content: center; }
.tok-grid.array { gap: clamp(3px, .4vw, 7px); }
.tok-grid.array .tok-row { gap: clamp(3px, .4vw, 7px); }
.tok-group { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.group-count { font-size: clamp(20px, 2vw, 40px); font-weight: 800; color: var(--line); }
.sum-row { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 28px); flex-wrap: wrap; justify-content: center; }
.op { font-size: clamp(28px, 2.8vw, 60px); font-weight: 800; color: var(--accent); }

.ten-frame { display: flex; flex-direction: column; gap: 4px; }
.frame-row { display: flex; gap: 4px; }
.frame-cell {
  width: min(clamp(28px, 2.8vw, 58px), 6.6vh); height: min(clamp(28px, 2.8vw, 58px), 6.6vh);
  border: 3px solid var(--line); border-radius: 8px; background: var(--paper);
  display: flex; align-items: center; justify-content: center;
}
.frame-cell .drawn { width: 82%; height: 82%; }

.bundles-row { display: flex; gap: clamp(8px, 1vw, 20px); align-items: flex-end; flex-wrap: wrap; justify-content: center; }
.bundle {
  position: relative; display: grid; grid-template-columns: repeat(2, auto); gap: 3px;
  padding: 8px; border: 4px solid var(--line); border-radius: 12px; background: var(--paper);
}
.bundle-tag {
  position: absolute; inset-inline-end: -8px; inset-block-start: -12px;
  background: var(--line); color: #fff; border-radius: 999px; padding: 1px 8px;
  font-size: clamp(11px, 1vw, 16px); font-weight: 800;
}
.loose { display: flex; gap: 3px; flex-wrap: wrap; max-width: 120px; }

.shirt {
  width: min(clamp(110px, 11vw, 230px), 24vh); height: min(clamp(110px, 11vw, 230px), 24vh);
  border-radius: 24px; display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: inset 0 -8px 0 rgba(0,0,0,.15);
}
.shirt span { font-size: clamp(44px, 4.4vw, 110px); font-weight: 800; }
.shirt.home { background: linear-gradient(165deg, var(--line), var(--ink)); }
.shirt.away { background: linear-gradient(165deg, var(--accent), #7a1a18); }

.clock { width: min(clamp(170px, 14vw, 300px), 32vh); height: min(clamp(170px, 14vw, 300px), 32vh); }
.clk-face { fill: var(--paper); stroke: var(--ink); stroke-width: 4; }
.clk-tick { stroke: var(--line); stroke-width: 3; stroke-linecap: round; }
.clk-num { font-size: 15px; font-weight: bold; fill: var(--ink); }
.clk-hour { stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
.clk-min { stroke: var(--accent); stroke-width: 4; stroke-linecap: round; }
.clk-pin { fill: var(--ink); }

.shape svg { width: min(clamp(92px, 8vw, 230px), 23vh); height: min(clamp(92px, 8vw, 230px), 23vh);
             fill: var(--line); }
.shape-word { font-size: clamp(24px, 2.4vw, 52px); font-weight: 800; color: var(--accent); }

.seq-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.seq-row.rtl { direction: rtl; }
.seq-cell {
  min-width: min(clamp(76px, 6vw, 160px), 15vh); padding: clamp(10px, 1vw, 26px) 8px;
  background: var(--paper); border: 4px solid var(--line); border-radius: 18px;
  font-size: clamp(32px, 2.8vw, 74px); font-weight: 800;
}
.seq-cell.letter { font-size: clamp(34px, 3vw, 80px); }
.seq-cell.day { font-size: min(clamp(16px, 1.4vw, 34px), 4.2vh); letter-spacing: 1px; }
.seq-cell.blank { border-style: dashed; border-color: var(--accent); color: var(--accent);
                  background: #fff6f6;
                  background: color-mix(in srgb, var(--accent) 7%, #fff); }
.seq-arrow { color: var(--grey); font-size: clamp(22px, 1.9vw, 34px); }

.target-badge { font-size: clamp(20px, 2vw, 40px); font-weight: 800; }
.target-badge strong { color: var(--accent); font-size: 1.3em; }
.bond-slots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.bond-chip {
  background: #d9f6e4; border: 3px solid var(--green); border-radius: 12px;
  padding: 4px 12px; font-weight: 800; font-size: clamp(15px, 1.4vw, 26px); color: var(--green-ink);
}
.bond-chip.empty { background: var(--paper); border-color: var(--mark); color: var(--grey); }

/* ---------- words and letters ---------- */

.pic { font-size: min(clamp(84px, 9vw, 250px), 17vh); line-height: 1; }
.pic.big { font-size: min(clamp(100px, 11vw, 320px), 19vh); }

.tw-word { font-size: min(clamp(30px, 2.8vw, 64px), 7vh); font-weight: 800; letter-spacing: 2px; }
.tw-word.big { font-size: min(clamp(38px, 3.6vw, 86px), 9vh); }
/* the word in the language the child already speaks */
.tw-hint { font-size: min(clamp(20px, 1.8vw, 42px), 4.8vh); font-weight: 700; color: var(--green); }
.tw-hint.big { font-size: min(clamp(24px, 2.2vw, 52px), 5.6vh); }

.letter-target {
  font-size: min(clamp(80px, 8vw, 220px), 22vh); font-weight: 700; line-height: 1.1;
  color: var(--accent); background: var(--paper);
  border: 6px solid var(--accent); border-radius: 28px;
  padding: 0 clamp(22px, 2.4vw, 48px);
}
.letter-target.listen-btn { cursor: pointer; font-family: inherit; }
/* while the question is being said the speakers look pressed, and a tap
   waits rather than starting it over */
.replay.busy, .letter-target.listen-btn.busy { opacity: .6; cursor: default; transform: translateY(2px); }
.letter-target.listen-btn:active { transform: translateY(3px); }
.letter-target.wide { font-size: min(clamp(54px, 5vw, 140px), 14vh); }
.letter-target.day-he { font-size: min(clamp(34px, 3vw, 80px), 8.5vh); padding: 10px clamp(18px, 2vw, 40px); }
.letter-choice { font-size: min(clamp(40px, 4vw, 110px), 11vh); font-weight: 800; }
.day-word { font-size: min(clamp(20px, 1.8vw, 48px), 5vh); font-weight: 800; }

.sentence {
  font-size: clamp(26px, 2.3vw, 54px); font-weight: 700; max-width: 1600px; line-height: 1.5;
}
.sentence strong { color: var(--accent); }
.sentence.rtl { direction: rtl; }

.opt-pair { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.drawn { width: 1.2em; height: 1.2em; object-fit: contain; vertical-align: middle; display: inline-block; }
.opt-pic { font-size: min(clamp(44px, 3.6vw, 92px), 9vh); line-height: 1; }
.opt-pic.big { font-size: min(clamp(56px, 5vw, 140px), 13vh); }
.opt-word { font-size: min(clamp(20px, 1.7vw, 38px), 4.4vh); font-weight: 800; }

/* ---------- answer buttons ---------- */

.answers {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap);
  max-width: min(100%, 2200px); width: 100%; margin: 0 auto; justify-content: center;
}
.answers.stacked { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
                   max-width: 1500px; }
.answers.rtl { direction: rtl; }

/* an answer in words reads in its own direction, even in a row of choices
   laid out left to right for a sum: "8 וחצי", not "וחצי 8". The text sits in
   its own span, which does not inherit this, so it is set on both. */
.choice, .choice span, .caption, .coach-text { unicode-bidi: plaintext; }
.choice {
  background: var(--paper);
  border: clamp(4px, .4vw, 7px) solid var(--line);
  border-radius: var(--radius);
  padding: clamp(14px, 1.5vw, 28px) 10px;
  box-shadow: var(--shadow);
  transition: transform .08s, background .12s;
  min-height: clamp(96px, 11vh, 240px);
  display: flex; align-items: center; justify-content: center;
}
.choice:hover { background: var(--bg2); transform: translateY(-3px); }
.choice:active { transform: translateY(5px); box-shadow: 0 2px 0 rgba(16, 38, 74, .22); }
.choice.right { background: #d9f6e4; border-color: var(--green); box-shadow: 0 9px 0 var(--green-ink); }
.choice.wrong[disabled] { opacity: .55; cursor: default; }
.choice.wrong { background: #ffe2e1; border-color: var(--accent); box-shadow: 0 9px 0 #9c211f;
                animation: shake .35s; }
.choice.reveal { animation: pulse .5s ease 2; }
.answers.review .choice { cursor: default; }
.review-note { font-size: clamp(16px, 1.5vw, 28px); font-weight: 800; color: var(--grey);
               grid-column: 1 / -1; }

.big-num { font-size: min(clamp(44px, 4.4vw, 124px), 11vh); font-weight: 800; }
.big-word { font-size: min(clamp(26px, 2.6vw, 76px), 7vh); font-weight: 800; }
.answer-text { font-size: clamp(19px, 1.8vw, 48px); font-weight: 700; }

/* ---------- spelling tiles ---------- */

.answers.spell { grid-template-columns: 1fr; gap: clamp(14px, 1.8vw, 34px); }
.slots { display: flex; gap: clamp(8px, 1vw, 18px); justify-content: center; }
.slots.rtl { direction: rtl; }
.slot {
  width: min(clamp(54px, 5vw, 110px), 12vh); height: min(clamp(66px, 6vw, 130px), 14vh);
  border: 5px dashed var(--line); border-radius: 16px; background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: min(clamp(32px, 3.2vw, 74px), 8vh); font-weight: 800;
}
.slot.filled { border-style: solid; background: #d9f6e4; border-color: var(--green); }
.tiles { display: flex; gap: clamp(8px, 1vw, 18px); flex-wrap: wrap; justify-content: center; }
.tile {
  min-width: min(clamp(54px, 5vw, 110px), 12vh); min-height: min(clamp(60px, 5.4vw, 120px), 13vh);
  border: 0; border-radius: 16px; color: #fff; font-weight: 800;
  background: linear-gradient(165deg, var(--line), var(--ink));
  font-size: min(clamp(30px, 3vw, 70px), 7.6vh);
  box-shadow: var(--shadow);
}
.tile.used { opacity: .3; }
.tile.shake { animation: shake .35s; }

/* ---------- number pairs ---------- */

.answers.bonds { grid-template-columns: 1fr; gap: clamp(10px, 1.4vw, 24px); }
.pick-row {
  display: flex; align-items: center; justify-content: center; gap: clamp(8px, 1vw, 18px);
  font-size: clamp(24px, 2.4vw, 54px); font-weight: 800;
}
.pick-slot {
  min-width: min(clamp(56px, 5vw, 110px), 12vh); min-height: min(clamp(56px, 5vw, 110px), 12vh);
  border: 5px dashed var(--line); border-radius: 16px; background: var(--paper);
  display: inline-flex; align-items: center; justify-content: center;
}
.pick-slot.filled { border-style: solid; }
.pick-target { color: var(--accent); }
.pick-row.good .pick-slot { background: #d9f6e4; border-color: var(--green); }
.pick-row.bad .pick-slot { background: #ffe2e1; border-color: var(--accent); animation: shake .35s; }
.pick-row.dupe .pick-slot { background: var(--accent2); }
.num-tiles { display: flex; gap: clamp(6px, .9vw, 16px); flex-wrap: wrap; justify-content: center; }
.num-tile {
  min-width: min(clamp(50px, 4.6vw, 96px), 11vh); min-height: min(clamp(50px, 4.6vw, 96px), 11vh);
  border: 0; border-radius: 16px; color: #fff; font-weight: 800;
  background: linear-gradient(165deg, var(--line), var(--ink));
  font-size: min(clamp(24px, 2.4vw, 56px), 6vh); box-shadow: var(--shadow);
}

/* ---------- flash, results, trophies ---------- */

.flash {
  position: fixed; inset-block-start: 18vh; inset-inline: 0; margin: 0 auto; width: max-content;
  max-width: 90vw; padding: clamp(10px, 1.2vw, 22px) clamp(18px, 2vw, 40px);
  border-radius: 999px; font-size: clamp(20px, 2.2vw, 48px); font-weight: 800;
  color: #fff; opacity: 0; pointer-events: none; z-index: 40;
  transform: scale(.8); transition: opacity .18s, transform .18s;
}
.flash.show { opacity: 1; transform: scale(1); }
.flash.goal { background: var(--green); }
.flash.miss { background: var(--line); }
.flash.try { background: var(--accent2); color: var(--ink); }

.result-card {
  background: var(--paper); border: 6px solid var(--line); border-radius: clamp(20px, 2.4vw, 44px);
  padding: clamp(18px, 2.4vw, 46px); max-width: 900px; margin: 0 auto; box-shadow: var(--shadow);
}
.horn { font-size: clamp(44px, 4.4vw, 96px); }
.result-score { font-size: clamp(38px, 4vw, 96px); font-weight: 800; color: var(--line);
                /* "7 / 10" reads left to right in Hebrew too */
                direction: ltr; unicode-bidi: isolate; }
.stars { font-size: clamp(34px, 3.4vw, 76px); color: var(--accent2); letter-spacing: 6px;
         text-shadow: 0 0 3px rgba(0,0,0,.25); }
.result-msg { font-size: clamp(16px, 1.5vw, 28px); font-weight: 700; }
.result-btns { display: flex; gap: var(--gap); justify-content: center; flex-wrap: wrap; margin-top: var(--gap); }

.big-btn {
  border: 4px solid var(--ink); border-radius: 999px; font-weight: 800;
  font-size: clamp(15px, 1.4vw, 26px); padding: clamp(10px, 1.1vw, 18px) clamp(18px, 2vw, 36px);
  box-shadow: var(--shadow); background: var(--paper); min-height: 48px;
}
.big-btn.green { background: var(--green); color: #fff; }
.big-btn.blue { background: var(--line); color: #fff; }
.big-btn.ghost { background: var(--paper); border-color: var(--grey); color: var(--grey); }
.big-btn.small { font-size: clamp(13px, 1.1vw, 18px); padding: 8px 16px; }
.big-btn.wide { width: min(100%, 460px); }

.trophy-grid { display: flex; flex-direction: column; gap: 10px; max-width: 1000px; margin: 0 auto var(--gap); }
.trophy {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center;
  background: var(--paper); border: 4px solid var(--mark); border-radius: 18px;
  padding: 10px clamp(12px, 1.4vw, 22px); text-align: start;
}
.trophy.maxed { border-color: var(--accent2); background: #fffdf4; }
.t-icon { font-size: clamp(22px, 2vw, 36px); }
.t-name { font-weight: 800; font-size: clamp(14px, 1.3vw, 22px); }
.t-zone {
  display: inline-block; margin-inline-start: 8px; padding: 1px 8px; border-radius: 999px;
  background: var(--bg1); color: var(--grey); font-size: clamp(13px, 1vw, 15px); font-weight: 800;
}
.t-stars { color: var(--accent2); letter-spacing: 2px; font-size: clamp(14px, 1.3vw, 22px);
           text-shadow: 0 0 2px rgba(0,0,0,.3); }
.t-best { color: var(--grey); font-size: clamp(14px, 1.1vw, 17px); font-weight: 700; }

/* ---------- animations ---------- */

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}
@keyframes pulse { 50% { transform: scale(1.06); } }
@keyframes pop { 50% { transform: scale(1.2); } }

/* ---------- the little pictures on the menu cards ----------
   Sized in em, so they scale with the card and never need their own media
   queries. */

.card-pic .pv-row { display: flex; align-items: center; gap: .12em; justify-content: center; flex-wrap: wrap; }
.card-pic .pv-row.rtl { direction: rtl; }
.card-pic .pv-mini { display: inline-flex; }
.card-pic .clock { width: clamp(74px, 5.8vw, 180px); height: clamp(74px, 5.8vw, 180px); }
.pv-op, .pv-arrow { font-size: .5em; font-weight: 800; color: var(--accent); }
.pv-arrow { color: var(--grey); }
.pv-emoji { font-size: .8em; }
.pv-letter { font-size: .6em; font-weight: 800; }
.pv-badge { background: var(--ink); color: var(--accent2); border-radius: 999px;
            padding: .04em .3em; font-size: .6em; font-weight: 800; }
.pv-chip { background: #d9f6e4; border: .05em solid var(--green); border-radius: .22em;
           padding: .04em .22em; font-size: .4em; font-weight: 800; color: var(--green-ink); }
.pv-cell { background: var(--paper); border: .06em solid var(--line); border-radius: .2em;
           padding: .02em .22em; font-size: .4em; font-weight: 800; }
.pv-cell.blank { border-style: dashed; border-color: var(--accent); color: var(--accent); }
.pv-shape svg { width: clamp(34px, 3.1vw, 105px); height: clamp(34px, 3.1vw, 105px); fill: var(--line); }
.pv-tiles { display: flex; gap: .06em; }
.pv-tiles.rtl { direction: rtl; }
.pv-tile { background: linear-gradient(165deg, var(--line), var(--ink)); color: #fff;
           border-radius: .18em; padding: .02em .16em; font-size: .4em; font-weight: 800; }
.pv-caption { font-size: .22em; font-weight: 800; color: var(--grey); letter-spacing: 1px; }
.pv-caption.big { font-size: .3em; }
.pv-word { font-size: .42em; font-weight: 800; color: var(--green); }
.pv-word.rtl { direction: rtl; }

/* ---------- the grown-up pages ---------- */

.report { text-align: start; max-width: 1200px; }
.report .title, .report .subtitle { text-align: center; }
.prog-h2 { font-size: clamp(17px, 1.5vw, 26px); margin: clamp(16px, 2vw, 32px) 0 8px;
           border-bottom: 3px solid var(--mark); padding-bottom: 6px; }
.trend-note { font-weight: 400; font-size: clamp(12px, 1vw, 16px); color: var(--grey);
              margin-inline-start: 10px; }
.trend-line { text-align: center; font-weight: 800; color: var(--grey);
              font-size: clamp(13px, 1.2vw, 20px); margin: 0 0 10px; }
.trend-line.up { color: var(--green-ink); }
.trend-line.down { color: var(--accent); }

/* the levels table, for a grown-up */
.levels { display: flex; flex-direction: column; gap: 6px; }
.lvl-row {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center;
  background: var(--paper); border: 3px solid var(--mark); border-radius: 14px;
  padding: 7px 12px;
}
.lvl-row.new { border-style: dashed; opacity: .75; }
.lvl-name { font-weight: 800; font-size: clamp(12px, 1.1vw, 18px); }
.lvl-pct { color: var(--grey); font-weight: 700; font-size: clamp(11px, 1vw, 16px); }
.lvl-bar { display: inline-flex; gap: 3px; }
.lvl-bar i { width: 14px; height: 10px; border-radius: 3px; background: var(--mark); display: block; }
.lvl-bar i.on { background: var(--green); }

.insights { display: flex; gap: var(--gap); flex-wrap: wrap; justify-content: center; }
.insight { flex: 1 1 260px; background: var(--paper); border: 4px solid var(--mark);
           border-radius: 18px; padding: 10px 16px; }
.insight.good { border-color: var(--green); }
.insight.low { border-color: var(--accent2); }
.insight h3 { margin: 4px 0; font-size: clamp(14px, 1.2vw, 20px); }
.insight ul { margin: 4px 0; padding-inline-start: 20px; }
.insight li { font-size: clamp(12px, 1.1vw, 18px); color: var(--grey); font-weight: 700; }

.matrix-scroll { overflow-x: auto; }
.matrix { border-collapse: collapse; width: 100%; font-size: clamp(11px, 1vw, 16px); }
.matrix th, .matrix td { border: 2px solid var(--mark); padding: 6px 8px; text-align: center; }
.matrix thead th { background: var(--bg1); font-size: clamp(10px, .9vw, 14px); }
.matrix th.m-today { background: var(--accent2); }
.matrix th.m-drill { text-align: start; font-weight: 800; white-space: nowrap; }
.m-cell { white-space: nowrap; }
.m-empty { color: var(--grey); }
.m-score { display: inline-block; margin: 1px; padding: 1px 6px; border-radius: 999px;
           font-weight: 800; color: #fff; background: var(--grey); }
.m-score.good { background: var(--green); }
.m-score.ok { background: var(--line); }
.m-score.low { background: var(--accent); }

.prog-recent { display: flex; flex-direction: column; gap: 6px; }
.day-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
            margin-top: 14px; border-bottom: 2px dashed var(--mark); padding-bottom: 4px; }
.day-head:first-child { margin-top: 0; }
.dh-name { font-weight: 800; font-size: clamp(14px, 1.3vw, 22px); }
.dh-sum { color: var(--grey); font-weight: 700; font-size: clamp(11px, 1vw, 16px); }
.run { display: flex; flex-direction: column; }
.recent-row {
  display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center;
  background: var(--paper); border: 3px solid var(--mark); border-radius: 14px;
  padding: 8px 12px; text-align: start; width: 100%;
}
.recent-row.open { border-color: var(--line); }
.recent-row.empty { color: var(--grey); justify-content: center; display: block; text-align: center; }
.r-icon { font-size: clamp(16px, 1.4vw, 24px); }
.r-name { font-weight: 800; font-size: clamp(12px, 1.1vw, 19px); }
.r-when { color: var(--grey); font-size: clamp(10px, .9vw, 14px); font-weight: 700; }
.r-open { color: var(--line); font-weight: 800; }
.result-btns.small-row { gap: 8px; opacity: .8; }
.run-detail { display: none; }
.run-detail.open { display: block; padding: 8px 12px; }
.qlist { margin: 0; padding-inline-start: 22px; }
.qlist li { font-size: clamp(11px, 1vw, 16px); margin: 3px 0; display: flex; gap: 8px;
            flex-wrap: wrap; align-items: baseline; }
.qlist li.ok .q-mark { color: var(--green); font-weight: 800; }
.qlist li.no .q-mark { color: var(--accent); font-weight: 800; }
.q-ask { font-weight: 800; }
.qlist.missed { padding: 2px 14px 6px; list-style: none; }
.qlist.missed .drawn { width: 1.3em; height: 1.3em; }
.q-said, .q-right { color: var(--grey); }
.qnote { color: var(--grey); font-size: clamp(11px, 1vw, 16px); }
.play-again { margin-top: 8px; }

/* ---------- settings ---------- */

.set-head { font-size: clamp(15px, 1.4vw, 24px); margin: clamp(16px, 2vw, 30px) 0 6px;
            border-bottom: 3px solid var(--mark); padding-bottom: 4px; }
.set-row { display: flex; gap: var(--gap); align-items: flex-start; flex-wrap: wrap;
           padding: 8px 0; border-bottom: 1px dashed var(--mark); }
.set-label { flex: 0 0 min(220px, 100%); font-weight: 800; font-size: clamp(13px, 1.2vw, 19px);
             display: flex; flex-direction: column; }
.set-note { font-weight: 400; color: var(--grey); font-size: clamp(11px, .95vw, 15px); }
.set-body { flex: 1 1 min(320px, 100%); min-width: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.check-out { display: flex; flex-direction: column; gap: 4px; width: 100%; margin-top: 8px; }
.chk { font-size: clamp(11px, 1vw, 16px); font-weight: 700; color: var(--grey);
       background: var(--paper); border: 2px solid var(--mark); border-radius: 10px;
       padding: 5px 10px; }
.chk.ok { border-color: var(--green); color: var(--green-ink); }
.chk.bad { border-color: var(--accent); color: var(--accent); }

.voice-tip {
  background: #fff8e4; border: 3px solid var(--accent2); border-radius: 14px;
  padding: 10px 14px; color: #6a5420;
}

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  background: var(--paper); border: 3px solid var(--mark); border-radius: 999px;
  padding: 8px 16px; font-weight: 800; font-size: clamp(12px, 1.1vw, 18px); min-height: 42px;
}
.pill.on { background: var(--line); color: #fff; border-color: var(--ink); }
.pill.danger { border-color: var(--accent); color: var(--accent); }
.pill.danger:hover { background: var(--accent); color: #fff; }

.set-select {
  font-family: inherit; font-size: clamp(12px, 1.1vw, 18px); font-weight: 700;
  padding: 8px 12px; border-radius: 12px; border: 3px solid var(--mark);
  background: var(--paper); color: var(--ink); max-width: 100%; min-height: 42px;
}

.name-input {
  font-family: inherit; font-size: clamp(20px, 2vw, 38px); font-weight: 800; text-align: center;
  padding: clamp(8px, 1vw, 16px); border-radius: 18px; border: 4px solid var(--line);
  background: var(--paper); color: var(--ink); width: min(100%, 420px);
}
.name-input.small { font-size: clamp(14px, 1.3vw, 22px); text-align: start; width: min(100%, 300px); }

.player-list { display: flex; flex-direction: column; gap: 8px; }
.player-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--paper); border: 3px solid var(--mark); border-radius: 14px; padding: 8px 12px;
}
.player-row.on { border-color: var(--line); }
.pl-avatar { font-size: clamp(20px, 1.8vw, 32px); }
.pl-name { font-weight: 800; flex: 1 1 120px; }

/* ---------- the first-run wizard ---------- */

.wizard { max-width: 1100px; }
.step-note { color: var(--grey); font-weight: 800; letter-spacing: 1px;
             font-size: clamp(11px, 1vw, 16px); margin: 0; text-transform: uppercase; }

.opt-grid {
  display: grid; gap: var(--gap); margin: var(--gap) auto; max-width: 1000px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}
.opt-grid.big { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
/* The language chooser keeps one fixed order. Without this it inherits the
   page direction, so picking English flipped the row of flags end to end -
   the buttons moved out from under the finger that was about to press one. */
.lang-pick { direction: ltr; }
.opt {
  position: relative;
  background: var(--paper); border: 5px solid var(--mark); border-radius: var(--radius);
  padding: clamp(12px, 1.4vw, 24px); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  justify-content: center;
  /* a fixed size from the start: these used to grow when picked, because the
     tick was part of the flow, so choosing one resized the whole row */
  min-height: clamp(132px, 17vh, 190px);
}
.opt.on { border-color: var(--green); background: #f3fdf7; }
.opt.on::after {
  content: '✓'; color: var(--green); font-weight: 900; font-size: 1.4em;
  position: absolute; top: 6px; inset-inline-end: 14px; line-height: 1;
}
.opt-emoji { font-size: clamp(40px, 3.6vw, 70px); line-height: 1; }
.opt-label { font-weight: 800; font-size: clamp(15px, 1.4vw, 24px); }
.opt-note { color: var(--grey); font-size: clamp(11px, 1vw, 16px); }

.avatar-grid { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 10px auto; }
.avatar-grid.small { justify-content: flex-start; }
.avatar {
  position: relative;
  background: var(--paper); border: 4px solid var(--mark); border-radius: 16px;
  font-size: clamp(24px, 2.2vw, 42px); line-height: 1; padding: 8px 10px;
  min-width: 52px; min-height: 52px;
  transition: transform .12s, opacity .12s;
}
/* The chosen one has to be obvious at a glance, to a child: the others fade
   back a little, and this one grows, gets a thick green ring and a tick. */
.avatar-grid:has(.avatar.on) .avatar:not(.on) { opacity: .55; }
.avatar-grid .avatar:not(.on):hover { opacity: 1; }
.avatar.on, #screen-setup .avatar.on {
  border-color: var(--green); background: #e6f8ee;
  box-shadow: 0 0 0 4px var(--green), 0 6px 0 rgba(16, 38, 74, .18);
  transform: scale(1.22); z-index: 1; opacity: 1;
}
.avatar.on::after {
  content: '✓'; position: absolute; top: -10px; inset-inline-end: -10px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 15px; font-weight: 800;
  line-height: 24px; text-align: center; box-shadow: 0 2px 0 rgba(0, 0, 0, .2);
}
.avatar-grid { padding: 8px; gap: 14px; }

.theme-grid {
  display: grid; gap: var(--gap); margin: var(--gap) auto; max-width: 1200px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}
.theme-tile {
  border: 5px solid var(--t1); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--t3), #fff);
  padding: clamp(10px, 1.2vw, 20px); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 110px;
  justify-content: center;
}
.theme-tile.on { outline: 5px solid var(--t2); outline-offset: 3px; }
.tt-emoji { font-size: clamp(44px, 4.2vw, 84px); line-height: 1; }
.tt-name { font-weight: 800; font-size: clamp(15px, 1.4vw, 24px); color: var(--ink); }
.theme-tile.locked { filter: grayscale(.85); opacity: .72; border-style: dashed; }
.theme-tile.locked .tt-name { color: var(--grey); }
.theme-tile.shake { animation: shake .35s; }
.tt-cost { font-weight: 800; font-size: clamp(11px, 1vw, 16px); color: var(--accent);
           background: var(--paper); border-radius: 999px; padding: 1px 10px; }

/* a world opening is worth announcing */
.unlock-line {
  margin: 10px auto 0; max-width: 680px;
  background: #fff6e0; border: 3px solid var(--accent2); border-radius: 999px;
  padding: 8px 18px; font-weight: 800; color: #6a5420;
  font-size: clamp(13px, 1.2vw, 20px);
}

.wizard-btns { display: flex; gap: var(--gap); justify-content: center; margin-top: var(--gap); flex-wrap: wrap; }
.done-card { background: var(--paper); border: 6px solid var(--green); border-radius: clamp(20px, 2.4vw, 44px);
             padding: clamp(18px, 2.4vw, 46px); max-width: 760px; margin: 0 auto; box-shadow: var(--shadow); }
.done-avatar { font-size: clamp(54px, 5vw, 110px); line-height: 1; }

/* ---------- who is playing ---------- */

.who-grid {
  display: grid; gap: var(--gap); margin: var(--gap) auto; max-width: 1100px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
}
.who-tile {
  background: var(--paper); border: 5px solid var(--mark); border-radius: var(--radius);
  padding: clamp(14px, 1.6vw, 28px); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.who-tile.on { border-color: var(--green); }
.who-tile.add { border-style: dashed; }
.who-avatar { font-size: clamp(40px, 3.8vw, 76px); line-height: 1; }
.who-name { font-weight: 800; font-size: clamp(14px, 1.3vw, 22px); }

/* ---------- the grown-up gate ---------- */

.gate {
  display: none; position: fixed; inset: 0; z-index: 60;
  background: rgba(16, 38, 74, .55);
  align-items: center; justify-content: center; padding: 20px;
}
.gate.open { display: flex; }
.gate-card {
  background: var(--paper); border: 6px solid var(--line); border-radius: clamp(18px, 2vw, 32px);
  padding: clamp(18px, 2vw, 36px); max-width: 480px; width: 100%; text-align: center;
}
.gate-card h2 { margin: 0 0 6px; font-size: clamp(18px, 1.7vw, 30px); }
.gate-q { font-size: clamp(26px, 2.6vw, 54px); font-weight: 800; margin: 10px 0; }

/* ---------- phones ---------- */

@media (max-width: 560px) {
  .answers { grid-template-columns: repeat(2, 1fr); }
  .door { padding: 12px 10px; }
  .dt { font-size: 26px; padding: 2px 8px; }
  .door-title { font-size: 20px; }
  .sb-name { display: none; }
  .stat { min-width: 48px; }
  .play-rink { margin: 4px auto; width: calc(100% - 8px); min-height: 62vh; }
  .coach { border-radius: 24px; }
  .set-label { flex-basis: 100%; }
  .flash { inset-block-start: 12vh; font-size: clamp(18px, 5vw, 26px); }
}

/* a wide short window - a laptop in landscape - gets a tighter board */
@media (max-height: 560px) and (min-width: 700px) {
  .play-rink { min-height: 0; }
  .question { min-height: 90px; }
  .pic { font-size: 14vh; }
}

/* ---------- what practice earns ---------- */

/* today's challenge: one drill picked for the day, worth a ticket */
.challenge {
  display: block; margin: var(--gap) auto 0;
  background: linear-gradient(135deg, #fff7d6, #ffe9a8);
  border: 4px solid var(--accent2); border-radius: 999px;
  font-weight: 800; font-size: clamp(14px, 1.3vw, 22px); color: var(--ink);
  padding: clamp(8px, 1vw, 14px) clamp(18px, 2vw, 34px); min-height: 48px;
  box-shadow: var(--shadow);
}
.challenge.done { background: var(--paper); border-color: var(--green); opacity: .85; }

.game-btn { background: var(--mark); color: var(--grey); }
.game-btn.ready {
  background: linear-gradient(135deg, #7a3cc0, #ff4f9a); color: #fff;
  animation: glow 1.6s ease-in-out infinite;
}
.game-btn[aria-disabled="true"] { cursor: default; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px rgba(255, 79, 154, .25), var(--shadow); } }
.calm .game-btn.ready { animation: none; }
.ticket-note { color: var(--grey); font-weight: 700; font-size: clamp(14px, 1.2vw, 18px); margin: 8px 0 0; }

.big-btn.gold { background: linear-gradient(135deg, #7a3cc0, #ff4f9a); color: #fff; }
.unlock-line.level-up { color: var(--green); }
.unlock-line.ticket-line { color: #b0337a; }

/* the game: a field the size of the screen, wearing the design's photo */
#screen-game { position: relative; }
.game-wrap { display: flex; flex-direction: column; height: calc(100dvh - 90px); min-height: 300px;
             padding: clamp(6px, .8vw, 12px); gap: 6px; }
.game-hud { display: flex; justify-content: space-between; gap: 8px; direction: ltr; }
.game-stat { background: var(--paper); border: 3px solid var(--mark); border-radius: 999px;
             padding: 3px 12px; font-weight: 800; font-size: clamp(14px, 1.3vw, 22px);
             unicode-bidi: plaintext; }
.game-field { position: relative; flex: 1; border-radius: var(--radius); overflow: hidden;
              border: 4px solid var(--line); background: var(--field) center / cover no-repeat;
              touch-action: none; }
/* the photo sets the scene but must not look like something to catch: blurred
   and washed out behind the play */
.game-field::before { content: ''; position: absolute; inset: -16px; background: inherit;
                      filter: blur(8px) saturate(.85); }
.game-field::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .5); }
#game-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; z-index: 1;
  /* the finger steers; the browser must not take the drag for a scroll */
  touch-action: none; -webkit-user-select: none; user-select: none; }
/* the skill game (game.js): the question at the top, its answers falling as tiles */
.game-tiles { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.game-tile { position: absolute; left: 0; top: 0; min-width: clamp(56px, 8vw, 104px); max-width: 46%; padding: 6px 14px;
  display: flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap;
  background: var(--paper); border: 4px solid var(--line); border-radius: 18px; box-shadow: 0 5px 0 rgba(16, 38, 74, .25);
  font-size: clamp(22px, 3vw, 40px); font-weight: 800; color: var(--ink); line-height: 1.15; will-change: transform; }
/* a picture answer is the size of a word answer, not a poster */
.game-tile > *, .game-tile svg, .game-tile img { max-height: clamp(40px, 7vh, 70px); width: auto; }
.game-tile.right { border-color: var(--green); background: #e6f7ec; transition: opacity .6s, transform .6s; opacity: 0; }
.game-tile.wrong { border-color: var(--accent); background: #fde6e4; transition: opacity .6s; opacity: 0; }
.game-tile.gone { transition: opacity .4s; opacity: 0; }
/* the question: a slim strip above the field, so the answers fall from the very top */
.game-cue { display: flex; align-items: center; gap: 12px; justify-content: center; flex: none;
  background: rgba(255, 255, 255, .96); border: 3px solid var(--ink); border-radius: 18px; padding: 4px 14px;
  height: clamp(56px, 12vh, 100px); overflow: hidden; }
.game-ask { font-size: clamp(18px, 2.2vw, 30px); font-weight: 800; color: var(--ink); text-align: center; }
.game-hear { border: 0; background: var(--green); color: #fff; border-radius: 50%; width: 42px; height: 42px; font-size: 20px; cursor: pointer; flex: none; }
.game-look { display: flex; align-items: center; justify-content: center; height: 100%; max-width: 45%; overflow: hidden; }
.game-look-fit { display: inline-flex; align-items: center; justify-content: center; }
/* the small print under a picture is for the drill; up here it only crowds the strip */
.game-look .caption { display: none; }
.game-cue.hint { animation: cue-hint .7s ease; }
@keyframes cue-hint { 30% { transform: scale(1.04); border-color: var(--green); } }
.game-count, .game-over { z-index: 3; }
.game-count { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
              font-size: clamp(36px, 7vw, 120px); font-weight: 800; color: var(--ink);
              text-shadow: 0 3px 0 #fff; text-align: center; padding: 16px; }
.game-over { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
             background: rgba(255, 255, 255, .6); padding: 16px; }

/* the harder ways to show a number */
.tok-scatter { display: grid; gap: clamp(4px, .8vw, 14px); justify-content: center; align-items: center; }
.tok-scatter .sc-cell { display: inline-flex; min-width: 1em; min-height: 1em; justify-content: center; }
.sum-figures { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 1.6vw, 28px); }
.sum-figures .big-num { font-size: min(clamp(54px, 6vw, 130px), 15vh); }
.sum-figures .big-num.q { color: var(--accent); }
.sum-figures .op { font-size: min(clamp(40px, 4.5vw, 96px), 11vh); font-weight: 800; color: var(--grey); }

/* ---------- trophies and fireworks ---------- */

.fireworks { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none;
             z-index: 95; display: none; }

.celebrate { position: fixed; inset: 0; z-index: 90; display: none; align-items: center;
             justify-content: center; padding: 16px; background: rgba(10, 18, 40, .72); }
.celebrate.open { display: flex; animation: cel-fade .25s ease-out; }
@keyframes cel-fade { from { opacity: 0; } }
.cel-card { position: relative; overflow: hidden; text-align: center; width: min(560px, 100%);
            background: linear-gradient(180deg, #fffdf3, #fff4c9); border: 6px solid #f2c14e;
            border-radius: 36px; padding: clamp(20px, 3vw, 40px); box-shadow: 0 18px 0 rgba(0, 0, 0, .25);
            animation: cel-pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.cel-card.tier-3, .cel-card.tier-4 { border-color: #ff8c42; background: linear-gradient(180deg, #fff8e6, #ffd98a); }
@keyframes cel-pop { from { transform: scale(.4) rotate(-6deg); opacity: 0; } }
.cel-rays { position: absolute; inset: -60%; z-index: 0; opacity: .45;
            background: repeating-conic-gradient(from 0deg, #ffe27a 0 10deg, transparent 10deg 20deg);
            animation: cel-spin 14s linear infinite; }
@keyframes cel-spin { to { transform: rotate(360deg); } }
.cel-card > *:not(.cel-rays) { position: relative; z-index: 1; }
.cel-kicker { margin: 0; font-weight: 800; letter-spacing: .04em; color: #b0337a;
              font-size: clamp(16px, 1.6vw, 26px); }
.cel-trophy { font-size: clamp(110px, 16vw, 220px); line-height: 1.1;
              filter: drop-shadow(0 10px 0 rgba(0, 0, 0, .18));
              animation: cel-drop .8s cubic-bezier(.3, 1.6, .5, 1) .1s both, cel-bob 2.2s ease-in-out 1s infinite; }
@keyframes cel-drop { from { transform: translateY(-120%) scale(.6); opacity: 0; } }
@keyframes cel-bob { 50% { transform: translateY(-8px) rotate(3deg); } }
.cel-name { margin: 6px 0 4px; font-size: clamp(28px, 3.4vw, 54px); color: var(--ink); }
.cel-sub { margin: 0 0 18px; color: var(--grey); font-weight: 700; font-size: clamp(14px, 1.3vw, 22px); }
.calm .cel-rays, .calm .cel-trophy { animation: none; }

/* the shelf in the trophy case: won ones shine, the rest show how close */
.award-grid { display: grid; gap: var(--gap); margin: 8px auto var(--gap); max-width: 1200px;
              grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.award { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
         background: var(--paper); border: 4px dashed var(--mark); border-radius: var(--radius);
         padding: 12px 10px; text-align: center; }
.award.won { border-style: solid; border-color: #f2c14e;
             background: linear-gradient(180deg, #fffdf3, #fff1bf); box-shadow: var(--shadow); }
.award.won.tier-3, .award.won.tier-4 { border-color: #ff8c42; }
.aw-icon { font-size: clamp(38px, 4vw, 64px); line-height: 1; }
.award:not(.won) .aw-icon { opacity: .5; }
.aw-name { font-weight: 800; font-size: clamp(13px, 1.2vw, 18px); }
.aw-done { position: absolute; top: 6px; inset-inline-end: 10px; color: var(--green); font-weight: 800; }
.aw-bar { width: 80%; height: 8px; border-radius: 99px; background: var(--mark); overflow: hidden; }
.aw-bar i { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.aw-left { color: var(--grey); font-size: clamp(14px, 1.1vw, 17px); font-weight: 700; }

/* "2 to go for the trophy..." under the results */
.next-award { margin: 6px auto 0; display: inline-block; background: #fff7d6; border: 3px dashed #f2c14e;
              border-radius: 999px; padding: 6px 16px; font-weight: 800; color: var(--ink);
              font-size: clamp(13px, 1.2vw, 19px); unicode-bidi: plaintext; }
.cel-trophy { position: relative; display: inline-block; }
.cel-badge { position: absolute; bottom: 4%; inset-inline-end: -12%; font-size: .38em;
             background: #fff; border: 5px solid #f2c14e; border-radius: 50%; width: 1.5em; height: 1.5em;
             display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 0 rgba(0, 0, 0, .15); }

/* connect the pairs: two columns and the lines drawn between them */
.answers.match-board { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(60px, 14vw, 220px); max-width: 760px; margin: 0 auto; width: 100%;
  touch-action: none; -webkit-user-select: none; user-select: none; }
.match-col { display: flex; flex-direction: column; gap: clamp(8px, 1.6vh, 16px); position: relative; z-index: 1; }
.question.none { display: none; }
.match-item { min-height: clamp(56px, 10vh, 100px); display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 4px solid var(--mark); border-radius: 18px; cursor: pointer;
  padding: 6px; transition: transform .12s, box-shadow .12s; }
.match-item:hover { transform: scale(1.03); }
.match-item.active { border-color: var(--line); box-shadow: 0 0 0 5px rgba(58, 134, 255, .35); transform: scale(1.05); }
.match-item.done { cursor: default; background: #f1fff6; transform: none; }
.match-item.shake { animation: shake .35s; }
.match-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.match-lines line { stroke-width: 7; stroke-linecap: round; }
.match-lines line.live { stroke: var(--line); stroke-dasharray: 2 12; }
.match-lines line.wrong { stroke: var(--accent); opacity: .85; }
.m-letter { font-size: clamp(34px, 6vh, 60px); font-weight: 800; line-height: 1; }
.m-pic { font-size: clamp(38px, 7vh, 66px); line-height: 1; }
.m-sum { font-size: clamp(26px, 4.6vh, 44px); font-weight: 800; direction: ltr; }
.match-item .big-num { font-size: clamp(34px, 6vh, 60px); }
.m-count .tok-grid { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.m-count .tok { font-size: clamp(14px, 2.6vh, 24px); }
.m-count .tok:not(.tok-emoji) { width: clamp(14px, 2.6vh, 24px); height: clamp(14px, 2.6vh, 24px); }

/* a new version is ready: a bar along the bottom, out of the way */
.update-bar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 18px; max-width: calc(100% - 32px);
  background: var(--paper); border: 3px solid var(--line); border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18); font-weight: 800; }
.update-bar[hidden] { display: none; }
.update-bar .big-btn { padding: 6px 18px; font-size: 16px; min-height: 0; }

/* the sign-in and subscribe cards */
.gate-card.acc .owl { width: 96px; height: auto; display: block; margin: 0 auto 4px; }
.gate-card.acc input[type="email"] { text-align: center; }
.gate-card .note.warn { color: var(--accent); font-weight: 700; }
.gate-card .note.small { font-size: 13px; }
.linkish { background: none; border: 0; padding: 0; color: var(--line); text-decoration: underline; font: inherit; cursor: pointer; }
.acc-lang { display: flex; justify-content: center; gap: 8px; margin-bottom: 6px; }

/* the game has opened (app.js gamePopup) */
.ticket-pop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  background: rgba(16, 38, 74, .45); padding: 16px; animation: pop-fade .25s ease; }
.ticket-card { position: relative; background: var(--paper); border: 5px solid #7a3cc0; border-radius: 28px;
  padding: 26px 30px 30px; text-align: center; width: min(420px, 100%); box-shadow: 0 10px 0 rgba(16, 38, 74, .25);
  animation: pop-in .45s cubic-bezier(.3, 1.5, .6, 1); }
.ticket-icon { font-size: 84px; line-height: 1; animation: map-bob 1.6s ease-in-out infinite; }
.ticket-title { margin: 10px 0 20px; font-size: clamp(22px, 3vw, 32px); color: var(--ink); }
.ticket-play { font-size: clamp(22px, 2.6vw, 32px); padding: 16px 40px; animation: ticket-glow 1.4s ease-in-out infinite; }
.ticket-x { position: absolute; top: 10px; inset-inline-end: 12px; border: 0; background: var(--mark); color: var(--ink);
  width: 40px; height: 40px; border-radius: 50%; font-size: 18px; font-weight: 800; cursor: pointer; }
@keyframes pop-fade { from { opacity: 0; } }
@keyframes pop-in { from { transform: scale(.6); opacity: 0; } }
@keyframes map-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ticket-glow { 0%, 100% { box-shadow: 0 6px 0 #4b2177, 0 0 0 0 rgba(255, 79, 154, .5); }
                         50% { box-shadow: 0 6px 0 #4b2177, 0 0 0 14px rgba(255, 79, 154, 0); } }
@media (prefers-reduced-motion: reduce) { .ticket-icon, .ticket-play, .ticket-card { animation: none; } }
