
:root {
  --bg: #06080f;
  --over: #ff8a3d;
  --heart-c: #ff4d6d;
  --bg-2: #0c1020;
  --surface: rgba(255, 255, 255, .055);
  --surface-2: rgba(255, 255, 255, .1);
  --surface-solid: #0f1424;
  --border: rgba(255, 255, 255, .1);
  --border-2: rgba(255, 255, 255, .18);
  --text: #f6f7fb;
  --text-2: #b4bcd6;
  --text-3: #9aa1c0;
  --accent: #ffc233;
  --accent-ink: #1a1200;
  --danger: #ff6b7d;
  --c-daily: #ffc233;
  --c-expert: #e14812;
  --c-rush: #ea1290;
  --c-endless: #12c8b4;
  --c-journey: #127efc;
  --c-weekly: #b07cff;
  --ink: #0b0d16;
  --wall-top: #2f3560;
  --wall-bot: #191d38;
  --wall-edge: rgba(0, 0, 0, .45);
  --floor-dot: rgba(255, 255, 255, .07);
  --board-1: rgba(30, 36, 74, .72);
  --board-2: rgba(14, 18, 40, .82);
  --socket-in: rgba(0, 0, 0, .42);
  --o0: #ff4d6d;
  --o1: #3da9fc;
  --o2: #ffc233;
  --o3: #2ee59d;
  --o4: #b46bff;
  --o5: #ff7a29;
  --o0-ink: rgba(0, 0, 0, .72);
  --o1-ink: rgba(0, 0, 0, .72);
  --o2-ink: rgba(0, 0, 0, .72);
  --o3-ink: rgba(0, 0, 0, .72);
  --o4-ink: rgba(0, 0, 0, .72);
  --o5-ink: rgba(0, 0, 0, .72);
  --o0-fg: var(--o0);
  --o1-fg: var(--o1);
  --o3-fg: var(--o3);
  --accent-fg: var(--accent);
  --danger-fg: var(--danger);
  --c-rush-fg: var(--c-rush);
  --c-journey-fg: var(--c-journey);
  --c-daily-fg: var(--c-daily);
  --c-expert-fg: var(--c-expert);
  --c-endless-fg: var(--c-endless);
  --c-weekly-fg: var(--c-weekly);
  --bm-face: #ffffff;
  --bm-cyan: #4de1ff;
  --bm-mag: #ff2d78;
  --grille: rgba(150, 190, 255, .02);
  --bd-ground: #190a2e;
  --extrude: #05070e;
  --radius: 22px;
  --dur-1: 120ms;
  --dur-2: 220ms;
  --dur-3: 420ms;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --fs-1: clamp(10.5px, 1.4vw, 11.5px);
  --fs-2: clamp(12.5px, 1.6vw, 13.5px);
  --fs-3: clamp(14px, 1.8vw, 15px);
  --fs-4: clamp(17px, 2.2vw, 19.5px);
  --fs-5: clamp(21px, 3vw, 28px);
  --fs-6: clamp(29px, 4.7vw, 47px);
  --fs-7: clamp(40px, 7.4vw, 86px);
  --font: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Chakra Petch', var(--font);
  --board-size: min(calc(100vw - 32px), 468px, max(272px, calc(100dvh - 328px)));
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f1ec;
  --over: #a84300;
  --heart-c: #e0294a;
  --bg-2: #e8e4db;
  --surface: rgba(255, 255, 255, .62);
  --surface-2: rgba(255, 255, 255, .9);
  --surface-solid: #fbfaf7;
  --border: rgba(24, 26, 52, .1);
  --border-2: rgba(24, 26, 52, .18);
  --text: #121429;
  --text-2: #373b54;
  --text-3: #50546f;
  --accent: #e8a200;
  --accent-ink: #1a1200;
  --o0-fg: color-mix(in oklab, var(--o0) 58%, var(--text));
  --o1-fg: color-mix(in oklab, var(--o1) 60%, var(--text));
  --o3-fg: color-mix(in oklab, var(--o3) 55%, var(--text));
  --accent-fg: color-mix(in oklab, var(--accent) 60%, var(--text));
  --danger-fg: color-mix(in oklab, var(--danger) 52%, var(--text));
  --c-rush-fg: color-mix(in oklab, var(--c-rush) 60%, var(--text));
  --c-journey-fg: color-mix(in oklab, var(--c-journey) 60%, var(--text));
  --c-daily-fg: color-mix(in oklab, var(--c-daily) 55%, var(--text));
  --c-expert-fg: color-mix(in oklab, var(--c-expert) 85%, var(--text));
  --c-endless-fg: color-mix(in oklab, var(--c-endless) 61%, var(--text));
  --c-weekly-fg: color-mix(in oklab, var(--c-weekly) 69%, var(--text));
  --wall-top: #454c7d;
  --wall-bot: #2a2f55;
  --wall-edge: rgba(20, 22, 50, .35);
  --floor-dot: rgba(20, 22, 60, .1);
  --board-1: rgba(255, 255, 255, .85);
  --board-2: rgba(236, 233, 245, .9);
  --socket-in: rgba(30, 30, 70, .14);
  --bm-face: #0b0d16;
  --bm-cyan: #008fb8;
  --bm-mag: #d1005a;
  --grille: rgba(40, 60, 120, .04);
  --bd-ground: #cfe2cf;
  --extrude: #171033;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.005em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
html { overflow-x: clip; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
svg { display: block; }
a { color: inherit; }
:focus-visible { outline: 2.5px solid var(--c-journey); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.home-hero { position: relative; display: grid; gap: clamp(14px, 2.4vh, 26px); }
.home-hero > :not(.bd-scene) { position: relative; z-index: 1; min-width: 0; }
.bd-scene {
  position: absolute; z-index: 0; pointer-events: none; overflow: hidden;
  left: 50%; width: 100vw; transform: translateX(-50%);
  top: calc(-1 * clamp(10px, 2vh, 26px) - 12px); bottom: 0;
}
.bd-scene .bd { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bd-s1 { fill: #130a35; } .bd-s2 { fill: #3b1055; } .bd-s3 { fill: #8a1a53; } .bd-s4 { fill: #d4354e; }
.bd-star { fill: #fff; }
.bd-sun1 { fill: #ffe066; } .bd-sun2 { fill: #ff8a3d; } .bd-sun3 { fill: #ff2d78; }
.bd-slot { fill: #4a1046; }
.bd-mtn1 { fill: #3a1550; } .bd-mtn2 { fill: #190a2e; }
.bd-gnd { fill: #190a2e; }
.bd-out { fill: var(--bd-ground); }
.bd-day { display: none; }
[data-theme="light"] .bd-day { display: block; }
[data-theme="light"] .bd-star, [data-theme="light"] .bd-sunwrap { display: none; }
[data-theme="light"] .bd-s1 { fill: #4ea8e0; } [data-theme="light"] .bd-s2 { fill: #74c2ee; }
[data-theme="light"] .bd-s3 { fill: #a6dcf7; } [data-theme="light"] .bd-s4 { fill: #d8f0fb; }
[data-theme="light"] .bd-cl1 { fill: #fff; } [data-theme="light"] .bd-cl2 { fill: #b9ddf4; }
[data-theme="light"] .bd-dhalo { fill: #ffb627; } [data-theme="light"] .bd-dsun { fill: #ffd93d; }
[data-theme="light"] .bd-dcore { fill: #fff6c2; }
[data-theme="light"] .bd-mtn1 { fill: #8fc79c; } [data-theme="light"] .bd-mtn2 { fill: #4fa36a; }
[data-theme="light"] .bd-gnd { fill: #4fa36a; }
@media (max-width: 1239px) { .bd-sunwrap, .bd-daysun { display: none; } }
body {
  background-color: var(--bd-ground);
  background-image:
    repeating-linear-gradient(180deg, var(--grille) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, var(--grille) 0 1px, transparent 1px 3px);
}
.seo, .foot { position: relative; background: var(--bd-ground); }
.top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  max-width: none; margin: 0 auto; padding: 10px clamp(8px, 3vw, 56px) 4px;
}
.top-side { display: flex; gap: 4px; }
.top-side.right { justify-content: flex-end; }
.icon-btn {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: transparent; border: 0; border-radius: 15px; color: var(--text-2);
  transition: background var(--dur-1), color var(--dur-1), transform var(--dur-1) var(--ease-out);
}
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn:active { transform: scale(.92); }
.brand { display: flex; align-items: center; text-decoration: none; }
.bigmark {
  --bm-ab: .5px;
  --bm-bob: 5px;
  position: relative; display: flex; align-items: flex-end;
  width: min(70vw, 780px, 40dvh); max-width: 100%;
  margin: clamp(10px, 1.6vh, 22px) auto clamp(12px, 2vh, 28px);
}
.bm-cell { width: 20%; height: auto; aspect-ratio: 11 / 14; overflow: visible; }
.bm-f { fill: var(--bm-face); }
.bm-c { fill: var(--bm-cyan); transform: translate(calc(var(--bm-ab) * -1), calc(var(--bm-ab) * -.4)); }
.bm-m { fill: var(--bm-mag); transform: translate(var(--bm-ab), calc(var(--bm-ab) * .4)); }
@keyframes bmBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 calc(var(--bm-bob) * -1); } }
.bigmark .bm-cell { animation: bmBob 3s ease-in-out infinite; }
.bigmark .bm-cell:nth-child(2) { animation-delay: -.25s; }
.bigmark .bm-cell:nth-child(3) { animation-delay: -.5s; }
.bigmark .bm-cell:nth-child(4) { animation-delay: -.75s; }
.bigmark .bm-cell:nth-child(5) { animation-duration: 3.6s; animation-delay: -1.2s; }
.bigmark-sm { --bm-ab: .28px; width: clamp(82px, 21vw, 110px); max-width: none; margin: 0; }
.bigmark-sm .bm-cell { animation: none; }
.game { max-width: 560px; margin: 0 auto; --gx: 16px; padding: 0 var(--gx); display: flex; flex-direction: column; align-items: center; }
.meta-row {
  position: relative; align-self: stretch; display: flex; justify-content: center; overflow: hidden;
  margin: 0 calc(-1 * var(--gx)) 8px; padding: 4px 0; border-radius: 18px;
}
.meta-row .pill { position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 14px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
  font-size: 15px; font-weight: 500; color: var(--text-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.meta-row .pill {
  border-color: var(--mc-fg); background: color-mix(in oklab, var(--mc) 12%, var(--bg));
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.pill #day-label { color: var(--text); font-weight: 700; }
.diff { display: inline-flex; gap: 3px; }
.diff i { width: 7px; height: 7px; border-radius: 50%; background: var(--border-2); }
.diff i.on { background: var(--accent); box-shadow: 0 0 6px color-mix(in oklab, var(--accent) 70%, transparent); }
.diff-label { font-size: 14px; }
.hud { display: grid; grid-template-columns: repeat(4, 1fr); width: var(--board-size); padding-bottom: 6px; margin-bottom: 4px; border-bottom: 2px solid var(--text-3); }
.hud-cell { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.hud-label { font-family: var(--display); font-size: var(--fs-1); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.hud-val { font-family: var(--display); font-size: 27px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; letter-spacing: 0; }
.hud-val.bump { animation: bump var(--dur-3) var(--ease-spring); }
.hud-val.over { color: var(--over); }
@keyframes bump { 40% { transform: scale(1.22); } }
.progress { display: flex; gap: 6px; height: 27px; align-items: center; }
.progress i { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--c); opacity: .55; transition: all var(--dur-2) var(--ease-spring); }
.progress i.on { background: var(--c); opacity: 1; box-shadow: 0 0 10px var(--c); transform: scale(1.12); }
.lives {
  --heart: polygon(14.29% 0, 42.86% 0, 42.86% 16.67%, 57.14% 16.67%, 57.14% 0, 85.71% 0, 85.71% 16.67%, 100% 16.67%, 100% 50%, 85.71% 50%, 85.71% 66.67%, 71.43% 66.67%, 71.43% 83.33%, 57.14% 83.33%, 57.14% 100%, 42.86% 100%, 42.86% 83.33%, 28.57% 83.33%, 28.57% 66.67%, 14.29% 66.67%, 14.29% 50%, 0 50%, 0 16.67%, 14.29% 16.67%);
  display: flex; justify-content: center; gap: 4px; height: 1lh; align-items: center;
  filter: drop-shadow(1px 1px 0 color-mix(in oklab, var(--heart-c) 40%, #000));
}
.lives i { width: 14px; height: 12px; background: var(--heart-c); clip-path: var(--heart); }
.lives i.gone { background: color-mix(in oklab, var(--text-3) 70%, transparent); }
.lives i.break { animation: lifeBreak .48s steps(4, end); }
@keyframes lifeBreak { 0% { background: var(--danger-fg); translate: 0 0; } 25% { translate: -2px -2px; } 50% { background: var(--danger-fg); translate: 2px 0; } 75% { translate: 0 2px; } }
.lives.big { gap: 10px; height: auto; margin: 4px 0 14px; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .45)); }
.lives.big i { width: 28px; height: 24px; }
#btn-hint { position: relative; }
.ctl-n {
  position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 4px; display: grid; place-items: center;
  font-family: var(--display); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1;
  background: var(--mc); color: var(--ink); border-radius: 4px;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 22%, transparent), 2px 2px 0 0 color-mix(in oklab, var(--mc) 45%, #000);
}
#btn-hint:disabled .ctl-n { background: none; color: var(--text-3); box-shadow: inset 0 0 0 1.5px var(--border-2); }
dialog.out { text-align: center; }
dialog.out h2 { font-family: var(--display); text-transform: uppercase; letter-spacing: .02em; font-size: var(--fs-5); text-shadow: 3px 3px 0 var(--mc); margin-bottom: 6px; }
dialog.out .ghost { margin: 10px 0 0; }
@media (prefers-reduced-motion: reduce) { .lives i.break { animation: none; } }
.stage { perspective: 1100px; touch-action: none; user-select: none; -webkit-user-select: none; padding: 6px; }
.board-wrap {
  position: relative; width: var(--board-size); aspect-ratio: 1;
  transform-style: preserve-3d; transition: transform .34s var(--ease-spring);
}
.board-wrap.t0 { transform: rotateX(7deg); transition-duration: .14s; transition-timing-function: var(--ease-out); }
.board-wrap.t2 { transform: rotateX(-7deg); transition-duration: .14s; transition-timing-function: var(--ease-out); }
.board-wrap.t1 { transform: rotateY(7deg); transition-duration: .14s; transition-timing-function: var(--ease-out); }
.board-wrap.t3 { transform: rotateY(-7deg); transition-duration: .14s; transition-timing-function: var(--ease-out); }
.board-wrap.shake { animation: shake .32s var(--ease-out); }
@keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.board-wrap.won { animation: wonPulse 1.1s var(--ease-out); }
@keyframes wonPulse { 30% { transform: scale(1.025); } }
.board {
  --n: 6;
  position: relative; width: 100%; height: 100%; padding: 3.2%;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, .07), transparent 55%),
    linear-gradient(160deg, var(--board-1), var(--board-2));
  border: 1px solid var(--border-2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .12) inset,
    0 -14px 30px -18px rgba(0, 0, 0, .5) inset,
    0 30px 60px -24px rgba(0, 0, 0, .65),
    0 0 0 1px rgba(0, 0, 0, .25);
  outline: none;
}
[data-theme="light"] .board { box-shadow: 0 1px 0 #fff inset, 0 24px 50px -24px rgba(40, 40, 90, .35), 0 0 0 1px rgba(255, 255, 255, .6); }
.board:focus-visible { box-shadow: 0 0 0 3px var(--c-journey), 0 30px 60px -24px rgba(0, 0, 0, .65); }
.grid { position: relative; width: 100%; height: 100%; display: grid; grid-template-columns: repeat(var(--w, var(--n)), 1fr); grid-template-rows: repeat(var(--h, var(--n)), 1fr); }
.cell { position: relative; }
.cell::before { content: ''; position: absolute; left: 50%; top: 50%; width: 3px; height: 3px; margin: -1.5px; border-radius: 50%; background: var(--floor-dot); }
.cell.wall::before {
  display: block; left: 12%; top: 12%; width: 83%; height: 83%; margin: 0;
  border-radius: 14%; background: var(--wall-edge);
}
.cell.wall::after {
  content: ''; position: absolute; left: 5%; top: 5%; width: 83%; height: 83%; border-radius: 14%;
  background: var(--wall-top); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .14);
}
.cell.anchor::before { display: none; }
.cell.anchor::after {
  content: ''; position: absolute; inset: 30%; transform: rotate(45deg); border-radius: 22%;
  border: 2px solid var(--text-3); background: color-mix(in oklab, var(--text-3) 18%, transparent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--text-3) 10%, transparent);
}
.socket { position: absolute; inset: 15%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 60%, var(--socket-in), transparent 72%);
  border: 2px solid color-mix(in oklab, var(--c) 75%, transparent);
  box-shadow: 0 0 14px -2px color-mix(in oklab, var(--c) 55%, transparent), inset 0 3px 8px rgba(0, 0, 0, .45);
  color: color-mix(in oklab, var(--c) 85%, transparent);
}
.socket svg { width: 42%; height: 42%; opacity: .9; }
.socket.filled { border-color: var(--c); }
.orbs { position: absolute; inset: 3.2%; pointer-events: none; }
.orb {
  position: absolute; left: 0; top: 0; width: calc(100% / var(--w, var(--n))); height: calc(100% / var(--h, var(--n)));
  transition-property: transform; transition-timing-function: cubic-bezier(.45, .05, .8, .5);
  will-change: transform;
}
.orb .shadow { position: absolute; left: 22%; right: 22%; bottom: 10%; height: 14%; border-radius: 50%; background: rgba(0, 0, 0, .45); filter: blur(4px); }
.ball {
  position: absolute; inset: 14%; border-radius: 50%; display: grid; place-items: center;
  background:
    radial-gradient(circle at 33% 27%, rgba(255, 255, 255, .95) 0 5%, rgba(255, 255, 255, .0) 22%),
    radial-gradient(circle at 40% 35%, color-mix(in oklab, var(--c) 55%, white) 0%, var(--c) 45%, color-mix(in oklab, var(--c) 55%, black) 100%);
  box-shadow: inset -3px -5px 10px rgba(0, 0, 0, .3), inset 2px 3px 6px rgba(255, 255, 255, .25), 0 0 22px -4px color-mix(in oklab, var(--c) 80%, transparent);
  color: var(--c-ink, rgba(0, 0, 0, .72));
}
.ball svg { width: 40%; height: 40%; opacity: 0; transition: opacity .2s; }
.glyphs .ball svg { opacity: 1; }
.socket svg { opacity: 0; }
.glyphs .socket svg { opacity: .9; }
.ball.impact-x { animation: squashX .26s var(--ease-out); }
.ball.impact-y { animation: squashY .26s var(--ease-out); }
@keyframes squashX { 30% { transform: scale(.82, 1.12); } 65% { transform: scale(1.04, .97); } }
@keyframes squashY { 30% { transform: scale(1.12, .82); } 65% { transform: scale(.97, 1.04); } }
.orb.locked .ball { box-shadow: inset -3px -5px 10px rgba(0, 0, 0, .3), inset 2px 3px 6px rgba(255, 255, 255, .25), 0 0 0 3px var(--bg-2), 0 0 0 5px var(--c), 0 0 26px var(--c); }
.orb.locked .ball svg { opacity: 1; color: rgba(255, 255, 255, .9); }
.orb.locked::after { content: ''; position: absolute; inset: 8%; border-radius: 50%; border: 2px solid var(--c); animation: ring .7s var(--ease-out) forwards; }
@keyframes ring { from { transform: scale(.7); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.orb.pop .ball { animation: pop .45s var(--ease-spring); }
@keyframes pop { 40% { transform: scale(1.18); } }
.fx { position: absolute; inset: -20%; width: 140%; height: 140%; pointer-events: none; }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }
.hint-arrow { position: absolute; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); opacity: 0; pointer-events: none; box-shadow: 0 10px 30px -6px color-mix(in oklab, var(--accent) 70%, transparent); transition: opacity .2s; left: calc(50% - 28px); top: calc(50% - 28px); }
.hint-arrow svg { width: 30px; height: 30px; }
.hint-arrow.show { opacity: 1; animation: nudge 1s var(--ease-out) infinite; }
@keyframes nudge { 50% { translate: var(--hx, 0) var(--hy, 0); } }
.swipe-hint { margin: 10px 0 6px; font-size: 15px; color: var(--text-2); text-align: center; }
.controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: var(--board-size); margin-top: 4px; }
.ctl {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 70px; height: 62px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface);
  font-size: 13px; font-weight: 700; color: var(--text-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform var(--dur-1) var(--ease-out), background var(--dur-1), color var(--dur-1), border-color var(--dur-1);
}
.ctl svg { width: 22px; height: 22px; }
.ctl:hover { background: var(--surface-2); color: var(--text); }
.ctl:active { transform: scale(.94); }
.ctl:disabled { color: var(--text-3); background: none; border-color: var(--border-2); cursor: default; transform: none; }
.ctl.attn, #btn-restart.attn { border-color: var(--accent); animation: attn 1.2s ease-in-out 3; }
#hero-daily.attn { border-radius: 14px; animation: attn 1.2s ease-in-out 3; }
@keyframes attn { 50% { box-shadow: 0 0 0 6px color-mix(in oklab, var(--accent) 22%, transparent); } }
.dpad { display: grid; grid-template-columns: repeat(4, 48px); gap: 6px; }
.dbtn { height: 48px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; color: var(--text-2); transition: transform var(--dur-1) var(--ease-out), background var(--dur-1), color var(--dur-1); }
.dbtn svg { width: 20px; height: 20px; }
.dbtn:hover { background: var(--surface-2); color: var(--text); }
.dbtn:active, .dbtn.press { transform: scale(.9); background: var(--surface-2); color: var(--text); }
.dbtn.hinted { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.secondary-row { display: flex; gap: 18px; margin: 12px 0 8px; }
.link-btn { display: inline-flex; align-items: center; gap: 7px; background: none; border: 0; color: var(--text-2); font-size: 15px; font-weight: 600; padding: 10px 8px; border-radius: 10px; }
.link-btn svg { width: 17px; height: 17px; }
.link-btn:hover { color: var(--text); }
#btn-restart { border: 1.5px solid var(--border-2); padding: 8px 14px; transition: border-color var(--dur-1), color var(--dur-1); }
#btn-restart:hover { border-color: var(--text-3); }
@media (max-width: 380px) {
  .dpad { grid-template-columns: repeat(4, 42px); gap: 4px; }
  .dbtn { height: 44px; }
  .ctl { min-width: 60px; }
}
.ad-slot { max-width: 728px; min-height: 100px; margin: 28px auto 0; padding: 0 16px; display: flex; justify-content: center; }
.home-ad { width: 100%; min-height: 100px; margin: clamp(18px, 3vh, 32px) auto 0; }
.home-ad, .ad-rail {
  border: 1px dashed var(--border-2); border-radius: 14px;
  align-items: center; justify-content: center; color: var(--text-3);
  font-size: var(--fs-1); letter-spacing: .14em; text-transform: uppercase;
}
.home-ad:empty::after, .ad-rail:empty::after { content: 'Advertisement'; }
.home-ad:not(:empty), .ad-rail:not(:empty) { border-color: transparent; }
@media (min-width: 720px) { .home-ad { min-height: 280px; } }
.seo { max-width: 640px; margin: 48px auto 0; padding: 0 20px; color: var(--text-2); }
.seo h1 { font-family: var(--display); font-size: var(--fs-5); font-weight: 700; letter-spacing: -.01em; line-height: 1.18; color: var(--text); margin: 0 0 12px; }
.seo h2 { font-family: var(--display); font-size: var(--fs-4); font-weight: 700; letter-spacing: -.005em; color: var(--text); margin: 30px 0 8px; }
.seo p { margin: 0 0 10px; }
.seo h1 + h2 { margin-top: 16px; }
.seo .about-lead { color: var(--text); }
.seo details { border-top: 1px solid var(--border); padding: 12px 0; }
.seo summary { cursor: pointer; color: var(--text); font-weight: 600; }
.seo details p { margin: 8px 0 0; }
.foot { max-width: 640px; margin: 40px auto 0; padding: 20px 20px 40px; text-align: center; color: var(--text-3); font-size: 15px; }
.studio { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0 0 6px; color: var(--text-2); font-weight: 500; }
.studio svg { flex: none; }
.contact-line { margin: 0 0 6px; color: var(--text-2); }
.contact-line a { color: var(--text); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 2px; }
.langs { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin-bottom: 8px; }
.langs a { color: var(--text-2); text-decoration: none; }
.langs a:hover { color: var(--text); text-decoration: underline; }
.embed-cta { display: none; }
.toast {
  position: fixed; left: 50%; top: calc(14px + env(safe-area-inset-top)); z-index: 80;
  transform: translate(-50%, -140%); opacity: 0; visibility: hidden;
  padding: 13px 20px; border-radius: 15px; max-width: calc(100vw - 32px);
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 16px; text-align: center;
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5);
  transition: transform var(--dur-3) var(--ease-spring), opacity var(--dur-2) var(--ease-out), visibility var(--dur-3);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
dialog.sheet {
  width: min(440px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow: auto;
  border: 1px solid var(--border-2); border-radius: 28px; padding: 28px 24px 24px;
  background: color-mix(in oklab, var(--surface-solid) 94%, transparent); color: var(--text);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .7);
}
dialog.sheet[open] { animation: sheetIn var(--dur-3) var(--ease-spring); }
dialog.sheet.tall { width: min(560px, calc(100vw - 24px)); }
dialog::backdrop { background: rgba(4, 6, 16, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
[data-theme="light"] dialog::backdrop { background: rgba(30, 30, 60, .35); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
dialog h2 { font-family: var(--display); margin: 0 0 18px; font-size: var(--fs-5); font-weight: 700; text-align: center; text-transform: uppercase; letter-spacing: -.005em; line-height: 1.12; }
dialog h3 { font-family: var(--display); margin: 26px 0 12px; font-size: var(--fs-1); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); text-align: left; }
.close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 14px; display: grid; place-items: center; color: var(--text-3); }
.close svg { width: 20px; height: 20px; }
.close:hover { background: var(--surface-2); color: var(--text); }
dialog.sheet.menu {
  margin: auto auto 0; width: min(440px, 100vw); max-width: none;
  border-radius: 24px 24px 0 0; border-bottom: 0; padding: 22px 16px max(18px, env(safe-area-inset-bottom));
}
dialog.sheet.menu[open] { animation: menuUp var(--dur-3) var(--ease-out); }
@keyframes menuUp { from { transform: translateY(100%); } }
.menu-list { display: grid; gap: 2px; }
.menu-sep { border: 0; height: 1px; margin: 5px 12px; background: var(--border); }
.menu-list > * {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px;
  border: 0; border-radius: 14px; background: none; color: var(--text);
  font: inherit; font-weight: 600; text-align: left; text-decoration: none;
  transition: background var(--dur-1), color var(--dur-1);
}
.menu-list svg { flex: none; width: 22px; height: 22px; color: var(--text-3); }
.menu-list > :is(button, a):hover, .menu-list > :is(button, a):focus-visible { background: color-mix(in oklab, var(--accent) 14%, var(--surface-solid)); box-shadow: inset 3px 0 0 var(--accent); }
.menu-list > :is(button, a):hover svg, .menu-list > :is(button, a):focus-visible svg { color: var(--text); }
.menu-sep { pointer-events: none; }
@media (min-width: 720px) {
  dialog.sheet.menu {
    margin: 0; position: fixed; inset: var(--menu-y, 64px) auto auto var(--menu-x, 24px);
    width: 268px; border-radius: 12px; border: 1.5px solid var(--border-2); padding: 8px;
    background: var(--surface-solid); backdrop-filter: none; -webkit-backdrop-filter: none;
    box-shadow: 6px 6px 0 0 color-mix(in oklab, var(--surface-solid) 70%, var(--text));
  }
  dialog.sheet.menu .menu-list > * { padding: 10px 12px; border-radius: 8px; }
  dialog.sheet.menu[open] { animation: menuDrop var(--dur-2) var(--ease-out); }
  @keyframes menuDrop { from { opacity: 0; transform: translateY(-8px); } }
  dialog.sheet.menu::backdrop { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  dialog.sheet.menu h2, dialog.sheet.menu .close { display: none; }
}
.cta {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 58px; margin-top: 18px;
  border: 0; border-radius: 17px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; text-decoration: none;
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 88%, white), var(--accent)); color: var(--accent-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 12px 26px -10px color-mix(in oklab, var(--accent) 80%, transparent);
  transition: transform var(--dur-1) var(--ease-out), filter var(--dur-1);
}
.cta svg { width: 20px; height: 20px; }
.cta:hover { filter: brightness(1.05); }
.cta:active { transform: scale(.97); }
.cta.alt { background: var(--surface-2); color: var(--text); box-shadow: none; border: 1px solid var(--border); }
.ghost { display: flex; align-items: center; justify-content: center; gap: 9px; height: 52px; border-radius: 15px; border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 16px; color: var(--text); transition: background var(--dur-1), transform var(--dur-1); }
.ghost svg { width: 19px; height: 19px; color: var(--text-2); }
.ghost:hover { background: var(--surface-2); }
.ghost:active { transform: scale(.97); }
.ghost.wide { width: 100%; margin-bottom: 16px; }
.demo-wrap { width: min(220px, 60vw); aspect-ratio: 1; margin: 0 auto 18px; }
.board.demo { --radius: 18px; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rules li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; color: var(--text-2); font-size: 16px; line-height: 1.45; }
.rule-ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); }
.rule-ico svg { width: 18px; height: 18px; }
.rule-ico.tilt { color: var(--o1-fg); }
.rule-ico.star { color: var(--accent-fg); }
.rule-ico.sock::after { content: ''; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--o0); box-shadow: 0 0 10px -2px var(--o0); }
.rule-ico.anchor::after { content: ''; width: 12px; height: 12px; transform: rotate(45deg); border-radius: 3px; border: 2px solid var(--text-3); }
.marks { display: flex; justify-content: center; gap: 10px; margin: 2px 0 12px; }
.marks i {
  width: 34px; height: 34px; border-radius: 6px; background: none;
  border: 3px solid var(--border-2); box-sizing: border-box;
}
.marks i.on { border-color: transparent; animation: markIn var(--dur-2) var(--ease-spring) both; }
.marks i:nth-child(1).on { background: var(--o0-fg); box-shadow: 4px 4px 0 0 color-mix(in oklab, var(--o0-fg) 45%, #000); }
.marks i:nth-child(2).on { background: var(--o1-fg); box-shadow: 4px 4px 0 0 color-mix(in oklab, var(--o1-fg) 45%, #000); }
.marks i:nth-child(3).on { background: var(--o3-fg); box-shadow: 4px 4px 0 0 color-mix(in oklab, var(--o3-fg) 45%, #000); }
@keyframes markIn { 0% { transform: scale(1.9); opacity: 0; } 60% { transform: scale(.88); opacity: 1; } }
.win h2 { margin-bottom: 4px; }
.win-sub { text-align: center; color: var(--text-2); font-size: 16px; margin: 0 0 14px; }
.score { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.rank {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  width: 74px; border-radius: 15px;
  background: color-mix(in oklab, var(--mc) 14%, var(--surface));
  border: 1px solid var(--mc-fg);
}
.rank b { font-family: var(--display); font-size: 40px; font-weight: 700; line-height: 1; color: var(--text); }
.rank .lbl { color: var(--text-2); }
.score-rows { display: grid; gap: 5px; }
.srow {
  display: flex; align-items: baseline; gap: 6px; padding: 6px 11px;
  border-radius: 12px; background: var(--surface); border: 1px solid var(--border);
}
.srow .num { margin-left: auto; font-family: var(--display); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.big { font-size: 27px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; letter-spacing: -.02em; }
.lbl { font-size: 11px; color: var(--text-3); text-transform: lowercase; letter-spacing: .04em; font-weight: 700; text-align: center; line-height: 1.25; }
.share-preview { margin: 16px 0 0; padding: 14px; border-radius: 15px; background: var(--surface); border: 1px dashed var(--border-2); font-size: 16px; line-height: 1.45; white-space: pre-wrap; text-align: center; color: var(--text-2); }
.more { margin-top: 10px; }
.more > summary {
  list-style: none; cursor: pointer; text-align: center; padding: 10px;
  font-size: 15px; font-weight: 600; color: var(--text-2);
  border-radius: 13px; border: 1px solid var(--border);
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: ''; display: inline-block; width: 7px; height: 7px; margin: 0 0 2px 8px; border: 2px solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.more[open] > summary::after { transform: rotate(-135deg); margin-bottom: -2px; }
.more > summary:hover, .more > summary:focus-visible { color: var(--text); border-color: var(--border-2); }
.more[open] > summary { margin-bottom: 10px; }
.more > .ghost + .ghost { margin-top: 8px; }
.countdown { text-align: center; color: var(--text-3); margin: 18px 0 0; font-size: 15px; }
.countdown strong { color: var(--text); font-variant-numeric: tabular-nums; font-size: 18px; margin-left: 4px; }
.countdown .tomorrow { display: block; color: var(--text); font-weight: 600; font-size: 16px; margin-bottom: 2px; }
#win-next { margin-top: 14px; }
.install { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--text); font-weight: 600; text-decoration: underline; padding: 8px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat-grid > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; text-align: center; }
.dist { display: grid; gap: 8px; }
.dist-row { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); font-weight: 600; }
.dist-bar { height: 30px; border-radius: 9px; background: var(--surface-2); min-width: 34px; display: flex; align-items: center; justify-content: flex-end; padding: 0 10px; font-size: 14px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; transition: width .6s var(--ease-out); }
.dist-bar.hi { background: linear-gradient(90deg, var(--c-rush), var(--accent)); color: var(--accent-ink); }
.empty { text-align: center; color: var(--text-3); margin: 8px 0; }
.setting { display: flex; justify-content: space-between; align-items: center; min-height: 60px; border-bottom: 1px solid var(--border); gap: 12px; }
.setting:last-of-type { border-bottom: 0; }
.setting label { font-weight: 500; font-size: 16px; }
.setting select { background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 9px 11px; min-height: 42px; min-width: 132px; font-size: 15px; }
.switch { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 999px; background: var(--border-2); position: relative; cursor: pointer; transition: background var(--dur-1); margin: 0; flex: none; }
.switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform var(--dur-2) var(--ease-spring); }
.switch:checked { background: var(--o3); }
.switch:checked::after { transform: translateX(20px); }
.arch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.arch {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--text-2);
  transition: background var(--dur-1), transform var(--dur-1);
}
.arch:hover { background: var(--surface-2); }
.arch:active { transform: scale(.96); }
.arch b { font-size: 19px; color: var(--text); font-variant-numeric: tabular-nums; }
.arch .st { display: flex; gap: 1px; height: 15px; }
.arch .st svg { width: 14px; height: 14px; color: var(--border-2); }
.arch .st svg.on { color: var(--accent-fg); }
.arch.today { border-color: var(--c-endless); box-shadow: 0 0 0 1px var(--c-endless); }
.embed .seo, .embed .foot, .embed .ad-slot, .embed #btn-archive { display: none !important; }
.embed .embed-cta { display: block; text-align: center; margin: 4px auto 16px; color: var(--text-2); font-weight: 600; font-size: 14px; }
@media (prefers-reduced-motion: reduce) {
  .board-wrap.t0, .board-wrap.t1, .board-wrap.t2, .board-wrap.t3 { transform: none; }
  .board-wrap.shake, .board-wrap.won { animation: none; }
  .hint-arrow.show, .g-live i, .marks i.on { animation: none; }
}
.lite .orb .shadow { filter: none; }
.lite .ball { box-shadow: inset -3px -5px 10px rgba(0, 0, 0, .3), inset 2px 3px 6px rgba(255, 255, 255, .25); }
.lite .orb.locked .ball { box-shadow: inset -3px -5px 8px rgba(0, 0, 0, .3), 0 0 0 3px var(--bg-2), 0 0 0 5px var(--c); }
.swipe-hint { transition: color var(--dur-1), background var(--dur-1); border-radius: 12px; padding: 6px 12px; max-width: var(--board-size); }
.swipe-hint.active { color: var(--text); background: var(--surface-2); border: 1px solid var(--border); font-size: 16px; font-weight: 600; animation: coachIn var(--dur-3) var(--ease-spring); }
@keyframes coachIn { from { transform: translateY(6px); opacity: 0; } }
body.tutorial-led #btn-hint, body.tutorial-led .hud-cell:nth-child(2) { visibility: hidden; }
.diff i.on.x { background: var(--danger); box-shadow: 0 0 6px color-mix(in oklab, var(--danger) 70%, transparent); }
.pill.expert .diff-label { color: var(--danger-fg); font-weight: 700; }
.expert-cta { margin-top: 10px; border-color: color-mix(in oklab, var(--danger) 45%, transparent) !important; }
.expert-cta svg { color: var(--danger-fg); }
.shields { display: inline-flex; gap: 2px; align-items: center; margin-top: 2px; }
.shields svg { width: 13px; height: 13px; color: var(--border-2); }
.shields svg.on { color: var(--o1-fg); filter: drop-shadow(0 0 4px color-mix(in oklab, var(--o1) 60%, transparent)); }
.stat-shields { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin: 16px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.45; }
.stat-shields svg { flex: none; width: 19px; height: 19px; margin-top: 1px; }
.stat-shields span { margin-left: 6px; }
.win-note { text-align: center; margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; font-weight: 600; color: var(--text); background: color-mix(in oklab, var(--accent) 12%, transparent); border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent); }
.global { margin-top: 16px; padding: 14px 14px 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.g-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--text-2); font-weight: 600; }
.g-live, .g-cap { display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: 11px; color: var(--text-2); }
.g-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--o3-fg); box-shadow: 0 0 0 0 var(--o3-fg); animation: livePulse 1.6s ease-out infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 7px transparent; } }
.g-beat { margin: 6px 0 10px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; text-align: center; }
.g-bars { display: flex; align-items: flex-end; gap: 6px; height: 138px; padding-top: 12px; }
.g-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; }
.g-n, .g-m, .g-bar { flex-shrink: 0; }
.g-n { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; min-height: 14px; }
.g-bar { width: 100%; border-radius: 6px 6px 3px 3px; background: var(--surface-2); border: 1px solid var(--border); transition: height .6s var(--ease-out); }
.g-col.me .g-bar { background: linear-gradient(180deg, var(--mc), color-mix(in oklab, var(--mc) 55%, var(--accent))); border-color: transparent; box-shadow: 0 6px 18px -6px color-mix(in oklab, var(--mc) 70%, transparent); }
.g-col.me .g-n { color: var(--text); font-weight: 700; }
.g-m { font-size: 12px; color: var(--text-2); font-weight: 600; display: flex; flex-direction: column; align-items: center; line-height: 1.2; min-height: 30px; }
.g-m b { font-size: 10px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.g-foot { margin: 6px 0 0; text-align: center; font-size: 13px; color: var(--text-3); }
.arch { position: relative; }
.xbadge { position: absolute; top: 6px; right: 7px; font-size: 10px; font-weight: 800; color: var(--danger-fg); }
.controls { gap: 10px; }
.dpad { flex: 1 1 auto; min-width: 0; max-width: 270px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ctl { flex: none; }
.game { padding-bottom: 12px; }
@media (max-width: 599px) {
  :root { --board-size: min(calc(100vw - 28px), 468px, max(272px, calc(100dvh - 342px))); }
  .top { padding: 8px 8px 2px; }
  .game { --gx: 14px; }
  .meta-row { margin-bottom: 4px; border-radius: 0; }
  .hud { padding-bottom: 4px; margin-bottom: 2px; }
  .stage { padding: 4px; }
  .dbtn { height: 52px; border-radius: 16px; }
  .ctl { min-width: 64px; height: 64px; }
  .seo { margin-top: 28px; padding: 0 18px; }
  .seo h1 { font-size: 22px; }
}
@media (min-width: 600px) and (max-width: 899px) {
  :root { --board-size: min(calc(100vw - 96px), 540px, max(320px, calc(100dvh - 342px))); }
  .top, .game { max-width: 640px; }
  .hud-val { font-size: 25px; }
  .dbtn { height: 54px; }
  .ctl { height: 68px; min-width: 78px; }
}
@media (min-width: 900px) and (min-height: 600px) {
  :root { --board-size: min(560px, max(340px, calc(100dvh - 462px))); }
  .top { max-width: 800px; padding: 18px 24px 8px; }
  .icon-btn { width: 48px; height: 48px; border-radius: 16px; }
  .game { max-width: 760px; padding-bottom: 20px; }
  .hud-val { font-size: 28px; }
  .dbtn { height: 54px; }
  .ctl { height: 68px; min-width: 88px; }
  .seo { margin-top: 56px; max-width: 720px; }
  .foot { max-width: 720px; }
}
@media (min-width: 1100px) and (min-height: 620px) {
  :root { --board-size: min(640px, max(380px, calc(100dvh - 200px))); }
  .top { max-width: 1060px; padding: 22px 28px 10px; }
  .icon-btn { width: 50px; height: 50px; }
  .icon-btn svg { width: 24px; height: 24px; }
  .game {
    max-width: 1060px; margin: 4px auto 0; --gx: 36px; padding: 26px var(--gx) 30px;
    display: grid; grid-template-columns: var(--board-size) minmax(280px, 330px);
    grid-template-rows: auto auto auto auto 1fr; column-gap: 44px; row-gap: 14px;
    justify-content: center; align-items: start; justify-items: stretch;
  }
  .meta-row { grid-column: 1 / -1; grid-row: 1; justify-self: stretch; margin: 0; }
  .pill { font-size: 15px; padding: 8px 18px; }
  .stage { grid-column: 1; grid-row: 2 / 7; padding: 0; justify-self: center; }
  .hud { grid-column: 2; grid-row: 2; width: 100%; margin: 0; }
  .controls { grid-column: 2; grid-row: 3; width: 100%; margin: 6px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .dpad { grid-column: 1 / -1; order: -1; max-width: none; gap: 10px; grid-template-columns: repeat(4, 1fr); }
  .dbtn { height: 64px; border-radius: 18px; }
  .dbtn svg { width: 24px; height: 24px; }
  .ctl { flex-direction: row; gap: 10px; min-width: 0; height: 60px; font-size: 15px; border-radius: 18px; }
  .ctl svg { width: 22px; height: 22px; }
  .secondary-row { grid-column: 2; grid-row: 4; align-self: start; justify-content: flex-start; margin: 0; }
  .swipe-hint { grid-column: 2; grid-row: 5; margin: 6px 0 0; text-align: left; font-size: 14px; max-width: none; }
  .seo { margin-top: 64px; max-width: 760px; }
  .foot { max-width: 760px; }
}
@media (min-width: 1100px) and (min-height: 620px) and (max-width: 1239px) {
  :root { --board-size: min(560px, max(380px, calc(100dvh - 200px))); }
  .game { column-gap: 32px; --gx: 28px; padding-left: var(--gx); padding-right: var(--gx); }
}
@media (max-height: 520px) and (orientation: landscape) {
  :root { --board-size: min(calc(100dvh - 130px), 360px); }
  .meta-row { display: none; }
  .swipe-hint { display: none; }
}
.board.shaped { background: none; border-color: transparent; box-shadow: none; }
.board.shaped .cell:not(.void) { background: linear-gradient(160deg, var(--board-1), var(--board-2)); box-shadow: 0 0 0 .5px var(--border-2); }
.cell.void::before { display: none; }
.cell.oneway::before { display: none; }
.cell.oneway svg { position: absolute; inset: 22%; width: 56%; height: 56%; color: var(--text-3); opacity: .75; }
.cell.oneway svg.d1 { transform: rotate(90deg); } .cell.oneway svg.d2 { transform: rotate(180deg); } .cell.oneway svg.d3 { transform: rotate(270deg); }
.cell.portal::before { display: none; }
.cell.portal::after { content: ''; position: absolute; inset: 16%; border-radius: 50%; border: 3px dotted var(--pc); box-shadow: 0 0 12px -2px var(--pc), inset 0 0 10px -3px var(--pc); animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cell.gate::before { display: none; }
.cell.gate { background: color-mix(in oklab, var(--c) 20%, transparent); box-shadow: inset 0 0 0 2px color-mix(in oklab, var(--c) 55%, transparent); border-radius: 18%; display: grid; place-items: center; }
.cell.gate svg { width: 34%; height: 34%; color: var(--c); opacity: .7; }
.cell.plate::before { display: none; }
.cell.plate::after { content: ''; position: absolute; inset: 24%; border-radius: 22%; border: 2px solid var(--text-3); background: color-mix(in oklab, var(--text-3) 14%, transparent); box-shadow: inset 0 3px 6px rgba(0, 0, 0, .35); }
.cell.door::before { display: none; }
.cell.door::after { content: ''; position: absolute; inset: 6%; border-radius: 14%; background: repeating-linear-gradient(90deg, var(--wall-top) 0 18%, transparent 18% 30%); box-shadow: inset 0 0 0 2px var(--wall-top); transition: opacity .25s, transform .25s var(--ease-out); }
.cell.door.open::after { opacity: .18; transform: scaleY(.25); }
.cell.plate[data-g="1"]::after, .cell.door[data-g="1"]::after { border-color: #f052c0; box-shadow: inset 0 0 0 2px #f052c0; }
.cell.plate[data-g="2"]::after, .cell.door[data-g="2"]::after { border-color: #00a8c6; box-shadow: inset 0 0 0 2px #00a8c6; }
.cell.crumble::before { display: none; }
.cell.crumble::after { content: ''; position: absolute; inset: 7%; border-radius: 20%; background: linear-gradient(180deg, var(--wall-top), var(--wall-bot)); opacity: .85;
  -webkit-mask: linear-gradient(115deg, #000 0 46%, transparent 46% 50%, #000 50%), linear-gradient(35deg, #000 0 60%, transparent 60% 63%, #000 63%); -webkit-mask-composite: source-in; mask-composite: intersect;
  transition: opacity .3s, transform .3s var(--ease-out); }
.cell.crumble.broken::after { opacity: 0; transform: scale(.6); }
.orb.heavy .ball, .orb.heavy.locked .ball { border-radius: 24%; }
.orb.heavy .shadow { border-radius: 30%; }
@media (prefers-reduced-motion: reduce) { .cell.portal::after { animation: none; } }
.lite .cell.portal::after { animation: none; }
.view-home #ad-below, .boot-home #ad-below { display: none; }
.boot-home #game { display: none; }
.view-play #home, .boot-play #home { display: none; }
.view-map #home, .view-map #game, .view-map #ad-below, .boot-map #home, .boot-map #game, .boot-map #ad-below { display: none; }
.view-home #journey, .view-play #journey, .boot-home #journey, .boot-play #journey { display: none; }
body:not(.view-map):not(.view-home):not(.view-play) #journey { display: none; }
html.boot-map body:not(.view-home):not(.view-play) #journey { display: block; }
.home { position: relative; width: 100%; margin: 0 auto; padding: clamp(10px, 2vh, 26px) clamp(14px, 3vw, 56px) 8px; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(14px, 2.4vh, 26px); }
.ad-rail { display: none; }
@media (min-width: 1280px) {
  .home { grid-template-columns: 160px minmax(0, 1fr) 160px; column-gap: 40px; }
  .home > * { grid-column: 2; }
  .home > .home-hero { grid-column: 1 / -1; }
  .home > .ad-rail { display: flex; grid-column: 1; grid-row: 2 / 7; align-self: start; position: sticky; top: 24px; width: 160px; height: 600px; }
  #ad-right { grid-column: 3; }
}
.home > * { position: relative; z-index: 1; min-width: 0; }
.home-top { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-height: 38px; }
@media (max-width: 460px) {
  .home-top { flex-wrap: nowrap; }
  .hchip { white-space: nowrap; }
  .xpbar { flex: 0 1 auto; min-width: 20px; }
}
.hchip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--surface, rgba(255,255,255,.06)); border: 1px solid var(--border-2); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.hchip svg { width: 18px; height: 18px; }
#home-streak svg { color: var(--c-rush-fg); } #home-shields svg { color: var(--c-journey-fg); }
.continue-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--accent); background: color-mix(in oklab, var(--accent) 14%, transparent); color: var(--text); font-weight: 700; font-size: 15px; }
.continue-chip svg { width: 15px; height: 15px; color: var(--accent-fg); }
body.view-home { --home-chrome: 364px; --board-size: min(calc(100vw - 32px), 468px, max(220px, calc(100dvh - var(--home-chrome)))); }
@media (min-width: 680px) { body.view-home { --home-chrome: 390px; } }
@media (min-width: 1024px) { body.view-home { --home-chrome: calc(336px + 10vw); } }
.daily { display: grid; justify-items: center; gap: clamp(8px, 1.4vh, 16px); }
@media (max-width: 340px) { .daily #hero-title { display: none; } }
@media (max-width: 560px) { .daily .m-hero.solved #hero-title { display: none; } }
.daily .m-hero { border: 0; padding: 0; width: auto; }
.daily-slot { width: 100%; display: grid; justify-items: center; }
.view-home #game .meta-row,
.view-home #game .hud .progress-cell,
.view-home #game .hud-cell:last-child,
.view-home #game .dpad,
.view-home #game .secondary-row,
.view-home #game .swipe-hint { display: none; }
.view-home #game {
  display: flex; flex-direction: column; align-items: center; padding: 0;
  border: 0; border-radius: 0; background: none; box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.view-home #game .hud { grid-template-columns: repeat(2, 1fr); width: auto; gap: 28px; padding-bottom: 4px; margin-bottom: 2px; }
.view-home #game .hud-cell { background: none; border: 0; border-radius: 0; padding: 0; gap: 1px; }
.view-home #game .hud { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
.view-home #game .hud .progress-cell { display: flex; justify-content: center; }
.view-home #game .hud .progress-cell:has(.lives:empty), .view-home #game #progress { display: none; }
.view-home #game .controls { justify-content: center; gap: 12px; width: auto; margin-top: 10px; }
.deck { display: grid; }
.deck .mode { --rule: 2px solid color-mix(in oklab, var(--mc) 80%, var(--bg)); }
.mode {
  --mc: var(--c-journey);
  position: relative; display: grid; gap: 4px; align-content: center;
  width: 100%; text-align: left; padding: clamp(11px, 1.6vh, 20px) 0;
  border: 0; border-bottom: var(--rule); background: none; color: var(--text);
  transition: transform var(--dur-2) var(--ease-out);
}
.m-top { display: flex; align-items: center; gap: 12px; }
.m-word {
  font-family: var(--display);
  font-size: var(--fs-5); font-weight: 700; line-height: .94;
  letter-spacing: -.01em; text-transform: uppercase; text-wrap: balance;
  transition: color var(--dur-2) var(--ease-out), text-shadow var(--dur-2) var(--ease-out);
}
.m-ic, .m-stat {
  background: color-mix(in oklab, var(--mc) 26%, var(--bg)); color: var(--text);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--mc) 75%, transparent);
}
.m-ic { flex: none; display: grid; place-items: center; padding: 3px; border-radius: 6px; }
.m-ic svg { width: clamp(17px, 2.2vw, 23px); height: clamp(17px, 2.2vw, 23px); }
.m-go {
  margin-left: auto; flex: none; display: grid; place-items: center;
  width: clamp(34px, 8vw, 46px); aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid var(--border-2); color: var(--text-3);
  transition: transform var(--dur-2) var(--ease-spring), color var(--dur-1), border-color var(--dur-1), background var(--dur-1);
}
.m-go svg { width: 44%; height: 44%; transform: rotate(90deg); }
.m-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-size: var(--fs-3); color: var(--text-2); line-height: 1.4; }
.m-desc { font-weight: 500; }
.m-stat { font-weight: 700; font-variant-numeric: tabular-nums; padding: 0 6px; border-radius: 5px; }
.mode.locked .m-stat, .mode.locked .m-ic, .mode.soon .m-stat, .mode.soon .m-ic {
  background: none; color: var(--text-3); box-shadow: none; padding: 0;
}
.m-note { color: var(--text-3); font-weight: 500; }
.mode { --mc-shade: color-mix(in oklab, var(--mc) 70%, var(--extrude)); }
.mode:not(.soon):hover .m-word { color: var(--mc); text-shadow: 2px 2px 0 var(--mc-shade); }
.mode:not(.soon):hover .m-go { transform: translateX(5px); color: var(--mc); border-color: var(--mc); background: color-mix(in oklab, var(--mc) 15%, transparent); }
.mode:not(.soon):active { transform: scale(.99); }
#hero-daily   { --mc: var(--c-daily); }
#mode-expert  { --mc: var(--c-expert); }
#mode-rush    { --mc: var(--c-rush); }
#mode-endless { --mc: var(--c-endless); }
#mode-journey { --mc: var(--c-journey); }
#mode-weekly  { --mc: var(--c-weekly); }
body                      { --mc: var(--c-daily);    --mc-fg: var(--c-daily-fg); }
body[data-mode="expert"]  { --mc: var(--c-expert);   --mc-fg: var(--c-expert-fg); }
body[data-mode="rush"]    { --mc: var(--c-rush);     --mc-fg: var(--c-rush-fg); }
body[data-mode="endless"] { --mc: var(--c-endless);  --mc-fg: var(--c-endless-fg); }
body[data-mode="journey"] { --mc: var(--c-journey);  --mc-fg: var(--c-journey-fg); }
body[data-mode="weekly"]  { --mc: var(--c-weekly);   --mc-fg: var(--c-weekly-fg); }
.m-hero { text-align: center; }
.m-hero .m-word { font-size: var(--fs-6); }
.m-hero .m-top, .m-hero .m-sub { justify-content: center; }
.m-hero .m-go { margin-left: 0; }
.mode.locked { --mc: var(--text-3); }
.mode.soon { --mc: var(--text-3); cursor: default; }
.mode.soon .m-word { color: var(--text-2); }
.home-foot { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 2px; padding-top: 6px; }
.home-foot button { display: grid; justify-items: center; gap: 5px; padding: 10px 8px; border: 0; background: none; border-radius: 14px; font-size: 13px; font-weight: 600; color: var(--text-2, inherit); transition: color var(--dur-1), background var(--dur-1); }
.home-foot button:hover { color: var(--text); background: var(--surface-2); }
.home-foot svg { width: 24px; height: 24px; }
.view-home .brand, .boot-home .brand { visibility: hidden; }
#btn-home[hidden] { display: none; }
::view-transition-group(hero) { animation-duration: var(--dur-2); animation-timing-function: var(--ease-out); }
::view-transition-old(root), ::view-transition-old(hero) { animation: vt-out 100ms var(--ease-out) both; mix-blend-mode: normal; }
::view-transition-new(root), ::view-transition-new(hero) { animation: vt-in 140ms var(--ease-out) 100ms both; mix-blend-mode: normal; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
[data-theme="light"] .hchip { background: #fff; }
[data-theme="light"] .home-foot button:hover { background: rgba(24, 26, 52, .06); }
[data-theme="light"] .mode { --mc-shade: var(--mc); }
[data-theme="light"] .mode:not(.soon):hover .m-word,
[data-theme="light"] .mode:not(.soon):hover .m-go { color: var(--text); }
@media (prefers-reduced-motion: reduce) {
  .mode { transition: none; }
  .mode:not(.soon):hover, .mode:not(.soon):active { transform: none; }
  .bigmark .bm-cell { animation: none; }
}
.lite .bigmark .bm-cell { animation: none; }
@media (max-width: 679px) {
  .mode:not(.m-hero) .m-go { width: 20px; border: 0; }
  .mode:not(.m-hero) .m-go svg { width: 100%; height: 100%; }
}
@media (min-width: 680px) {
  .home-top { justify-content: flex-end; }
  .deck { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 5vw, 96px); }
}
@media (min-width: 680px) and (max-width: 1139px) {
  .deck .mode:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1140px) {
  .deck { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: clamp(18px, 2vw, 32px); }
  .deck .mode .m-word { font-size: clamp(19.5px, 1.7vw, 24px); }
  .deck .mode .m-go { width: 32px; }
  .deck .mode .m-sub { column-gap: 8px; }
}
@media (min-width: 680px) { .deck .mode { align-content: start; } }
.cell.plate.pressed::after { transform: scale(.82); box-shadow: inset 0 4px 8px rgba(0, 0, 0, .5); background: color-mix(in oklab, var(--text-3) 30%, transparent); }
.cell.plate::after { transition: transform .2s var(--ease-out); }
[data-theme="light"] .cell.oneway svg { color: #5b6190; opacity: .9; }
[data-theme="light"] .cell.gate { background: color-mix(in oklab, var(--c) 26%, white); }
[data-theme="light"] .cell.door::after { background: repeating-linear-gradient(90deg, #454c7d 0 18%, transparent 18% 30%); }
[data-theme="light"] .board.shaped .cell:not(.void) { box-shadow: 0 0 0 .5px rgba(40, 40, 90, .12); }
.jmap { --wb1: #2a3170; --wb2: #141a3d; --wg: #ffc233; width: min(100%, 560px); margin: 0 auto 8px; padding: 12px 16px 28px; border-radius: 28px;
  background: radial-gradient(120% 60% at 50% 0%, color-mix(in oklab, var(--wg) 18%, transparent), transparent 60%), linear-gradient(180deg, var(--wb1), var(--wb2)); color: #f1f3ff; }
.jw-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.jw-head .icon-btn { color: #f1f3ff; }
.jw-head .icon-btn:disabled { visibility: hidden; }
.jw-title { text-align: center; display: grid; gap: 2px; }
.jw-title span { font-size: 14px; font-weight: 600; opacity: .8; text-transform: uppercase; letter-spacing: .12em; }
.jw-title h2 { font-family: var(--display); margin: 0; font-size: var(--fs-5); font-weight: 700; text-transform: uppercase; letter-spacing: -.005em; }
.jw-stars { color: var(--wg); font-weight: 700; font-size: 15px; letter-spacing: 0; text-transform: none; opacity: 1 !important; }
.jw-msg { text-align: center; margin: 14px 8px 0; padding: 12px 16px; border-radius: 15px; background: rgba(0, 0, 0, .25); font-size: 16px; font-weight: 600; }
.jw-path { position: relative; display: grid; justify-items: center; gap: 14px; padding: 22px 0 6px; grid-auto-rows: 80px; min-height: calc(24 * 80px + 23 * 14px + 40px);  }
.jnode.master { margin-top: 6px; }
.jw-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.jw-line path { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 3; stroke-dasharray: 2 8; stroke-linecap: round; }
.jnode { position: relative; translate: var(--x) 0; display: grid; justify-items: center; gap: 4px; border: 0; background: none; color: inherit; padding: 4px; border-radius: 50%; }
.jn-dot { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #1a1638;
  background: radial-gradient(circle at 35% 30%, #fff, color-mix(in oklab, var(--wg) 70%, white) 40%, var(--wg)); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .6), inset 0 -3px 6px rgba(0, 0, 0, .2); }
.jnode.done .jn-dot { background: radial-gradient(circle at 35% 30%, #fff, #c8ffe8 40%, #2ee59d); }
.jnode.locked .jn-dot { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .15); }
.jnode.locked svg { width: 20px; height: 20px; }
.jnode.master .jn-dot { width: 66px; height: 66px; background: radial-gradient(circle at 35% 30%, #fff, #ffe39a 35%, #ffb01f 75%, #b86e00); box-shadow: 0 0 0 4px rgba(255, 194, 51, .35), 0 10px 26px -8px #ffb01f; }
.jnode.master.locked .jn-dot { background: rgba(255, 194, 51, .15); box-shadow: inset 0 0 0 2px rgba(255, 194, 51, .5); color: #ffe39a; }
.jnode.current .jn-dot { animation: jpulse 1.6s ease-in-out infinite; }
@keyframes jpulse { 50% { box-shadow: 0 0 0 10px color-mix(in oklab, var(--wg) 25%, transparent), 0 6px 16px -6px rgba(0, 0, 0, .6); } }
.jn-stars { display: flex; gap: 3px; }
.jn-stars i { width: 9px; height: 9px; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); background: rgba(255, 255, 255, .25); }
.jn-stars i.on { background: #ffc233; }
.jmap.locked .jw-path { filter: grayscale(1) brightness(.6); }
.jnode:focus-visible { outline: 2.5px solid #fff; outline-offset: 2px; }
.board.world { border-color: rgba(255, 255, 255, .12); }
.win.journey #btn-share, .win.journey #share-preview, .win.journey .countdown,
.win.journey #global, .win.journey #ad-result, .win.journey #btn-share-img { display: none !important; }
#btn-map.wide { width: 100%; justify-content: center; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .jnode.current .jn-dot { animation: none; } }
.rushbar { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; width: var(--board-size); margin-bottom: 6px; }
.rushbar[hidden] { display: none; }
.rushbar > span:first-child { display: flex; flex-direction: column-reverse; align-items: center; gap: 1px; }
.rushbar b { font-family: var(--display); font-size: 27px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }
.rushbar small { font-family: var(--display); font-size: var(--fs-1); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.rush-time { justify-self: center; font-family: var(--display); font-size: 31px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; }
.rushbar .link-btn {
  justify-self: end; align-self: center; padding: 7px 12px; border: 1.5px solid var(--mc-fg);
  border-radius: 10px; color: var(--text-2); font-size: 14px;
  transition: border-color var(--dur-1), color var(--dur-1);
}
.rushbar .link-btn:hover { color: var(--text); }
.rush-time.low { color: var(--o0-fg); }
.zen .hud-cell:last-child, body[data-mode="rush"] .hud-cell:last-child { visibility: hidden; }
@media (min-width: 1100px) and (min-height: 620px) {
  .rushbar {
    grid-column: 2; grid-row: 2; width: 100%; margin: 0;
  }
  .rushbar b { font-size: 24px; }
  .rush-time { font-size: 28px; }
  .rushbar .link-btn { padding: 6px 10px; font-size: 13px; }
  body[data-mode="rush"] .game { grid-template-rows: auto auto auto auto auto 1fr; }
  body[data-mode="rush"] .hud { grid-row: 3; }
  body[data-mode="rush"] .controls { grid-row: 4; }
  body[data-mode="rush"] .secondary-row { grid-row: 5; }
  body[data-mode="rush"] .swipe-hint { grid-row: 6; }
}
.zen .board { transition: background 1s; }
.rush-big { text-align: center; font-size: 16px; color: var(--text-3); } .rush-big b { display: block; font-size: 60px; line-height: 1.05; letter-spacing: -.04em; color: var(--text); font-variant-numeric: tabular-nums; }
.lb { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 5px; max-height: 260px; overflow: auto; counter-reset: lb; }
.lb li { counter-increment: lb; display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 9px 12px; border-radius: 11px; background: var(--surface); font-size: 15px; }
.lb li::before { content: counter(lb); color: var(--text-3); font-variant-numeric: tabular-nums; width: 2.5ch; text-align: right; }
.lb li span { flex: 1; } .lb li b { font-variant-numeric: tabular-nums; } .lb li.me { outline: 2px solid var(--accent); }
.hchip.lvl { gap: 9px; } .xpbar { display: block; width: 56px; height: 7px; border-radius: 7px; background: var(--border-2); overflow: hidden; }
.xpbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--c-daily), var(--c-rush)); transition: width .6s var(--ease-out); }
.quests { display: grid; gap: 8px; } .quests h3 { font-family: var(--display); margin: 6px 0 0; font-size: var(--fs-1); font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .14em; }
.quests ol { list-style: none; padding: 0; margin: 0; display: grid; }
.quests li { display: grid; grid-template-columns: 1fr 64px; align-items: center; gap: 14px; padding: 9px 2px; border-bottom: 1px solid var(--border); font-size: 15px; font-weight: 500; }
.quests li .qbar { height: 4px; }
.quests li.done span::after { content: ' ✓'; color: var(--text); font-weight: 700; }
.qbar { display: block; height: 6px; border-radius: 6px; background: var(--border-2); overflow: hidden; } .qbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--c-daily), var(--c-rush)); }
.ach { list-style: none; padding: 0; display: grid; gap: 8px; }
.ach li { display: grid; grid-template-columns: 24px 1fr; gap: 4px 12px; align-items: center; padding: 11px 13px; border-radius: 14px; background: var(--surface); font-size: 15px; }
.ach li svg { width: 22px; height: 22px; grid-row: span 2; color: var(--text-3); } .ach li.got svg { color: var(--accent-fg); }
.items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.item { display: grid; justify-items: center; gap: 5px; padding: 12px 7px; border-radius: 16px; border: 1px solid var(--border-2); background: var(--surface); font-size: 13px; text-align: center; }
.item b { font-size: 14px; } .item span { color: var(--text-3); } .item.on { outline: 2px solid var(--accent); } .item.locked .sw { filter: grayscale(1); opacity: .55; }
.item .sw { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #3da9fc 45%, #1a4f80); }
.item.board-classic .sw, .item.board-wood .sw, .item.board-slate .sw, .item.board-aurora .sw { border-radius: 8px; }
.item.board-classic .sw { background: linear-gradient(160deg, #1e244a, #0e1228); } .item.board-wood .sw { background: linear-gradient(160deg, #8a5a33, #4a2f19); }
.item.board-slate .sw { background: linear-gradient(160deg, #4b5563, #1f2937); } .item.board-aurora .sw { background: linear-gradient(160deg, #10b981, #6d28d9); }
.item.burst-spark .sw { background: radial-gradient(circle, #fff 10%, #ffc233 30%, transparent 60%); } .item.burst-ring .sw { background: radial-gradient(circle, transparent 40%, #3da9fc 45%, transparent 60%); }
.item.burst-star .sw { background: conic-gradient(from 0deg, #fff3b0, #ffc233, #fff3b0, #ffc233, #fff3b0); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.skin-glass .ball, .item.skin-glass .sw { background: radial-gradient(circle at 33% 27%, #fff 0 6%, transparent 24%), radial-gradient(circle at 50% 55%, color-mix(in oklab, var(--c, #3da9fc) 35%, transparent), color-mix(in oklab, var(--c, #3da9fc) 85%, transparent)); }
.skin-marble .ball, .item.skin-marble .sw { background: radial-gradient(circle at 33% 27%, #fff 0 5%, transparent 22%), repeating-linear-gradient(35deg, color-mix(in oklab, var(--c, #3da9fc) 70%, white) 0 4px, var(--c, #3da9fc) 4px 9px); }
.skin-lava .ball, .item.skin-lava .sw { background: radial-gradient(circle at 35% 30%, #fff6 0 8%, transparent 25%), radial-gradient(circle at 60% 70%, #ffdd57, var(--c, #ff4d6d) 45%, #3a0a0a); }
.skin-planet .ball, .item.skin-planet .sw { background: radial-gradient(circle at 30% 30%, #fff8 0 6%, transparent 22%), linear-gradient(170deg, transparent 44%, #fff5 46% 52%, transparent 54%), radial-gradient(circle at 40% 35%, color-mix(in oklab, var(--c, #3da9fc) 60%, white), var(--c, #3da9fc) 50%, #0a0a2a); }
.skin-neon .ball, .item.skin-neon .sw { background: radial-gradient(circle, #0b0d1a 52%, var(--c, #3da9fc) 58%, #0b0d1a 70%); box-shadow: 0 0 18px var(--c, #3da9fc), inset 0 0 10px var(--c, #3da9fc); }
.skin-candy .ball, .item.skin-candy .sw { background: radial-gradient(circle at 33% 27%, #fff 0 6%, transparent 22%), repeating-conic-gradient(var(--c, #3da9fc) 0 30deg, #fff 30deg 45deg); }
.skin-chrome .ball, .item.skin-chrome .sw { background: radial-gradient(circle at 33% 27%, #fff 0 10%, transparent 30%), linear-gradient(160deg, #f5f7ff, color-mix(in oklab, var(--c, #3da9fc) 45%, #9aa3b8) 50%, #2a2f3d); }
.skin-pixel .ball, .item.skin-pixel .sw { border-radius: 18% !important; background: conic-gradient(var(--c, #3da9fc) 0 25%, color-mix(in oklab, var(--c, #3da9fc) 70%, white) 0 50%, var(--c, #3da9fc) 0 75%, color-mix(in oklab, var(--c, #3da9fc) 70%, black) 0); image-rendering: pixelated; }
.board-wood .board:not(.world) { --board-1: #6b4426; --board-2: #3d2615; }
.board-slate .board:not(.world) { --board-1: #3b4250; --board-2: #1b2029; }
.board-aurora .board:not(.world) { --board-1: #0f5c4c; --board-2: #2d1559; }
.levelup { position: fixed; inset: 0; z-index: 80; display: grid; place-content: center; justify-items: center; gap: 4px; pointer-events: none; background: color-mix(in oklab, var(--bg) 70%, transparent); animation: lvl 2.2s var(--ease-out) forwards; }
.levelup[hidden] { display: none; }
.levelup span { font-size: 24px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; } .levelup b { font-size: 108px; line-height: 1; letter-spacing: -.05em; background: linear-gradient(135deg, var(--c-daily), var(--c-weekly)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes lvl { 0% { opacity: 0; transform: scale(.8); } 15%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 12px); gap: 3px; justify-content: start; }
.heat i { width: 12px; height: 12px; border-radius: 3px; background: var(--border); }
.heat .h1 { background: color-mix(in oklab, var(--o3) 40%, transparent); } .heat .h2 { background: color-mix(in oklab, var(--o3) 70%, transparent); } .heat .h3 { background: var(--o3); } .heat .hf { opacity: .25; }
#btn-recap, #btn-retry, #btn-journey-cta { margin-top: 8px; width: 100%; justify-content: center; }
#btn-retry[hidden], #btn-journey-cta[hidden] { display: none; }
.combo { position: absolute; left: 50%; top: 42%; z-index: 5; translate: -50% 0; font-size: 38px; font-weight: 800; color: var(--text); text-shadow: 3px 3px 0 var(--mc); opacity: 0; pointer-events: none; }
.game { position: relative; }
.combo.show { animation: combo 1s var(--ease-out); }
@keyframes combo { 0% { opacity: 0; transform: scale(.6); } 25% { opacity: 1; transform: scale(1.15); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: translateY(-20px); } }
.orb.warp .ball { transform: scale(.45, 1.35); opacity: .6; transition: transform .08s, opacity .08s; }
.board-wrap.thud { animation: thud .22s var(--ease-out); }
@keyframes thud { 30% { transform: translateY(3px); } 60% { transform: translateY(-1px); } }
.cell.gate::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%) -100% 0 / 200% 100% no-repeat; animation: shimmer 3.2s linear infinite; }
@keyframes shimmer { to { background-position: 100% 0; } }
@media (prefers-reduced-motion: reduce) { .combo.show, .levelup, .board-wrap.thud, .cell.gate::after { animation: none; } .combo.show { opacity: 1; } .orb.warp .ball { transform: none; } }
.lite .cell.gate::after { animation: none; }
.brand-orb { width: 26px; height: 26px; margin-right: 8px; flex: none; }
.foot-orb { display: inline-block; width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; }
.col-lvl { display: flex; align-items: center; gap: 10px; margin: -4px 0 12px; color: var(--text-2); font-weight: 700; }
.pieces { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pieces li { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.pieces li > div:last-child { display: grid; gap: 2px; }
.pieces b { font-family: var(--display); font-weight: 700; }
.pieces span { color: var(--text-2); font-size: var(--fs-3); line-height: 1.4; }
.board.piece { --radius: 10px; width: calc(48px * var(--w)); height: 48px; padding: 2px; justify-self: center; box-shadow: none; }
.board.piece .orb { position: absolute; inset: 2px; width: auto; height: auto; }
.bd-orbs { display: none; }
@media (min-width: 1240px) and (prefers-reduced-motion: no-preference) {
  .bd-orbs { display: block; position: absolute; left: 0; right: 0; bottom: 35.7%; height: 32px; transform-origin: 50% 100%; animation: bdTilt 16s ease-in-out infinite; }
  .bd-orbs .po { position: absolute; left: 0; bottom: 0; width: 32px; height: 32px; animation: bdRoll 16s infinite; }
  .bd-orbs .pf { fill: var(--po); }
  .bd-orbs .po:nth-child(1) { --l: 4vw; --r: calc(96vw - 136px); --po: var(--o0); }
  .bd-orbs .po:nth-child(2) { --l: calc(4vw + 34px); --r: calc(96vw - 102px); --po: var(--o1); }
  .bd-orbs .po:nth-child(3) { --l: calc(4vw + 68px); --r: calc(96vw - 68px); --po: var(--o2); }
  .bd-orbs .po:nth-child(4) { --l: calc(4vw + 102px); --r: calc(96vw - 34px); --po: var(--o3); }
}
.lite .bd-orbs { display: none; }
@keyframes bdRoll {
  0%, 14% { transform: translateX(var(--l)); animation-timing-function: cubic-bezier(.37, 0, .63, 1); }
  44%, 64% { transform: translateX(var(--r)); animation-timing-function: cubic-bezier(.37, 0, .63, 1); }
  94%, 100% { transform: translateX(var(--l)); }
}
@keyframes bdTilt { 0%, 12%, 46%, 62%, 96%, 100% { rotate: 0deg; } 16%, 40% { rotate: 1.2deg; } 66%, 90% { rotate: -1.2deg; } }
.seo-demo { width: min(180px, 46vw); margin: 4px 0 14px; }
.meta-row { align-items: center; padding: 5px 0; }
.meta-row .bd-strip { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.meta-row .bd-strip .bd-sunwrap, .meta-row .bd-strip .bd-daysun { display: none; }
.meta-row .plate {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 0;
  padding: 4px 16px 5px; border-radius: 10px; border: 1.5px solid var(--mc-fg);
  background: color-mix(in oklab, var(--mc) 10%, var(--bg));
  box-shadow: 0 3px 0 0 color-mix(in oklab, var(--mc) 45%, #000);
}
.mode-title { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1; font-size: clamp(18px, 4.6vw, 26px); color: var(--text); text-shadow: 2px 2px 0 var(--mc); }
.meta-row .pill { background: none; border: 0; padding: 0; gap: 6px; font-size: 13px; line-height: 1.15; margin-top: 2px; color: var(--text-2); }
.meta-row .pill #day-label { letter-spacing: .02em; }
.meta-row .pill #day-label:empty, .meta-row .pill .diff-label:empty { display: none; }
.meta-row .diff-label { font-size: 13px; font-weight: 600; }
@media (max-width: 599px) {
  .meta-row .diff { display: none; }
  .meta-row .pill #day-label:not(:empty) + .diff + .diff-label:not(:empty)::before { content: '· '; }
  .meta-row .pill { gap: 4px; }
  .meta-row .plate { padding: 3px 14px 4px; }
}
#btn-giveup.confirm { color: var(--over); }
#dlg-win > :is(.cta, .ghost, .more), #dlg-win .more > .ghost { margin: 12px 0 0; }
#dlg-win .cta, #dlg-win .ghost { border-radius: 12px; transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out); }
#dlg-win .cta:not(.alt) { background: var(--accent); box-shadow: 0 4px 0 0 color-mix(in oklab, var(--accent) 55%, #000); }
#dlg-win .ghost, #dlg-win .cta.alt { border: 1.5px solid var(--border-2); background: var(--surface-solid); box-shadow: 0 4px 0 0 color-mix(in oklab, var(--surface-solid) 68%, var(--text)); }
#dlg-win .cta:active, #dlg-win .ghost:active { transform: translateY(3px); box-shadow: 0 1px 0 0 color-mix(in oklab, var(--surface-solid) 68%, var(--text)); }
#dlg-win .more > summary { margin: 0; }
.secondary-row { gap: 6px; flex-wrap: wrap; justify-content: center; }
.secondary-row .link-btn { white-space: nowrap; }
.link-btn svg { flex: none; width: 18px; height: 18px; }
.install.remind { display: inline-flex; align-items: center; gap: 6px; margin-inline: auto; }
#dlg-win .install.remind { display: flex; }
#dlg-win .install.remind[hidden] { display: none; }
.install.remind svg { width: 18px; height: 18px; flex: none; }
.remind-ctl { display: inline-flex; align-items: center; gap: 10px; }
.remind-ctl select { min-width: 0; }
.setting:has(+ .setting-note:not([hidden])) { border-bottom: 0; min-height: 52px; }
.setting-note { margin: -6px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
.setting-lbl { font-weight: 500; font-size: 16px; }
.ghost.sm { height: auto; min-height: 42px; padding: 8px 14px; font-size: 15px; width: auto; margin: 0; }
.backup-why { display: block; margin: 4px 0 10px; color: var(--text-2); font-size: 15px; line-height: 1.45; }
.code-box { display: block; width: 100%; box-sizing: border-box; resize: none; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text); font: 500 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
#dlg-backup .cta, #dlg-backup .ghost { margin-top: 12px; width: 100%; }
#dlg-backup .menu-sep { margin: 18px 0 14px; }
.restore-msg { min-height: 0; margin: 8px 0 0; font-size: 14px; color: var(--text); }
.restore-msg.bad { color: var(--over); }
.install-steps { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; gap: 14px; counter-reset: st; }
.install-steps li { display: grid; grid-template-columns: 28px 40px 1fr; align-items: center; gap: 10px; font-size: 16px; line-height: 1.4; counter-increment: st; }
.install-steps li::before { content: counter(st); grid-column: 1; grid-row: 1; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--text-2); text-align: center; }
.install-steps li[hidden] { display: none; }
.install-steps svg { grid-column: 2; grid-row: 1; width: 40px; height: 40px; padding: 8px; box-sizing: border-box; border-radius: 10px; background: var(--surface-2); color: var(--text); }
.install-steps span { grid-column: 3; grid-row: 1; }
#dlg-install .cta { margin-top: 18px; }
#dlg-install h2 { padding-inline: 34px; text-wrap: balance; }
