:root {
  --sky-top: #86d2f6;
  --sky-mid: #bfe8fb;
  --sky-low: #e4f6ff;
  --sun: #ffd35c;
  --sea: #39b8ee;
  --sea-light: #79cff4;
  --sea-deep: #1d8bc8;
  --sea-dark: #136ca2;
  --sand: #ffdea6;
  --sand-deep: #f1b665;
  --grass: #4cc883;
  --grass-deep: #2c9f5f;
  --brand: #f48120;
  --brand-light: #ffa04a;
  --brand-deep: #cf5f08;
  --ink: #1f3440;
  --ink-soft: #55707e;
  --paper: #fffaf2;
  --paper-deep: #f3ebde;
  --blush: #ff8fb1;
  --night: #1d2c63;
  --night-deep: #120f38;
  --violet: #5a3ea6;
  --gold: #ffc83d;
  --display: "Baloo Bhaijaan 2", "Alexandria", "Segoe UI", Tahoma, sans-serif;
  --body: "Alexandria", "Segoe UI", Tahoma, Arial, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--sky-low);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
svg { display: block; }
[hidden] { display: none !important; }

.screen { position: fixed; inset: 0; display: flex; flex-direction: column; overflow: hidden; }

.world { background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 22%, var(--sky-low) 38%); }

.sky { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.sun {
  position: absolute;
  top: calc(84px + var(--safe-t));
  left: 7%;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #fff6c8, var(--sun) 62%);
  box-shadow: 0 0 0 12px rgba(255, 211, 92, .22), 0 0 0 26px rgba(255, 211, 92, .1);
  animation: sunGlow 6s ease-in-out infinite;
}

.cloud {
  position: absolute;
  left: -170px;
  width: 130px;
  height: 42px;
  border-radius: 40px;
  background: #fff;
  opacity: .95;
  animation: drift var(--dur, 80s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: #fff; }
.cloud::before { width: 60px; height: 60px; top: -28px; left: 22px; }
.cloud::after { width: 44px; height: 44px; top: -18px; left: 68px; }

.sea {
  position: absolute;
  left: 0;
  right: 0;
  top: 36%;
  bottom: 0;
  background: linear-gradient(180deg, var(--sea) 0%, var(--sea-deep) 58%, var(--sea-dark) 100%);
}
.sea::before, .sea::after {
  content: "";
  position: absolute;
  left: 0;
  width: calc(100% + 120px);
  height: 26px;
  background-repeat: repeat-x;
  background-size: 120px 26px;
  animation: waves 18s linear infinite;
}
.sea::before {
  top: -30px;
  opacity: .9;
  animation-duration: 26s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 26'%3E%3Cpath d='M0 14q15-12 30 0t30 0 30 0 30 0V26H0z' fill='%2379cff4'/%3E%3C/svg%3E");
}
.sea::after {
  top: -22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 26'%3E%3Cpath d='M0 14q15-12 30 0t30 0 30 0 30 0V26H0z' fill='%2339b8ee'/%3E%3C/svg%3E");
}

.glint {
  position: absolute;
  width: 26px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .55);
  animation: glint 4s ease-in-out infinite;
}

.topbar {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(14px + var(--safe-t)) max(16px, var(--safe-r)) 4px max(16px, var(--safe-l));
}

.title { display: grid; gap: 2px; min-width: 0; }
.home-link { font-size: 12px; font-weight: 700; color: var(--ink-soft); text-decoration: none; letter-spacing: .02em; }
.title-row { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; }
.brand-home { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--paper); box-shadow: 0 4px 0 rgba(31, 52, 64, .14); }
.brand-home img { width: 30px; height: 30px; }
.lang-link { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 12px; border-radius: 999px; background: rgba(255, 255, 255, .7); font-size: 12px; font-weight: 700; color: var(--ink); text-decoration: none; }
[dir="ltr"] #back-btn svg { transform: scaleX(-1); }
.title h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.05;
  white-space: nowrap;
  color: var(--ink);
  text-shadow: 0 3px 0 rgba(255, 255, 255, .75);
}

.top-actions { display: flex; gap: 8px; align-items: center; flex: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 4px 0 rgba(31, 52, 64, .14);
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}
.pill svg { width: 24px; height: 24px; fill: var(--gold); }
.pill small { font-size: 13px; color: var(--ink-soft); }

.round {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  box-shadow: 0 4px 0 rgba(31, 52, 64, .14);
  flex: none;
}
.round svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.round:active, .pill:active, .btn:active, .island:active .art { transform: translateY(2px); }

.sound-off .wave-on { display: none; }
.sound-on .wave-off { display: none; }

.map { position: relative; z-index: 3; flex: 1; width: min(100%, 540px); margin: 0 auto; }
.map-path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-path path {
  fill: none;
  stroke: rgba(255, 255, 255, .9);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 1 12;
  vector-effect: non-scaling-stroke;
}

.island {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(124px, 36vw, 172px);
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 2px;
  animation: rise .9s cubic-bezier(.2, 1.4, .4, 1) both;
  animation-delay: var(--d);
}
.island .art { width: 100%; animation: bob 5.2s ease-in-out infinite; animation-delay: var(--b); }
.island .name {
  position: relative;
  z-index: 1;
  margin-top: -10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(15px, 4.4vw, 19px);
  line-height: 1.25;
  padding: 3px 14px 5px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 4px 0 rgba(19, 108, 162, .4);
  white-space: nowrap;
}
.island .stars { display: flex; gap: 2px; }
.island .stars svg { width: 19px; height: 19px; fill: rgba(255, 255, 255, .5); }
.island .stars .on svg { fill: var(--gold); filter: drop-shadow(0 2px 0 rgba(160, 100, 0, .35)); }
.island .halo {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 92%;
  aspect-ratio: 2.4;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .85);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
}
.island.next .halo { animation: halo 2.2s ease-out infinite; }

.ic-flame { transform-box: fill-box; transform-origin: 50% 0%; animation: flame .22s ease-in-out infinite alternate; }
.ic-wing { transform-box: fill-box; transform-origin: 50% 100%; animation: flap .16s ease-in-out infinite alternate; }
.ic-spark { transform-box: fill-box; transform-origin: center; animation: twinkle 1.8s ease-in-out infinite; }
.ic-sail { transform-box: fill-box; transform-origin: 0% 100%; animation: sail 2.6s ease-in-out infinite; }

.guide {
  position: absolute;
  z-index: 5;
  left: max(8px, var(--safe-l));
  bottom: calc(6px + var(--safe-b));
  display: flex;
  align-items: flex-end;
  gap: 2px;
  max-width: min(66%, 380px);
  pointer-events: none;
}
.guide .mascot { width: 104px; height: 104px; flex: none; animation: popIn .8s .9s cubic-bezier(.2, 1.5, .4, 1) both; }
.bubble {
  margin: 0 0 62px;
  background: var(--paper);
  padding: 10px 14px 12px;
  border-radius: 20px 20px 20px 6px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.65;
  box-shadow: 0 6px 0 rgba(19, 108, 162, .28);
  animation: popIn .6s 1.3s cubic-bezier(.2, 1.5, .4, 1) both;
}

