/* ============================================================
   פרסנטו · design system
   Brand: navy (the boy's hoodie), red = sales/percent only, gold accent.
   World layer (mall, stores) is rich; learning layer (task screen) is calm.
   No page ever scrolls.
   ============================================================ */
:root {
  --navy: #14285A; --navy-2: #1E3A7A; --navy-ink: #0E1B3D;
  --red: #E1261C; --gold: #F4B400; --gold-2: #FFD452;
  --cream: #FFF8EC; --paper: #FFFFFF; --bg: #EEF1F7; --line: #D9DFEA;
  --ink: #18213A; --ink-2: #4A5470; --ink-3: #5F6880;
  --ok: #157A4A; --ok-bg: #E4F5EC;
  --miss: #A44A00; --miss-bg: #FFF1E2;      /* errors are never red: red means "sale" */
  --info: #1C5FA8; --info-bg: #E8F1FB;
  --r-lg: 22px; --r-md: 14px; --r-sm: 10px;
  --gap: clamp(8px, 1.4vmin, 20px);
  --shadow: 0 10px 30px rgb(14 27 61 / .16);
  --shadow-sm: 0 3px 10px rgb(14 27 61 / .12);
  --ease: cubic-bezier(.2, .8, .2, 1);
  font-size: clamp(14px, calc(.9vmin + .45vw), 22px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body { background: var(--bg); color: var(--ink); font-family: Rubik, system-ui, sans-serif; line-height: 1.45; -webkit-font-smoothing: antialiased; overscroll-behavior: none; touch-action: manipulation; }
::selection { background: var(--gold-2); color: var(--navy-ink); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
button:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 10px; }
img { display: block; max-width: 100%; }
bdi { unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.frac { display: inline-grid; vertical-align: middle; text-align: center; line-height: 1.05; margin-inline: .15em; font-weight: 700; direction: ltr; }
.frac i { font-style: normal; padding-inline: .2em; }
.frac i:first-child { border-bottom: 2px solid currentColor; }

#app { height: 100dvh; transition: opacity .16s; }
#app.leaving { opacity: 0; }
.no-motion #app { transition: none; }
.screen { height: 100dvh; display: grid; grid-template-rows: minmax(0, 1fr); overflow: hidden; position: relative; }

/* ---------- buttons ---------- */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 3.1em; padding: .6em 1.5em; border-radius: 999px; background: var(--gold); color: var(--navy-ink); font-weight: 800; font-size: 1.12rem; box-shadow: 0 6px 0 #C48F00, var(--shadow-sm); transition: transform .12s var(--ease), box-shadow .12s; }
.cta:hover { background: var(--gold-2); }
.cta:active { transform: translateY(4px); box-shadow: 0 2px 0 #C48F00; }
.ghost { display: inline-flex; align-items: center; gap: .45em; min-height: 2.8em; padding: .5em 1.1em; border-radius: 999px; background: var(--paper); border: 2px solid var(--line); font-weight: 700; color: var(--navy); }
.ghost:hover { border-color: var(--navy); }
.link { color: var(--navy); text-decoration: underline; text-underline-offset: .25em; font-weight: 600; min-height: 2.4em; padding: 0 .4em; }

/* ---------- top bar ---------- */
.topbar { position: absolute; top: 0; inset-inline: 0; display: flex; align-items: center; gap: var(--gap); padding: .7rem clamp(12px, 2vw, 30px); z-index: 20; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.brand { flex: none; padding: 0; border-radius: 8px; }
.brand img { height: 3.1rem; width: auto; filter: drop-shadow(0 2px 6px rgb(0 0 0 / .35)); transition: transform .2s var(--ease); }
.brand:hover img { transform: scale(1.04) rotate(-1deg); }
.tb-title { flex: 1; display: flex; }
.tb-title > span { display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0 1.1em; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 800; font-size: 1rem; box-shadow: 0 4px 14px rgb(14 27 61 / .18); white-space: nowrap; }
.tb-nav { display: flex; align-items: center; gap: .45rem; }
.tb-btn { display: inline-flex; align-items: center; gap: .4em; min-height: 2.6rem; padding: 0 1em; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 700; font-size: .92rem; box-shadow: 0 4px 14px rgb(14 27 61 / .18); transition: transform .15s var(--ease); }
.tb-btn:hover { transform: translateY(-1px); }
.tb-icon { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy); box-shadow: 0 4px 14px rgb(14 27 61 / .18); }
.tb-icon:hover { transform: translateY(-1px); }
.tb-who { display: inline-flex; align-items: center; gap: .35em; min-height: 2.6rem; padding: 0 .9em; border-radius: 999px; background: rgb(255 255 255 / .92); color: var(--ink-2); font-size: .85rem; font-weight: 600; white-space: nowrap; box-shadow: 0 4px 14px rgb(14 27 61 / .14); }
.round-main, .checkout-main, .kn-main, .t-main { padding-top: 4.6rem !important; }

/* ---------- scene: image box that covers, keeping % hotspots aligned ---------- */
.scene { position: relative; overflow: hidden; container-type: size; background: #222; }
.scene-box { position: absolute; left: 50%; top: 50%; width: max(100cqw, calc(100cqh * var(--ar))); height: max(100cqh, calc(100cqw / var(--ar))); transform: translate(-50%, -50%); container-type: size; transition: transform .6s cubic-bezier(.6, 0, .3, 1), opacity .6s; }
.scene-img { width: 100%; height: 100%; object-fit: cover; user-select: none; }
.scene-box.zoom-in { transform: translate(-50%, -50%) scale(3.3); opacity: .0; transition: transform .62s cubic-bezier(.55, 0, .25, 1), opacity .3s .38s; }
.scene-box .fade { opacity: 0 !important; transition: opacity .2s; }

/* ---------- home: bright, crafted cover (the bar set by the market game) ---------- */
.title-screen { background: #FBF7F0; }
.home-main { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(16px, 3vw, 60px); padding: 0 clamp(24px, 6vw, 120px) !important; background: radial-gradient(70% 90% at 15% 55%, #FFFFFF 0, #FBF7F0 55%, #F4EDE0 100%); }
.ts-hero { position: relative; z-index: 2; display: grid; justify-items: center; text-align: center; gap: clamp(8px, 1.6vh, 18px); animation: heroin .8s var(--ease) both .05s; }
@keyframes heroin { from { opacity: 0; transform: translateY(18px); } }
.ts-logo { width: min(100%, 34vw, 560px); height: auto; filter: drop-shadow(0 10px 18px rgb(20 40 90 / .2)); }
.ts-tag { font-size: clamp(1.5rem, 2.7vw, 2.8rem); font-weight: 800; color: var(--navy); line-height: 1.1; letter-spacing: -.015em; }
.ts-rule { width: 4.5rem; height: 4px; border-radius: 99px; background: var(--gold); }
.ts-sub { font-size: clamp(1.02rem, 1.3vw, 1.35rem); color: var(--ink-2); font-weight: 600; }
.ts-chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; }
.ts-chips li { padding: .45em 1.1em; border-radius: 999px; background: #fff; border: 2px solid #EADFCB; font-weight: 800; color: var(--navy); font-size: .95rem; box-shadow: 0 2px 0 #EADFCB; }
.ts-actions { position: relative; margin-top: .5rem; }
.ts-cta { font-size: clamp(1.3rem, 1.9vw, 1.9rem); min-height: 3.1em; padding-inline: 1.3em 2em; gap: .7em; box-shadow: 0 7px 0 #C48F00, 0 18px 30px rgb(150 100 0 / .25); }
.ts-play { width: 1.7em; height: 1.7em; border-radius: 50%; background: #fff; color: var(--navy); display: grid; place-items: center; }
.ts-play .ic { fill: currentColor; stroke: none; width: .9em; height: .9em; margin-left: .12em; }
.ts-coin { position: absolute; width: clamp(54px, 5vw, 90px); clip-path: circle(35% at 50% 49%); filter: drop-shadow(0 6px 8px rgb(120 80 0 / .3)); }
.ts-coin.c1 { left: -20%; top: 20%; transform: rotate(-14deg); animation: coinbob 3.4s ease-in-out infinite; }
.ts-coin.c2 { left: -9%; top: 72%; width: clamp(40px, 3.6vw, 64px); animation: coinbob 3.4s ease-in-out infinite .8s; }
@keyframes coinbob { 50% { translate: 0 -8px; } }
.ts-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; margin-top: .2rem; }
.ts-link { display: inline-flex; align-items: center; gap: .4em; min-height: 2.6rem; color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: #E2D4B8; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.ts-link:hover { text-decoration-color: var(--gold); }
.ts-link .ic { color: var(--gold); stroke: var(--navy); }
.ts-collage { position: relative; z-index: 1; height: min(82vh, 46vw); }
.tc { position: absolute; margin: 0; padding: .55rem .55rem 1.6rem; background: #fff; border-radius: 6px; box-shadow: 0 18px 40px rgb(60 40 10 / .22), 0 2px 6px rgb(60 40 10 / .12); animation: cardin2 .9s var(--ease) both; }
.tc img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; border-radius: 3px; }
.tc1 { width: 38%; aspect-ratio: .9; left: 0; top: 22%; transform: rotate(-7deg); animation-delay: .25s; }
.tc2 { width: 48%; aspect-ratio: .9; left: 24%; top: 6%; transform: rotate(2deg); z-index: 2; animation-delay: .1s; }
.tc3 { width: 36%; aspect-ratio: .9; right: 0; top: 26%; transform: rotate(8deg); animation-delay: .4s; }
.tc:hover { z-index: 3; }
@keyframes cardin2 { from { opacity: 0; translate: 0 30px; } }
.tc-tag { position: absolute; z-index: 4; display: grid; place-items: center; width: clamp(64px, 6.4vw, 108px); aspect-ratio: 1; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; font-size: clamp(1.1rem, 1.8vw, 1.9rem); border: 4px solid #fff; box-shadow: 0 10px 20px rgb(160 20 10 / .3); direction: ltr; }
.tc-tag.t1 { left: 18%; top: 4%; transform: rotate(-12deg); }
.tc-tag.t2 { right: 6%; top: 18%; transform: rotate(10deg); width: clamp(54px, 5.2vw, 88px); font-size: clamp(.95rem, 1.5vw, 1.5rem); }
.tc-guide { position: absolute; z-index: 5; height: 58%; left: 33%; bottom: -2%; filter: drop-shadow(0 14px 14px rgb(60 40 10 / .28)); animation: guidein .9s var(--ease) both .6s; }
@keyframes guidein { from { opacity: 0; translate: 0 30px; } }
/* trailer overlay */
.trailer-overlay, .bridge { position: fixed; inset: 0; z-index: 50; background: #05080f; display: grid; place-items: center; }
.to-box { width: min(96vw, calc(88vh * 16 / 9)); display: grid; gap: .7rem; }
.to-box video { width: 100%; border-radius: 14px; background: #000; }
.to-bar { display: flex; justify-content: space-between; align-items: center; color: #cfd6e6; font-weight: 600; }
.to-skip { display: inline-flex; align-items: center; gap: .35em; min-height: 2.8rem; padding: 0 1.2em; border-radius: 999px; background: rgb(255 255 255 / .14); color: #fff; font-weight: 700; }
.to-skip:hover { background: rgb(255 255 255 / .25); }
.bridge video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bridge .to-skip { position: absolute; bottom: 1.4rem; left: 1.4rem; }
.bridge.out { opacity: 0; transition: opacity .5s; }

/* ---------- entrance ---------- */

.entrance > *, .store > *, .atrium > * { grid-column: 1; }
.entrance-scene { grid-row: 1; }
.mall-sign { position: absolute; left: 50%; top: 22%; height: 10.5%; width: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 .3cqh .4cqh rgb(0 0 0 / .18)); }
.guard { position: absolute; left: 70.5%; bottom: 20%; height: 44%; width: auto; transform-origin: bottom center; animation: bob 3.2s ease-in-out infinite; filter: drop-shadow(0 10px 8px rgb(0 0 0 / .25)); transition: opacity .4s, transform .4s; }
.guard.away { opacity: 0; transform: translateY(10px); }
@keyframes bob { 50% { transform: translateY(-1.2%); } }
.signin { grid-row: 1; align-self: center; justify-self: end; margin-inline-end: clamp(12px, 3.2vw, 56px); width: min(460px, 38vw); max-height: calc(100% - 24px); z-index: 5; background: #fff; border-radius: 26px; box-shadow: 0 30px 70px rgb(8 16 40 / .35), 0 0 0 1px rgb(20 40 90 / .06); padding: clamp(16px, 2.6vmin, 30px) clamp(16px, 2.4vmin, 28px) clamp(14px, 2.2vmin, 24px); display: grid; gap: .7rem; overflow: hidden; border-top: 6px solid var(--gold); transition: opacity .35s, transform .35s; animation: panelin .6s var(--ease) both .15s; }
@keyframes panelin { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.signin.away { opacity: 0; transform: translateX(-20px); }
.si-band { margin-inline: calc(-1 * clamp(16px, 2.4vmin, 28px)); padding: .9rem clamp(16px, 2.4vmin, 28px); background: var(--navy); display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: #C9D3EC; font-weight: 600; font-size: .9rem; }
.si-band img { height: 2.6rem; width: auto; background: #fff; border-radius: 12px; padding: .2rem .5rem; }
.signin h1 { font-size: 1.85rem; color: var(--navy); line-height: 1.1; margin-top: .2rem; letter-spacing: -.01em; }
.si-step { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: var(--ink); }
.si-step b { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--navy-ink); font-size: .85rem; }
.lead { color: var(--ink-2); }
.guides { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.guide-pick { position: relative; display: grid; justify-items: center; padding: .5rem .4rem .45rem; border-radius: 18px; border: 2px solid transparent; font-weight: 800; color: var(--navy); overflow: hidden; transition: transform .15s var(--ease), box-shadow .2s; }
.guide-pick::before { content: ""; position: absolute; inset: 18% 8% 16%; border-radius: 50%; opacity: .9; }
.g-girl { background: #E7F6F4; } .g-girl::before { background: #BFE9E3; }
.g-boy { background: #E9EEF9; } .g-boy::before { background: #C9D5F0; }
.guide-pick img { position: relative; height: clamp(78px, 15vh, 150px); width: auto; transition: transform .25s var(--ease); }
.guide-pick span { position: relative; }
.guide-pick:hover img { transform: translateY(-3px); }
.guide-pick.on { border-color: var(--navy); box-shadow: 0 0 0 3px var(--gold-2); }
.gp-check { position: absolute; top: .45rem; inset-inline-start: .45rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: all .2s var(--ease); }
.gp-check .ic { width: 1rem; height: 1rem; }
.guide-pick.on .gp-check { opacity: 1; transform: scale(1); }
.fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.fields.two { grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: .2rem; font-size: .85rem; font-weight: 600; color: var(--ink-2); min-width: 0; }
.field input { width: 100%; height: 2.7em; border-radius: var(--r-sm); border: 2px solid var(--line); background: #fff; padding-inline: .7em; font-size: 1.1rem; font-weight: 700; color: var(--navy); direction: ltr; text-align: center; letter-spacing: .08em; }
.field input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px var(--gold-2); }
.form-msg { color: var(--miss); font-weight: 600; min-height: 1.3em; font-size: .9rem; }
.signin .cta { width: 100%; }
.signin-alt { display: flex; justify-content: space-between; flex-wrap: wrap; }
.privacy { font-size: .78rem; color: var(--ink-3); }

/* ---------- atrium ---------- */

.sun { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgb(255 250 225 / .22) 45%, transparent 60%); background-size: 260% 100%; animation: sun 14s ease-in-out infinite alternate; pointer-events: none; mix-blend-mode: screen; }
@keyframes sun { from { background-position: 100% 0; } to { background-position: 0 0; } }
.sign { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; height: 4.6cqh; padding-inline: .5cqw; pointer-events: none; text-align: center; white-space: nowrap; font-weight: 800; font-size: 1.55cqw; line-height: 1; }
.sign span { display: block; }
.sign-candy span { color: #1F5A45; font-family: Rubik; letter-spacing: .02em; }
.sign-gaming span { color: #fff; text-shadow: 0 0 .4em #A77BFF, 0 0 .9em #39D5D5; }
.sign-sport span { color: #fff; font-style: italic; }
.sign-home span { color: #FFF3D6; font-weight: 600; }
.sign-gadgets span { color: #fff; letter-spacing: .04em; }
.sign-photo span { color: #FFE7B8; font-weight: 600; }
.sign-super span { color: var(--navy); }
.sign-food span { color: #1D4E9E; }
.shop { position: absolute; border-radius: 1.2cqw; transition: box-shadow .25s, background .25s, transform .25s var(--ease); }
.shop:hover, .shop:focus-visible { box-shadow: 0 0 0 .35cqw var(--gold), 0 0 2.5cqw rgb(255 212 82 / .7); background: rgb(255 230 140 / .08); transform: translateY(-.3cqh); }
.shop.soon:hover { box-shadow: 0 0 0 .3cqw rgb(255 255 255 / .7); }
.shop.rec { animation: recpulse 2.4s ease-in-out infinite; }
@keyframes recpulse { 50% { box-shadow: 0 0 0 .35cqw var(--gold), 0 0 3cqw rgb(255 212 82 / .8); } }
.badge { position: absolute; top: -1.6cqh; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .3em; padding: .35cqh .9cqw; border-radius: 999px; font-style: normal; font-weight: 800; font-size: 1cqw; white-space: nowrap; box-shadow: var(--shadow-sm); }
.badge .ic { width: 1.1em; height: 1.1em; }
.badge.rec { background: var(--gold); color: var(--navy-ink); }
.badge.due { background: var(--red); color: #fff; }
.badge.ok { background: var(--ok); color: #fff; }
.badge.soon { background: rgb(14 27 61 / .82); color: #fff; font-weight: 600; opacity: 0; transition: opacity .2s; }
.shop.soon:hover .badge.soon, .shop.soon:focus-visible .badge.soon { opacity: 1; }
.badge.info { background: var(--navy); color: #fff; top: auto; bottom: -1.4cqh; }
.sale-stand { position: absolute; left: 62%; top: 69%; width: 7.5cqw; display: grid; justify-items: center; transform-origin: bottom center; animation: sway 4s ease-in-out infinite; filter: drop-shadow(0 .8cqh .6cqh rgb(0 0 0 / .3)); }
@keyframes sway { 50% { transform: rotate(-2.5deg); } }
.ss-sign { width: 100%; aspect-ratio: 1.15; background: var(--red); color: #fff; border-radius: .8cqw; display: grid; place-content: center; text-align: center; border: .3cqw solid #fff; }
.ss-sign b { font-size: 1.9cqw; line-height: 1; } .ss-sign small { font-size: .8cqw; font-weight: 600; }
.ss-leg { width: .5cqw; height: 6cqh; background: #9aa3b5; }
.sale-stand:hover .ss-sign { box-shadow: 0 0 0 .3cqw var(--gold); }
.store-list { display: none; }
.guide-spot { position: absolute; left: 13%; bottom: 0; height: 34%; z-index: 6; display: flex; align-items: flex-end; pointer-events: none; transition: opacity .3s; }
.guide-spot img, .guide-spot .keyed canvas { height: 100%; width: auto; filter: drop-shadow(0 10px 10px rgb(0 0 0 / .3)); }
.guide-spot .keyed { height: 100%; }
.guide-spot .hide { display: none; }
.guide-spot.away { opacity: 0; }
.bubble { align-self: flex-start; margin-top: 8%; margin-inline-start: -.4rem; max-width: 15rem; background: #fff; color: var(--navy); font-weight: 700; padding: .6rem .9rem; border-radius: 16px 16px 16px 4px; box-shadow: var(--shadow); animation: pop .5s var(--ease) both .3s; }
@keyframes pop { from { opacity: 0; transform: scale(.8) translateY(8px); } }

/* ---------- store entry: doors ---------- */
.door-scene { position: fixed; inset: 0; z-index: 40; background: #111; overflow: hidden; perspective: 1400px; container-type: size; }
.ds-interior { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.35); filter: blur(2px) brightness(.9); transition: transform 1.4s cubic-bezier(.45, 0, .2, 1), filter 1.4s; }
.ds-box { position: absolute; left: 50%; top: 50%; width: max(100cqw, 100cqh); height: max(100cqw, 100cqh); transform: translate(-50%, -50%) scale(1.05); transform-style: preserve-3d; transition: transform 1.5s cubic-bezier(.5, 0, .2, 1) .35s, opacity .4s 1.25s; }
.ds-part, .ds-door { position: absolute; background-repeat: no-repeat; }
.ds-door { transition: transform .9s cubic-bezier(.4, 0, .2, 1); backface-visibility: hidden; }
.ds-door.l { transform-origin: left center; }
.ds-door.r { transform-origin: right center; }
.door-scene.open .ds-door.l { transform: rotateY(-105deg); }
.door-scene.open .ds-door.r { transform: rotateY(105deg); }
.door-scene.open .ds-box { transform: translate(-50%, -50%) scale(2.6); opacity: 0; }
.door-scene.open .ds-interior { transform: scale(1); filter: none; }
.door-scene.out { opacity: 0; transition: opacity .5s; }

/* ---------- store: shelves ---------- */

.store-scene { grid-row: 1; grid-column: 1; }
.store.arrived .scene-box { animation: settle .6s var(--ease); }
@keyframes settle { from { transform: translate(-50%, -50%) scale(1.06); } }
.shelf-band { position: absolute; border-radius: .8cqw; transition: background .2s, box-shadow .2s; }
.shelf-band:hover, .shelf-band:focus-visible { background: rgb(255 230 140 / .18); box-shadow: 0 0 0 .3cqw var(--gold), 0 0 2cqw rgb(255 212 82 / .6); }
.shelf-band.rec { box-shadow: 0 0 0 .3cqw rgb(244 180 0 / .9); animation: recpulse 2.4s ease-in-out infinite; }
.sb-tag { position: absolute; left: .8cqw; top: 0; transform: translateY(-50%); display: inline-flex; align-items: center; gap: .3em; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.05cqw; padding: .35cqh .8cqw; border-radius: 999px; box-shadow: var(--shadow-sm); white-space: nowrap; }
.shelf-band.rec .sb-tag { background: var(--gold); color: var(--navy-ink); }
.shelf-band.done .sb-tag { background: var(--ok); }
.surprise { position: absolute; width: 6.5cqw; transform: translate(-50%, -50%); animation: float 3s ease-in-out infinite; filter: drop-shadow(0 .8cqh .8cqh rgb(0 0 0 / .3)); }
.surprise.done { filter: drop-shadow(0 0 1cqw var(--gold)); }
@keyframes float { 50% { transform: translate(-50%, -58%) rotate(-3deg); } }
.shelf-panel { grid-row: 1; grid-column: 1; justify-self: start; align-self: center; margin-inline-start: clamp(8px, 1vw, 16px); width: min(300px, 20vw); max-height: calc(100% - 20px); z-index: 4; background: rgb(255 255 255 / .96); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(12px, 2vmin, 22px); display: grid; gap: .6rem; }
.shelf-panel h1 { font-size: 1.5rem; color: var(--navy); line-height: 1.1; }
.shelf-list { list-style: none; display: grid; gap: .45rem; }
.sl-btn { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: var(--r-md); border: 2px solid var(--line); background: #fff; text-align: start; transition: border-color .15s, transform .15s; }
.sl-btn:hover { border-color: var(--navy); transform: translateX(-3px); }
.sl-btn > span { display: grid; line-height: 1.25; } .sl-btn small { color: var(--ink-3); font-size: .82rem; }
.sl-num { width: 2.2rem; height: 2.2rem; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 1.15rem; }
.sl-btn.rec { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-2); }
.sl-btn.rec .sl-num { background: var(--gold); color: var(--navy-ink); }
.sl-btn.done .sl-num { background: var(--ok); }
.sl-state { font-style: normal; font-size: .75rem; font-weight: 800; padding: .2em .6em; border-radius: 999px; display: inline-flex; align-items: center; gap: .2em; white-space: nowrap; }
.sl-state.ok { background: var(--ok-bg); color: var(--ok); }
.sl-state.rec { background: var(--gold); color: var(--navy-ink); }
.sl-surprise { display: flex; align-items: center; gap: .6rem; padding: .4rem .6rem; border-radius: var(--r-md); background: var(--cream); border: 2px dashed var(--gold); text-align: start; }
.sl-surprise img { width: 2.6rem; }
.sl-surprise span { display: grid; line-height: 1.25; } .sl-surprise small { color: var(--ink-3); font-size: .8rem; }
.store-guide { left: auto; right: auto; inset-inline-end: 4%; height: 52%; }
.store-guide .bubble { margin-inline-start: 0; margin-inline-end: -.4rem; border-radius: 16px 16px 4px 16px; order: -1; }

/* ---------- round: the calm learning layer ---------- */
.round, .checkout { background: #1d2236; }
.round::before, .checkout::before { content: ""; position: absolute; inset: -30px; background: var(--store-bg) center/cover; filter: blur(14px) brightness(.55) saturate(.8); z-index: 0; }
.round > :not(.topbar), .checkout > :not(.topbar) { position: relative; z-index: 1; }
.round-main { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .72fr); gap: var(--gap); padding: var(--gap) clamp(10px, 1.6vw, 24px) calc(var(--gap) * 1.2); min-height: 0; }
.col-task, .col-answer, .col-note { min-height: 0; display: grid; gap: calc(var(--gap) * .8); }
.col-task { grid-template-rows: auto auto minmax(0, 1fr) auto auto; }
.task-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.dots { list-style: none; display: flex; gap: .45rem; padding: .45rem .7rem; background: rgb(255 255 255 / .12); border-radius: 999px; }
.dots li { width: .85rem; height: .85rem; border-radius: 50%; background: rgb(255 255 255 / .3); transition: transform .2s; }
.dots li.now { background: var(--gold); transform: scale(1.25); }
.dots li.ok { background: #46C98A; } .dots li.okh { background: #9AD8B8; } .dots li.bad { background: #FFB066; }
.wheels-toggle { display: inline-flex; align-items: center; gap: .4em; min-height: 2.5rem; padding: 0 1em; border-radius: 999px; background: rgb(255 255 255 / .14); color: #fff; font-weight: 700; font-size: .9rem; }
.wheels-toggle.on { background: var(--gold); color: var(--navy-ink); }
.task-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; background: var(--paper); border-radius: var(--r-lg); padding: .8rem 1rem; box-shadow: var(--shadow); }
.task-card.in { animation: cardin .45s var(--ease); }
@keyframes cardin { from { opacity: 0; transform: translateY(10px); } }
.product { position: relative; width: clamp(64px, 9vmin, 120px); aspect-ratio: 1; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; }
.product img { width: 92%; height: 92%; object-fit: contain; transition: transform .6s var(--ease), opacity .6s; }
.product.bought img { transform: translateY(-14px) scale(.82); }
.price { position: absolute; bottom: -.55rem; inset-inline-start: -.4rem; background: var(--navy); color: #fff; font-weight: 800; font-size: .8rem; padding: .1em .55em; border-radius: 8px; box-shadow: var(--shadow-sm); }
.q-text { font-size: 1.32rem; font-weight: 700; line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.q-text .n { color: var(--navy); background: #EEF2FB; padding: 0 .2em; border-radius: 6px; white-space: nowrap; }
.q-text mark { background: linear-gradient(transparent 55%, var(--gold-2) 55%); color: inherit; font-weight: 800; padding: 0 .1em; }
.q-text .frac { color: var(--navy); }
.speak { width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--navy); align-self: start; }
.speak:hover { background: var(--line); }
.rep-area { min-height: 0; display: grid; place-items: center; background: rgb(255 255 255 / .96); border-radius: var(--r-lg); padding: var(--gap); container-type: size; }
.help .wheel-card { background: var(--cream); border: 2px solid var(--gold); border-radius: var(--r-md); padding: .65rem .9rem; display: grid; gap: .35rem; font-size: .98rem; }
.wheel-card > b { display: inline-flex; align-items: center; gap: .35em; color: var(--navy); }
.wheel-card .n { font-weight: 800; color: var(--navy); }
.known-line { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .1em .6em; font-weight: 700; font-size: .88rem; color: var(--navy); }
.wheel-more { display: flex; gap: .4rem; }
.wheel-more button { padding: .3em .8em; border-radius: 999px; background: #fff; border: 1.5px solid var(--gold); font-weight: 700; font-size: .85rem; color: var(--navy); }
.wheel-extra:not(:empty) { background: #fff; border-radius: var(--r-sm); padding: .45rem .6rem; }
.ask-help { display: inline-flex; align-items: center; gap: .35em; padding: .45em 1em; border-radius: 999px; background: rgb(255 255 255 / .14); color: #fff; font-weight: 700; }
.feedback { display: none; align-items: flex-start; gap: .55em; padding: .7rem .9rem; border-radius: var(--r-md); font-size: 1rem; background: #fff; box-shadow: var(--shadow-sm); }
.feedback:not(:empty) { display: flex; animation: cardin .35s var(--ease); }
.feedback .ic { margin-top: .15em; }
.feedback.ok { background: var(--ok-bg); } .feedback.ok > .ic { color: var(--ok); }
.feedback.bad, .feedback.miss { background: var(--miss-bg); } .feedback.bad > .ic, .feedback.miss > .ic { color: var(--miss); }
.feedback.info { background: var(--info-bg); } .feedback.info > .ic { color: var(--info); }
.feedback .n { font-weight: 800; }
.col-note { grid-template-rows: minmax(0, 1fr); }
.notebook { display: grid; grid-template-rows: auto minmax(0, 1fr); background: #FFFDF7; border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; position: relative; min-height: 0; }
.nb-bar { display: flex; align-items: center; gap: .35rem; padding: .45rem .6rem; background: #F4EDDC; border-bottom: 1px solid #E8DDC2; }
.nb-title { flex: 1; display: inline-flex; align-items: center; gap: .35em; font-weight: 800; color: var(--navy); }
.nb-tool { width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy); }
.nb-tool i { width: 1rem; height: 1rem; border-radius: 50%; }
.nb-tool.is-on { box-shadow: 0 0 0 2.5px var(--navy); }
.nb-clear { display: inline-flex; align-items: center; gap: .25em; padding: 0 .7em; height: 2.3rem; border-radius: 999px; background: #fff; font-weight: 700; font-size: .85rem; color: var(--ink-2); }
.notebook canvas { width: 100%; height: 100%; touch-action: none; cursor: crosshair; background-image: linear-gradient(#DCE6F5 1.5px, transparent 1.5px); background-size: 100% 2.1rem; background-position: 0 1.6rem; }
.nb-ph { position: absolute; inset: 3rem 0 0; display: grid; place-items: center; color: #B3BDCF; font-weight: 700; pointer-events: none; text-align: center; padding: 1rem; }
.col-answer { grid-template-rows: auto auto auto auto; align-content: start; }
.col-answer .cta { min-height: 3.4rem; height: auto; }
.answer { display: flex; align-items: center; justify-content: center; gap: .1em; min-height: 3.2rem; border-radius: var(--r-md); background: #fff; border: 3px solid var(--navy); font-size: 2rem; font-weight: 800; color: var(--navy); direction: ltr; box-shadow: var(--shadow-sm); width: 100%; }
.answer.empty .a-val::before { content: "?"; opacity: .25; }
.answer.wrong { border-color: var(--miss); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.a-unit { font-size: .75em; color: var(--ink-3); }
.paint-note { display: none; align-items: center; gap: .4em; background: var(--cream); border-radius: var(--r-md); padding: .6rem .8rem; font-weight: 700; color: var(--navy); }
.painting .paint-note { display: flex; }
.painting .pad-host { display: none; }
.paint-pad { display: none; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 4.6rem); gap: .45rem; align-content: center; direction: ltr; }
.painting .paint-pad { display: grid; }
.paint-pad button { border-radius: var(--r-md); background: #fff; box-shadow: 0 3px 0 #C9D1E2; display: grid; place-content: center; color: var(--navy); }
.paint-pad button b { font-size: 1.4rem; } .paint-pad button small { color: var(--ink-3); font-size: .8rem; }
.paint-pad .pp-reset { grid-column: 1 / -1; font-weight: 700; color: var(--ink-2); }
.paint-pad button:active { transform: translateY(3px); box-shadow: none; }
.col-answer { align-content: start; }
.keypad { grid-auto-rows: minmax(2.6rem, 4.4rem); align-content: center; }
.pad-host { min-height: 0; }
.keypad { direction: ltr; height: 100%; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(0, 1fr); gap: .45rem; }
.key { border-radius: var(--r-md); background: #fff; font-size: 1.5rem; font-weight: 800; color: var(--navy); box-shadow: 0 3px 0 #C9D1E2; display: grid; place-items: center; min-height: 2.6rem; transition: transform .08s; }
.key:hover { background: #F5F7FC; }
.key:active { transform: translateY(3px); box-shadow: 0 0 0 #C9D1E2; }
.k-del { color: var(--ink-2); }
.col-answer .cta { width: 100%; }

/* representation: chocolate bar of 100 */
.choco-wrap { display: grid; gap: .6rem; justify-items: center; width: 100%; }
.choco-wrap.two { grid-template-columns: 1fr 1fr; }
.choco-frame { display: flex; align-items: stretch; gap: .5rem; }
.choco-rows { list-style: none; display: grid; grid-template-rows: repeat(10, 1fr); padding: 3.2cqh 0; font-size: clamp(.62rem, 2.6cqh, .9rem); font-weight: 700; color: #A9B1C6; direction: ltr; text-align: right; }
.choco-rows li { display: flex; align-items: center; justify-content: flex-end; transition: color .2s; }
.choco-rows li.full { color: var(--navy); }
.choco { display: grid; grid-template-columns: repeat(5, 1fr) 4% repeat(5, 1fr); grid-template-rows: repeat(10, 1fr); column-gap: 1.6%; row-gap: 1.6%; padding: 3.2%; aspect-ratio: 1.02; height: min(74cqh, 88cqw); background: linear-gradient(160deg, #6B3E1D, #4A2810); border-radius: 14px; box-shadow: 0 0 0 4px #F3E6CF, 0 0 0 6px #D8C29A, 0 14px 28px rgb(60 30 10 / .28); }
.choco-wrap.two .choco { height: min(62cqh, 40cqw); }
.choco-wrap.two .choco-rows { font-size: clamp(.55rem, 2.2cqh, .8rem); }
.sq { border-radius: 16%; background: linear-gradient(150deg, #9C6236 0%, #7E4A25 55%, #6A3C1C 100%); box-shadow: inset 1.5px 1.5px 0 rgb(255 225 190 / .28), inset -1.5px -1.5px 0 rgb(0 0 0 / .28); transition: background .18s, transform .18s, box-shadow .18s; }
.sq:nth-child(10n+6) { grid-column: 7; }
.show-groups .sq.alt { background: linear-gradient(150deg, #B57A48, #915A30); }
.sq.on { background: linear-gradient(150deg, #FFE69A 0%, #FFC83D 55%, #F0A800 100%); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .7), 0 0 0 1px #B98500; transform: scale(1.04); }
.sq.on::after { content: ""; display: block; width: 100%; height: 100%; border-radius: inherit; background: radial-gradient(circle at 50% 50%, rgb(255 255 255 / .55) 0 18%, transparent 20%); }
.paintable .sq:hover { transform: scale(1.1); }
.paintable .sq { cursor: pointer; }
.paintable { touch-action: none; }
.choco-read { grid-column: 1 / -1; display: flex; align-items: center; gap: .5em; font-weight: 800; font-size: 1.25rem; color: var(--navy); direction: ltr; opacity: 0; transition: opacity .3s; }
.show-read .choco-read { opacity: 1; }
.paintable .choco-read { opacity: 1; }

/* representation: download bars */
.dl-wrap { width: 100%; display: grid; gap: 1.2rem; align-content: center; }
.dl { background: #141A2E; color: #fff; border-radius: var(--r-md); padding: .9rem 1rem; box-shadow: 0 8px 20px rgb(0 0 0 / .25); }
.dl-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .55rem; font-weight: 700; }
.dl-name { display: inline-flex; align-items: center; gap: .35em; }
.dl-name .ic { color: #39D5D5; }
.dl-gb { color: #B9C3E0; direction: ltr; }
.dl-bar { position: relative; height: 1.6rem; border-radius: 999px; background: #2A3252; overflow: hidden; direction: rtl; }
.dl-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, #39D5D5, #8C63F0); transition: width 1.2s var(--ease); }
.dl-wrap.go .dl-fill { width: var(--p); }
.dl-ticks { position: absolute; inset: 0; display: flex; justify-content: space-evenly; opacity: 0; transition: opacity .3s; }
.dl-ticks b { width: 2px; background: rgb(255 255 255 / .6); }
.show-ticks .dl-ticks { opacity: 1; }
.dl-scale { display: flex; justify-content: space-between; margin-top: .35rem; font-size: .85rem; color: #B9C3E0; direction: rtl; }
.dl-q { font-weight: 800; color: var(--gold-2); font-size: 1.05rem; }

/* ---------- checkout ---------- */
.checkout-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: calc(var(--gap) * 2); align-items: center; padding: var(--gap) clamp(14px, 4vw, 70px); min-height: 0; }
.receipt { justify-self: end; width: min(100%, 380px); background: #FFFDF8; border-radius: 6px; padding: 1.1rem 1.2rem 1.6rem; box-shadow: var(--shadow); font-variant-numeric: tabular-nums; animation: print 1.1s steps(14) both; transform-origin: top; -webkit-mask: linear-gradient(#000 calc(100% - 10px), transparent 0), radial-gradient(circle 6px at 6px 100%, #000 98%, transparent) 0 100%/12px 12px repeat-x; mask: linear-gradient(#000 calc(100% - 10px), transparent 0), radial-gradient(circle 6px at 6px 100%, #000 98%, transparent) 0 100%/12px 12px repeat-x; }
@keyframes print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.rc-h { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px dashed #CCC; padding-bottom: .6rem; margin-bottom: .5rem; font-weight: 800; color: var(--navy); }
.rc-h img { height: 1.8rem; width: auto; }
.rc-l { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px dotted #DDD; font-weight: 600; }
.rc-l bdi { color: var(--ok); font-weight: 800; white-space: nowrap; }
.rc-l.miss bdi { color: var(--miss); }
.rc-l.tot { border-top: 2px solid var(--navy); border-bottom: 0; margin-top: .4rem; padding-top: .5rem; font-weight: 800; }
.rc-l.tot bdi { color: var(--navy); font-size: 1.2rem; }
.co-side { display: grid; gap: .8rem; justify-items: start; color: #fff; }
.co-side h1 { font-size: clamp(1.8rem, 3.4vw, 3rem); line-height: 1.1; }
.co-side .lead { color: #D9E0F0; display: flex; gap: .4em; align-items: flex-start; }
.co-bag { position: relative; height: clamp(110px, 22vh, 230px); display: flex; align-items: flex-end; gap: 1rem; }
.co-bag img { height: 100%; width: auto; }
.co-bag img:first-child { background: #fff; border-radius: 50%; padding: 6%; box-shadow: 0 10px 26px rgb(0 0 0 / .35); aspect-ratio: 1; object-fit: contain; }
.co-bag img:first-child { height: 70%; animation: bagin .7s var(--ease) both .4s; }
.co-guide { animation: hop 1.6s ease-in-out .9s 2; }
@keyframes bagin { from { transform: translateY(30px) scale(.7); opacity: 0; } }
@keyframes hop { 30% { transform: translateY(-14px); } 55% { transform: translateY(0); } }
.stamp { display: inline-flex; align-items: center; gap: .4em; padding: .45em 1em; border-radius: 999px; border: 3px solid var(--gold); color: var(--gold-2); font-weight: 800; transform: rotate(-3deg); animation: stampin .4s cubic-bezier(.3, 1.6, .5, 1) both .8s; }
@keyframes stampin { from { transform: scale(2.2) rotate(-12deg); opacity: 0; } }
.watch { display: flex; gap: .45em; background: rgb(255 255 255 / .1); padding: .55rem .8rem; border-radius: var(--r-md); color: #fff; }
.co-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }

/* ---------- knowledge ---------- */
.kn-main { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--gap); padding: var(--gap) clamp(12px, 3vw, 48px); background: var(--bg); min-height: 0; }
.kn-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: var(--gap); min-height: 0; }
.kn-card { position: relative; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 1rem; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: .6rem; min-height: 0; overflow: hidden; }
.kn-viz { width: clamp(70px, 11vmin, 130px); aspect-ratio: 1; display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; padding: 4px; background: #5B3416; border-radius: 8px; }
.kn-viz i { border-radius: 2px; background: #7A4521; }
.kn-viz i.on { background: var(--gold); }
.kn-text h2 { font-size: 1.25rem; color: var(--navy); }
.kn-text p { color: var(--ink-2); font-size: .95rem; }
.kn-ex { margin-top: .35rem; font-weight: 700; color: var(--navy) !important; background: var(--cream); padding: .35rem .55rem; border-radius: 8px; }
.kn-speak { position: absolute; top: .7rem; inset-inline-end: .7rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--navy); }
.pager { display: flex; justify-content: center; align-items: center; gap: 1rem; font-weight: 700; color: var(--ink-2); }

/* ---------- teacher ---------- */
.t-main { padding: var(--gap) clamp(12px, 3vw, 48px); display: grid; grid-template-rows: auto auto auto; align-content: start; gap: var(--gap); background: var(--bg); }
.t-sum { color: var(--ink-2); }
.t-table { width: 100%; border-collapse: separate; border-spacing: 0 .35rem; }
.t-table th, .t-table td { padding: .5rem .8rem; text-align: start; }
.t-table thead th { color: var(--ink-3); font-size: .85rem; }
.t-table tbody tr { background: #fff; }
.t-table tbody th { color: var(--navy); font-size: 1.2rem; border-radius: 0 12px 12px 0; }
.t-table tbody td:last-child { border-radius: 12px 0 0 12px; }
.t-table td small { display: block; color: var(--ink-3); }
.t-table .empty { text-align: center; color: var(--ink-3); }

/* ---------- effects ---------- */
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
.fx-coins { position: absolute; width: 34px; height: 34px; background-size: 140%; background-position: center; border-radius: 50%; }
.fx-confetti { position: absolute; width: 10px; height: 14px; border-radius: 2px; }
.keyed canvas { display: block; }
#toast { position: fixed; z-index: 70; bottom: 1.4rem; left: 50%; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--navy); color: #fff; padding: .75rem 1.3rem; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow); transition: opacity .3s, transform .3s var(--ease); max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   Responsive: re-flow, never scroll
   ============================================================ */
@media (max-width: 1100px) and (min-aspect-ratio: 1/1) {
  .tb-btn span { display: none; }
  .tb-who { display: none; }
}
@media (max-aspect-ratio: 4/5) {
  :root { font-size: clamp(13px, calc(1.5vmin + .4vh), 22px); }
  .tb-btn span, .tb-who, .tb-title { display: none; }
  .tb-title { flex: 1; }
  .brand img { height: 2rem; }
  .home-main { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-items: start; padding: 4rem 18px 0 !important; gap: 0; }
  .ts-logo { width: 78vw; }
  .ts-cta { width: 100%; }
  .ts-coin { display: none; }
  .ts-collage { height: 100%; }
  .tc-guide { height: 70%; }
  .entrance { grid-template-rows: minmax(0, .9fr) auto; }
  .signin { grid-row: 2; justify-self: stretch; width: auto; margin: -1.2rem .6rem .6rem; }
  .guard { height: 56%; }
  .atrium { grid-template-rows: minmax(0, .34fr) minmax(0, 1fr); } .atrium-scene { grid-row: 1; } .store-list { grid-row: 2; }
  .atrium .sign, .atrium .badge, .atrium .sale-stand { display: none; }
  .store-list { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 1fr); gap: .5rem; padding: .6rem; min-height: 0; background: var(--bg); }
  .store-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .5rem; padding: .35rem; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-sm); text-align: start; min-height: 0; overflow: hidden; border: 2px solid transparent; }
  .store-card img { height: 100%; max-height: 4.6rem; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
  .store-card b { display: block; color: var(--navy); font-size: .95rem; } .store-card small { color: var(--ink-3); font-size: .75rem; line-height: 1.2; display: block; }
  .store-card.soon { opacity: .6; }
  .store-card.rec { border-color: var(--gold); }
  .guide-spot { display: none; }
  .store { grid-template-rows: minmax(0, .9fr) auto; }
  .shelf-panel { grid-row: 2; justify-self: stretch; width: auto; margin: -1rem .6rem .6rem; }
  .shelf-list { grid-template-columns: 1fr 1fr; }
  .sl-btn { grid-template-columns: auto 1fr; } .sl-state { display: none; }
  .store-guide { display: none; }
  .round-main { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: .5rem; }
  .col-task { grid-template-rows: auto auto minmax(0, 1fr) auto auto; }
  .col-note { display: none; }
  .col-answer { grid-template-columns: 1fr; gap: .45rem; }
  .keypad { grid-auto-rows: 2.5rem; gap: .35rem; }
  .paint-pad { grid-template-columns: repeat(5, 1fr); grid-auto-rows: 3rem; }
  .paint-pad .pp-reset { grid-column: auto; }
  .col-answer .cta { min-height: 3rem; }
  .answer { min-height: 2.6rem; font-size: 1.6rem; }
  .q-text { font-size: 1.08rem; }
  .task-card { grid-template-columns: auto 1fr; } .speak { display: none; }
  .checkout-main { grid-template-columns: 1fr; align-content: center; }
  .receipt { justify-self: center; }
  .co-side { justify-items: center; text-align: center; }
  .co-bag { display: none; }
  .kn-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-height: 560px) and (min-aspect-ratio: 1/1) {
  :root { font-size: 13px; }
  .ts-sub { display: none; }
  .guide-spot { height: 34%; }
}
/* the 48:9 wall: three screens, one window */
@media (min-aspect-ratio: 5/2) {
  :root { font-size: clamp(14px, calc(1.9vh + .15vw), 34px); }
  .round-main { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .6fr); padding-inline: 4vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.no-motion *, .no-motion *::before, .no-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }

/* ---------- calm chrome: one back button + a settings menu ---------- */
.tb-menu { position: relative; }
.tb-pop { position: absolute; top: calc(100% + .5rem); left: 0; min-width: 14rem; background: #fff; border-radius: 16px; box-shadow: 0 18px 40px rgb(14 27 61 / .22); padding: .45rem; display: grid; gap: .15rem; z-index: 30; }
.tb-pop[hidden] { display: none; }
.tb-pop button, .tp-who { display: flex; align-items: center; gap: .6rem; min-height: 2.7rem; padding: 0 .8rem; border-radius: 10px; color: var(--navy); font-weight: 700; text-align: start; }
.tb-pop button:hover { background: var(--bg); }
.tp-who { color: var(--ink-3); font-weight: 600; font-size: .88rem; border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: .2rem; }
.sale-stand { display: none; }

/* store: the shelves are the buttons */
.shelf-panel { display: none; }
.shelf-band { border-radius: 1cqw; }
.shelf-band .sb-tag { left: -2.6cqw; top: 50%; transform: translateY(-50%); width: 2.6cqw; height: 2.6cqw; padding: 0; justify-content: center; font-size: 1.35cqw; border: .25cqw solid #fff; }
.shelf-band .sb-tag .ic { width: 1.4cqw; height: 1.4cqw; }
.shelf-band:not(.rec):not(:hover) { box-shadow: none; }
.sb-call { position: absolute; left: 50%; top: 0; transform: translate(-50%, -115%); background: var(--gold); color: var(--navy-ink); font-weight: 800; font-size: 1.15cqw; padding: .5cqh 1.2cqw; border-radius: 999px; white-space: nowrap; box-shadow: var(--shadow-sm); animation: pop .5s var(--ease) both .4s; }
.store-guide .bubble { display: none; }
@media (max-aspect-ratio: 4/5) { .shelf-panel { display: grid; } .sb-call { display: none; } }

/* =====================================================================
   TASK SCREEN v2 — bright, playful, one clear action at a time
   ===================================================================== */
.round { background: #EAF7F2; }
.round::before { filter: blur(20px) brightness(1.1) saturate(1.2); opacity: .5; }
.round::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 75% 0%, rgb(255 255 255 / .8), rgb(255 255 255 / .35) 65%, rgb(255 255 255 / .15)); pointer-events: none; z-index: 0; }
.rd { min-height: 0; display: grid; padding: 4.5rem clamp(12px, 2vw, 34px) clamp(12px, 2vh, 26px);
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr); grid-template-rows: auto auto minmax(0, 1fr) auto;
  grid-template-areas: "top stage" "q stage" "ans stage" "tools stage"; column-gap: clamp(14px, 2.2vw, 36px); row-gap: clamp(10px, 1.8vh, 20px); }

/* top: cart progress, streak, coins */
.rd-top { grid-area: top; display: flex; align-items: center; gap: .7rem; }
.rd-cart { list-style: none; display: flex; gap: .45rem; flex: 1; }
.rd-cart li { position: relative; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: rgb(255 255 255 / .75); border: 2.5px dashed #B9C6DA; display: grid; place-items: center; transition: transform .3s var(--ease); }
.rd-cart li img { width: 80%; height: 80%; object-fit: contain; opacity: 0; transform: scale(.4); transition: transform .5s cubic-bezier(.3,1.6,.5,1), opacity .3s; }
.rd-cart li.now { border: 3px solid var(--gold); background: #fff; transform: scale(1.1); box-shadow: 0 0 0 6px rgb(244 180 0 / .22); }
.rd-cart li.ok, .rd-cart li.miss { border: 3px solid #fff; background: #fff; box-shadow: var(--shadow-sm); }
.rd-cart li.ok img, .rd-cart li.miss img { opacity: 1; transform: scale(1); }
.rd-cart li.miss img { opacity: .45; }
.rd-cart li.ok::after { content: "✓"; position: absolute; bottom: -5px; left: -5px; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #1FB36B; color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }
.rd-streak { display: none; align-items: center; gap: .3em; padding: .35em .85em; border-radius: 999px; background: linear-gradient(135deg, #FF9F1C, #FF6B00); color: #fff; font-weight: 800; font-size: .95rem; box-shadow: 0 4px 12px rgb(255 107 0 / .35); }
.rd-streak.on { display: inline-flex; }
.rd-streak.pulse { animation: popin .5s cubic-bezier(.3,1.6,.5,1); }
.rd-coins { display: inline-flex; align-items: center; gap: .4em; padding: .3em .9em .3em .5em; border-radius: 999px; background: #fff; font-weight: 800; font-size: 1.15rem; color: var(--navy); box-shadow: var(--shadow-sm); }
.rd-coins img { width: 1.9rem; height: 1.9rem; object-fit: contain; clip-path: circle(42%); }
.rd-coins.bump { animation: bump .35s var(--ease); }
.fly-coin { position: fixed; width: 2.4rem; height: 2.4rem; object-fit: contain; clip-path: circle(42%); pointer-events: none; z-index: 50; }
@keyframes bump { 40% { transform: scale(1.18); } }
@keyframes popin { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* question card */
.rd-q { grid-area: q; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center; background: #fff; border-radius: 26px; padding: 1rem 1.1rem; box-shadow: 0 14px 34px rgb(14 27 61 / .12); }
.rd-q.in { animation: cardin .5s var(--ease); }
.rd-prod { position: relative; width: clamp(70px, 10vmin, 120px); aspect-ratio: 1; border-radius: 20px; background: radial-gradient(circle at 50% 40%, #fff, #EAF7F2); display: grid; place-items: center; }
.rd-prod img { width: 88%; height: 88%; object-fit: contain; filter: drop-shadow(0 6px 8px rgb(0 0 0 / .15)); transition: transform .7s cubic-bezier(.3,1.6,.5,1); }
.rd-prod.bought img { transform: rotate(-8deg) scale(1.08); }
.rd-price { position: absolute; bottom: -.5rem; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; font-weight: 800; font-size: .85rem; padding: .15em .65em; border-radius: 999px; white-space: nowrap; }
.rd-text { font-size: clamp(1.15rem, 1.1rem + .7vmin, 1.7rem); font-weight: 700; line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.rd-text .n { color: var(--navy); background: #EEF2FB; padding: 0 .22em; border-radius: 8px; white-space: nowrap; font-weight: 800; }
.rd-text mark { background: linear-gradient(transparent 55%, var(--gold-2) 55%); color: inherit; font-weight: 800; padding: 0 .1em; }
.rd-text .frac { color: var(--navy); font-size: .95em; }
.rd-speak { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: #EEF2FB; color: var(--navy); align-self: start; transition: background .2s; }
.rd-speak:hover { background: var(--gold-2); }

/* answer area */
.rd-ans { grid-area: ans; min-height: 0; display: grid; align-content: center; gap: .8rem; }
.rd-ask { display: inline-flex; align-items: center; gap: .4em; font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.6vmin, 18px); }
.opt { --c: #2F6FE4; --d: #1C4FB5; min-height: clamp(4.4rem, 12vh, 7.5rem); border-radius: 24px; background: var(--c); color: #fff; font-size: clamp(1.7rem, 1.2rem + 2.2vmin, 3rem); font-weight: 800; box-shadow: 0 7px 0 var(--d), 0 14px 26px rgb(14 27 61 / .16); transition: transform .14s var(--ease), box-shadow .14s, opacity .3s, filter .3s; position: relative; overflow: hidden; }
.opt::before { content: ""; position: absolute; inset: 0 0 55% 0; background: linear-gradient(rgb(255 255 255 / .22), rgb(255 255 255 / 0)); border-radius: inherit; pointer-events: none; }
.opt:hover { transform: translateY(-3px); box-shadow: 0 10px 0 var(--d), 0 18px 30px rgb(14 27 61 / .2); }
.opt:active { transform: translateY(6px); box-shadow: 0 1px 0 var(--d); }
.opt.o1 { --c: #12B39A; --d: #0B8572; }
.opt.o2 { --c: #FFB81C; --d: #D18A00; color: var(--navy-ink); }
.opt.o3 { --c: #8B5CF6; --d: #6436D0; }
.opt.no { opacity: .32; filter: grayscale(.85); animation: shake .4s; transform: none; box-shadow: 0 3px 0 var(--d); cursor: default; }
.opt.dim { opacity: .3; filter: grayscale(.6); }
.opt.yes { --c: #1FB36B; --d: #138A50; color: #fff; opacity: 1; filter: none; animation: yes .6s cubic-bezier(.3,1.6,.5,1); }
.opt.yes::after { content: "✓"; position: absolute; top: .3rem; right: .7rem; font-size: .6em; }
@keyframes yes { 40% { transform: scale(1.08); } }
.rd-out { display: flex; align-items: center; justify-content: center; gap: .1em; min-height: 4.2rem; border-radius: 22px; background: #fff; border: 3px solid #fff; border-bottom: 6px solid var(--navy); font-size: 2.4rem; font-weight: 800; color: var(--navy); direction: ltr; box-shadow: var(--shadow-sm); }
.rd-out.empty .a-val::before { content: "?"; opacity: .25; }
.rd-out.wrong { border-bottom-color: var(--miss); animation: shake .35s; }
.mode-keypad .pad-host { min-height: 0; }
.mode-keypad .keypad { gap: .55rem; grid-auto-rows: clamp(2.8rem, 7.5vh, 4.4rem); height: auto; }
.mode-keypad .key { border-radius: 18px; font-size: 1.6rem; box-shadow: 0 5px 0 #CFD7E6; }
.mode-keypad .key:active { transform: translateY(4px); box-shadow: 0 1px 0 #CFD7E6; }
.rd-ans .cta { width: 100%; font-size: 1.3rem; min-height: 3.6rem; }
.rd-paint-actions { display: grid; grid-template-columns: auto 1fr; gap: .7rem; }
.rd-ans .cta:disabled { opacity: .4; }

/* tools: hint + scratch paper */
.rd-tools { grid-area: tools; display: flex; gap: .6rem; }
.rd-tool { display: inline-flex; align-items: center; gap: .45em; min-height: 2.9rem; padding: 0 1.15em; border-radius: 999px; background: rgb(255 255 255 / .9); color: var(--navy); font-weight: 700; box-shadow: var(--shadow-sm); transition: background .2s, transform .15s; }
.rd-tool:hover { transform: translateY(-2px); }
.rd-tool.on { background: var(--gold); }

/* stage: the candy box, the guide and the feedback card */
.rd-stage { grid-area: stage; position: relative; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; border-radius: 34px; background: linear-gradient(180deg, #FFFFFF, #F2FBF7); box-shadow: 0 20px 50px rgb(14 27 61 / .13), inset 0 0 0 1px rgb(255 255 255 / .8); overflow: hidden; }
.rd-rep { min-height: 0; container-type: size; display: grid; place-items: center; padding: 4% 5% 3%; }
.rd-guide { position: absolute; left: 1%; bottom: 0; z-index: 3; pointer-events: none; transform: translateY(105%); transition: transform .55s cubic-bezier(.3,1.4,.5,1); }
.rd-guide img { height: clamp(140px, 30vh, 300px); width: auto; filter: drop-shadow(0 10px 16px rgb(0 0 0 / .18)); }
.rd-guide.show { transform: translateY(8%); }
.rd-guide.party img { animation: hop .7s cubic-bezier(.3,1.6,.5,1) 2; }
@keyframes hop { 40% { transform: translateY(-14%) rotate(-3deg); } }
.rd-hint, .rd-fb { position: relative; z-index: 2; margin: 0 3% 3%; padding: 1rem 1.2rem 1rem calc(clamp(140px, 30vh, 300px) * .55); border-radius: 24px; display: grid; gap: .35rem; font-size: 1.05rem; line-height: 1.5; animation: cardin .4s var(--ease); }
.rd-hint[hidden], .rd-fb[hidden] { display: none; }
.rd-hint { background: #FFF8E6; border: 2.5px solid var(--gold); color: var(--ink); }
.rd-hint-step { font-weight: 800; color: var(--navy); display: flex; gap: .5em; align-items: center; }
.rd-hint-step bdi { background: var(--gold); border-radius: 999px; padding: 0 .5em; font-size: .85em; }
.rd-hint .n { font-weight: 800; color: var(--navy); }
.rd-hint-act { display: flex; gap: .5rem; justify-content: flex-start; }
.rd-more { padding: .35em 1em; border-radius: 999px; background: #fff; border: 2px solid var(--gold); font-weight: 800; color: var(--navy); }
.rd-hint-x { position: absolute; top: .5rem; left: .5rem; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); }
.rd-hint-x:hover { background: rgb(0 0 0 / .06); }
.rd-fb { box-shadow: var(--shadow); }
.rd-fb.ok { background: #E3F8EE; }
.rd-fb.try, .rd-fb.miss { background: #FFF2DF; color: #5A3A10; }
.rd-fb.info { background: #EAF2FD; color: var(--navy); }
.rd-fb .n { font-weight: 800; }
.rd-cheer { font-size: clamp(1.6rem, 1.2rem + 1.6vmin, 2.4rem); font-weight: 800; color: #138A50; line-height: 1.1; display: flex; align-items: center; gap: .5em; }
.rd-plus { font-size: .6em; background: var(--gold); color: var(--navy-ink); padding: .15em .6em; border-radius: 999px; }
.rd-fb-sub { color: var(--ink-2); font-size: .98rem; }
.rd-fb .rd-next { justify-self: start; margin-top: .3rem; font-size: 1.2rem; }
.rd-note { position: absolute; inset: 2.5%; z-index: 6; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); animation: cardin .3s var(--ease); }
.rd-note[hidden] { display: none; }
.rd-note .notebook { height: 100%; }
.rd-note-x { width: 2.3rem; height: 2.3rem; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy); margin-inline-start: .3rem; }

/* candy box */
.cbx-wrap { display: grid; justify-items: center; align-content: center; gap: 2.5cqh; width: 100%; height: 100%; }
.cbx-wrap.two { grid-template-columns: 1fr 1fr; column-gap: 4cqw; }
.cbx { position: relative; aspect-ratio: 1; height: min(84cqh, 88cqw); padding: 3.4%; border-radius: 7%;
  background: repeating-linear-gradient(135deg, rgb(255 255 255 / .16) 0 12px, rgb(255 255 255 / 0) 12px 24px), linear-gradient(160deg, #6FE0C0, #2B9E80);
  box-shadow: 0 18px 36px rgb(20 90 70 / .28), inset 0 2px 0 rgb(255 255 255 / .5), inset 0 -5px 0 rgb(0 60 45 / .2); }
.cbx-wrap.two .cbx { height: min(72cqh, 44cqw); }
.show-read .cbx { height: min(76cqh, 88cqw); }
.cbx-wrap.two.show-read .cbx { height: min(64cqh, 44cqw); }
.cbx-label { position: absolute; top: 0; left: 50%; transform: translate(-50%, -45%); z-index: 2; background: #fff; color: var(--navy); font-weight: 800; font-size: clamp(.75rem, 3cqh, 1.05rem); padding: .2em .9em; border-radius: 999px; box-shadow: 0 4px 10px rgb(0 0 0 / .12); white-space: nowrap; }
.cbx-tray { height: 100%; display: grid; grid-template-columns: repeat(5, 1fr) 2.5% repeat(5, 1fr); grid-template-rows: repeat(5, 1fr) 2.5% repeat(5, 1fr); gap: 1.1%; padding: 3.2%; background: #FFF9F0; border-radius: 5%; box-shadow: inset 0 4px 10px rgb(120 70 30 / .16); }
.pk { position: relative; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #EFE1CC, #FBF3E6 72%); box-shadow: inset 0 2px 3px rgb(140 90 50 / .25), 0 1px 0 #fff; }
.has-groups .pk.alt { background: radial-gradient(circle at 50% 38%, #BFE9DA, #E2F6EE 72%); }
.cd { position: absolute; inset: 5%; border-radius: 50%; transform: scale(0); opacity: 0;
  background: radial-gradient(circle at 32% 28%, rgb(255 255 255 / .95) 0 9%, rgb(255 255 255 / 0) 24%), radial-gradient(circle at 50% 58%, var(--c1), var(--c2) 74%);
  box-shadow: 0 2px 3px rgb(80 40 20 / .25), inset -2px -3px 5px rgb(0 0 0 / .12);
  transition: transform .4s cubic-bezier(.3,1.7,.5,1) var(--d, 0ms), opacity .2s var(--d, 0ms); }
.pk.on .cd { transform: scale(1); opacity: 1; }
.paintable .cd { transition-delay: 0s; transition-duration: .22s; }
.paintable { touch-action: none; cursor: pointer; }
.paintable .pk:hover { box-shadow: inset 0 0 0 2px var(--gold), inset 0 2px 3px rgb(140 90 50 / .25); }
.cd.c0 { --c1: #FF8DC0; --c2: #E5468E; }
.cd.c1 { --c1: #FFC266; --c2: #F2860F; }
.cd.c2 { --c1: #C2EC6A; --c2: #6CB51F; }
.cd.c3 { --c1: #7FCBFF; --c2: #2D86E0; }
.cd.c4 { --c1: #CFAEFF; --c2: #8A55E6; }
.solved .pk.on .cd { animation: candy-hop .6s cubic-bezier(.3,1.6,.5,1) calc(var(--d, 0ms) * .5); }
@keyframes candy-hop { 40% { transform: translateY(-18%) scale(1.12); } }
.cbx-rows { position: absolute; top: 6.6%; bottom: 6.6%; left: -3.4em; width: 3em; list-style: none; display: grid; grid-template-rows: repeat(5, 1fr) 2.5% repeat(5, 1fr); font-size: clamp(.6rem, 2.4cqh, .9rem); font-weight: 800; color: var(--navy); direction: ltr; opacity: 0; transition: opacity .3s; }
.cbx-rows li { display: flex; align-items: center; justify-content: flex-end; }
.cbx-rows li:nth-child(6) { grid-row: 7; }
.show-guides .cbx-rows { opacity: 1; }
.cbx-read { grid-column: 1 / -1; display: none; align-items: center; gap: .5em; font-weight: 800; font-size: clamp(1rem, 4cqh, 1.5rem); color: var(--navy); direction: ltr; background: #fff; padding: .25em 1em; border-radius: 999px; box-shadow: var(--shadow-sm); }
.show-read .cbx-read { display: flex; animation: popin .4s var(--ease); }

/* phones / portrait */
@media (max-aspect-ratio: 4/5) {
  .rd { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto auto; grid-template-areas: "top" "q" "stage" "ans" "tools"; padding-top: 4rem; row-gap: 8px; }
  .rd-cart li { width: 2.3rem; height: 2.3rem; }
  .rd-q { padding: .7rem .8rem; gap: .7rem; border-radius: 20px; }
  .rd-prod { width: 58px; border-radius: 14px; }
  .rd-text { font-size: 1.05rem; }
  .rd-speak { width: 2.5rem; height: 2.5rem; }
  .rd-ask { display: none; }
  .opt { min-height: clamp(3.2rem, 7.5vh, 4.6rem); font-size: 1.6rem; border-radius: 18px; }
  .rd-stage { border-radius: 24px; }
  .rd-guide img { height: clamp(100px, 18vh, 170px); }
  .rd-hint, .rd-fb { padding-left: calc(clamp(100px, 18vh, 170px) * .5); font-size: .95rem; }
  .mode-keypad .keypad { grid-auto-rows: clamp(2.4rem, 5.2vh, 3.2rem); }
  .mode-keypad { grid-template-columns: 1fr 1fr; align-items: start; }
  .mode-keypad .rd-out { grid-column: 1 / -1; min-height: 3rem; font-size: 1.8rem; }
  .rd-tools .rd-tool { min-height: 2.5rem; font-size: .9rem; }
}

/* ===== store: level dock (clear, every shelf open) ===== */
.lv-dock { grid-row: 1; grid-column: 1; align-self: end; justify-self: center; z-index: 4; margin-bottom: clamp(10px, 2.4vh, 28px); margin-left: 14vw; display: grid; justify-items: center; gap: .5rem; animation: cardin2 .6s var(--ease) both .2s; }
.lv-title { background: var(--navy); color: #fff; font-weight: 800; font-size: 1rem; padding: .3em 1.2em; border-radius: 999px; box-shadow: var(--shadow-sm); }
.lv-row { display: flex; gap: clamp(8px, 1vw, 14px); padding: clamp(8px, 1vw, 12px); background: rgb(255 255 255 / .94); border-radius: 28px; box-shadow: 0 18px 44px rgb(14 27 61 / .28); }
.lv { position: relative; width: clamp(108px, 10.5vw, 160px); min-height: clamp(104px, 15vh, 150px); padding: .8rem .6rem .7rem; border-radius: 20px; background: #F4F6FB; display: grid; align-content: center; justify-items: center; gap: .25rem; text-align: center; color: var(--navy); transition: transform .18s var(--ease), box-shadow .18s, background .18s; }
.lv:hover, .lv:focus-visible { transform: translateY(-6px); background: #fff; box-shadow: 0 12px 24px rgb(14 27 61 / .18), 0 0 0 3px var(--gold); }
.lv:active { transform: translateY(-2px); }
.lv-n { font-size: clamp(1.1rem, 1.5vw, 1.45rem); font-weight: 800; }
.lv small { font-size: clamp(.72rem, .85vw, .88rem); color: var(--ink-2); line-height: 1.3; font-weight: 600; }
.lv-steps { display: flex; align-items: flex-end; gap: 3px; height: 1.6rem; direction: ltr; }
.lv-steps i { width: .55rem; border-radius: 3px; background: #D5DCEA; }
.lv-steps i:nth-child(1) { height: 30%; } .lv-steps i:nth-child(2) { height: 55%; } .lv-steps i:nth-child(3) { height: 78%; } .lv-steps i:nth-child(4) { height: 100%; }
.lv-steps i.on { background: var(--store-c, #2B9E80); }
.s-candy { --store-c: #2B9E80; } .s-gaming { --store-c: #7B4FD6; }
.lv.rec { background: #FFF6D9; box-shadow: 0 0 0 3px var(--gold); }
.lv.rec .lv-steps i.on { background: #E0A100; }
.lv-flag { position: absolute; top: 0; left: 50%; transform: translate(-50%, -60%); background: var(--gold); color: var(--navy-ink); font-weight: 800; font-size: .8rem; padding: .2em .8em; border-radius: 999px; white-space: nowrap; box-shadow: var(--shadow-sm); }
.lv-done { position: absolute; top: .45rem; left: .45rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: #1FB36B; color: #fff; display: grid; place-items: center; }
.lv-done .ic { width: .95rem; height: .95rem; stroke-width: 3; }
.lv.done { background: #E6F7EE; }
.lv-gift { background: linear-gradient(160deg, #EFE7FF, #E3F2FF); }
.lv-gift img { width: 2.8rem; height: 2.8rem; object-fit: contain; }
.shelf-band.hl { background: rgb(255 230 140 / .22); box-shadow: 0 0 0 .3cqw var(--gold), 0 0 2cqw rgb(255 212 82 / .7); }
.surprise.hl { filter: drop-shadow(0 0 1.2cqw rgb(255 212 82 / .95)); transform: translate(-50%, -50%) scale(1.12); }
.shelf-band.rec { animation: none; box-shadow: 0 0 0 .25cqw rgb(244 180 0 / .8); }
@media (max-aspect-ratio: 4/5) { .lv-dock { display: none; } }
.shelf-band .sb-tag { display: none; }
.lv-title { display: none; }
.lv-dock { margin-bottom: clamp(8px, 1.4vh, 18px); }
.lv { min-height: clamp(96px, 13vh, 136px); }

/* ===== home: the video is the entrance ===== */
.home-main { grid-template-columns: minmax(0, .85fr) minmax(0, 1.25fr); }
.ts-film { position: relative; z-index: 1; display: grid; place-items: center; }
.tf-frame { position: relative; margin: 0; width: 100%; aspect-ratio: 16 / 9; padding: clamp(8px, .8vw, 14px); background: #fff; border-radius: 22px; box-shadow: 0 30px 60px rgb(60 40 10 / .25), 0 3px 8px rgb(60 40 10 / .12); transform: rotate(-2deg); transition: transform .6s var(--ease); animation: cardin2 .9s var(--ease) both .15s; }
.tf-frame video { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; background: #0b1020; display: block; }
.tf-play { position: absolute; inset: clamp(8px, .8vw, 14px); border-radius: 14px; display: grid; place-content: center; justify-items: center; gap: 1rem; background: linear-gradient(180deg, rgb(10 20 50 / 0) 40%, rgb(10 20 50 / .55)); color: #fff; transition: background .3s; }
.tf-btn { width: clamp(76px, 8vw, 128px); aspect-ratio: 1; border-radius: 50%; background: var(--gold); color: var(--navy-ink); display: grid; place-items: center; box-shadow: 0 0 0 10px rgb(255 255 255 / .35), 0 18px 34px rgb(0 0 0 / .35); transition: transform .25s var(--ease); animation: breathe 2.6s ease-in-out infinite; }
.tf-btn .ic { width: 42%; height: 42%; fill: currentColor; stroke: none; margin-left: 8%; }
.tf-cap { font-weight: 700; font-size: clamp(1rem, 1.3vw, 1.35rem); text-shadow: 0 2px 8px rgb(0 0 0 / .5); }
.tf-cap b { font-weight: 800; }
.tf-play:hover .tf-btn { transform: scale(1.08); }
@keyframes breathe { 50% { box-shadow: 0 0 0 18px rgb(255 255 255 / .18), 0 18px 34px rgb(0 0 0 / .35); } }
.ts-film.playing .tf-frame { transform: rotate(0) scale(1.03); }
.ts-film.playing .tf-play, .ts-film.playing .tc-tag, .ts-film.playing .tc-guide { opacity: 0; pointer-events: none; }
.ts-film .tc-tag, .ts-film .tc-guide { transition: opacity .3s; }
.ts-film .tc-tag.t1 { left: auto; right: -2%; top: -6%; }
.ts-film .tc-guide { height: 52%; left: -9%; bottom: -14%; }
.ts-cta .ts-play .ic { fill: none; stroke: currentColor; stroke-width: 2.6; margin: 0; }
.ts-cta.nudge { animation: nudge 1.2s var(--ease) 2; }
@keyframes nudge { 30% { transform: scale(1.07); } 60% { transform: scale(.98); } }
@media (max-aspect-ratio: 4/5) {
  .home-main { grid-template-columns: 1fr; align-content: center; gap: 2rem; padding: 4rem 18px 18px !important; }
  .ts-film { order: -1; }
  .ts-film .tc-guide { display: none; }
}
/* logo: crisp, never muddy */
.brand img { height: 3.4rem; filter: drop-shadow(0 3px 8px rgb(255 255 255 / .55)) drop-shadow(0 2px 4px rgb(14 27 61 / .18)); }
.home-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.ts-logo { width: min(100%, 38vw, 640px); filter: drop-shadow(0 12px 22px rgb(20 40 90 / .16)); }
.ts-film .tc-guide { display: none; }

/* ===== home (v1 restored) + the video page after it ===== */
.home-main.home-v1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.home-v1 .tc-guide { display: block; }
.intro-main { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; justify-items: center; align-items: center; gap: clamp(10px, 2.4vh, 26px); padding: 5rem clamp(16px, 6vw, 120px) clamp(16px, 4vh, 40px); background: radial-gradient(70% 90% at 50% 40%, #FFFFFF 0, #FBF7F0 55%, #F4EDE0 100%); }
.in-title { font-size: clamp(1.7rem, 3vw, 3rem); font-weight: 800; color: var(--navy); letter-spacing: -.015em; animation: cardin2 .7s var(--ease) both; }
.intro-main .ts-film { height: 100%; width: 100%; display: grid; place-items: center; min-height: 0; }
.intro-main .tf-frame { width: auto; height: 100%; max-width: 100%; max-height: 100%; }
.intro-main .ts-film .tc-tag.t1 { right: calc(50% - min(48vh * 16 / 9, 44vw)); top: -2%; }
.in-actions { animation: cardin2 .7s var(--ease) both .3s; }
.in-go { padding-inline: 2em 1.3em; }
@media (max-aspect-ratio: 4/5) {
  .intro-main .tf-frame { width: 100%; height: auto; }
  .intro-main .ts-film .tc-tag { display: none; }
}
.intro-main .ts-film { container-type: size; }
.intro-main .tf-frame { width: min(100cqw, 100cqh * 16 / 9); height: auto; max-height: none; }
.intro-main .ts-film .tc-tag.t1 { right: calc(50% - min(50cqw, 50cqh * 16 / 9) - 2%); top: calc(50% - min(50cqw * 9 / 16, 50cqh) - 4%); }
.home-main.home-film { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
/* home video: grows to full screen, flies back when done */
.tf-frame.full { position: fixed; z-index: 61; margin: 0; padding: 0; border-radius: 0; transform: none; animation: none; box-shadow: none; transform-origin: 0 0; background: #000; }
.tf-frame.full video { border-radius: 0; object-fit: contain; }
.tf-frame { transform-origin: 0 0; }
.tf-back { position: fixed; inset: 0; z-index: 60; background: rgb(5 8 15 / .94); animation: fadein .4s var(--ease); }
.tf-back.out { opacity: 0; transition: opacity .35s; }
@keyframes fadein { from { opacity: 0; } }
.tf-x { position: fixed; top: 16px; left: 16px; z-index: 62; width: 3rem; height: 3rem; border-radius: 50%; background: rgb(255 255 255 / .92); color: var(--navy); display: grid; place-items: center; box-shadow: var(--shadow); }
.tb-music.on { background: var(--gold); color: var(--navy-ink); }

/* =====================================================================
   HOME v3 — a bright stage: royal blue, a gold burst behind the logo,
   floating coins and sale tags, the film as the star
   ===================================================================== */
.home .home-main.home-film { isolation: isolate; background:
    radial-gradient(60% 70% at 74% 42%, #3B7BFF 0%, rgb(59 123 255 / 0) 70%),
    radial-gradient(90% 90% at 25% 60%, #2457E0 0%, rgb(36 87 224 / 0) 75%),
    linear-gradient(160deg, #1D47C9 0%, #14318F 55%, #0E2369 100%);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); padding: 3.5rem clamp(24px, 5vw, 110px) 2rem !important; }
.home-film .hm-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.home-film .hm-rays { position: absolute; width: 160vmax; aspect-ratio: 1; right: calc(26% - 80vmax); top: calc(40% - 80vmax);
  background: repeating-conic-gradient(from 0deg, rgb(255 214 82 / .16) 0 7deg, rgb(255 214 82 / 0) 7deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 0, rgb(0 0 0 / .6) 20%, transparent 46%); mask: radial-gradient(circle, #000 0, rgb(0 0 0 / .6) 20%, transparent 46%);
  animation: spin 90s linear infinite; }
@keyframes spin { to { rotate: 1turn; } }
.home-film .hm-sky::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(transparent, rgb(8 20 70 / .55)); }
.hm-coin { position: absolute; clip-path: circle(42%); filter: drop-shadow(0 10px 14px rgb(0 0 0 / .35)); animation: coinbob 4s ease-in-out infinite; }
.hm-coin.k1 { width: 74px; right: 6%; top: 14%; rotate: -16deg; }
.hm-coin.k2 { width: 46px; right: 41%; top: 9%; rotate: 20deg; animation-delay: -1.3s; }
.hm-coin.k3 { width: 58px; left: 3%; top: 8%; rotate: 8deg; animation-delay: -2.2s; filter: blur(1.5px) drop-shadow(0 10px 14px rgb(0 0 0 / .35)); }
.hm-coin.k4 { width: 40px; right: 12%; bottom: 12%; rotate: -30deg; animation-delay: -.6s; }
.hm-tag { position: absolute; display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: var(--red); color: #fff; font-weight: 800; border: 4px solid #fff; box-shadow: 0 12px 24px rgb(0 0 0 / .3); direction: ltr; animation: coinbob 5s ease-in-out infinite; }
.hm-tag.g1 { width: 84px; font-size: 1.5rem; right: 44%; bottom: 10%; rotate: 12deg; animation-delay: -1s; }
.hm-tag.g2 { width: 60px; font-size: 1.05rem; left: 44%; top: 12%; rotate: -10deg; animation-delay: -3s; }
.hm-spark { position: absolute; font-style: normal; color: var(--gold-2); text-shadow: 0 0 14px rgb(255 212 82 / .8); animation: twinkle 2.8s ease-in-out infinite; }
.hm-spark.p1 { right: 30%; top: 18%; font-size: 1.6rem; }
.hm-spark.p2 { right: 9%; top: 52%; font-size: 1.1rem; animation-delay: -1s; }
.hm-spark.p3 { left: 7%; bottom: 16%; font-size: 1.3rem; animation-delay: -1.8s; }
.hm-spark.p4 { left: 47%; top: 46%; font-size: .9rem; animation-delay: -.4s; }
@keyframes twinkle { 50% { opacity: .25; transform: scale(.7) rotate(20deg); } }

/* hero text on blue */
.home-film .ts-hero { gap: clamp(8px, 1.8vh, 20px); }
.home-film .ts-logo { width: min(100%, 36vw, 620px); filter: drop-shadow(0 16px 28px rgb(0 10 50 / .45)); animation: logoin 1s cubic-bezier(.3,1.5,.5,1) both .1s; }
@keyframes logoin { from { opacity: 0; transform: scale(.7) rotate(-4deg); } }
.home-film .ts-tag { color: #fff; font-size: clamp(1.7rem, 3vw, 3.1rem); text-shadow: 0 4px 18px rgb(0 10 50 / .4); }
.home-film .ts-rule { background: var(--gold); width: 5rem; height: 5px; }
.home-film .ts-sub { color: #CFE0FF; font-size: clamp(1.05rem, 1.35vw, 1.4rem); }
.home-film .ts-cta { font-size: clamp(1.4rem, 2vw, 2rem); box-shadow: 0 8px 0 #C48F00, 0 0 0 8px rgb(255 212 82 / .18), 0 24px 44px rgb(0 0 0 / .35); }
.home-film .ts-cta:hover { box-shadow: 0 8px 0 #C48F00, 0 0 0 12px rgb(255 212 82 / .25), 0 24px 44px rgb(0 0 0 / .35); }
.home-film .ts-coin { display: none; }
.home-film .ts-link { color: #fff; text-decoration-color: rgb(255 255 255 / .35); }
.home-film .ts-link .ic { stroke: #fff; color: transparent; }
.home .topbar .tb-icon { background: rgb(255 255 255 / .95); }

/* the film: a big white screen, tilted, with the two guides presenting it */
.home-film .ts-film { position: relative; padding: 0 4% 6%; }
.home-film .tf-frame { padding: clamp(10px, 1vw, 16px); border-radius: 26px; box-shadow: 0 40px 80px rgb(0 8 40 / .5), 0 0 0 1px rgb(255 255 255 / .6); transform: rotate(-2.5deg); }
.home-film .tf-frame video { border-radius: 16px; }
.home-film .tf-play { inset: clamp(10px, 1vw, 16px); border-radius: 16px; }
.home-film .ts-film .tc-tag.t1 { right: 0; top: -5%; width: clamp(78px, 7vw, 116px); font-size: clamp(1.3rem, 2vw, 2rem); z-index: 3; }
.hm-guide { position: absolute; z-index: 3; bottom: -4%; height: 58%; width: auto; filter: drop-shadow(0 16px 18px rgb(0 8 40 / .45)); animation: guidein .9s var(--ease) both .7s; pointer-events: none; transition: opacity .3s; }
.hm-guide.gl { left: -8%; }
.hm-guide.gb { right: -6%; height: 62%; transform: scaleX(-1); animation-delay: .9s; }
.home-film .ts-film.playing .hm-guide { opacity: 0; }
@media (max-aspect-ratio: 4/5) {
  .home .home-main.home-film { grid-template-columns: 1fr; align-content: center; gap: 1.6rem; padding: 4rem 18px 18px !important; }
  .home-film .ts-film { order: -1; padding: 0 6% 10%; }
  .home-film .ts-logo { width: min(86vw, 460px); }
  .hm-guide { height: 46%; }
  .hm-tag.g1, .hm-tag.g2, .hm-coin.k2 { display: none; }
}
.hm-guide { height: clamp(190px, 40vh, 400px); bottom: -12%; }
.hm-guide.gl { left: -9%; }
.hm-guide.gb { right: -7%; height: clamp(200px, 43vh, 430px); }
@media (max-aspect-ratio: 4/5) { .hm-guide { height: 24vh; } .hm-guide.gb { height: 25vh; } }
.hm-guide.gb { right: -17%; height: clamp(190px, 40vh, 400px); }
.home-film .ts-film .tc-tag.t1 { right: auto; left: 10%; top: -7%; rotate: -14deg; }

/* =====================================================================
   HOME v4 — the mall's front: logo on the sign, the film on a big
   screen in the entrance, guides on the plaza, gold door button
   ===================================================================== */
.hm-mall { background: #BFE3FF; }
.hm-scene { grid-row: 1; grid-column: 1; }
.hm-scene .scene-img { filter: saturate(1.08); }
.hm-scene .scene-box::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 70% 60% at 50% 55%, transparent 55%, rgb(20 30 60 / .22) 100%); }
.hm-logo { position: absolute; left: 50%; top: 21.7%; width: 35cqw; transform: translate(-50%, -50%); z-index: 3; filter: drop-shadow(0 1.2cqw 1.4cqw rgb(10 30 80 / .35)); animation: logodrop 1s cubic-bezier(.3,1.4,.5,1) both .15s; }
@keyframes logodrop { from { opacity: 0; transform: translate(-50%, -80%) scale(.85); } }
.hm-tagline { position: absolute; left: 50%; top: 35.6%; transform: translate(-50%, -50%); z-index: 3; background: var(--navy); color: #fff; font-weight: 800; font-size: 1.75cqw; padding: .5cqw 2.2cqw; border-radius: 999px; white-space: nowrap; box-shadow: 0 .8cqw 1.8cqw rgb(10 30 80 / .35); border: .25cqw solid #fff; animation: cardin2 .7s var(--ease) both .5s; }
.hm-screen { position: absolute; left: 50%; top: 58.5%; width: 34cqw; transform: translate(-50%, -50%); z-index: 2; margin: 0; aspect-ratio: 16 / 9; padding: .7cqw; background: #fff center/cover; border-radius: 1.4cqw; box-shadow: 0 2.4cqw 4cqw rgb(10 20 50 / .45), 0 0 0 .3cqw rgb(255 255 255 / .7); animation: screenin .9s var(--ease) both .3s; }
@keyframes screenin { from { opacity: 0; transform: translate(-50%, -45%) scale(.94); } }
.hm-screen video { width: 100%; height: 100%; object-fit: cover; border-radius: .9cqw; display: block; background: #0b1020; }
.hm-screen .tf-play { position: absolute; inset: .7cqw; border-radius: .9cqw; display: grid; place-content: center; justify-items: center; gap: 1.1cqw; background: linear-gradient(180deg, rgb(10 20 50 / 0) 35%, rgb(10 20 50 / .6)); color: #fff; }
.hm-screen .tf-btn { width: 6.6cqw; }
.hm-screen .tf-cap { font-size: 1.3cqw; }
.hm-screen.away video, .hm-screen.away .tf-play { visibility: hidden; }
.hm-sale { position: absolute; top: -2.6cqw; left: -2.4cqw; width: 6cqw; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 800; font-size: 1.7cqw; border: .3cqw solid #fff; box-shadow: 0 .8cqw 1.6cqw rgb(120 10 10 / .35); rotate: -14deg; direction: ltr; z-index: 3; }
.hm-mall .hm-guide { position: absolute; z-index: 4; bottom: 1%; height: 44%; width: auto; filter: drop-shadow(0 1.4cqw 1.2cqw rgb(40 30 10 / .35)); animation: guidein .9s var(--ease) both .8s; pointer-events: none; }
.hm-mall .hm-guide.gl { left: 23%; right: auto; transform: none; }
.hm-mall .hm-guide.gb { left: auto; right: 22%; height: 46%; transform: scaleX(-1); animation-delay: 1s; }
.hm-cta { position: absolute; left: 50%; bottom: 4.5%; transform: translateX(-50%); z-index: 5; display: flex; align-items: center; gap: 1.2cqw; animation: cardin2 .7s var(--ease) both .7s; }
.hm-cta .ts-cta { font-size: max(1.15rem, 1.75cqw); white-space: nowrap; box-shadow: 0 .5cqw 0 #C48F00, 0 0 0 .6cqw rgb(255 255 255 / .45), 0 1.6cqw 3cqw rgb(60 40 0 / .35); }
.hm-know { display: inline-flex; align-items: center; gap: .4em; padding: .6em 1.1em; border-radius: 999px; background: rgb(255 255 255 / .94); color: var(--navy); font-weight: 700; font-size: max(.9rem, 1.05cqw); box-shadow: 0 .6cqw 1.4cqw rgb(40 30 10 / .25); white-space: nowrap; }
.hm-know:hover { background: #fff; }
.hm-mall .hm-coin { position: absolute; z-index: 2; clip-path: circle(42%); filter: drop-shadow(0 .6cqw .8cqw rgb(0 0 0 / .3)); animation: coinbob 4s ease-in-out infinite; }
.hm-mall .hm-coin.k1 { width: 4.4cqw; left: 17%; top: 9%; rotate: -16deg; }
.hm-mall .hm-coin.k2 { width: 3cqw; right: 15%; top: 6%; rotate: 22deg; animation-delay: -1.4s; }
.hm-mall .hm-coin.k3 { width: 2.4cqw; right: 30%; top: 3%; rotate: 8deg; animation-delay: -2.4s; }

/* full-screen film layer (above everything) */
.tf-stage { position: fixed; inset: 0; z-index: 80; background: rgb(4 8 18 / .96); animation: fadein .35s var(--ease); }
.tf-stage.out { background: rgb(4 8 18 / 0); transition: background .45s; }
.tf-hold { position: fixed; transform-origin: 0 0; background: #000; }
.tf-hold video { width: 100%; height: 100%; object-fit: contain; display: block; }
.tf-stage .tf-x { position: fixed; top: 16px; left: 16px; z-index: 81; }
.tf-stage.out .tf-x { opacity: 0; }

/* phones: the facade is cropped to its center, so size things by the screen */
@media (max-aspect-ratio: 4/5) {
  .hm-logo { width: 86vw; top: 20%; }
  .hm-tagline { font-size: 1.05rem; padding: .35em 1.1em; top: 31%; }
  .hm-screen { width: 92vw; top: 52%; padding: 6px; border-radius: 16px; }
  .hm-screen .tf-btn { width: 64px; } .hm-screen .tf-cap { font-size: .95rem; }
  .hm-sale { width: 56px; font-size: 1rem; top: -18px; left: -10px; }
  .hm-mall .hm-guide, .hm-mall .hm-coin { display: none; }
  .hm-cta { flex-direction: column; bottom: 6%; gap: 12px; }
  .hm-cta .ts-cta { font-size: 1.3rem; }
  .hm-know { font-size: .95rem; }
}
.hm-mall .hm-guide.gl { left: 13.5%; }
.hm-mall .hm-guide.gb { right: 13%; }
.hm-screen { padding: .8cqw; box-shadow: 0 2.4cqw 4cqw rgb(10 20 50 / .45), 0 0 0 .35cqw var(--navy), 0 0 0 .7cqw #fff; }

/* ===== type: Fredoka (display, buttons, numbers) + Assistant (reading) ===== */
:root { --f-display: "Fredoka", "Assistant", system-ui, sans-serif; --f-body: "Assistant", system-ui, sans-serif; }
body { font-family: var(--f-body); font-size: 1.04em; }
h1, h2, h3, .cta, .ghost, .opt, .key, .rd-out, .rd-cheer, .rd-plus, .rd-coins, .rd-streak, .rd-price, .tb-title, .tb-btn, .lv-n, .lv-flag, .cbx-label, .cbx-read, .cbx-rows,
.ts-tag, .hm-tagline, .hm-sale, .hm-tag, .tc-tag, .tf-cap, .rd-hint-step, .rd-ask, .sl-num, .rc-h, .stamp, .in-title, .kn-main h1, .co-side h1, .sign-name, .shop-sign, [class*="sign"] {
  font-family: var(--f-display); }
.n, .rd-text .n, .rd-hint .n, .frac { font-family: var(--f-display); font-weight: 600; }
.opt { font-weight: 600; letter-spacing: .01em; }
.cta { font-weight: 600; letter-spacing: .01em; }
.rd-text { font-weight: 600; }
.rd-text mark { font-weight: 700; }

/* home: the tagline sits next to the logo, on the mall sign */
.hm-brand { position: absolute; left: 50%; top: 21.7%; transform: translate(-50%, -50%); z-index: 3; display: flex; align-items: center; gap: 1.6cqw; margin: 0; animation: logodrop 1s cubic-bezier(.3,1.4,.5,1) both .15s; }
.hm-brand .hm-logo { position: static; transform: none; width: 27cqw; animation: none; }
.hm-sep { width: .3cqw; height: 5.4cqw; border-radius: 99px; background: var(--gold); flex: none; }
.hm-brand .hm-tagline { position: static; transform: none; background: none; border: 0; box-shadow: none; padding: 0; animation: none;
  color: var(--navy); font-weight: 600; font-size: 2.25cqw; line-height: 1.12; white-space: nowrap; text-align: start; }
@keyframes logodrop { from { opacity: 0; transform: translate(-50%, -80%) scale(.9); } }
@media (max-aspect-ratio: 4/5) {
  .hm-brand { flex-direction: column; gap: 8px; top: 21%; }
  .hm-brand .hm-logo { width: 80vw; }
  .hm-sep { display: none; }
  .hm-brand .hm-tagline { font-size: 1.25rem; text-align: center; background: rgb(255 255 255 / .92); padding: .25em 1em; border-radius: 999px; }
  .hm-brand .hm-tagline br { display: none; }
}
.atrium .guide-spot .bubble { display: none; }

/* =====================================================================
   CHECKOUT v2 — bright like the task screen; one card, one decision
   ===================================================================== */
.checkout { background: #EAF7F2; }
.checkout::before { filter: blur(20px) brightness(1.1) saturate(1.2); opacity: .5; }
.checkout::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 100% at 50% 0%, rgb(255 255 255 / .8), rgb(255 255 255 / .35) 65%, rgb(255 255 255 / .15)); pointer-events: none; z-index: 0; }
.checkout-main { display: grid !important; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(16px, 2.4vw, 40px); align-items: center; padding: 5rem clamp(16px, 5vw, 90px) clamp(16px, 4vh, 40px) !important; max-width: 1400px; margin: 0 auto; width: 100%; min-height: 0; }
.co-card { position: relative; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: end; gap: clamp(12px, 2vw, 30px); background: #fff; border-radius: 34px; padding: clamp(18px, 3vw, 44px); box-shadow: 0 24px 60px rgb(14 27 61 / .14); min-height: min(62vh, 560px); overflow: hidden; animation: cardin .5s var(--ease); }
.co-card.win { background: linear-gradient(160deg, #FFFFFF 40%, #FFF6DA); }
.co-hero { position: relative; align-self: stretch; display: grid; place-items: end center; }
.co-hero::before { content: ""; position: absolute; left: 50%; bottom: 0; width: 90%; height: 9%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgb(14 27 61 / .16), transparent); }
.co-guide { position: relative; height: min(52vh, 460px); width: auto; filter: drop-shadow(0 12px 16px rgb(0 0 0 / .14)); animation: guidein .7s var(--ease) both .2s; }
.co-bag-img { position: absolute; bottom: 2%; left: 4%; width: 44%; z-index: 1; filter: drop-shadow(0 10px 12px rgb(0 0 0 / .16)); animation: popin .6s cubic-bezier(.3,1.6,.5,1) both .6s; }
.co-text { display: grid; gap: clamp(10px, 1.8vh, 18px); align-content: center; align-self: center; }
.co-text h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3.4rem); line-height: 1.05; color: var(--navy); font-weight: 600; }
.co-card.win .co-text h1 { color: #138A50; }
.co-text .stamp { display: inline-flex; align-items: center; gap: .45em; justify-self: start; background: var(--gold); color: var(--navy-ink); font-weight: 700; padding: .45em 1.1em; border-radius: 999px; font-family: var(--f-display); animation: popin .5s cubic-bezier(.3,1.6,.5,1) both .9s; }
.co-text .stamp .ic { fill: currentColor; }
.co-text .lead { color: var(--ink-2); font-size: 1.15rem; }
.co-earn { display: inline-flex; align-items: center; gap: .55em; justify-self: start; font-size: 1.2rem; color: var(--navy); font-family: var(--f-display); }
.co-earn img { width: 2.2rem; height: 2.2rem; object-fit: contain; clip-path: circle(42%); }
.co-earn b { font-weight: 700; }
.co-tip, .co-soon { display: flex; align-items: flex-start; gap: .5em; background: #FFF6E3; border-radius: 18px; padding: .8rem 1rem; color: #5A3A10; font-size: 1.05rem; }
.co-soon { background: #EAF2FD; color: var(--navy); }
.co-tip .ic, .co-soon .ic { margin-top: .2em; flex: none; }
.co-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .4rem; }
.co-actions .cta { font-size: 1.3rem; min-height: 3.4em; padding-inline: 1.6em; }
.co-actions .ghost { min-height: 3.4em; font-size: 1.05rem; padding-inline: 1.4em; }
.checkout .receipt { align-self: center; justify-self: stretch; transform: rotate(1.5deg); }
.rc-img { width: 1.9rem; height: 1.9rem; object-fit: contain; flex: none; }
.rc-l { align-items: center; gap: .5em; }
@media (max-aspect-ratio: 4/5) {
  .checkout-main { grid-template-columns: 1fr; padding-top: 4rem !important; align-content: start; gap: 12px; }
  .co-card { grid-template-columns: 1fr; min-height: 0; padding: 18px; border-radius: 24px; }
  .co-hero { display: none; }
  .checkout .receipt { transform: none; }
  .checkout .receipt .rc-l:not(.tot) { display: none; }
}

.co-bag-img { mix-blend-mode: multiply; }
.hm-layer .hm-guide { display: none; }
/* guard: stands on the plaza (closer to the camera = lower and a bit bigger), no bobbing, with a ground shadow */
.guard { left: 71%; bottom: 6%; height: 52%; animation: none; filter: drop-shadow(0 6px 4px rgb(0 0 0 / .22)); }
.guard-shadow { position: absolute; left: 71%; bottom: 5%; width: 11%; height: 3%; border-radius: 50%; background: radial-gradient(closest-side, rgb(40 30 10 / .38), transparent); pointer-events: none; transition: opacity .4s; }
@media (max-aspect-ratio: 4/5) { .guard { height: 56%; } }
.guard-wrap { position: absolute; left: 70%; bottom: 5%; height: 52%; }
.guard-wrap .guard { position: relative; left: auto; bottom: auto; height: 100%; display: block; }
.guard-wrap .guard-shadow { left: 50%; bottom: -1.5%; width: 70%; height: 6%; transform: translateX(-50%); }
.guard-wrap:has(.guard.away) .guard-shadow { opacity: 0; }
@media (max-aspect-ratio: 4/5) { .guard-wrap { height: 50%; } }
/* home (cream): logo, slogan and button on one side, the film in a tilted frame on the other — not on the mall */
.home-main.home-cream { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.home-cream .ts-film.playing .tf-frame, .home-cream .tf-frame.away { transform: rotate(-2deg); }
.home-cream .tf-frame.away video, .home-cream .tf-frame.away .tf-play { visibility: hidden; }
.home-cream .tf-frame { background: #fff url(../assets/video/trailer-poster.webp) center/cover; background-clip: content-box; }
/* home v0 (restored): logo + button + links on one side, storefront collage on the other */
.home-main.home-v0 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.home-v0 .ts-logo { width: min(100%, 34vw, 560px); }
.home-v0 .ts-cta .ts-play .ic { fill: currentColor; stroke: none; width: .9em; height: .9em; margin-left: .12em; }
.home-v0 .tc-guide { display: block; }

/* =====================================================================
   HOME — cinematic title, like a presentation's opening slide
   full-bleed mall, dark veil, a huge gold 3D wordmark with a glint
   ===================================================================== */
.hc { background: #0A0F1E; isolation: isolate; }
.hc > * { grid-row: 1; grid-column: 1; }
.hc-bg { position: absolute; inset: -4%; background: url(../assets/bg-atrium.webp) center/cover; animation: kenburns 40s ease-in-out infinite alternate; z-index: 0; }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, 1%); } }
.hc-veil { position: absolute; inset: 0; z-index: 1; background:
  radial-gradient(ellipse 75% 65% at 50% 46%, rgb(8 12 30 / .25), rgb(6 9 22 / .72) 72%, rgb(4 6 16 / .92) 100%),
  linear-gradient(180deg, rgb(4 6 16 / .35), transparent 30%, transparent 70%, rgb(4 6 16 / .55)); }
.hc-fx { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.hc-c { position: absolute; clip-path: circle(42%); filter: drop-shadow(0 12px 18px rgb(0 0 0 / .5)); animation: coinfloat 7s ease-in-out infinite; }
.hc-c.c1 { width: 9vmin; left: 8%; top: 18%; rotate: -18deg; filter: blur(2px) drop-shadow(0 12px 18px rgb(0 0 0 / .5)); }
.hc-c.c2 { width: 6vmin; right: 10%; top: 14%; rotate: 24deg; animation-delay: -2s; }
.hc-c.c3 { width: 13vmin; right: 5%; bottom: 10%; rotate: -8deg; filter: blur(4px) drop-shadow(0 12px 18px rgb(0 0 0 / .5)); animation-delay: -4s; }
.hc-c.c4 { width: 5vmin; left: 15%; bottom: 16%; rotate: 30deg; animation-delay: -1s; }
@keyframes coinfloat { 50% { translate: 0 -2.2vh; } }
.hc-ray { position: absolute; left: 50%; top: 44%; width: 120vmax; aspect-ratio: 1; translate: -50% -50%;
  background: repeating-conic-gradient(from 0deg, rgb(255 212 82 / .07) 0 5deg, transparent 5deg 14deg);
  -webkit-mask: radial-gradient(circle, #000 0, transparent 42%); mask: radial-gradient(circle, #000 0, transparent 42%); animation: spin 120s linear infinite; }

.hc-main { position: relative; z-index: 3; min-height: 0; display: grid; align-content: center; justify-items: center; gap: clamp(10px, 2.6vh, 30px); padding: 9vh 4vw 6vh; text-align: center; }
.hc-kick { font-family: var(--f-display); font-weight: 600; letter-spacing: .32em; font-size: clamp(14px, 2.3vh, 24px); color: #FFD452; text-shadow: 0 2px 12px rgb(0 0 0 / .6); animation: fadeup .8s var(--ease) both .2s; }

/* the wordmark */
.hc-title { display: flex; align-items: center; justify-content: center; gap: .03em; margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(84px, min(25vh, 17vw), 300px); line-height: .95; letter-spacing: -.01em; }
.hc-w { color: transparent; padding: 0 .02em .06em;
  background-image: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / .95) 47%, transparent 56%), linear-gradient(180deg, #FFFCEB 0%, #FFE58A 30%, #F7BE1A 58%, #DE9200 82%, #B87200 100%);
  background-size: 300% 100%, 100% 100%; background-repeat: no-repeat; background-position: 160% 0, 0 0;
  -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: .012em rgb(255 250 225 / .9);
  filter: drop-shadow(0 .02em 0 #C27A00) drop-shadow(0 .03em 0 #8E5200) drop-shadow(0 .045em 0 #14285A) drop-shadow(0 .06em 0 #0E1B3D) drop-shadow(0 .14em .14em rgb(0 0 0 / .55));
  animation: wordin 1s cubic-bezier(.2,1.4,.4,1) both, glint 5.5s ease-in-out infinite 1.8s; }
.hc-w.w1 { animation-delay: .35s, 1.8s; }
.hc-w.w2 { animation-delay: .55s, 1.8s; }
@keyframes wordin { from { opacity: 0; transform: translateY(.25em) scale(1.25); filter: blur(12px); } }
@keyframes glint { 0%, 55% { background-position: 160% 0, 0 0; } 85%, 100% { background-position: -60% 0, 0 0; } }
.hc-coin { position: relative; width: .78em; height: .78em; margin: 0 .02em; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, #FFF8D2 0 12%, #FFD84A 38%, #F2A900 68%, #B97800 100%);
  box-shadow: inset 0 0 0 .045em #FFE680, inset 0 -.04em .02em rgb(120 70 0 / .45), 0 .045em 0 #8E5200, 0 .07em 0 #0E1B3D, 0 .16em .16em rgb(0 0 0 / .5);
  animation: coinin 1.1s cubic-bezier(.2,1.5,.4,1) both .75s, coinspin 6s ease-in-out infinite 2.5s; }
.hc-coin i { font-style: normal; font-size: .5em; font-weight: 700; color: #14285A; text-shadow: 0 .03em 0 rgb(255 255 255 / .5); line-height: 1; }
.hc-coin::after { content: ""; position: absolute; top: -.16em; right: -.08em; width: .22em; height: .22em; background: radial-gradient(circle, #fff 0 18%, transparent 20%), conic-gradient(from 45deg, transparent 0 20deg, #FFF3B0 20deg 25deg, transparent 25deg 110deg, #FFF3B0 110deg 115deg, transparent 115deg 200deg, #FFF3B0 200deg 205deg, transparent 205deg 290deg, #FFF3B0 290deg 295deg, transparent 295deg); border-radius: 50%; animation: twinkle 2.4s ease-in-out infinite 2s; }
@keyframes coinin { from { opacity: 0; transform: translateY(-1.2em) rotate(-200deg) scale(.4); } }
@keyframes coinspin { 0%, 70% { transform: rotateY(0); } 85% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }

/* subtitle with gold rules, like a slide */
.hc-sub { display: flex; align-items: center; gap: 1.2em; font-family: var(--f-display); font-weight: 600; font-size: clamp(24px, 5vh, 58px); color: #fff; text-shadow: 0 3px 18px rgb(0 0 0 / .6); animation: fadeup .8s var(--ease) both 1s; }
.hc-sub::before, .hc-sub::after { content: ""; width: clamp(40px, 8vw, 140px); height: 3px; border-radius: 99px; background: linear-gradient(90deg, transparent, #FFD452); animation: rule .9s var(--ease) both 1.2s; }
.hc-sub::after { background: linear-gradient(270deg, transparent, #FFD452); }
@keyframes rule { from { transform: scaleX(0); } }
@keyframes fadeup { from { opacity: 0; transform: translateY(16px); } }

.hc-actions { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px); margin-top: 1vh; animation: fadeup .8s var(--ease) both 1.35s; }
.hc-go { font-size: clamp(20px, 3vh, 32px); min-height: 2.9em; padding-inline: 1.5em 1.2em; box-shadow: 0 7px 0 #C48F00, 0 0 0 10px rgb(255 212 82 / .16), 0 20px 44px rgb(0 0 0 / .45); }
.hc-go:hover { box-shadow: 0 7px 0 #C48F00, 0 0 0 14px rgb(255 212 82 / .24), 0 20px 44px rgb(0 0 0 / .45); }
.hc-go .ts-play .ic { fill: none; stroke: currentColor; stroke-width: 2.6; margin: 0; }
.hc-play { display: inline-flex; align-items: center; gap: .7em; color: #fff; font-family: var(--f-display); font-weight: 600; font-size: clamp(17px, 2.5vh, 26px); text-shadow: 0 2px 10px rgb(0 0 0 / .6); }
.hc-pbtn { width: clamp(56px, 8vh, 86px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .14); backdrop-filter: blur(8px); border: 3px solid rgb(255 255 255 / .85); animation: ringpulse 2.2s infinite; }
.hc-pbtn .ic { width: 40%; height: 40%; fill: #fff; stroke: none; margin-left: 8%; }
.hc-play:hover .hc-pbtn { background: rgb(255 255 255 / .26); }
@keyframes ringpulse { 0% { box-shadow: 0 0 0 0 rgb(255 212 82 / .55); } 70% { box-shadow: 0 0 0 22px rgb(255 212 82 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 212 82 / 0); } }
.hc .topbar .tb-icon { background: rgb(255 255 255 / .14); color: #fff; box-shadow: none; border: 1px solid rgb(255 255 255 / .3); }

@media (max-aspect-ratio: 4/5) {
  .hc-title { font-size: 21vw; }
  .hc-kick { letter-spacing: .18em; }
  .hc-sub { font-size: 7vw; gap: .6em; }
  .hc-actions { flex-direction: column; gap: 18px; }
  .hc-c.c3 { width: 22vmin; }
}
.no-motion .hc-bg, .no-motion .hc-ray, .no-motion .hc-c, .no-motion .hc-w, .no-motion .hc-coin { animation: none !important; }
.hc-title { font-family: "Secular One", var(--f-display); font-weight: 400; letter-spacing: 0; }
.hc-coin i { font-family: var(--f-display); }
.hc-veil { background:
  radial-gradient(ellipse 70% 55% at 50% 45%, rgb(6 9 24 / .55), rgb(6 9 22 / .78) 70%, rgb(4 6 16 / .93) 100%),
  linear-gradient(180deg, rgb(4 6 16 / .35), transparent 30%, transparent 70%, rgb(4 6 16 / .55)); }
.hc-kick { letter-spacing: .08em; font-size: clamp(16px, 2.6vh, 28px); }
.hc-title { font-size: clamp(90px, min(32vh, 21vw), 380px); }
@media (max-aspect-ratio: 4/5) { .hc-title { font-size: 23vw; } }

/* ===== wordmark in the brand's own colors: navy letters, white sticker outline, red ו, gold coin ===== */
.hc-w { position: relative; color: #14285A; background: none; -webkit-background-clip: border-box; background-clip: border-box;
  -webkit-text-stroke: .085em #fff; paint-order: stroke fill;
  text-shadow: 0 .05em 0 #C9D5EE, 0 .075em 0 #8FA3CF, 0 .1em 0 #0B1636, 0 .2em .18em rgb(0 0 0 / .55);
  filter: none; padding: 0 .04em .08em; animation: wordin 1s cubic-bezier(.2,1.4,.4,1) both; }
.hc-w.w1 { animation-delay: .35s; } .hc-w.w2 { animation-delay: .55s; } .hc-w.w3 { animation-delay: .7s; color: #E1261C; }
.hc-w::after { content: attr(data-t); position: absolute; inset: 0; padding: inherit; color: transparent; -webkit-text-stroke: 0; text-shadow: none;
  background: linear-gradient(105deg, transparent 40%, rgb(255 255 255 / .75) 50%, transparent 60%) no-repeat; background-size: 300% 100%; background-position: 160% 0;
  -webkit-background-clip: text; background-clip: text; animation: glint2 5.5s ease-in-out infinite 2s; pointer-events: none; }
@keyframes glint2 { 0%, 55% { background-position: 160% 0; } 85%, 100% { background-position: -60% 0; } }
@keyframes wordin { from { opacity: 0; transform: translateY(.25em) scale(1.25); } }

/* ===== type scale: golden ratio (φ = 1.618), base B = 2.4vh =====
   kicker = B · button = B·φ^0.5 · slogan = B·φ² · wordmark = B·φ⁵ */
.hc { --B: clamp(15px, 2.4vh, 26px); }
.hc-kick { font-size: var(--B); }
.hc-go, .hc-play { font-size: calc(var(--B) * 1.272); }
.hc-sub { font-size: calc(var(--B) * 2.618); }
.hc-title { font-size: min(calc(var(--B) * 11.09), 20vw); }
.hc-pbtn { width: calc(var(--B) * 2.618); }
.hc-main { gap: calc(var(--B) * 1); }
.hc-sub { margin-top: calc(var(--B) * -.3); }
.hc-actions { margin-top: calc(var(--B) * .618); }
@media (max-aspect-ratio: 4/5) { .hc { --B: clamp(14px, 4.2vw, 20px); } .hc-title { font-size: min(calc(var(--B) * 11.09), 24vw); } }
.hc-title { gap: 0; }
.hc-coin { margin: 0 .06em; }
.hc-w.w2 { padding-inline-end: 0; }
.hc-w.w3 { padding-inline-start: 0; margin-inline-start: -.02em; }
/* phone: the width limits the wordmark, so the scale is derived from it (slogan = name / φ³, kicker = name / φ⁵) */
@media (max-aspect-ratio: 4/5) {
  .hc-title { font-size: 24vw; }
  .hc-sub { font-size: calc(24vw / 4.236); gap: .5em; }
  .hc-sub::before, .hc-sub::after { width: 9vw; }
  .hc-kick { font-size: max(13px, calc(24vw / 11.09)); }
}
/* floating % signs instead of coins: same 3D treatment as the wordmark, at different depths */
.hc-p { position: absolute; font-family: "Secular One", var(--f-display); line-height: 1; color: #FFC21A; -webkit-text-stroke: .07em #fff; paint-order: stroke fill;
  text-shadow: 0 .05em 0 #C9D5EE, 0 .09em 0 #0B1636, 0 .2em .2em rgb(0 0 0 / .5); animation: coinfloat 7s ease-in-out infinite; }
.hc-p.p1 { font-size: 15vmin; left: 6%; top: 14%; rotate: -16deg; filter: blur(3px); opacity: .85; }
.hc-p.p2 { font-size: 7vmin; right: 11%; top: 12%; rotate: 14deg; animation-delay: -2s; }
.hc-p.p3 { font-size: 20vmin; right: 3%; bottom: 6%; rotate: -10deg; filter: blur(5px); opacity: .7; animation-delay: -4s; }
.hc-p.p4 { font-size: 6vmin; left: 14%; bottom: 14%; rotate: 22deg; animation-delay: -1s; color: #E1261C; }
.hc-p.p5 { font-size: 9vmin; left: 23%; top: 52%; rotate: 8deg; filter: blur(1.5px); opacity: .9; animation-delay: -3s; }
.hc-p.p6 { font-size: 5vmin; right: 24%; top: 58%; rotate: -20deg; animation-delay: -5s; color: #E1261C; }
@media (max-aspect-ratio: 4/5) { .hc-p.p5, .hc-p.p6 { display: none; } .hc-p.p1 { top: 8%; } }
.no-motion .hc-p { animation: none !important; }
.hc-coin::after { display: none; }
.hc-title, .hc-p { font-family: "Rubik", var(--f-display); font-weight: 900; }
.hc-title { font-family: "Rubik", var(--f-display); font-weight: 700; }
.hc-w { -webkit-text-stroke: .055em #fff; }
.hc-p { font-family: "Rubik", var(--f-display); font-weight: 800; }

/* ===== home: floating "percent objects" — each one a different idea from the world of percents ===== */
.hc-t { position: absolute; display: grid; place-items: center; font-family: "Rubik", var(--f-display); font-weight: 800; line-height: 1; direction: ltr;
  filter: drop-shadow(0 1.2vmin 1.4vmin rgb(0 0 0 / .45)); animation: coinfloat 7s ease-in-out infinite; }
.hc-t b { position: relative; z-index: 1; }
/* red sale sticker */
.t-burst { width: 14vmin; aspect-ratio: 1; left: 6%; top: 15%; rotate: -14deg; color: #fff; font-size: 3.6vmin; }
.t-burst::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 40% 35%, #FF5A4E, #E1261C 60%, #B5160E);
  clip-path: polygon(50% 0%,57.8% 10.8%,69.1% 3.8%,72.2% 16.7%,85.4% 14.6%,83.3% 27.8%,96.2% 30.9%,89.2% 42.2%,100% 50%,89.2% 57.8%,96.2% 69.1%,83.3% 72.2%,85.4% 85.4%,72.2% 83.3%,69.1% 96.2%,57.8% 89.2%,50% 100%,42.2% 89.2%,30.9% 96.2%,27.8% 83.3%,14.6% 85.4%,16.7% 72.2%,3.8% 69.1%,10.8% 57.8%,0% 50%,10.8% 42.2%,3.8% 30.9%,16.7% 27.8%,14.6% 14.6%,27.8% 16.7%,30.9% 3.8%,42.2% 10.8%); }
/* gold coin */
.t-coin { width: 9vmin; aspect-ratio: 1; right: 10%; top: 13%; rotate: 12deg; border-radius: 50%; color: #14285A; font-size: 2.4vmin; animation-delay: -2s;
  background: radial-gradient(circle at 34% 28%, #FFF8D2 0 12%, #FFD84A 38%, #F2A900 68%, #B97800 100%); box-shadow: inset 0 0 0 .5vmin #FFE680, inset 0 -.5vmin .3vmin rgb(120 70 0 / .4); }
/* hanging price tag */
.t-tag { width: 15vmin; height: 7.5vmin; left: 13%; bottom: 13%; rotate: -16deg; color: #14285A; font-size: 3.4vmin; animation-delay: -1s; padding-left: 3vmin; }
.t-tag::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 11% 50%, transparent 0 .8vmin, #FFFDF6 .9vmin); clip-path: polygon(20% 0, 100% 0, 100% 100%, 20% 100%, 0 50%); border-radius: .6vmin; }
.t-tag::after { content: ""; position: absolute; left: 1.2vmin; top: 50%; width: 7vmin; height: .35vmin; background: #E8D7B0; transform-origin: left; rotate: 200deg; border-radius: 9px; }
/* pie: 75% filled */
.t-pie { width: 11vmin; aspect-ratio: 1; right: 4%; top: 46%; rotate: -8deg; animation-delay: -3s; }
.t-pie i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(#FFC21A 0 75%, #fff 75% 100%); box-shadow: 0 0 0 .5vmin #fff, inset 0 0 0 .2vmin rgb(20 40 90 / .15); }
.t-pie b { position: absolute; bottom: -2.4vmin; background: #14285A; color: #fff; font-size: 2vmin; padding: .4vmin 1.2vmin; border-radius: 99px; }
/* mini hundred-board: 30 of 100 filled */
.t-grid { width: 11vmin; aspect-ratio: 1; left: 3%; top: 50%; rotate: 9deg; animation-delay: -4s; filter: blur(.6px) drop-shadow(0 1.2vmin 1.4vmin rgb(0 0 0 / .45)); }
.t-grid i { position: absolute; inset: 0; border-radius: 1.2vmin; border: .5vmin solid #fff;
  background: linear-gradient(#DCE4F5 1px, transparent 1px) 0 0 / 10% 10%, linear-gradient(90deg, #DCE4F5 1px, transparent 1px) 0 0 / 10% 10%, linear-gradient(to top, #12B39A 30%, #fff 30%); }
.t-grid b { position: absolute; bottom: -2.4vmin; background: #14285A; color: #fff; font-size: 2vmin; padding: .4vmin 1.2vmin; border-radius: 99px; }
/* ½ bubble */
.t-half { width: 8vmin; aspect-ratio: 1; right: 15%; bottom: 14%; rotate: -10deg; border-radius: 50%; background: #8B5CF6; color: #fff; font-size: 4.6vmin; animation-delay: -5s; box-shadow: inset 0 -.6vmin 0 rgb(0 0 0 / .18); }
@media (max-aspect-ratio: 4/5) { .t-grid, .t-pie { display: none; } .t-burst { top: 9%; } .t-coin { top: 10%; } }
.no-motion .hc-t { animation: none !important; }

/* the top line: one step under the slogan (B·φ), as a gold tag — the name keeps its size */
.hc-kick { font-size: calc(var(--B) * 1.272); letter-spacing: .02em; color: #FFD452; border: 2px solid rgb(255 212 82 / .6); background: rgb(255 212 82 / .1); padding: .3em 1.1em; border-radius: 999px; }
@media (max-aspect-ratio: 4/5) { .hc-kick { font-size: 4vw; } }
/* floating numbers: the same family as the wordmark (white outline, navy depth), brand colors, different depths */
.hc-n { position: absolute; direction: ltr; font-family: "Rubik", var(--f-display); font-weight: 800; line-height: 1; -webkit-text-stroke: .07em #fff; paint-order: stroke fill;
  text-shadow: 0 .05em 0 #C9D5EE, 0 .09em 0 #0B1636, 0 .2em .2em rgb(0 0 0 / .5); animation: coinfloat 7s ease-in-out infinite; }
.hc-n.n1 { font-size: 11vmin; left: 6%; top: 15%; rotate: -12deg; color: #E1261C; }
.hc-n.n2 { font-size: 7vmin; right: 9%; top: 14%; rotate: 10deg; color: #FFC21A; animation-delay: -2s; }
.hc-n.n3 { font-size: 6vmin; left: 12%; bottom: 15%; rotate: 8deg; color: #14285A; animation-delay: -4s; filter: blur(1.5px); opacity: .9; }
.hc-n.n4 { font-size: 13vmin; right: 4%; bottom: 9%; rotate: -8deg; color: #FFC21A; animation-delay: -1s; filter: blur(3.5px); opacity: .75; }
@media (max-aspect-ratio: 4/5) { .hc-n.n1 { top: 9%; font-size: 13vmin; } .hc-n.n2 { top: 10%; } }
.no-motion .hc-n { animation: none !important; }
.hc-n.n3 { color: #E1261C; filter: none; opacity: 1; }
/* less gold: gold is the 10% accent (the coin + the main button) */
.hc-kick { color: rgb(255 255 255 / .92); border-color: rgb(255 255 255 / .35); background: rgb(255 255 255 / .08); }
.hc-sub::before { background: linear-gradient(90deg, transparent, rgb(255 255 255 / .7)); }
.hc-sub::after { background: linear-gradient(270deg, transparent, rgb(255 255 255 / .7)); }
.hc-n.n4 { color: #fff; font-size: 12vmin; filter: blur(3px); opacity: .55; }
.hc-n.n1 { font-size: 10vmin; }

/* ===== the name = the original logo itself, with effects ===== */
.hc-logo { position: relative; margin: 0; width: min(64vw, 104vh); line-height: 0; animation: logoin 1.1s cubic-bezier(.2,1.3,.4,1) both .3s; }
.hc-logo img { width: 100%; height: auto; filter: drop-shadow(0 1.4vh 1.8vh rgb(0 0 0 / .55)); animation: logofloat 6s ease-in-out infinite 1.6s; }
.hc-glint { position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(../assets/logo/logo.png) center / 100% 100% no-repeat; mask: url(../assets/logo/logo.png) center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 42%, rgb(255 255 255 / .7) 50%, transparent 58%) no-repeat; background-size: 300% 100%; background-position: 160% 0;
  animation: glint2 5.5s ease-in-out infinite 2s, logofloat 6s ease-in-out infinite 1.6s; }
@keyframes logoin { from { opacity: 0; transform: scale(1.25) translateY(-3vh); filter: blur(10px); } }
@keyframes logofloat { 50% { translate: 0 -1vh; } }
.hc-main { gap: calc(var(--B) * .8); }
@media (max-aspect-ratio: 4/5) { .hc-logo { width: 90vw; } .hc-sub { font-size: 5.6vw; } }
.no-motion .hc-logo, .no-motion .hc-logo img, .no-motion .hc-glint { animation: none !important; }

/* ===== top menu (home + film page) ===== */
.brand-icon img { height: 2.8rem; width: 2.8rem; border-radius: 12px; filter: drop-shadow(0 4px 10px rgb(0 0 0 / .35)); }
.tb-links { display: flex; align-items: center; gap: clamp(4px, 1.2vw, 18px); margin-inline-start: clamp(8px, 1.5vw, 24px); }
.tb-links button { position: relative; display: inline-flex; align-items: center; gap: .45em; min-height: 2.6rem; padding: 0 .8em; border-radius: 999px; color: rgb(255 255 255 / .82); font-family: var(--f-display); font-weight: 500; font-size: 1.02rem; transition: color .2s, background .2s; }
.tb-links button .ic { width: 1.1em; height: 1.1em; opacity: .85; }
.tb-links button:hover { color: #fff; background: rgb(255 255 255 / .1); }
.tb-links button.on { color: #fff; }
.tb-links button.on::after { content: ""; position: absolute; left: .8em; right: .8em; bottom: .2rem; height: 3px; border-radius: 99px; background: var(--gold); }
.hc .topbar { background: linear-gradient(180deg, rgb(4 6 16 / .55), transparent); padding-bottom: 1.4rem; }
@media (max-aspect-ratio: 4/5) {
  .tb-links { gap: 0; margin-inline-start: 4px; }
  .tb-links button { padding: 0 .55em; }
  .tb-links button span { display: none; }
  .tb-links button.on::after { left: .4em; right: .4em; }
}

/* home: the kicker is gone, one main button */
.hc-main { padding-top: 12vh; }
.hc-go { font-size: calc(var(--B) * 1.41); }

/* the film page */
.in-main { position: relative; z-index: 3; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; justify-items: center; align-items: center; gap: clamp(10px, 2.2vh, 24px); padding: 5.4rem 4vw 4vh; }
.in-title { font-family: var(--f-display); font-weight: 600; font-size: calc(var(--B) * 2.618); color: #fff; text-shadow: 0 3px 18px rgb(0 0 0 / .6); animation: fadeup .7s var(--ease) both .1s; }
.in-stage { width: 100%; height: 100%; min-height: 0; container-type: size; display: grid; place-items: center; }
.in-frame { position: relative; margin: 0; width: min(100cqw, 100cqh * 16 / 9); aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #000; box-shadow: 0 30px 70px rgb(0 0 0 / .55), 0 0 0 1px rgb(255 255 255 / .15); animation: screenin2 .8s var(--ease) both .2s; }
.in-frame video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.in-play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: #fff; font-family: var(--f-display); font-weight: 600; font-size: calc(var(--B) * 1.272); text-shadow: 0 2px 10px rgb(0 0 0 / .7); background: linear-gradient(180deg, rgb(0 0 0 / 0) 40%, rgb(0 0 0 / .55)); }
.in-play .hc-pbtn { width: calc(var(--B) * 4.236); }
.in-play[hidden] { display: none; }
.in-actions { display: flex; align-items: center; gap: 18px; min-height: 3.6rem; animation: fadeup .7s var(--ease) both .4s; }
.in-actions [hidden] { display: none; }
.in-go { font-size: calc(var(--B) * 1.41); }
.in-skip { display: inline-flex; align-items: center; gap: .4em; padding: .7em 1.3em; border-radius: 999px; color: rgb(255 255 255 / .9); border: 1.5px solid rgb(255 255 255 / .4); font-family: var(--f-display); font-weight: 500; font-size: calc(var(--B) * 1); }
.in-skip:hover { background: rgb(255 255 255 / .1); color: #fff; }
.in-skip .ic { width: 1em; height: 1em; }
@keyframes screenin2 { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes nudge { 30% { transform: scale(1.07); } 60% { transform: scale(.98); } }

/* ===== a clear top bar: a solid band, large legible links ===== */
.hc .topbar { background: rgb(10 18 44 / .82); border-bottom: 1px solid rgb(255 255 255 / .12); box-shadow: 0 6px 24px rgb(0 0 0 / .3); padding: .55rem clamp(14px, 2.4vw, 36px); backdrop-filter: blur(6px); }
.hc .brand-icon img { height: 3rem; width: 3rem; }
.hc .tb-links { gap: clamp(6px, 1.6vw, 26px); margin-inline-start: clamp(10px, 2vw, 30px); }
.hc .tb-links button { color: #fff; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.05rem, 1.25vw, 1.3rem); min-height: 3rem; padding: 0 1em; }
.hc .tb-links button .ic { width: 1.15em; height: 1.15em; opacity: 1; color: #FFD452; }
.hc .tb-links button:hover { background: rgb(255 255 255 / .12); }
.hc .tb-links button.on { background: rgb(255 255 255 / .14); }
.hc .tb-links button.on::after { bottom: .15rem; }
.hc .topbar .tb-icon { background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .25); }
.hc-main, .in-main { padding-top: calc(4.5rem + 4vh); }
@media (max-aspect-ratio: 4/5) {
  .hc .tb-links button { padding: 0 .6em; min-height: 2.6rem; }
  .hc .tb-links button span { display: none; }
}

/* film page: the two choices */
.in-playbtn { font-size: calc(var(--B) * 1.41); }
.in-playbtn .ts-play .ic { fill: currentColor; stroke: none; width: .85em; height: .85em; margin-left: .12em; }
.in-frame.away video { visibility: hidden; }
.in-again .ic { width: 1em; height: 1em; }

/* ===== home + film page: a balanced logo, no muddy yellow ===== */
.hc-logo { width: min(46vw, 76vh); }
@media (max-aspect-ratio: 4/5) { .hc-logo { width: 82vw; } }
.hc .cta { background: #fff; color: #14285A; box-shadow: 0 6px 0 #C9D3EA, 0 18px 40px rgb(0 0 0 / .4); }
.hc .cta:hover { background: #F3F6FD; box-shadow: 0 6px 0 #C9D3EA, 0 0 0 8px rgb(255 255 255 / .14), 0 18px 40px rgb(0 0 0 / .4); }
.hc .cta:active { box-shadow: 0 2px 0 #C9D3EA; }
.hc .cta .ts-play { background: #14285A; color: #fff; }
.hc .tb-links button .ic { color: #fff; opacity: .8; }
.hc .tb-links button.on::after { background: #fff; }
.hc .cta.nudge { animation: nudge 1.2s var(--ease) 2; }
.hc-pbtn { animation: none; }

/* ===== normal-size controls: a plain play mark on the film, a regular button on home ===== */
.in-ov { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, rgb(0 0 0 / 0) 50%, rgb(0 0 0 / .35)); }
.in-ovbtn { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgb(0 0 0 / .45); border: 2px solid rgb(255 255 255 / .9); transition: transform .2s var(--ease), background .2s; }
.in-ovbtn .ic { width: 30px; height: 30px; fill: #fff; stroke: none; margin-left: 5px; }
.in-ov:hover .in-ovbtn { transform: scale(1.08); background: rgb(0 0 0 / .6); }
.in-frame.away .in-ov { visibility: hidden; }
.hc .hc-go, .hc .in-go { font-size: 1.15rem; min-height: 0; padding: .7em 1.5em .7em 1.1em; box-shadow: 0 4px 0 #C9D3EA, 0 10px 24px rgb(0 0 0 / .35); }
.hc .hc-go .ts-play, .hc .in-go .ts-play { width: 1.6em; height: 1.6em; }
.in-skip { font-size: 1rem; padding: .55em 1.2em; }
.in-again { display: none !important; }

/* =====================================================================
   INNER SCREENS — header: a clear "back" on the right, the title centered
   ===================================================================== */
.tb-back { display: inline-flex; align-items: center; gap: .45em; min-height: 2.9rem; padding: 0 1.2em 0 1em; border-radius: 999px; background: #fff; color: var(--navy); font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; box-shadow: 0 6px 18px rgb(0 0 0 / .3); transition: transform .15s var(--ease); }
.tb-back:hover { transform: translateX(3px); }
.tb-back .ic { width: 1.25em; height: 1.25em; stroke-width: 2.6; }
.topbar:has(.tb-back) .tb-title { justify-content: center; }
.topbar:has(.tb-back) .tb-title > span { font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; }

/* =====================================================================
   TASK SCREEN v3 — the market-game language: a dark cinematic store photo,
   cream cards, one calm color for the answers, the scratch paper always open
   ===================================================================== */
.round { background: #0A0F1E; }
.round::before { inset: -30px; filter: blur(14px) brightness(.42) saturate(1.15); opacity: 1; }
.round::after { background: radial-gradient(ellipse 80% 70% at 50% 45%, rgb(0 0 0 / 0), rgb(0 0 0 / .45) 90%); }
.rd { grid-template-columns: minmax(0, .95fr) minmax(0, 1.12fr) minmax(0, .78fr); grid-template-areas: "top stage note" "q stage note" "ans stage note" "tools stage note"; padding-top: 4.6rem; }

/* cream cards */
.rd-q, .rd-notecol .notebook, .rd-fb, .rd-hint { box-shadow: 0 20px 50px rgb(0 0 0 / .45); }
.rd-q { background: #FBF6EA; }
.rd-prod { background: radial-gradient(circle at 50% 40%, #fff, #F1E8D3); }

/* progress, coins, streak on dark */
.rd-cart li { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .35); }
.rd-cart li.now { background: #FBF6EA; border-color: #fff; box-shadow: 0 0 0 6px rgb(255 255 255 / .14); }
.rd-cart li.ok, .rd-cart li.miss { background: #FBF6EA; border-color: #FBF6EA; }
.rd-coins { background: #FBF6EA; }

/* the stage: the box floats in a soft spotlight, no white panel */
.rd-stage { background: radial-gradient(ellipse 60% 55% at 50% 45%, rgb(255 244 220 / .16), rgb(255 244 220 / 0) 70%); box-shadow: none; border-radius: 0; overflow: visible; }
.rd-fb.ok { background: #EAF7EF; }
.rd-fb.try, .rd-fb.miss { background: #FFF3E0; }
.rd-fb.info { background: #FBF6EA; }
.rd-hint { background: #FBF6EA; }

/* answers: one calm cream color, big navy numbers */
.rd-ask { color: #F3E9D2; }
.opt, .opt.o1, .opt.o2, .opt.o3 { --c: #FBF6EA; --d: #CDBF9C; color: #14285A; }
.opt::before { display: none; }
.opt:hover { box-shadow: 0 9px 0 var(--d), 0 0 0 3px #fff, 0 18px 30px rgb(0 0 0 / .35); }
.opt.yes { --c: #1FB36B; --d: #138A50; color: #fff; }
.opt.no, .opt.dim { opacity: .35; }
.mode-keypad .key { background: #FBF6EA; box-shadow: 0 5px 0 #CDBF9C; }
.rd-out { background: #FBF6EA; border-color: #FBF6EA; }

/* buttons: white, like home (no muddy yellow) */
.round .cta { background: #fff; color: #14285A; box-shadow: 0 6px 0 #C9D3EA, 0 14px 30px rgb(0 0 0 / .35); }
.round .cta:hover { background: #F3F6FD; }
.round .cta:disabled { opacity: .35; }
.round .ghost { background: rgb(255 255 255 / .1); color: #fff; border: 1.5px solid rgb(255 255 255 / .45); }
.rd-tool { background: rgb(255 255 255 / .1); color: #fff; border: 1.5px solid rgb(255 255 255 / .3); box-shadow: none; }
.rd-tool:hover { background: rgb(255 255 255 / .18); }

/* scratch paper: always open, its own column */
.rd-notecol { grid-area: note; min-height: 0; display: grid; }
.rd-notecol .notebook { height: 100%; border-radius: 24px; }
.rd-note-x, .rd-tool-note { display: none; }

/* candy box: clear empty pockets */
.cbx-tray { background: #FFF8EC; }
.pk { background: radial-gradient(circle at 50% 42%, #E2CDA8, #F4E7D0 72%); box-shadow: inset 0 2px 4px rgb(110 70 30 / .38), 0 0 0 1.5px #D3BB91; }
.has-groups .pk.alt { background: radial-gradient(circle at 50% 42%, #9FDCC8, #CDEFE3 72%); box-shadow: inset 0 2px 4px rgb(20 90 70 / .3), 0 0 0 1.5px #86CDB5; }
.paintable .pk:hover { box-shadow: inset 0 0 0 3px #14285A, inset 0 2px 4px rgb(110 70 30 / .38); }

/* phones: the scratch paper opens over the screen from its button */
@media (max-aspect-ratio: 4/5) {
  .rd { grid-template-columns: minmax(0, 1fr); grid-template-areas: "top" "q" "stage" "ans" "tools"; }
  .rd-notecol { display: none; position: fixed; inset: 64px 10px 10px; z-index: 40; }
  .rd-notecol.open { display: grid; }
  .rd-note-x { display: grid; }
  .rd-tool-note { display: inline-flex; }
}
.rd { grid-template-columns: minmax(0, .9fr) minmax(0, 1.38fr) minmax(0, .72fr); grid-template-rows: auto auto auto minmax(0, 1fr) auto; grid-template-areas: "top stage note" "q stage note" "ans stage note" ". stage note" "tools stage note"; }
.rd-ans { align-content: start; margin-top: .4rem; }
.rd-rep { padding: 2% 3%; }
.cbx { height: min(90cqh, 94cqw); }
.show-read .cbx { height: min(80cqh, 94cqw); }
@media (max-aspect-ratio: 4/5) { .rd { grid-template-rows: auto auto minmax(0, 1fr) auto auto; grid-template-areas: "top" "q" "stage" "ans" "tools"; } }

/* ===== the hundred-board by the agreed rules: coherence (no decoration), one fill color, brand palette, strong figure/ground ===== */
.cbx { background: #FBF6EA; padding: 3%; border-radius: 22px; box-shadow: 0 0 0 3px #14285A, 0 24px 50px rgb(0 0 0 / .45); }
.cbx-tray { background: #fff; border-radius: 14px; box-shadow: inset 0 0 0 1px #E6DCC6; }
.pk { background: #F6F1E6; box-shadow: inset 0 0 0 2px #C7BBA0; }
.has-groups .pk.alt { background: #E4EAF7; box-shadow: inset 0 0 0 2px #9FB2DC; }
.cd, .cd.c0, .cd.c1, .cd.c2, .cd.c3, .cd.c4 { --c1: #3D5FB0; --c2: #14285A; inset: 7%;
  background: radial-gradient(circle at 34% 28%, rgb(255 255 255 / .55) 0 8%, rgb(255 255 255 / 0) 22%), radial-gradient(circle at 50% 55%, var(--c1), var(--c2) 75%);
  box-shadow: 0 1px 2px rgb(0 0 0 / .25); }
.cbx-label { background: #14285A; color: #fff; }
.paintable .pk:hover { box-shadow: inset 0 0 0 3px #14285A; }
/* mall map: on screens wider than the picture, crop only the empty floor (never the top-floor signs) */
.atrium .scene-box { top: 0; transform: translate(-50%, 0); }
.atrium .scene-box.zoom-in { transform: translate(-50%, 0) scale(3.3); }
.sign-candy span { font-family: var(--f-display); }
/* store names follow the perspective of their sign panels */
.sign { transform: translate(-50%, -50%) skewY(var(--sk, 0deg)); }

/* ===== store names embedded in their signs: perspective, panel-filling size, the sign's own material ===== */
.sign { height: auto; font-family: var(--f-display); font-weight: 600; line-height: 1; font-size: 2.35cqw; }
.sign span { padding: .1em .2em; }
/* light panels: the letters are printed into the panel (multiply keeps the panel's texture and light) */
.sign-candy span, .sign-super span, .sign-food span { mix-blend-mode: multiply; text-shadow: none; }
.sign-candy span { color: #1E5C47; font-size: 2.5cqw; }
.sign-super span { color: #14285A; font-size: 2.3cqw; }
.sign-food span { color: #1A4C9C; font-size: 2.3cqw; }
/* dark panels: backlit letters — a soft glow, a touch of the panel's light color */
.sign-sport span { color: #F4FFE0; font-style: italic; font-size: 2.3cqw; text-shadow: 0 0 .25em rgb(200 255 80 / .55), 0 0 .8em rgb(200 255 80 / .25); }
.sign-home span { color: #FFF1CF; font-size: 2.1cqw; text-shadow: 0 0 .3em rgb(255 210 120 / .45); }
.sign-gadgets span { color: #fff; font-size: 2.1cqw; letter-spacing: .02em; text-shadow: 0 0 .3em rgb(160 200 255 / .6); }
.sign-photo span { color: #FFE9BF; font-size: 2.1cqw; text-shadow: 0 0 .3em rgb(255 190 90 / .55); }
/* neon */
.sign-gaming span { color: #fff; font-size: 2.4cqw; text-shadow: 0 0 .12em #fff, 0 0 .35em #C79BFF, 0 0 .8em #8E5CFF, 0 0 1.4em #39D5D5; }
.sign span { filter: blur(.15px); }
/* mall map on any landscape screen: the full width is always visible; only the empty floor may be cropped (or extended) */
@media (min-aspect-ratio: 1/1) {
  .atrium .scene { background: linear-gradient(180deg, #EDE2D2, #E2D3BF); }
  .atrium .scene-box { width: 100cqw; height: calc(100cqw / var(--ar)); top: 0; transform: translate(-50%, 0); }
  .atrium .scene-box.zoom-in { transform: translate(-50%, 0) scale(3.3); }
}
@media (min-aspect-ratio: 1/1) {
  .atrium .scene::before { content: ""; position: absolute; inset: -30px; background: url(../assets/bg-atrium.webp) center bottom / cover; filter: blur(14px) brightness(1.02); }
  .atrium .scene-box { -webkit-mask: linear-gradient(180deg, #000 88%, transparent 100%); mask: linear-gradient(180deg, #000 88%, transparent 100%); }
}

/* ===== keypad that always fits (the check button never covers a row) ===== */
.mode-keypad { gap: .55rem; }
.mode-keypad .keypad { grid-auto-rows: clamp(2.3rem, 5.4vh, 3.4rem); gap: .45rem; }
.mode-keypad .key { font-size: 1.4rem; }
.mode-keypad .rd-out { min-height: 3.4rem; font-size: 2rem; }
.mode-keypad .cta { min-height: 3.2rem; }

/* ===== download cards: a polished game-launcher look ===== */
.dl-wrap { width: min(100%, 720px); gap: 22px; }
.dl { position: relative; background: linear-gradient(160deg, #1D2748 0%, #111830 100%); border: 1px solid rgb(255 255 255 / .1); border-radius: 22px; padding: 20px 24px 16px; box-shadow: 0 24px 50px rgb(0 0 0 / .5), inset 0 1px 0 rgb(255 255 255 / .08); }
.dl-top { margin-bottom: 14px; }
.dl-name { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; gap: .55em; }
.dl-name .ic { width: 1.6em; height: 1.6em; padding: .3em; border-radius: 10px; background: linear-gradient(135deg, #39D5D5, #8C63F0); color: #fff; stroke-width: 2.6; }
.dl-gb { font-family: var(--f-display); font-weight: 500; font-size: 1rem; color: #D6E2FF; background: rgb(255 255 255 / .08); padding: .3em .8em; border-radius: 999px; }
.dl-bar { height: 22px; background: rgb(255 255 255 / .07); box-shadow: inset 0 2px 4px rgb(0 0 0 / .4); }
.dl-fill { background: linear-gradient(270deg, #39D5D5, #8C63F0); box-shadow: 0 0 18px rgb(120 140 255 / .55); transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.dl-ticks { opacity: 1; }
.dl-ticks b { width: 1px; background: rgb(255 255 255 / .14); }
.dl-wrap.show-ticks .dl-ticks b { background: rgb(255 255 255 / .55); }
.dl-scale { margin-top: 10px; font-family: var(--f-display); font-size: .85rem; color: rgb(214 226 255 / .55); }
.dl-q { color: #fff; background: rgb(255 255 255 / .12); padding: .15em .7em; border-radius: 999px; font-size: 1rem; }
.dl-wrap.solved .dl-q { background: #1FB36B; }

/* ===== store signs: each store its own real signage typeface, sized to sit inside the panel ===== */
.sign { font-size: 1.7cqw; }
.sign span { filter: none; padding: 0; }
.sign-sport span   { font-family: "Karantina", sans-serif; font-weight: 700; font-style: normal; font-size: 2.6cqw; letter-spacing: .03em; }
.sign-home span    { font-family: "Bellefair", serif; font-weight: 400; font-size: 1.75cqw; letter-spacing: .04em; }
.sign-gadgets span { font-family: "Heebo", sans-serif; font-weight: 800; font-size: 1.55cqw; letter-spacing: .08em; }
.sign-photo span   { font-family: "Frank Ruhl Libre", serif; font-weight: 700; font-size: 1.6cqw; letter-spacing: .03em; }
.sign-candy span   { font-family: "Playpen Sans Hebrew", sans-serif; font-weight: 700; font-size: 1.75cqw; }
.sign-gaming span  { font-family: "Secular One", sans-serif; font-weight: 400; font-size: 1.85cqw; letter-spacing: .06em; }
.sign-super span   { font-family: "Assistant", sans-serif; font-weight: 800; font-size: 1.7cqw; }
.sign-food span    { font-family: "Suez One", serif; font-weight: 400; font-size: 1.75cqw; }

/* =====================================================================
   ONE LANGUAGE FOR EVERY INNER SCREEN: dark cinematic background, cream cards,
   navy + white; gold only inside the logo
   ===================================================================== */
/* knowledge center */
.knowledge { background: #0A0F1E; }
.knowledge::before { content: ""; position: absolute; inset: -30px; background: url(../assets/bg-info.webp) center/cover; filter: blur(14px) brightness(.42) saturate(1.1); z-index: 0; }
.knowledge > :not(.topbar) { position: relative; z-index: 1; }
.kn-main { background: none; padding-top: 4.8rem !important; }
.kn-card { background: #FBF6EA; border-radius: 22px; box-shadow: 0 20px 44px rgb(0 0 0 / .45); padding: 1.2rem; gap: .6rem; }
.kn-text h2 { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; }
.kn-text p { font-size: 1rem; line-height: 1.5; }
.kn-ex { background: #fff !important; border: 1px solid #E6DCC6; }
.kn-viz { background: #fff; border-radius: 10px; padding: 5px; gap: 2px; box-shadow: 0 0 0 2px #14285A; }
.kn-viz i { border-radius: 50%; background: #F1EBDD; box-shadow: inset 0 0 0 1px #C7BBA0; }
.kn-viz i.on { background: #14285A; box-shadow: none; }
.kn-speak { background: #fff; }
.knowledge .pager { color: #fff; }
.knowledge .pager .ghost { background: rgb(255 255 255 / .1); color: #fff; border-color: rgb(255 255 255 / .4); }

/* checkout: the same scene as the task screen it comes from */
.checkout { background: #0A0F1E; }
.checkout::before { filter: blur(14px) brightness(.42) saturate(1.15); opacity: 1; }
.checkout::after { background: radial-gradient(ellipse 80% 70% at 50% 45%, rgb(0 0 0 / 0), rgb(0 0 0 / .45) 90%); }
.co-card, .co-card.win { background: #FBF6EA; box-shadow: 0 24px 60px rgb(0 0 0 / .5); }
.co-hero::before { background: radial-gradient(closest-side, rgb(14 27 61 / .18), transparent); }
.co-text .stamp { background: #14285A; color: #fff; }
.co-text .stamp .ic { color: #FFD452; }
.checkout .cta { background: #14285A; color: #fff; box-shadow: 0 6px 0 #0A1636, 0 14px 30px rgb(0 0 0 / .3); }
.checkout .cta:hover { background: #1E3A7A; }
.checkout .ghost { background: #fff; color: #14285A; border-color: #D8CDB3; }
.co-tip { background: #FFF1DB; }
.checkout .receipt { box-shadow: 0 24px 50px rgb(0 0 0 / .5); }

/* store: the recommended shelf in navy, not gold */
.lv.rec { background: #EEF2FB; box-shadow: 0 0 0 3px #14285A; }
.lv.rec .lv-steps i.on { background: #14285A; }
.lv-flag { background: #14285A; color: #fff; }
.lv:hover, .lv:focus-visible { box-shadow: 0 12px 24px rgb(14 27 61 / .18), 0 0 0 3px #14285A; }
.shelf-band.rec { box-shadow: 0 0 0 .25cqw rgb(20 40 90 / .85); }
.shelf-band.hl, .shelf-band:hover { background: rgb(255 255 255 / .16); box-shadow: 0 0 0 .3cqw #fff, 0 0 2cqw rgb(255 255 255 / .6); }
.surprise.hl { filter: drop-shadow(0 0 1.2cqw rgb(255 255 255 / .95)); }

/* entrance → mall: a camera push-in; the guard keeps his place on the plaza and exits by parallax */
.entrance .scene-box.dolly { transition: transform 1.3s cubic-bezier(.55, 0, .25, 1); transform: translate(-50%, -50%) scale(1.75); transform-origin: 50% 58%; }
.entrance .scene-box .guard-wrap { transition: transform 1.3s cubic-bezier(.55, 0, .25, 1); transform-origin: 50% 100%; }
.entrance .scene-box.dolly .guard-wrap { transform: translateX(85%) scale(1.45); }
.entrance .scene-box.dolly .guard { animation: none; }
.bridge-in { animation: fadein .45s var(--ease) both; }
/* the store names are now part of the mall image itself (tools/bake-signs.js) */
.atrium .sign { display: none; }
/* כניסה: כפתור בכחול המותג (לא צהוב), כמו בשאר האפליקציה */
.signin .cta { background: #14285A; color: #fff; box-shadow: 0 6px 0 #0A1636, 0 14px 30px rgb(0 0 0 / .25); }
.signin .cta:hover { background: #1E3A7A; }
.signin .lead { display: flex; align-items: center; gap: .4em; color: var(--ink-2); }
/* שלט הקניון בכניסה: הלוגו והסלוגן יחד, "מודפסים" על לוח השלט */
.mall-brand { position: absolute; left: 50%; top: 21.7%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 1.8cqh; }
.mall-brand .mall-sign { position: static; transform: none; height: 9.4cqh; }
.mb-sep { width: .35cqh; height: 6cqh; border-radius: 9px; background: #14285A; opacity: .45; }
.mb-tag { font-family: var(--f-display); font-weight: 600; font-size: 3.7cqh; color: #14285A; white-space: nowrap; mix-blend-mode: multiply; }
/* דף הבית ודף הסרטון: רקע מואר יותר; כהות עדינה נשארת רק מאחורי הטקסט */
.hc-veil { background:
  radial-gradient(ellipse 46% 26% at 50% 66%, rgb(6 9 24 / .38), rgb(6 9 24 / 0) 100%),
  radial-gradient(ellipse 75% 65% at 50% 45%, rgb(8 12 30 / .18), rgb(6 9 22 / .45) 75%, rgb(4 6 16 / .7) 100%),
  linear-gradient(180deg, rgb(4 6 16 / .2), transparent 30%, transparent 75%, rgb(4 6 16 / .4)); }
.hc-sub { text-shadow: 0 2px 4px rgb(0 0 0 / .55), 0 4px 22px rgb(0 0 0 / .6); }
/* דף הבית: עומק שדה — הרקע בהיר אבל רך (מטשטש קלות), והצללה בצורת זרקור רק מאחורי הטקסט */
.hc-bg { filter: blur(3.5px) saturate(.9) brightness(1.02); }
.hc-veil { background:
  radial-gradient(ellipse 52% 46% at 50% 52%, rgb(8 14 36 / .62) 0%, rgb(8 14 36 / .42) 50%, rgb(8 14 36 / .12) 100%),
  linear-gradient(180deg, rgb(4 6 16 / .25), transparent 22%, transparent 80%, rgb(4 6 16 / .3)); }

/* ===== שורה עליונה מעוצבת (דף הבית ודף הסרטון) ===== */
.hc .topbar { background: linear-gradient(180deg, rgb(9 16 40 / .88), rgb(9 16 40 / .74)); backdrop-filter: blur(10px); border-bottom: 1px solid rgb(255 255 255 / .1); box-shadow: 0 8px 30px rgb(0 0 0 / .25); padding: .5rem clamp(16px, 2.6vw, 40px); }
.tb-idbtn { display: inline-flex; align-items: center; gap: .7rem; color: #fff; }
.tb-idbtn img { height: 2.7rem; width: 2.7rem; border-radius: 12px; }
.tb-id { display: grid; line-height: 1.1; text-align: start; }
.tb-id b { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; letter-spacing: .01em; }
.tb-id small { font-family: var(--f-display); font-weight: 400; font-size: .82rem; color: rgb(255 255 255 / .68); }
.hc .tb-title { justify-content: center; }
.hc .tb-links { gap: clamp(4px, 1.2vw, 20px); margin: 0; }
.hc .tb-links button { font-weight: 500; font-size: clamp(1rem, 1.1vw, 1.15rem); color: rgb(255 255 255 / .8); background: none; padding: 0 .8em; min-height: 2.8rem; }
.hc .tb-links button .ic { color: rgb(255 255 255 / .6); }
.hc .tb-links button:hover { color: #fff; background: rgb(255 255 255 / .07); }
.hc .tb-links button.on { color: #fff; background: none; }
.hc .tb-links button.on .ic { color: #fff; }
.hc .tb-links button.on::after { height: 2px; bottom: .35rem; left: 1em; right: 1em; background: #fff; }
.tb-credit { font-family: var(--f-display); font-size: .88rem; color: rgb(255 255 255 / .66); white-space: nowrap; margin-inline-end: .6rem; padding-inline-end: .9rem; border-inline-end: 1px solid rgb(255 255 255 / .2); }
.tb-credit b { font-weight: 600; color: rgb(255 255 255 / .92); }
@media (max-aspect-ratio: 4/5) { .tb-id, .tb-credit { display: none; } }

/* ===== שורה עליונה: בלי פס — תפריט "קפסולה" מרחפת במרכז, מותג וקרדיט מרחפים בצדדים ===== */
.hc .topbar { background: linear-gradient(180deg, rgb(4 8 22 / .55), rgb(4 8 22 / 0)); border: 0; box-shadow: none; backdrop-filter: none; padding: .9rem clamp(18px, 2.8vw, 44px) 1.6rem; }
.hc .tb-links { gap: 2px; padding: 5px; border-radius: 999px; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .22); backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgb(0 0 0 / .25), inset 0 1px 0 rgb(255 255 255 / .15); }
.hc .tb-links button { min-height: 2.6rem; padding: 0 1.15em; border-radius: 999px; color: rgb(255 255 255 / .88); font-weight: 500; transition: background .2s, color .2s; }
.hc .tb-links button:hover { background: rgb(255 255 255 / .14); color: #fff; }
.hc .tb-links button.on { background: #fff; color: #14285A; box-shadow: 0 4px 14px rgb(0 0 0 / .2); }
.hc .tb-links button.on .ic { color: #14285A; }
.hc .tb-links button.on::after { display: none; }
.tb-idbtn img { box-shadow: 0 6px 16px rgb(0 0 0 / .35); }
.tb-id b { text-shadow: 0 2px 8px rgb(0 0 0 / .45); }
.tb-id small { color: rgb(255 255 255 / .8); text-shadow: 0 1px 6px rgb(0 0 0 / .5); }
.tb-credit { border: 0; padding: .45em 1em; border-radius: 999px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .18); color: rgb(255 255 255 / .78); backdrop-filter: blur(10px); }
.hc .topbar .tb-icon { background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .22); backdrop-filter: blur(10px); color: #fff; }

/* ===== כפתור "כניסה לאפליקציה": כחול עמוק של המותג, תאורה רכה, ברק חולף ===== */
.hc .cta.hc-go, .hc .cta.in-go { position: relative; overflow: hidden; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.15rem, 1.35vw, 1.4rem); min-height: 3.5rem; padding: 0 1.3em 0 1.9em; gap: .8em; color: #fff; border-radius: 999px;
  background: linear-gradient(135deg, #3E7BFF 0%, #2350D6 45%, #14285A 100%); border: 1.5px solid rgb(255 255 255 / .35);
  box-shadow: 0 12px 34px rgb(35 80 214 / .55), 0 2px 0 rgb(255 255 255 / .15) inset, 0 -3px 0 rgb(0 0 0 / .2) inset; transition: transform .2s var(--ease), box-shadow .2s; }
.hc .cta.hc-go::before, .hc .cta.in-go::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .35) 50%, transparent 65%); transform: translateX(-120%); animation: btnshine 4.5s ease-in-out infinite 2s; }
@keyframes btnshine { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.hc .cta.hc-go:hover, .hc .cta.in-go:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgb(35 80 214 / .65), 0 2px 0 rgb(255 255 255 / .15) inset, 0 -3px 0 rgb(0 0 0 / .2) inset; background: linear-gradient(135deg, #4A86FF 0%, #2A5BE6 45%, #1A3270 100%); }
.hc .cta.hc-go:active, .hc .cta.in-go:active { transform: translateY(0); }
.hc .cta.hc-go .ts-play, .hc .cta.in-go .ts-play { width: 1.9em; height: 1.9em; background: rgb(255 255 255 / .2); color: #fff; border: 1px solid rgb(255 255 255 / .4); }
.hc .cta.hc-go .ts-play .ic, .hc .cta.in-go .ts-play .ic { stroke: #fff; }
/* ביטול הכפתור הכחול */
.hc .cta.hc-go, .hc .cta.in-go { background: rgb(255 255 255 / .14); border: 1.5px solid rgb(255 255 255 / .7); color: #fff; box-shadow: 0 10px 30px rgb(0 0 0 / .3); backdrop-filter: blur(10px); }
.hc .cta.hc-go:hover, .hc .cta.in-go:hover { background: rgb(255 255 255 / .24); box-shadow: 0 14px 36px rgb(0 0 0 / .35); }
.hc .cta.hc-go::before, .hc .cta.in-go::before { display: none; }
/* זמני: השוואת אפשרויות */
.opt-demo { display: flex; gap: 40px; align-items: center; }
.opt-demo .cta { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; min-height: 3.5rem; padding: 0 1.3em 0 1.9em; border-radius: 999px; gap: .8em; }
.od-a { background: rgb(255 255 255 / .14) !important; border: 1.5px solid rgb(255 255 255 / .7) !important; color: #fff !important; backdrop-filter: blur(10px); box-shadow: 0 10px 30px rgb(0 0 0 / .3) !important; }
.od-a .ts-play { background: rgb(255 255 255 / .2) !important; color: #fff !important; }
.od-b { background: #FBF6EA !important; color: #14285A !important; border: 0 !important; box-shadow: 0 6px 0 #D6C9A8, 0 14px 30px rgb(0 0 0 / .35) !important; }
.od-b .ts-play { background: #14285A !important; color: #fff !important; }
.od-c { background: #E1261C !important; color: #fff !important; border: 0 !important; box-shadow: 0 6px 0 #A8140C, 0 14px 30px rgb(160 20 10 / .4) !important; }
.od-c .ts-play { background: rgb(255 255 255 / .22) !important; color: #fff !important; }
.od-lbl { display: block; text-align: center; color: #fff; font: 600 1.4rem var(--f-display); margin-bottom: 10px; text-shadow: 0 2px 8px #000; }

/* ===== החלטת עיצוב: הכול מהדהד את הלוגו ===== */
/* הכפתור = "מדבקה" כמו הלוגו: כחול-אותיות, מתאר לבן, עומק מתחת, ומטבע זהב במקום חץ */
.hc .cta.hc-go, .hc .cta.in-go { background: #14285A; color: #fff; border: 3px solid #fff; backdrop-filter: none;
  box-shadow: 0 5px 0 #0B1636, 0 6px 0 rgb(255 255 255 / .9), 0 18px 36px rgb(0 0 0 / .45); padding: 0 1em 0 1.8em; min-height: 3.6rem; }
.hc .cta.hc-go:hover, .hc .cta.in-go:hover { background: #1B3470; transform: translateY(-2px); box-shadow: 0 7px 0 #0B1636, 0 8px 0 rgb(255 255 255 / .9), 0 22px 40px rgb(0 0 0 / .5); }
.hc .cta.hc-go:active, .hc .cta.in-go:active { transform: translateY(3px); box-shadow: 0 2px 0 #0B1636, 0 3px 0 rgb(255 255 255 / .9), 0 10px 20px rgb(0 0 0 / .4); }
.hc .cta.hc-go::before, .hc .cta.in-go::before { display: none; }
.hc .cta.hc-go .ts-play, .hc .cta.in-go .ts-play { width: 2.1em; height: 2.1em; border: 0; color: #14285A;
  background: radial-gradient(circle at 34% 28%, #FFF8D2 0 12%, #FFD84A 40%, #F2A900 72%, #B97800 100%); box-shadow: inset 0 0 0 .14em #FFE680, 0 2px 4px rgb(0 0 0 / .3); }
.hc .cta.hc-go .ts-play .ic, .hc .cta.in-go .ts-play .ic { stroke: #14285A; stroke-width: 3; }

/* השורה העליונה = איפוק: טקסט לבן נקי, בלי קופסאות; מטבע זהב קטן מתחת לעמוד הנוכחי */
.hc .topbar { background: linear-gradient(180deg, rgb(4 8 22 / .5), rgb(4 8 22 / 0)); padding: 1rem clamp(20px, 3vw, 48px) 1.8rem; }
.hc .tb-links { background: none; border: 0; box-shadow: none; backdrop-filter: none; padding: 0; gap: clamp(6px, 1.6vw, 30px); }
.hc .tb-links button { position: relative; background: none !important; box-shadow: none !important; color: rgb(255 255 255 / .82); font-weight: 500; font-size: clamp(1rem, 1.1vw, 1.15rem); padding: 0 .4em; min-height: 2.8rem; text-shadow: 0 1px 8px rgb(0 0 0 / .5); }
.hc .tb-links button .ic { display: none; }
.hc .tb-links button:hover { color: #fff; }
.hc .tb-links button.on { color: #fff; font-weight: 600; }
.hc .tb-links button.on::after { display: block; content: ""; position: absolute; left: 50%; right: auto; bottom: -.1rem; width: .55rem; height: .55rem; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #FFF8D2 0 15%, #FFD84A 45%, #E9A200 100%); box-shadow: 0 0 8px rgb(255 210 80 / .7); }
.tb-credit { background: none; border: 0; backdrop-filter: none; padding: 0; margin-inline-end: 1rem; color: rgb(255 255 255 / .7); text-shadow: 0 1px 8px rgb(0 0 0 / .5); }
.hc .topbar .tb-icon { background: none; border: 1px solid rgb(255 255 255 / .35); backdrop-filter: none; box-shadow: none; }
@media (max-aspect-ratio: 4/5) { .hc .tb-links button .ic { display: block; } .hc .tb-links button span { display: none; } }

/* ===== שורה עליונה בולטת: פס שמנת בהיר על פני הגיבור הכהה, טקסט בכחול הלוגו ===== */
.hc .topbar { background: #FBF6EA; border-bottom: 1px solid #E6DCC6; box-shadow: 0 8px 28px rgb(0 0 0 / .3); padding: .55rem clamp(20px, 3vw, 48px); }
.hc .tb-links button { color: rgb(20 40 90 / .78); text-shadow: none; font-weight: 500; }
.hc .tb-links button:hover { color: #14285A; }
.hc .tb-links button.on { color: #14285A; font-weight: 700; }
.hc .tb-links button.on::after { box-shadow: 0 1px 3px rgb(150 100 0 / .5); }
.tb-idbtn .tb-id b { color: #14285A; text-shadow: none; }
.tb-idbtn .tb-id small { color: rgb(20 40 90 / .65); text-shadow: none; }
.tb-idbtn img { box-shadow: 0 3px 10px rgb(20 40 90 / .25); }
.tb-credit { color: rgb(20 40 90 / .65); text-shadow: none; padding-inline-end: 1rem; border-inline-end: 1px solid #E0D5BC; }
.tb-credit b { color: #14285A; }
.hc .topbar .tb-icon { color: #14285A; border: 1px solid #D9CEB4; background: #fff; }
.hc-main, .in-main { padding-top: calc(4.4rem + 3vh); }

/* ===== דף הבית: במה בהירה וחמה (לא אפורה) ===== */
.hc-bg { filter: blur(2.5px) saturate(1.3) brightness(1.08) contrast(1.02); }
.hc-veil { background:
  radial-gradient(ellipse 40% 34% at 50% 50%, rgb(20 24 60 / .38), rgb(20 24 60 / .16) 60%, rgb(20 24 60 / 0) 100%),
  linear-gradient(180deg, rgb(255 236 200 / .06), rgb(255 236 200 / 0)); }
.hc-logo img { filter: drop-shadow(0 1.2vh 2vh rgb(10 20 60 / .55)); }
.hc-sub { color: #fff; text-shadow: 0 2px 0 rgb(20 40 90 / .6), 0 3px 18px rgb(10 20 60 / .8); }
.hc-sub::before, .hc-sub::after { opacity: .9; }

/* ===== שורה עליונה לבנה ונקייה עם סרט המותג מתחת ===== */
.hc .topbar { background: #fff; border-bottom: 0; box-shadow: 0 6px 24px rgb(10 20 60 / .28); padding: .6rem clamp(20px, 3vw, 48px); }
.hc .topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 5px; background: linear-gradient(90deg, #14285A 0 33.3%, #E1261C 33.3% 66.6%, #F4B400 66.6% 100%); }
.hc .tb-links { gap: 6px; }
.hc .tb-links button { padding: 0 1.1em; min-height: 2.7rem; border-radius: 999px; color: #2B3A66; font-weight: 600; }
.hc .tb-links button .ic { display: block; color: #6B7AA6; }
.hc .tb-links button:hover { background: #EEF2FB !important; }
.hc .tb-links button.on { background: #14285A !important; color: #fff; box-shadow: 0 4px 12px rgb(20 40 90 / .3) !important; }
.hc .tb-links button.on .ic { color: #fff; }
.hc .tb-links button.on::after { display: none; }
.tb-credit { border-inline-end-color: #E3E8F3; }

/* ===== הכפתור באדום של הלוגו, מתאר "מדבקה" לבן ומטבע זהב ===== */
.hc .cta.hc-go, .hc .cta.in-go { background: linear-gradient(180deg, #F2493A 0%, #E1261C 55%, #C81A12 100%); border: 3px solid #fff;
  box-shadow: 0 5px 0 #8E1009, 0 6px 0 #fff, 0 18px 36px rgb(140 20 10 / .45); }
.hc .cta.hc-go:hover, .hc .cta.in-go:hover { background: linear-gradient(180deg, #F65A4B 0%, #E8342A 55%, #D0231A 100%); box-shadow: 0 7px 0 #8E1009, 0 8px 0 #fff, 0 22px 40px rgb(140 20 10 / .5); }
.hc .cta.hc-go:active, .hc .cta.in-go:active { box-shadow: 0 2px 0 #8E1009, 0 3px 0 #fff, 0 10px 20px rgb(140 20 10 / .4); }

/* ===== דף הבית: הקניון חד וחי, והדמויות שלך מנפנפות משני הצדדים ===== */
.hc-bg { filter: saturate(1.12) brightness(1.03); }
.hc-veil { background:
  radial-gradient(ellipse 34% 30% at 50% 50%, rgb(14 20 50 / .5), rgb(14 20 50 / .22) 60%, rgb(14 20 50 / 0) 100%),
  linear-gradient(180deg, rgb(0 0 0 / .08), rgb(0 0 0 / 0) 30%, rgb(0 0 0 / 0) 70%, rgb(0 0 0 / .18)); }
.hc-kids { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hc-kid { position: absolute; bottom: 0; height: min(64vh, 620px); aspect-ratio: 9 / 16; }
.hc-kid .keyed, .hc-kid .keyed canvas, .hc-still { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.hc-kid .keyed canvas { filter: drop-shadow(0 12px 18px rgb(0 0 0 / .35)); }
.hc-still { opacity: 0; transition: opacity .25s; filter: drop-shadow(0 12px 18px rgb(0 0 0 / .35)); }
.hc-still.on { opacity: 1; }
.hc-kid .keyed.off { opacity: 0; transition: opacity .25s; }
.kid-girl { right: max(2vw, calc(50% - 46vw)); }
.kid-boy { left: max(2vw, calc(50% - 46vw)); }
.hc-n { display: none; }
@media (max-aspect-ratio: 4/5) { .hc-kids { display: none; } }
.hc-kid { aspect-ratio: 1 / 1; height: min(72vh, 700px); bottom: -1vh; }
.kid-girl { right: -3vw; }
.kid-boy { left: -3vw; }

/* ===== כלל שתי השכבות: בדף הסרטון הרקע רגוע (מטושטש ומעומעם) — הסרטון לבדו בולט ===== */
.intro .hc-bg { filter: blur(14px) saturate(.9) brightness(.62); transform: scale(1.06); }
.intro .hc-veil { background: radial-gradient(ellipse 70% 65% at 50% 52%, rgb(6 10 26 / .25), rgb(6 10 26 / .6) 100%); }
.intro .hc-kids { display: none; }
/* דף הבית: עומק שדה עדין, כדי שהקניון לא יתחרה בלוגו ובכפתור */
.home.hc:not(.intro) .hc-bg { filter: blur(3px) saturate(1.05) brightness(1.02); }
.home.hc:not(.intro) .hc-veil { background:
  radial-gradient(ellipse 38% 32% at 50% 50%, rgb(14 20 50 / .5), rgb(14 20 50 / .24) 60%, rgb(14 20 50 / 0) 100%),
  linear-gradient(180deg, rgb(0 0 0 / .06), rgb(0 0 0 / 0) 30%, rgb(0 0 0 / 0) 70%, rgb(0 0 0 / .16)); }

/* ===== דף הבית: השם והסלוגן מעט גבוה יותר; כניסה בלחיצה בכל מקום ===== */
.home.hc:not(.intro) { cursor: pointer; }
.home.hc:not(.intro) .hc-main { padding-bottom: 16vh; }
.hc-start { position: absolute; z-index: 3; left: 50%; bottom: 7vh; transform: translateX(-50%); background: none; border: 0; padding: .6em 1.2em;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(1.1rem, 1.5vw, 1.5rem); color: #fff; letter-spacing: .02em;
  text-shadow: 0 2px 10px rgb(0 0 0 / .65), 0 0 24px rgb(0 0 0 / .4); animation: breathe-txt 2.6s ease-in-out infinite 1.6s; cursor: pointer; }
.hc-start::after { content: ""; display: block; width: 2.2em; height: 2px; margin: .5em auto 0; border-radius: 9px; background: rgb(255 255 255 / .8); }
.hc-start:focus-visible { outline: 2px solid #fff; outline-offset: 6px; border-radius: 999px; }
@keyframes breathe-txt { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.no-motion .hc-start { animation: none; }
.home.hc:not(.intro) .hc-main { padding-bottom: 0; transform: translateY(-9vh); }
.home.hc:not(.intro) .hc-main { transform: translateY(-19vh); }
/* פס ההפרדה מתחת לשורה העליונה: בלי אדום — קו כחול-מותג דק */
.hc .topbar::after { height: 3px; bottom: -3px; background: #14285A; }

/* ===== שורה עליונה — עיצוב טיפוגרפי נקי (Rubik), בלי אייקונים, קו דק מתחת לעמוד הנוכחי ===== */
.hc .topbar { background: #fff; padding: 0 clamp(20px, 3vw, 52px); height: 72px; gap: 1.4rem; box-shadow: 0 4px 22px rgb(10 20 60 / .22); }
.hc .topbar::after { height: 2px; bottom: -2px; background: #14285A; }
.tb-brand { display: flex; align-items: center; padding: 0; }
.tb-brand img { height: 42px; width: auto; filter: none; }
.tb-grade { font-family: "Rubik", sans-serif; font-weight: 500; font-size: .82rem; color: #14285A; background: #EEF2FB; padding: .3em .8em; border-radius: 999px; white-space: nowrap; }
.hc .tb-title { justify-content: center; }
.hc .tb-links { gap: clamp(14px, 2.4vw, 44px); }
.hc .tb-links button { font-family: "Rubik", sans-serif; font-weight: 500; font-size: clamp(1rem, 1.05vw, 1.1rem); color: #4A5677; padding: 0 .1em; min-height: 72px; border-radius: 0; background: none !important; box-shadow: none !important; letter-spacing: 0; }
.hc .tb-links button .ic { display: none; }
.hc .tb-links button:hover { color: #14285A; }
.hc .tb-links button.on { color: #14285A; font-weight: 600; background: none !important; }
.hc .tb-links button.on::after { display: block; content: ""; position: absolute; left: 0; right: 0; bottom: 0; width: auto; height: 3px; transform: none; border-radius: 3px 3px 0 0; background: #14285A; box-shadow: none; }
.tb-credit { font-family: "Rubik", sans-serif; font-weight: 400; font-size: .85rem; color: #7A84A0; border: 0; padding: 0; margin-inline-end: 1.2rem; }
.tb-credit b { font-weight: 500; color: #14285A; }
.hc .topbar .tb-icon { width: 2.5rem; height: 2.5rem; background: none; border: 0; color: #4A5677; box-shadow: none; }
.hc .topbar .tb-icon:hover { background: #EEF2FB; color: #14285A; }
.hc-main, .in-main { padding-top: calc(72px + 3vh); }
@media (max-aspect-ratio: 4/5) {
  .tb-grade, .tb-credit { display: none; }
  .tb-brand img { height: 32px; }
  .hc .tb-links { gap: 12px; }
  .hc .tb-links button { font-size: .9rem; }
  .hc .tb-links button .ic { display: none; }
  .hc .tb-links button span { display: inline; }
}

/* מפת הקניון: התגיות יושבות על חלון הראווה, לא על השלט */
.atrium .shop .badge { top: auto; bottom: 7%; }
.atrium .shop .badge.soon { background: rgb(20 40 90 / .78); color: #fff; font-size: .85cqw; padding: .3cqh .7cqw; }

/* ===== חנות: הרמות על המדפים עצמם — תגיות מחיר תלויות, בלי פס למטה ===== */
.lv-dock { display: none !important; }
.shelf-band { overflow: visible; }
.shelf-tag { position: absolute; right: -1.2cqw; bottom: -1.6cqh; z-index: 3; display: grid; justify-items: center; gap: .15cqh; min-width: 8.5cqw;
  padding: .9cqh 1cqw 1cqh; background: #FFFBF2; color: #14285A; border-radius: .7cqw; transform: rotate(-3deg); transform-origin: 50% -2cqh;
  box-shadow: 0 .6cqh 1.4cqh rgb(60 40 10 / .35), inset 0 0 0 .12cqw #E6D7B4; transition: transform .25s var(--ease); pointer-events: none; }
.shelf-tag::before { content: ""; position: absolute; top: .55cqh; left: 50%; width: .7cqw; height: .7cqw; transform: translateX(-50%); border-radius: 50%; background: #CDBB94; box-shadow: inset 0 1px 2px rgb(0 0 0 / .3); }
.shelf-tag::after { content: ""; position: absolute; top: -2.2cqh; left: 50%; width: 1px; height: 2.6cqh; background: #9C8A62; }
.shelf-tag b { margin-top: .9cqh; font-family: var(--f-display); font-weight: 600; font-size: 1.35cqw; line-height: 1.1; }
.shelf-tag small { font-family: "Assistant", sans-serif; font-weight: 700; font-size: .95cqw; color: #4A5677; white-space: nowrap; }
.shelf-band:hover .shelf-tag, .shelf-band:focus-visible .shelf-tag { transform: rotate(0) scale(1.06); }
.shelf-band.rec .shelf-tag { background: #14285A; color: #fff; box-shadow: 0 .6cqh 1.4cqh rgb(10 20 60 / .45); }
.shelf-band.rec .shelf-tag small { color: rgb(255 255 255 / .8); }
.st-rec { position: absolute; top: -1.6cqh; left: 50%; transform: translateX(-50%); font-style: normal; white-space: nowrap; background: #FFD452; color: #14285A; font: 700 .8cqw "Assistant", sans-serif; padding: .2cqh .6cqw; border-radius: 99px; }
.st-done { position: absolute; top: -.8cqh; left: -.8cqw; width: 1.6cqw; height: 1.6cqw; border-radius: 50%; background: #1FB36B; color: #fff; display: grid; place-items: center; font-style: normal; }
.st-done .ic { width: 70%; height: 70%; stroke-width: 3; }
.surprise .st-gift { right: 50%; transform: translateX(50%) rotate(3deg); bottom: -5cqh; min-width: 7cqw; }
.surprise .st-gift::after { top: -1.8cqh; height: 2cqh; }
.shelf-band.rec { animation: none; box-shadow: none; }
@media (max-aspect-ratio: 4/5) { .shelf-tag { display: none; } }
/* חנות במסך רחב: רואים תמיד את כל הרוחב והחלק העליון; נחתכת רק הרצפה */
@media (min-aspect-ratio: 1/1) {
  .store .scene { background: #E9E1D2; }
  .store .scene::before { content: ""; position: absolute; inset: -30px; background: var(--store-floor, #E9E1D2); }
  .store .scene-box { width: 100cqw; height: calc(100cqw / var(--ar)); top: 0; transform: translate(-50%, 0); }
  .store .scene-box.zoom-in { transform: translate(-50%, 0) scale(3.3); }
}
.surprise .st-gift { bottom: auto; top: 105%; }

/* =====================================================================
   מסך משימה v4 — בשפה של משחק השוק: נייר שמנת חם ובהיר, כרטיסים לבנים,
   צללים חמים רכים, תשובות לבנות עם עומק בצבע חול
   ===================================================================== */
.round { background: linear-gradient(135deg, #F7EFDD, #EFE2C6); }
.round::before, .round::after { display: none; }
.rd-q, .rd-notecol .notebook, .rd-hint, .rd-fb { box-shadow: 0 8px 24px rgb(80 60 20 / .12); }
.rd-q { background: #fff; }
.rd-cart li { background: rgb(255 255 255 / .6); border-color: #CDBB94; }
.rd-cart li.now { background: #fff; border-color: #14285A; box-shadow: 0 0 0 5px rgb(20 40 90 / .12); }
.rd-cart li.ok, .rd-cart li.miss { background: #fff; border-color: #fff; box-shadow: 0 4px 12px rgb(80 60 20 / .15); }
.rd-coins { background: #fff; box-shadow: 0 4px 12px rgb(80 60 20 / .12); }
.rd-stage { background: none; }
.rd-ask { color: #14285A; }
.opt, .opt.o1, .opt.o2, .opt.o3 { --c: #fff; --d: #D8C8A4; color: #14285A; box-shadow: 0 6px 0 var(--d), 0 10px 20px rgb(0 0 0 / .1); }
.opt:hover { box-shadow: 0 8px 0 var(--d), 0 0 0 3px #14285A, 0 14px 24px rgb(0 0 0 / .12); }
.mode-keypad .key { background: #fff; box-shadow: 0 5px 0 #D8C8A4; }
.rd-out { background: #fff; border-color: #fff; }
.round .ghost, .rd-tool { background: #fff; color: #14285A; border: 1.5px solid #D8C8A4; }
.rd-tool:hover { background: #FFFBF2; }
.round .cta { background: #14285A; color: #fff; box-shadow: 0 5px 0 #0A1636, 0 10px 22px rgb(20 40 90 / .25); }
.round .cta:hover { background: #1E3A7A; }
.cbx { box-shadow: 0 0 0 3px #14285A, 0 14px 34px rgb(80 60 20 / .2); }
.cbx-tip { grid-column: 1 / -1; margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(.85rem, 2.6cqh, 1rem); color: #6B5A35; }
.rd-hint { background: #FFFBF2; }
.dl { box-shadow: 0 14px 30px rgb(80 60 20 / .25); }

/* קופה ומרכז הידע: אותו נייר שמנת חם כמו מסך המשימה (עקביות, כמו במשחק השוק) */
.checkout, .knowledge { background: linear-gradient(135deg, #F7EFDD, #EFE2C6); }
.checkout::before, .checkout::after, .knowledge::before { display: none; }
.co-card, .co-card.win { background: #fff; box-shadow: 0 8px 24px rgb(80 60 20 / .14); }
.checkout .receipt { box-shadow: 0 10px 28px rgb(80 60 20 / .18); }
.kn-card { background: #fff; box-shadow: 0 8px 24px rgb(80 60 20 / .12); }
.knowledge .pager { color: #14285A; }
.knowledge .pager .ghost { background: #fff; color: #14285A; border-color: #D8C8A4; }
/* דף הסרטון: שאלת פתיחה גדולה וכותרת משנה */
.in-head { display: grid; justify-items: center; gap: .2rem; }
.in-title { font-size: calc(var(--B) * 2.618); line-height: 1.05; }
.in-sub { font-family: var(--f-display); font-weight: 500; font-size: calc(var(--B) * 1.272); color: rgb(255 255 255 / .85); text-shadow: 0 2px 10px rgb(0 0 0 / .5); }

/* ===== מרכז הידע: לשוניות + סרטוני הסבר ===== */
.kn-main { grid-template-rows: auto minmax(0, 1fr) auto; }
.kn-tabs { justify-self: center; display: flex; gap: 6px; padding: 5px; background: #fff; border-radius: 999px; box-shadow: 0 6px 18px rgb(80 60 20 / .12); }
.kn-tabs button { display: inline-flex; align-items: center; gap: .45em; padding: .55em 1.4em; border-radius: 999px; font-family: "Rubik", sans-serif; font-weight: 500; font-size: 1.05rem; color: #4A5677; }
.kn-tabs button .ic { width: 1.1em; height: 1.1em; }
.kn-tabs button.on { background: #14285A; color: #fff; }
.kv-grid { min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.kv-card { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; background: #fff; border-radius: 20px; overflow: hidden; text-align: start; box-shadow: 0 8px 24px rgb(80 60 20 / .12); transition: transform .2s var(--ease), box-shadow .2s; }
.kv-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgb(80 60 20 / .2); }
.kv-card.feat { grid-column: span 2; grid-row: span 2; }
.kv-thumb { position: relative; display: grid; place-items: center; background: #14285A center / cover no-repeat; min-height: 0; }
.kv-play { width: 3.4rem; height: 3.4rem; border-radius: 50%; display: grid; place-items: center; background: rgb(0 0 0 / .5); border: 2px solid #fff; transition: transform .2s; }
.kv-play .ic { width: 1.3rem; height: 1.3rem; fill: #fff; stroke: none; margin-left: 3px; }
.kv-card:hover .kv-play { transform: scale(1.1); }
.kv-card.feat .kv-play { width: 5rem; height: 5rem; }
.kv-card.feat .kv-play .ic { width: 2rem; height: 2rem; }
.kv-dur { position: absolute; bottom: 10px; left: 10px; background: rgb(0 0 0 / .7); color: #fff; font: 500 .85rem "Rubik", sans-serif; padding: .15em .5em; border-radius: 6px; direction: ltr; }
.kv-meta { display: grid; gap: 2px; padding: .75rem 1rem .9rem; }
.kv-meta b { font-family: "Rubik", sans-serif; font-weight: 600; font-size: 1.05rem; color: #14285A; line-height: 1.25; }
.kv-meta small { font-family: "Rubik", sans-serif; font-size: .85rem; color: #7A84A0; }
.kv-card.feat .kv-meta b { font-size: 1.5rem; }
.vid-modal { position: fixed; inset: 0; z-index: 90; background: rgb(4 8 18 / .88); display: grid; place-items: center; padding: 3vh 3vw; animation: fadein .3s var(--ease); }
.vm-box { width: min(100%, calc(86vh * 16 / 9)); display: grid; gap: 10px; }
.vm-frame { aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px rgb(0 0 0 / .6); }
.vm-frame video, .vm-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vm-bar { display: flex; align-items: center; justify-content: space-between; color: rgb(255 255 255 / .85); font-family: "Rubik", sans-serif; }
.vm-x { display: inline-flex; align-items: center; gap: .4em; color: #fff; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .3); padding: .5em 1.1em; border-radius: 999px; font-family: "Rubik", sans-serif; }
@media (max-aspect-ratio: 4/5) { .kv-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; overflow: auto; } .kv-card.feat { grid-column: span 2; grid-row: auto; } .kv-thumb { aspect-ratio: 16 / 9; } }

/* רקע מאחורי סרטון שמתנגן: נייר שמנת חם ומטושטש במקום שחור */
.vid-modal { background: rgb(239 226 198 / .86); backdrop-filter: blur(10px); }
.vm-frame { border: 8px solid #fff; border-radius: 20px; box-shadow: 0 24px 60px rgb(80 60 20 / .35); }
.vm-bar { color: #14285A; }
.vm-bar b { font-weight: 600; }
.vm-x { color: #fff; background: #14285A; border: 0; }
.tf-stage { background: rgb(239 226 198 / .9); backdrop-filter: blur(10px); }
.tf-stage.out { background: rgb(239 226 198 / 0); }
.tf-hold { border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgb(80 60 20 / .35); }
.tf-stage .tf-x { background: #14285A; color: #fff; }

/* דף הסרטון: נייר שמנת חם (כמו כל דפי התוכן), כותרת בכחול, הסרטון במסגרת לבנה */
.intro { background: linear-gradient(135deg, #F7EFDD, #EFE2C6); }
.intro .hc-bg, .intro .hc-veil { display: none; }
.intro .in-title { color: #14285A; text-shadow: none; }
.intro .in-sub { color: #6B5A35; text-shadow: none; }
.intro .in-frame { border: 8px solid #fff; box-shadow: 0 18px 44px rgb(80 60 20 / .25); }
.intro .in-skip { color: #14285A; border-color: #CDBB94; background: #fff; }
.intro .in-skip:hover { background: #FFFBF2; color: #14285A; }

/* ===== כניסה לקניון בצילום רציף: הסרטון בתוך הסצנה, השומר בפרלקסה, מעבר רך למפה ===== */
.entrance .scene-box.dolly { transform: translate(-50%, -50%); }
.bridge-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.entrance .scene-box .guard-wrap, .entrance .scene-box .mall-brand { z-index: 2; }
.entrance .scene-box .guard-wrap { transition: transform 3.2s cubic-bezier(.45, 0, .55, 1); transform: none; }
.entrance .scene-box.walking .guard-wrap { transform: translateX(150%) scale(1.9); }
.entrance .scene-box .mall-brand { transition: opacity .5s ease; }
.entrance .scene-box.walking .mall-brand { opacity: 0; }
.bridge-snap { position: fixed; inset: 0; z-index: 70; background: #000; pointer-events: none; transition: opacity .85s ease; }
.bridge-snap canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.bridge-snap.out { opacity: 0; }

/* ===== שורה עליונה = חזית חנות: פס שמנת חם, ומתחתיו גגון מפוספס עם קשתות (כמו במשחק השוק) ===== */
.hc .topbar { background: #FFF8EA; height: 76px; box-shadow: none; padding: 0 clamp(20px, 3vw, 52px); }
.hc .topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -24px; height: 24px; z-index: -1;
  background: repeating-linear-gradient(90deg, #14285A 0 44px, #FFF8EA 44px 88px);
  -webkit-mask: radial-gradient(circle at 22px 0, #000 21.5px, transparent 22.5px) 0 0 / 44px 24px repeat-x;
          mask: radial-gradient(circle at 22px 0, #000 21.5px, transparent 22.5px) 0 0 / 44px 24px repeat-x;
  filter: drop-shadow(0 4px 4px rgb(0 0 0 / .18)); }
.tb-brand img { height: 52px; }
.tb-grade { background: #14285A; color: #fff; font-weight: 600; font-size: .85rem; padding: .35em .9em; }
.hc .tb-links { gap: clamp(8px, 1.4vw, 26px); }
.hc .tb-links button { font-family: "Rubik", sans-serif; font-weight: 600; font-size: clamp(1.05rem, 1.15vw, 1.25rem); color: #14285A; min-height: 2.8rem; padding: 0 1.1em; border-radius: 999px; }
.hc .tb-links button:hover { background: rgb(20 40 90 / .08) !important; }
.hc .tb-links button.on { background: #14285A !important; color: #fff; box-shadow: 0 4px 12px rgb(20 40 90 / .3) !important; }
.hc .tb-links button.on::after { display: none; }
.tb-credit { color: #6B5A35; }
.tb-credit b { color: #14285A; }
.hc .topbar .tb-icon { color: #14285A; }
.hc .topbar .tb-icon:hover { background: rgb(20 40 90 / .08); }
.hc-main, .in-main { padding-top: calc(100px + 2vh); }
.hc .topbar::after { height: 36px; bottom: -36px;
  background: linear-gradient(180deg, rgb(0 0 0 / .14), rgb(255 255 255 / .06) 30%, rgb(0 0 0 / .1)), repeating-linear-gradient(90deg, #14285A 0 44px, #FFF8EA 44px 88px);
  -webkit-mask: linear-gradient(#000, #000) 0 0 / 100% 14px no-repeat, radial-gradient(circle at 22px 14px, #000 21.5px, transparent 22.5px) 0 0 / 44px 36px repeat-x;
          mask: linear-gradient(#000, #000) 0 0 / 100% 14px no-repeat, radial-gradient(circle at 22px 14px, #000 21.5px, transparent 22.5px) 0 0 / 44px 36px repeat-x; }
.hc-main, .in-main { padding-top: calc(112px + 2vh); }

/* ===== שורה עליונה — עיצוב פנימי: בלי גגון; תפריט כ"מתג מקטעים", מותג עם קו מפריד, קרדיט כחתימה ===== */
.hc .topbar { background: #FFFCF5; height: 74px; border-bottom: 1px solid #EADFC8; box-shadow: 0 6px 20px rgb(80 60 20 / .1); }
.hc .topbar::after { display: none; }
.tb-brand img { height: 48px; }
.tb-grade { background: none; color: #6B5A35; font-family: "Rubik", sans-serif; font-weight: 500; font-size: .92rem; padding: .2em 0 .2em 0; padding-inline-start: 16px; border-inline-start: 1px solid #E3D6BC; border-radius: 0; }
.hc .tb-links { gap: 2px; padding: 5px; background: #F3EBDB; border-radius: 999px; box-shadow: inset 0 1px 2px rgb(80 60 20 / .12); }
.hc .tb-links button { font-family: "Rubik", sans-serif; font-weight: 500; font-size: clamp(1rem, 1.05vw, 1.12rem); color: #5A5140; min-height: 2.55rem; padding: 0 1.25em; border-radius: 999px; transition: background .2s, color .2s, box-shadow .2s; }
.hc .tb-links button:hover { background: rgb(255 255 255 / .55) !important; color: #14285A; }
.hc .tb-links button.on { background: #fff !important; color: #14285A; font-weight: 600; box-shadow: 0 2px 8px rgb(80 60 20 / .18), 0 0 0 1px rgb(80 60 20 / .06) !important; }
.tb-credit { display: grid; line-height: 1.15; text-align: start; margin-inline-end: 1rem; padding-inline-end: 1rem; border-inline-end: 1px solid #E3D6BC; }
.tb-credit small { font-family: "Rubik", sans-serif; font-weight: 400; font-size: .72rem; color: #8C7E5E; }
.tb-credit b { font-family: "Rubik", sans-serif; font-weight: 600; font-size: .95rem; color: #14285A; }
.hc .topbar .tb-icon { width: 2.5rem; height: 2.5rem; color: #5A5140; background: none; border: 0; }
.hc .topbar .tb-icon:hover { background: #F3EBDB; color: #14285A; }
.hc-main, .in-main { padding-top: calc(74px + 3vh); }

/* =====================================================================
   יוקרה: זכוכית כחולה-עמוקה דקה, טיפוגרפיה לבנה מעודנת, נגיעת זהב אחת
   ===================================================================== */
.hc .topbar { height: 68px; background: rgb(12 22 52 / .62); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgb(255 255 255 / .12); box-shadow: 0 10px 30px rgb(0 0 0 / .18); }
.hc .topbar::after { display: none; }
.tb-brand img { height: 44px; filter: drop-shadow(0 2px 8px rgb(0 0 0 / .3)); }
.tb-grade { color: rgb(255 255 255 / .7); border-inline-start-color: rgb(255 255 255 / .2); font-weight: 400; letter-spacing: .02em; }
.hc .tb-links { background: none; box-shadow: none; padding: 0; gap: clamp(18px, 2.6vw, 46px); }
.hc .tb-links button { position: relative; font-family: "Rubik", sans-serif; font-weight: 400; font-size: clamp(.98rem, 1.02vw, 1.08rem); letter-spacing: .03em; color: rgb(255 255 255 / .78); padding: 0; min-height: 68px; border-radius: 0; background: none !important; box-shadow: none !important; }
.hc .tb-links button:hover { color: #fff; background: none !important; }
.hc .tb-links button.on { color: #fff; font-weight: 500; background: none !important; box-shadow: none !important; }
.hc .tb-links button.on::after { display: block; content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 2px; width: auto; transform: none; border-radius: 2px; background: linear-gradient(90deg, #F2C14E, #FFE08A, #F2C14E); box-shadow: 0 0 10px rgb(242 193 78 / .55); }
.tb-credit { border-inline-end-color: rgb(255 255 255 / .2); }
.tb-credit small { color: rgb(255 255 255 / .55); letter-spacing: .02em; }
.tb-credit b { color: #fff; font-weight: 500; }
.hc .topbar .tb-icon { color: rgb(255 255 255 / .8); }
.hc .topbar .tb-icon:hover { background: rgb(255 255 255 / .1); color: #fff; }
.hc-main, .in-main { padding-top: calc(68px + 3vh); }

/* דף הסרטון: כחול-עמוק של המותג עם הילת אור מאחורי הסרטון, כמו אולם קולנוע */
.intro { background: radial-gradient(ellipse 70% 60% at 50% 55%, #23408A 0%, #14285A 45%, #0B1530 100%); }
.intro .in-title { color: #fff; font-weight: 600; letter-spacing: .01em; text-shadow: 0 4px 24px rgb(0 0 0 / .35); }
.intro .in-sub { color: rgb(255 255 255 / .7); font-weight: 400; letter-spacing: .04em; }
.intro .in-frame { border: 1px solid rgb(255 255 255 / .22); box-shadow: 0 0 0 6px rgb(255 255 255 / .04), 0 30px 80px rgb(0 0 0 / .45), 0 0 120px rgb(80 130 255 / .25); }
.intro .in-skip { background: rgb(255 255 255 / .08); color: rgb(255 255 255 / .9); border: 1px solid rgb(255 255 255 / .28); }
.intro .in-skip:hover { background: rgb(255 255 255 / .16); color: #fff; }
.intro .in-ovbtn { background: rgb(255 255 255 / .16); backdrop-filter: blur(8px); border: 1.5px solid rgb(255 255 255 / .85); }

/* דף הסרטון: הקניון מטושטש ובהיר עם אובך לבן עדין — נעים לעין, לא כהה ולא כחול */
.intro { background: #EEF1F6; }
.intro .hc-bg { display: block; filter: blur(16px) brightness(1.06) saturate(1.05); transform: scale(1.08); }
.intro .hc-veil { display: block; background: radial-gradient(ellipse 70% 65% at 50% 55%, rgb(255 255 255 / .5), rgb(255 255 255 / .3) 70%, rgb(255 255 255 / .2)); }
.intro .in-title { color: #14285A; text-shadow: 0 2px 16px rgb(255 255 255 / .8); }
.intro .in-sub { color: #3A4A70; text-shadow: 0 1px 10px rgb(255 255 255 / .8); }
.intro .in-frame { border: 6px solid #fff; box-shadow: 0 22px 50px rgb(20 40 90 / .22); }
.intro .in-skip { background: #fff; color: #14285A; border: 1px solid rgb(20 40 90 / .15); box-shadow: 0 4px 14px rgb(20 40 90 / .12); }
.intro .in-skip:hover { background: #F5F7FC; color: #14285A; }

/* תוויות 10%–100% ליד הקופסה: אותה רשת, אותו ריפוד ואותו רווח כמו המקומות — כל תווית מול השורה שלה */
.cbx-tray { position: relative; }
.cbx-rows { position: absolute; top: 0; bottom: 0; left: auto; right: 100%; width: 3.6em; margin-right: .5em; padding: 3.2% 0; box-sizing: border-box;
  display: grid; grid-template-rows: repeat(5, 1fr) 2.5% repeat(5, 1fr); row-gap: 1.1%; grid-auto-flow: row; }
[dir="rtl"] .cbx-rows, .cbx-rows { right: auto; left: calc(-3.6em - .5em); }
.cbx-rows li { display: flex; align-items: center; justify-content: flex-end; }
.cbx-rows li:nth-child(1) { grid-row: 1; } .cbx-rows li:nth-child(2) { grid-row: 2; } .cbx-rows li:nth-child(3) { grid-row: 3; }
.cbx-rows li:nth-child(4) { grid-row: 4; } .cbx-rows li:nth-child(5) { grid-row: 5; } .cbx-rows li:nth-child(6) { grid-row: 7; }
.cbx-rows li:nth-child(7) { grid-row: 8; } .cbx-rows li:nth-child(8) { grid-row: 9; } .cbx-rows li:nth-child(9) { grid-row: 10; }
.cbx-rows li:nth-child(10) { grid-row: 11; }
.cbx-rows { left: calc(-3.6em - 1.8em); }

/* ===== עגלת הקניות במסך המשימה ===== */
.rd-basket-ic { width: 2.6rem; height: 2.6rem; flex: none; border-radius: 50%; display: grid; place-items: center; background: #14285A; color: #fff; box-shadow: 0 4px 12px rgb(20 40 90 / .25); }
.rd-basket-ic .ic { width: 1.3rem; height: 1.3rem; }
.fly-prod { position: fixed; z-index: 60; object-fit: contain; pointer-events: none; filter: drop-shadow(0 8px 12px rgb(0 0 0 / .25)); }

/* ===== הקופה: שאלת ההנחה + קבלה עם מחירים ===== */
.co-kicker { display: inline-flex; align-items: center; gap: .4em; font-family: "Rubik", sans-serif; font-weight: 600; color: #6B5A35; }
.co-kicker .ic { width: 1.2em; height: 1.2em; }
.co-text h1.co-q { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.2; color: #14285A; }
.co-q mark { background: #E1261C; color: #fff; padding: 0 .3em; border-radius: 8px; }
.co-qsub { font-size: 1.25rem; color: #3A4A70; }
.co-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-opt { min-height: 3.6rem; font-size: clamp(1.4rem, 1rem + 1vw, 2rem); }
.co-fb { min-height: 1.5em; font-size: 1.05rem; color: #3A4A70; }
.co-fb.ok { color: #138A50; } .co-fb.try, .co-fb.miss { color: #7A4A10; }
.co-bonus { background: #FFD452; color: #14285A; border-radius: 99px; padding: .1em .6em; font-weight: 700; }
.co-next { justify-self: start; }
.receipt .rc-sub, .receipt .rc-disc { border-top: 1px dashed #CDBB94; }
.receipt .rc-disc bdi { color: #E1261C; }
.receipt .rc-l bdi { font-family: "Rubik", sans-serif; }
.receipt.paid .rc-pay { color: #138A50; animation: popin .5s cubic-bezier(.3,1.6,.5,1); }
.receipt .rc-l[hidden] { display: none; }
.co-q mark { white-space: nowrap; }

/* ===== פס אחוזים (מודל הפס): השלם = 100%, מחולק לחלקים שווים. לשברים, לחלוקה ולהשוואה בין שתי כמויות ===== */
.stp-wrap { width: min(100%, 680px); display: grid; gap: 14px; align-content: center; font-family: var(--f-display); color: #14285A; }
.stp-top { margin: 0; justify-self: center; background: #14285A; color: #fff; font-weight: 600; font-size: 1.05rem; padding: .3em 1.1em; border-radius: 999px; }
.stp-row { display: grid; gap: 6px; }
.stp-wrap.multi .stp-row { grid-template-columns: 4.2em 1fr; align-items: end; column-gap: 12px; }
.stp-name { font-weight: 600; font-size: 1.15rem; padding-bottom: 14px; }
.stp-track { position: relative; padding-top: 34px; }
.stp-wrap.multi .stp-track { padding-top: 0; }
.stp { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); height: 78px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 3px #14285A, 0 14px 30px rgb(80 60 20 / .16); }
.stp-wrap.multi .stp { height: 60px; }
.stp-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: #14285A; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.stp-wrap.go .stp-fill { width: var(--f); }
.stp-row.alt .stp-fill { background: #2B8C8C; }
.stp-row.alt .stp { box-shadow: 0 0 0 3px #2B8C8C, 0 14px 30px rgb(80 60 20 / .16); }
.stp-p { position: relative; display: grid; place-items: center; border-inline-start: 2px dashed #C7BBA0; }
.stp-p:first-of-type { border-inline-start: 0; }
.stp-v { font-weight: 600; font-size: 1.05rem; color: #14285A; background: #fff; border-radius: 999px; padding: 0 .4em; opacity: 0; transform: scale(.6); transition: .4s cubic-bezier(.3,1.6,.5,1); }
.stp-v:not(:empty) { opacity: 1; transform: none; }
/* סוגר מעל החלק המסומן: "ילד אחד" / "מלא" */
.stp-brace { position: absolute; top: 0; inset-inline-start: 0; width: var(--f); height: 26px; display: grid; place-items: start center; font-weight: 600; font-size: 1rem; color: #14285A; border: 2px solid #14285A; border-bottom: 0; border-radius: 10px 10px 0 0; line-height: 1.3; }
.stp-end { position: absolute; bottom: 50%; inset-inline-start: var(--f); transform: translate(50%, 50%); font-size: 1.05rem; }
.stp-end:not(:empty) { background: #fff; padding: .1em .55em; border-radius: 999px; box-shadow: 0 4px 10px rgb(20 40 90 / .25); }
/* סרגל 0%–100% מתחת לפס: מופיע ברמז השני ובפתרון */
.stp-scale { display: flex; justify-content: space-between; font-size: .85rem; color: #6B5A35; opacity: 0; transition: opacity .3s; }
.stp-wrap.multi .stp-scale { margin-inline-start: calc(4.2em + 12px); }
.stp-scale span { width: 0; display: grid; justify-items: center; white-space: nowrap; }
.show-scale .stp-scale { opacity: 1; }
.stp-note { margin: 0; justify-self: center; font-size: 1rem; color: #6B5A35; }
/* מקרא קבוע ללוח המאה (ערכים עשרוניים) */
.cbx-key { grid-column: 1 / -1; margin: 0; justify-self: center; font-family: var(--f-display); font-weight: 600; font-size: clamp(.9rem, 2.8cqh, 1.1rem); color: #14285A; background: #fff; padding: .25em 1em; border-radius: 999px; box-shadow: 0 4px 12px rgb(80 60 20 / .12); }

/* ===== הורדות: ישר מספרים כפול — ג'יגה מעל הפס, אחוזים מתחתיו, החלק באותו מקום בשניהם ===== */
.dl-line { position: relative; display: flex; justify-content: space-between; height: 1.7em; font-family: var(--f-display); font-size: .95rem; color: rgb(214 226 255 / .7); }
.dl-gbl { margin-bottom: 6px; } .dl-pcl { margin-top: 8px; }
.dl-at { position: absolute; inset-inline-start: var(--p); transform: translateX(50%); white-space: nowrap; font-weight: 600; color: #fff; }
.dl-gbl .dl-at::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 10px; background: #fff; }
.dl-pcl .dl-at.dl-q { top: -.1em; }
.dl-scale { display: none; }
/* הפס ממלא את הבמה: גדול וקריא מרחוק */
.stp-wrap { width: min(100%, 880px); gap: 18px; }
.stp { height: 118px; border-radius: 18px; }
.stp-wrap.multi .stp { height: 84px; }
.stp-top { font-size: 1.25rem; }
.stp-track { padding-top: 40px; }
.stp-brace { height: 30px; font-size: 1.15rem; }
.stp-name { font-size: 1.4rem; padding-bottom: 24px; }
.stp-wrap.multi .stp-row { grid-template-columns: 4.6em 1fr; }
.stp-wrap.multi .stp-scale { margin-inline-start: calc(4.6em + 12px); }
.stp-wrap.multi .stp-name { font-size: 1.4rem; }
.stp-v, .stp-end { font-size: 1.3rem; }
.stp-scale { font-size: 1rem; }
.stp-note { font-size: 1.15rem; }
/* הפער בין שני הפסים = ההפרש */
.stp-gap { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--a); width: var(--w); border: 3px dashed #D99A00; border-radius: 10px; background: rgb(255 212 82 / .18); display: grid; place-items: center; animation: popin .5s cubic-bezier(.3,1.6,.5,1); }
.stp-gap b { background: #fff; color: #14285A; font-family: var(--f-display); font-weight: 600; font-size: 1.15rem; padding: .05em .6em; border-radius: 999px; box-shadow: 0 4px 10px rgb(20 40 90 / .2); white-space: nowrap; }
/* הורדות: הכרטיס בגודל הבמה, והתוויות לא מתנגשות בקצוות */
.dl-wrap { width: min(100%, 880px); gap: 28px; }
.dl { padding: 26px 32px 22px; }
.dl-name { font-size: 1.45rem; }
.dl-bar { height: 34px; }
.dl-line { font-size: 1.1rem; height: 1.8em; }
.dl-pcl .dl-at.dl-q { font-size: 1.15rem; }
.dl.near-start .dl-end:first-child, .dl.near-end .dl-end:last-child { visibility: hidden; }

/* ===== כפתור "שורה שלמה" ליד כל שורה בלוח שמסמנים בו: שורה = 10 סוכריות = 10% ===== */
.cbx-rowbtns { position: absolute; top: 0; bottom: 0; right: calc(-2.6em - 1.6em); width: 2.6em; margin: 0; padding: 3.2% 0; box-sizing: border-box; list-style: none;
  display: grid; grid-template-rows: repeat(5, 1fr) 2.5% repeat(5, 1fr); row-gap: 1.1%; font-size: clamp(.7rem, 2.4cqh, 1rem); }
.cbx-rowbtns li { display: flex; align-items: center; justify-content: center; }
.cbx-rowbtns li:nth-child(1) { grid-row: 1; } .cbx-rowbtns li:nth-child(2) { grid-row: 2; } .cbx-rowbtns li:nth-child(3) { grid-row: 3; }
.cbx-rowbtns li:nth-child(4) { grid-row: 4; } .cbx-rowbtns li:nth-child(5) { grid-row: 5; } .cbx-rowbtns li:nth-child(6) { grid-row: 7; }
.cbx-rowbtns li:nth-child(7) { grid-row: 8; } .cbx-rowbtns li:nth-child(8) { grid-row: 9; } .cbx-rowbtns li:nth-child(9) { grid-row: 10; }
.cbx-rowbtns li:nth-child(10) { grid-row: 11; }
/* חץ שמצביע אל השורה (בעברית השורה נקראת מימין, אז החץ יושב מימין ומצביע שמאלה אל השורה) */
.cbx-rowbtn { width: 2.4em; height: 1.9em; min-height: 0; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: #fff; box-shadow: 0 0 0 2px #14285A, 0 3px 8px rgb(20 40 90 / .18); display: grid; place-items: center; transition: background .2s, transform .15s; }
.cbx-rowbtn i { width: .95em; height: .95em; background: #14285A; clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.cbx-rowbtn:hover { transform: scale(1.1); }
.cbx-rowbtn:active { transform: scale(.94); }
.cbx-rowbtn.full { background: #14285A; }
.cbx-rowbtn.full i { background: #fff; clip-path: polygon(10% 40%, 90% 40%, 90% 60%, 10% 60%); }
.cbx-rowbtn:focus-visible { outline: 3px solid #FFD452; outline-offset: 2px; }
.cbx-rowbtns { right: calc(-2.6em - 2.6em); }

/* ===== כניסה: שם מלא רחב, קוד כיתה צר ===== */
.fields.fields-name { grid-template-columns: 2fr 1fr; }
.fields-name input::placeholder { color: #A8A08C; font-weight: 400; }

/* ===== דוח מורה: שפת עמודי התוכן (נייר שמנת, כרטיסים לבנים), רמות במילים ולא רק בצבע ===== */
.teacher .t-main.tr { background: linear-gradient(135deg, #F7EFDD, #EFE2C6); display: grid; gap: 20px; align-content: start; overflow-y: auto; height: 100%; box-sizing: border-box; padding-inline: clamp(12px, 4vw, 64px); padding-bottom: 40px; }
.tr-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.tr-head h1 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem); color: #14285A; }
.tr-head p { margin: .2rem 0 0; color: #4A5470; font-size: 1.02rem; }
.tr-print { display: inline-flex; align-items: center; gap: .4em; }
.tr-card { background: #fff; border-radius: 22px; padding: 22px 26px; box-shadow: 0 14px 34px rgb(80 60 20 / .12); }
.tr-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.tr-card h2 { margin: 0; display: inline-flex; align-items: center; gap: .4em; font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; color: #14285A; }
.tr-card h2 .ic { width: 1.1em; height: 1.1em; }
.tr-legend { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tr-legend small, .tr-tip, .tr-none { color: #6B5A35; font-size: .92rem; }
.tr-tip { margin: 12px 0 0; }
.tr-none { margin: 0; }
.tr-empty p { color: #4A5470; margin: .4rem 0 0; }
/* רמה = מילה + צבע רך */
.tq-lv { display: inline-block; padding: .22em .8em; border-radius: 999px; font-family: var(--f-display); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.tq-strong { background: #E2F3E8; color: #13643E; }
.tq-mid { background: #FFF0C7; color: #7A5200; }
.tq-weak { background: #FCE4D8; color: #9C3A0E; }
.tq-few { background: #F1ECE0; color: #6B5A35; }
.tq-none { color: #B0A78F; padding-inline: 0; }
/* טבלת הכיתה */
.tr-scroll { overflow-x: auto; }
.tr-grid { width: 100%; border-collapse: collapse; min-width: 860px; }
.tr-grid thead th { padding: 0 10px 12px; text-align: center; vertical-align: bottom; font-weight: 400; }
.tr-grid thead th b { display: block; font-family: var(--f-display); font-weight: 600; font-size: .98rem; color: #14285A; }
.tr-grid thead th small { display: block; color: #8A7D5E; font-size: .78rem; }
.tr-grid thead th:first-child { text-align: start; color: #8A7D5E; font-size: .85rem; }
.tr-grid tbody tr { border-top: 1px solid #EFE6D2; }
.tr-grid tbody tr:hover { background: #FBF7EE; }
.tr-grid tbody th, .tr-grid td { padding: 10px; text-align: center; }
.tr-grid tbody th { text-align: start; }
.tr-grid td small { display: block; margin-top: 3px; color: #8A7D5E; font-size: .78rem; }
.tr-name { background: none; border: 0; padding: 0; min-height: 0; font: 600 1.05rem/1.2 var(--f-display); color: #14285A; cursor: pointer; text-align: start; text-decoration: underline; text-decoration-color: #D8C8A4; text-underline-offset: 4px; }
.tr-name:hover { text-decoration-color: #14285A; }
.tr-act b { display: block; font-weight: 600; color: #4A5470; font-size: .9rem; }
/* קבוצות עבודה וסוגי קושי */
.tr-groups, .tr-errs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tr-group, .tr-err { background: #FBF7EE; border-radius: 16px; padding: 16px 18px; border-inline-start: 4px solid #14285A; }
.tr-group h3, .tr-err h3 { margin: 0 0 6px; display: flex; justify-content: space-between; gap: 8px; font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; color: #14285A; }
.tr-count { font-size: .9rem; color: #9C3A0E; background: #FCE4D8; padding: .05em .6em; border-radius: 999px; align-self: center; }
.tr-means { margin: 0 0 8px; color: #3A4A70; }
.tr-todo { margin: 0; color: #4A5470; font-size: .95rem; }
.tr-todo b { color: #14285A; }
.tr-who { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tr-pill { min-height: 0; padding: .25em .8em; border-radius: 999px; border: 1.5px solid #14285A; background: #fff; color: #14285A; font: 600 .9rem var(--f-display); cursor: pointer; }
.tr-pill:hover { background: #14285A; color: #fff; }
/* דוח אישי */
.tr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tr-sum ul { list-style: none; margin: 10px 0 0; padding: 0; }
.tr-sum li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid #EFE6D2; }
.tr-sum li b { font-family: var(--f-display); font-weight: 600; color: #14285A; }
.tr-sum li span { color: #6B5A35; }
.tr-plus h2 .ic { color: #13643E; } .tr-minus h2 .ic { color: #B07800; }
.tr-skills { display: grid; gap: 4px; }
.tr-skill { display: grid; grid-template-columns: minmax(12em, 16em) 1fr minmax(10em, 12em); align-items: center; gap: 18px; padding: 10px 0; border-top: 1px solid #EFE6D2; }
.tr-sk-name { margin: 0; } .tr-sk-name b { display: block; font-family: var(--f-display); font-weight: 600; color: #14285A; } .tr-sk-name small { color: #8A7D5E; }
.tr-bar { position: relative; height: 14px; border-radius: 999px; background: #F1EBDD; overflow: hidden; }
.tr-bar i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 999px; }
.tr-bar-ok { background: #AFC0E6; } .tr-bar-clean { background: #14285A; }
.tr-sk-n { margin: 0; display: flex; align-items: center; gap: 8px; } .tr-sk-n small { color: #8A7D5E; }
@media (max-width: 760px) { .tr-two { grid-template-columns: 1fr; } .tr-skill { grid-template-columns: 1fr; gap: 6px; } }
/* הדפסה: דוח נקי על דף לבן */
@media print {
  .topbar, .tr-print, #fx, #toast { display: none !important; }
  html, body, #app, .screen, .teacher .t-main.tr { position: static !important; height: auto !important; overflow: visible !important; background: #fff !important; }
  .teacher .t-main.tr { padding: 0 !important; }
  .tr-card { box-shadow: none; border: 1px solid #DDD3BD; break-inside: avoid; }
  .tr-grid { min-width: 0; font-size: .85rem; }
}
/* תחתית כרטיס הכניסה: שתי דלתות שוות — אורחים ומורה */
.si-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.si-door { display: flex; align-items: center; gap: .55em; min-height: 3.2rem; padding: .45em .8em; border-radius: 14px; border: 1.5px solid #D8C8A4; background: #FBF7EE; color: #14285A; cursor: pointer; text-align: start; transition: border-color .2s, background .2s; }
.si-door:hover { border-color: #14285A; background: #fff; }
.si-door .ic { width: 1.4em; height: 1.4em; flex: none; }
.si-door span { display: grid; line-height: 1.15; }
.si-door b { font-family: var(--f-display); font-weight: 600; font-size: .98rem; }
.si-door small { color: #6B5A35; font-size: .78rem; }

/* ===== ניגודיות לפי WCAG AA (נמצא בבדיקה האוטומטית מול מסמך עקרונות העיצוב) ===== */
.nb-ph { color: #5F6880; }            /* היה #B3BDCF — יחס 1.9; עכשיו מעל 5 על נייר המחברת */
.kv-meta small { color: #5F6880; }    /* היה #7A84A0 — יחס 3.7; עכשיו 5.6 */

/* ===== טלפון: מסך המשימה בעמודה אחת (חוק מאוחר השאיר 3 עמודות צרות) ===== */
@media (max-aspect-ratio: 4/5) {
  .rd { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(220px, 1fr) auto auto; }
}
@media (max-aspect-ratio: 4/5) {
  .stp-wrap { gap: 10px; }
  .stp { height: 84px; }
  .stp-wrap.multi .stp { height: 58px; }
  .stp-top { font-size: 1rem; }
  .stp-track { padding-top: 32px; }
  .stp-name, .stp-wrap.multi .stp-name { font-size: 1.1rem; padding-bottom: 16px; }
  .stp-wrap.multi .stp-row { grid-template-columns: 3.6em 1fr; }
  .stp-wrap.multi .stp-scale { margin-inline-start: calc(3.6em + 12px); }
  .stp-note, .stp-scale { font-size: .9rem; }
  .dl-wrap { gap: 14px; } .dl { padding: 16px 18px 14px; } .dl-name { font-size: 1.15rem; }
}
@media (max-aspect-ratio: 4/5) {
  .stp-wrap { padding-inline: 14px; box-sizing: border-box; }
  .dl-wrap { gap: 10px; }
  .dl { padding: 12px 16px 10px; border-radius: 16px; }
  .dl-top { margin-bottom: 6px; }
  .dl-name { font-size: 1.05rem; }
  .dl-name .ic { width: 1.4em; height: 1.4em; }
  .dl-bar { height: 22px; }
  .dl-line { font-size: .9rem; height: 1.6em; }
  .dl-gbl { margin-bottom: 4px; } .dl-pcl { margin-top: 4px; }
}
.stp-brace { display: flex; justify-content: center; align-items: flex-start; white-space: nowrap; }

/* ===== חלון מטרה / כללים: כרטיס לבן אחד על רקע מעומעם (שכבת הלמידה), כפתור אחד ===== */
.pc-ov { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgb(40 30 10 / .38); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .22s; }
.pc-ov.in { opacity: 1; }
.pc-card { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; box-sizing: border-box; background: #fff; border-radius: 26px; padding: 28px 30px 24px; box-shadow: 0 30px 70px rgb(30 20 0 / .35); transform: translateY(14px) scale(.97); transition: transform .3s cubic-bezier(.2,.9,.3,1.2); color: #14285A; }
.pc-ov.in .pc-card { transform: none; }
.pc-goal .pc-card { width: min(680px, 100%); display: grid; grid-template-columns: 1fr 170px; gap: 8px; align-items: end; }
.pc-guide { grid-column: 2; grid-row: 1; width: 100%; max-height: 300px; object-fit: contain; align-self: end; }
.pc-body { display: grid; gap: 14px; }
.pc-kicker { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: .95rem; color: #6B5A35; }
.pc-card h2 { margin: -6px 0 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); line-height: 1.15; color: #14285A; }
.pc-list, .pc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pc-list li, .pc-steps li { display: flex; align-items: flex-start; gap: .7em; font-size: 1.08rem; line-height: 1.4; color: #2A3658; }
.pc-list li .ic { flex: none; width: 2em; height: 2em; padding: .42em; border-radius: 50%; background: #EEF2FB; color: #14285A; box-sizing: border-box; }
.pc-n { flex: none; display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: #14285A; color: #fff; font-family: var(--f-display); font-weight: 600; font-size: .95rem; }
.pc-list b, .pc-steps b:not(.pc-n) { color: #14285A; }
.pc-now { margin: 0; padding: .55em .9em; border-radius: 14px; background: #FBF7EE; color: #6B5A35; font-size: 1rem; }
.pc-now b { color: #14285A; }
.pc-card .cta { width: 100%; margin-top: 4px; }
@media (max-width: 560px) {
  .pc-card { padding: 22px 20px 18px; border-radius: 22px; }
  .pc-goal .pc-card { grid-template-columns: 1fr; }
  .pc-guide { grid-column: 1; grid-row: 1; max-height: 120px; justify-self: center; }
  .pc-list li, .pc-steps li { font-size: 1rem; }
}

/* מונה החותמות בכותרת מפת הקניון: תמיד רואים כמה נשאר עד המטרה */
.tb-stamps { display: inline-flex; align-items: center; gap: .3em; margin-inline-start: .6em; min-height: 0; padding: .2em .7em; border: 0; border-radius: 999px; background: #14285A; color: #fff; font: 600 .9rem var(--f-display); cursor: pointer; vertical-align: middle; }
.tb-stamps .ic { width: 1.05em; height: 1.05em; color: #FFC21A; fill: #FFC21A; }
.tb-stamps.done { background: #FFC21A; color: #14285A; }
.tb-stamps.done .ic { color: #14285A; fill: #14285A; }

/* כפתור "איך קונים?" בכלי המשימה */
.rd-tools { flex-wrap: wrap; }

/* ===== כרטיס לקוח מצטיין: תעודה על נייר שמנת, זהב רק כקו דק וכוכבים ===== */
.finale { background: linear-gradient(135deg, #F7EFDD, #EFE2C6); }
.fin-main { min-height: 100%; box-sizing: border-box; display: grid; align-content: center; justify-items: center; gap: 20px; padding: 5rem 16px 24px; overflow-y: auto; }
.fin-card { position: relative; width: min(620px, 100%); box-sizing: border-box; background: #fff; border-radius: 28px; padding: 30px 34px 28px; text-align: center; box-shadow: inset 0 0 0 3px #14285A, inset 0 0 0 9px #fff, inset 0 0 0 10.5px #D99A00, 0 24px 60px rgb(80 60 20 / .22); }
.fin-logo { width: 170px; display: block; margin: 0 auto 6px; }
.fin-kicker { margin: 0; font-family: var(--f-display); font-weight: 500; letter-spacing: .2em; color: #6B5A35; }
.fin-card h1 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.05; color: #14285A; }
.fin-name { margin: 10px auto 0; display: inline-block; padding: 0 .4em .1em; border-bottom: 2px solid #D99A00; font-family: var(--f-display); font-weight: 600; font-size: 1.6rem; color: #14285A; }
.fin-lead { margin: 14px 0 0; font-size: 1.12rem; color: #3A4A70; }
.fin-stores { display: grid; gap: 8px; margin: 18px auto 0; max-width: 380px; }
.fin-store { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 14px; background: #FBF7EE; }
.fin-store b { font-family: var(--f-display); font-weight: 600; color: #14285A; }
.fin-store span { display: inline-flex; gap: 4px; }
.fin-store i .ic { width: 1.5em; height: 1.5em; color: #D8C8A4; }
.fin-store i.on .ic { color: #B07800; fill: #FFC21A; }
.fin-meta { margin: 16px 0 0; display: inline-flex; align-items: center; gap: .5em; color: #6B5A35; }
.fin-meta img { width: 1.6em; height: 1.6em; }
.fin-guide { position: absolute; inset-inline-start: -70px; bottom: -10px; width: 150px; pointer-events: none; filter: drop-shadow(0 10px 14px rgb(0 0 0 / .18)); }
.fin-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 760px) { .fin-guide { display: none; } .fin-card { padding: 24px 18px 22px; } .fin-logo { width: 140px; } }
@media print { .finale .topbar, .fin-actions { display: none !important; } .finale, .fin-main { background: #fff !important; padding: 0 !important; } .fin-card { box-shadow: inset 0 0 0 3px #14285A, inset 0 0 0 9px #fff, inset 0 0 0 10.5px #D99A00; } }
/* הכפתור בחלון: כחול כהה כמו בעמודי התוכן (לא זהב), והמלווה לא מוכפל — הוא כבר עומד במפה */
.pc-goal .pc-card { width: min(560px, 100%); display: block; }
.pc-card .cta, .fin-actions .cta { background: #14285A; color: #fff; box-shadow: 0 6px 0 #0A1636, 0 14px 30px rgb(0 0 0 / .2); }
.pc-card .cta .ic, .fin-actions .cta .ic { color: #fff; }

/* ===== ספורט פלוס: פס הנחה (המחיר המלא = 100%, מחולק לחלקים לפי האחוז) ===== */
.s-sport { --store-c: #2B8C8C; }
.pr-p { appearance: none; border: 0; margin: 0; padding: 0; min-height: 0; background: transparent; border-inline-start: 2px dashed #C7BBA0; border-radius: 0; cursor: pointer; transition: background .15s; font: inherit; }
.pr-p:first-of-type { border-inline-start: 0; }
.pr-p:hover { background: #EEF2FB; }
.pr-p.on { background: #14285A; }
.pr-p:focus-visible { outline: 3px solid #FFD452; outline-offset: -3px; }
.pr-wrap .pr-fill { background: #E1261C; opacity: .9; }  /* אדום = מבצע: רק בפתרון, על חלק ההנחה */
.pr-brace:empty { display: none; }
.pr-brace { border-color: #E1261C; color: #B3150D; }
.pr-scale { opacity: 1; }
.pr-wrap.solved .pr-p { cursor: default; }
.pr-wrap .stp-note b { color: #14285A; }
@media (max-width: 560px) { .pr-scale { font-size: .72rem; } }
/* ספורט: המדף התחתון נמוך יותר בתמונה — במסך רחב חותכים שווה מלמעלה ומלמטה (תקרה ורצפה), כך שכל ארבעת המדפים גלויים */
@media (min-aspect-ratio: 1/1) {
  .store.s-sport .scene-box { top: 50%; transform: translate(-50%, -50%); }
  .store.s-sport .scene-box.zoom-in { transform: translate(-50%, -50%) scale(3.3); }
}
.stp-brace { gap: .3em; }

/* ===== גאדג׳ט: סולם ה־10% (שורות "אחוז = שקלים", חץ עם הפעולה בין השורות) ===== */
.s-gadgets { --store-c: #3D5FB0; }
.tn-wrap { width: min(100%, 440px); display: grid; gap: 14px; justify-items: center; font-family: var(--f-display); color: #14285A; }
.tn { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 0; }
.tn-row { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 22px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 2px #D8C8A4, 0 8px 18px rgb(80 60 20 / .1); font-size: 1.5rem; }
.tn-row.given { background: #14285A; color: #fff; box-shadow: 0 8px 18px rgb(20 40 90 / .25); }
.tn-row.target { box-shadow: 0 0 0 3px #D99A00, 0 8px 18px rgb(80 60 20 / .14); }
.tn-p, .tn-v { font-weight: 600; }
.tn-v bdi { display: inline-block; min-width: 3.2em; text-align: center; }
.tn-row:not(.given):not(.shown) .tn-v { color: #A8A08C; }
.tn-row.shown .tn-v { color: #14285A; animation: popin .4s cubic-bezier(.3,1.6,.5,1); }
.tn-eq { color: #8A7D5E; }
.tn-row.given .tn-eq { color: rgb(255 255 255 / .7); }
.tn-lbl { position: absolute; top: -.75em; inset-inline-start: 18px; background: #D99A00; color: #fff; font-size: .78rem; padding: .05em .7em; border-radius: 999px; }
.tn-op { display: flex; justify-content: center; padding: 6px 0; }
.tn-op span { display: inline-flex; align-items: center; gap: .35em; font-size: .98rem; font-weight: 500; color: #6B5A35; }
.tn-op span::before { content: "↓"; font-size: 1.2rem; color: #14285A; }
@media (max-aspect-ratio: 4/5) { .tn-row { font-size: 1.2rem; padding: 8px 18px; } .tn-op { padding: 3px 0; } .tn-op span { font-size: .88rem; } }
/* גאדג׳ט: המדף התחתון נמוך בתמונה — מרכוז כמו בספורט */
@media (min-aspect-ratio: 1/1) {
  .store.s-gadgets .scene-box { top: 50%; transform: translate(-50%, -50%); }
  .store.s-gadgets .scene-box.zoom-in { transform: translate(-50%, -50%) scale(3.3); }
}
@media (max-aspect-ratio: 4/5) {
  .tn-wrap { gap: 6px; }
  .tn-wrap .stp-top { font-size: .9rem; padding: .15em .9em; }
  .tn-row { font-size: 1.08rem; padding: 6px 16px; border-radius: 12px; }
  .tn-op { padding: 1px 0; }
  .tn-op span { font-size: .8rem; }
  .tn-lbl { font-size: .7rem; }
}

/* ===== סופר שכונה: קבלה כסדר עבודה (שורות: נתון → צעד ראשון → תשובה) ===== */
.s-super { --store-c: #E07A1F; }
.rcp-wrap { width: min(100%, 420px); display: grid; gap: 14px; justify-items: center; }
.rcp { width: 100%; box-sizing: border-box; background: #fff; padding: 18px 24px 22px; border-radius: 6px; box-shadow: 0 14px 30px rgb(80 60 20 / .16); font-family: var(--f-display); color: #14285A;
  -webkit-mask: radial-gradient(circle at 8px 100%, transparent 6px, #000 6.5px) 0 100% / 16px 100% repeat-x; mask: radial-gradient(circle at 8px 100%, transparent 6px, #000 6.5px) 0 100% / 16px 100% repeat-x; }
.rcp-h { margin: 0 0 8px; text-align: center; letter-spacing: .3em; font-weight: 600; color: #8A7D5E; font-size: .9rem; border-bottom: 1px dashed #CDBB94; padding-bottom: 8px; }
.rcp-l { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; padding: 9px 0; font-size: 1.25rem; border-bottom: 1px dashed #E6DCC6; }
.rcp-l span { font-family: var(--f-body); font-weight: 600; color: #3A4A70; }
.rcp-l b { font-weight: 600; }
.rcp-l:not(.given):not(.shown) b { color: #A8A08C; }
.rcp-l.shown b { animation: popin .4s cubic-bezier(.3,1.6,.5,1); }
.rcp-l.red.shown b, .rcp-l.red.given b { color: #E1261C; }
.rcp-l.tot { border-bottom: 0; border-top: 2px solid #14285A; margin-top: 4px; font-size: 1.45rem; }
.rcp-l.tot span { color: #14285A; font-family: var(--f-display); }
.rcp-sign { margin: 0; padding: .3em 1em; background: #E1261C; color: #fff; font-family: var(--f-display); font-weight: 600; font-size: 1.6rem; border-radius: 10px; transform: rotate(-3deg); box-shadow: 0 10px 22px rgb(225 38 28 / .3); }
@media (max-aspect-ratio: 4/5) { .rcp { padding: 12px 18px 16px; } .rcp-l { font-size: 1.05rem; padding: 6px 0; } .rcp-l.tot { font-size: 1.2rem; } .rcp-sign { font-size: 1.2rem; } }
@media (min-aspect-ratio: 1/1) {
  .store.s-super .scene-box { top: 50%; transform: translate(-50%, -50%); }
  .store.s-super .scene-box.zoom-in { transform: translate(-50%, -50%) scale(3.3); }
}
@media (min-aspect-ratio: 1/1) { .rcp-wrap { width: min(100%, 500px); } .rcp-l { font-size: 1.4rem; padding: 11px 0; } .rcp-l.tot { font-size: 1.6rem; } }

/* ===== פיצה ופלאפל: מגש עגול מחולק לחלקים שווים (מסמנים בהקשה) ===== */
.s-food { --store-c: #C9772B; }
.pz-wrap { display: grid; gap: 12px; justify-items: center; width: 100%; height: 100%; align-content: center; }
.pz { width: min(100%, 52cqh, 420px); aspect-ratio: 1; overflow: visible; filter: drop-shadow(0 12px 22px rgb(80 60 20 / .2)); }
.pz-s { fill: #FFF3D6; stroke: #C98B2E; stroke-width: .018; transition: fill .15s; }
.pz-g { cursor: pointer; outline: none; }
.pz-g:hover .pz-s { fill: #FBE6B5; }
.pz-g:focus-visible .pz-s { stroke: #FFD452; stroke-width: .04; }
.pz-g.on .pz-s { fill: #14285A; }
.pz-g.on.b .pz-s { fill: #2B8C8C; }
.pz-rim { fill: none; stroke: #14285A; stroke-width: .03; pointer-events: none; }
.pz-t { font: 600 .16px var(--f-display); fill: #14285A; pointer-events: none; }
.pz-g.on .pz-t { fill: #fff; }
.solved .pz-g { cursor: default; }
@media (max-aspect-ratio: 4/5) { .pz { width: min(78vw, 34vh); } }
@media (min-aspect-ratio: 1/1) {
  .store.s-food .scene-box { top: 50%; transform: translate(-50%, -50%); }
  .store.s-food .scene-box.zoom-in { transform: translate(-50%, -50%) scale(3.3); }
}
.pz-key { display: inline-block; width: .9em; height: .9em; border-radius: 3px; margin-inline: .7em .3em; vertical-align: -.1em; background: #FFF3D6; box-shadow: inset 0 0 0 1.5px #C98B2E; }
.pz-key.a { background: #14285A; box-shadow: none; } .pz-key.b { background: #2B8C8C; box-shadow: none; }
/* המגש לפי הגובה הפנוי בבמה (כולל במקלדת בטלפון) */
.pz { width: min(100%, calc(100cqh - 5.5rem), 420px); }
@media (max-aspect-ratio: 4/5) { .pz { width: min(72vw, calc(100cqh - 4.8rem)); } .pz-wrap { gap: 6px; } }

/* ===== פוטו קליק: פס "לפני" ופס "אחרי" באותו קנה מידה ===== */
.s-photo { --store-c: #5B6B8C; }
.sc-wrap .stp-row { align-items: end; }
.sc-line { display: grid; gap: 4px; }
.sc-lbl { margin: 0; font-weight: 600; font-size: 1.05rem; color: #14285A; }
.sc-bar { height: 64px; }
.sc-wrap .stp-v { font-size: 1rem; }
.sc-wrap .stp-name { padding-bottom: 18px; }
@media (max-aspect-ratio: 4/5) { .sc-bar { height: 46px; } .sc-lbl { font-size: .92rem; } .sc-wrap .stp-v { font-size: .78rem; padding: 0 .2em; } .sc-wrap .stp-name { padding-bottom: 12px; } }
@media (min-aspect-ratio: 1/1) {
  .store.s-photo .scene-box { top: 50%; transform: translate(-50%, -50%); }
  .store.s-photo .scene-box.zoom-in { transform: translate(-50%, -50%) scale(3.3); }
}
@media (max-aspect-ratio: 4/5) { .sc-wrap.dense .stp-v { display: none; } }

/* ===== בית ועיצוב: רצפה של אריחים שווים ===== */
.s-home { --store-c: #5E7A3C; }
.rm-wrap { display: grid; gap: 12px; justify-items: center; width: 100%; }
.rm { display: grid; grid-template-columns: repeat(var(--c), 1fr); gap: 4px; padding: 10px; background: #C9A877; border-radius: 14px; box-shadow: inset 0 0 0 3px #14285A, 0 14px 30px rgb(80 60 20 / .18);
  width: min(100%, calc((100cqh - 6rem) * var(--c) / var(--r)), 620px); box-sizing: border-box; }
.rm-t { appearance: none; border: 0; margin: 0; padding: 0; min-height: 0; aspect-ratio: 1; border-radius: 4px; background: #F6E9D2; box-shadow: inset 0 -2px 0 rgb(120 80 30 / .18); cursor: pointer; display: grid; place-items: center; font: 600 clamp(.6rem, 2.2cqh, .9rem) var(--f-display); color: #14285A; transition: background .15s; }
.rm-t:hover { background: #FBF2E2; }
.rm-t.on, .rm-t.on.a { background: #14285A; color: #fff; }
.rm-t.on.b { background: #2B8C8C; color: #fff; }
.rm-t:focus-visible { outline: 3px solid #FFD452; outline-offset: 1px; }
.solved .rm-t { cursor: default; }
.pz-key.rm-free { background: #F6E9D2; box-shadow: inset 0 0 0 1.5px #C9A877; }
@media (max-aspect-ratio: 4/5) { .rm { gap: 3px; padding: 7px; width: min(100%, calc((100cqh - 4.5rem) * var(--c) / var(--r))); } .rm-t { font-size: .6rem; } }
/* מה שהילד מסמן (טיוטה) בכחול בהיר — שונה ממה שנתון בשאלה (כחול כהה) */
.rm-t.on:not(.given):not(.a):not(.b) { background: #7F9BD8; }
.pz-g.on:not(.given):not(.a):not(.b) .pz-s { fill: #7F9BD8; }
/* ניגודיות לפי WCAG AA: סימן השאלה בסולם ובקבלה, וכותרת הקבלה */
.tn-row:not(.given):not(.shown) .tn-v, .rcp-l:not(.given):not(.shown) b { color: #6B5A35; }
.rcp-h { color: #6B5A35; }
/* חיזוק על שיפור בקופה */
.co-up { display: inline-flex; align-items: center; gap: .5em; margin: 0; padding: .5em .9em; border-radius: 14px; background: #E2F3E8; color: #13643E; font-size: 1.05rem; }
.co-up .ic { width: 1.3em; height: 1.3em; flex: none; }
.co-up b { color: #0E4F30; }

/* ===== נגישות: כפתור הקראה בכל קטע טקסט, וטקסט גדול ===== */
.say { float: inline-start; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; min-height: 0; margin: 0 0 .3rem .6rem; padding: 0; border: 0; border-radius: 50%; background: #EEF2FB; color: #14285A; cursor: pointer; }
.say .ic { width: 1.2rem; height: 1.2rem; }
.say:hover { background: #DCE4F6; }
.say:focus-visible { outline: 3px solid #FFD452; outline-offset: 2px; }
.say.saying, .rd-speak.saying { background: #14285A; color: #fff; animation: say-pulse 1.2s ease-in-out infinite; }
@keyframes say-pulse { 50% { box-shadow: 0 0 0 6px rgb(20 40 90 / .15); } }
.pc-card > .say { float: none; position: absolute; top: 14px; inset-inline-end: 14px; margin: 0; }
.no-motion .say.saying, .no-motion .rd-speak.saying { animation: none; }
/* טקסט גדול: השאלה, הרמז, המשוב והחלונות גדלים ב־15% */
.big-text .rd-text { font-size: 1.15em; line-height: 1.55; }
.big-text .rd-hint, .big-text .rd-fb, .big-text .pc-card, .big-text .co-text { font-size: 1.15em; }
.big-text .stp-note, .big-text .cbx-tip, .big-text .cbx-key { font-size: 1.1em; }
/* הכלל בשורה אחת ליד הסל — בלי מסך הוראות */
.rd-goal { display: inline-flex; align-items: center; gap: .3em; padding: .25em .75em; border-radius: 999px; background: #fff; color: #14285A; font: 600 .9rem var(--f-display); box-shadow: 0 4px 12px rgb(80 60 20 / .12); white-space: nowrap; }
.rd-goal .ic { width: 1em; height: 1em; color: #D99A00; fill: #FFC21A; }
@media (max-aspect-ratio: 4/5) { .rd-goal { font-size: .78rem; padding: .2em .6em; } }
/* כוכב זהב קטן על המקום ה־6 בסל: "כאן מקבלים חותמת" — בלי מילים */
.rd-cart li { position: relative; }
.rd-cart li.goal-slot::after { content: "★"; position: absolute; top: -.55em; inset-inline-end: -.35em; font-size: .95rem; line-height: 1; color: #D99A00; text-shadow: 0 0 0 #fff, 0 1px 2px rgb(0 0 0 / .2); pointer-events: none; }
@media (max-aspect-ratio: 4/5) { .rd-goal { display: none; } }

/* ===== פתרון מודרך: שאלה קטנה + 3 אפשרויות, והדגשה בייצוג ===== */
.rd-hint.gd { gap: .5rem; }
.gd-q { margin: 0; font-size: 1.12rem; font-weight: 600; color: #14285A; line-height: 1.45; }
.gd-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.gd-o { min-width: 4.2em; min-height: 2.8rem; padding: .3em 1em; border-radius: 14px; border: 0; background: #fff; color: #14285A; font: 600 1.25rem var(--f-display); box-shadow: 0 0 0 2px #D8C8A4, 0 4px 0 #D8C8A4; cursor: pointer; transition: transform .1s; }
.gd-o:hover { transform: translateY(-2px); }
.gd-o.yes { background: #13643E; color: #fff; box-shadow: 0 4px 0 #0E4F30; }
.gd-o.no { opacity: .4; }
.gd-fb { margin: 0; min-height: 1.2em; color: #7A4A10; font-size: .95rem; }
/* הדגשה: החלקים שסופרים / מה שכבר מסומן */
@keyframes hl-pulse { 50% { box-shadow: inset 0 0 0 3px #D99A00; } }
@keyframes hl-glow { 50% { filter: drop-shadow(0 0 6px #FFC21A); } }
.hl-parts .stp-p, .hl-parts .rm-t, .hl-parts .pk, .hl-parts .tn-row { animation: hl-pulse 1.1s ease-in-out 3; }
.hl-parts .pz-s { stroke: #D99A00; stroke-width: .03; }
.hl-parts .dl-ticks b { background: #FFC21A !important; width: 2px; }
.hl-marked .on, .hl-marked .stp-fill, .hl-marked .dl-fill, .hl-marked .pz-g.on { animation: hl-glow 1.1s ease-in-out 3; }
.no-motion .hl-parts *, .no-motion .hl-marked * { animation: none !important; }
/* דף הטיוטה: שורות החישוב של הפתרון המודרך, בכתב "עט" כחול */
.notebook { position: relative; }
.nb-demo { position: absolute; top: 3.6rem; inset-inline: 0; margin: 0; padding: 0 1.2rem; list-style: none; pointer-events: none; display: grid; gap: 0; }
.nb-demo li { font: 500 1.35rem/2.25 "Fredoka", var(--f-body); color: #2B4FB8; white-space: nowrap; overflow: hidden; animation: nb-write .9s steps(24, end) both; transform: rotate(-.6deg); }
.nb-demo li:last-child:has(bdi) { }
@keyframes nb-write { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
.no-motion .nb-demo li { animation: none; }
@media (max-aspect-ratio: 4/5) { .gd-o { min-height: 2.4rem; font-size: 1.05rem; padding: .2em .8em; } .gd-q { font-size: 1rem; } }
.nb-ph[hidden] { display: none; }
@media (max-aspect-ratio: 4/5) { .rd-guide { display: none !important; } }

/* ===== הדמות בתוך תמונת החנות: עומדת על הרצפה, בגודל פרופורציונלי ===== */
.store-guide.scene-guide { position: absolute; left: var(--gx); right: auto; inset-inline-end: auto; bottom: var(--gb); height: var(--gh); top: auto; transform: translateX(-50%); z-index: 3; display: block; }
.scene-guide img { height: 100%; width: auto; display: block; filter: drop-shadow(0 4px 4px rgb(0 0 0 / .18)); }
/* צל רך על הרצפה מתחת לרגליים */
.scene-guide::after { content: ""; position: absolute; left: 50%; bottom: -1.2%; width: 58%; height: 5%; transform: translateX(-50%); background: radial-gradient(closest-side, rgb(40 25 10 / .38), transparent); z-index: -1; }
.store-guide.scene-guide { inset-inline-start: auto; inset-inline-end: auto; right: auto; left: var(--gx); }
/* כל החנויות במסך רחב: חותכים שווה מלמעלה ומלמטה — הרצפה (ורגלי הדמות) תמיד גלויה */
@media (min-aspect-ratio: 1/1) {
  .store .scene-box { top: 50%; transform: translate(-50%, -50%); }
  .store .scene-box.zoom-in { transform: translate(-50%, -50%) scale(3.3); }
}
/* סופר: הרצפה הפנויה נמצאת רק בתחתית התמונה (לפני ערימת הסלסלות) — מעגנים לתחתית, והדמות עומדת על הרצפה הקדמית */
@media (min-aspect-ratio: 1/1) {
  .store.s-super .scene-box { top: auto; bottom: 0; transform: translate(-50%, 0); }
  .store.s-super .scene-box.zoom-in { transform: translate(-50%, 0) scale(3.3); }
}

/* כל החנויות: מעוגנות לתחתית במסך רחב — רצועת הרצפה הקדמית (שעליה עומדת הדמות) תמיד גלויה */
@media (min-aspect-ratio: 1/1) {
  .store .scene-box, .store.s-super .scene-box, .store.s-sport .scene-box, .store.s-gadgets .scene-box, .store.s-food .scene-box, .store.s-photo .scene-box { top: auto; bottom: 0; transform: translate(-50%, 0); }
  .store .scene-box.zoom-in { transform: translate(-50%, 0) scale(3.3); }
}
/* מסך המשימה והכרטיס: הדמות עומדת על קו התחתית (לא חתוכה), עם צל רך מתחת לרגליים */
.rd-guide.show { transform: none; }
.rd-guide::after, .fin-guide-wrap::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 55%; height: 14px; transform: translateX(-50%); background: radial-gradient(closest-side, rgb(60 40 10 / .3), transparent); z-index: -1; }
.rd-guide img { display: block; filter: drop-shadow(0 4px 4px rgb(0 0 0 / .15)); }
.fin-guide { bottom: 0; filter: drop-shadow(0 4px 4px rgb(0 0 0 / .15)); }
/* כרטיס לקוח מצטיין: 8 חנויות בשתי עמודות — הכרטיס לא נמתח לגובה */
.fin-card { width: min(760px, 100%); }
.fin-stores { grid-template-columns: 1fr 1fr; max-width: 600px; column-gap: 12px; }
@media (max-width: 560px) { .fin-stores { grid-template-columns: 1fr; } }
/* מונה החותמות בטלפון: שורה מלאה, כחול כהה עם כוכב זהב (בלי משטח צהוב גדול) */
.store-list .sl-stamps { grid-column: 1 / -1; flex-basis: 100%; width: 100%; box-sizing: border-box; min-height: 0; }
.store-list .sl-stamps, .store-list .sl-stamps.done { background: #14285A; color: #fff; }
.store-list .sl-stamps .ic, .store-list .sl-stamps.done .ic { color: #FFC21A; fill: #FFC21A; }
/* טלפון: הקבלה המלאה (יש מקום מתחת לשאלה), מונה החותמות קומפקטי, וקבוצות העבודה בעמודה אחת */
@media (max-aspect-ratio: 4/5) {
  .receipt .rc-l:not([hidden]) { display: flex; }
  .receipt .rc-l { font-size: .9rem; padding: 3px 0; }
  .receipt .rc-img { width: 22px; height: 22px; }
}
.store-list .sl-stamps { height: auto; min-height: 0; aspect-ratio: auto; padding: .7em 1em; border-radius: 16px; }
@media (max-width: 760px) {
  .tr-groups, .tr-errs { grid-template-columns: 1fr; }
  .teacher .t-main.tr { padding-inline: 12px; }
  .tr-card { padding: 16px; }
  .tr-head p { font-size: .92rem; }
}
@media (max-aspect-ratio: 4/5) { .screen.checkout .receipt .rc-l:not([hidden]) { display: flex; } }
.store-list { grid-auto-rows: auto; }
.teacher .t-main.tr { grid-template-columns: minmax(0, 1fr); }
.tr-card, .tr-scroll { min-width: 0; }

/* ===== לוח הגיר בפיצרייה: יושב בדיוק על המשטח השחור שבתמונה ===== */
.chalk { position: absolute; left: 25.8%; top: 3.4%; width: 48.6%; height: 19.6%; z-index: 1; pointer-events: none; overflow: visible; }
.chalk text { font-family: "Amatic SC", "Assistant", sans-serif; font-weight: 700; }
.ck-h { font-size: 64px; }
.ck-l text { font-size: 44px; }
.ck-s { font-size: 34px; }
/* פיצרייה: התמונה ממורכזת (הלוח למעלה והרצפה למטה גלויים), והדמות עומדת לפני הדלפק */
@media (min-aspect-ratio: 1/1) {
  .store.s-food .scene-box { top: 50%; bottom: auto; transform: translate(-50%, -50%); }
  .store.s-food .scene-box.zoom-in { transform: translate(-50%, -50%) scale(3.3); }
}
/* פיצרייה במסך רחב: כל התמונה גלויה מלמעלה (לוח הגיר) ועד למטה (הרצפה); בצדדים — המשך רך ומטושטש של התמונה */
@media (min-aspect-ratio: 1/1) {
  .store.s-food .scene::before { content: ""; position: absolute; inset: -30px; background: url(../assets/bg-food.webp) center / cover; filter: blur(16px) brightness(1.03); }
  .store.s-food .scene-box { width: calc(100cqh * var(--ar)); height: 100cqh; top: 0; bottom: auto; transform: translate(-50%, 0); max-width: none; }
  .store.s-food .scene-box.zoom-in { transform: translate(-50%, 0) scale(3.3); }
}
.chalk text { unicode-bidi: plaintext; }

/* פיצרייה: התמונה כמו קודם — ממורכזת ובלי שוליים מטושטשים. הכיתוב בגיר בפס הגלוי של הלוח */
@media (min-aspect-ratio: 1/1) {
  .store.s-food .scene::before { content: none; }
  .store.s-food .scene-box { width: 100cqw; height: calc(100cqw / var(--ar)); top: 50%; bottom: auto; transform: translate(-50%, -50%); }
  .store.s-food .scene-box.zoom-in { transform: translate(-50%, -50%) scale(3.3); }
}
.chalk { top: 9%; height: 13.6%; left: 26.5%; width: 47.6%; }
.ck-h { font-size: 40px; }
.ck-l text { font-size: 31px; }
.ck-s { font-size: 30px; }
/* מעבר הדלתות: פנים החנות ממוסגר בדיוק כמו מסך החנות שאחריו — בלי קפיצה */
@media (min-aspect-ratio: 1/1) {
  .door-scene .ds-interior { background-position: 50% 100%; transform-origin: 50% 100%; }
  .door-scene.ds-food .ds-interior { background-position: 50% 50%; transform-origin: 50% 50%; }
}
/* בתמונות הדמויות יש ~2.4% שקוף מתחת לנעליים — מורידים את התמונה בדיוק בזה, כך שהסוליות נוגעות ברצפה */
.scene-guide img, .rd-guide img, .co-guide, .fin-guide, .guide-spot .guide-still { transform: translateY(2.4%); }
/* פיצרייה במסך רחב: חושפים עוד 3.5% רצפה בתחתית (בלי לחתוך את הלוח), ובמסך 16:9 — בלי שינוי */
@media (min-aspect-ratio: 1/1) {
  .store.s-food .scene-box { top: auto; bottom: calc(-1 * min(3.5cqw / var(--ar), 100cqw / var(--ar) - 100cqh)); transform: translate(-50%, 0); }
  .store.s-food .scene-box.zoom-in { transform: translate(-50%, 0) scale(3.3); }
  .door-scene.ds-food .ds-interior { background-position: 50% 96.5%; transform-origin: 50% 96.5%; }
}
.chalk { top: 11.8%; height: 11.2%; }
/* הדלתות נפתחות ישר אל מסך החנות (שקוף מאחוריהן — לא תמונת פנים נפרדת) */
.door-scene.reveal { background: transparent; pointer-events: none; }
.store.arrived .scene-box { animation: none; }

/* ===== הדגשת המילה המוקראת (רק בזמן הקראה) ===== */
.sw.reading { background: #FFE58A; border-radius: 4px; box-shadow: 0 0 0 2px #FFE58A; color: #14285A; }
.frac.sw.reading { background: #FFE58A; }
/* כריזה על המסך (לנגישות: גם מי שלא שומע רואה את המבצעים) */
#toast .ic { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.2em; margin-inline-end: .4em; }

/* דוכן פתוח (פיצה ופלאפל): בלי דלתות — ההתקרבות נמשכת ונכנסים ישר לדלפק */
.store.stall-in .scene-box { animation: stallIn .7s cubic-bezier(.2,.7,.2,1) both; }
.store.stall-in { animation: stallFade .45s ease-out both; }
@keyframes stallFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes stallIn { from { scale: 1.06; } to { scale: 1; } }
@media (prefers-reduced-motion: reduce) { .store.stall-in, .store.stall-in .scene-box { animation: none; } }

/* קרדיט מוזיקה (רישיון CC BY) — שורה קטנה ושקטה בתחתית תפריט ההגדרות */
.tp-credit { margin: 6px 4px 2px; padding-top: 8px; border-top: 1px solid rgba(27,42,92,.12); font-size: 12px; line-height: 1.4; color: #5A6585; direction: ltr; text-align: right; }

/* ===== רמקול ההקראה ליד השאלה: אותו סמל, רק קצת יותר בולט (קו מתאר דק) ===== */
.rd-speak { box-shadow: inset 0 0 0 1.5px rgb(20 40 90 / .28); }
.rd-speak .ic { width: 1.35rem; height: 1.35rem; }

/* ===== המאבטח מנופף (סרטון עם רקע שקוף) — יושב בדיוק במקום התמונה הסטטית ===== */
.guard-wrap .guard-kv { position: absolute; inset: 0; pointer-events: none; }
.guard-wrap .guard-kv canvas { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 4px rgb(0 0 0 / .22)); }
.guard-wrap .guard.under-kv { opacity: 0; }

/* ===== כניסה בתוך הסצנה (3.12): בועת השומר, בחירת מלווה בתוך הקניון, פס זכוכית דק ===== */
.gate { grid-row: 1; position: relative; z-index: 5; pointer-events: none; container-type: size; transition: opacity .4s ease; }
.gate.away { opacity: 0; }
.gate button, .gate input, .gate label { pointer-events: auto; }
/* המלווים עומדים על הרחבה, בצד השני של השומר */
.gt-kids { position: absolute; inset-inline-end: 2.5cqw; bottom: 1.5cqh; height: min(40cqh, 23cqw); display: flex; align-items: flex-end; animation: gtIn .7s cubic-bezier(.2, .7, .2, 1) both .25s; }
.gt-kid { position: relative; height: 100%; aspect-ratio: 1; margin-inline: -2.2%; padding: 0; border: 0; background: none; cursor: pointer; display: flex; justify-content: center; align-items: flex-end; transform-origin: 50% 100%; transition: transform .4s cubic-bezier(.2, .7, .2, 1), opacity .4s, filter .4s; }
.gt-kid img { position: relative; height: 100%; width: auto; filter: drop-shadow(0 6px 5px rgb(0 0 0 / .22)); }
.gt-kid b { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); z-index: 1; font-family: var(--f-display); font-weight: 600; font-size: .95rem; color: #14285A; background: rgb(255 255 255 / .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: .12em .8em; border-radius: 999px; box-shadow: 0 4px 12px rgb(8 16 40 / .18); white-space: nowrap; transition: background .3s, color .3s; }
.gt-glow { position: absolute; left: 50%; bottom: 0; width: 62%; height: 12%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgb(255 196 64 / .75), rgb(255 196 64 / 0)); opacity: 0; transition: opacity .4s; }
.gt-kid:hover:not(:disabled) { transform: translateY(-1.5%); }
.gt-kid:focus-visible { outline: none; } .gt-kid:focus-visible b { box-shadow: 0 0 0 3px #FFC440; }
.gate.chosen .gt-kid:not(.on) { opacity: .6; filter: saturate(.55); transform: scale(.94); }
.gt-kid.on { transform: scale(1.03); }
.gt-kid.on .gt-glow { opacity: 1; }
.gt-kid.on b { background: #14285A; color: #fff; }
.gt-kid:disabled { cursor: default; }
/* בועת הדיבור של השומר — שני משפטים באותו מקום, מתחלפים בדהייה */
.guard-bubble { position: absolute; right: 86%; top: 3%; width: 30cqh; display: grid; margin: 0; padding: 1.4cqh 2cqh; background: #fff; border-radius: 2.2cqh; box-shadow: 0 1.2cqh 3cqh rgb(8 16 40 / .22); color: #14285A; font-family: var(--f-display); font-weight: 600; font-size: 2.4cqh; line-height: 1.25; text-align: center; transform-origin: 100% 80%; animation: bubIn .55s cubic-bezier(.2, .8, .3, 1.2) both 1.15s; transition: opacity .4s; }
.guard-bubble::after { content: ""; position: absolute; right: -1.2cqh; top: 58%; border: 1.3cqh solid transparent; border-inline-end: 0; border-left-color: #fff; }
.guard-bubble > span { grid-area: 1 / 1; transition: opacity .35s ease; }
.guard-bubble .gb-b { opacity: 0; }
.guard-bubble.b2 .gb-a { opacity: 0; } .guard-bubble.b2 .gb-b { opacity: 1; }
.guard-bubble:has(.gb-b:empty) .gb-b { display: none; }
@keyframes bubIn { from { opacity: 0; transform: scale(.85) translateY(1cqh); } }
@keyframes gtIn { from { opacity: 0; transform: translateY(14px); } }
.entrance:has(.gate.away) .guard-bubble, .entrance .scene-box.walking .guard-bubble { opacity: 0; }
/* פס הזכוכית: יושב במקום קבוע; לפני הבחירה הוא שקוף ולא תופס מקום — שום דבר לא זז כשהוא מופיע */
.gt-bar { position: absolute; left: 51cqw; bottom: 10cqh; width: clamp(360px, 34cqw, 540px); transform: translate(-50%, 10px); padding: 10px 10px 8px; border-radius: 20px; background: rgb(255 255 255 / .74); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border: 1px solid rgb(255 255 255 / .75); box-shadow: 0 18px 50px rgb(8 16 40 / .28); opacity: 0; visibility: hidden; transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .45s; }
.gt-bar.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .45s ease, transform .45s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.gt-bar, .gt-bar * { pointer-events: auto; }
.gt-row { display: flex; align-items: flex-end; gap: 8px; }
.gt-f { flex: 1; min-width: 0; display: grid; gap: 3px; font-size: .74rem; font-weight: 600; color: #3B4A6B; }
.gt-f.gt-name { flex: 1.6; }
.gt-f span { padding-inline-start: .3em; }
.gt-f input { width: 100%; height: 2.6rem; border-radius: 12px; border: 1.5px solid rgb(20 40 90 / .16); background: rgb(255 255 255 / .92); padding-inline: .7em; font-size: 1.02rem; font-weight: 700; color: #14285A; text-align: center; transition: border-color .2s, box-shadow .2s; }
.gt-f input[name="cls"], .gt-f input[name="pin"] { direction: ltr; letter-spacing: .1em; }
.gt-f input::placeholder { color: #9AA3B8; font-weight: 500; letter-spacing: 0; }
.gt-f input:focus { outline: none; border-color: #14285A; box-shadow: 0 0 0 3px rgb(255 196 64 / .55); }
.gt-go { flex: none; height: 2.6rem; display: inline-flex; align-items: center; gap: .35em; padding: 0 1em 0 .8em; border: 0; border-radius: 12px; background: #14285A; color: #fff; font-family: var(--f-display); font-weight: 600; font-size: 1rem; cursor: pointer; box-shadow: 0 3px 0 #0A1636, 0 8px 18px rgb(10 22 54 / .3); transition: background .2s, transform .15s; }
.gt-go:hover { background: #1E3A7A; } .gt-go:active { transform: translateY(2px); box-shadow: 0 1px 0 #0A1636; }
.gt-go .ic { width: 1.15em; height: 1.15em; }
.gt-who { flex: 1; display: flex; align-items: center; gap: .45em; margin: 0; height: 2.6rem; padding-inline: .6em; font-weight: 700; color: #14285A; }
.gt-who .ic { width: 1.2em; height: 1.2em; opacity: .7; }
.gt-note { margin: 6px 0 0; font-size: .7rem; color: #5B6680; text-align: center; }
/* הודעת שגיאה: מרחפת מעל הפס, לא דוחפת אותו */
.gt-msg { position: absolute; bottom: calc(100% + 8px); inset-inline: 12px; margin: 0; padding: .45em .9em; border-radius: 12px; background: #9B2C2C; color: #fff; font-size: .85rem; font-weight: 600; text-align: center; box-shadow: 0 8px 20px rgb(80 10 10 / .25); opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; pointer-events: none; }
.gt-msg.show { opacity: 1; transform: none; }
/* אורחים / מורה: קישורים קטנים מתחת לפס */
.gt-links { position: absolute; left: 51cqw; bottom: 2.6cqh; transform: translateX(-50%); display: flex; align-items: center; gap: .5em; padding: .3em .9em; border-radius: 999px; background: rgb(255 255 255 / .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #6B7590; font-size: .82rem; white-space: nowrap; animation: gtIn .7s ease both .5s; }
.gt-link { display: inline-flex; align-items: center; gap: .3em; padding: .15em .2em; border: 0; background: none; color: #14285A; font-weight: 600; font-size: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: rgb(20 40 90 / .25); text-underline-offset: 3px; }
.gt-link:hover { text-decoration-color: #14285A; }
.gt-link .ic { width: 1.05em; height: 1.05em; }
.gt-link small { color: #6B7590; font-weight: 500; }
/* מורה: אין מלווים — הפס במרכז */
.gate.g-teacher .gt-bar { left: 45cqw; }
.gate.g-teacher .gt-links { left: 45cqw; }
/* מסך צר/לאורך: הכניסה יורדת למגירה לבנה בתחתית, המלווים כשני כפתורים קטנים */
@media (max-aspect-ratio: 4/5) {
  .gate { grid-row: 2; container-type: normal; display: grid; gap: 10px; padding: 14px 14px 12px; margin-top: -1.2rem; background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 30px rgb(8 16 40 / .18); pointer-events: auto; }
  .gt-kids { position: static; height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; animation: none; }
  .gt-kid { height: 5.4rem; aspect-ratio: auto; margin: 0; border-radius: 16px; background: #F3F5FA; overflow: hidden; }
  .gt-kid img { height: 112%; margin-bottom: -12%; }
  .gate.chosen .gt-kid:not(.on) { transform: none; }
  .gt-kid.on { transform: none; box-shadow: inset 0 0 0 2px #14285A; }
  .gt-bar, .gt-bar.on { position: relative; left: auto; bottom: auto; width: auto; transform: none; opacity: 1; visibility: visible; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .gt-links { position: static; transform: none; justify-self: center; background: none; backdrop-filter: none; animation: none; }
  .guard-bubble { font-size: 2cqh; width: 26cqh; }
}
/* המלווים קרובים זה לזה (בתמונות יש שוליים שקופים), והלא־נבחר רק מתעמעם קצת */
.gt-kid { margin-inline: calc(-.17 * min(40cqh, 23cqw)); }
.gt-kids { inset-inline-end: 1cqw; }
.gate.chosen .gt-kid:not(.on) { opacity: .78; filter: saturate(.7); }
@media (max-aspect-ratio: 4/5) { .gt-kid { margin: 0; } }
.guard-bubble { width: 33cqh; text-wrap: balance; }
.guard-bubble > span { align-self: center; }
.guard-bubble:has(.gb-b:empty) { width: max-content; max-width: 33cqh; }
/* במצב "שמחים שחזרת" הכפתורים נעולים — בלי העמעום הכללי של כפתור מושבת */
.gate .gt-kid:disabled { opacity: 1; }
.gate.chosen .gt-kid:not(.on):disabled { opacity: .78; }
@media (max-aspect-ratio: 4/5) {
  .entrance { grid-template-rows: minmax(0, 1fr) auto; }
  .gate { align-content: start; }
  .guard-bubble { display: none; } /* בטלפון השומר מחוץ לפריים — אין למי לשייך את הבועה */
  .gt-kid img { height: 165%; margin-bottom: -62%; }
}
@media (max-aspect-ratio: 4/5) {
  .gt-kid img { position: absolute; left: 50%; bottom: -58%; height: 165%; margin: 0; transform: translateX(-50%); }
}
/* ===== בחירת מלווה בתוך בועת השומר (3.12, דורית: "בתוך תיבת הדיבור... בריבועים"; בלי עמעום דמויות) ===== */
.guard-bubble { display: grid; gap: 1.2cqh; pointer-events: auto; }
.guard-bubble .gb-t { display: grid; margin: 0; }
.guard-bubble .gb-t > span { grid-area: 1 / 1; align-self: center; transition: opacity .35s ease; }
.guard-bubble.gb-pick { top: auto; bottom: 79%; width: 36cqh; padding: 1.6cqh; border-radius: 2.6cqh; }
.guard-bubble.gb-pick::after { top: auto; bottom: 3.2cqh; }
.gb-kids { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2cqh; }
.gb-kids .gt-kid { position: relative; height: auto; aspect-ratio: 1; margin: 0; padding: 0; border: 0; border-radius: 1.8cqh; overflow: hidden; cursor: pointer; display: block; transform: none; opacity: 1; filter: none; box-shadow: inset 0 0 0 .2cqh rgb(20 40 90 / .08); transition: box-shadow .25s, transform .2s; }
.gb-kids .k-girl { background: linear-gradient(180deg, #EAF8F5, #CDEDE7); }
.gb-kids .k-boy { background: linear-gradient(180deg, #EEF2FB, #D3DDF3); }
.gb-kids .gt-kid img { position: absolute; left: 50%; bottom: -16%; height: 122%; width: auto; transform: translateX(-50%); filter: none; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.gb-kids .gt-kid:hover img { transform: translateX(-50%) translateY(-3%); }
.gb-kids .gt-kid b { bottom: .8cqh; font-size: 1.9cqh; padding: .15em .9em; }
.gb-kids .gt-kid.on { box-shadow: 0 0 0 .35cqh #14285A, 0 0 0 .9cqh rgb(255 196 64 / .6); }
.gb-kids .gt-kid:focus-visible { outline: none; box-shadow: 0 0 0 .35cqh #14285A; }
.gt-check { position: absolute; top: .8cqh; inset-inline-start: .8cqh; width: 2.6cqh; height: 2.6cqh; border-radius: 50%; background: #14285A; color: #fff; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; }
.gt-check .ic { width: 60%; height: 60%; }
.gt-kid.on .gt-check { opacity: 1; transform: none; }
/* במסך רחב הריבועים בבועה — אין דמויות על הרחבה */
.gate .gt-kids { display: none; }
@media (max-aspect-ratio: 4/5) {
  .gate .gt-kids { display: grid; }
  .gt-kids .gt-check { width: 1.4rem; height: 1.4rem; top: .4rem; }
}
.gb-kids .gt-kid img { height: 150%; bottom: -36%; }
@media (max-aspect-ratio: 4/5) { .guard-bubble { display: none; } }
/* הדמויות שלמות בתוך הריבוע (מהראש עד הרגליים), והשם מתחת לרגליים — בלי חיתוך */
.gb-kids .gt-kid { aspect-ratio: 5 / 6; }
.gb-kids .gt-kid img { height: 78%; bottom: 18%; }
.guard-bubble.gb-pick { bottom: 70%; }
@media (max-aspect-ratio: 4/5) {
  /* גם בטלפון — דמות שלמה: הדמות בצד אחד של הכפתור והשם בצד השני */
  .gt-kids .gt-kid img { height: 94%; bottom: 3%; left: 30%; }
  .gt-kids .gt-kid b { left: 68%; bottom: 50%; transform: translate(-50%, 50%); }
}
/* זנב בועת הדיבור — יוצא מהבועה אל פי השומר. (הזנב הקודם נעלם: border-inline-end בעברית = הצד השמאלי) */
.guard-bubble::after { content: ""; position: absolute; top: auto; right: -4.2cqh; bottom: 5.5cqh; width: 5cqh; height: 3.6cqh; border: 0; background: #fff; clip-path: polygon(0 0, 100% 62%, 0 100%); }
.guard-bubble:not(.gb-pick)::after { bottom: auto; top: 50%; transform: translateY(-30%); }
.guard-bubble.gb-pick::after { right: -5.4cqh; bottom: 8cqh; width: 6cqh; height: 4.6cqh; clip-path: polygon(0 0, 100% 45%, 0 100%); }
/* סרטון הפתיחה מיוטיוב */
.tf-hold { background: #000 url(../assets/video/trailer-poster.webp) center/cover; }
.tf-hold iframe, .tf-yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