.mascot { overflow: visible; }
.m-shadow { fill: rgba(16, 60, 90, .2); }
.m-arm { fill: none; stroke: #e9701a; stroke-width: 10; stroke-linecap: round; }
.m-shine { fill: #fff; opacity: .24; }
.m-wave { fill: none; stroke: #4db1e0; stroke-width: 5; stroke-linecap: round; animation: soundWave 1.8s ease-in-out infinite; }
.m-wave.w2 { animation-delay: .3s; }
.m-cheeks ellipse { fill: var(--blush); opacity: .75; }
.m-puffs { opacity: 0; transform-box: fill-box; transform-origin: center; }
.m-puffs circle { fill: #ffa04a; stroke: #e9701a; stroke-width: 2.5; }
.m-white { fill: #fff; }
.m-pupil { fill: var(--ink); }
.m-glint { fill: #fff; }
.m-eyes { transform-box: fill-box; transform-origin: center; animation: blink 4.6s infinite; }
.m-mouth { display: none; }
.m-smile path, .m-puff path { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
.m-hole { fill: #5a1f2e; }
.m-tooth { fill: #fff; }
.m-lips { fill: #e2557a; }
.m-tng { fill: #ff7d9c; }
.m-bodywrap { transform-box: fill-box; transform-origin: 50% 100%; }
.mascot:not([data-face]) .m-smile,
.mascot[data-face="smile"] .m-smile,
.mascot[data-face="cheer"] .m-big,
.mascot[data-face="big"] .m-big,
.mascot[data-face="kiss"] .m-kiss,
.mascot[data-face="puff"] .m-puff,
.mascot[data-face="tongue"] .m-tongue,
.mascot[data-face="up"] .m-up,
.mascot[data-face="side"] .m-side { display: inline; }
.mascot[data-face="puff"] .m-puffs { opacity: 1; animation: puff 1.2s ease-in-out infinite; }
.mascot[data-face="puff"] .m-cheeks { opacity: 0; }
.mascot[data-face="kiss"] .m-kiss { transform-box: fill-box; transform-origin: center; animation: kiss 1s ease-in-out infinite; }
.mascot[data-face="tongue"] .m-tng, .mascot[data-face="up"] .m-tng { transform-box: fill-box; transform-origin: 50% 0%; animation: tongue 1.1s ease-in-out infinite; }
.mascot[data-face="up"] .m-tng { transform-origin: 50% 100%; }
.m-sidetng { animation: side 1.2s ease-in-out infinite; }
.mascot[data-face="cheer"] .m-bodywrap { animation: hop .7s ease-in-out infinite; }
.mascot[data-face="cheer"] .m-arm-r { transform-box: fill-box; transform-origin: 0% 100%; animation: armR .35s ease-in-out infinite alternate; }
.mascot[data-face="cheer"] .m-arm-l { transform-box: fill-box; transform-origin: 100% 100%; animation: armL .35s ease-in-out infinite alternate; }

.play { background: var(--sky-low); }

.playbar {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(10px + var(--safe-t)) max(14px, var(--safe-r)) 10px max(14px, var(--safe-l));
  background: var(--paper);
  box-shadow: 0 3px 0 rgba(31, 52, 64, .08);
}
.playtitle { flex: 1; min-width: 0; display: grid; gap: 4px; }
.playtitle h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 23px; line-height: 1.15; }
.levels { display: flex; gap: 6px; flex-wrap: wrap; }
.lv {
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #e9f1f5;
  color: var(--ink-soft);
}
.lv.done { background: #fff0c2; color: #8a5a00; }
.lv.on { background: var(--brand); color: #fff; }
.lv:disabled { opacity: .45; cursor: default; }

.stage { position: relative; flex: 1; min-height: 0; overflow: hidden; }

.coach {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px max(14px, var(--safe-r)) calc(14px + var(--safe-b)) max(14px, var(--safe-l));
  background: var(--paper);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -4px 0 rgba(31, 52, 64, .06);
}
.coach-face { width: 70px; height: 70px; flex: none; }
.coach-face .mascot { width: 100%; height: 100%; }
.coach-body { flex: 1; min-width: 0; display: grid; gap: 8px; }
.coach-say { margin: 0; font-weight: 700; font-size: 16px; line-height: 1.65; }
.coach-say.in { animation: sayIn .35s ease both; }
.coach-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.coach-actions:empty { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 16px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1;
  text-decoration: none;
}
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 5px 0 var(--brand-deep); }
.btn.ghost { background: #eaf2f6; color: var(--ink); box-shadow: 0 5px 0 #cfdde5; }

.scene { position: absolute; inset: 0; overflow: hidden; }

.boat-scene { background: linear-gradient(180deg, #9cdbf8 0%, #d5f1ff 48%, #fff0da 60%); touch-action: none; }
.bs-sun { position: absolute; top: 20%; left: 10%; width: 54px; height: 54px; border-radius: 50%; background: radial-gradient(circle at 38% 38%, #fff6c8, var(--sun) 62%); box-shadow: 0 0 0 10px rgba(255, 211, 92, .2); }
.bs-cloud { position: absolute; top: 30%; right: -170px; width: 120px; height: 38px; border-radius: 40px; background: #fff; animation: driftBack 46s linear infinite; }
.bs-cloud::before { content: ""; position: absolute; width: 52px; height: 52px; border-radius: 50%; background: #fff; top: -24px; left: 20px; }
.bs-sea { position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: linear-gradient(180deg, var(--sea), var(--sea-deep)); }
.bs-wave { position: absolute; left: 0; width: calc(100% + 110px); height: 24px; background-repeat: repeat-x; background-size: 110px 24px; animation: wavesShort 6s linear infinite; }
.bs-wave.a { top: -26px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 24'%3E%3Cpath d='M0 13q14-11 27.5 0t27.5 0 27.5 0 27.5 0V24H0z' fill='%2379cff4'/%3E%3C/svg%3E"); }
.bs-wave.b { top: -16px; animation-duration: 9s; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 24'%3E%3Cpath d='M0 13q14-11 27.5 0t27.5 0 27.5 0 27.5 0V24H0z' fill='%2339b8ee'/%3E%3C/svg%3E"); }
.bs-goal { position: absolute; z-index: 2; left: 1%; bottom: calc(42% - 34px); width: 42%; max-width: 250px; }
.bs-boat { position: absolute; z-index: 3; right: 4%; bottom: calc(42% - 46px); width: 32%; max-width: 180px; transform-origin: 50% 90%; will-change: transform; }
.bs-boat-in { animation: rock 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
.bs-boat.arrived .bs-boat-in { animation: arrive .7s ease both; }
.bs-wind { position: absolute; inset: 22% 0 44% 0; opacity: 0; pointer-events: none; }
.bs-wind i { position: absolute; right: -40%; height: 5px; width: 30%; border-radius: 5px; background: rgba(255, 255, 255, .95); animation: gust 1.1s linear infinite; }
.bs-wind i:nth-child(1) { top: 8%; animation-delay: 0s; }
.bs-wind i:nth-child(2) { top: 26%; animation-delay: .35s; width: 22%; }
.bs-wind i:nth-child(3) { top: 44%; animation-delay: .7s; }
.bs-wind i:nth-child(4) { top: 62%; animation-delay: .15s; width: 18%; }
.bs-wind i:nth-child(5) { top: 80%; animation-delay: .55s; width: 26%; }

.hud { position: absolute; top: 14px; left: max(16px, var(--safe-l)); right: max(16px, var(--safe-r)); display: flex; align-items: center; gap: 10px; }
.track { position: relative; flex: 1; height: 16px; border-radius: 999px; background: rgba(255, 255, 255, .75); box-shadow: inset 0 2px 0 rgba(0, 0, 0, .06); overflow: hidden; }
.track .fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(270deg, var(--grass), var(--brand)); transform-origin: 100% 50%; transform: scaleX(0); }
.breath { position: relative; width: 52px; height: 52px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .7); display: grid; place-items: center; }
.breath span { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, #ffffff 30%, #a9e2fb); transform: scale(.3); }
.breath b { position: relative; font-size: 11px; font-weight: 700; color: var(--ink-soft); }

.rocket-scene { background: linear-gradient(180deg, var(--night-deep) 0%, var(--night) 48%, var(--violet) 100%); touch-action: none; }
.rs-stars { position: absolute; left: 0; right: 0; top: -120%; bottom: 0; will-change: transform; pointer-events: none; }
.rs-stars.far {
  opacity: .7;
  background-image: radial-gradient(1.6px 1.6px at 12% 18%, #fff 50%, transparent 55%), radial-gradient(1.4px 1.4px at 62% 44%, #fff 50%, transparent 55%), radial-gradient(1.8px 1.8px at 84% 12%, #fff 50%, transparent 55%), radial-gradient(1.2px 1.2px at 36% 76%, #fff 50%, transparent 55%);
  background-size: 170px 170px;
}
.rs-stars.near {
  background-image: radial-gradient(2.6px 2.6px at 24% 30%, #fff6c8 50%, transparent 55%), radial-gradient(2.2px 2.2px at 74% 70%, #fff 50%, transparent 55%), radial-gradient(3px 3px at 50% 8%, #ffd35c 50%, transparent 55%);
  background-size: 240px 240px;
}
.rs-planet { position: absolute; top: 4%; left: 50%; width: 46%; max-width: 230px; transform: translateX(-50%); animation: float 6s ease-in-out infinite; }
.rs-rocket { position: absolute; left: 50%; bottom: 4%; width: 21%; max-width: 110px; will-change: transform; transform: translateX(-50%); }
.rs-rocket .flame { transform-box: fill-box; transform-origin: 50% 0%; transform: scaleY(var(--f, .25)); }
.rs-rocket.landed .rs-rocket-in { animation: landed .8s ease both; }
.rs-voices { position: absolute; inset: 0; pointer-events: none; }
.rs-voices span { position: absolute; font-family: var(--display); font-weight: 800; font-size: 34px; color: var(--gold); text-shadow: 0 3px 0 rgba(0, 0, 0, .25); animation: voiceUp 1.5s ease-out forwards; }
.vtrack { position: absolute; right: max(14px, var(--safe-r)); top: 16%; bottom: 10%; width: 14px; border-radius: 999px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.vtrack .fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(0deg, var(--brand), var(--gold)); transform-origin: 50% 100%; transform: scaleY(0); }
.voice-meter { position: absolute; left: max(14px, var(--safe-l)); top: 16%; width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .14); display: grid; place-items: center; }
.voice-meter span { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, #ffe9a8 25%, rgba(255, 200, 61, .2)); transform: scale(.3); }
.voice-meter b { position: relative; color: #fff; font-family: var(--display); font-size: 20px; }

.bee-scene { background: linear-gradient(180deg, #bde7fb 0%, #e8f8ff 34%, #d4f3c3 35%, #b9e7a0 100%); touch-action: none; }
.bee-scene .field { position: absolute; inset: 0; width: 100%; height: 100%; }
.road-edge { fill: none; stroke: #e2c07f; stroke-width: 54; stroke-linecap: round; stroke-linejoin: round; opacity: .5; }
.road { fill: none; stroke: #fff7da; stroke-width: 44; stroke-linecap: round; stroke-linejoin: round; }
.road-dash { fill: none; stroke: #d7b26a; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 2 14; }
.trail { fill: none; stroke: var(--brand); stroke-width: 20; stroke-linecap: round; stroke-linejoin: round; }
.glyph { font-family: var(--display); font-weight: 800; font-size: 120px; fill: rgba(31, 52, 64, .1); }
.bee-in { transform-box: fill-box; transform-origin: center; }
.bee.lost .bee-in { animation: shake .45s ease; }
.bee .wing { transform-box: fill-box; transform-origin: 50% 100%; animation: flap .12s ease-in-out infinite alternate; }
.dot-target { transform-box: fill-box; transform-origin: center; animation: dotPulse 1.1s ease-in-out infinite; cursor: pointer; }
.start-ring { fill: none; stroke: var(--brand); stroke-width: 4; transform-box: fill-box; transform-origin: center; animation: ringOut 1.6s ease-out infinite; }

.face-scene {
  background: radial-gradient(circle at 50% 18%, #fff6e8, #ffe4c6 58%, #ffd2a9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px max(16px, var(--safe-r)) 14px max(16px, var(--safe-l));
}
.mirror { position: relative; width: min(72vw, 44vh, 330px); aspect-ratio: 1; border-radius: 50%; padding: 14px; background: conic-gradient(from 0deg, #ff9a3d, #ffc83d, #4db1e0, #ff8fb1, #ff9a3d); box-shadow: 0 10px 0 rgba(160, 80, 20, .2); }
.glass { position: relative; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, #e2f5ff, #bfe2f5); }
.glass video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.glass::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255, 255, 255, .38), transparent 42%); pointer-events: none; }
.mirror-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 26px; text-align: center; font-weight: 700; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.mirror-empty p { margin: 0; }
.bulbs { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.bulbs circle { fill: #fff8cc; animation: bulb 1.6s ease-in-out infinite; }
.hold-ring { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); transform: rotate(-90deg); pointer-events: none; overflow: visible; }
.hold-ring circle { fill: none; stroke: var(--grass); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 302; stroke-dashoffset: 302; opacity: 0; }
.hold-ring.go circle { opacity: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 3s linear; }
.count { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: clamp(56px, 18vw, 96px); color: #fff; text-shadow: 0 5px 0 rgba(0, 0, 0, .28); pointer-events: none; }
.count:empty { display: none; }
.count.tick { animation: countPop .7s ease both; }
.demo { display: flex; align-items: center; gap: 12px; }
.demo .mascot { width: min(28vw, 15vh, 120px); height: auto; flex: none; }
.move { display: grid; gap: 2px; }
.move-step { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.move-name { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 6vw, 28px); line-height: 1.2; }

.celebrate { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(18, 40, 58, .5); }
.confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -24px; left: var(--x); width: 10px; height: 16px; border-radius: 3px; background: var(--c); animation: fall var(--t) cubic-bezier(.3, .5, .6, 1) forwards; animation-delay: var(--d); }
.cele-card {
  position: relative;
  width: min(100%, 380px);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 20px 22px;
  border-radius: 30px;
  background: var(--paper);
  text-align: center;
  box-shadow: 0 14px 0 rgba(0, 0, 0, .14);
  animation: cardIn .55s cubic-bezier(.2, 1.4, .4, 1) both;
}
.cele-card .mascot { width: 128px; height: 128px; margin-top: -78px; }
.cele-card h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 38px; line-height: 1.1; color: var(--brand); }
.cele-card p { margin: 0; font-weight: 700; font-size: 16px; line-height: 1.7; }
.cele-stars { display: flex; gap: 8px; direction: rtl; }
.cele-stars svg { width: 46px; height: 46px; fill: #e8e1d4; }
.cele-stars .on svg { fill: var(--gold); filter: drop-shadow(0 3px 0 rgba(160, 100, 0, .3)); }
.cele-stars .new { animation: starPop .8s .35s cubic-bezier(.2, 1.6, .4, 1) both; }
.cele-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 6px; }

.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(18, 40, 58, .5); }
.sheet-card {
  position: relative;
  width: min(100%, 580px);
  max-height: 88vh;
  overflow-y: auto;
  padding: 22px max(18px, var(--safe-r)) calc(24px + var(--safe-b)) max(18px, var(--safe-l));
  border-radius: 30px 30px 0 0;
  background: var(--paper);
  animation: sheetUp .35s ease both;
  -webkit-user-select: text;
  user-select: text;
}
.sheet-card h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 28px; }
.sheet-card .lead { margin: 0 0 14px; line-height: 1.8; color: var(--ink-soft); }
.sheet-close { position: absolute; top: 16px; left: max(16px, var(--safe-l)); }
[dir="ltr"] .sheet-close { left: auto; right: max(16px, var(--safe-r)); }
.tips { display: grid; gap: 10px; }
.tip { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: start; padding: 12px; border-radius: 20px; background: #fff; border: 2px solid var(--paper-deep); }
.tip.focus { border-color: var(--brand); }
.tip-art { width: 54px; }
.tip h4 { margin: 0 0 4px; font-family: var(--display); font-weight: 800; font-size: 19px; }
.tip p { margin: 0; font-size: 14px; line-height: 1.75; }
.tip p + p { margin-top: 4px; color: var(--ink-soft); }
.note { margin: 14px 0; padding: 12px 14px; border-radius: 16px; background: #eef7fb; font-size: 14px; line-height: 1.8; }

@keyframes sunGlow { 0%, 100% { box-shadow: 0 0 0 12px rgba(255, 211, 92, .22), 0 0 0 26px rgba(255, 211, 92, .1); } 50% { box-shadow: 0 0 0 16px rgba(255, 211, 92, .26), 0 0 0 34px rgba(255, 211, 92, .1); } }
@keyframes drift { from { transform: translateX(0) scale(var(--s, 1)); } to { transform: translateX(calc(100vw + 340px)) scale(var(--s, 1)); } }
@keyframes driftBack { from { transform: translateX(0); } to { transform: translateX(calc(-100vw - 340px)); } }
@keyframes waves { to { transform: translateX(-120px); } }
@keyframes wavesShort { to { transform: translateX(-110px); } }
@keyframes glint { 0%, 100% { opacity: 0; transform: scaleX(.4); } 50% { opacity: 1; transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translate(-50%, -20%) scale(.6); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-7px) rotate(1deg); } }
@keyframes halo { 0% { opacity: .9; transform: translate(-50%, -50%) scale(.85); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.25); } }
@keyframes flame { from { transform: scaleY(.8); } to { transform: scaleY(1.15); } }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.55); } }
@keyframes twinkle { 0%, 100% { transform: scale(.6) rotate(0); opacity: .6; } 50% { transform: scale(1.1) rotate(20deg); opacity: 1; } }
@keyframes sail { 0%, 100% { transform: skewX(0); } 50% { transform: skewX(-4deg); } }
@keyframes popIn { from { opacity: 0; transform: translateY(24px) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes soundWave { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes blink { 0%, 90%, 100% { transform: scaleY(1); } 93% { transform: scaleY(.08); } }
@keyframes puff { 0%, 100% { transform: scale(.9); } 50% { transform: scale(1.1); } }
@keyframes kiss { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes tongue { 0%, 100% { transform: scaleY(.75); } 50% { transform: scaleY(1.1); } }
@keyframes side { 0%, 100% { transform: translateX(-26px); } 50% { transform: translateX(8px); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes armR { from { transform: rotate(0); } to { transform: rotate(-28deg); } }
@keyframes armL { from { transform: rotate(0); } to { transform: rotate(28deg); } }
@keyframes sayIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes rock { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(3deg) translateY(-5px); } }
@keyframes arrive { 0% { transform: translateY(0); } 40% { transform: translateY(-18px) rotate(-4deg); } 100% { transform: translateY(0); } }
@keyframes gust { from { transform: translateX(0); } to { transform: translateX(-170vw); } }
@keyframes float { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-8px); } }
@keyframes landed { 0% { transform: translateY(0); } 50% { transform: translateY(-10px) rotate(4deg); } 100% { transform: translateY(0); } }
@keyframes voiceUp { from { opacity: 1; transform: translateY(0) scale(.7); } to { opacity: 0; transform: translateY(-140px) scale(1.2); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes dotPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
@keyframes ringOut { from { opacity: .9; transform: scale(.9); } to { opacity: 0; transform: scale(1.7); } }
@keyframes bulb { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes countPop { from { opacity: 0; transform: scale(1.6); } 30% { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.9); } }
@keyframes fall { to { transform: translate(var(--dx), 112vh) rotate(var(--r)); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(40px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes starPop { from { transform: scale(0) rotate(-40deg); } to { transform: scale(1) rotate(0); } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }

@media (min-width: 760px) {
  .coach { width: min(100%, 760px); margin: 0 auto; }
  .bubble { font-size: 16px; }
}

@media (max-height: 640px) {
  .guide .mascot { width: 84px; height: 84px; }
  .bubble { margin-bottom: 48px; font-size: 14px; }
  .coach-face { width: 56px; height: 56px; }
  .coach-say { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.world { background: var(--sky-top); }
.world .topbar { background: var(--sky-top); box-shadow: 0 6px 12px -10px rgba(19, 108, 162, .5); }

.map-scroll {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.map-scroll::-webkit-scrollbar { display: none; }
.map { position: relative; width: 100%; }
.map-sky { position: absolute; left: 0; right: 0; top: 0; height: 200px; overflow: hidden; background: linear-gradient(180deg, var(--sky-top), var(--sky-mid) 55%, var(--sky-low)); }
.map-sky .sun { top: 34px; }
.map-sea { position: absolute; left: 0; right: 0; top: 200px; bottom: 0; background: linear-gradient(180deg, var(--sea) 0%, var(--sea-deep) 45%, var(--sea-dark) 100%); }
.map-sea::before, .map-sea::after {
  content: "";
  position: absolute;
  left: 0;
  width: calc(100% + 120px);
  height: 26px;
  background-repeat: repeat-x;
  background-size: 120px 26px;
  animation: waves 18s linear infinite;
}
.map-sea::before {
  top: -30px;
  opacity: .9;
  animation-duration: 26s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 26'%3E%3Cpath d='M0 14q15-12 30 0t30 0 30 0 30 0V26H0z' fill='%2379cff4'/%3E%3C/svg%3E");
}
.map-sea::after {
  top: -22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 26'%3E%3Cpath d='M0 14q15-12 30 0t30 0 30 0 30 0V26H0z' fill='%2339b8ee'/%3E%3C/svg%3E");
}
.map-inner { position: relative; width: min(100%, 540px); height: 100%; margin: 0 auto; }
.map-inner .island { transform: translate(-50%, -50%); }
.world .guide { transition: opacity .3s ease, transform .3s ease; }
.world.scrolled .guide { opacity: 0; transform: translateY(24px); }
.island .isle-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .28);
  font-variant-numeric: tabular-nums;
}
.island .isle-count svg { width: 18px; height: 18px; fill: var(--gold); filter: drop-shadow(0 2px 0 rgba(120, 70, 0, .35)); }

.playtitle small { font-size: 12px; font-weight: 700; color: var(--ink-soft); line-height: 1.2; }

.game-cards { display: grid; gap: 10px; }
.game-card {
  display: grid;
  grid-template-columns: 78px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 22px;
  background: #fff;
  border: 2px solid var(--paper-deep);
  text-align: start;
  box-shadow: 0 5px 0 rgba(31, 52, 64, .06);
}
.game-card:active { transform: translateY(2px); }
.gc-art { width: 78px; }
.gc-body { display: grid; gap: 3px; min-width: 0; }
.gc-body b { font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.2; }
.gc-body small { font-size: 13px; line-height: 1.65; color: var(--ink-soft); }
.gc-stars { display: flex; gap: 2px; }
.gc-stars svg { width: 17px; height: 17px; fill: #e8e1d4; }
.gc-stars .on svg { fill: var(--gold); }
.gc-go { padding: 12px 16px; border-radius: 15px; background: var(--brand); color: #fff; font-family: var(--display); font-weight: 800; font-size: 17px; box-shadow: 0 4px 0 var(--brand-deep); }

.tips-service { margin: 14px 0 2px; font-family: var(--display); font-weight: 800; font-size: 21px; color: var(--brand); }
.tips-service:first-child { margin-top: 0; }
.tip h5 { margin: 0 0 4px; font-family: var(--display); font-weight: 800; font-size: 18px; }

.peek-scene { background: linear-gradient(180deg, #ffe8f0 0%, #fff4e2 62%); }
.pk-garland { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-around; padding: 0 8px; }
.pk-garland::before { content: ""; position: absolute; top: 6px; left: 0; right: 0; height: 3px; background: #c98a4b; }
.pk-garland i { position: relative; width: 26px; height: 30px; margin-top: 6px; background: hsl(calc(var(--i) * 40) 85% 66%); clip-path: polygon(0 0, 100% 0, 50% 100%); transform-origin: 50% 0; animation: sway 3s ease-in-out infinite; animation-delay: calc(var(--i) * -.33s); }
.pk-table { position: absolute; left: -4%; right: -4%; bottom: 0; height: 36%; background: linear-gradient(180deg, #f3b86a, #d9984c); border-top: 12px solid #c98a4b; }
.pk-row { position: absolute; left: 0; right: 0; bottom: 30%; height: calc(min(27vw, 150px) * 1.22); }
.pk-unit { position: absolute; left: var(--x); bottom: 0; width: min(27vw, 150px); height: 100%; transform: translateX(-50%); transition: left .55s cubic-bezier(.5, 0, .3, 1); }
.pk-hider { position: absolute; left: 50%; bottom: 3%; width: 74%; transform: translateX(-50%); opacity: 0; transition: opacity .12s ease .32s; }
.pk-unit.lifted .pk-hider { opacity: 1; transition-delay: 0s; }
.pk-hider .mascot { width: 100%; height: auto; }
.pk-cup { position: absolute; left: 0; right: 0; bottom: 0; transition: transform .45s cubic-bezier(.3, 1.4, .5, 1); }
.pk-cup svg { width: 100%; height: auto; }
.pk-unit.lifted .pk-cup { transform: translateY(-64%) rotate(-7deg); }
.pk-dots { position: absolute; top: 58px; left: 0; right: 0; display: flex; justify-content: center; gap: 12px; }
.pk-dots i { width: 18px; height: 18px; border-radius: 50%; background: rgba(31, 52, 64, .14); transition: background .3s, box-shadow .3s; }
.pk-dots i.on { background: var(--gold); box-shadow: 0 0 0 5px rgba(255, 200, 61, .3); }

.routine-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 18px max(14px, var(--safe-r)) 16px max(14px, var(--safe-l));
  overflow-y: auto;
  background: linear-gradient(180deg, #e0f2fe 0%, #f0f9ff 52%, #fef3c7 100%);
}
.rt-head { font-family: var(--display); font-weight: 800; font-size: 24px; }
.rt-head span { font-size: 16px; color: var(--ink-soft); }
.rt-slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: min(100%, 560px); }
.rt-slot { position: relative; aspect-ratio: 3 / 4; border-radius: 18px; border: 3px dashed #9cc7dc; background: rgba(255, 255, 255, .6); display: grid; place-items: center; }
.rt-num { position: absolute; top: -12px; right: -6px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 800; font-size: 16px; }
.rt-slot.filled { border-style: solid; border-color: var(--grass); background: #fff; }
.rt-slot.play { animation: slotPlay .5s ease; }
.rt-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; width: min(100%, 440px); }
.rt-card { display: grid; justify-items: center; gap: 6px; padding: 12px 8px; border-radius: 20px; background: #fff; box-shadow: 0 5px 0 rgba(31, 52, 64, .12); font-weight: 700; font-size: 15px; }
.rt-card svg { width: 62%; max-width: 92px; }
.rt-card.wrong { animation: shake .45s ease; }
.rt-slot .rt-card { width: 100%; height: 100%; padding: 6px 4px; gap: 2px; box-shadow: none; align-content: center; animation: popIn .4s cubic-bezier(.2, 1.5, .4, 1) both; }
.rt-slot .rt-card span { font-size: 12px; line-height: 1.3; }

.plate-scene { background: repeating-conic-gradient(#ffe4ea 0 25%, #fffafa 0 50%) 0 0 / 58px 58px; }
.pl-ladder { position: absolute; top: 12px; left: max(12px, var(--safe-l)); right: max(12px, var(--safe-r)); margin: 0; padding: 10px 6px; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; border-radius: 20px; background: rgba(255, 255, 255, .92); box-shadow: 0 4px 0 rgba(31, 52, 64, .08); }
.pl-ladder li { display: grid; justify-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.pl-ladder i { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 3px solid #f3d5dc; transition: background .3s, border-color .3s; }
.pl-ladder li.on i { border-color: var(--brand); background: #fff3e6; box-shadow: 0 0 0 5px rgba(244, 129, 32, .18); }
.pl-ladder li.on span { color: var(--ink); }
.pl-ladder li.done i { background: var(--grass); border-color: var(--grass); }
.pl-mascot { position: absolute; left: 3%; bottom: 26%; width: 42%; max-width: 220px; }
.pl-mascot .mascot { width: 100%; height: auto; }
.pl-zone { position: absolute; left: 28%; width: 44%; height: 12%; border-radius: 50%; }
.pl-zone.nose { top: 32%; }
.pl-zone.mouth { top: 40%; }
.pl-fx { position: absolute; inset: 0; pointer-events: none; }
.pl-fx::before, .pl-fx::after { content: ""; position: absolute; background-repeat: no-repeat; background-size: contain; opacity: 0; }
.pl-fx.hearts::before, .pl-fx.hearts::after { width: 28%; height: 28%; left: 36%; top: 34%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-5.2-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 20 10c0 5.8-8 11-8 11z' fill='%23ff5c8a'/%3E%3C/svg%3E"); animation: fxUp 1.3s ease-out both; }
.pl-fx.hearts::after { left: 56%; width: 18%; height: 18%; animation-delay: .2s; }
.pl-fx.smell::before { width: 40%; height: 26%; left: 30%; top: 14%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cpath d='M6 34c6-6-6-10 0-16s-6-10 0-16M26 34c6-6-6-10 0-16s-6-10 0-16M46 34c6-6-6-10 0-16s-6-10 0-16' stroke='%2394a3b8' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); animation: fxUp 1.3s ease-out both; }
.pl-fx.yum::before, .pl-fx.soft::before { width: 40%; height: 40%; left: 30%; top: 6%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2 7 7 3-7 3-2 7-2-7-7-3 7-3z' fill='%23ffc83d'/%3E%3C/svg%3E"); animation: fxUp 1.3s ease-out both; }
.pl-plate { position: absolute; right: 5%; bottom: 22%; width: 50%; max-width: 270px; aspect-ratio: 1; }
.pl-dish { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; border-radius: 50%; background: radial-gradient(ellipse at 50% 42%, #fff 54%, #e6edf1 55%, #fff 68%); box-shadow: 0 9px 0 rgba(31, 52, 64, .12); }
.pl-food { position: absolute; left: 14%; right: 14%; bottom: 14%; z-index: 3; aspect-ratio: 1; touch-action: none; cursor: grab; }
.pl-food svg { width: 100%; height: 100%; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .1)); }
.pl-food.back { transition: transform .35s cubic-bezier(.3, 1.5, .5, 1); }
.pl-food.wiggle { animation: wiggle .6s ease; }
.bite-holes { opacity: 0; }
.pl-food.bitten .bite-holes { opacity: 1; }

.freeze-scene { background: radial-gradient(circle at 50% 28%, #4c2f8f, #1d1450 72%); }
.fz-lights i { position: absolute; top: -8%; width: 44%; height: 92%; transform-origin: 50% 0; opacity: 0; background: linear-gradient(180deg, var(--c), transparent 80%); clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); transition: opacity .3s; }
.fz-lights i:nth-child(1) { left: 0; --c: rgba(255, 143, 177, .55); }
.fz-lights i:nth-child(2) { left: 28%; --c: rgba(255, 200, 61, .5); animation-delay: -.8s !important; }
.fz-lights i:nth-child(3) { left: 56%; --c: rgba(77, 177, 224, .55); animation-delay: -1.6s !important; }
.party .fz-lights i { opacity: 1; animation: spot 2.4s ease-in-out infinite alternate; }
.fz-ball { position: absolute; top: 8px; left: 50%; width: 60px; height: 60px; margin-left: -30px; border-radius: 50%; background: conic-gradient(#e2e8f0 0 10%, #94a3b8 0 20%, #f8fafc 0 30%, #cbd5e1 0 40%, #e2e8f0 0 50%, #94a3b8 0 60%, #f8fafc 0 70%, #cbd5e1 0 80%, #e2e8f0 0 90%, #94a3b8 0); box-shadow: 0 0 30px rgba(255, 255, 255, .35); }
.party .fz-ball { animation: spin 3s linear infinite; }
.fz-cam { position: absolute; z-index: 3; top: 14px; right: max(14px, var(--safe-r)); width: 92px; height: 92px; border-radius: 50%; overflow: hidden; border: 4px solid #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, .25); background: #2e1f66; }
.fz-cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.fz-status { position: absolute; top: 20%; left: 0; right: 0; text-align: center; font-family: var(--display); font-weight: 800; font-size: clamp(42px, 12vw, 76px); color: #fff; text-shadow: 0 6px 0 rgba(0, 0, 0, .3); }
.frozen .fz-status { color: #bae6fd; }
.fz-dancer { position: absolute; left: 50%; bottom: 15%; width: min(46vw, 230px); transform: translateX(-50%); }
.fz-dancer .mascot { width: 100%; height: auto; transition: filter .3s; }
.party .fz-dancer { animation: dance .48s ease-in-out infinite alternate; }
.frozen .fz-dancer .mascot { filter: saturate(.45) brightness(1.18) drop-shadow(0 0 14px #bae6fd); }
.fz-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 17%; opacity: .55; background: repeating-linear-gradient(90deg, #ff8fb1 0 40px, #ffc83d 0 80px, #4db1e0 0 120px, #a78bfa 0 160px); }
.party .fz-floor { animation: floorShift .8s steps(2) infinite; }
.fz-ice { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at 50% 50%, transparent 42%, rgba(186, 230, 253, .6)); }
.frozen .fz-ice { opacity: 1; }
.fz-meter { position: absolute; left: max(18px, var(--safe-l)); right: max(18px, var(--safe-r)); bottom: 5%; height: 14px; border-radius: 999px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.fz-meter span { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(270deg, #ff8fb1, #ffc83d); transform-origin: 100% 50%; transform: scaleX(0); }
.fz-meter.still span { background: linear-gradient(270deg, #7dd3fc, #e0f2fe); }
.fz-dots { position: absolute; top: 80px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.fz-dots i { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.fz-dots i.on { background: var(--gold); box-shadow: 0 0 0 4px rgba(255, 200, 61, .3); }

.market-scene { background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%); }
.mk-awning { position: absolute; top: 0; left: 0; right: 0; height: 40px; background: repeating-linear-gradient(90deg, #f48120 0 36px, #fff7ed 0 72px); box-shadow: 0 6px 0 rgba(207, 95, 8, .2); }
.mk-awning::after { content: ""; position: absolute; left: 0; right: 0; bottom: -12px; height: 14px; background: radial-gradient(circle at 18px 0, #f48120 12px, transparent 13px) 0 0 / 72px 14px repeat-x, radial-gradient(circle at 18px 0, #fff7ed 12px, transparent 13px) 36px 0 / 72px 14px repeat-x; }
.mk-board { position: absolute; top: 64px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; padding: 0 12px; }
.mk-board i { display: block; }
.mk-board svg { width: 30px; height: 30px; fill: #ead9c0; }
.mk-board i.on svg { fill: var(--gold); animation: starPop .5s cubic-bezier(.2, 1.6, .4, 1) both; filter: drop-shadow(0 2px 0 rgba(160, 100, 0, .3)); }
.mk-counter { position: absolute; top: 24%; left: 50%; width: min(44vw, 200px); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #fff 60%, #fde7cf 61%); box-shadow: 0 8px 0 rgba(160, 90, 20, .15); }
.mk-item { width: 68%; }
.mk-item svg { width: 100%; height: auto; }
.mk-item.in { animation: popIn .45s cubic-bezier(.2, 1.5, .4, 1) both; }
.mk-item.fly { transform: translate(var(--tx), var(--ty)) scale(.35); opacity: 0; transition: transform .55s cubic-bezier(.5, 0, .6, 1), opacity .55s ease .1s; }
.mk-baskets { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 12px; padding: 0 max(12px, var(--safe-r)) 0 max(12px, var(--safe-l)); }
.mk-basket { display: grid; justify-items: center; gap: 4px; width: min(29vw, 150px); font-family: var(--display); font-weight: 800; font-size: 18px; }
.mk-basket svg { width: 100%; height: auto; }
.mk-basket span { padding: 2px 14px 4px; border-radius: 999px; background: var(--tint); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.mk-basket.hint svg { animation: hintGlow 1s ease-in-out infinite; }
.mk-basket.nope { animation: shake .45s ease; }
.mk-basket.got svg { animation: basketGot .45s ease; }
.mk-reward { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(255, 247, 237, .55); }
.mk-reward .mascot { width: min(52vw, 250px); height: auto; animation: danceC .45s ease-in-out infinite alternate; }
.mk-reward.fire { background: rgba(29, 20, 80, .82); }
.mk-reward.fire i { position: absolute; left: calc(12% + var(--i) * 14%); top: calc(22% + (var(--i) * 7%)); width: 10px; height: 10px; border-radius: 50%; color: hsl(calc(var(--i) * 55) 95% 62%); background: currentColor; box-shadow: 0 -38px 0 currentColor, 27px -27px 0 currentColor, 38px 0 0 currentColor, 27px 27px 0 currentColor, 0 38px 0 currentColor, -27px 27px 0 currentColor, -38px 0 0 currentColor, -27px -27px 0 currentColor; animation: firework 1.1s ease-out infinite; animation-delay: calc(var(--i) * .18s); }

.letters-scene { background: linear-gradient(180deg, #7dd3fc 0%, #38bdf8 42%, #0369a1 100%); }
.lt-rays { position: absolute; inset: 0; opacity: .55; background: repeating-linear-gradient(100deg, rgba(255, 255, 255, .14) 0 28px, transparent 28px 90px); }
.lt-target { position: absolute; z-index: 3; top: 12px; left: max(12px, var(--safe-l)); right: max(12px, var(--safe-r)); display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 22px; background: rgba(255, 255, 255, .94); box-shadow: 0 5px 0 rgba(3, 105, 161, .25); }
.lt-target > div { flex: 1; min-width: 0; }
.lt-target small { display: block; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.lt-target b { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.15; }
.lt-shell { width: 46px; height: 46px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 6C12 6 4 18 6 32l18 10 18-10C44 18 36 6 24 6z' fill='%23ff8fb1'/%3E%3Cpath d='M24 8v32M16 10l4 30M32 10l-4 30M9 18l11 22M39 18L28 40' stroke='%23fff' stroke-width='2' opacity='.7'/%3E%3C/svg%3E") center / contain no-repeat; }
.lt-score { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--brand); font-variant-numeric: tabular-nums; }
.lt-field { position: absolute; z-index: 2; inset: 0; overflow: hidden; }
.lt-bubble {
  position: absolute;
  bottom: -130px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, .9);
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95) 0 9%, rgba(255, 255, 255, .4) 11%, rgba(224, 245, 255, .22) 58%, rgba(255, 255, 255, .55) 100%);
  font-family: var(--display);
  font-weight: 800;
  font-size: 38px;
  color: var(--ink);
  animation: rise-bubble var(--dur) linear forwards;
  transition: opacity .3s, scale .3s;
}
.lt-bubble.word { width: 116px; height: 116px; font-size: 28px; }
.lt-bubble.popped { animation-play-state: paused; opacity: 0; scale: 1.5; pointer-events: none; }
.lt-bubble.nope > span { display: inline-block; animation: wobble .45s ease; }
.lt-weed { position: absolute; z-index: 1; pointer-events: none; bottom: -10px; width: 60px; height: 140px; border-radius: 40px 40px 0 0; background: linear-gradient(180deg, #22a35a, #14532d); transform-origin: 50% 100%; animation: weed 4s ease-in-out infinite alternate; opacity: .8; }
.lt-weed.a { left: 4%; }
.lt-weed.b { right: 6%; height: 100px; animation-delay: -2s; }

.street-scene { background: #bfe8fb; }
.st-side { position: absolute; left: 0; right: 0; }
.st-side.top { top: 0; height: 24%; background: linear-gradient(180deg, #bfe8fb 0 54%, #d6d3d1 54%); }
.st-side.bottom { bottom: 0; height: 30%; background: linear-gradient(180deg, #d6d3d1, #c4c0bc); border-top: 6px solid #a8a29e; }
.st-tree { position: absolute; left: 8%; bottom: 40%; width: 56px; height: 64px; border-radius: 50% 50% 46% 46%; background: #4cc883; box-shadow: inset -8px -8px 0 rgba(0, 0, 0, .08); }
.st-tree::after { content: ""; position: absolute; left: 50%; bottom: -16px; width: 10px; height: 20px; margin-left: -5px; background: #8a5a2b; }
.st-shop { position: absolute; right: 26%; bottom: 46%; width: 90px; height: 52px; border-radius: 6px 6px 0 0; background: #fff; box-shadow: inset 0 14px 0 #f48120; }
.st-road { position: absolute; left: 0; right: 0; top: 24%; height: 46%; overflow: hidden; background: #475569; border-top: 6px solid #a8a29e; }
.st-road::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; background: repeating-linear-gradient(90deg, #fde047 0 40px, transparent 0 80px); }
.st-zebra { position: absolute; z-index: 1; top: 0; bottom: 0; left: 50%; width: 36%; max-width: 190px; transform: translateX(-50%); background: repeating-linear-gradient(180deg, #f8fafc 0 22px, transparent 22px 44px); opacity: .92; }
.st-cars { position: absolute; inset: 0; z-index: 2; }
.st-car { position: absolute; top: 8%; left: -150px; width: 130px; animation: drive var(--dur) linear forwards; }
.st-car svg { width: 100%; height: auto; }
.st-car.lane2 { top: 56%; left: auto; right: -150px; animation-name: driveBack; }
.st-car.lane2 svg { transform: scaleX(-1); }
.st-light { position: absolute; z-index: 3; right: max(14px, var(--safe-r)); bottom: 11%; display: grid; gap: 6px; padding: 8px; border-radius: 14px; background: #1f3440; box-shadow: 0 6px 0 rgba(0, 0, 0, .2); }
.st-light::after { content: ""; position: absolute; left: 50%; top: 100%; width: 8px; height: 60px; margin-left: -4px; background: #55707e; z-index: -1; }
.st-light span { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: #0f172a; }
.st-light svg { width: 30px; height: 30px; fill: #334155; transition: fill .2s; }
.st-red svg { fill: #ef4444; filter: drop-shadow(0 0 6px rgba(239, 68, 68, .8)); }
.street-scene.go .st-red svg { fill: #334155; filter: none; }
.street-scene.go .st-green svg { fill: #22c55e; filter: drop-shadow(0 0 7px rgba(34, 197, 94, .9)); }
.st-walker { position: absolute; z-index: 4; left: 50%; bottom: 7%; width: min(22vw, 104px); transform: translate(-50%, 0); }
.st-walker .mascot { width: 100%; height: auto; }
.st-walker.walking:not(.paused) .mascot { animation: walk .32s ease-in-out infinite alternate; }
.st-hand { position: absolute; right: -34%; bottom: 34%; width: 46%; height: 46%; opacity: 0; transition: opacity .2s; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M38 4c-6 10-12 16-20 20l-4 2c-4 2-8 0-8-4s4-6 8-6l8-2' stroke='%23e8b48a' stroke-width='8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.st-walker.holding .st-hand { opacity: 1; }
.st-m.look-r .m-eyes { animation: lookR 1s ease both; }
.st-m.look-l .m-eyes { animation: lookL 1s ease both; }
.st-eyes { position: absolute; z-index: 5; left: 0; right: 0; bottom: 31%; display: flex; justify-content: center; gap: 10px; }
.st-eyes .eye { padding: 12px 18px; border-radius: 16px; background: #fff; font-family: var(--display); font-weight: 800; font-size: 17px; box-shadow: 0 5px 0 rgba(0, 0, 0, .18); }
.st-eyes .eye.done { background: var(--grass); color: #fff; }

.calm-scene { color: #fff; background: radial-gradient(circle at 50% 28%, #1e3a8a 0%, #172554 52%, #0b1026 100%); }
.cl-motes i { position: absolute; left: calc(var(--i) * 7%); bottom: -10px; width: 6px; height: 6px; border-radius: 50%; background: rgba(196, 181, 253, .6); animation: mote 10s linear infinite; animation-delay: calc(var(--i) * -.72s); }
.cl-jelly { position: absolute; left: 50%; top: 10%; width: min(50vw, 30vh, 250px); --sc: .82; transform: translateX(-50%) scale(var(--sc)); transition: transform var(--t, 4s) ease-in-out; filter: drop-shadow(0 0 26px rgba(167, 139, 250, .55)); }
.cl-jelly svg { width: 100%; height: auto; overflow: visible; }
.calm-scene[data-phase="in"] .cl-jelly, .calm-scene[data-phase="hold"] .cl-jelly { --sc: 1.14; }
.calm-scene[data-phase="out"] .cl-jelly { --sc: .8; }
.cl-tents path { fill: none; stroke: #c4b5fd; stroke-width: 6; stroke-linecap: round; opacity: .9; transform-box: fill-box; transform-origin: 50% 0; animation: tent 3s ease-in-out infinite alternate; }
.cl-tents path:nth-child(2) { animation-delay: -.7s; }
.cl-tents path:nth-child(3) { animation-delay: -1.4s; }
.cl-tents path:nth-child(4) { animation-delay: -2.1s; }
.cl-text { position: absolute; left: 0; right: 0; bottom: 20%; display: grid; gap: 2px; text-align: center; }
.cl-text b { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 10vw, 58px); line-height: 1.15; }
.cl-text span { font-size: 22px; opacity: .8; font-variant-numeric: tabular-nums; min-height: 1.4em; }
.cl-cycles { position: absolute; left: 0; right: 0; bottom: 10%; display: flex; justify-content: center; gap: 8px; }
.cl-cycles i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .2); transition: background .4s; }
.cl-cycles i.on { background: #c4b5fd; box-shadow: 0 0 0 4px rgba(196, 181, 253, .25); }
.cl-mood { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; gap: 16px; padding: 20px max(16px, var(--safe-r)) 20px max(16px, var(--safe-l)); text-align: center; background: rgba(11, 16, 38, .74); }
.cl-mood p { margin: 0; font-family: var(--display); font-weight: 800; font-size: 26px; }
.cl-faces { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cl-face { display: grid; justify-items: center; gap: 4px; width: 66px; color: #fff; font-size: 11.5px; font-weight: 700; line-height: 1.3; }
.cl-face svg { width: 56px; height: 56px; transition: transform .2s; }
.cl-face:hover svg, .cl-face:focus-visible svg { transform: scale(1.12); }

.ic-tent { transform-box: fill-box; transform-origin: 50% 0; animation: tent 2.4s ease-in-out infinite alternate; }

@keyframes sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes slotPlay { 0%, 100% { transform: none; } 50% { transform: translateY(-10px) scale(1.06); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(5deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spot { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
@keyframes dance { from { transform: translateX(-50%) rotate(-8deg) translateY(0); } to { transform: translateX(-50%) rotate(8deg) translateY(-14px); } }
@keyframes danceC { from { transform: rotate(-8deg) translateY(0); } to { transform: rotate(8deg) translateY(-14px); } }
@keyframes floorShift { to { background-position: 80px 0; } }
@keyframes hintGlow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 200, 61, 0)); transform: none; } 50% { filter: drop-shadow(0 0 14px rgba(255, 200, 61, .95)); transform: translateY(-4px); } }
@keyframes basketGot { 0%, 100% { transform: none; } 40% { transform: scale(1.08, .92); } }
@keyframes firework { from { transform: scale(.15); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
@keyframes rise-bubble { 0% { transform: translate(0, 0); } 50% { transform: translate(var(--sway), -55vh); } 100% { transform: translate(0, calc(-100vh - 160px)); } }
@keyframes wobble { 0%, 100% { transform: none; } 25% { transform: rotate(-14deg); } 75% { transform: rotate(14deg); } }
@keyframes weed { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes drive { to { transform: translateX(calc(100vw + 320px)); } }
@keyframes driveBack { to { transform: translateX(calc(-100vw - 320px)); } }
@keyframes walk { from { transform: rotate(-5deg) translateY(0); } to { transform: rotate(5deg) translateY(-6px); } }
@keyframes lookR { 0%, 100% { transform: translateX(0); } 35%, 65% { transform: translateX(10px); } }
@keyframes lookL { 0%, 100% { transform: translateX(0); } 35%, 65% { transform: translateX(-10px); } }
@keyframes mote { from { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } to { transform: translateY(-110vh); opacity: 0; } }
@keyframes tent { from { transform: skewX(-6deg); } to { transform: skewX(6deg); } }
@keyframes fxUp { 0% { opacity: 0; transform: translateY(10px) scale(.6); } 30% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-40px) scale(1.1); } }

@media (prefers-reduced-motion: reduce) {
  .cl-jelly { transition-duration: .01ms !important; }
}
.m-brows { display: none; fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; }
.m-angry path, .m-scared path, .m-sad path { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linecap: round; }
.mascot[data-face="sad"] .m-sad, .mascot[data-face="sad"] .m-b-sad,
.mascot[data-face="angry"] .m-angry, .mascot[data-face="angry"] .m-b-angry,
.mascot[data-face="scared"] .m-scared, .mascot[data-face="scared"] .m-b-sad,
.mascot[data-face="wow"] .m-wow, .mascot[data-face="wow"] .m-b-up { display: inline; }
.mascot[data-face="sad"] .m-cheeks, .mascot[data-face="scared"] .m-cheeks { opacity: .35; }
.mascot[data-face="angry"] .m-cheeks ellipse { fill: #ef4444; }
.mascot[data-face="scared"] .m-pupil { transform-box: fill-box; transform-origin: center; transform: scale(.6); }

.kid-gender { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-weight: 700; }
.kid-gender button { padding: 8px 18px; border-radius: 999px; background: #eaf2f6; font-weight: 700; }
.kid-gender button[aria-pressed="true"] { background: var(--brand); color: #fff; }

.quiz-scene { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px max(14px, var(--safe-r)) 14px max(14px, var(--safe-l)); overflow-y: auto; background: linear-gradient(180deg, #f0f9ff, #fff7ed); }
.qz-dots { display: flex; justify-content: center; gap: 10px; min-height: 18px; }
.qz-dots i { width: 16px; height: 16px; border-radius: 50%; background: rgba(31, 52, 64, .14); transition: background .3s, box-shadow .3s; }
.qz-dots i.on { background: var(--gold); box-shadow: 0 0 0 5px rgba(255, 200, 61, .3); }
.qz-visual { flex: 1; min-height: 150px; width: min(100%, 520px); display: grid; place-items: center; }
.qz-visual.in { animation: popIn .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.qz-options { display: grid; grid-template-columns: repeat(var(--cols, 2), 1fr); gap: 10px; width: min(100%, 520px); }
.qz-opt { display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 64px; padding: 10px; border-radius: 20px; background: #fff; box-shadow: 0 5px 0 rgba(31, 52, 64, .12); font-weight: 700; font-size: 16px; line-height: 1.5; text-align: center; }
.qz-opt.text { min-height: 58px; font-size: 17px; }
.qz-opt svg { width: min(22vw, 84px); height: auto; }
.qz-opt.right { background: #dcfce7; box-shadow: 0 5px 0 #22c55e; }
.qz-opt.wrong { opacity: .45; animation: shake .45s ease; }
.qz-opt.hint { animation: hintGlow 1s ease-in-out infinite; }
.qz-num { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; }
.qz-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 420px; }
.qz-group span { width: min(14vw, 58px); animation: popIn .4s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: calc(var(--i) * .06s); }
.qz-group svg { width: 100%; height: auto; }
.qz-sum { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.qz-sum .qz-group { max-width: 180px; }
.qz-sum .qz-group span { width: min(11vw, 44px); }
.qz-sum > b { font-family: var(--display); font-size: 44px; color: var(--brand); }
.qz-big { width: min(46vw, 200px); height: auto; }
.qz-face { width: 56px !important; }
.qz-story { padding: 18px 20px; border-radius: 22px; background: #fff; box-shadow: 0 6px 0 rgba(31, 52, 64, .08); font-family: var(--display); font-weight: 800; font-size: clamp(20px, 5.6vw, 26px); line-height: 1.6; text-align: center; }
.qz-story p { margin: 0; }
.qz-command { padding: 18px 26px; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--display); font-weight: 800; font-size: clamp(22px, 6.4vw, 30px); }
.follow-scene .qz-opt svg.sz-small { transform: scale(.6); }
.feel-scene { background: linear-gradient(180deg, #fef3c7, #fde68a 120%); }
.manners-scene { background: linear-gradient(180deg, #ecfdf5, #f0f9ff); }
.count-scene { background: linear-gradient(180deg, #e0f2fe, #fef9c3); }

.body-scene { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px; background: radial-gradient(circle at 50% 30%, #fff, #e0f2fe); }
.body-scene .kid { flex: 1; min-height: 0; width: min(100%, 360px); height: 100%; }
.hot [data-part] { fill: transparent; cursor: pointer; transition: fill .2s; }
.hot [data-part].glow { fill: rgba(255, 200, 61, .5); stroke: #ffc83d; stroke-width: 3; }
.hot [data-part].hint { fill: rgba(77, 177, 224, .35); animation: pulseFill 1s ease-in-out infinite; }
.hot [data-part].nope { fill: rgba(239, 68, 68, .25); }

.balloon-scene { background: linear-gradient(180deg, #7dd3fc 0%, #bae6fd 60%, #e0f2fe 100%); }
.bl-cloud { position: absolute; width: 140px; height: 44px; border-radius: 40px; background: #fff; opacity: .9; }
.bl-cloud::before { content: ""; position: absolute; width: 64px; height: 64px; top: -30px; left: 26px; border-radius: 50%; background: #fff; }
.bl-cloud.a { top: 22%; left: -20px; }
.bl-cloud.b { top: 52%; right: -30px; transform: scale(.8); }
.bl-head { position: absolute; z-index: 3; top: 12px; left: max(12px, var(--safe-l)); right: max(12px, var(--safe-r)); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-radius: 20px; background: rgba(255, 255, 255, .94); font-family: var(--display); font-weight: 800; font-size: 22px; box-shadow: 0 5px 0 rgba(3, 105, 161, .2); }
.bl-score { color: var(--brand); font-variant-numeric: tabular-nums; }
.bl-field { position: absolute; z-index: 2; inset: 0; overflow: hidden; }
.bl-balloon { position: absolute; bottom: -150px; width: 84px; animation: rise-bubble var(--dur) linear forwards; transition: opacity .25s, scale .25s; }
.bl-balloon svg { width: 100%; height: auto; overflow: visible; }
.bl-balloon.popped { animation-play-state: paused; opacity: 0; scale: 1.5; pointer-events: none; }
.bl-balloon.nope svg { animation: wobble .45s ease; }

.cut-scene { background: linear-gradient(180deg, #fef3c7, #fde68a); touch-action: none; }
.cut-scene .field { position: absolute; inset: 0; width: 100%; height: 100%; }
.paper { fill: #fff; stroke: #f1d9a8; stroke-width: 3; filter: drop-shadow(0 8px 0 rgba(160, 110, 30, .15)); }
.piece { fill: #e0f2fe; transition: transform .6s cubic-bezier(.2, 1.4, .4, 1); transform-box: fill-box; transform-origin: center; }
.field.done .piece { transform: translateY(-26px) rotate(-8deg) scale(1.04); }
.cut-guide { fill: none; stroke: #94a3b8; stroke-width: 4; stroke-dasharray: 12 10; stroke-linecap: round; }
.cut-trail { fill: none; stroke: #1f3440; stroke-width: 4; stroke-linecap: round; }
.scissors .blade { transform-box: view-box; }
.scissors.snip .b1 { animation: snipA .22s ease-in-out infinite alternate; transform-origin: 0 0; }
.scissors.snip .b2 { animation: snipB .22s ease-in-out infinite alternate; transform-origin: 0 0; }

.beads-scene { display: flex; flex-direction: column; align-items: center; justify-content: space-around; gap: 16px; padding: 18px max(14px, var(--safe-r)) 18px max(14px, var(--safe-l)); background: linear-gradient(180deg, #fdf4ff, #fae8ff); }
.bd-card { display: grid; justify-items: center; gap: 8px; padding: 12px 16px; border-radius: 22px; background: #fff; box-shadow: 0 6px 0 rgba(31, 52, 64, .08); }
.bd-card small { font-weight: 700; color: var(--ink-soft); }
.bd-row { display: flex; gap: 6px; }
.bd { width: min(9vw, 40px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .7) 0 14%, transparent 16%), var(--c, #e2e8f0); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15); display: grid; place-items: center; font-style: normal; font-family: var(--display); font-weight: 800; color: var(--ink-soft); }
.bd.q { background: #f1f5f9; border: 2px dashed #cbd5e1; box-shadow: none; }
.bd.slot { background: #fff; border: 2px dashed #e9d5ff; box-shadow: none; }
.bd.now { outline: 3px solid var(--brand); outline-offset: 3px; }
.bd.on { animation: popIn .35s cubic-bezier(.2, 1.5, .4, 1) both; }
.bd-string { position: relative; padding: 18px 10px; }
.bd-line { position: absolute; left: -12px; right: -12px; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: #8a5a2b; }
.bd-row.mine { position: relative; }
.bd-tray { display: flex; gap: 14px; justify-content: center; }
.bd-pick { width: 70px; height: 70px; border-radius: 50%; background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .7) 0 14%, transparent 16%), var(--c); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .15), 0 6px 0 rgba(31, 52, 64, .12); }
.bd-pick.nope { animation: shake .45s ease; }

.maze-scene { display: grid; place-items: center; padding: 14px; background: linear-gradient(180deg, #ede9fe, #ddd6fe); touch-action: none; }
.mz { width: min(100%, 420px); max-height: 100%; }
.mz-board { fill: #fff; filter: drop-shadow(0 8px 0 rgba(90, 62, 166, .2)); }
.mz-walls { fill: none; stroke: #5a3ea6; stroke-width: 5; stroke-linecap: round; }
.mz-goal { fill: #ffc83d; }
.mz-goal-ring { fill: rgba(255, 200, 61, .25); animation: pulseR 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.mz-ball { fill: var(--brand); stroke: #fff; stroke-width: 3; }

.scratch-scene { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 14px; background: linear-gradient(180deg, #fff7ed, #ffe4e6); }
.sr-frame { position: relative; width: min(100%, 420px); aspect-ratio: 3 / 4; max-height: 74%; border-radius: 26px; overflow: hidden; box-shadow: 0 10px 0 rgba(160, 60, 80, .15); touch-action: none; }
.sr-pic { position: absolute; inset: 0; display: grid; place-items: center; }
.sr-pic.sky { background: linear-gradient(180deg, #7dd3fc, #e0f2fe); }
.sr-pic.sky .mascot { width: 62%; height: auto; }
.sr-bal { position: absolute; width: 20%; aspect-ratio: .8; border-radius: 50%; background: var(--c); box-shadow: inset -6px -8px 0 rgba(0, 0, 0, .12); }
.sr-pic.space { background: radial-gradient(circle at 50% 30%, #3d2a78, #120f38); }
.sr-planet { position: absolute; top: 8%; width: 60%; }
.sr-rocket { position: absolute; bottom: 8%; width: 24%; }
.sr-pic.sea { background: linear-gradient(180deg, #9cdbf8 0 50%, var(--sea) 50%); }
.sr-goal { position: absolute; left: 4%; top: 34%; width: 60%; }
.sr-boat { position: absolute; right: 6%; top: 38%; width: 36%; }
.sr-cover { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .6s; cursor: grab; }
.sr-cover.gone { opacity: 0; pointer-events: none; }
.sr-meter { width: min(100%, 420px); height: 14px; border-radius: 999px; background: rgba(31, 52, 64, .1); overflow: hidden; }
.sr-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(270deg, #ff8fb1, #ffc83d); transform-origin: 100% 50%; transform: scaleX(0); transition: transform .3s; }

.moves-scene { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 14px; background: linear-gradient(180deg, #ecfccb, #d9f99d); }
.moves-scene.yoga { background: linear-gradient(180deg, #e0e7ff, #c7d2fe); }
.mv-card { display: grid; justify-items: center; gap: 6px; padding: 16px 18px; width: min(100%, 420px); border-radius: 26px; background: #fff; box-shadow: 0 8px 0 rgba(31, 52, 64, .1); text-align: center; }
.mv-art { width: min(44vw, 30vh, 190px); height: auto; overflow: visible; }
.go .mv-art { animation: moveBounce .6s ease-in-out infinite alternate; }
.mv-name { font-family: var(--display); font-weight: 800; font-size: 26px; }
.mv-how { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.mv-timer { position: relative; width: 100px; height: 100px; display: grid; place-items: center; }
.mv-timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.mv-track { fill: none; stroke: rgba(31, 52, 64, .1); stroke-width: 8; }
.mv-ring { fill: none; stroke: var(--grass); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 277; stroke-dashoffset: 0; }
.mv-timer span { position: relative; font-family: var(--display); font-weight: 800; font-size: 30px; }

.tower-scene { background: linear-gradient(180deg, #fef9c3, #fde68a); }
.tw-turn { position: absolute; top: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.tw-turn span { padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .6); font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--ink-soft); transition: background .2s, color .2s; }
.tower-scene[data-turn="bot"] .tw-bot, .tower-scene[data-turn="me"] .tw-me { background: var(--brand); color: #fff; }
.tw-bot-m { position: absolute; left: max(12px, var(--safe-l)); bottom: 16%; width: min(28vw, 130px); }
.tw-bot-m .mascot { width: 100%; height: auto; }
.tw-stack { position: absolute; right: 18%; bottom: 14%; width: min(46vw, 220px); display: flex; flex-direction: column-reverse; align-items: center; }
.tw-block { display: block; width: var(--w); height: 30px; margin-top: 3px; border-radius: 8px; background: var(--c); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .15); transform: translateX(var(--off)); animation: drop .35s cubic-bezier(.3, 1.5, .5, 1) both; }
.tw-base { position: absolute; left: 0; right: 0; bottom: 0; height: 14%; background: #c98a4b; border-top: 8px solid #a06a35; }
.tw-count { position: absolute; top: 60px; left: 0; right: 0; text-align: center; font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--brand); }

.word-scene { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px max(14px, var(--safe-r)) 14px max(14px, var(--safe-l)); background: linear-gradient(180deg, #ecfeff, #cffafe); overflow-y: auto; }
.wd-pic { width: min(40vw, 22vh, 170px); }
.wd-pic svg { width: 100%; height: auto; max-height: 22vh; }
.wd-slots { display: flex; gap: 8px; direction: rtl; }
.wd-slot { width: min(13vw, 56px); aspect-ratio: .9; border-radius: 14px; background: #fff; border: 3px dashed #67e8f9; display: grid; place-items: center; font-style: normal; font-family: var(--display); font-weight: 800; font-size: 30px; }
.wd-slot.on { border-style: solid; border-color: var(--grass); animation: popIn .3s ease both; }
.wd-full { min-height: 44px; font-family: var(--display); font-weight: 800; font-size: 36px; color: var(--brand); }
.wd-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.wd-tile { width: 60px; height: 64px; border-radius: 16px; background: #fff; box-shadow: 0 5px 0 rgba(31, 52, 64, .14); font-family: var(--display); font-weight: 800; font-size: 30px; }
.wd-tile.used { opacity: .25; }
.wd-tile.nope { animation: shake .45s ease; }
.wd-tile.hint { animation: hintGlow 1s ease-in-out infinite; }

.shop-scene { display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 12px max(12px, var(--safe-r)) 12px max(12px, var(--safe-l)); background: linear-gradient(180deg, #f0fdf4, #dcfce7); }
.sh-list { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 18px; background: #fff; box-shadow: 0 5px 0 rgba(31, 52, 64, .08); }
.sh-list b { font-family: var(--display); font-size: 18px; }
.sh-items { display: flex; gap: 8px; }
.sh-items span { width: 40px; position: relative; }
.sh-items span.done::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: rgba(34, 197, 94, .3); border: 3px solid #22c55e; }
.sh-shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-content: center; padding: 12px; border-radius: 20px; background: linear-gradient(180deg, #fff 0 46%, #c98a4b 46% 50%, #fff 50% 96%, #c98a4b 96%); }
.sh-shelf.dim { opacity: .35; pointer-events: none; }
.sh-good { padding: 6px; border-radius: 16px; }
.sh-good svg { width: 100%; height: auto; max-height: 90px; }
.sh-good.taken { opacity: .2; }
.sh-good.nope { animation: shake .45s ease; }
.sh-cart { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 18px; background: #fff; }
.sh-cart > svg { width: 64px; flex: none; }
.sh-in { display: flex; gap: 4px; flex-wrap: wrap; }
.sh-in span { width: 34px; animation: popIn .35s ease both; }
.sh-pay { position: absolute; left: max(12px, var(--safe-l)); right: max(12px, var(--safe-r)); top: 30%; display: grid; gap: 12px; padding: 16px; border-radius: 24px; background: #fff; box-shadow: 0 12px 0 rgba(31, 52, 64, .12); text-align: center; animation: popIn .4s ease both; }
.sh-price { font-family: var(--display); font-weight: 800; font-size: 26px; }
.sh-counter { min-height: 66px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; padding: 8px; border-radius: 16px; background: #fef9c3; border: 2px dashed #facc15; }
.sh-empty { color: var(--ink-soft); font-weight: 700; }
.sh-coins { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.coin { width: 52px; height: 52px; }
.coin svg { width: 100%; height: 100%; }

.jar-scene { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px max(14px, var(--safe-r)) 14px max(14px, var(--safe-l)); color: #fff; background: radial-gradient(circle at 50% 20%, #312e81, #0f172a); overflow-y: auto; }
.jr-jar { position: relative; width: min(46vw, 26vh, 200px); }
.jr-jar svg { width: 100%; height: auto; }
.jr-stars { position: absolute; inset: 22% 10% 6%; }
.jr-star { position: absolute; width: 34px; animation: starIn .7s cubic-bezier(.2, 1.4, .4, 1) both; filter: drop-shadow(0 0 8px rgba(255, 200, 61, .9)); }
.jr-star svg { width: 100%; height: auto; }
.jr-star em { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 11px; font-weight: 700; color: #fde68a; }
.jr-pick { display: grid; gap: 10px; width: min(100%, 460px); text-align: center; }
.jr-pick p { margin: 0; font-family: var(--display); font-weight: 800; font-size: 22px; }
.jr-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.jr-chip { padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; font-weight: 700; border: 1.5px solid rgba(255, 255, 255, .3); }
.jr-chip:disabled { opacity: .35; }
.jr-own { display: flex; gap: 8px; }
.jr-own input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 14px; border: 0; font: inherit; -webkit-user-select: text; user-select: text; }
.jr-own button { padding: 0 18px; border-radius: 14px; background: var(--gold); color: var(--ink); font-weight: 800; }

@keyframes pulseFill { 0%, 100% { fill-opacity: .25; } 50% { fill-opacity: .7; } }
@keyframes snipA { from { transform: rotate(0); } to { transform: rotate(-14deg); } }
@keyframes snipB { from { transform: rotate(0); } to { transform: rotate(14deg); } }
@keyframes pulseR { 0%, 100% { transform: scale(.9); } 50% { transform: scale(1.2); } }
@keyframes moveBounce { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-12px) rotate(3deg); } }
@keyframes drop { from { opacity: 0; transform: translate(var(--off), -60px); } to { opacity: 1; transform: translate(var(--off), 0); } }
@keyframes starIn { from { opacity: 0; transform: translateY(-120px) scale(.4) rotate(-90deg); } to { opacity: 1; transform: none; } }
.pro-chip { justify-self: start; margin-top: 4px; padding: 3px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pro-bar { position: relative; z-index: 5; display: flex; justify-content: center; gap: 14px; padding: 6px 12px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.pro-bar .pb-ok { color: #86efac; }
.pro-bar .pb-no { color: #fca5a5; }
.pro-switch { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 18px; background: #fff; border: 2px solid var(--paper-deep); cursor: pointer; }
.pro-switch input { width: 24px; height: 24px; margin-top: 2px; accent-color: var(--brand); }
.pro-switch span { display: grid; gap: 2px; }
.pro-switch small { color: var(--ink-soft); line-height: 1.6; }
#pro-body h4 { margin: 16px 0 8px; font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--brand); }
.kid-list { display: grid; gap: 8px; }
.kid-row { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 16px; background: #fff; border: 2px solid var(--paper-deep); }
.kid-row.on { border-color: var(--brand); background: #fff7ed; }
.kid-pick { flex: 1; display: grid; justify-items: start; gap: 2px; padding: 6px 8px; text-align: start; }
.kid-pick b { font-size: 16px; }
.kid-pick small { color: var(--ink-soft); }
.kid-del { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 12px; background: #fee2e2; color: #b91c1c; font-weight: 800; }
.kid-del.sure { background: #b91c1c; color: #fff; }
.kid-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.kid-add input { flex: 1 1 160px; min-width: 0; padding: 12px; border-radius: 14px; border: 2px solid var(--paper-deep); font: inherit; -webkit-user-select: text; user-select: text; }
.kid-g { display: flex; gap: 6px; }
.kid-g button { padding: 10px 14px; border-radius: 999px; background: #eaf2f6; font-weight: 700; }
.kid-g button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.sess-sum, .sess-old pre { margin: 0; padding: 12px; border-radius: 14px; background: #f8fafc; border: 1px solid #e2e8f0; font: 13px/1.9 var(--body); white-space: pre-wrap; -webkit-user-select: text; user-select: text; }
.pro-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sess-old { display: grid; gap: 6px; }
.sess-old details { border-radius: 14px; background: #fff; border: 1px solid #e2e8f0; padding: 8px 10px; }
.sess-old summary { cursor: pointer; font-weight: 700; }

.sil { filter: brightness(0); opacity: .78; }
.sil-i { filter: brightness(0); opacity: .7; }
.shadow-scene { background: linear-gradient(180deg, #fefce8, #fde68a); }
.sh-target { width: min(40vw, 160px); padding: 10px; border-radius: 26px; background: #fff; box-shadow: 0 8px 0 rgba(160, 110, 20, .15); }

.color-scene { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px; background: linear-gradient(180deg, #fff1f2, #ffe4e6); }
.cl-board { position: relative; flex: 1; min-height: 0; width: min(100%, 440px); border-radius: 26px; background: #fff; box-shadow: 0 8px 0 rgba(160, 60, 80, .12); touch-action: none; overflow: hidden; }
.cl-paint { position: absolute; inset: 0; width: 100%; height: 100%; }
.cl-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.cl-line path { fill: none; stroke: #1f3440; stroke-width: 1.6; stroke-linejoin: round; }
.cl-board.done .cl-line path { stroke: var(--grass); }
.cl-meter { width: min(100%, 440px); height: 12px; border-radius: 999px; background: rgba(31, 52, 64, .1); overflow: hidden; }
.cl-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(270deg, #ff8fb1, #ffc83d); transform-origin: 100% 50%; transform: scaleX(0); transition: transform .3s; }
.cl-palette { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cl-pot { width: 42px; height: 42px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15); }
.cl-pot.on { outline: 4px solid var(--ink); outline-offset: 3px; }

.dots-scene { display: grid; place-items: center; padding: 14px; background: linear-gradient(180deg, #f0fdf4, #dcfce7); }
.dt { width: min(100%, 440px); max-height: 100%; }
.dt-fill { opacity: 0; transition: opacity .6s; }
.dt.done .dt-fill { opacity: .85; }
.dt-line { fill: none; stroke: #1f3440; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dt-dot { cursor: pointer; }
.dt-dot .dt-hit { fill: transparent; stroke: none; }
.dt-dot circle:not(.dt-hit) { fill: #fff; stroke: #1f3440; stroke-width: 1.4; transition: fill .2s; }
.dt-dot text { font: 800 7.5px var(--display); fill: #1f3440; paint-order: stroke; stroke: #f0fdf4; stroke-width: 2.4px; stroke-linejoin: round; }
.dt-dot.now circle:not(.dt-hit) { fill: #ffc83d; animation: pulseR 1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.dt-dot.hit circle:not(.dt-hit) { fill: var(--grass); animation: none; }
.dt-dot.nope circle:not(.dt-hit) { animation: dtNope .6s ease; }
@keyframes dtNope { 0%, 100% { fill: #fff; } 30%, 70% { fill: #fca5a5; } }

.memory-scene { display: grid; place-items: center; padding: 14px; background: linear-gradient(180deg, #eef2ff, #e0e7ff); }
.mm-grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 10px; width: min(100%, 460px); }
.mm-card { position: relative; aspect-ratio: .8; perspective: 600px; }
.mm-back, .mm-face { position: absolute; inset: 0; border-radius: 16px; display: grid; place-items: center; backface-visibility: hidden; transition: transform .35s ease; }
.mm-back { background: linear-gradient(135deg, #4db1e0, #5a3ea6); box-shadow: 0 5px 0 rgba(31, 52, 64, .2); }
.mm-back::after { content: ""; width: 40%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .25); }
.mm-face { background: #fff; transform: rotateY(180deg); box-shadow: 0 5px 0 rgba(31, 52, 64, .12); }
.mm-face svg { width: 74%; height: auto; }
.mm-card.up .mm-back { transform: rotateY(-180deg); }
.mm-card.up .mm-face { transform: rotateY(0); }
.mm-card.got .mm-face { background: #dcfce7; }

.diff-scene { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px; background: linear-gradient(180deg, #fff7ed, #ffedd5); }
.df-count { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--brand); font-variant-numeric: tabular-nums; }
.df-pair { flex: 1; min-height: 0; width: min(100%, 980px); display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; justify-items: center; }
.df-pic { height: 100%; max-width: 100%; aspect-ratio: 10 / 9; border-radius: 18px; box-shadow: 0 6px 0 rgba(160, 90, 20, .15); background: #bae6fd; }
.df-hot { fill: transparent; stroke: transparent; stroke-width: 1.4; cursor: pointer; }
.df-hot.got { stroke: #ef4444; animation: popIn .35s ease both; transform-box: fill-box; transform-origin: center; }
@media (min-aspect-ratio: 1/1) { .df-pair { grid-template-rows: minmax(0, 1fr); grid-template-columns: 1fr 1fr; align-items: center; } .df-pic { height: auto; width: 100%; max-height: 100%; } }

.thoughts-scene { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 16px; background: radial-gradient(circle at 50% 30%, #ede9fe, #ddd6fe); }
.th-cloud { position: relative; width: min(100%, 420px); padding: 24px 22px; border-radius: 40px; background: #fff; box-shadow: 0 10px 0 rgba(90, 62, 166, .15); text-align: center; }
.th-cloud.in { animation: popIn .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.th-cloud::after { content: ""; position: absolute; bottom: -18px; left: 22%; width: 22px; height: 22px; border-radius: 50%; background: #fff; }
.th-cloud p { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(20px, 5.8vw, 27px); line-height: 1.6; }
.th-fix { width: min(100%, 420px); display: grid; gap: 4px; padding: 12px 16px; border-radius: 18px; background: #dcfce7; text-align: center; animation: popIn .4s ease both; }
.th-fix small { color: #166534; font-weight: 700; }
.th-fix b { font-size: 18px; line-height: 1.6; }
.th-bins { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(100%, 420px); }
.th-bin { min-height: 70px; padding: 10px; border-radius: 20px; font-family: var(--display); font-weight: 800; font-size: 19px; color: #fff; box-shadow: 0 6px 0 rgba(0, 0, 0, .15); }
.th-bin.good { background: var(--grass); }
.th-bin.bad { background: #ef6b6b; }

.dice-scene { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 16px; background: linear-gradient(180deg, #fef3c7, #fdba74); }
.dc-die { width: min(46vw, 200px); aspect-ratio: 1; filter: drop-shadow(0 10px 0 rgba(160, 80, 20, .25)); }
.dc-die svg { width: 100%; height: 100%; }
.dc-die.rolling { animation: dieRoll .5s linear infinite; }
.dc-move { display: grid; gap: 4px; min-height: 70px; text-align: center; }
.dc-move.in { animation: popIn .4s ease both; }
.dc-move b { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 7vw, 34px); }
.dc-move p { margin: 0; color: var(--ink-soft); font-weight: 700; }

.record-scene { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 16px; background: linear-gradient(180deg, #ecfeff, #a5f3fc); }
.rc-card { display: grid; justify-items: center; gap: 8px; padding: 16px 22px; border-radius: 26px; background: #fff; box-shadow: 0 8px 0 rgba(8, 145, 178, .15); }
.rc-pic { width: min(34vw, 20vh, 150px); }
.rc-pic svg { width: 100%; height: auto; max-height: 20vh; }
.rc-word { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 8vw, 40px); }
.rc-bars { display: flex; align-items: flex-end; gap: 4px; height: 50px; }
.rc-bars i { width: 8px; height: 100%; border-radius: 4px; background: var(--brand); transform-origin: bottom; transform: scaleY(.15); }
.rc-mic { display: grid; justify-items: center; gap: 22px; font-weight: 700; color: var(--ink); touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.rc-mic svg { width: 88px; height: 88px; padding: 22px; border-radius: 50%; background: var(--brand); fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; box-shadow: 0 8px 0 var(--brand-deep); transition: transform .15s; }
.rc-mic svg rect { fill: #fff; stroke: none; }
.rc-mic.on svg { transform: scale(1.1); background: #ef4444; box-shadow: 0 0 0 12px rgba(239, 68, 68, .25); }

.tool-scene { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px max(14px, var(--safe-r)) 16px max(14px, var(--safe-l)); overflow-y: auto; background: linear-gradient(180deg, #f8fafc, #e2e8f0); }
.tool-scene h3 { margin: 6px 0 0; font-family: var(--display); font-weight: 800; font-size: 20px; }
.tk-setup { display: grid; justify-items: center; gap: 10px; width: min(100%, 520px); }
.tk-counts { display: flex; gap: 10px; }
.tk-counts button, .tm-presets button, .ar-chips button { min-width: 58px; padding: 10px 16px; border-radius: 999px; background: #fff; font-family: var(--display); font-weight: 800; font-size: 18px; box-shadow: 0 4px 0 rgba(31, 52, 64, .12); }
.tk-counts button[aria-pressed="true"], .ar-chips button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.tk-rewards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.tk-rewards button, .ft-row button { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 18px; background: #fff; font-weight: 700; font-size: 13px; box-shadow: 0 4px 0 rgba(31, 52, 64, .1); }
.tk-rewards button[aria-pressed="true"] { outline: 3px solid var(--brand); }
.tk-rewards svg, .ft-row svg { width: 54px; height: 54px; }
.tk-board { display: grid; justify-items: center; gap: 16px; width: min(100%, 560px); }
.tk-goal { display: grid; justify-items: center; gap: 6px; padding: 14px 20px; border-radius: 24px; background: #fff; box-shadow: 0 6px 0 rgba(31, 52, 64, .1); }
.tk-goal svg { width: 90px; height: 90px; }
.tk-goal b { font-family: var(--display); font-weight: 800; font-size: 20px; }
.tk-board.full .tk-goal { animation: hintGlow 1s ease-in-out infinite; }
.tk-slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tk-slot { width: clamp(62px, 19vw, 92px); height: clamp(62px, 19vw, 92px); border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px dashed #cbd5e1; }
.tk-slot svg { width: 62%; height: 62%; fill: #e2e8f0; }
.tk-slot.on { border-style: solid; border-color: var(--gold); background: #fffbeb; }
.tk-slot.on svg { fill: var(--gold); animation: starPop .45s cubic-bezier(.2, 1.6, .4, 1) both; }

.tm-presets { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tm-disc { position: relative; width: min(72vw, 48vh, 340px); aspect-ratio: 1; }
.tm-disc svg { width: 100%; height: 100%; transform: rotate(-90deg) scaleX(-1); }
.tm-bg { fill: #fff; stroke: #e2e8f0; stroke-width: 2; }
.tm-pie { fill: none; stroke: #ef4444; stroke-width: 45; transition: stroke-dashoffset .25s linear; }
.tm-left { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 10vw, 54px); color: var(--ink); text-shadow: 0 2px 0 #fff, 0 -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff; font-variant-numeric: tabular-nums; }

.ft-board { position: sticky; top: -16px; z-index: 2; display: flex; align-items: center; gap: 10px; width: min(100%, 620px); padding: 10px 0 12px; background: rgba(241, 245, 249, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 10px 14px -12px rgba(31, 52, 64, .35); }
.ft-box { position: relative; flex: 1; display: grid; justify-items: center; gap: 6px; padding: 14px 10px; border-radius: 24px; background: #fff; box-shadow: 0 6px 0 rgba(31, 52, 64, .1); text-align: center; transition: transform .3s; }
.ft-box > * { transition: opacity .3s; }
.ft-box small { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--brand); }
.ft-box svg { width: min(20vw, 18vh, 110px); height: auto; }
.ft-box b { font-size: 16px; }
.ft-arrow { font-size: 30px; font-weight: 800; color: var(--ink-soft); }
.ft-scene.did .ft-box.first > * { opacity: .4; }
.ft-scene.did .ft-box.first::after { content: "✓"; position: absolute; top: -12px; inset-inline-start: -12px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--grass); color: #fff; font-size: 26px; font-weight: 800; box-shadow: 0 4px 0 rgba(0, 0, 0, .15); animation: popIn .4s cubic-bezier(.2, 1.6, .4, 1) both; }
.ft-scene.big .ft-board { position: static; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (min-width: 900px) {
  .ft-scene:not(.big) { flex-direction: row; align-items: flex-start; justify-content: center; gap: 24px; }
  .ft-scene:not(.big) .ft-board { top: 0; width: min(48%, 560px); padding: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ft-scene:not(.big) .ft-pick { width: min(48%, 520px); }
  .ft-pick h4:first-child { margin-top: 0; }
}
.ft-scene.did .ft-box.then { transform: scale(1.06); outline: 4px solid var(--grass); }
.ft-scene.big .ft-pick { display: none; }
.ft-scene.big .ft-board { flex: 1; }
.ft-scene.big .ft-box svg { width: min(36vw, 220px); }
.ft-pick { width: min(100%, 620px); }
.ft-pick h4 { margin: 10px 0 6px; font-family: var(--display); font-weight: 800; }
.ft-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.tr-wrap { display: flex; gap: 14px; align-items: stretch; width: min(100%, 480px); }
.tr-tube { position: relative; width: 34px; border-radius: 20px; background: #fff; border: 3px solid var(--ink); overflow: hidden; }
.tr-fill { position: absolute; left: 0; right: 0; bottom: 0; height: var(--h, 0%); background: var(--c, #22c55e); transition: height .5s ease, background .5s; }
.tr-levels { flex: 1; display: grid; gap: 8px; }
.tr-levels button { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 18px; background: #fff; border: 3px solid transparent; font-weight: 700; text-align: start; box-shadow: inset 8px 0 0 var(--c); }
.tr-levels button svg { width: 42px; height: 42px; flex: none; }
.tr-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-family: var(--display); font-weight: 800; font-size: 17px; line-height: 1; }
.tr-levels button.on { border-color: var(--c); }
.tr-tips { width: min(100%, 480px); padding: 12px 16px; border-radius: 18px; background: #fff; }
.tr-tips ul { margin: 8px 0 0; padding-inline-start: 20px; line-height: 1.9; }

.cc-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(100%, 460px); }
.cc-choices button { display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border-radius: 22px; background: #fff; font-weight: 800; font-size: 16px; box-shadow: 0 5px 0 rgba(31, 52, 64, .1); }
.cc-choices svg { width: 70px; height: 70px; }
.cc-stage { flex: 1; display: grid; place-items: center; align-content: center; gap: 16px; width: 100%; }
.cc-breath-wrap { width: 240px; height: 240px; display: grid; place-items: center; }
.cc-breath { width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, #ede9fe, #a78bfa); transition: transform 4s ease-in-out; }
.cc-breath.in { transform: scale(1.9); }
.cc-breath.out { transform: scale(1); transition-duration: 5s; }
.cc-text { font-family: var(--display); font-weight: 800; font-size: 24px; text-align: center; }
.cc-num { font-family: var(--display); font-weight: 800; font-size: 110px; color: #3b82f6; }
.cc-num.pop { animation: popIn .5s ease both; }
.cc-ball { width: 150px; height: 130px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fdba74, #f97316); box-shadow: 0 10px 0 rgba(160, 60, 0, .2); transition: transform .3s; }
.cc-ball.press { transform: scale(1.18, .7); }
.cc-count { font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.cc-sea { position: relative; width: min(80vw, 360px); aspect-ratio: 4 / 3; border-radius: 26px; overflow: hidden; background: linear-gradient(180deg, #7dd3fc, #e0f2fe 60%); }
.cc-sea span { position: absolute; left: -10%; right: -10%; height: 40%; border-radius: 40%; }
.cc-sea .w1 { bottom: -12%; background: #38bdf8; animation: seaW 6s ease-in-out infinite alternate; }
.cc-sea .w2 { bottom: -20%; background: #0ea5e9; animation: seaW 8s ease-in-out infinite alternate-reverse; }
.cc-sea .sun { left: auto; right: 14%; top: 14%; width: 54px; height: 54px; border-radius: 50%; background: #facc15; }

.ar-setup { display: grid; gap: 8px; justify-items: center; }
.ar-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ar-chips.pos button { font-size: 15px; }
.ar-card { display: grid; justify-items: center; gap: 8px; width: min(100%, 460px); padding: 30px 20px; border-radius: 30px; background: #fff; box-shadow: 0 10px 0 rgba(31, 52, 64, .1); }
.ar-word { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 15vw, 84px); line-height: 1.3; }
.ar-word mark { background: none; color: var(--brand); }
.ar-meta { color: var(--ink-soft); font-weight: 700; }
.ar-score { min-height: 24px; font-weight: 800; color: var(--grass-deep); font-variant-numeric: tabular-nums; }

.coach-face.talk .mascot { animation: talkBob .28s ease-in-out infinite alternate; transform-origin: 50% 90%; }
@keyframes talkBob { from { transform: translateY(0) scale(1, 1); } to { transform: translateY(-3px) scale(1.03, .97); } }
@keyframes dieRoll { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes seaW { from { transform: translateX(-4%); } to { transform: translateX(4%); } }
.reach-scene { overflow: hidden; background: radial-gradient(circle at 50% 28%, #f1fbff 0%, #c9ecfb 60%, #a6dbf3 100%); }
.rh-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); opacity: 0; transition: opacity .4s ease; }
.reach-scene.cam .rh-video { opacity: .92; }
.rh-deco i { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .55); animation: rhFloat 9s ease-in-out infinite; }
.rh-deco i:nth-child(1) { width: 70px; height: 70px; top: 14%; left: 8%; }
.rh-deco i:nth-child(2) { width: 40px; height: 40px; top: 62%; left: 18%; animation-delay: -3s; }
.rh-deco i:nth-child(3) { width: 90px; height: 90px; top: 30%; right: 6%; animation-delay: -5s; }
.rh-deco i:nth-child(4) { width: 30px; height: 30px; top: 78%; right: 24%; animation-delay: -1.5s; }
.rh-deco i:nth-child(5) { width: 54px; height: 54px; top: 46%; left: 46%; animation-delay: -6.5s; }
.reach-scene.cam .rh-deco { display: none; }
.rh-dots { position: absolute; top: 14px; left: 0; right: 0; z-index: 3; justify-content: center; }
.rh-field { position: absolute; inset: 0; z-index: 2; }
.rh-bubble {
  position: absolute;
  width: clamp(88px, 21vmin, 176px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid #fff;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle at 33% 28%, #fff 0 8%, rgba(255, 255, 255, 0) 20%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .15) 58%, rgba(255, 255, 255, 0) 70%),
    var(--c, #4db1e0);
  box-shadow: 0 12px 26px rgba(10, 60, 100, .25), inset 0 -10px 18px rgba(0, 0, 0, .12);
  animation: rhIn .55s cubic-bezier(.2, 1.6, .4, 1) both, rhBob 2.6s ease-in-out .55s infinite;
  cursor: pointer;
}
.rh-bubble span { position: absolute; inset: -14px; border-radius: 50%; border: 5px solid var(--c, #4db1e0); opacity: var(--hot, 0); transform: scale(calc(1 + var(--hot, 0) * .12)); transition: opacity .1s, transform .1s; pointer-events: none; }
.rh-bubble.pop { animation: rhPop .45s ease-out forwards; pointer-events: none; }
.rh-bubble.away { animation: rhAway .35s ease-in forwards; pointer-events: none; }

.frog-scene { overflow: hidden; background: radial-gradient(120% 80% at 50% 0%, #93e3c6 0%, #55c6ad 32%, #2fa59b 70%, #208a8b 100%); }
.fr-ripples i { position: absolute; width: 130px; height: 42px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); transform: translate(-50%, -50%) scale(.6); animation: frRip 4.4s ease-out infinite; }
.fr-ripples i:nth-child(1) { top: 30%; left: 30%; }
.fr-ripples i:nth-child(2) { top: 52%; left: 74%; animation-delay: -1.1s; }
.fr-ripples i:nth-child(3) { top: 72%; left: 40%; animation-delay: -2.2s; }
.fr-ripples i:nth-child(4) { top: 12%; left: 66%; animation-delay: -3.3s; }
.fr-pads { position: absolute; inset: 0; }
.fr-pad {
  position: absolute;
  width: clamp(64px, 17vmin, 124px);
  aspect-ratio: 1.22;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 40% 34%, #86df92 0%, #48b764 62%, #3a9d55 100%);
  box-shadow: 0 6px 0 rgba(0, 70, 50, .25), 0 0 0 3px rgba(255, 255, 255, .25);
  -webkit-mask: conic-gradient(from 150deg, #000 0 330deg, transparent 330deg 360deg);
  mask: conic-gradient(from 150deg, #000 0 330deg, transparent 330deg 360deg);
}
.fr-pad b { font-family: var(--display); font-weight: 800; font-size: clamp(17px, 4.2vmin, 26px); color: rgba(255, 255, 255, .92); text-shadow: 0 2px 0 rgba(0, 60, 40, .3); }
.fr-pad.on { background: radial-gradient(circle at 40% 34%, #b2f0a9 0%, #5fcf6e 62%, #45b45a 100%); }
.fr-pad.goal { -webkit-mask: none; mask: none; background: radial-gradient(circle at 40% 34%, #ffe9a6 0%, #ffc83d 70%); box-shadow: 0 6px 0 rgba(130, 80, 0, .3), 0 0 0 4px #fff; }
.fr-pad.goal svg { width: 58%; height: auto; overflow: visible; }
.fr-frog { position: absolute; z-index: 3; width: clamp(62px, 16vmin, 108px); transform: translate(-50%, -64%); transition: left .45s cubic-bezier(.3, .8, .4, 1), top .45s cubic-bezier(.3, .8, .4, 1); pointer-events: none; }
.fr-frog svg { width: 100%; height: auto; transform-origin: 50% 100%; }
.fr-frog.hop svg { animation: frHop .45s ease-out; }
.fr-count { position: absolute; z-index: 4; top: 8%; left: 50%; font-family: var(--display); font-weight: 800; font-size: clamp(56px, 15vmin, 120px); line-height: 1; color: #fff; text-shadow: 0 6px 0 rgba(0, 60, 50, .28); opacity: 0; transform: translateX(-50%); pointer-events: none; }
.fr-count.in { animation: frCount 1s ease-out both; }
.fr-cam, .sy-cam { position: absolute; z-index: 5; top: 12px; inset-inline-end: 12px; width: 26%; max-width: 150px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 18px; border: 4px solid #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); background: #1f3440; }
.fr-cam video, .sy-cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }

.says-scene { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 54px 16px 20px; background: radial-gradient(circle at 50% 30%, #fffaf3 0%, #ffead1 70%, #ffdcb5 100%); }
.says-scene .qz-dots { position: absolute; top: 16px; left: 0; right: 0; justify-content: center; }
.sy-card { position: relative; width: min(80%, 330px); display: grid; justify-items: center; gap: 8px; padding: 42px 18px 22px; border-radius: 30px; background: #fff; box-shadow: 0 12px 34px rgba(170, 80, 0, .16); transition: box-shadow .3s ease; }
.sy-card.in { animation: syIn .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.sy-banner { position: absolute; top: -20px; left: 50%; padding: 8px 20px 10px; border-radius: 999px; background: linear-gradient(180deg, #ffa451, #ec710e); color: #fff; font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1; white-space: nowrap; box-shadow: 0 5px 0 #c25a07; opacity: 0; transform: translateX(-50%) scale(.5); transition: opacity .25s ease, transform .35s cubic-bezier(.2, 1.5, .4, 1); }
.sy-card.says .sy-banner { opacity: 1; transform: translateX(-50%) scale(1); }
.sy-art { width: min(46%, 150px); height: auto; }
.sy-move { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 6.4vmin, 36px); line-height: 1.2; text-align: center; color: #1f3440; }
.sy-card.good { box-shadow: 0 0 0 6px #4cc883, 0 12px 34px rgba(0, 0, 0, .1); }
.sy-card.bad { box-shadow: 0 0 0 6px #ffb74a, 0 12px 34px rgba(0, 0, 0, .1); }
.sy-timer { width: min(70%, 300px); height: 12px; border-radius: 12px; background: rgba(255, 255, 255, .8); overflow: hidden; visibility: hidden; }
.says-scene.cam .sy-timer { visibility: visible; }
.sy-timer i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #4cc883, #ffc83d); transform-origin: 0 50%; transform: scaleX(0); }
[dir="rtl"] .sy-timer i { transform-origin: 100% 50%; }

@keyframes rhIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.2); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes rhBob { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -56%); } }
@keyframes rhPop { 0% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 60% { opacity: .7; transform: translate(-50%, -50%) scale(1.35); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); } }
@keyframes rhAway { to { opacity: 0; transform: translate(-50%, -50%) scale(.3); } }
@keyframes rhFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@keyframes frRip { 0% { opacity: .8; transform: translate(-50%, -50%) scale(.5); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.3); } }
@keyframes frHop { 0% { transform: translateY(0) scale(1, 1); } 25% { transform: translateY(0) scale(1.08, .88); } 55% { transform: translateY(-38%) scale(.94, 1.08); } 100% { transform: translateY(0) scale(1, 1); } }
@keyframes frCount { 0% { opacity: 0; transform: translateX(-50%) scale(1.7); } 25% { opacity: 1; transform: translateX(-50%) scale(1); } 100% { opacity: 0; transform: translateX(-50%) scale(.92); } }
@keyframes syIn { from { opacity: 0; transform: translateY(24px) scale(.9); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .rh-bubble, .rh-deco i, .fr-ripples i { animation: none; }
}
.qz-pic { display: grid; justify-items: center; gap: 8px; padding: 16px 22px; border-radius: 26px; background: #fff; box-shadow: 0 8px 22px rgba(23, 141, 191, .12); }
.qz-pic svg { width: min(40vw, 26vh, 170px); height: auto; overflow: visible; }
.qz-pic b { font-family: var(--display); font-weight: 800; font-size: clamp(18px, 5vw, 24px); color: #1f3440; text-align: center; }
.qz-letter { width: min(36vw, 150px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 34px; background: linear-gradient(180deg, #ffa451, #ec710e); color: #fff; font-family: var(--display); font-weight: 800; font-size: clamp(64px, 18vw, 96px); line-height: 1; box-shadow: 0 8px 0 #c25a07; }
.qz-blank { display: inline-block; min-width: 2.2em; margin: 0 .15em; border-bottom: 4px dashed #f48120; color: #f48120; text-align: center; }
.qz-splash { width: min(40vw, 160px); aspect-ratio: 1; display: grid; place-items: center; background: var(--c); border-radius: 42% 58% 55% 45% / 50% 42% 58% 50%; box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .12); }
.qz-splash b { color: #fff; font-family: var(--display); font-weight: 800; font-size: 24px; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.qz-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 14px; border-radius: 22px; background: #fff; box-shadow: 0 8px 22px rgba(23, 141, 191, .12); }
.qz-row svg { width: min(11vw, 52px); height: auto; }
.qz-q { width: min(11vw, 52px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 14px; border: 3px dashed #f48120; color: #f48120; font-family: var(--display); font-weight: 800; font-size: 28px; animation: dotPulse 1.2s ease-in-out infinite; }
.qz-pips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; max-width: 90px; }
.qz-pips i { width: 10px; height: 10px; border-radius: 50%; background: #f48120; }
.size-scene .qz-opt svg { transition: none; }

.spot-scene { display: flex; flex-direction: column; gap: 10px; padding: 14px max(12px, var(--safe-r)) 14px max(12px, var(--safe-l)); background: linear-gradient(180deg, #ecfeff, #fef9c3); }
.cat-spot { background: linear-gradient(180deg, #f5f3ff, #fdf2f8); }
.sp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 18px; background: #fff; box-shadow: 0 6px 16px rgba(23, 141, 191, .1); }
.sp-q { font-family: var(--display); font-weight: 800; font-size: 20px; color: #1f3440; }
.sp-left { padding: 4px 12px; border-radius: 999px; background: #fff3e8; color: #cf5f08; font-weight: 800; font-variant-numeric: tabular-nums; }
.sp-field { position: relative; flex: 1; min-height: 0; border-radius: 24px; background: rgba(255, 255, 255, .55); }
.sp-item { position: absolute; width: clamp(66px, 19vmin, 132px); aspect-ratio: 1; padding: 4px; border-radius: 50%; transform: translate(-50%, -50%) rotate(var(--r)); animation: spIn .45s var(--d) cubic-bezier(.2, 1.5, .4, 1) both; transition: background-color .2s; }
.sp-field.small .sp-item { width: clamp(54px, 15vmin, 108px); }
.sp-item svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, .14)); }
.sp-item.got { background: rgba(34, 197, 94, .2); box-shadow: 0 0 0 4px #22c55e; }
.sp-item.got::after { content: "✓"; position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #22c55e; color: #fff; font-weight: 800; font-size: 15px; }
.sp-item.nope { animation: spNope .45s ease; }

.rhythm-scene { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 16px; background: radial-gradient(circle at 50% 40%, #fff7ed, #fed7aa); }
.rm-beats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; min-height: 26px; }
.rm-beats i { width: 22px; height: 22px; border-radius: 50%; background: #f48120; animation: popIn .3s cubic-bezier(.2, 1.6, .4, 1) both; }
.rm-beats i.me { background: #4db1e0; }
.rm-drum { width: min(56vw, 34vh, 240px); aspect-ratio: 1; padding: 22px; border-radius: 50%; background: #fff; box-shadow: 0 12px 0 rgba(170, 80, 0, .14), 0 20px 40px rgba(170, 80, 0, .18); }
.rm-drum:disabled { cursor: default; }
.rm-drum svg { width: 100%; height: 100%; overflow: visible; }
.rm-drum.hit { animation: rmHit .25s ease; }
.rm-state { min-height: 1.5em; font-family: var(--display); font-weight: 800; font-size: 22px; color: #1f3440; text-align: center; }

.simon-scene { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 16px; background: radial-gradient(circle at 50% 40%, #1e293b, #0b1220); }
.simon-scene .qz-dots i { background: rgba(255, 255, 255, .2); }
.sm-board { position: relative; width: min(84vw, 44vh, 360px); aspect-ratio: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sm-pad { display: grid; place-items: center; border-radius: 26px; background: var(--c); opacity: .5; box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .2); transition: opacity .12s, transform .12s, box-shadow .12s; }
.sm-pad:nth-child(1) { border-start-start-radius: 100%; }
.sm-pad:nth-child(2) { border-start-end-radius: 100%; }
.sm-pad:nth-child(3) { border-end-start-radius: 100%; }
.sm-pad:nth-child(4) { border-end-end-radius: 100%; }
.sm-pad:disabled { cursor: default; }
.sm-pad svg { width: 38%; height: auto; }
.sm-pad.lit { opacity: 1; transform: scale(1.04); box-shadow: 0 0 0 6px rgba(255, 255, 255, .45), 0 0 44px var(--c); }
.sm-core { position: absolute; left: 50%; top: 50%; width: 32%; aspect-ratio: 1; padding: 8px; display: grid; place-items: center; border-radius: 50%; background: #0b1220; box-shadow: 0 0 0 8px #1e293b; transform: translate(-50%, -50%); pointer-events: none; }
.sm-core .mascot { width: 100%; height: 100%; }

.gng-scene { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 16px; background: linear-gradient(180deg, #f1f5f9, #dbe4ee); }
.gng-score { display: flex; gap: 12px; }
.gng-score span { padding: 6px 16px; border-radius: 999px; background: #fff; font-weight: 800; font-size: 18px; box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }
.gng-score .ok { color: #16a34a; }
.gng-score .no { color: #dc2626; }
.gng-light { width: min(60vw, 36vh, 260px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: #1f3440; box-shadow: inset 0 0 0 14px #334155, 0 16px 40px rgba(0, 0, 0, .25); }
.gng-light i { width: 78%; aspect-ratio: 1; border-radius: 50%; background: #475569; transition: background .1s, box-shadow .1s; }
.gng-light.go i { background: radial-gradient(circle at 40% 35%, #bbf7d0, #22c55e 60%); box-shadow: 0 0 50px #22c55e; }
.gng-light.stop i { background: radial-gradient(circle at 40% 35%, #fecaca, #ef4444 60%); box-shadow: 0 0 50px #ef4444; }
.gng-light.tapped { animation: rmHit .25s ease; }
.gng-light.oops { animation: shake .4s ease; }
.gng-tip { margin: 0; max-width: 30ch; font-weight: 700; line-height: 1.7; color: #55707e; text-align: center; }
.gng-bar { width: min(80%, 320px); height: 10px; border-radius: 10px; background: #fff; overflow: hidden; }
.gng-bar i { display: block; height: 100%; background: #f48120; transform: scaleX(0); transform-origin: 100% 50%; transition: transform .3s ease; }
[dir="ltr"] .gng-bar i { transform-origin: 0 50%; }

.missing-scene { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px max(14px, var(--safe-r)) 14px max(14px, var(--safe-l)); overflow-y: auto; background: linear-gradient(180deg, #eef2ff, #fdf2f8); }
.ms-board { position: relative; width: min(100%, 520px); padding: 14px; overflow: hidden; border-radius: 26px; background: #fff; box-shadow: 0 8px 22px rgba(80, 60, 160, .12); }
.ms-grid { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 10px; }
.ms-cell { aspect-ratio: 1; padding: 10px; display: grid; place-items: center; border-radius: 18px; background: #f8fafc; }
.ms-cell svg { width: 100%; height: 100%; }
.ms-cell.gone { background: #fff7ed; box-shadow: inset 0 0 0 3px #f48120; }
.ms-cell.back { background: #dcfce7; animation: popIn .4s cubic-bezier(.2, 1.5, .4, 1) both; }
.ms-q { font-family: var(--display); font-weight: 800; font-size: 44px; color: #f48120; }
.ms-cover { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle, rgba(255, 255, 255, .15) 1.4px, transparent 1.8px) 0 0 / 22px 22px, linear-gradient(180deg, #8b5cf6, #6d28d9); transform: translateY(-102%); transition: transform .45s cubic-bezier(.6, 0, .3, 1); }
.ms-cover.shut { transform: none; }
.ms-cover .mascot { width: 30%; height: auto; }
.ms-opts .qz-opt svg { width: min(18vw, 76px); }

.box-scene { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 16px; background: radial-gradient(circle at 50% 40%, #e0f2fe, #c7d2fe); }
.bx-wrap { position: relative; width: min(78vw, 44vh, 340px); aspect-ratio: 1; }
.bx-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bx-track { fill: rgba(255, 255, 255, .55); stroke: #fff; stroke-width: 8; }
.bx-dot { position: absolute; left: 9.09%; top: 90.9%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #f48120 60%); box-shadow: 0 0 0 8px rgba(244, 129, 32, .25), 0 0 24px rgba(244, 129, 32, .6); }
.bx-mid { position: absolute; inset: 24%; display: grid; place-content: center; justify-items: center; gap: 4px; border-radius: 50%; background: #fff; text-align: center; box-shadow: 0 10px 30px rgba(80, 90, 200, .2); transition: transform 3s ease-in-out; }
.bx-wrap.s0 .bx-mid, .bx-wrap.s1 .bx-mid { transform: scale(1.14); }
.bx-wrap.s2 .bx-mid, .bx-wrap.s3 .bx-mid { transform: scale(.86); }
.bx-word { max-width: 9ch; font-family: var(--display); font-weight: 800; font-size: clamp(18px, 5vw, 26px); line-height: 1.2; color: #1f3440; }
.bx-n { font-family: var(--display); font-weight: 800; font-size: 40px; line-height: 1; color: #f48120; }

.moves-scene.fingers { background: linear-gradient(180deg, #fff7ed, #ffedd5); }
.moves-scene.heavy { background: linear-gradient(180deg, #e0f2fe, #bae6fd); }

.rp-rw { display: inline-flex; gap: 8px; }
.rp-rw .ok { color: #16a34a; }
.rp-rw .no { color: #dc2626; }

@keyframes spIn { from { opacity: 0; transform: translate(-50%, -50%) rotate(var(--r)) scale(.3); } to { opacity: 1; transform: translate(-50%, -50%) rotate(var(--r)) scale(1); } }
@keyframes spNope { 0%, 100% { transform: translate(-50%, -50%) rotate(var(--r)); } 25% { transform: translate(-56%, -50%) rotate(var(--r)); } 75% { transform: translate(-44%, -50%) rotate(var(--r)); } }
@keyframes rmHit { 0% { transform: scale(1); } 40% { transform: scale(.92); } 100% { transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .qz-q, .sp-item { animation: none; }
  .bx-mid { transition: none; }
}
.start {
  z-index: 30;
  background:
    radial-gradient(70% 46% at 100% 0%, rgba(77, 177, 224, .26), transparent 70%),
    radial-gradient(60% 40% at 0% 34%, rgba(244, 129, 32, .12), transparent 70%),
    linear-gradient(180deg, #f8fcff 0%, #e9f6fd 52%, #d6effb 100%);
  color: #26343e;
}
.start.leaving { pointer-events: none; animation: stLeave .8s .3s cubic-bezier(.72, 0, .28, 1) forwards; }

.st-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.st-dots {
  position: absolute;
  inset: 0;
  opacity: .5;
  background-image: radial-gradient(circle, rgba(77, 177, 224, .35) 1.4px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.st-letters i {
  position: absolute;
  bottom: -70px;
  left: var(--x);
  padding: 2px 13px 6px;
  border-radius: 16px 16px 16px 5px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(23, 141, 191, .12);
  font-family: var(--display);
  font-style: normal;
  font-weight: 800;
  font-size: var(--fs, 22px);
  line-height: 1.3;
  color: var(--c);
  opacity: 0;
  animation: stUp var(--t, 18s) linear infinite;
  animation-delay: var(--d, 0s);
}
.st-sea { position: absolute; left: 0; right: 0; bottom: 0; height: calc(9vh + var(--safe-b)); background: linear-gradient(180deg, #4db1e0, #178dbf); }
.st-sea::before, .st-sea::after {
  content: "";
  position: absolute;
  left: 0;
  width: calc(100% + 120px);
  height: 26px;
  background-repeat: repeat-x;
  background-size: 120px 26px;
  animation: waves 14s linear infinite;
}
.st-sea::before { top: -24px; animation-duration: 22s; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 26'%3E%3Cpath d='M0 14q15-12 30 0t30 0 30 0 30 0V26H0z' fill='%2394d4f2'/%3E%3C/svg%3E"); }
.st-sea::after { top: -16px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 26'%3E%3Cpath d='M0 14q15-12 30 0t30 0 30 0 30 0V26H0z' fill='%234db1e0'/%3E%3C/svg%3E"); }

.st-top {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(12px + var(--safe-t)) max(18px, var(--safe-r)) 0 max(18px, var(--safe-l));
  animation: stDown .7s .05s cubic-bezier(.2, .9, .3, 1) both;
}
.st-logo { display: block; flex: none; border-radius: 12px; }
.st-logo img { display: block; height: clamp(42px, 6.6vh, 60px); width: auto; }
.st-tools { display: flex; align-items: center; gap: 8px; }
.st-lang {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 0 rgba(23, 141, 191, .16);
  font-size: 14px;
  font-weight: 700;
  color: #26343e;
  text-decoration: none;
}
.st-tools .round { background: #fff; box-shadow: 0 4px 0 rgba(23, 141, 191, .16); }

.st-main {
  position: relative;
  z-index: 3;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(4px, 1.6vh, 22px);
  padding: 4px max(18px, var(--safe-r)) calc(9vh + 14px + var(--safe-b)) max(18px, var(--safe-l));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.st-main > .st-hero { margin-top: auto; }
.st-main > .st-copy { margin-bottom: auto; }

.st-hero { --S: min(80vw, 40vh, 420px); position: relative; flex: none; width: min(100%, calc(var(--S) * 1.3)); height: var(--S); overflow: hidden; }
.st-stage { position: absolute; top: 0; bottom: 0; left: 50%; width: var(--S); margin-left: calc(var(--S) * -.5); perspective: 1000px; transform-style: preserve-3d; }
.st-ring {
  position: absolute;
  left: 12%;
  top: 4%;
  width: 76%;
  height: 76%;
  border-radius: 50%;
  border: 3px solid var(--c, #4db1e0);
  opacity: 0;
  transform: translateZ(-3px);
  animation: stRing 4.2s 1.2s cubic-bezier(.2, .6, .4, 1) infinite;
}
.st-ring:nth-child(2) { --c: #f48120; animation-delay: 2.6s; }
.st-ring:nth-child(3) { animation-delay: 4s; }
.st-halo {
  position: absolute;
  left: 8.4%;
  top: .4%;
  width: 83.2%;
  height: 83.2%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #f48120, #ffc83d 16%, #4db1e0 42%, #4cc883 62%, #4db1e0 80%, #f48120);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px));
  transform: translateZ(-2.5px);
  animation: stHalo 16s linear infinite, stShow .7s .6s ease both;
}
.st-disc {
  position: absolute;
  left: 12%;
  top: 4%;
  width: 76%;
  height: 76%;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(180deg, #8fd3f5 0%, #c5ebfb 38%, #eaf8fe 56%);
  box-shadow: 0 0 0 calc(var(--S) * .024) #fff, 0 0 0 calc(var(--S) * .05) rgba(77, 177, 224, .18), 0 22px 44px rgba(23, 141, 191, .3);
  transform: translateZ(-2px);
  animation: stDisc .9s .1s cubic-bezier(.2, 1.3, .4, 1) both;
}
.st-sun { position: absolute; top: 15%; left: 20%; width: 15%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 38%, #fff6c8, #ffd35c 64%); box-shadow: 0 0 0 7px rgba(255, 211, 92, .25); }
.st-cloud { position: absolute; top: 28%; right: -30%; width: 26%; height: 8%; border-radius: 40px; background: #fff; animation: stCloud 26s linear infinite; }
.st-cloud::before { content: ""; position: absolute; width: 48%; aspect-ratio: 1; top: -70%; left: 18%; border-radius: 50%; background: #fff; }
.st-cloud.c2 { top: 16%; width: 18%; height: 6%; animation-duration: 34s; animation-delay: -17s; }
.st-water { position: absolute; left: 0; right: 0; top: 60%; bottom: 0; background: linear-gradient(180deg, #4db1e0, #178dbf); }
.st-water::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: calc(100% + 80px);
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 18'%3E%3Cpath d='M0 10q10-9 20 0t20 0 20 0 20 0V18H0z' fill='%234db1e0'/%3E%3C/svg%3E") repeat-x;
  background-size: 80px 18px;
  animation: stWater 7s linear infinite;
}
.st-water i { position: absolute; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .55); animation: glint 3.6s ease-in-out infinite; }

.st-isle { position: absolute; left: 17%; top: 48%; width: 66%; transform: translateZ(0); animation: stPop .8s .3s cubic-bezier(.2, 1.4, .4, 1) both; }
.st-isle svg { width: 100%; height: auto; animation: bob 5s ease-in-out infinite; }

.st-buddy {
  position: absolute;
  left: 30%;
  top: 21%;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 40%;
  transform: translateZ(1px);
  animation: stPop .8s .45s cubic-bezier(.2, 1.5, .4, 1) both;
}
.st-buddy .mascot { width: 100%; height: 100%; }
.st-buddy .m-bodywrap { animation: stIdle 3.4s ease-in-out infinite; }
.st-buddy .mascot:not([data-face]) .m-arm-r { transform-box: fill-box; transform-origin: 0% 100%; animation: stWave 5s 1.6s ease-in-out infinite; }
.st-buddy .m-pupil, .st-buddy .m-glint { transform: translate(var(--px, 0px), var(--py, 0px)); transition: transform .25s ease-out; }
.st-buddy.talk .mascot { animation: talkBob .28s ease-in-out infinite alternate; }

.st-hi {
  position: absolute;
  top: 3%;
  left: 60%;
  margin: 0;
  max-width: 46%;
  padding: 7px 14px 9px;
  border-radius: 18px 18px 18px 5px;
  background: #fff;
  box-shadow: 0 5px 0 rgba(23, 141, 191, .2);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(14px, calc(var(--S) * .052), 21px);
  line-height: 1.25;
  white-space: nowrap;
  color: #26343e;
  transform: translateZ(4px);
  transform-origin: 0% 100%;
  animation: stBubble .6s 1.15s cubic-bezier(.2, 1.5, .4, 1) both;
}

.st-orbit { position: absolute; left: 50%; top: 67%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(76deg); }
.st-pop { position: absolute; transform-style: preserve-3d; animation: stOrbitIn 1.2s .55s cubic-bezier(.2, 1.1, .3, 1) both; }
.st-spin { position: absolute; transform-style: preserve-3d; animation: stSpin 48s linear infinite; }
.st-badge { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform: rotateZ(var(--a)) translateX(calc(var(--S) * .47)); }
.st-badge-in {
  position: absolute;
  left: calc(var(--S) * -.078);
  top: calc(var(--S) * -.078);
  width: calc(var(--S) * .156);
  height: calc(var(--S) * .156);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--c, #4db1e0);
  box-shadow: 0 5px 0 rgba(23, 141, 191, .2);
  animation: stCounter 48s linear infinite;
}
.st-badge-in svg { width: 82%; height: 82%; }

.st-copy {
  width: min(100%, 520px);
  display: grid;
  justify-items: center;
  gap: clamp(6px, 1.3vh, 14px);
  text-align: center;
}
.st-eyebrow {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 6px;
  border-radius: 999px;
  background: #fff3e8;
  color: #cf5f08;
  font-size: 13px;
  font-weight: 700;
  animation: stRise .6s .35s cubic-bezier(.2, .9, .3, 1) both;
}
.st-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #f48120; box-shadow: 0 0 0 4px rgba(244, 129, 32, .18); }
.st-copy h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(40px, 11vw, 64px);
  line-height: 1.05;
  color: #26343e;
}
.st-copy h1 span { display: inline-block; animation: stRise .7s .45s cubic-bezier(.2, 1.2, .3, 1) both; }
.st-copy h1 span + span { animation-delay: .58s; }
.st-copy h1 .hl { color: #f48120; text-shadow: 0 4px 0 rgba(207, 95, 8, .16); }
.st-copy h1 .sq { position: relative; padding-bottom: .26em; }
.st-squiggle { position: absolute; left: 6%; bottom: 0; width: 88%; height: .2em; overflow: visible; }
.st-squiggle path { fill: none; stroke: #4db1e0; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: stDraw .8s 1.05s ease-out forwards; }
.st-lead { margin: 0; max-width: 34ch; font-size: clamp(14px, 3.7vw, 17px); line-height: 1.75; color: #3c4a54; animation: stRise .6s .7s cubic-bezier(.2, .9, .3, 1) both; }
.st-stats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; animation: stRise .6s .8s cubic-bezier(.2, .9, .3, 1) both; }
.st-stats li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .85);
  box-shadow: 0 3px 0 rgba(23, 141, 191, .12);
  font-size: 13px;
  font-weight: 700;
  color: #3c4a54;
}
.st-stats b { font-family: var(--display); font-weight: 800; font-size: 19px; color: #178dbf; line-height: 1; }
.st-stats li.st-prog b { color: #cf5f08; }
.st-stats svg { width: 18px; height: 18px; fill: #ffc83d; }

.st-go {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: min(100%, 360px);
  min-height: 64px;
  margin-top: 4px;
  padding: 0 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffa451 0%, #f48120 52%, #ec710e 100%);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 26px;
  line-height: 1;
  box-shadow: 0 6px 0 #c25a07, 0 18px 34px rgba(244, 129, 32, .34);
  animation: stGoIn .8s .92s cubic-bezier(.2, 1.5, .4, 1) both;
}
.st-go::after {
  content: "";
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -50%;
  width: 34%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: translateX(0) skewX(-18deg);
  animation: stShine 3.6s 2.2s ease-in-out infinite;
}
.st-go:active { transform: translateY(3px); box-shadow: 0 3px 0 #c25a07, 0 10px 20px rgba(244, 129, 32, .3); }
.st-go-i { position: relative; z-index: 1; width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 3px 0 rgba(160, 70, 0, .3); }
.st-go-i svg { width: 18px; height: 18px; fill: #f48120; margin-left: 3px; }
.st-go-t { position: relative; z-index: 1; padding-bottom: 4px; }

.st-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; animation: stRise .6s 1.05s cubic-bezier(.2, .9, .3, 1) both; }
.st-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 3px 0 rgba(23, 141, 191, .14);
  font-size: 14px;
  font-weight: 700;
  color: #26343e;
}
.st-link svg { width: 20px; height: 20px; fill: none; stroke: #178dbf; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.start.leaving .st-buddy { animation: stJump .7s cubic-bezier(.3, 0, .2, 1) forwards; }
.start.leaving .st-copy, .start.leaving .st-top, .start.leaving .st-hi { animation: stFade .35s ease forwards; }
.start.leaving .st-ring { animation: stBurst .7s ease-out forwards; }

@keyframes stLeave { to { transform: translateY(-104%); } }
@keyframes stUp { 0% { opacity: 0; transform: translateY(0) rotate(-6deg); } 10% { opacity: .85; } 50% { transform: translateY(-55vh) rotate(6deg); } 72% { opacity: .85; } 84% { opacity: 0; } 100% { opacity: 0; transform: translateY(-112vh) rotate(-4deg); } }
@keyframes stDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes stRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes stDisc { from { opacity: 0; transform: translateZ(-2px) scale(.55); } to { opacity: 1; transform: translateZ(-2px) scale(1); } }
@keyframes stPop { from { opacity: 0; transform: translateZ(1px) translateY(30%) scale(.5); } to { opacity: 1; transform: translateZ(1px); } }
@keyframes stBubble { from { opacity: 0; transform: translateZ(4px) scale(.3); } to { opacity: 1; transform: translateZ(4px) scale(1); } }
@keyframes stGoIn { from { opacity: 0; transform: translateY(18px) scale(.86); } to { opacity: 1; transform: none; } }
@keyframes stRing { 0% { opacity: 0; transform: translateZ(-3px) scale(1); } 12% { opacity: .75; } 100% { opacity: 0; transform: translateZ(-3px) scale(1.42); } }
@keyframes stBurst { from { opacity: .8; transform: translateZ(-3px) scale(1); } to { opacity: 0; transform: translateZ(-3px) scale(2.2); } }
@keyframes stOrbitIn { from { transform: scale(.01) rotateZ(-120deg); } to { transform: none; } }
@keyframes stSpin { to { transform: rotateZ(360deg); } }
@keyframes stHalo { from { transform: translateZ(-2.5px) rotate(0); } to { transform: translateZ(-2.5px) rotate(360deg); } }
@keyframes stShow { from { opacity: 0; } to { opacity: 1; } }
@keyframes stCounter { from { transform: rotateZ(calc(-1 * var(--a))) rotateX(-76deg); } to { transform: rotateZ(calc(-1 * var(--a) - 360deg)) rotateX(-76deg); } }
@keyframes stIdle { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-5%) rotate(1.5deg); } }
@keyframes stWave { 0%, 62%, 100% { transform: rotate(0); } 68% { transform: rotate(-34deg); } 74% { transform: rotate(-4deg); } 80% { transform: rotate(-34deg); } 86% { transform: rotate(0); } }
@keyframes stCloud { from { transform: translateX(0); } to { transform: translateX(-560%); } }
@keyframes stWater { to { transform: translateX(-80px); } }
@keyframes stDraw { to { stroke-dashoffset: 0; } }
@keyframes stShine { 0% { transform: translateX(0) skewX(-18deg); } 34%, 100% { transform: translateX(560%) skewX(-18deg); } }
@keyframes stJump { 0% { transform: translateZ(1px); } 30% { transform: translateZ(1px) translateY(8%) scale(1.06, .9); } 100% { transform: translateZ(1px) translateY(-150%) scale(.9); opacity: 0; } }
@keyframes stFade { to { opacity: 0; transform: translateY(12px); } }

@media (max-width: 599px) {
  .topbar .title h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

[dir="ltr"] .st-squiggle { bottom: .1em; }

@media (max-width: 899px) {
  .st-letters { opacity: .55; }
  .st-letters i:nth-child(7), .st-letters i:nth-child(10) { display: none; }
  .st-hero { height: calc(var(--S) * .9); }
}

@media (max-height: 700px) {
  .st-hero { --S: min(76vw, 36vh, 420px); }
  .st-lead { display: none; }
}

@media (orientation: landscape) and (max-height: 520px) {
  .st-main { flex-direction: row; justify-content: center; gap: clamp(18px, 4vw, 48px); padding-top: 0; padding-bottom: calc(6vh + 10px + var(--safe-b)); }
  .st-main > .st-hero, .st-main > .st-copy { margin: auto 0; }
  .st-hero { --S: min(40vw, 64vh, 300px); order: 2; height: var(--S); }
  .st-copy { order: 1; width: min(52vw, 460px); justify-items: start; text-align: start; gap: 8px; }
  .st-copy h1 { font-size: clamp(30px, 7vh + 10px, 52px); }
  .st-lead { display: none; }
  .st-stats, .st-more { justify-content: flex-start; }
  .st-go { width: auto; min-width: 230px; min-height: 52px; font-size: 22px; }
  .st-sea { height: calc(6vh + var(--safe-b)); }
  .st-logo img { height: 40px; }
}

@media (min-width: 900px) {
  .st-main { flex-direction: row; justify-content: center; gap: clamp(40px, 6vw, 110px); padding-top: 0; padding-bottom: calc(9vh + 24px); }
  .st-main > .st-hero, .st-main > .st-copy { margin: auto 0; }
  .st-hero { --S: min(42vw, 66vh, 560px); order: 2; }
  .st-copy { order: 1; width: min(44vw, 540px); justify-items: start; text-align: start; }
  .st-copy h1 { font-size: clamp(62px, 6.6vw, 104px); }
  .st-lead { font-size: 18px; }
  .st-stats, .st-more { justify-content: flex-start; }
  .st-go { width: auto; min-width: 300px; min-height: 70px; font-size: 28px; padding: 0 28px; }
  .st-link:hover { background: #fff; }
  .st-go:hover { filter: brightness(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .start, .start *, .start *::before, .start *::after { animation: none !important; transition: none !important; }
  .st-letters, .st-ring { display: none; }
  .st-squiggle path { stroke-dashoffset: 0; }
  .st-badge-in { transform: rotateZ(calc(-1 * var(--a))) rotateX(-76deg); }
}
.btn.primary { background: linear-gradient(180deg, #ffa451 0%, #f48120 55%, #ec710e 100%); box-shadow: 0 5px 0 #c25a07, 0 10px 22px rgba(244, 129, 32, .26); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: 0 5px 0 #d3e2ea, inset 0 0 0 2px #e4eef4; }
.btn.primary:active { box-shadow: 0 2px 0 #c25a07, 0 6px 14px rgba(244, 129, 32, .22); transform: translateY(3px); }
.btn.ghost:active { box-shadow: 0 2px 0 #d3e2ea, inset 0 0 0 2px #e4eef4; transform: translateY(3px); }

.play { background: linear-gradient(180deg, #f8fcff 0%, #e6f4fc 100%); }
.playbar {
  gap: 12px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(31, 52, 64, .06), 0 10px 26px rgba(23, 141, 191, .08);
}
.playbar .round { background: #f2f7fa; box-shadow: none; }
.playbar .round svg { stroke: #26343e; }
.playtitle { gap: 3px; }
#play-service { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--svc-ink, #55707e); }
#play-service::before { content: ""; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--svc, #f48120); box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 0 0 5px var(--svc-soft, #ffe6d1); }
.playtitle h2 { font-size: 23px; color: #1f3440; }
.levels { width: max-content; max-width: 100%; gap: 2px; padding: 3px; border-radius: 999px; background: #eef4f8; }
.lv { height: 28px; padding: 0 13px; border-radius: 999px; background: transparent; color: #6b8391; transition: background-color .2s, color .2s; }
.lv.done { background: transparent; color: #8a5a00; }
.lv.done::before { content: "★"; margin-inline-end: 4px; color: #ffb020; }
.lv.on { background: var(--svc-ink, var(--brand)); color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .14); }
.lv.on.done::before { color: #ffe08a; }
.lv:disabled { opacity: .5; }

.coach {
  background: #fff;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -1px 0 rgba(31, 52, 64, .05), 0 -12px 30px rgba(23, 141, 191, .1);
}
.coach-face { width: 74px; height: 74px; padding: 5px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #fff6ec 0%, #ffe6cf 70%); }
.coach-say { color: #1f3440; font-size: 16.5px; }

.stage { isolation: isolate; }
.shadow-scene, .color-scene, .dots-scene, .memory-scene, .diff-scene, .thoughts-scene, .dice-scene, .record-scene, .tool-scene, .quiz-scene, .feel-scene, .manners-scene, .count-scene, .body-scene, .cut-scene, .beads-scene, .maze-scene, .scratch-scene, .moves-scene, .tower-scene, .word-scene, .shop-scene, .market-scene { isolation: isolate; }
.shadow-scene::before, .color-scene::before, .dots-scene::before, .memory-scene::before, .diff-scene::before, .thoughts-scene::before, .dice-scene::before, .record-scene::before, .tool-scene::before, .quiz-scene::before, .feel-scene::before, .manners-scene::before, .count-scene::before, .body-scene::before, .cut-scene::before, .beads-scene::before, .maze-scene::before, .scratch-scene::before, .moves-scene::before, .tower-scene::before, .word-scene::before, .shop-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, .75) 0, rgba(255, 255, 255, 0) 32%),
    radial-gradient(circle at 92% 88%, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, 0) 36%),
    radial-gradient(circle, rgba(31, 52, 64, .07) 1.3px, transparent 1.7px) 0 0 / 24px 24px;
}
.tool-scene { background: linear-gradient(180deg, #f5fafd 0%, #e4f1f9 100%); }
.quiz-scene { background: linear-gradient(180deg, #eef8fe 0%, #fff4e8 100%); }

.game-card { border: 0; box-shadow: 0 1px 0 rgba(31, 52, 64, .05), 0 8px 22px rgba(23, 141, 191, .1); }
.gc-art { border-radius: 18px; background: radial-gradient(circle at 50% 60%, var(--svc-soft, #e6f4fc) 0%, rgba(255, 255, 255, 0) 72%); }
.gc-go { background: linear-gradient(180deg, #ffa451, #f48120 55%, #ec710e); box-shadow: 0 4px 0 #c25a07; }
.sheet-card { background: #f9fcfe; box-shadow: 0 -20px 50px rgba(10, 30, 50, .22); }
.sheet-card::before { content: ""; position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 5px; background: #d7e3ea; }
.sheet-card h3 { color: #1f3440; }
#isle-sheet h3::after { content: ""; display: block; width: 46px; height: 5px; margin-top: 8px; border-radius: 5px; background: var(--svc, #f48120); }
.tip { border: 0; box-shadow: 0 1px 0 rgba(31, 52, 64, .05), 0 6px 18px rgba(23, 141, 191, .08); }
.tip.focus { box-shadow: 0 0 0 3px var(--brand), 0 6px 18px rgba(23, 141, 191, .08); }

.celebrate { background: radial-gradient(circle at 50% 40%, rgba(18, 40, 58, .45), rgba(10, 24, 36, .72)); }
.cele-card { isolation: isolate; background: #fff; border-radius: 34px; padding-top: 22px; box-shadow: 0 30px 70px rgba(5, 20, 35, .4); }
.cele-card::before {
  content: "";
  position: absolute;
  top: -168px;
  left: 50%;
  z-index: -1;
  width: 320px;
  height: 320px;
  margin-left: -160px;
  border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 200, 61, .5) 0 9deg, rgba(255, 200, 61, 0) 9deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 68%);
  mask: radial-gradient(circle, #000 18%, transparent 68%);
  animation: celeSpin 22s linear infinite;
}
.cele-card .mascot { position: relative; filter: drop-shadow(0 10px 14px rgba(160, 70, 0, .25)); }
.cele-card h3 { background: linear-gradient(180deg, #ffa04a, #e8670a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: .12em; }
.cele-stars svg { width: 50px; height: 50px; fill: #ece6db; }

.qz-intro { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; pointer-events: none; }
.qz-intro .mascot { width: min(46%, 210px); height: auto; animation: qzIntro .75s cubic-bezier(.2, 1.5, .4, 1) both; }
.qz-intro .m-bodywrap { animation: hop 1.1s .7s ease-in-out infinite; }
.quiz-scene.intro .qz-visual, .quiz-scene.intro .qz-options { visibility: hidden; }
.qz-visual:empty, .wd-pic:empty, .th-cloud:has(> p:empty), .rc-card:has(.rc-word:empty) { visibility: hidden; }

@keyframes celeSpin { to { transform: rotate(360deg); } }
@keyframes qzIntro { from { opacity: 0; transform: translateY(30px) scale(.6); } to { opacity: 1; transform: none; } }

@media (min-width: 1000px) {
  .play {
    display: grid;
    grid-template-columns: minmax(340px, 30vw) minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    grid-template-areas: "bar stage" "pro stage" "coach stage";
    column-gap: 22px;
    padding: 22px;
    background:
      radial-gradient(60% 50% at 100% 0%, rgba(77, 177, 224, .2), transparent 70%),
      radial-gradient(50% 40% at 0% 100%, rgba(244, 129, 32, .1), transparent 70%),
      linear-gradient(180deg, #f8fcff 0%, #e4f3fb 100%);
  }
  .play .playbar { grid-area: bar; align-self: start; padding: 16px 16px 16px; border-radius: 26px; }
  .play .playtitle h2 { font-size: 27px; }
  .play .pro-bar { grid-area: pro; align-self: start; margin-top: 12px; border-radius: 16px; }
  .play .stage { grid-area: stage; min-height: 0; border-radius: 30px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(31, 52, 64, .06), 0 24px 60px rgba(23, 141, 191, .2); }
  .play .coach {
    grid-area: coach;
    align-self: start;
    width: auto;
    margin: 14px 0 0;
    padding: 22px 20px 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    border-radius: 26px;
    box-shadow: 0 1px 0 rgba(31, 52, 64, .05), 0 14px 34px rgba(23, 141, 191, .12);
  }
  .play .coach-face { align-self: center; width: 132px; height: 132px; padding: 10px; }
  .play .coach-body { gap: 14px; }
  .play .coach-say { position: relative; padding: 14px 16px; border-radius: 20px; background: #f3f8fb; font-size: 19px; line-height: 1.7; text-align: center; }
  .play .coach-say::before { content: ""; position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; background: #f3f8fb; transform: rotate(45deg); border-radius: 4px; }
  .play .coach-actions { justify-content: center; }
  .play .coach-actions .btn { min-height: 54px; font-size: 20px; }
  .play .stage > .quiz-scene, .play .stage > .moves-scene, .play .stage > .tool-scene, .play .stage > .record-scene, .play .stage > .thoughts-scene, .play .stage > .word-scene, .play .stage > .memory-scene, .play .stage > .dice-scene, .play .stage > .jar-scene, .play .stage > .routine-scene, .play .stage > .shop-scene, .play .stage > .beads-scene, .play .stage > .body-scene, .play .stage > .dots-scene, .play .stage > .says-scene, .play .stage > .spot-scene, .play .stage > .rhythm-scene, .play .stage > .simon-scene, .play .stage > .gng-scene, .play .stage > .missing-scene, .play .stage > .box-scene { zoom: 1.22; }
}

@media (min-width: 1000px) and (min-height: 820px) {
  .play .stage > .quiz-scene, .play .stage > .moves-scene, .play .stage > .tool-scene, .play .stage > .record-scene, .play .stage > .thoughts-scene, .play .stage > .word-scene, .play .stage > .memory-scene, .play .stage > .dice-scene, .play .stage > .jar-scene, .play .stage > .routine-scene, .play .stage > .shop-scene, .play .stage > .beads-scene, .play .stage > .body-scene, .play .stage > .dots-scene, .play .stage > .says-scene, .play .stage > .spot-scene, .play .stage > .rhythm-scene, .play .stage > .simon-scene, .play .stage > .gng-scene, .play .stage > .missing-scene, .play .stage > .box-scene { zoom: 1.36; }
}
.world { background: #7fd0f5; }
.world .topbar {
  margin: calc(8px + var(--safe-t)) 10px 0;
  padding: 7px 8px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(31, 52, 64, .05), 0 10px 26px rgba(10, 80, 130, .22);
}
.world .topbar .round, .world .topbar .pill { background: #f2f7fa; box-shadow: none; }
.world .topbar .pill { background: #fff6dc; }
.world .brand-home { background: #f2f7fa; box-shadow: none; }

.map-sky { height: 190px; background: linear-gradient(180deg, #7fd0f5 0%, #b7e6fb 55%, #e2f6ff 100%); }
.far-isles { position: absolute; left: 0; right: 0; bottom: 20px; width: 100%; height: 30px; opacity: .85; }
.map-sea {
  top: 190px;
  background:
    radial-gradient(130% 30% at 50% 0%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%),
    radial-gradient(circle, rgba(255, 255, 255, .07) 1.4px, transparent 1.9px) 0 0 / 30px 30px,
    linear-gradient(180deg, #3fc2f1 0%, #1f9fdb 22%, #1480c0 55%, #0e629c 82%, #0b4d80 100%);
}
.map-path .pg { stroke: rgba(255, 255, 255, .16); stroke-width: 22; stroke-dasharray: none; }
.map-path path:not(.pg) { stroke: rgba(255, 255, 255, .95); stroke-width: 5; stroke-dasharray: 1 13; }

.island { width: clamp(140px, 39vw, 186px); gap: 0; }
.isle-art { position: relative; display: block; width: 100%; }
.isle-art .art { position: relative; z-index: 1; }
.island .halo { top: 70%; z-index: 0; border-color: rgba(255, 255, 255, .9); }
.isle-foam {
  position: absolute;
  left: 50%;
  top: 80%;
  z-index: 0;
  width: 96%;
  aspect-ratio: 3.4;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .6);
  transform: translate(-50%, -50%);
  animation: isleFoam 3.4s ease-out infinite;
  animation-delay: var(--b, 0s);
  pointer-events: none;
}
.isle-num {
  position: absolute;
  top: 12%;
  inset-inline-start: 4%;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--svc-ink, #1f3440);
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 0 0 3px var(--svc, #f48120), 0 4px 0 3px rgba(8, 60, 100, .25);
}
.isle-num:empty { display: none; }
.isle-done {
  position: absolute;
  top: 12%;
  inset-inline-start: 4%;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: none;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd85e, #f3a300);
  box-shadow: 0 0 0 3px #fff, 0 4px 0 3px rgba(120, 70, 0, .3);
}
.isle-done svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.island.done .isle-done { display: grid; }
.island.done .isle-num { visibility: hidden; }
.isle-pin { position: absolute; top: -26%; left: 50%; z-index: 3; width: 42px; margin-left: -21px; display: none; animation: islePin 1.5s ease-in-out infinite; filter: drop-shadow(0 6px 6px rgba(6, 40, 80, .35)); }
.isle-pin svg { width: 100%; height: auto; }
.isle-pin .pb { fill: var(--svc-ink, #c25a07); stroke: #fff; stroke-width: 3; }
.isle-pin .pp { fill: #fff; }
.island.next .isle-pin { display: block; }

.island .isle-card {
  position: relative;
  z-index: 2;
  margin-top: -16px;
  min-width: 82%;
  max-width: 100%;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 7px 12px 9px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 0 rgba(8, 70, 120, .28), 0 14px 24px rgba(6, 40, 80, .22);
}
.island.next .isle-card { box-shadow: 0 0 0 3px var(--svc, #f48120), 0 5px 0 3px rgba(8, 70, 120, .28), 0 14px 24px rgba(6, 40, 80, .22); }
.island .name { margin: 0; padding: 0; background: none; box-shadow: none; font-size: clamp(14px, 3.9vw, 17px); line-height: 1.2; color: #1f3440; white-space: normal; text-align: center; overflow-wrap: anywhere; }
.isle-meta { display: flex; align-items: center; gap: 7px; width: 100%; }
.isle-bar { flex: 1; min-width: 36px; height: 7px; border-radius: 7px; background: #e9f0f4; overflow: hidden; }
.isle-bar i { display: block; width: var(--p, 0%); height: 100%; border-radius: inherit; background: var(--svc, #f48120); transition: width .6s ease; }
.island.tools .isle-bar { display: none; }
.island.tools .isle-meta { justify-content: center; }
.island .isle-count { gap: 3px; font-size: 12.5px; color: #55707e; text-shadow: none; }
.island .isle-count svg { width: 14px; height: 14px; filter: none; }
.island:active .isle-card { transform: translateY(2px); }

.world .bubble { background: #fff; border-radius: 22px 22px 22px 6px; box-shadow: 0 12px 30px rgba(6, 40, 80, .32); color: #1f3440; }
[dir="ltr"] .world .bubble { border-radius: 22px 22px 6px 22px; }

.world-panel { display: none; }

#isle-sheet .sheet-card { padding-top: 0; background: #f6fafc; }
#isle-sheet .sheet-card::before { display: none; }
.isle-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 126px;
  align-items: center;
  gap: 8px;
  margin: 0 calc(-1 * max(18px, var(--safe-r))) 16px calc(-1 * max(18px, var(--safe-l)));
  padding: 26px max(18px, var(--safe-r)) 20px max(18px, var(--safe-l));
  border-radius: 30px 30px 0 0;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle, rgba(255, 255, 255, .12) 1.4px, transparent 1.8px) 0 0 / 22px 22px,
    linear-gradient(135deg, var(--svc, #f48120) -30%, var(--svc-ink, #c25a07) 55%);
}
.isle-hero::after { content: ""; position: absolute; left: -40px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .1); pointer-events: none; }
.ih-text { position: relative; z-index: 1; display: grid; gap: 6px; justify-items: start; padding-inline-end: 4px; }
#isle-sheet .ih-text h3 { margin: 0; color: #fff; font-size: 28px; line-height: 1.15; }
#isle-sheet h3::after { display: none; }
#isle-sheet .ih-text .lead { margin: 0; color: rgba(255, 255, 255, .9); font-size: 14px; line-height: 1.7; }
.ih-prog { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 13px; font-weight: 700; }
.ih-prog svg { width: 15px; height: 15px; fill: #ffd85e; }
.ih-art { position: relative; z-index: 1; width: 126px; }
.ih-art .art { width: 100%; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .25)); animation: bob 5s ease-in-out infinite; }
#isle-sheet .sheet-close { z-index: 2; top: 14px; background: rgba(255, 255, 255, .22); box-shadow: none; }
#isle-sheet .sheet-close svg { stroke: #fff; }

#isle-sheet .game-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#isle-sheet .game-card {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "art art" "t t" "s s" "st go";
  align-items: center;
  align-content: start;
  gap: 6px 8px;
  padding: 8px 8px 10px;
  border-radius: 22px;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
#isle-sheet .gc-art { grid-area: art; width: 100%; aspect-ratio: 16 / 11; display: grid; place-items: center; border-radius: 16px; background: radial-gradient(circle at 50% 70%, #fff 0%, var(--svc-soft, #e6f4fc) 70%); }
#isle-sheet .gc-art .art { width: 84%; }
#isle-sheet .gc-body { display: contents; }
#isle-sheet .gc-body b { grid-area: t; padding: 0 4px; font-size: 17px; line-height: 1.25; }
#isle-sheet .gc-body small { grid-area: s; padding: 0 4px; font-size: 12px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#isle-sheet .gc-stars { grid-area: st; padding: 0 4px; }
#isle-sheet .gc-go { grid-area: go; padding: 8px 14px; border-radius: 12px; font-size: 15px; }
#isle-sheet .gc-body small:last-child { grid-column: 1 / -1; }

@keyframes isleFoam { 0% { opacity: .85; transform: translate(-50%, -50%) scale(.8); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.16); } }
@keyframes islePin { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (min-width: 640px) {
  #isle-sheet .game-cards { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
}

@media (min-width: 900px) {
  #isle-sheet { align-items: center; padding: 24px; }
  #isle-sheet .sheet-card { width: min(100%, 880px); max-height: 88vh; border-radius: 30px; padding-bottom: 24px; }
  .isle-hero { grid-template-columns: minmax(0, 1fr) 190px; padding-top: 30px; padding-bottom: 26px; }
  .ih-art { width: 190px; }
  #isle-sheet .ih-text h3 { font-size: 34px; }
  #isle-sheet .ih-text .lead { font-size: 15.5px; }
  #isle-sheet .game-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(31, 52, 64, .05), 0 18px 34px rgba(23, 141, 191, .2); }
}

@media (min-width: 1000px) {
  .world {
    display: grid;
    grid-template-columns: minmax(340px, 27vw) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    background:
      radial-gradient(60% 50% at 100% 0%, rgba(77, 177, 224, .2), transparent 70%),
      radial-gradient(50% 40% at 0% 100%, rgba(244, 129, 32, .1), transparent 70%),
      linear-gradient(180deg, #f8fcff 0%, #e4f3fb 100%);
  }
  .world .topbar { grid-column: 1 / -1; margin: 16px 16px 0; padding: 10px 14px; box-shadow: 0 1px 0 rgba(31, 52, 64, .05), 0 10px 26px rgba(23, 141, 191, .12); }
  .world .guide { display: none; }
  .map-inner { width: min(100%, 780px); }
  .island { width: 212px; }
  .map-scroll { grid-column: 2; grid-row: 2; margin: 16px; margin-inline-start: 0; border-radius: 30px; box-shadow: 0 0 0 1px rgba(31, 52, 64, .06), 0 24px 60px rgba(23, 141, 191, .22); }
  .world-panel { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; padding: 16px; scrollbar-width: thin; }
  .wp-card { padding: 18px; border-radius: 24px; background: #fff; box-shadow: 0 1px 0 rgba(31, 52, 64, .05), 0 14px 34px rgba(23, 141, 191, .12); }
  .wp-hero { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 4px 12px; }
  .wp-m { width: 84px; height: 84px; padding: 6px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #fff6ec 0%, #ffe6cf 70%); }
  .wp-m .mascot { width: 100%; height: 100%; }
  .wp-hero small { display: block; font-size: 13px; font-weight: 700; color: #cf5f08; }
  .wp-hero b { display: block; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.25; color: #1f3440; }
  .wp-say { grid-column: 1 / -1; margin: 10px 0 0; padding: 12px 14px; border-radius: 16px; background: #f3f8fb; font-weight: 700; font-size: 15px; line-height: 1.75; color: #1f3440; }
  .wp-prog { display: grid; grid-template-columns: 124px minmax(0, 1fr); align-items: center; gap: 14px 18px; }
  .wp-ring { position: relative; width: 124px; height: 124px; }
  .wp-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
  .wp-ring circle { fill: none; stroke-width: 12; }
  .wp-track { stroke: #eef4f8; }
  .wp-fill { stroke: #f48120; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
  .wp-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
  .wp-num b { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1; color: #1f3440; }
  .wp-num small { font-size: 11.5px; font-weight: 700; color: #55707e; }
  .wp-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .wp-stats li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 700; color: #55707e; }
  .wp-stats b { font-family: var(--display); font-weight: 800; font-size: 19px; color: #1f3440; }
  .wp-stats b small { font-size: 13px; color: #8aa0ad; }
  .wp-go { grid-column: 1 / -1; width: 100%; min-height: 56px; font-size: 19px; }
  .wp-isles h4 { margin: 0 0 10px; font-family: var(--display); font-weight: 800; font-size: 19px; color: #1f3440; }
  .wp-list { display: grid; gap: 6px; }
  .wp-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 16px; text-align: start; transition: background-color .15s ease; }
  .wp-row:hover { background: #f3f8fb; }
  .wp-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--svc-soft, #e6f4fc); }
  .wp-ic svg { width: 36px; height: 36px; }
  .wp-t b { display: block; font-size: 14.5px; font-weight: 700; color: #1f3440; }
  .wp-bar { display: block; height: 6px; margin-top: 6px; border-radius: 6px; background: #eef3f6; overflow: hidden; }
  .wp-bar i { display: block; height: 100%; border-radius: inherit; background: var(--svc, #f48120); }
  .wp-row.tools .wp-bar { display: none; }
  .wp-c { font-size: 12.5px; font-weight: 700; color: #55707e; }
  .wp-row.done .wp-c { color: #b07a00; }
}

@media (prefers-reduced-motion: reduce) {
  .isle-foam, .isle-pin { animation: none; }
}
#pro-sheet .sheet-card { background: #f6fafc; }
#pro-sheet h3 { display: flex; align-items: center; gap: 10px; }
#pro-sheet h3::before { content: ""; width: 38px; height: 38px; flex: none; border-radius: 12px; background: #fff3e8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f48120' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h7l5 5v13H7z'/%3E%3Cpath d='M14 3v5h5M10 13h6M10 17h4'/%3E%3C/svg%3E") center / 22px no-repeat; }
.fw-lead { margin: 0 0 6px; padding: 12px 14px; border-radius: 16px; background: #fff; font-size: 14.5px; line-height: 1.8; color: #3c4a54; box-shadow: 0 1px 0 rgba(31, 52, 64, .05), 0 6px 16px rgba(23, 141, 191, .07); }
#pro-body h4 { color: #1f3440; font-size: 20px; margin: 18px 0 10px; }
.kid-list { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kid-row { border: 0; padding: 4px; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 rgba(31, 52, 64, .05), 0 6px 16px rgba(23, 141, 191, .08); }
.kid-row.on { background: #fff; box-shadow: 0 0 0 3px #f48120, 0 6px 16px rgba(244, 129, 32, .18); }
.kid-pick { display: flex; align-items: center; gap: 10px; }
.kid-av { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(180deg, #7cc9ee, #4db1e0); color: #fff; font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1; }
.kid-av.f { background: linear-gradient(180deg, #ffb3cb, #ff8fb1); }
.kid-txt { display: grid; gap: 2px; min-width: 0; }
.kid-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kid-del { min-width: 34px; height: 34px; border-radius: 10px; }
.kid-add { padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 rgba(31, 52, 64, .05), 0 6px 16px rgba(23, 141, 191, .07); }
.kid-add input { border: 2px solid #e4edf2; background: #f9fbfc; }

.rp-wrap { display: flex; justify-content: center; }
.rp-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, #fffaf3 0%, #eef8fd 100%);
  box-shadow: 0 1px 0 rgba(31, 52, 64, .05), 0 18px 40px rgba(23, 141, 191, .16);
  -webkit-user-select: text;
  user-select: text;
}
.rp-top { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 96px; align-items: center; gap: 10px; padding: 18px 20px; color: #fff; background: radial-gradient(circle at 15% 120%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 45%), linear-gradient(135deg, #ffa451 0%, #ec710e 100%); }
.rp-who { display: grid; gap: 2px; }
.rp-who small { font-size: 13px; font-weight: 700; opacity: .92; }
.rp-who b { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.1; }
.rp-who span { font-size: 13px; opacity: .92; }
.rp-m { width: 96px; height: 96px; }
.rp-m .mascot { width: 100%; height: 100%; }
.rp-msg { margin: 16px 20px 0; font-weight: 700; font-size: 16px; line-height: 1.8; color: #1f3440; }
.rp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 14px 16px 0; }
.rp-stats div { display: grid; justify-items: center; gap: 4px; padding: 12px 4px; border-radius: 18px; background: #fff; text-align: center; box-shadow: 0 6px 14px rgba(23, 141, 191, .1); }
.rp-stats b { font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.1; color: #ec710e; }
.rp-stats span { font-size: 11.5px; font-weight: 700; line-height: 1.3; color: #55707e; }
.rp-card h5 { margin: 18px 20px 8px; font-family: var(--display); font-weight: 800; font-size: 17px; color: #1f3440; }
.rp-skills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 20px; }
.rp-skills span { padding: 5px 12px; border-radius: 999px; background: var(--svc-soft); color: var(--svc-ink); font-size: 13px; font-weight: 700; }
.rp-games { list-style: none; margin: 0 16px; padding: 0; display: grid; gap: 6px; }
.rp-games li { display: grid; grid-template-columns: 12px minmax(0, 1fr) minmax(60px, 90px) auto; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: #fff; }
.rp-games li:has(.rp-lv) { grid-template-columns: 12px minmax(0, 1fr) auto; }
.rp-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--svc); }
.rp-games b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-bar { height: 8px; border-radius: 8px; background: #e9f0f4; overflow: hidden; }
.rp-bar i { display: block; height: 100%; border-radius: inherit; background: var(--svc); }
.rp-games small { font-size: 12px; font-weight: 700; color: #55707e; white-space: nowrap; }
.rp-tip { margin: 16px 16px 0; padding: 14px 16px; border-radius: 18px; background: #e3f3fb; }
.rp-tip b { display: block; font-family: var(--display); font-weight: 800; font-size: 16px; color: #1479a8; }
.rp-tip p { margin: 4px 0 0; font-size: 14px; line-height: 1.8; color: #1f3440; }
.rp-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 20px 18px; color: #55707e; font-size: 13px; font-weight: 700; }
.rp-foot img { height: 38px; width: auto; }
.rp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.rp-actions .btn { min-height: 48px; font-size: 17px; }
.rp-actions .btn:disabled { opacity: .45; cursor: default; }
.fw-text { margin-top: 10px; border-radius: 14px; background: #fff; padding: 8px 12px; }
.fw-text summary { cursor: pointer; font-weight: 700; color: #55707e; }
.fw-text .sess-sum { margin-top: 8px; }
#pro-body .pro-switch { margin-top: 16px; border: 0; box-shadow: 0 1px 0 rgba(31, 52, 64, .05), 0 6px 16px rgba(23, 141, 191, .07); }
.sess-old details.rp-old { padding: 10px 12px; border: 0; border-radius: 16px; box-shadow: 0 1px 0 rgba(31, 52, 64, .05), 0 6px 16px rgba(23, 141, 191, .07); }
.rp-old .rp-wrap { margin-top: 10px; }

.rp-fab {
  position: absolute;
  z-index: 6;
  right: max(12px, var(--safe-r));
  bottom: calc(14px + var(--safe-b));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  background: #fff;
  color: #1f3440;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 10px 26px rgba(6, 40, 80, .3);
  animation: popIn .5s cubic-bezier(.2, 1.5, .4, 1) both;
}
.rp-fab svg { width: 22px; height: 22px; fill: none; stroke: #f48120; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
[dir="ltr"] .rp-fab { right: auto; left: max(12px, var(--safe-l)); }
.world.scrolled .rp-fab { transform: translateY(0); }

@media (min-width: 1000px) {
  .rp-fab { right: auto; left: 40px; bottom: 40px; }
  [dir="ltr"] .rp-fab { left: auto; right: 40px; }
}

@media print {
  html.print-report body * { visibility: hidden !important; }
  html.print-report #rp-card, html.print-report #rp-card * { visibility: visible !important; }
  html.print-report #rp-card { position: fixed; left: 0; top: 0; width: 100%; max-width: none; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html.print-report .sheet, html.print-report .sheet-card { position: static; overflow: visible; max-height: none; background: none; }
}
.t0 { --tc: #22c55e; --tc-ink: #15803d; --tc-soft: #dcfce7; }
.t1 { --tc: #f59e0b; --tc-ink: #b45309; --tc-soft: #fef3c7; }
.t2 { --tc: #8b5cf6; --tc-ink: #6d28d9; --tc-soft: #ede9fe; }
.t3 { --tc: #f5b70b; --tc-ink: #8a5a00; --tc-soft: #fff4c7; }

.btn.soft { background: #fff1e3; color: #c25a07; box-shadow: 0 5px 0 #f6d2ae; }
.btn.soft:active { box-shadow: 0 2px 0 #f6d2ae; transform: translateY(3px); }

.levels { background: transparent; padding: 0; }
.lv-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 6px 0 12px;
  border-radius: 999px;
  background: var(--tc-soft);
  color: var(--tc-ink);
  font-family: var(--body);
  font-weight: 700;
  font-size: 13px;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tc) 35%, transparent);
  transition: transform .15s ease;
}
[dir="rtl"] .lv-chip { padding: 0 12px 0 6px; }
.lv-chip:active { transform: scale(.96); }
.lc-n { order: -1; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tc); color: #fff; font-size: 13px; font-weight: 800; }
.lc-n svg { width: 15px; height: 15px; fill: #fff; }
.lc-t small { margin-inline-start: 4px; font-weight: 600; opacity: .75; }
.lc-st { display: inline-flex; gap: 1px; }
.lc-st i, .ln-st i, .st3 i { display: inline-grid; }
.lc-st svg { width: 13px; height: 13px; fill: color-mix(in srgb, var(--tc-ink) 22%, #fff); }
.lc-st .on svg, .ln-st .on svg, .st3 .on svg { fill: #ffbe1a; }

.play > .pro-bar { flex: none; }
.lv-hud { flex: none; display: none; width: 100%; box-sizing: border-box; align-items: center; gap: 10px; padding: 8px max(14px, var(--safe-r)) 8px max(14px, var(--safe-l)); background: #fff; border-bottom: 1px solid color-mix(in srgb, var(--svc, #f48120) 14%, #eef4f8); position: relative; z-index: 5; }
.lv-hud.on { display: flex; }
.hud-track { position: relative; flex: 1; height: 14px; border-radius: 14px; background: color-mix(in srgb, var(--svc, #f48120) 12%, #edf3f7); overflow: hidden; box-shadow: inset 0 2px 3px rgba(31, 52, 64, .08); }
.hud-track i { position: relative; display: block; height: 100%; width: 0; min-width: 14px; border-radius: inherit; background: linear-gradient(180deg, color-mix(in srgb, var(--svc, #f48120) 72%, #fff) 0%, var(--svc, #f48120) 55%, color-mix(in srgb, var(--svc, #f48120) 80%, #000) 100%); transition: width .5s cubic-bezier(.3, 1.3, .5, 1); }
.hud-track i::after { content: ""; position: absolute; top: 3px; inset-inline: 6px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .45); }
.hud-num { min-width: 46px; padding: 4px 8px; border-radius: 999px; background: color-mix(in srgb, var(--svc, #f48120) 12%, #fff); text-align: center; font-size: 13px; font-weight: 800; color: var(--svc-ink, #55707e); }
.hud-stars { display: inline-flex; gap: 1px; }
.hud-stars i { display: inline-grid; }
.hud-stars svg { width: 20px; height: 20px; fill: #dfe7ec; transition: fill .3s; }
.hud-stars .on svg { fill: #ffbe1a; filter: drop-shadow(0 1px 0 rgba(160, 100, 0, .35)); }
.hud-stars .drop { animation: hudDrop .7s ease both; }
@keyframes hudDrop { 0% { transform: scale(1.35) rotate(0); } 40% { transform: scale(.7) rotate(-20deg); } 100% { transform: none; } }

.play { background: linear-gradient(180deg, color-mix(in srgb, var(--svc-soft, #e6f4fc) 55%, #fff) 0%, #f3f8fb 100%); }
.quiz-scene { background: radial-gradient(120% 55% at 50% 0%, color-mix(in srgb, var(--svc-soft, #e6f4fc) 85%, #fff) 0%, rgba(255, 255, 255, 0) 70%), linear-gradient(180deg, #f6fbfe 0%, #fff8f0 100%); }
.quiz-scene .qz-visual { position: relative; padding: 14px; border-radius: 30px; background: rgba(255, 255, 255, .88); box-shadow: 0 1px 0 rgba(31, 52, 64, .04), 0 14px 34px color-mix(in srgb, var(--svc, #4db1e0) 16%, transparent), inset 0 0 0 2px color-mix(in srgb, var(--svc, #4db1e0) 10%, #fff); }
.quiz-scene .qz-opt { box-shadow: 0 5px 0 color-mix(in srgb, var(--svc, #4db1e0) 18%, #d9e4ea), 0 10px 18px rgba(31, 52, 64, .06); transition: transform .15s ease; }
.quiz-scene .qz-opt:not([disabled]):active { transform: translateY(3px); box-shadow: 0 2px 0 color-mix(in srgb, var(--svc, #4db1e0) 18%, #d9e4ea); }
.qz-dots { display: none; }

#lv-sheet .sheet-card { padding-top: 0; background: #f6fafc; }
#lv-sheet .sheet-card::before { display: none; }
#lv-sheet .sheet-close { z-index: 2; top: 14px; background: rgba(255, 255, 255, .22); box-shadow: none; }
#lv-sheet .sheet-close svg { stroke: #fff; }
.lv-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  align-items: center;
  gap: 10px;
  margin: 0 calc(-1 * max(18px, var(--safe-r))) 0 calc(-1 * max(18px, var(--safe-l)));
  padding: 26px max(18px, var(--safe-r)) 46px max(18px, var(--safe-l));
  border-radius: 30px 30px 0 0;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle, rgba(255, 255, 255, .12) 1.4px, transparent 1.8px) 0 0 / 22px 22px,
    linear-gradient(135deg, var(--svc, #f48120) -30%, var(--svc-ink, #c25a07) 60%);
}
.lv-hero::after { content: ""; position: absolute; left: -50px; bottom: -90px; width: 230px; height: 230px; border-radius: 50%; background: rgba(255, 255, 255, .1); pointer-events: none; }
.lv-art { position: relative; z-index: 1; order: 2; width: 118px; }
.lv-art .art { width: 100%; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .25)); animation: bob 5s ease-in-out infinite; }
.lv-text { position: relative; z-index: 1; display: grid; gap: 5px; justify-items: start; }
.lv-text small { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 12px; font-weight: 700; }
#lv-sheet .lv-text h3 { margin: 0; color: #fff; font-size: 28px; line-height: 1.15; }
.lv-text p { margin: 0; color: rgba(255, 255, 255, .92); font-size: 13.5px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.lv-meta {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  margin: -30px 0 18px;
  padding: 12px 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 0 rgba(31, 52, 64, .05), 0 12px 28px rgba(23, 141, 191, .14);
}
.lm-box { display: grid; justify-items: center; gap: 1px; }
.lm-box b { display: inline-flex; align-items: center; gap: 4px; font-family: var(--display); font-size: 22px; line-height: 1.2; color: #1f3440; }
.lm-box b svg { width: 18px; height: 18px; fill: #ffbe1a; }
.lm-box small { font-size: 12px; font-weight: 700; color: #6b8391; }
.lm-bar { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: #e7f0f5; overflow: hidden; }
.lm-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #22c55e, #f59e0b 50%, #8b5cf6); }
[dir="rtl"] .lm-bar i { background: linear-gradient(270deg, #22c55e, #f59e0b 50%, #8b5cf6); }

.lv-path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-auto-rows: 86px;
  row-gap: 22px;
  margin: 4px 0 8px;
  padding: 4px 0;
}
.lv-path::before {
  content: "";
  position: absolute;
  top: 32px;
  height: 108px;
  inset-inline: 10% 10%;
  border: 4px dashed #cfe0ea;
  border-inline-start: 0;
  border-start-end-radius: 54px;
  border-end-end-radius: 54px;
  pointer-events: none;
}
.lv-node:nth-child(6) { grid-row: 2; grid-column: 5; }
.lv-node:nth-child(7) { grid-row: 2; grid-column: 4; }
.lv-node:nth-child(8) { grid-row: 2; grid-column: 3; }
.lv-node:nth-child(9) { grid-row: 2; grid-column: 2; }
.lv-node:nth-child(10) { grid-row: 2; grid-column: 1; }
.lv-node {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ln-disc {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--tc) 55%, #fff) 0%, var(--tc) 55%, var(--tc-ink) 100%);
  color: #fff;
  box-shadow: 0 5px 0 color-mix(in srgb, var(--tc-ink) 85%, #000), 0 10px 18px color-mix(in srgb, var(--tc) 35%, transparent);
  transition: transform .2s cubic-bezier(.3, 1.5, .5, 1), box-shadow .2s;
}
.ln-disc b { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; text-shadow: 0 2px 0 rgba(0, 0, 0, .18); }
.ln-disc svg { width: 28px; height: 28px; fill: #fff; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .18)); }
.lv-node.t3 .ln-disc { width: 66px; height: 66px; margin-top: -3px; background: radial-gradient(circle at 34% 28%, #fff3b0 0%, #ffcf33 45%, #e09a00 100%); box-shadow: 0 5px 0 #a86f00, 0 0 0 4px #fff, 0 0 0 7px #ffd34d, 0 12px 22px rgba(224, 154, 0, .4); }
.lv-node.locked { cursor: default; }
.lv-node.locked .ln-disc { background: #e3ebf0; box-shadow: 0 5px 0 #c8d6de; color: #9ab0bc; }
.lv-node.locked .ln-disc svg { fill: none; stroke: #9ab0bc; stroke-width: 2.2; filter: none; width: 24px; height: 24px; }
.lv-node.sel .ln-disc { transform: translateY(-4px) scale(1.08); box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--tc), 0 14px 22px color-mix(in srgb, var(--tc) 40%, transparent); }
.lv-node.now:not(.sel) .ln-disc::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 3px solid var(--tc); animation: lnPulse 1.6s ease-out infinite; }
.lv-node:not(.locked):hover .ln-disc { transform: translateY(-3px); }
.ln-st { display: inline-flex; gap: 1px; }
.ln-st svg { width: 15px; height: 15px; fill: #dbe5eb; }
.ln-st.ghost svg { fill: #e6eef3; }
.lv-node.locked .ln-st { visibility: hidden; }

.lv-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin: 0 0 16px; font-size: 12px; font-weight: 700; color: #55707e; }
.lv-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lv-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--tc); }

.lv-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.lv-play { min-height: 56px; font-size: 20px; }
.lv-play svg { width: 20px; height: 20px; fill: #fff; }
[dir="rtl"] .lv-play svg { transform: scaleX(-1); }
.lv-info { min-height: 56px; padding: 0 16px; font-size: 16px; }
.lv-how { margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 rgba(31, 52, 64, .05), 0 8px 20px rgba(23, 141, 191, .08); }
.lv-how h4 { margin: 0 0 4px; font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--svc-ink, #1f3440); }
.lv-how p { margin: 0 0 12px; font-size: 14px; line-height: 1.85; color: #33505e; }
.lv-how p:last-child { margin-bottom: 0; }

#isle-sheet .game-card { grid-template-areas: "art art" "t t" "s s" "lv go"; }
#isle-sheet .game-card.done .gc-art::after { content: "✓"; position: absolute; top: 8px; inset-inline-start: 8px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #22c55e; color: #fff; font-weight: 800; font-size: 15px; box-shadow: 0 0 0 3px #fff; }
#isle-sheet .gc-art { position: relative; }
.gc-lv { grid-area: lv; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 8px; padding: 0 4px; min-width: 0; }
.gc-bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: #e7f0f5; overflow: hidden; }
.gc-bar i { display: block; height: 100%; border-radius: inherit; background: var(--svc, #f48120); }
.gc-n { font-size: 12px; font-weight: 800; color: #55707e; }
.gc-st { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 800; color: #8a5a00; }
.gc-st svg { width: 13px; height: 13px; fill: #ffbe1a; }

.cele-lv span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; background: var(--tc-soft); color: var(--tc-ink); font-size: 13.5px; font-weight: 800; }
.cele-lv svg { width: 16px; height: 16px; fill: currentColor; }
.cele-card .cele-lv { margin-top: -2px; }
.cele-stars { align-items: flex-end; }
.cele-stars span:nth-child(2) svg { width: 64px; height: 64px; }
.cele-stars .new { animation: starPop .8s calc(.35s + var(--i, 0) * .26s) cubic-bezier(.2, 1.6, .4, 1) both; }
.cele-sub { display: flex; gap: 14px; justify-content: center; font-size: 14px !important; }
.cele-sub:empty { display: none; }
.cele-sub .ok { color: #15803d; }
.cele-sub .no { color: #b45309; }
.cele-sub b { font-family: var(--display); font-size: 18px; }

.lv-splash { position: absolute; top: 16px; left: 50%; z-index: 30; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 3px var(--tc-soft), 0 14px 30px rgba(10, 40, 60, .22); pointer-events: none; transform: translateX(-50%); animation: lsIn 2.2s cubic-bezier(.2, 1.3, .4, 1) both; }
[dir="rtl"] .lv-splash { padding: 8px 8px 8px 18px; }
.ls-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--tc); color: #fff; font-family: var(--display); font-weight: 800; font-size: 21px; }
.ls-n svg { width: 22px; height: 22px; fill: #fff; }
.ls-t { display: grid; line-height: 1.2; }
.ls-t b { font-family: var(--display); font-weight: 800; font-size: 19px; color: #1f3440; }
.ls-t small { font-size: 12.5px; font-weight: 700; color: var(--tc-ink); }
@keyframes lsIn { 0% { opacity: 0; transform: translate(-50%, -24px) scale(.8); } 14% { opacity: 1; transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -12px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .lv-splash { animation-duration: 1.6s; } }

@keyframes lnPulse { 0% { opacity: .8; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.3); } }

@media (max-width: 380px) {
  .lv-path { grid-auto-rows: 78px; }
  .lv-path::before { top: 27px; height: 100px; }
  .ln-disc { width: 50px; height: 50px; }
  .ln-disc b { font-size: 22px; }
  .lv-node.t3 .ln-disc { width: 56px; height: 56px; }
  .ln-st svg { width: 12px; height: 12px; }
  .lv-hero { grid-template-columns: minmax(0, 1fr) 96px; }
  .lv-art { width: 96px; }
  .lc-t small { display: none; }
}

@media (min-width: 900px) {
  #lv-sheet { align-items: center; padding: 24px; }
  #lv-sheet .sheet-card { width: min(100%, 640px); max-height: 90vh; border-radius: 30px; padding-bottom: 24px; }
  .lv-hero { grid-template-columns: minmax(0, 1fr) 150px; }
  .lv-art { width: 150px; }
  #lv-sheet .lv-text h3 { font-size: 32px; }
}

@media (min-width: 1000px) {
  .play { grid-template-rows: auto auto auto minmax(0, 1fr); grid-template-areas: "bar stage" "hud stage" "pro stage" "coach stage"; }
  .quiz-scene .qz-visual > * { zoom: 1.3; }
  .play .lv-hud { grid-area: hud; align-self: start; margin-top: 12px; padding: 12px 16px; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 rgba(31, 52, 64, .05), 0 8px 20px rgba(23, 141, 191, .08); }
  .play { background: radial-gradient(60% 50% at 100% 0%, color-mix(in srgb, var(--svc, #4db1e0) 22%, transparent), transparent 70%), radial-gradient(50% 40% at 0% 100%, rgba(244, 129, 32, .1), transparent 70%), linear-gradient(180deg, #f8fcff 0%, color-mix(in srgb, var(--svc-soft, #e4f3fb) 70%, #f3f8fb) 100%); }
}

@media (prefers-reduced-motion: reduce) {
  .lv-node.now .ln-disc::after, .lv-art .art { animation: none; }
}
.fw-sub { margin: -4px 0 12px; font-size: 13.5px; line-height: 1.8; color: #55707e; }
.ins { display: grid; gap: 4px; -webkit-user-select: text; user-select: text; }
.ins h5 { margin: 14px 0 8px; font-family: var(--display); font-weight: 800; font-size: 17px; color: #1f3440; }
.ins-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ins-kpis > div { display: grid; gap: 2px; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 1px 0 rgba(31, 52, 64, .05), 0 6px 16px rgba(23, 141, 191, .08); text-align: center; }
.ins-kpis b { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.2; color: #1f3440; }
.ins-kpis b small { font-size: 14px; color: #8aa1ad; }
.ins-kpis span { font-size: 12px; font-weight: 700; color: #6b8391; }
.ins-svc { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ins-svc li { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: #33505e; }
.ins-svc .b { height: 10px; border-radius: 10px; background: #e7f0f5; overflow: hidden; }
.ins-svc .b i { display: block; height: 100%; min-width: 3px; border-radius: inherit; background: var(--svc); }
.ins-svc b { font-size: 12px; color: var(--svc-ink); }
.ins-trend { display: flex; align-items: flex-end; gap: 6px; height: 130px; padding: 8px 4px 0; border-bottom: 2px solid #e3edf3; }
.ins-trend span { position: relative; flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.ins-trend i { width: 100%; max-width: 34px; height: var(--h); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #4db1e0, #1479a8); }
.ins-trend b { position: absolute; bottom: calc(var(--h) + 2px); font-size: 11px; color: #1479a8; }
.ins-trend small { position: absolute; bottom: -20px; font-size: 10px; color: #8aa1ad; white-space: nowrap; }
.ins-trend + h5, .ins-trend + .ins-two { margin-top: 24px; }
.ins-two { display: grid; gap: 4px 14px; }
.ins-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ins-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px; background: var(--svc-soft); color: var(--svc-ink); font-size: 13px; }
.ins-chips.weak li { background: #fff4e5; color: #9a4b00; }
.ins-chips span { font-weight: 800; }
.ins-empty { margin: 0; font-size: 13px; color: #8aa1ad; }
.ins-games { display: grid; gap: 8px; }
.ins-game { border-radius: 18px; background: #fff; box-shadow: 0 1px 0 rgba(31, 52, 64, .05), 0 6px 16px rgba(23, 141, 191, .08); overflow: hidden; }
.ins-game summary { display: grid; grid-template-columns: 54px minmax(0, 1fr); grid-template-areas: "a t" "k k"; align-items: center; gap: 6px 10px; padding: 10px 12px; cursor: pointer; list-style: none; }
.ins-game summary::-webkit-details-marker { display: none; }
.ig-art { grid-area: a; width: 54px; }
.ig-t { grid-area: t; display: grid; min-width: 0; }
.ig-t b { font-size: 15px; color: #1f3440; }
.ig-t small { font-size: 12px; color: #6b8391; }
.ig-k { grid-area: k; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ig-k > span { display: grid; justify-items: center; padding: 6px 4px; border-radius: 12px; background: var(--svc-soft); }
.ig-k b { font-size: 14px; color: var(--svc-ink); }
.ig-k small { font-size: 10.5px; color: #55707e; }
.ig-body { padding: 0 12px 12px; display: grid; gap: 8px; }
.ins-lv { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
.ins-lv i { display: grid; place-items: center; height: 24px; border-radius: 7px; background: #edf3f6; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; }
.ins-lv i.s1 { background: #f59e0b; }
.ins-lv i.s2 { background: #84cc16; }
.ins-lv i.s3 { background: #16a34a; }
.ig-rw { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: 13px; font-weight: 700; color: #55707e; }
.ig-rw .ok { color: #15803d; }
.ig-rw .no { color: #b45309; }
.ig-body h6 { margin: 4px 0 0; font-size: 13px; color: #1f3440; }
.ins-conf, .ins-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ins-conf li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 10px; background: #fff6ec; font-size: 12.5px; }
.ins-conf .q { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #33505e; }
.ins-conf .a b { color: #b45309; }
.ins-conf .n { font-weight: 800; color: #9a4b00; }
.ins-log li { display: grid; grid-template-columns: 20px minmax(0, 1fr) 22px 44px; gap: 6px; align-items: center; padding: 4px 8px; border-radius: 8px; font-size: 12px; background: #f6fafc; }
.ins-log .m { font-weight: 800; }
.ins-log .ok .m { color: #16a34a; }
.ins-log .no .m { color: #dc2626; }
.ins-log .q { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #33505e; }
.ins-log .l { display: grid; place-items: center; height: 20px; border-radius: 6px; background: #e3edf3; font-weight: 800; font-size: 11px; }
.ins-log .t { font-size: 11px; color: #8aa1ad; text-align: end; }

.link-box { margin: 14px 0 6px; padding: 14px; border-radius: 20px; background: linear-gradient(135deg, #eef8fe, #fff4e8); box-shadow: inset 0 0 0 1.5px #dcebf3; }
.lk-lead { margin: 0 0 10px; font-size: 13.5px; line-height: 1.8; color: #33505e; }
.lk-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lk-form label { display: grid; gap: 4px; font-size: 12.5px; font-weight: 700; color: #55707e; }
.lk-form input { width: 100%; min-height: 46px; padding: 0 12px; border: 2px solid #d7e6ee; border-radius: 14px; background: #fff; font: inherit; font-size: 17px; color: #1f3440; letter-spacing: .04em; text-align: center; -webkit-user-select: text; user-select: text; }
.lk-form input:focus { outline: none; border-color: #4db1e0; }
.lk-form .btn { grid-column: 1 / -1; }
.lk-msg { grid-column: 1 / -1; margin: 0; min-height: 1.4em; font-size: 13px; color: #55707e; }
.lk-msg.err { color: #c2410c; font-weight: 700; }
.lk-on { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; }
.lk-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #16a34a; }
.lk-ic svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lk-on b { display: block; font-size: 15px; color: #14532d; }
.lk-on small { font-size: 12.5px; color: #55707e; }
.lk-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lk-row .btn { min-height: 42px; font-size: 15px; padding: 0 14px; }
.lk-off.sure { color: #c2410c; }
.lk-join b { display: block; font-family: var(--display); font-weight: 800; font-size: 19px; color: #1f3440; }
.lk-join p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.8; color: #33505e; }
.link-box .lk-msg { margin: 8px 0 0; }

.pg-how { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; gap: 8px; }
.pg-how li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 rgba(31, 52, 64, .05), 0 6px 16px rgba(23, 141, 191, .08); border-inline-start: 5px solid #f48120; }
.pg-how li:nth-child(2) { border-color: #ffc83d; }
.pg-how li:nth-child(3) { border-color: #4db1e0; }
.pg-how b { font-family: var(--display); font-weight: 800; font-size: 17px; color: #1f3440; }
.pg-how span { font-size: 13.5px; line-height: 1.75; color: #55707e; }
.pg-tools { position: sticky; top: -22px; z-index: 2; display: grid; gap: 8px; margin: 0 calc(-1 * max(18px, var(--safe-r))) 10px calc(-1 * max(18px, var(--safe-l))); padding: 10px max(18px, var(--safe-r)) 10px max(18px, var(--safe-l)); background: rgba(249, 252, 254, .96); backdrop-filter: blur(8px); }
.pg-search { width: 100%; min-height: 44px; padding: 0 14px; border: 2px solid #dbe8ef; border-radius: 14px; background: #fff; font: inherit; font-size: 15px; color: #1f3440; -webkit-user-select: text; user-select: text; }
.pg-search:focus { outline: none; border-color: #4db1e0; }
.pg-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.pg-chips::-webkit-scrollbar { display: none; }
.pg-chips button { flex: none; padding: 7px 12px; border-radius: 999px; background: #fff; font-size: 12.5px; font-weight: 700; color: #55707e; box-shadow: inset 0 0 0 1.5px #dbe8ef; white-space: nowrap; }
.pg-chips [aria-pressed="true"] { background: #1f3440; color: #fff; box-shadow: none; }
.pg-list { display: grid; gap: 16px; }
.pg-svc { display: grid; gap: 8px; }
.pg-svc header { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; border-radius: 18px; background: linear-gradient(135deg, var(--svc) -30%, var(--svc-ink) 70%); color: #fff; }
.pg-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .22); }
.pg-ic svg { width: 40px; }
.pg-svc h4 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 19px; }
.pg-svc header p { margin: 0; font-size: 12.5px; line-height: 1.6; opacity: .92; }
.pg-game { border-radius: 18px; background: #fff; box-shadow: 0 1px 0 rgba(31, 52, 64, .05), 0 6px 16px rgba(23, 141, 191, .08); overflow: hidden; }
.pg-game.focus { box-shadow: 0 0 0 3px var(--svc), 0 6px 16px rgba(23, 141, 191, .08); }
.pg-game summary { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; cursor: pointer; list-style: none; }
.pg-game summary::-webkit-details-marker { display: none; }
.pg-art { width: 56px; }
.pg-t { display: grid; min-width: 0; }
.pg-t b { font-size: 15.5px; color: #1f3440; }
.pg-t small { font-size: 12px; line-height: 1.5; color: #6b8391; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.pg-game[open] .pg-t small { -webkit-line-clamp: unset; display: none; }
.pg-p { display: grid; justify-items: center; padding: 5px 9px; border-radius: 12px; background: var(--svc-soft); }
.pg-p b { font-size: 13px; color: var(--svc-ink); }
.pg-p small { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; color: #8a5a00; }
.pg-p svg { width: 12px; height: 12px; fill: #ffbe1a; }
.pg-tag { padding: 4px 10px; border-radius: 999px; background: #eef4f8; font-size: 12px; font-weight: 700; color: #55707e; }
.pg-body { padding: 2px 14px 14px; border-top: 1px solid #eef4f8; }
.pg-body h5 { margin: 12px 0 2px; font-size: 13.5px; color: var(--svc-ink); }
.pg-body p { margin: 0; font-size: 14px; line-height: 1.85; color: #33505e; }
.pg-play { margin-top: 12px; width: 100%; min-height: 48px; font-size: 17px; }
.pg-none { margin: 0; padding: 20px; text-align: center; color: #8aa1ad; }

@media (min-width: 560px) {
  .ins-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ins-two { grid-template-columns: 1fr 1fr; }
  .ins-game summary { grid-template-columns: 54px minmax(0, 1fr) minmax(0, 300px); grid-template-areas: "a t k"; }
}
.face-scene .hold-ring.go circle { transition-duration: var(--hold, 3s); }

.peek-scene .pk-unit { transition-duration: var(--swap, .55s); }
.peek-scene[data-n="4"] .pk-row { height: calc(min(21vw, 118px) * 1.22); }
.peek-scene[data-n="4"] .pk-unit { width: min(21vw, 118px); }
.peek-scene[data-n="5"] .pk-row { height: calc(min(17.5vw, 98px) * 1.22); }
.peek-scene[data-n="5"] .pk-unit { width: min(17.5vw, 98px); }

.rt-of { display: inline-block; margin-inline-start: 10px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .9); font-family: var(--body); font-size: 14px; font-weight: 800; color: var(--ink-soft); vertical-align: middle; box-shadow: 0 2px 0 rgba(31, 52, 64, .08); }
.rt-num:empty { display: none; }
.rt-card.rt-odd.out { opacity: .32; filter: grayscale(1); transform: scale(.9); transition: opacity .3s, transform .3s, filter .3s; }

.plate-scene .pl-ladder { grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); }
.plate-scene .pl-ladder li span { font-size: 12px; white-space: nowrap; }
.pl-of { position: absolute; top: 86px; inset-inline-start: max(14px, var(--safe-l)); padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: 13px; font-weight: 800; color: var(--ink-soft); box-shadow: 0 2px 0 rgba(31, 52, 64, .08); }

.market-scene .mk-board { flex-wrap: wrap; }
.market-scene[data-many] .mk-board svg { width: 24px; height: 24px; }
.market-scene[data-n="4"] .mk-baskets { gap: 6px; }
.market-scene[data-n="4"] .mk-basket { width: min(22vw, 124px); font-size: 15px; }
.market-scene[data-n="5"] .mk-baskets { gap: 4px; }
.market-scene[data-n="5"] .mk-basket { width: min(18.5vw, 106px); font-size: 13px; }
.market-scene[data-n="4"] .mk-basket span, .market-scene[data-n="5"] .mk-basket span { padding: 2px 8px 3px; }
.mk-basket.g-cat span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--tint); }
.mk-rule { position: absolute; top: 104px; left: 50%; transform: translateX(-50%); padding: 6px 16px; border-radius: 999px; font-family: var(--display); font-weight: 800; font-size: 18px; color: #fff; background: #8b6cd9; box-shadow: 0 3px 0 #5b3fb0; z-index: 3; white-space: nowrap; }
.mk-rule[data-rule="cat"] { background: #22a35a; box-shadow: 0 3px 0 #15803d; }
.qz-opt.nope { animation: shake .45s ease; }

.cb-gone { position: relative; display: block; }
.cb-gone svg { opacity: .32; filter: grayscale(.6); }
.cb-gone::after { content: ""; position: absolute; left: 6%; right: 6%; top: 46%; height: 4px; border-radius: 4px; background: #ef4444; transform: rotate(-38deg); }

.qz-seq { display: flex; gap: 8px; justify-content: center; }
.qz-seq b { display: grid; place-items: center; width: min(15vw, 58px); aspect-ratio: 1; border-radius: 16px; background: #fff; font-family: var(--display); font-weight: 800; font-size: clamp(24px, 7vw, 32px); color: var(--ink); box-shadow: 0 5px 0 rgba(31, 52, 64, .1); }
.qz-seq b.gap { background: #fff7ed; color: var(--brand); box-shadow: inset 0 0 0 3px var(--brand), 0 5px 0 rgba(244, 129, 32, .25); }

.qz-command.fl-multi { display: grid; gap: 8px; padding: 14px 22px; border-radius: 26px; font-size: clamp(17px, 4.8vw, 23px); line-height: 1.35; }
.fl-multi span { display: flex; align-items: center; gap: 10px; }
.follow-scene .qz-options, .count-scene .qz-options { grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.follow-scene .qz-options[style*="--cols: 4"] .qz-opt { min-height: 0; padding: 8px 4px; }
.follow-scene .qz-options[style*="--cols: 4"] .qz-opt svg { width: 100%; max-width: 70px; }
.fl-multi i { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); font-style: normal; font-size: 17px; }

.cut-band { fill: none; stroke: rgba(77, 177, 224, .17); stroke-width: calc(var(--cw, 20) * 2px); stroke-linecap: round; stroke-linejoin: round; }
.cut-of, .mz-of { position: absolute; z-index: 2; top: 12px; inset-inline-end: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .95); font-family: var(--display); font-weight: 800; font-size: 16px; color: var(--ink); box-shadow: 0 3px 0 rgba(31, 52, 64, .1); }

.mz-of { left: 14px; right: auto; inset-inline-end: auto; }
.beads-scene.long .bd { width: min(6.4vw, 30px); }
.beads-scene.long .bd-row { gap: 4px; }
.bd-tray { flex-wrap: wrap; }
.bd-tray.many { gap: 10px; }
.bd-tray.many .bd-pick { width: 58px; height: 58px; }
.bd-of { margin-inline-start: 6px; padding: 1px 8px; border-radius: 999px; background: #f3e8ff; color: #7e22ce; font-size: 12px; }
.bd-card.hidden-pat .bd-row.ref .bd { background: #f1f5f9 !important; border: 2px dashed #cbd5e1; box-shadow: none; }

.mz-gem { fill: #22d3ee; stroke: #0e7490; stroke-width: 1.6; stroke-linejoin: round; }
.mz-key { animation: gemBob 1.6s ease-in-out infinite; }
.mz-key.got { animation: gemGot .5s ease forwards; }
.mz-goal-g { transition: opacity .4s, filter .4s; }
.mz-goal-g.locked { opacity: .35; filter: grayscale(1); }

.sr-pic.garden { background: linear-gradient(180deg, #bbf7d0, #fef9c3); }
.sr-pic.garden svg, .sr-pic.hive svg { width: 84%; height: 84%; }
.sr-pic.fruit { background: radial-gradient(circle at 50% 60%, #fff7ed, #fed7aa); }
.sr-fruits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6%; width: 74%; }
.sr-fruits svg { width: 100%; height: auto; }
.sr-pic.hive { background: linear-gradient(180deg, #fde68a, #fff7ed); }
.sr-ask { display: grid; justify-items: center; gap: 8px; width: min(100%, 420px); }
.sr-ask b { font-family: var(--display); font-weight: 800; font-size: 19px; color: var(--ink); }
.sr-opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; width: 100%; }
.sr-opt { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 10px; border-radius: 16px; background: #fff; box-shadow: 0 4px 0 rgba(31, 52, 64, .12); font-weight: 700; font-size: 14px; text-align: start; }
.sr-opt .sr-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; }
.sr-opt .sr-ic svg { width: 100%; height: 100%; }
.sr-opt.right { background: #dcfce7; box-shadow: 0 4px 0 #22c55e; }
.sr-opt.wrong { opacity: .45; animation: shake .45s ease; }
.scratch-scene.ask-lv { justify-content: flex-start; gap: 10px; }
.scratch-scene.ask-lv .sr-frame { flex: none; max-height: 54%; }

.balloon-scene.swap .bl-head { animation: blSwap .9s ease; }

@keyframes gemBob { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }
@keyframes gemGot { to { opacity: 0; } }
@keyframes blSwap { 0%, 100% { background: rgba(255, 255, 255, .94); } 30% { background: #fef08a; } }
.tower-scene .tw-block { height: var(--bh, 30px); border-radius: calc(var(--bh, 30px) * .27); }

.wd-slots.long { gap: 5px; }
.wd-slots.long .wd-slot { width: min(10.5vw, 48px); font-size: 26px; }

.sh-items { flex-wrap: wrap; justify-content: center; }
.sh-items span { overflow: visible; }
.sh-q { position: absolute; top: -8px; inset-inline-end: -10px; z-index: 1; padding: 1px 6px; border-radius: 999px; background: #1f3440; color: #fff; font-style: normal; font-size: 12px; font-weight: 800; line-height: 1.5; }
.sh-p { position: absolute; bottom: -8px; inset-inline-start: -8px; z-index: 1; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 999px; background: #fbbf24; color: #78350f; box-shadow: 0 0 0 2px #fff; font-size: 12px; font-weight: 800; }
.shop-scene .sh-shelf { --rows: 2; grid-template-columns: repeat(var(--cols, 3), 1fr); background: repeating-linear-gradient(180deg, #fff 0, #fff calc(100% / var(--rows) - 5px), #c98a4b calc(100% / var(--rows) - 5px), #c98a4b calc(100% / var(--rows))); }
.shop-scene .sh-good svg { max-height: min(90px, calc(30vh / var(--rows, 2))); }
.shop-scene.paying .sh-shelf { display: none; }
.coin.note { width: 76px; height: 52px; }
.sh-sum { min-height: 1.4em; text-align: center; font-weight: 800; color: #92400e; }

#play[data-game="visit"] .rt-slots:has(> .rt-slot:nth-child(5)) { grid-template-columns: repeat(5, 1fr); gap: 6px; }
#play[data-game="visit"] .rt-slots:has(> .rt-slot:nth-child(6)) { grid-template-columns: repeat(6, 1fr); }
#play[data-game="visit"] .routine-scene:has(.rt-slot:nth-child(5)) .rt-cards { grid-template-columns: repeat(3, 1fr); gap: 8px; }
#play[data-game="visit"] .routine-scene:has(.rt-slot:nth-child(5)) .rt-card { padding: 8px 4px; font-size: 13px; line-height: 1.35; }
#play[data-game="visit"] .routine-scene:has(.rt-slot:nth-child(5)) .rt-slot .rt-card span { font-size: 9.5px; }

.th-opts { display: grid; gap: 8px; margin-top: 6px; }
.th-opt { padding: 10px 14px; border-radius: 16px; background: #fff; color: var(--ink); font-weight: 700; font-size: 15.5px; line-height: 1.6; box-shadow: 0 4px 0 rgba(22, 101, 52, .18); }
.th-opt.nope { animation: shake .45s ease; opacity: .45; }
.th-fix b:empty { display: none; }

.dt.dense .dt-dot text { font-size: 6px; stroke-width: 2px; }

.mm-grid.dense { width: min(100%, 420px, calc((100vh - 300px) * .78)); gap: 8px; }

.reach-scene .rh-bubble { width: calc(clamp(88px, 21vmin, 176px) * var(--rs, 1)); }

.fr-pad.stop { background: radial-gradient(circle at 40% 34%, #fecaca 0%, #f87171 62%, #dc2626 100%); }
.fr-pad.stop.held { background: radial-gradient(circle at 40% 34%, #b2f0a9 0%, #5fcf6e 62%, #45b45a 100%); }
.fr-hold { position: absolute; top: 14px; left: 50%; z-index: 4; display: grid; justify-items: center; gap: 6px; width: min(70%, 260px); padding: 10px 14px; border-radius: 18px; background: rgba(255, 255, 255, .92); box-shadow: 0 8px 20px rgba(0, 60, 50, .2); transform: translateX(-50%); }
.fr-hold b { font-family: var(--display); font-weight: 800; font-size: 22px; color: #dc2626; }
.fr-hold-bar { width: 100%; height: 10px; border-radius: 10px; background: #fee2e2; overflow: hidden; }
.fr-hold-bar i { display: block; height: 100%; background: #22c55e; transform: scaleX(0); transform-origin: 0 50%; }
[dir="rtl"] .fr-hold-bar i { transform-origin: 100% 50%; }
.sp-field.tiny .sp-item { width: clamp(46px, 12.5vmin, 92px); }
.gng-light.wait i { background: radial-gradient(circle at 40% 35%, #fef9c3, #eab308 60%); box-shadow: 0 0 50px #eab308; }
.gng-light.go.tapped i { box-shadow: 0 0 0 10px rgba(34, 197, 94, .35), 0 0 50px #22c55e; }
.ms-grid { gap: 8px; }
.pattern-scene .qz-row { max-width: min(100%, 620px); gap: 5px; padding: 12px; }
.pattern-scene .qz-row svg, .pattern-scene .qz-q { width: min(8.2vw, 48px); }
.pattern-scene .qz-q { font-size: clamp(18px, 5vw, 28px); border-width: 2px; }
.na-syl, .na-shapes, .na-trace, .na-pegs, .na-dress, .na-pace, .na-weigh, .na-sort, .na-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px max(14px, var(--safe-r)) 14px max(14px, var(--safe-l));
  overflow-y: auto;
  background: linear-gradient(180deg, #f0f9ff 0%, #fff7ed 100%);
}

.na-syl { justify-content: center; gap: 18px; }
.na-sy-card { display: grid; justify-items: center; gap: 8px; width: min(100%, 340px); padding: 18px 18px 16px; border-radius: 28px; background: #fff; box-shadow: 0 10px 26px rgba(23, 141, 191, .14); }
.na-sy-card.in { animation: popIn .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.na-sy-card.good { box-shadow: 0 0 0 4px #22c55e, 0 10px 26px rgba(34, 197, 94, .25); }
.na-sy-pic svg { width: min(42vw, 26vh, 170px); height: auto; }
.na-sy-word { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 8vw, 40px); line-height: 1.2; color: #1f3440; }
.na-sy-dots { display: flex; gap: 10px; min-height: 26px; align-items: center; }
.na-sy-dots i { width: 22px; height: 22px; border-radius: 50%; background: #e2edf3; box-shadow: inset 0 2px 3px rgba(31, 52, 64, .12); transition: transform .2s, background .2s; }
.na-sy-dots i.on { background: #f48120; transform: scale(1.15); box-shadow: 0 3px 0 #c25a07; }
.na-sy-dots i.demo.on { background: #4db1e0; box-shadow: 0 3px 0 #1479a8; }
.na-sy-dots i.extra { background: #ef4444; box-shadow: 0 3px 0 #b91c1c; }
.na-sy-drum { width: min(44vw, 24vh, 170px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #fff 0%, #ffe6d1 70%); box-shadow: 0 8px 0 #f6c7a0, 0 16px 30px rgba(244, 129, 32, .25); transition: transform .1s; }
.na-sy-drum svg { width: 78%; height: auto; }
.na-sy-drum:disabled { opacity: .55; filter: grayscale(.4); }
.na-sy-drum.hit { animation: naHit .22s ease; }

.na-rh-t b, .na-babies .qz-pic b { font-size: clamp(22px, 6vw, 30px); }
.na-rhyme .qz-opt svg, .na-whq .qz-opt svg { width: min(18vw, 70px); }
.na-babies .qz-opt svg { width: min(22vw, 88px); }

.na-wh-wrap { display: grid; justify-items: center; gap: 10px; width: min(100%, 460px); }
.na-wh-scene { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 8px 22px rgba(23, 141, 191, .16); }
.na-wh-say { margin: 0; padding: 10px 16px; border-radius: 16px; background: #fff; font-family: var(--display); font-weight: 800; font-size: clamp(17px, 4.6vw, 21px); line-height: 1.6; text-align: center; color: #1f3440; }
.na-whq .qz-visual { min-height: 0; }

.na-shapes { justify-content: center; gap: 18px; }
.na-sh-tray { display: grid; place-items: center; width: min(100%, 360px); height: min(30vw, 18vh, 130px); min-height: 92px; border-radius: 26px; background: repeating-linear-gradient(45deg, #fff7ed 0 12px, #ffedd5 12px 24px); box-shadow: inset 0 3px 8px rgba(194, 90, 7, .12); }
.na-sh-piece { width: min(24vw, 14vh, 100px); aspect-ratio: 1; display: grid; place-items: center; transition: transform .42s cubic-bezier(.4, 0, .2, 1); }
.na-sh-piece.in { animation: popIn .45s cubic-bezier(.2, 1.5, .4, 1) both; }
.na-sh-piece svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .15)); transition: transform .3s; }
.na-sh-board { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 10px; width: min(100%, 440px); padding: 12px; border-radius: 26px; background: #b45309; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .18), 0 10px 24px rgba(180, 83, 9, .25); transition: opacity .3s; }
.na-sh-board.swap { opacity: 0; }
.na-sh-hole { aspect-ratio: 1; display: grid; place-items: center; padding: 14%; border-radius: 18px; background: #fde8c8; box-shadow: inset 0 4px 8px rgba(120, 53, 15, .3); }
.na-sh-hole svg { width: 100%; height: auto; overflow: visible; }
.na-sh-slot { fill-opacity: .28; stroke-width: 5; stroke-dasharray: 8 6; stroke-linejoin: round; }
.na-sh-hole.full svg g { filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .18)); }
.na-sh-hole.full { box-shadow: inset 0 4px 8px rgba(120, 53, 15, .3), 0 0 0 3px #22c55e; }
.na-sh-hole.nope { animation: shake .45s ease; }
.na-sh-hole.hint { animation: hintGlow 1s ease-in-out infinite; }

.na-prepo .qz-opt svg { width: 100%; max-width: 220px; }
.na-pr-cmd { font-size: clamp(19px, 5.2vw, 26px); text-align: center; line-height: 1.5; padding: 14px 22px; border-radius: 24px; }

.na-trace, .na-pace { gap: 8px; padding-bottom: 8px; }
.na-tr-head, .na-pc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: min(100%, 480px); padding: 8px 16px; border-radius: 999px; background: #fff; box-shadow: 0 6px 16px rgba(23, 141, 191, .1); font-weight: 800; color: #1f3440; }
.na-tr-head span, .na-pc-top span { color: #55707e; font-size: 14px; }
.na-pc-field { overflow: visible; }
.na-tr-field, .na-pc-field { flex: 1; min-height: 0; width: 100%; max-width: min(100%, 560px); touch-action: none; -webkit-user-select: none; user-select: none; }
.na-tr-band { fill: none; stroke: #fde6cf; stroke-linecap: round; stroke-linejoin: round; }
.na-tr-guide { fill: none; stroke: #c9a98a; stroke-width: 4; stroke-dasharray: 2 12; stroke-linecap: round; }
.na-tr-trail { fill: none; stroke: #f48120; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; }
.na-tr-start { fill: #22c55e; stroke: #fff; stroke-width: 5; }
.na-tr-end { fill: #ef4444; stroke: #fff; stroke-width: 4; }
.na-tr-mark circle { fill: #fff; stroke: #f48120; stroke-width: 5; }
.na-tr-mark path { stroke: #f48120; stroke-width: 3; stroke-linecap: round; }
.na-trace.off .na-tr-band { stroke: #fee2e2; }
.na-trace.off .na-tr-mark circle { stroke: #ef4444; animation: naPulse .8s ease-in-out infinite; }
.na-trace.done .na-tr-trail { stroke: #22c55e; }

.na-pegs { gap: 8px; justify-content: center; }
.na-pg-top { display: grid; justify-items: center; gap: 6px; padding: 10px 14px; border-radius: 22px; background: #fff; box-shadow: 0 6px 18px rgba(23, 141, 191, .12); }
.na-pg-label { font-size: 13px; font-weight: 800; color: #55707e; }
.na-pg-grid { display: grid; grid-template-columns: repeat(var(--g), 1fr); gap: 6px; }
.na-pg-model { width: min(36vw, 14vh, 150px); padding: 8px; border-radius: 14px; background: #fdf2e3; transition: opacity .3s; }
.na-pg-model.hidden .na-pg-cell[data-c] i { width: 54%; background: #e5d5c2; box-shadow: none; }
.na-pg-model.hidden { opacity: .6; }
.na-pg-model .na-pg-cell { aspect-ratio: 1; display: grid; place-items: center; }
.na-pg-model .na-pg-cell i { width: 54%; aspect-ratio: 1; border-radius: 50%; background: #e5d5c2; }
.na-pg-model .na-pg-cell[data-c] i { width: 78%; background: var(--c); box-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.na-pg-peek { min-height: 34px; padding: 0 14px; border-radius: 999px; background: #eef4f8; font-weight: 800; font-size: 13px; color: #1f3440; }
.na-pg-pal { display: flex; gap: 12px; }
.na-pg-color { width: 46px; height: 46px; border-radius: 50%; background: var(--c); box-shadow: 0 4px 0 rgba(0, 0, 0, .2); }
.na-pg-color[aria-pressed="true"] { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--c); transform: translateY(-2px); }
.na-pg-work { width: min(100%, 32vh, 380px); padding: 12px; border-radius: 22px; background: #d6a46a; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .15); }
.na-pg-work .na-pg-cell { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: transparent; }
.na-pg-work .na-pg-cell i { width: 42%; aspect-ratio: 1; border-radius: 50%; background: #8a5a2b; box-shadow: inset 0 3px 4px rgba(0, 0, 0, .35); transition: width .2s; }
.na-pg-work .na-pg-cell.on i { width: 80%; background: var(--c); box-shadow: 0 4px 0 rgba(0, 0, 0, .25), inset 0 -4px 0 rgba(0, 0, 0, .12); animation: popIn .35s cubic-bezier(.2, 1.6, .4, 1) both; }
.na-pg-work .na-pg-cell.nope i { animation: shake .45s ease; background: #ef4444; }
.na-pg-work.done { box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .15), 0 0 0 4px #22c55e; }

.na-dress { gap: 10px; }
.na-dr-sky { display: flex; align-items: center; gap: 10px; width: min(100%, 560px); padding: 8px 16px; border-radius: 20px; background: #fff; box-shadow: 0 6px 16px rgba(23, 141, 191, .1); font-weight: 800; color: #1f3440; }
.na-dr-sky b { flex: 1; font-family: var(--display); font-size: 19px; }
.na-dr-wi svg { width: 34px; height: 34px; display: block; }
.na-dr-of { color: #55707e; font-size: 14px; }
.w-cold .na-dr-sky { background: linear-gradient(90deg, #dbeafe, #fff); }
.w-hot .na-dr-sky { background: linear-gradient(90deg, #fef3c7, #fff); }
.w-rain .na-dr-sky { background: linear-gradient(90deg, #e2e8f0, #fff); }
.na-dr-main { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 10px; width: min(100%, 560px); flex: 1; min-height: 0; align-items: center; }
.na-dr-kid { width: 100%; max-height: 52vh; height: auto; filter: drop-shadow(0 8px 12px rgba(31, 52, 64, .15)); }
.na-dr-layer.pop { animation: popIn .4s cubic-bezier(.2, 1.4, .4, 1) both; transform-box: fill-box; transform-origin: center; }
.na-dress.ready .na-dr-kid { animation: naHop .7s ease 2; }
.na-dr-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: center; }
.na-dr-item { display: grid; justify-items: center; gap: 2px; padding: 8px 4px 6px; border-radius: 16px; background: #fff; box-shadow: 0 4px 0 rgba(31, 52, 64, .1); font-size: 12.5px; font-weight: 700; line-height: 1.3; color: #1f3440; }
.na-dr-item svg { width: min(13vw, 54px); height: auto; }
.na-dr-item.worn { opacity: .35; box-shadow: none; }
.na-dr-item.nope { animation: shake .45s ease; }
.na-dress.many .na-dr-main { grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); }
.na-dress.many .na-dr-items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.na-dress.many .na-dr-item { padding: 6px 2px 4px; font-size: 11px; }
.na-dress.many .na-dr-item svg { width: min(10vw, 44px); }

.na-pc-banner { font-family: var(--display); font-size: 18px; }
.na-pc-banner.v-s { color: #15803d; }
.na-pc-banner.v-f { color: #c2410c; }
.na-pc-banner.v-x { color: #dc2626; }
.na-pc-road { fill: none; stroke: #e7ddd0; stroke-width: 40; stroke-linecap: round; stroke-linejoin: round; }
.na-pc-line { fill: none; stroke: #fff; stroke-width: 4; stroke-dasharray: 14 12; }
.na-pc-done { fill: none; stroke: #86efac; stroke-width: 20; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.na-pc-ring { fill: rgba(77, 177, 224, .12); stroke: #4db1e0; stroke-width: 3; stroke-dasharray: 6 6; }
.na-pc-finger { fill: rgba(244, 129, 32, .35); stroke: #f48120; stroke-width: 3; pointer-events: none; }
.na-pace.lost .na-pc-ring { stroke: #ef4444; fill: rgba(239, 68, 68, .12); }
.na-pace.done .na-pc-ring { stroke: #22c55e; }

.na-weigh { justify-content: center; gap: 16px; }
.na-wg-q { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 6vw, 30px); color: #1f3440; text-align: center; }
.na-wg-scale { position: relative; width: min(100%, 440px); height: min(66vw, 300px); }
.na-wg-post { position: absolute; left: 50%; bottom: 0; width: 18px; height: 50%; margin-left: -9px; border-radius: 9px 9px 0 0; background: linear-gradient(90deg, #64748b, #94a3b8); }
.na-wg-post::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 140px; height: 16px; margin-left: -70px; border-radius: 10px; background: #64748b; }
.na-wg-beam { position: absolute; left: 6%; right: 6%; top: 52%; height: 10px; border-radius: 6px; background: #475569; transform: rotate(var(--tilt, 0deg)); transition: transform .8s cubic-bezier(.3, 1.4, .5, 1); z-index: 1; }
.na-wg-beam::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 4px #fff; }
.na-wg-pan { position: absolute; bottom: 4px; width: 40%; display: grid; justify-items: center; gap: 2px; padding: 0; background: none; transform: rotate(calc(-1 * var(--tilt, 0deg))); transform-origin: 50% 100%; transition: transform .8s cubic-bezier(.3, 1.4, .5, 1); }
.na-wg-pan:first-child { inset-inline-start: -4%; }
.na-wg-pan:last-child { inset-inline-end: -4%; }
.na-wg-pan .na-wg-obj { display: grid; place-items: end center; width: 70%; aspect-ratio: 1; filter: hue-rotate(var(--hue, 0deg)); }
.na-wg-pan::after { content: ""; width: 100%; height: 12px; border-radius: 0 0 40px 40px; background: #94a3b8; box-shadow: 0 4px 0 #64748b; }
.na-wg-obj svg { width: 100%; height: auto; }
.na-wg-obj.big svg { transform: scale(1.15); transform-origin: 50% 100%; }
.na-wg-obj.small svg { width: 54%; }
.na-wg-pan b { position: absolute; top: 100%; margin-top: 12px; white-space: nowrap; padding: 2px 10px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 800; color: #1f3440; box-shadow: 0 2px 6px rgba(31, 52, 64, .12); }
.na-wg-pan.right b { background: #dcfce7; color: #15803d; }
.na-wg-pan.nope { animation: shake .45s ease; }
.na-wg-slots { display: flex; gap: 8px; justify-content: center; width: min(100%, 480px); }
.na-wg-slot { position: relative; flex: 1; max-width: 110px; aspect-ratio: .8; display: grid; place-items: center; border-radius: 18px; border: 3px dashed #cbd8e0; background: rgba(255, 255, 255, .6); }
.na-wg-slot i { position: absolute; top: 4px; inset-inline-start: 8px; font-style: normal; font-weight: 800; color: #94a3b8; }
.na-wg-slot .na-wg-card { width: 92%; box-shadow: none; }
.na-wg-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; width: min(100%, 480px); min-height: 110px; }
.na-wg-card { display: grid; justify-items: center; gap: 2px; width: min(22vw, 104px); padding: 8px 4px; border-radius: 18px; background: #fff; box-shadow: 0 4px 0 rgba(31, 52, 64, .1); font-size: 12px; font-weight: 700; color: #1f3440; }
.na-wg-card svg { width: 78%; height: auto; }
.na-wg-card.nope { animation: shake .45s ease; }
.na-wg-tip { margin: 0; font-weight: 800; color: #55707e; }

.na-sort { justify-content: space-between; }
.na-so-top { flex: 1; display: grid; place-items: center; width: 100%; min-height: 150px; }
.na-so-card { display: grid; justify-items: center; gap: 6px; padding: 16px 22px; border-radius: 26px; background: #fff; box-shadow: 0 10px 26px rgba(23, 141, 191, .16); transition: transform .5s cubic-bezier(.4, 0, .2, 1), opacity .5s; }
.na-so-card.in { animation: popIn .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.na-so-card.fly { opacity: 0; }
.na-so-pic svg { width: min(36vw, 22vh, 150px); height: auto; }
.na-so-name { font-family: var(--display); font-weight: 800; font-size: clamp(20px, 5.4vw, 26px); color: #1f3440; }
.na-so-bins { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 10px; width: min(100%, 520px); }
.na-so-bin { position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 6px 8px; border-radius: 20px; background: #fff; border-top: 6px solid var(--c); box-shadow: 0 5px 0 rgba(31, 52, 64, .12); font-weight: 800; font-size: 15px; color: #1f3440; }
.na-so-ic svg { width: min(13vw, 52px); height: auto; }
.na-so-two { display: flex; }
.na-so-two svg { width: min(10vw, 40px); }
.na-so-n { position: absolute; top: 6px; inset-inline-end: 8px; min-width: 24px; padding: 1px 6px; border-radius: 999px; background: var(--c); color: #fff; font-size: 12px; }
.na-so-bin.got { animation: naHop .45s ease; }
.na-so-bin.nope { animation: shake .45s ease; }
.na-so-bin.hint { animation: hintGlow 1s ease-in-out infinite; }

.na-please .na-pl-card { position: relative; padding-top: 12px; }
.na-pl-m { width: min(26vw, 110px); height: auto; }
.na-pl-bub { position: absolute; top: 2px; inset-inline-end: 10px; width: min(15vw, 62px); padding: 6px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(31, 52, 64, .16); }
.na-pl-bub svg { width: 100%; height: auto; }
.na-please .qz-pic b { max-width: 420px; font-size: clamp(16px, 4.4vw, 21px); line-height: 1.6; }
.na-please .qz-opt.text { min-height: 54px; font-size: 16px; }

.na-copy { justify-content: space-between; }
.na-cp-show { display: grid; justify-items: center; gap: 6px; width: min(100%, 460px); padding: 12px; border-radius: 26px; background: #fff; box-shadow: 0 10px 26px rgba(23, 141, 191, .14); }
.na-cp-big { width: min(26vw, 16vh, 120px); height: auto; border-radius: 22px; background: color-mix(in srgb, var(--c, #f48120) 14%, #fff); }
.na-copy.beat .na-cp-big { animation: popIn .4s cubic-bezier(.2, 1.5, .4, 1) both; }
.na-cp-name { font-family: var(--display); font-weight: 800; font-size: clamp(19px, 5vw, 24px); color: #1f3440; min-height: 1.3em; }
.na-cp-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 50px; }
.na-cp-strip span { width: 42px; height: 50px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--c) 16%, #fff); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 45%, transparent); }
.na-cp-strip span svg { width: 100%; height: 100%; }
.na-cp-strip span i { font-style: normal; font-weight: 800; color: #94a3b8; }
.na-cp-strip span[data-hid] { background: #eef4f8; box-shadow: inset 0 0 0 2px #dbe5eb; }
.na-cp-strip span.now { outline: 3px solid #f48120; outline-offset: 2px; }
.na-cp-strip span.done { opacity: .45; }
.na-cp-cards { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 8px; width: min(100%, 520px); }
.na-cp-card { display: grid; justify-items: center; gap: 2px; padding: 8px 4px 6px; border-radius: 18px; background: #fff; border-bottom: 5px solid var(--c); box-shadow: 0 4px 10px rgba(31, 52, 64, .08); font-size: 12.5px; font-weight: 800; color: #1f3440; line-height: 1.3; }
.na-cp-card svg { width: min(15vw, 62px); height: auto; }
.na-cp-card:disabled { opacity: .7; }
.na-cp-card.lit { box-shadow: 0 0 0 4px var(--c), 0 8px 18px rgba(31, 52, 64, .18); transform: translateY(-3px); opacity: 1; }
.na-cp-card.ok { animation: naHop .4s ease; }
.na-cp-card.nope { animation: shake .45s ease; }

@keyframes naHit { 0% { transform: scale(1); } 40% { transform: scale(.9); } 100% { transform: scale(1); } }
@keyframes naHop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-8px); } }
@keyframes naPulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

@media (max-width: 380px) {
  .na-cp-strip { gap: 4px; }
  .na-cp-strip span { width: 34px; height: 42px; border-radius: 10px; }
  .na-dr-item { font-size: 11px; }
  .na-cp-card span { font-size: 11px; }
}

@media (min-width: 1000px) {
  .na-dr-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .na-dr-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .na-dr-item svg { width: 58px; }
  .na-sy-pic svg { width: 190px; }
  .na-sy-drum { width: 190px; }
  .na-so-pic svg { width: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  .na-wg-beam, .na-wg-pan, .na-sh-piece { transition: none; }
}
.nb-clockbox { display: grid; place-items: center; padding: 10px; border-radius: 50%; background: #fff; box-shadow: 0 10px 26px rgba(23, 141, 191, .16); }
.nb-clock { width: min(56vw, 30vh, 230px); height: auto; direction: ltr; }
.nb-clock .rim { fill: #2bb3a3; }
.nb-clock .face { fill: #fff; }
.nb-clock .ticks line { stroke: #b9cbd4; stroke-width: 2; stroke-linecap: round; }
.nb-clock .ticks line.b { stroke: #1f3440; stroke-width: 4; }
.nb-clock .nums text { font-family: var(--display); font-weight: 800; font-size: 22px; fill: #1f3440; text-anchor: middle; }
.nb-clock .hh { stroke: #1f3440; stroke-width: 9; stroke-linecap: round; }
.nb-clock .mh { stroke: #f48120; stroke-width: 6; stroke-linecap: round; }
.nb-clock .pin { fill: #f48120; stroke: #fff; stroke-width: 2; }
.qz-opt .nb-clock.sm { width: min(28vw, 15vh, 120px); }
.nb-timecard p { white-space: nowrap; }

.nb-stack { display: grid; justify-items: center; gap: 14px; }
.nb-take { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 420px; padding: 12px; border-radius: 22px; background: #fff; box-shadow: 0 8px 22px rgba(23, 141, 191, .12); }
.nb-it { position: relative; width: min(13vw, 58px); animation: popIn .4s cubic-bezier(.2, 1.5, .4, 1) both; animation-delay: calc(var(--i) * .05s); }
.nb-take.many .nb-it { width: min(9vw, 40px); }
.nb-it svg { width: 100%; height: auto; display: block; }
.nb-it.gone svg { opacity: .28; filter: grayscale(.7); }
.nb-it.gone::after { content: ""; position: absolute; inset: 10%; background: linear-gradient(45deg, transparent 44%, #ef4444 44%, #ef4444 56%, transparent 56%); }
.nb-eq { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 20px; border-radius: 22px; background: #fff; box-shadow: 0 8px 0 rgba(31, 52, 64, .08); font-family: var(--display); font-weight: 800; font-size: clamp(34px, 10vw, 52px); line-height: 1; color: #1f3440; }
.nb-eq i { font-style: normal; color: var(--brand); }
.nb-eq .qz-q { width: 1.4em; font-size: .8em; }
.nb-pips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 300px; }
.nb-pips i { position: relative; width: 18px; height: 18px; border-radius: 50%; background: #2bb3a3; }
.nb-pips i.x { background: #cbd5e1; }
.nb-pips i.x::after { content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 3px; margin-top: -1.5px; background: #ef4444; transform: rotate(-35deg); }

.nb-lg { display: grid; justify-items: center; gap: 12px; padding: 14px 16px; border-radius: 26px; background: #fff; box-shadow: 0 8px 22px rgba(23, 141, 191, .12); }
.nb-lg > svg { width: min(34vw, 20vh, 140px); height: auto; }
.nb-word { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.nb-lt { min-width: 46px; height: 56px; padding: 0 6px; display: grid; place-items: center; border-radius: 14px; background: #e6f7f4; color: #16786d; font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1; box-shadow: inset 0 -4px 0 rgba(22, 120, 109, .18); }
.nb-lt.gap { background: #fff; color: #f48120; border: 3px dashed #f48120; box-shadow: none; animation: dotPulse 1.2s ease-in-out infinite; }
.nb-letter { font-size: 44px; }
.nb-pair { display: inline-flex; gap: 6px; }
.nb-pair b { min-width: 40px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: #e6f7f4; color: #16786d; font-family: var(--display); font-weight: 800; font-size: 28px; }

.nb-sos p { color: #b91c1c; }
.nb-ride-q { max-width: 460px; }
.nb-ride-q b { font-size: clamp(17px, 4.6vw, 22px); line-height: 1.5; }
.nb-help-scene .qz-opt svg, .nb-ride-scene .qz-opt svg { width: min(22vw, 92px); }

.nb-eo-scene { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px max(12px, var(--safe-r)) 14px max(12px, var(--safe-l)); overflow-y: auto; background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%); }
.nb-eo-top { display: flex; align-items: center; gap: 10px; width: min(100%, 560px); }
.nb-eo-cust { flex: none; width: 86px; height: 86px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff, #fde3c4); overflow: hidden; box-shadow: 0 6px 16px rgba(194, 90, 7, .18); }
.nb-eo-cust svg { width: 100%; height: 100%; }
.nb-eo-cust.in { animation: nbSlideIn .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.nb-eo-bubble { position: relative; flex: 1; min-height: 76px; padding: 10px 14px; border-radius: 20px; background: #fff; box-shadow: 0 6px 16px rgba(31, 52, 64, .1); display: grid; gap: 6px; align-content: center; }
.nb-eo-say { margin: 0; font-weight: 700; font-size: 15.5px; line-height: 1.6; color: #1f3440; }
.nb-eo-order { display: flex; flex-wrap: wrap; gap: 6px; }
.nb-eo-o { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: #fff7ed; }
.nb-eo-o svg { width: 40px; height: 40px; }
.nb-eo-o.hid b { font-family: var(--display); font-size: 26px; color: #f48120; }
.nb-eo-o i { position: absolute; bottom: -6px; inset-inline-end: -6px; padding: 1px 6px; border-radius: 10px; background: #f48120; color: #fff; font-style: normal; font-weight: 800; font-size: 12px; }
.nb-eo-ask { width: min(100%, 560px); padding: 12px; border-radius: 20px; background: #fff; box-shadow: 0 8px 22px rgba(194, 90, 7, .16); animation: popIn .35s ease both; }
.nb-eo-ask[hidden] { display: none; }
.nb-eo-ask p { margin: 0 0 8px; text-align: center; font-weight: 800; color: #c25a07; }
.nb-eo-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.nb-eo-opt { min-height: 52px; padding: 8px 10px; border-radius: 16px; background: #fff7ed; box-shadow: 0 4px 0 #f6d2ae; font-weight: 700; font-size: 15px; line-height: 1.5; color: #1f3440; display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.nb-eo-opt .qz-num { font-size: 28px; }
.nb-eo-opt.right { background: #dcfce7; box-shadow: 0 4px 0 #22c55e; }
.nb-eo-opt.wrong { opacity: .45; animation: shake .45s ease; }
.nb-eo-tray { display: flex; align-items: center; gap: 10px; width: min(100%, 560px); min-height: 56px; padding: 6px 12px; border-radius: 999px; background: linear-gradient(180deg, #d6d3d1, #a8a29e); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .5), 0 4px 0 #78716c; }
.nb-eo-tray > span { flex: none; font-size: 12.5px; font-weight: 800; color: #44403c; }
.nb-eo-tray-in { display: flex; flex-wrap: wrap; gap: 4px; }
.nb-eo-tray-in span { width: 40px; height: 40px; animation: popIn .35s cubic-bezier(.2, 1.5, .4, 1) both; }
.nb-eo-tray-in svg { width: 100%; height: 100%; }
.nb-eo-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: min(100%, 560px); transition: opacity .25s; }
.nb-eo-menu.off { opacity: .55; pointer-events: none; }
.nb-eo-item { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border-radius: 18px; background: #fff; box-shadow: 0 4px 0 rgba(31, 52, 64, .1); }
.nb-eo-item svg { width: min(15vw, 60px); height: auto; }
.nb-eo-item b { font-size: 14px; }
.nb-eo-item small { font-size: 12px; font-weight: 700; color: #c25a07; }
@media (max-width: 699px) {
  .nb-eo-menu.big { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .nb-eo-menu.big .nb-eo-item { padding: 6px 2px; border-radius: 14px; }
  .nb-eo-menu.big .nb-eo-item svg { width: min(12vw, 48px); }
  .nb-eo-menu.big .nb-eo-item b { font-size: 12.5px; }
  .nb-eo-menu.big .nb-eo-item small { font-size: 11px; }
  .nb-eo-cust { width: 72px; height: 72px; }
}
.nb-eo-item.pick { animation: nbBounce .4s ease; }
.nb-eo-item.wrong { animation: shake .45s ease; }

.nb-bf-scene { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px max(12px, var(--safe-r)) 12px max(12px, var(--safe-l)); overflow-y: auto; background: linear-gradient(180deg, #eef2ff 0%, #fdf2f8 100%); }
.nb-bf-body { flex: none; height: min(34vh, 250px); aspect-ratio: 160 / 240; }
.nb-body { width: 100%; height: 100%; overflow: visible; }
.nb-zone { cursor: pointer; }
.nb-zone, .nb-zone * { fill: transparent; stroke: transparent; stroke-width: 3; transition: fill .2s, stroke .2s; }
.nb-zone.cand * { fill: rgba(244, 129, 32, .1); stroke: #f48120; stroke-dasharray: 5 4; }
.nb-zone.lit * { fill: rgba(239, 68, 68, .28); stroke: #ef4444; animation: nbGlow 1.2s ease-in-out infinite; }
.nb-zone.ok * { fill: rgba(34, 197, 94, .35); stroke: #16a34a; stroke-dasharray: none; animation: none; }
.nb-zone.bad * { fill: rgba(239, 68, 68, .25); }
.nb-bf-side { display: grid; gap: 10px; width: min(100%, 520px); }
.nb-bf-card { padding: 12px 16px; border-radius: 20px; background: #fff; box-shadow: 0 6px 18px rgba(90, 125, 224, .14); }
.nb-bf-q { margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: clamp(17px, 4.8vw, 22px); line-height: 1.5; color: #1f3440; text-align: center; }
.nb-bf-q .nb-bf-face { flex: none; width: 54px; height: 54px; }
.nb-bf-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.nb-bf-opts.t-help { grid-template-columns: 1fr; }
.nb-bf-opts.t-feel { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); }
.nb-bf-opt { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 50px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 4px 0 rgba(31, 52, 64, .12); font-weight: 700; font-size: 15px; line-height: 1.5; color: #1f3440; }
.nb-bf-opt .nb-bf-face { width: 56px; height: 56px; }
.nb-bf-opt.right { background: #dcfce7; box-shadow: 0 4px 0 #22c55e; }
.nb-bf-opt.wrong { opacity: .45; animation: shake .45s ease; }
.nb-bf-opt.hint { animation: hintGlow 1s ease-in-out infinite; }

.nb-br-scene { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px max(12px, var(--safe-r)) 12px max(12px, var(--safe-l)); overflow-y: auto; background: linear-gradient(180deg, #e0f2fe 0%, #fef9c3 100%); }
.nb-br-head { display: grid; justify-items: center; gap: 2px; text-align: center; }
.nb-br-head small { font-size: 13px; font-weight: 700; color: #3550a8; }
.nb-br-head b { font-family: var(--display); font-weight: 800; font-size: clamp(20px, 5.6vw, 26px); color: #1f3440; }
.nb-br-main { display: grid; gap: 14px; width: min(100%, 640px); }
.nb-br-ladder { position: relative; display: flex; flex-direction: column; gap: 6px; margin: 14px 0 0; margin-inline-start: 46px; padding: 16px 12px 8px; border-inline: 7px solid #a16207; border-radius: 6px; background: rgba(255, 255, 255, .45); }
.nb-br-top { position: absolute; top: -18px; left: 50%; width: 34px; height: 34px; margin-left: -17px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .12); }
.nb-br-top svg { width: 24px; height: 24px; fill: #e5e7eb; transition: fill .4s; }
.nb-br-ladder.won .nb-br-top svg { fill: #facc15; animation: starPop .8s cubic-bezier(.2, 1.6, .4, 1) both; }
.nb-br-rung { position: relative; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 8px; border-radius: 10px; border: 2px dashed #d6a46b; background: rgba(255, 255, 255, .6); }
.nb-br-rung.on { border-color: transparent; background: #fde68a; box-shadow: 0 3px 0 #d97706; animation: popIn .35s ease both; }
.nb-br-rung p { margin: 0; font-weight: 700; font-size: 14px; line-height: 1.4; color: #78350f; }
.nb-br-no { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #a16207; color: #fff; font-weight: 800; font-size: 13px; }
.nb-br-m { position: absolute; inset-inline-start: -50px; bottom: calc(6px + var(--at) * 50px); width: 40px; height: 40px; transition: bottom .5s cubic-bezier(.3, 1.4, .5, 1); }
.nb-br-m .mascot { width: 100%; height: 100%; }
.nb-br-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: start; }
.nb-br-q { grid-column: 1 / -1; }
.nb-br-card { min-height: 48px; padding: 8px 12px; border-radius: 16px; background: #fff; box-shadow: 0 4px 0 rgba(31, 52, 64, .12); font-weight: 700; font-size: 15px; line-height: 1.5; color: #1f3440; text-align: center; }
.nb-br-card.used { opacity: .3; box-shadow: none; }
.nb-br-card.wrong { animation: shake .45s ease; }
.nb-br-card.right { background: #dcfce7; box-shadow: 0 4px 0 #22c55e; }
.nb-br-card.hint { animation: hintGlow 1s ease-in-out infinite; }
.nb-br-q { margin: 0; padding: 10px 12px; border-radius: 16px; background: #fff; font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.5; text-align: center; color: #3550a8; }

.nb-solve { display: grid; gap: 10px; justify-items: center; }
.nb-steps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.nb-steps span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 6px; border-radius: 999px; background: #e1e8fb; color: #3550a8; font-size: 12.5px; font-weight: 700; }
[dir="rtl"] .nb-steps span { padding: 4px 6px 4px 10px; }
.nb-steps b { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: #fff; font-size: 12px; }
.nb-steps .done { background: #dcfce7; color: #15803d; }
.nb-steps .on { background: #5a7de0; color: #fff; box-shadow: 0 3px 8px rgba(90, 125, 224, .35); }
.nb-steps .on b { color: #3550a8; }
.nb-solve .qz-story { font-size: clamp(18px, 5vw, 23px); }

.nb-dk-scene { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px max(12px, var(--safe-r)) 14px max(12px, var(--safe-l)); overflow-y: auto; background: linear-gradient(180deg, #f7fee7 0%, #ecfccb 100%); }
.nb-dk-head { margin: 0; max-width: 520px; text-align: center; font-weight: 700; font-size: 14.5px; line-height: 1.6; color: #3f6212; }
.nb-dk-grid { display: grid; gap: 4px; width: min(88vw, 44vh, 380px); padding: 8px; border-radius: 20px; background: #4d7c0f; box-shadow: 0 8px 22px rgba(77, 124, 15, .25); }
.nb-dk-grid.s3 { grid-template-columns: repeat(3, 1fr); }
.nb-dk-grid.s4 { grid-template-columns: repeat(4, 1fr); }
.nb-dk-cell { aspect-ratio: 1; display: grid; place-items: center; padding: 10%; border-radius: 12px; background: #fff; transition: background .2s, box-shadow .2s; }
.nb-dk-grid.s4 { position: relative; }
.nb-dk-grid.s4::before, .nb-dk-grid.s4::after { content: ""; position: absolute; z-index: 1; border-radius: 3px; background: #facc15; pointer-events: none; }
.nb-dk-grid.s4::before { top: 6px; bottom: 6px; left: calc(50% - 2.5px); width: 5px; }
.nb-dk-grid.s4::after { left: 6px; right: 6px; top: calc(50% - 2.5px); height: 5px; }
.nb-dk-cell svg { width: 100%; height: 100%; }
.nb-dk-cell.given { background: #f7fee7; }
.nb-dk-cell:disabled { opacity: 1; cursor: default; }
.nb-dk-cell.line { background: #fefce8; }
.nb-dk-cell.sel { background: #fff7ed; box-shadow: inset 0 0 0 4px #f48120; }
.nb-dk-cell.put svg { animation: popIn .4s cubic-bezier(.2, 1.5, .4, 1) both; }
.nb-dk-cell.bad { animation: shake .45s ease; box-shadow: inset 0 0 0 4px #ef4444; }
.nb-dk-grid.won { animation: nbBounce .6s ease; }
.nb-dk-pal { display: flex; gap: 10px; justify-content: center; }
.nb-dk-sym { width: min(19vw, 78px); aspect-ratio: 1; padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 5px 0 rgba(31, 52, 64, .14); }
.nb-dk-sym svg { width: 100%; height: 100%; }
.nb-dk-sym:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(31, 52, 64, .14); }
.nb-dk-sym.hint { animation: hintGlow 1s ease-in-out infinite; }

.nb-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.nb-ts-scene { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px max(12px, var(--safe-r)) 14px max(12px, var(--safe-l)); overflow-y: auto; background: linear-gradient(180deg, #ecfeff 0%, #e0f2fe 100%); }
.nb-ts-top { display: flex; align-items: center; gap: 12px; width: min(100%, 480px); }
.nb-ts-top p { margin: 0; flex: 1; font-weight: 700; font-size: 14.5px; line-height: 1.6; color: #16786d; }
.nb-ts-prev { flex: none; width: 84px; height: 84px; padding: 4px; border-radius: 14px; background: #fff; box-shadow: 0 4px 12px rgba(23, 141, 191, .16); transition: opacity .35s, transform .35s; }
.nb-ts-prev svg { width: 100%; height: 100%; display: block; border-radius: 10px; }
.nb-ts-prev.gone { opacity: 0; transform: scale(.7); }
.nb-ts-board { display: grid; grid-template-columns: repeat(var(--c), 1fr); grid-template-rows: repeat(var(--r), 1fr); gap: 3px; width: min(90vw, 50vh, 420px); aspect-ratio: 1; padding: 6px; border-radius: 18px; background: #1f3440; box-shadow: 0 10px 26px rgba(31, 52, 64, .25); transition: gap .4s; }
.nb-tile { position: relative; padding: 0; min-width: 0; min-height: 0; border-radius: 6px; overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.nb-tile svg { display: block; width: 100%; height: 100%; }
.nb-tile.sel { z-index: 1; transform: scale(.92); box-shadow: 0 0 0 4px #f48120; }
.nb-tile.in::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px rgba(34, 197, 94, .7); border-radius: inherit; pointer-events: none; }
.nb-ts-board.won { gap: 0; }
.nb-ts-board.won .nb-tile { border-radius: 0; }
.nb-ts-board.won .nb-tile::after { display: none; }

.nb-tr-scene { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px max(12px, var(--safe-r)) 12px max(12px, var(--safe-l)); overflow-y: auto; background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%); }
.nb-tr-head { margin: 0; text-align: center; font-weight: 800; font-size: 15px; color: #92400e; }
.nb-tr-map { position: relative; flex: none; display: grid; grid-template-columns: repeat(var(--s), 1fr); width: min(86vw, 40vh, 380px); aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: #fcd9a4; box-shadow: 0 8px 22px rgba(146, 64, 14, .22), inset 0 0 0 4px #d97706; }
.nb-tr-cell { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(146, 64, 14, .12); }
.nb-tr-cell:nth-child(odd) { background: rgba(255, 255, 255, .18); }
.nb-tr-cell svg { width: 82%; height: 82%; }
.nb-tr-key { display: grid; place-items: center; width: 100%; height: 100%; transition: opacity .3s, transform .3s; animation: bob 2.4s ease-in-out infinite; }
.nb-tr-key.got { opacity: 0; transform: scale(1.6); }
.nb-tr-me { position: absolute; top: 0; left: 0; width: calc(100% / var(--s)); aspect-ratio: 1; display: grid; place-items: center; transform: translate(calc(var(--x, 0) * 100%), calc(var(--y, 0) * 100%)); transition: transform .32s ease; pointer-events: none; }
.nb-tr-me .mascot { width: 84%; height: 84%; }
.nb-tr-me.bump .mascot { animation: shake .45s ease; }
.nb-tr-map.won { animation: nbBounce .6s ease; }
.nb-tr-prog { display: flex; align-items: center; gap: 8px; width: min(100%, 420px); min-height: 48px; padding: 6px 10px; border-radius: 16px; background: #fff; box-shadow: 0 4px 0 rgba(146, 64, 14, .15); }
.nb-tr-steps { flex: 1; display: flex; flex-wrap: wrap; gap: 4px; }
.nb-tr-steps small { font-size: 13px; color: #a16207; font-weight: 700; }
.nb-tr-steps i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: #fef3c7; }
.nb-tr-steps i.run { background: #f48120; }
.nb-tr-steps svg { width: 20px; height: 20px; fill: #92400e; }
.nb-tr-steps i.run svg { fill: #fff; }
.nb-tr-undo { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #fde68a; }
.nb-tr-undo svg { width: 22px; height: 22px; fill: none; stroke: #92400e; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.nb-tr-pad { display: grid; grid-template-columns: repeat(3, 58px); grid-template-rows: repeat(3, 58px); grid-template-areas: ". u ." "l g r" ". d ."; gap: 6px; }
.nb-tr-btn { display: grid; place-items: center; border-radius: 16px; background: #fff; box-shadow: 0 5px 0 rgba(146, 64, 14, .25); }
.nb-tr-btn svg { width: 30px; height: 30px; fill: #c2410c; }
.nb-tr-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(146, 64, 14, .25); }
.nb-tr-btn.u { grid-area: u; }
.nb-tr-btn.d { grid-area: d; }
.nb-tr-btn.l { grid-area: l; }
.nb-tr-btn.r { grid-area: r; }
.nb-tr-go { grid-area: g; border-radius: 50%; background: linear-gradient(180deg, #4ade80, #16a34a); color: #fff; font-family: var(--display); font-weight: 800; font-size: 16px; box-shadow: 0 5px 0 #15803d; }

.moves-scene.nb-bal { background: linear-gradient(180deg, #fef9c3 0%, #fde68a 100%); }

.nb-ad-scene { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px max(12px, var(--safe-r)) 12px max(12px, var(--safe-l)); overflow-y: auto; background: linear-gradient(180deg, #ecfccb 0%, #d9f99d 100%); }
.nb-ad-map { position: relative; flex: none; width: min(100%, 620px); height: 122px; border-radius: 20px; background: linear-gradient(180deg, #bbf7d0, #86efac); box-shadow: inset 0 -6px 0 rgba(22, 101, 52, .12); }
.nb-ad-path { position: absolute; left: 4%; top: 20px; width: 92%; height: 70px; }
[dir="rtl"] .nb-ad-path { transform: scaleX(-1); }
.nb-ad-path path { fill: none; stroke: #fef3c7; stroke-width: 3; stroke-dasharray: 4 3; vector-effect: non-scaling-stroke; }
.nb-ad-st { position: absolute; width: 46px; height: 54px; display: grid; place-items: center; border-radius: 15px; background: #fff; box-shadow: 0 4px 0 rgba(22, 101, 52, .25); }
.nb-ad-st svg { width: 38px; height: 46px; transition: opacity .3s; }
.nb-ad-st b { position: absolute; top: -8px; inset-inline-end: -8px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #16a34a; color: #fff; font-size: 12px; font-weight: 800; }
.nb-ad-st.hid svg { opacity: 0; }
.nb-ad-st.hid::after { content: "?"; position: absolute; font-family: var(--display); font-weight: 800; font-size: 26px; color: #16a34a; }
[dir="rtl"] .nb-ad-st.hid::after { content: "؟"; }
.nb-ad-st.now { box-shadow: 0 0 0 4px #f48120, 0 4px 0 rgba(22, 101, 52, .25); }
.nb-ad-st.done { background: #dcfce7; }
.nb-ad-map.many { height: 160px; }
.nb-ad-map.many .nb-ad-st { width: 42px; height: 50px; }
.nb-ad-map.many .nb-ad-st svg { width: 34px; height: 42px; }
.nb-ad-flag { position: absolute; top: 22px; width: 50px; height: 50px; }
.nb-ad-flag svg { width: 100%; height: 100%; }
.nb-ad-me { position: absolute; bottom: 2px; width: 42px; height: 42px; transition: left .9s cubic-bezier(.4, 1.2, .5, 1); z-index: 2; }
.nb-ad-me .mascot { width: 100%; height: 100%; }
.nb-ad-main { display: grid; justify-items: center; gap: 12px; width: min(100%, 520px); }
.nb-ad-card .mv-art { width: min(34vw, 22vh, 150px); }
.nb-ad-q { margin: 0; padding: 10px 14px; border-radius: 16px; background: #fff; text-align: center; font-family: var(--display); font-weight: 800; font-size: 19px; color: #166534; }
.nb-ad-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; width: 100%; }
.nb-ad-opt { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 18px; background: #fff; box-shadow: 0 4px 0 rgba(31, 52, 64, .12); font-weight: 700; font-size: 14px; line-height: 1.4; color: #1f3440; }
.nb-ad-opt svg { width: 64px; height: 76px; }
.nb-ad-opt.right { background: #dcfce7; box-shadow: 0 4px 0 #22c55e; }
.nb-ad-opt.wrong { opacity: .45; animation: shake .45s ease; }

.nb-cs-scene { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 12px max(12px, var(--safe-r)) 14px max(12px, var(--safe-l)); overflow-y: auto; background: linear-gradient(180deg, #fdf4ff 0%, #fae8ff 100%); }
.nb-cs-head { margin: 0; min-height: 1.5em; font-family: var(--display); font-weight: 800; font-size: clamp(19px, 5.2vw, 24px); color: #86198f; text-align: center; }
.nb-cs-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 64px; padding: 10px; border-radius: 20px; background: #fff; box-shadow: 0 6px 18px rgba(134, 25, 143, .12); }
.nb-cs-slot { position: relative; width: min(11vw, 54px); aspect-ratio: 1; display: grid; place-items: center; border-radius: 14px; background: #faf5ff; transition: transform .15s, background .2s; }
.nb-cs-slot svg { width: 86%; height: 86%; }
.nb-cs-slot b { display: none; font-family: var(--display); font-size: 24px; color: #a21caf; }
.nb-cs-slot.hid svg { display: none; }
.nb-cs-slot.hid b { display: block; }
.nb-cs-slot.lit { background: #f5d0fe; transform: scale(1.18); }
.nb-cs-slot.ok { background: #dcfce7; }
.nb-cs-slot.bad { animation: shake .45s ease; background: #fee2e2; }
.nb-cs-pad { display: grid; gap: 12px; width: min(100%, 460px); }
.nb-cs-pad.k2 { grid-template-columns: repeat(2, 1fr); }
.nb-cs-pad.k3 { grid-template-columns: repeat(3, 1fr); }
.nb-cs-pad.k4 { grid-template-columns: repeat(2, 1fr); }
.nb-cs-btn { display: grid; justify-items: center; gap: 4px; padding: 12px 8px; border-radius: 22px; background: #fff; box-shadow: 0 6px 0 rgba(134, 25, 143, .2); font-weight: 800; font-size: 15px; color: #1f3440; transition: transform .12s, background .2s; }
.nb-cs-btn svg { width: min(18vw, 74px); height: auto; aspect-ratio: 1; }
.nb-cs-btn:disabled { opacity: .7; cursor: default; }
.nb-cs-btn.lit { background: #f5d0fe; transform: scale(1.06); opacity: 1; }
.nb-cs-btn.hit { animation: nbBounce .3s ease; }

@keyframes nbSlideIn { from { opacity: 0; transform: translateX(-30px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes nbBounce { 0%, 100% { transform: none; } 40% { transform: scale(1.06); } 70% { transform: scale(.98); } }
@keyframes nbGlow { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

@media (orientation: landscape) and (max-height: 560px) {
  .nb-bf-scene { flex-direction: row; justify-content: center; }
  .nb-bf-body { height: min(70vh, 240px); }
  .nb-clock { width: min(30vh, 160px); }
}

@media (max-width: 699px) {
  .nb-br-rung { min-height: 38px; }
  .nb-br-m { bottom: calc(4px + var(--at) * 44px); }
  .nb-br-card { font-size: 14px; min-height: 44px; padding: 6px 8px; }
  .nb-tr-map { width: min(86vw, 36vh, 380px); }
  .nb-tr-pad { grid-template-columns: repeat(4, 54px) 80px; grid-template-rows: 54px; grid-template-areas: "l u d r g"; }
  .nb-tr-scene .nb-tr-pad:not(:has(.nb-tr-go)) { grid-template-columns: repeat(4, 56px); grid-template-areas: "l u d r"; }
  .nb-tr-go { border-radius: 16px; }
}

@media (min-width: 700px) {
  .nb-eo-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nb-br-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .nb-br-cards { grid-template-columns: 1fr; }
}

@media (min-width: 1000px) {
  .nb-bf-scene { flex-direction: row; justify-content: center; gap: 28px; padding: 24px; }
  .nb-bf-body { height: min(60vh, 420px); }
  .nb-eo-menu { grid-template-columns: repeat(6, minmax(0, 1fr)); width: min(100%, 760px); }
  .nb-eo-top, .nb-eo-tray, .nb-eo-ask { width: min(100%, 760px); }
  .nb-dk-grid { width: min(56vh, 440px); }
  .nb-ts-board { width: min(62vh, 480px); }
  .nb-tr-map { width: min(54vh, 460px); }
  .nb-ad-map { height: 140px; }
  .nb-ad-map.many { height: 170px; }
  .nb-clock { width: min(34vh, 260px); }
}

@media (prefers-reduced-motion: reduce) {
  .nb-zone.lit *, .nb-lt.gap, .nb-tr-key { animation: none; }
}
.isle-scene { overflow: visible; }
.isle-scene .is-palm { transform-box: view-box; animation: isPalm 4.8s ease-in-out infinite; }
.isle-scene .is-ring { transform-box: fill-box; transform-origin: center; animation: isRing 3.8s ease-out infinite; }
.isle-scene .is-wave { animation: isWave 1.9s ease-in-out infinite; }
.isle-scene .is-wave.w2 { animation-delay: .45s; }
.isle-scene .is-float { transform-box: view-box; animation: isFloat 3.4s ease-in-out infinite; }
.isle-scene .is-float.f2 { animation-duration: 4.2s; animation-delay: -1.2s; }
.isle-scene .is-spin { transform-box: view-box; animation: isSpin 5s linear infinite; }
.isle-scene .is-spin.slow { animation-duration: 11s; }
.isle-scene .is-swing { transform-box: view-box; animation: isSwing 2.8s ease-in-out infinite; }
.isle-scene .is-blink { animation: isBlink 3.2s steps(1) infinite; }
.isle-scene .is-blink.b2 { animation-name: isBlink2; }
.isle-scene .is-twinkle { transform-box: fill-box; transform-origin: center; animation: isTwinkle 2.6s ease-in-out infinite; }
.isle-scene .is-twinkle:nth-of-type(2n) { animation-delay: -1.1s; }

.island .isle-art { width: 124%; margin-inline: -12%; }
.island .isle-art .art { filter: drop-shadow(0 10px 10px rgba(4, 40, 74, .26)); }
.island .halo { top: 87%; width: 96%; aspect-ratio: 5.4; }
.island .isle-foam { top: 90%; width: 98%; aspect-ratio: 6.4; border-width: 2px; border-color: rgba(255, 255, 255, .45); }
.island .isle-card { margin-top: -18px; }
.island .isle-num, .island .isle-done { top: 34%; inset-inline-start: 9%; }
.island .isle-pin { top: -14%; }
.ih-art .isle-scene { filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .25)); }
.isle-img { display: block; width: 100%; height: auto; -webkit-user-drag: none; user-select: none; }
.game-img { display: block; width: 78%; height: auto; max-height: 92%; margin: auto; object-fit: contain; -webkit-user-drag: none; user-select: none; filter: drop-shadow(0 8px 10px rgba(16, 60, 90, .2)); }
#isle-sheet .gc-art .game-img { width: auto; height: 86%; max-width: 86%; transition: transform .3s cubic-bezier(.3, 1.5, .5, 1); }
#isle-sheet .game-card:hover .game-img { transform: translateY(-4px) scale(1.05) rotate(-2deg); }
.lv-art .game-img { width: 100%; max-height: 120px; }
.pg-art .game-img, .ig-art .game-img { width: 100%; max-height: 50px; filter: none; }
.island .isle-art:has(.isle-img) .isle-foam { display: none; }
.island .isle-art:has(.isle-img) .halo { top: 96%; width: 70%; aspect-ratio: 4.2; background: radial-gradient(closest-side, rgba(10, 60, 100, .28), rgba(10, 60, 100, 0)); animation: none; }
.island .isle-art .isle-img { animation: isleBob 5.5s ease-in-out infinite; animation-delay: var(--b, 0s); filter: drop-shadow(0 14px 14px rgba(4, 40, 74, .28)); }
.ih-art .isle-img { filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .28)); }
@keyframes isleBob { 0%, 100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-5px) rotate(.4deg); } }

@keyframes isPalm { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3.5deg); } }
@keyframes isRing { 0% { opacity: .9; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.1); } }
@keyframes isWave { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes isFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes isSpin { to { transform: rotate(360deg); } }
@keyframes isSwing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes isBlink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: .22; } }
@keyframes isBlink2 { 0%, 55% { opacity: 0; } 56%, 100% { opacity: 1; } }
@keyframes isTwinkle { 0%, 100% { opacity: .35; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.1); } }

@media (prefers-reduced-motion: reduce) {
  .isle-scene .is-palm, .isle-scene .is-ring, .isle-scene .is-wave, .isle-scene .is-float, .isle-scene .is-spin, .isle-scene .is-swing, .isle-scene .is-blink, .isle-scene .is-twinkle { animation: none; }
}
.abc-scene { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px max(14px, var(--safe-r)) 14px max(14px, var(--safe-l)); overflow-y: auto; overflow-x: hidden; background: radial-gradient(120% 55% at 50% 0%, color-mix(in srgb, var(--svc-soft, #d6f3ef) 90%, #fff) 0%, rgba(255, 255, 255, 0) 70%), linear-gradient(180deg, #f6fbfe 0%, #fff8f0 100%); }
.abc-scene button { font-family: inherit; }
.abc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.abc-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; background: #fff; box-shadow: 0 4px 12px rgba(23, 141, 191, .1); font-weight: 800; font-size: 14px; color: var(--svc-ink, #16786d); }
[dir="rtl"] .abc-chip { padding: 4px 4px 4px 14px; }
.abc-chip b { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 999px; background: var(--svc, #2bb3a3); color: #fff; font-family: var(--display); font-size: 22px; line-height: 1; }
.abc-other { padding: 7px 14px; border-radius: 999px; background: #fff; color: #33505e; font-size: 13px; font-weight: 700; box-shadow: inset 0 0 0 1.5px #d7e6ee; }
.abc-in { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; width: 100%; }
.abc-in > * { margin-block: auto; }
.abc-in.in > * { animation: abcIn .45s cubic-bezier(.2, 1.3, .4, 1) both; }
.abc-in.pick { justify-content: flex-start; }
.abc-q { margin: 0 0 12px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 21px; line-height: 1.35; color: #1f3440; }

.abc-pick { width: min(100%, 860px); }
.abc-pick-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.abc-pick-top b { font-family: var(--display); font-weight: 800; font-size: 22px; color: #1f3440; }
.abc-rand { flex: none; padding: 9px 14px; border-radius: 14px; background: linear-gradient(180deg, #ffa451, #f48120 55%, #ec710e); color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 4px 0 #c25a07; }
.abc-rand:active { transform: translateY(3px); box-shadow: 0 1px 0 #c25a07; }
.abc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding-bottom: 8px; }
.abc-tile { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1.08; border-radius: 22px; background: var(--tb); box-shadow: 0 5px 0 color-mix(in srgb, var(--ti) 28%, #fff), 0 10px 18px rgba(31, 52, 64, .08); overflow: hidden; transition: transform .15s ease; }
.abc-tile:active { transform: translateY(3px) scale(.97); }
.abc-tile:hover { transform: translateY(-2px); }
.abc-tile b { position: relative; z-index: 1; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 9vw, 46px); line-height: 1; color: var(--ti); margin-top: -10%; }
.abc-tp { position: absolute; inset-inline-end: 6%; bottom: 5%; width: 36%; opacity: .95; }
.abc-tp svg { width: 100%; height: auto; }
.abc-ts { position: absolute; top: 6%; inset-inline-start: 7%; display: inline-flex; }
.abc-ts i { display: inline-grid; }
.abc-ts svg { width: 12px; height: 12px; fill: rgba(255, 255, 255, .8); }
.abc-ts .on svg { fill: #ffbe1a; filter: drop-shadow(0 1px 0 rgba(160, 100, 0, .35)); }
.abc-tile.done { box-shadow: 0 5px 0 color-mix(in srgb, var(--ti) 28%, #fff), 0 0 0 3px #ffd34d, 0 10px 18px rgba(31, 52, 64, .08); }

.abc-meet { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(100%, 520px); }
.abc-big { display: grid; place-items: center; width: min(52vw, 190px); aspect-ratio: 1; border-radius: 44px; background: radial-gradient(circle at 32% 24%, color-mix(in srgb, var(--svc, #2bb3a3) 55%, #fff) 0%, var(--svc, #2bb3a3) 55%, var(--svc-ink, #16786d) 100%); box-shadow: 0 8px 0 color-mix(in srgb, var(--svc-ink, #16786d) 80%, #000), 0 18px 34px color-mix(in srgb, var(--svc, #2bb3a3) 35%, transparent); }
.abc-big b { font-family: var(--display); font-weight: 800; font-size: min(26vw, 112px); line-height: 1; color: #fff; text-shadow: 0 4px 0 rgba(0, 0, 0, .15); }
.abc-big.pop { animation: abcPop .45s cubic-bezier(.2, 1.6, .4, 1); }
.abc-taps { display: flex; gap: 10px; }
.abc-taps i { width: 16px; height: 16px; border-radius: 50%; background: #dbe7ee; transition: background .2s, transform .2s; }
.abc-taps i.on { background: #ffbe1a; transform: scale(1.2); }
.abc-ex { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 22px; background: #fff; box-shadow: 0 1px 0 rgba(31, 52, 64, .04), 0 10px 24px rgba(23, 141, 191, .1); }
[dir="rtl"] .abc-ex { padding: 10px 10px 10px 18px; }
.abc-ex.small { margin-bottom: 4px; }
.abc-exp { display: grid; place-items: center; width: 74px; aspect-ratio: 1; border-radius: 18px; background: color-mix(in srgb, var(--svc-soft, #d6f3ef) 70%, #fff); }
.abc-exp svg { width: 84%; height: auto; }
.abc-word { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.2; color: #1f3440; }
.abc-word .hl { color: var(--svc, #2bb3a3); }
.abc-forms { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.abc-forms span { display: grid; justify-items: center; gap: 2px; min-width: 62px; padding: 8px 10px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--svc, #2bb3a3) 18%, #fff); }
.abc-forms b { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.1; color: var(--svc-ink, #16786d); }
.abc-forms small { font-size: 11.5px; font-weight: 700; color: #6b8391; }
.abc-skip { min-height: 44px; font-size: 16px; padding: 0 18px; }

.abc-find { width: min(100%, 560px); }
.abc-cnt { display: inline-flex; gap: 2px; margin-inline-start: 6px; padding: 2px 10px; border-radius: 999px; background: #fff; font-size: 16px; color: var(--svc-ink, #16786d); box-shadow: 0 3px 10px rgba(23, 141, 191, .1); vertical-align: middle; direction: ltr; }
.abc-bubs { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 10px; }
.abc-bub { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #fff 0%, var(--bb, #e0f2fe) 70%); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .06), 0 6px 14px rgba(31, 52, 64, .1); transform: rotate(var(--r)); transition: transform .2s ease, opacity .3s; }
.abc-bub span { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 7.6vw, 40px); line-height: 1; color: var(--bi, #1479a8); }
.abc-bub:nth-child(8n+1) { --bb: #ffe1ea; --bi: #c2416b; }
.abc-bub:nth-child(8n+2) { --bb: #dcf1fb; --bi: #1479a8; }
.abc-bub:nth-child(8n+3) { --bb: #fff1c9; --bi: #a26f00; }
.abc-bub:nth-child(8n+4) { --bb: #dcf6e7; --bi: #21894f; }
.abc-bub:nth-child(8n+5) { --bb: #ebe4fb; --bi: #5b3fb0; }
.abc-bub:nth-child(8n+6) { --bb: #ffe6d1; --bi: #c25a07; }
.abc-bub:nth-child(8n+7) { --bb: #d6f3ef; --bi: #16786d; }
.abc-bub:nth-child(8n+8) { --bb: #fde1e1; --bi: #b53030; }
.abc-bub.got { transform: scale(1.08); background: radial-gradient(circle at 34% 28%, #fff 0%, #bbf7d0 70%); box-shadow: 0 0 0 4px #22c55e, 0 6px 14px rgba(34, 197, 94, .25); }
.abc-bub.got span { color: #15803d; }
.abc-bub.bad { opacity: .35; }
.abc-bub.no, .abc-tl.no { animation: abcNo .4s ease; }

.abc-pic, .abc-form, .abc-miss { display: flex; flex-direction: column; align-items: center; width: min(100%, 560px); }
.abc-opts { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 10px; width: 100%; }
.abc-opt { display: grid; justify-items: center; align-content: center; gap: 4px; min-height: 64px; padding: 10px; border-radius: 22px; background: #fff; box-shadow: 0 5px 0 color-mix(in srgb, var(--svc, #2bb3a3) 18%, #d9e4ea), 0 10px 18px rgba(31, 52, 64, .06); transition: transform .15s ease; }
.abc-opt svg { width: min(26vw, 110px); height: auto; }
.abc-opt span { font-weight: 800; font-size: 16px; color: #1f3440; }
.abc-opt b { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 9vw, 46px); line-height: 1.15; color: #1f3440; }
.abc-opt:not([disabled]):active { transform: translateY(3px); }
.abc-opt.right { background: #dcfce7; box-shadow: 0 5px 0 #22c55e; }
.abc-opt.wrong { opacity: .45; animation: abcNo .4s ease; }
.abc-opts.letters .abc-opt { min-height: 86px; }
.abc-ftop { margin-bottom: 10px; }
.abc-show { display: grid; place-items: center; min-width: 110px; height: 110px; padding: 0 14px; border-radius: 30px; background: #fff; font-family: var(--display); font-weight: 800; font-size: 68px; line-height: 1; color: var(--svc-ink, #16786d); box-shadow: 0 1px 0 rgba(31, 52, 64, .04), 0 12px 26px rgba(23, 141, 191, .12); }

.abc-miss .abc-exp, .abc-build .abc-exp { width: min(34vw, 130px); border-radius: 26px; margin-bottom: 10px; }
.abc-tiles, .abc-slots { display: flex; justify-content: center; gap: 6px; margin-bottom: 12px; }
.abc-tiles span, .abc-slots span { display: grid; place-items: center; width: clamp(44px, 12vw, 58px); height: clamp(52px, 14vw, 66px); border-radius: 14px; background: #fff; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 8vw, 38px); color: #1f3440; box-shadow: 0 4px 0 #dbe7ee; }
.abc-tiles .gap { background: #fff7ed; color: #f48120; box-shadow: 0 0 0 3px #f9b26b, 0 4px 0 #f6d2ae; }
.abc-tiles .gap.filled { background: #dcfce7; color: #15803d; box-shadow: 0 0 0 3px #22c55e; }
.abc-slots span { background: color-mix(in srgb, var(--svc-soft, #d6f3ef) 60%, #fff); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--svc, #2bb3a3) 35%, #fff); }
.abc-slots span.on { background: #fff; box-shadow: 0 4px 0 #22c55e, inset 0 0 0 2px #22c55e; animation: abcPop .35s ease; }
.abc-build { display: flex; flex-direction: column; align-items: center; width: min(100%, 560px); }
.abc-pool { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.abc-tl { display: grid; place-items: center; width: clamp(50px, 14vw, 64px); height: clamp(56px, 15vw, 70px); border-radius: 16px; background: #fff; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 8vw, 38px); color: var(--svc-ink, #16786d); box-shadow: 0 5px 0 color-mix(in srgb, var(--svc, #2bb3a3) 30%, #d9e4ea); }
.abc-tl.used { opacity: .25; transform: scale(.9); }

.abc-trace { display: flex; flex-direction: column; align-items: center; width: min(100%, 520px); }
.abc-cvw { position: relative; width: min(84vw, 320px, 48vh); aspect-ratio: 1; border-radius: 30px; background: #fff; box-shadow: 0 1px 0 rgba(31, 52, 64, .04), 0 14px 30px rgba(23, 141, 191, .14), inset 0 0 0 2px color-mix(in srgb, var(--svc, #2bb3a3) 12%, #fff); overflow: hidden; }
.abc-cvw canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
.abc-cvw.ok { box-shadow: 0 0 0 4px #22c55e, 0 14px 30px rgba(34, 197, 94, .2); }
.abc-meter { position: absolute; left: 12%; right: 12%; bottom: 10px; height: 7px; border-radius: 7px; background: #eef4f8; overflow: hidden; }
.abc-meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--svc, #2bb3a3); transition: width .25s ease; }
.abc-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.abc-row .btn { min-height: 44px; font-size: 16px; padding: 0 16px; }

@keyframes abcIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes abcPop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes abcNo { 0%, 100% { transform: translateX(0) rotate(var(--r, 0deg)); } 25% { transform: translateX(-6px) rotate(var(--r, 0deg)); } 75% { transform: translateX(6px) rotate(var(--r, 0deg)); } }

@media (min-width: 600px) {
  .abc-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .abc-tile b { font-size: 46px; }
}
@media (min-width: 1000px) {
  .abc-scene { padding: 20px 26px; }
  .abc-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
  .abc-q { font-size: 24px; }
  .abc-bubs { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .abc-bub span { font-size: 40px; }
  .abc-cvw { width: min(360px, 52vh); }
  .abc-meet { width: min(100%, 640px); gap: 16px; }
  .abc-big { width: 230px; border-radius: 52px; }
  .abc-big b { font-size: 136px; }
  .abc-exp { width: 96px; }
  .abc-word { font-size: 40px; }
  .abc-opt svg { width: 128px; }
  .abc-pic, .abc-form, .abc-miss, .abc-build { width: min(100%, 640px); }
  .abc-find { width: min(100%, 700px); }
}
@media (max-height: 520px) and (orientation: landscape) {
  .abc-scene { padding-top: 8px; }
  .abc-q { font-size: 18px; margin-bottom: 8px; }
  .abc-meet { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .abc-big { width: 120px; border-radius: 30px; }
  .abc-big b { font-size: 70px; }
  .abc-cvw { width: min(46vh, 210px); }
  .abc-trace { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0 14px; }
  .abc-trace .abc-q { width: 100%; }
  .abc-bubs { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .abc-bub span { font-size: 26px; }
  .abc-opt svg { width: 70px; }
  .abc-miss .abc-exp, .abc-build .abc-exp { width: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .abc-in.in > *, .abc-big.pop, .abc-slots span.on { animation: none; }
}
.pal { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; -webkit-user-drag: none; user-select: none; filter: drop-shadow(0 8px 10px rgba(16, 60, 90, .18)); }
.st-buddy .pal { animation: palIdle 3.6s ease-in-out infinite; transform-origin: 50% 100%; }
.st-buddy.st-b2 .pal { animation-delay: -1.8s; }
.st-buddy.hop .pal { animation: palHop .5s cubic-bezier(.3, 1.6, .5, 1) 2; }
.st-buddy.talk .pal { animation: palTalk .3s ease-in-out infinite alternate; }
.st-pick .sp-av .pal { width: 38px; height: 38px; filter: none; }
.coach-face .pal { width: 100%; height: 100%; object-position: 50% 60%; filter: none; }
.coach-face.talk .pal { animation: palTalk .3s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.guide .pal { width: 108px; height: 108px; flex: none; }
@media (max-width: 420px) { .guide .pal { width: 88px; height: 88px; } }
#guide-m .pal, .wp-m .pal { animation: palIdle 4s ease-in-out infinite; transform-origin: 50% 100%; }
.qz-intro .pal { width: min(46%, 210px); height: auto; animation: qzIntro .75s cubic-bezier(.2, 1.5, .4, 1) both, palHop .8s .8s ease-in-out infinite; }
.cele-duo .cd-a .pal { width: 132px; height: 132px; position: relative; z-index: 2; }
.cele-duo .cd-b .pal { width: 104px; height: 104px; margin: 0 -14px; position: relative; z-index: 1; }
@keyframes palIdle { 0%, 100% { transform: translateY(0) scale(1, 1); } 50% { transform: translateY(-3%) scale(1.01, .99); } }
@keyframes palHop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-12%) scale(1.03, .97); } }
@keyframes palTalk { from { transform: scale(1, 1); } to { transform: scale(1.03, .97) translateY(1%); } }
.st-buddy .m-iris { transform: translate(var(--px, 0px), var(--py, 0px)); transition: transform .25s ease-out; }
.mascot[data-face="scared"] .m-iris { transform-box: fill-box; transform-origin: center; transform: scale(.7); }
.mascot .m-arm { stroke: #e46c12; }
.mascot.tw .m-arm { stroke: #1479a8; }
.mascot.tw .tw-band { fill: none; stroke: #e8731a; stroke-width: 9; stroke-linecap: round; }
.mascot.tw .tw-bow path, .mascot.tw .tw-bow circle { fill: #ff7a6b; stroke: #d9503f; stroke-width: 1.2; stroke-linejoin: round; }
.mascot.tw .tw-lash { fill: none; stroke: #1b1f45; stroke-width: 2.6; stroke-linecap: round; }
.mascot.tw .m-smile path { stroke: #c8436a; }
.mascot.tw .tw-spark { fill: #ffc83d; stroke: #e0a21a; stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: twSpark 2.6s ease-in-out infinite; }
.mascot.tw .m-puffs circle { fill: #7fd3f7; stroke: #1479a8; }
.mascot.tw .m-shine { opacity: .3; }
@keyframes twSpark { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(36deg) scale(1.18); } }

.st-buddy { left: 8%; top: 24%; width: 40%; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), filter .3s; }
.st-buddy.st-b2 { left: 52%; animation-delay: .6s; }
.st-buddy:not(.chosen) { transform: translateZ(1px) scale(.86) translateY(6%); filter: saturate(.85); }
.st-buddy.chosen { transform: translateZ(2px) scale(1.04); z-index: 2; }
.st-buddy.chosen::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -2%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 200, 61, .65), rgba(255, 200, 61, 0)); pointer-events: none; animation: stGlow 2.4s ease-in-out infinite; }
.st-hi { left: 0; right: 0; top: 2%; width: max-content; max-width: 86%; margin-inline: auto; transform-origin: 50% 100%; border-radius: 18px; text-align: center; white-space: normal; }
[dir="ltr"] .st-hi { left: 0; }
@keyframes stGlow { 0%, 100% { opacity: .6; transform: scaleX(.9); } 50% { opacity: 1; transform: scaleX(1.08); } }

.st-pick { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 10px; margin: 2px 0 12px; }
.st-pick > span { width: 100%; text-align: center; font-family: var(--display); font-weight: 800; font-size: 16px; color: #26343e; }
.st-pick button { display: inline-flex; align-items: center; gap: 8px; padding: 5px 16px 5px 6px; border-radius: 999px; background: #fff; box-shadow: 0 4px 0 rgba(23, 141, 191, .16), inset 0 0 0 2px #e4eef4; font-family: var(--display); font-weight: 800; font-size: 17px; color: #26343e; transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), box-shadow .2s; }
[dir="rtl"] .st-pick button { padding: 5px 6px 5px 16px; }
.st-pick button:active { transform: translateY(2px); }
.st-pick .sp-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff3e6; }
.st-pick [data-b="tweaky"] .sp-av { background: #e3f4fc; }
.st-pick .sp-av .mascot { width: 36px; height: 36px; }
.st-pick [aria-pressed="true"] { transform: translateY(-2px); box-shadow: 0 5px 0 #c25a07, inset 0 0 0 3px #f48120; color: #c25a07; }
.st-pick [data-b="tweaky"][aria-pressed="true"] { box-shadow: 0 5px 0 #1479a8, inset 0 0 0 3px #4db1e0; color: #1479a8; }

.cele-duo { position: relative; display: flex; justify-content: center; align-items: flex-end; margin-top: -86px; height: 132px; }
.cele-duo .cd-a, .cele-duo .cd-b { display: block; }
.cele-duo .cd-a .mascot { width: 128px; height: 128px; margin: 0; position: relative; z-index: 2; }
.cele-duo .cd-b .mascot { width: 96px; height: 96px; margin: 0 -18px; position: relative; z-index: 1; }
.cele-duo .cd-b .m-bodywrap { animation-delay: .2s; }
.cele-card .cele-duo .mascot { margin-top: 0; }
.cele-duo::before { content: ""; position: absolute; left: 50%; bottom: 4px; width: 220px; height: 56px; margin-left: -110px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 200, 61, .55), rgba(255, 200, 61, 0)); opacity: 0; pointer-events: none; }
.cele-duo .cd-a, .cele-duo .cd-b { transform-origin: 50% 58%; }
.celebrate.dance .cele-duo::before { animation: duoGlow .42s ease-in-out 8; }
.celebrate.dance .cd-a { animation: danceA 3.6s cubic-bezier(.36, .07, .19, .97) both; }
.celebrate.dance .cd-b { animation: danceB 3.6s cubic-bezier(.36, .07, .19, .97) both; }
.celebrate.dance .cele-duo .m-bodywrap { transform-origin: 50% 92%; animation: bodyBeat .42s ease-in-out 8; }
.celebrate.dance .cele-duo .m-feet ellipse:nth-child(1), .celebrate.dance .cele-duo .m-feet ellipse:nth-child(3) { animation: footTap .42s ease-in-out 8; }
.celebrate.dance .cele-duo .m-feet ellipse:nth-child(2), .celebrate.dance .cele-duo .m-feet ellipse:nth-child(4) { animation: footTap .42s .21s ease-in-out 8; }
.celebrate.dance .cele-stars .on svg { animation: starBeat .84s 1.2s ease-in-out 3; }
@keyframes danceA {
  0% { transform: none; }
  6% { transform: translateY(-22px) rotate(-6deg); }
  12% { transform: translateY(0) scale(1.05, .95); }
  18% { transform: translateY(-16px) rotate(6deg); }
  24% { transform: none; }
  30% { transform: translateX(-10px) rotate(-9deg); }
  36% { transform: translateX(10px) rotate(9deg); }
  42% { transform: translateX(-8px) rotate(-7deg); }
  48% { transform: translateY(-20px) rotate(180deg) scale(.96); }
  56% { transform: translateY(0) rotate(360deg); }
  62% { transform: rotate(360deg) translateX(0); }
  70% { transform: rotate(360deg) translateX(-16px) rotate(-8deg); }
  76% { transform: rotate(360deg) translateX(-16px) rotate(-8deg) scale(1.04); }
  84% { transform: rotate(360deg) translateY(-30px) scale(1.08); }
  92% { transform: rotate(360deg) translateY(0) scale(1.06, .94); }
  100% { transform: rotate(360deg); }
}
@keyframes danceB {
  0% { transform: none; }
  9% { transform: translateY(-18px) rotate(7deg); }
  15% { transform: translateY(0) scale(1.05, .95); }
  21% { transform: translateY(-12px) rotate(-7deg); }
  27% { transform: none; }
  33% { transform: translateX(10px) rotate(9deg); }
  39% { transform: translateX(-10px) rotate(-9deg); }
  45% { transform: translateX(8px) rotate(7deg); }
  51% { transform: translateY(-16px) rotate(-180deg) scale(.96); }
  59% { transform: translateY(0) rotate(-360deg); }
  65% { transform: rotate(-360deg); }
  70% { transform: rotate(-360deg) translateX(16px) rotate(8deg); }
  76% { transform: rotate(-360deg) translateX(16px) rotate(8deg) scale(1.04); }
  84% { transform: rotate(-360deg) translateY(-26px) scale(1.08); }
  92% { transform: rotate(-360deg) translateY(0) scale(1.06, .94); }
  100% { transform: rotate(-360deg); }
}
@keyframes bodyBeat { 0%, 100% { transform: none; } 50% { transform: scale(1.04, .95); } }
@keyframes footTap { 0%, 100% { transform: none; } 50% { transform: translateY(-4px); } }
@keyframes duoGlow { 0%, 100% { opacity: .35; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes starBeat { 0%, 100% { transform: none; } 50% { transform: scale(1.12) rotate(-6deg); } }
.cele-proud { display: grid; justify-items: center; gap: 2px; margin: -2px 0 0 !important; }
.cp-brand { display: inline-flex; align-items: center; gap: 5px; padding: 3px 12px; border-radius: 999px; background: linear-gradient(90deg, #fff1e3, #e3f4fc); font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .02em; color: #f48120; direction: ltr; }
.cp-brand i { font-style: normal; color: #1d8bc8; }
.cele-proud b { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.35; color: #1f3440; }

.start.locked .st-go, .start.locked .st-pick, .start.locked .st-stats { display: none; }
.st-lock { display: grid; justify-items: center; gap: 8px; width: min(100%, 460px); margin: 4px auto 14px; padding: 18px 18px 20px; border-radius: 24px; background: #fff; box-shadow: 0 1px 0 rgba(31, 52, 64, .05), 0 14px 30px rgba(23, 141, 191, .14); text-align: center; }
.st-lock .sl-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(135deg, #ffa451, #ec710e); box-shadow: 0 6px 14px rgba(236, 113, 14, .3); }
.st-lock .sl-ic svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.st-lock b { font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.35; color: #1f3440; }
.st-lock p { margin: 0; font-size: 14px; line-height: 1.8; color: #55707e; }
.st-lock .btn { margin-top: 4px; text-decoration: none; }
.lk-join.bad b { color: #c2410c; }
.sl-form { display: grid; gap: 10px; width: 100%; margin-top: 4px; text-align: start; }
.sl-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: #55707e; }
.sl-form input { width: 100%; min-height: 50px; padding: 0 14px; border: 2px solid #d7e6ee; border-radius: 16px; background: #fbfdfe; font: inherit; font-size: 20px; font-weight: 700; color: #1f3440; letter-spacing: .08em; text-align: center; -webkit-user-select: text; user-select: text; }
.sl-form input:focus { outline: none; border-color: #f48120; background: #fff; }
.sl-form .btn { min-height: 52px; font-size: 19px; }
.sl-msg { margin: 0; min-height: 1.3em; font-size: 13.5px; text-align: center; color: #55707e; }
.sl-msg.err { color: #c2410c; font-weight: 700; }
.sl-contact { font-size: 13.5px; font-weight: 700; color: #1479a8; text-decoration: none; }
.link-box .sl-form { margin-top: 6px; }

#coach-face[data-buddy="tweaky"] { background: radial-gradient(circle at 50% 38%, #f0f9ff 0%, #d6effb 70%); }

@media (max-height: 700px) {
  .st-pick { margin-bottom: 8px; }
  .st-pick > span { display: none; }
  .cele-card { gap: 6px; }
  .cele-proud b { font-size: 16px; }
  .cele-stars svg { width: 38px; height: 38px; }
  .cele-stars span:nth-child(2) svg { width: 48px; height: 48px; }
  #cele-text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot.tw .tw-spark, .st-buddy.chosen::after { animation: none; }
  .celebrate.dance .cd-a, .celebrate.dance .cd-b, .celebrate.dance .cele-duo .m-bodywrap, .celebrate.dance .cele-duo .m-feet ellipse, .celebrate.dance .cele-stars .on svg, .celebrate.dance .cele-duo::before { animation: none; }
}
.m3d { display: block; aspect-ratio: 1; object-fit: contain; object-position: 50% 100%; -webkit-user-drag: none; user-select: none; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(16, 60, 90, .18)); }
.m3d[data-face="side"] { animation: m3dSide 1.4s steps(1) infinite; }
@keyframes m3dSide { 50% { transform: scaleX(-1); } }
@media (prefers-reduced-motion: reduce) { .m3d[data-face="side"] { animation: none; } }