:root{--font-display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;--font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;--text-xs: .75rem;--text-sm: .875rem;--text-md: 1rem;--text-lg: 1.25rem;--text-xl: 1.75rem;--text-2xl: 2.5rem;--leading-tight: 1.2;--leading-body: 1.5;--label-size: var(--text-xs);--label-weight: 700;--label-tracking: .08em;--space-1: 4px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-5: 20px;--space-6: 24px;--space-8: 32px;--space-12: 48px;--control-min: 44px;--control-lg: 48px;--radius-sm: 8px;--radius-md: 12px;--radius-lg: 16px;--radius-xl: 22px;--radius-round: 999px;--radius-control: var(--radius-md);--radius-card: 24px;--radius-sheet: var(--radius-xl);--shell-max: 980px;--card-pad: clamp(var(--space-5), 3.5vw, var(--space-8));--motion-instant: 80ms;--motion-select: .12s;--motion-place: .18s;--motion-reflow: .24s;--motion-solve: .8s;--ease-out: cubic-bezier(.2, .8, .25, 1);--ease-spring: cubic-bezier(.3, 1.45, .55, 1);--ease-in-out: cubic-bezier(.65, 0, .35, 1);font-family:var(--font-ui);font-synthesis:none;-webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%;text-size-adjust:100%;color:var(--text-primary);background:var(--surface-canvas);--gutter: max(16px, env(safe-area-inset-left, 0px))}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100dvh;color:var(--text-primary);background-color:var(--surface-canvas);background-image:radial-gradient(130% 62% at 50% 44%,var(--surface-glow) 0%,var(--surface-canvas) 72%);background-attachment:fixed}button{font:inherit;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}:where(a,button,summary,input,textarea,select,[tabindex]):focus-visible{outline:3px solid var(--focus-ring);outline-offset:3px}button:focus-visible{outline:3px solid var(--focus-ring);outline-offset:3px}svg[tabindex]:focus-visible{filter:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.button,.rules-close,.win-sheet button{display:inline-flex;align-items:center;justify-content:center;gap:var(--space-2);min-height:var(--control-lg);padding:0 var(--space-5);border:1px solid var(--border-strong);border-radius:var(--radius-control);background:var(--surface-raised);color:var(--text-primary);font-size:var(--text-md);font-weight:700;line-height:var(--leading-tight);text-decoration:none;cursor:pointer;transition:background-color var(--motion-select) var(--ease-out),border-color var(--motion-select) var(--ease-out),filter var(--motion-select) var(--ease-out),transform var(--motion-instant) var(--ease-out)}.button.primary,.win-sheet button:not(.secondary){border-color:transparent;background:var(--reward-action);color:var(--reward-on-action)}.button.quiet{min-height:var(--control-min);padding:0 var(--space-3);border-color:transparent;background:none;color:var(--text-secondary);font-size:var(--text-sm);font-weight:650}.button:active:not(:disabled),.rules-close:active,.win-sheet button:active{transform:scale(.98)}.button:disabled{opacity:.4;cursor:default}@media(hover:hover){.button:not(:disabled):hover,.rules-close:hover,.win-sheet button.secondary:hover{border-color:var(--text-secondary)}.button.primary:not(:disabled):hover,.win-sheet button:not(.secondary):hover{filter:brightness(1.06)}.button.quiet:not(:disabled):hover{border-color:transparent;background:var(--surface-raised);color:var(--text-primary)}}.game-shell{display:flex;flex-direction:column;width:min(100%,980px);min-height:calc(100dvh - var(--host-top, 0px) + var(--moderator-room, 0px));margin:0 auto;padding:max(12px,var(--shell-inset-top, env(safe-area-inset-top))) var(--gutter) max(16px,env(safe-area-inset-bottom))}.game-shell.has-sheet .actions,.game-shell.has-sheet .feedback.success{visibility:hidden}.moderator-bar{margin:0 0 12px;padding:10px;border:1px dashed var(--border-strong);border-radius:var(--radius-lg);background:var(--surface-panel)}.eyebrow,.obs-section,.level-heading{color:var(--text-secondary);font-size:var(--label-size);font-weight:var(--label-weight);letter-spacing:var(--label-tracking);line-height:var(--leading-tight);text-transform:uppercase}.eyebrow{margin:0 0 var(--space-2)}.moderator-actions{display:flex;flex-wrap:wrap;gap:6px}.chip-group{display:inline-flex;gap:4px}.chip{min-height:36px;padding:6px 12px;border:1px solid var(--border-strong);border-radius:var(--radius-round);background:var(--surface-raised);font-size:.8125rem;font-weight:700;cursor:pointer;transition:background-color var(--motion-select) var(--ease-out)}.chip[aria-pressed=true],.chip[aria-expanded=true]{background:var(--text-primary);color:var(--surface-canvas);border-color:var(--text-primary)}.rules-text{margin:10px 2px 2px;max-width:60ch;color:var(--text-primary);font-size:var(--text-sm);line-height:1.5}.observation-panel{margin-top:10px;border-top:1px dashed var(--border-strong);padding-top:8px}.observation-panel summary{min-height:36px;display:flex;align-items:center;gap:8px;font-size:var(--text-sm);font-weight:750;cursor:pointer}.obs-progress,.obs-hint,.obs-ask,.obs-label,.obs-text span{color:var(--text-secondary);font-size:var(--text-xs);font-weight:600}.obs-hint{margin:2px 0 8px;max-width:60ch;line-height:1.4}.obs-section{margin:14px 0 4px}.obs-question{margin:0 0 8px;padding:8px;border:1px solid var(--border-strong);border-radius:var(--radius-md);min-width:0}.obs-question legend{padding:0 4px;font-size:var(--text-sm);font-weight:700;line-height:1.35}.obs-ask{margin:2px 0 6px;font-style:italic;line-height:1.4}.obs-label{margin:8px 0 4px}.obs-row{display:flex;flex-wrap:wrap;gap:4px}.obs-text{display:grid;gap:4px;margin-top:6px}.obs-text textarea,.obs-text input{width:100%;box-sizing:border-box;min-height:36px;padding:6px 8px;border:1px solid var(--border-strong);border-radius:var(--radius-md);background:var(--surface-raised);color:var(--text-primary);font:inherit;font-size:1rem}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}h1{position:relative;margin:0;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;font-family:var(--font-display);font-size:clamp(1.5rem,5.6vw,var(--text-xl));font-weight:800;line-height:var(--leading-tight);letter-spacing:-.025em;white-space:nowrap}h1.wordmark-pressing:after{content:"";position:absolute;left:0;right:0;bottom:-5px;height:3px;border-radius:2px;background:var(--accent);transform-origin:left center;animation:hold-fill var(--hold, 1.5s) linear forwards}@keyframes hold-fill{0%{transform:scaleX(0)}to{transform:scaleX(1)}}.level-nav{display:flex;flex-wrap:nowrap}.topbar>.level-nav{margin-inline-start:auto}.rules-button{display:inline-flex;flex:0 0 auto;align-items:center;gap:7px;min-width:var(--control-min);min-height:var(--control-min);padding:6px 10px 6px 6px;border:0;border-radius:var(--radius-control);background:none;color:var(--text-secondary);font-size:var(--text-sm);font-weight:650;cursor:pointer;transition:background-color var(--motion-select) var(--ease-out),color var(--motion-select) var(--ease-out)}.rules-button[aria-expanded=true]{background:var(--surface-raised);color:var(--text-primary)}@media(hover:hover){.rules-button:hover{background:var(--surface-raised);color:var(--text-primary)}}.rules-button-icon{display:grid;place-items:center;width:26px;height:26px;border:1.5px solid var(--border-strong);border-radius:50%;color:var(--text-primary);font-family:var(--font-display);font-size:.875rem;font-weight:800;line-height:1}.level-dot{display:grid;place-items:center;width:var(--control-min);height:var(--control-min);padding:0;border:0;border-radius:var(--radius-md);background:none;cursor:pointer}.level-dot:focus-visible{outline-offset:-2px}.level-pip{display:grid;place-items:center;width:28px;height:28px;border:1.5px solid var(--border-strong);border-radius:50%;color:var(--text-secondary);font-family:var(--font-display);font-size:.8125rem;font-weight:800;font-variant-numeric:tabular-nums;transition:transform var(--motion-select) var(--ease-out),background-color var(--motion-place) var(--ease-out)}.level-dot:active .level-pip{transform:scale(.92)}@media(hover:hover){.level-dot:not(.current):hover .level-pip{border-color:var(--text-secondary);color:var(--text-primary)}}.level-dot.current .level-pip{border:2px solid var(--text-primary);background:var(--surface-raised);color:var(--text-primary)}.level-dot.solved .level-pip{border-color:var(--state-solved);color:var(--state-solved)}.level-dot.solved.current .level-pip{box-shadow:0 0 0 2px var(--surface-canvas),0 0 0 4px var(--text-primary)}.level-check{width:15px;height:15px}.play-card{display:flex;flex:1;flex-direction:column;margin-top:var(--space-3);padding:var(--card-pad);border:1px solid var(--border-subtle);border-radius:var(--radius-card);background:var(--surface-panel);box-shadow:var(--elev-2)}.level-heading{order:0;display:flex;justify-content:space-between;gap:var(--space-3);font-variant-numeric:tabular-nums}.feedback{order:2;min-height:1.5em;margin:10px 0 14px;text-align:center;color:var(--text-secondary);font-size:var(--text-md);font-weight:600;line-height:var(--leading-body);text-wrap:balance}.feedback span{display:inline-block;animation:feedback-in var(--motion-reflow) var(--ease-out) both}.feedback.error{color:var(--state-illegal)}.feedback.error span{animation:feedback-in var(--motion-reflow) var(--ease-out) both,nudge .2s ease-in-out 60ms 2}.feedback.success{color:var(--state-solved)}.actions{order:4;display:flex;justify-content:center;gap:8px;margin-top:16px}.actions button{display:inline-flex;align-items:center;gap:7px;min-height:var(--control-min);padding:8px 14px;border:0;border-radius:var(--radius-control);background:none;color:var(--text-secondary);font-size:var(--text-sm);font-weight:650;cursor:pointer;transition:background-color var(--motion-select) var(--ease-out),color var(--motion-select) var(--ease-out)}@media(hover:hover){.actions button:not(:disabled):hover{background:var(--surface-raised);color:var(--text-primary)}}.actions button:not(:disabled):active{background:var(--surface-raised)}.actions button:disabled{opacity:.4;cursor:default}.action-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.progress-reset{display:flex;justify-content:center;margin-top:12px;color:var(--text-secondary);font-size:var(--text-xs)}.progress-reset button{min-height:var(--control-min);padding:6px 10px;border:0;border-radius:var(--radius-sm);background:none;color:inherit;font-size:inherit;font-weight:650;cursor:pointer}@media(hover:hover){.progress-reset button:hover{color:var(--text-primary)}}.progress-reset-ask{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 6px;text-align:center}.progress-reset-ask button{text-decoration:underline;text-underline-offset:3px}.progress-reset-ask .progress-reset-confirm{color:var(--state-illegal)}.game-shell.has-sheet .progress-reset{visibility:hidden}.win-sheet{position:fixed;z-index:10;left:50%;bottom:max(12px,env(safe-area-inset-bottom,0px));display:flex;align-items:center;gap:var(--space-4);width:min(560px,calc(100% - 2 * var(--gutter)));padding:var(--space-4) var(--space-4) var(--space-4) var(--space-5);border:1px solid var(--border-subtle);border-radius:var(--radius-sheet);background:var(--surface-overlay);box-shadow:var(--elev-3);transform:translate(-50%);animation:sheet-in .42s var(--ease-out) both}.win-sheet:focus-visible{outline:3px solid var(--focus-ring);outline-offset:3px}.win-sheet.after-sweep{animation-delay:var(--sheet-delay)}.win-text{display:grid;flex:1;gap:var(--space-1);min-width:0}.win-text strong{font-family:var(--font-display);font-size:var(--text-lg);font-weight:800;line-height:var(--leading-tight);letter-spacing:-.015em}.win-text span{color:var(--text-secondary);font-size:var(--text-sm);line-height:1.4}.brand-line{display:block;margin:0;color:var(--text-secondary);font-size:var(--text-xs);letter-spacing:.02em}.win-text .brand-line{margin-top:var(--space-1)}.moderator-bar .brand-line{margin:10px 2px 0}.win-sheet button{flex:0 0 auto}.success-mark{width:40px;height:40px;flex:0 0 auto;padding:9px;border-radius:50%;background:var(--state-solved);color:var(--text-on-tone);animation:mark-pop .42s var(--ease-spring) calc(var(--sheet-delay, 0ms) + .12s) both}.success-mark path{stroke-dasharray:1;animation:check-draw .32s var(--ease-out) calc(var(--sheet-delay, 0ms) + .26s) both}.rules-sheet{width:min(520px,calc(100% - 2 * var(--gutter)));max-width:none;max-height:calc(100dvh - 24px);margin:auto;padding:0;overflow:auto;overscroll-behavior:contain;border:1px solid var(--border-subtle);border-radius:var(--radius-sheet);background:var(--surface-overlay);color:var(--text-primary);box-shadow:var(--elev-3)}.rules-sheet[open]{animation:rules-in .26s var(--ease-out) both}.rules-sheet::backdrop{background:#04070b9e}:root[data-theme=light] .rules-sheet::backdrop{background:#17202a61}.rules-sheet:focus-visible{outline:3px solid var(--focus-ring);outline-offset:3px}.rules-sheet-content{display:grid;gap:var(--space-3);padding:var(--space-6) var(--space-6) var(--space-5)}.rules-about{display:grid;gap:var(--space-1);padding-top:var(--space-3);border-top:1px solid var(--border-subtle)}.rules-about h3{margin:0;color:var(--text-secondary);font-size:var(--label-size);font-weight:var(--label-weight);letter-spacing:var(--label-tracking);text-transform:uppercase}.rules-about a{display:inline-flex;align-items:center;min-height:44px;color:var(--text-primary);font-weight:650;text-underline-offset:3px}.rules-sheet h2{margin:0;font-family:var(--font-display);font-size:var(--text-lg);font-weight:800;line-height:var(--leading-tight);letter-spacing:-.015em}.rules-sentence{margin:0;max-width:60ch;font-size:var(--text-md);line-height:var(--leading-body)}.rules-figure{display:grid;justify-items:center;gap:var(--space-2);margin:var(--space-2) 0}.rules-figure svg{display:block;width:min(100%,240px);height:auto;max-height:32dvh}.rules-figure figcaption{max-width:40ch;color:var(--text-secondary);font-size:var(--text-sm);line-height:1.4;text-align:center}.rules-close{justify-self:end;margin-top:var(--space-2)}:root.portal-consent-open{--host-top: var(--portal-consent-h, 0px)}:root.portal-consent-open body{padding-bottom:var(--portal-consent-h, 0px)}:root.portal-consent-open .win-sheet{margin-bottom:var(--portal-consent-h, 0px)}.portal-consent{position:fixed;z-index:30;left:0;right:0;bottom:0;display:grid;gap:var(--space-2);max-height:70dvh;overflow-y:auto;padding:var(--space-3) max(var(--gutter, 16px),env(safe-area-inset-right,0px)) max(var(--space-3),env(safe-area-inset-bottom,0px)) max(var(--gutter, 16px),env(safe-area-inset-left,0px));border-top:1px solid var(--border-strong);background:var(--surface-raised);color:var(--text-primary);box-shadow:0 -8px 24px #00000040}.portal-consent p{margin:0;font-size:var(--text-sm);line-height:1.4}.portal-consent strong{font-weight:750}.portal-consent p+p{margin-top:var(--space-1)}.portal-consent-note{color:var(--text-secondary)}.portal-consent-note a{color:inherit;text-underline-offset:3px}.portal-consent-toggle{padding:4px 0;border:0;background:none;color:inherit;font:inherit;font-weight:650;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.portal-consent-toggle:focus-visible,.portal-consent-note a:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.portal-consent-actions{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-3)}.portal-consent-actions .button{width:100%}.portal-counter-setting{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);margin-top:var(--space-2)}.portal-counter-setting-label{color:var(--text-secondary);font-size:var(--text-sm);font-weight:650}@media(min-width:601px){.portal-consent{grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:var(--space-5)}.portal-consent-actions{grid-template-columns:repeat(2,minmax(9.5rem,auto))}}.level-overview-button{display:inline-flex;align-items:center;gap:var(--space-2);min-height:var(--control-min);margin:0 calc(-1 * var(--space-2));padding:0 var(--space-2);border:0;border-radius:var(--radius-control);background:none;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer;transition:background-color var(--motion-select) var(--ease-out),color var(--motion-select) var(--ease-out)}.level-overview-button[aria-expanded=true]{background:var(--surface-raised);color:var(--text-primary)}@media(hover:hover){.level-overview-button:hover{background:var(--surface-raised);color:var(--text-primary)}}.level-overview-icon{flex:none;width:14px;height:14px;fill:none;stroke:var(--text-primary);stroke-width:1.5}.level-overview{width:min(560px,calc(100% - 2 * var(--gutter)));max-width:none;max-height:calc(100dvh - 24px);margin:auto;padding:0;overflow:hidden;border:1px solid var(--border-subtle);border-radius:var(--radius-sheet);background:var(--surface-overlay);color:var(--text-primary);box-shadow:var(--elev-3)}.level-overview[open]{display:flex;flex-direction:column;animation:rules-in .26s var(--ease-out) both}.level-overview::backdrop{background:#04070b9e}:root[data-theme=light] .level-overview::backdrop{background:#17202a61}.level-overview-content{display:flex;flex-direction:column;min-height:0;padding:var(--space-3) var(--space-4) var(--space-4)}.level-overview-head{display:flex;flex:none;align-items:center;justify-content:space-between;gap:var(--space-3);margin-bottom:var(--space-2)}.level-overview h2{margin:0;font-family:var(--font-display);font-size:var(--text-lg);font-weight:800;line-height:var(--leading-tight);letter-spacing:-.015em}.level-overview-close{display:grid;flex:none;place-items:center;width:var(--control-min);height:var(--control-min);margin-inline-end:calc(-1 * var(--space-2));padding:0;border:0;border-radius:var(--radius-control);background:none;color:var(--text-secondary);cursor:pointer}@media(hover:hover){.level-overview-close:hover{background:var(--surface-raised);color:var(--text-primary)}}.level-overview-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}.level-grid{--overview-cols: 6;display:grid;grid-template-columns:repeat(var(--overview-cols),minmax(var(--control-min),1fr));gap:var(--space-1);min-height:0;margin:0 calc(-1 * var(--space-1));padding:var(--space-1);overflow-y:auto;overscroll-behavior:contain;list-style:none}@media(min-width:480px){.level-grid{--overview-cols: 9}}.level-grid li{display:contents}.level-cell{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:var(--control-min);height:52px;padding:0;border:1.5px solid var(--border-strong);border-radius:var(--radius-control);background:none;color:var(--text-secondary);cursor:pointer;transition:transform var(--motion-select) var(--ease-out),border-color var(--motion-select) var(--ease-out)}.level-cell:active:not(:disabled){transform:scale(.95)}@media(hover:hover){.level-cell:not(:disabled):not(.current):hover{border-color:var(--text-secondary);color:var(--text-primary)}}.level-cell-number{font-family:var(--font-display);font-size:var(--text-md);font-weight:800;line-height:1;font-variant-numeric:tabular-nums}.level-cell.solved{border-color:var(--state-solved);color:var(--text-primary)}.level-cell.current{border:2px solid var(--text-primary);background:var(--surface-raised);color:var(--text-primary)}.level-cell.solved.current{box-shadow:inset 0 0 0 2px var(--surface-overlay),inset 0 0 0 3.5px var(--state-solved)}.level-cell.locked{border-style:dashed;border-color:var(--border-subtle);color:var(--text-secondary);opacity:.55;cursor:default}.level-cell-stars{display:flex;gap:1px}.level-cell-star{width:11px;height:11px;fill:none;stroke:var(--border-strong);stroke-width:2;stroke-linejoin:round}.level-cell-star.earned{fill:var(--accent);stroke:var(--accent)}.level-cell-check{width:13px;height:13px;color:var(--state-solved)}.level-cell-lock{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round}@keyframes rules-in{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}@keyframes feedback-in{0%{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}@keyframes nudge{50%{transform:translate(4px)}}@keyframes sheet-in{0%{opacity:0;transform:translate(-50%,28px)}to{opacity:1;transform:translate(-50%)}}@keyframes mark-pop{0%{transform:scale(.4);opacity:0}to{transform:none;opacity:1}}@keyframes check-draw{0%{stroke-dashoffset:1}to{stroke-dashoffset:0}}@keyframes fade-only{0%{opacity:0}20%,70%{opacity:1}to{opacity:0}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.level-pip,.chip,.actions button,.win-sheet button{transition:none}.level-dot:active .level-pip,.win-sheet button:active{transform:none}.feedback span,.feedback.error span{animation:none}.win-sheet,.win-sheet.after-sweep,.success-mark,.success-mark path{animation:none}h1.wordmark-pressing:after{animation:none;transform:none;opacity:.6}.rules-button,.button,.rules-close{transition:none}.button:active:not(:disabled),.rules-close:active{transform:none}.rules-sheet[open],.level-overview[open]{animation:none}.level-overview-button,.level-cell{transition:none}.level-cell:active:not(:disabled){transform:none}}@media(max-width:600px){.play-card{margin-top:6px;padding:0;border:0;border-radius:0;background:none;box-shadow:none}.win-sheet{flex-wrap:wrap;padding:var(--space-4)}.win-sheet button{width:100%}.game-shell.has-sheet .play-card{margin-bottom:var(--win-sheet-room, 0px);transition:margin-bottom .42s var(--ease-out) var(--win-sheet-delay, 0ms)}.game-shell.has-sheet .board-region{min-height:0}.rules-sheet{margin-bottom:max(12px,env(safe-area-inset-bottom,0px))}.rules-sheet-content{padding:var(--space-5) var(--space-5) var(--space-4)}.rules-close{justify-self:stretch}}@media(max-width:600px)and (prefers-reduced-motion:reduce){.game-shell.has-sheet .play-card{transition:none}}@media(max-width:540px){.topbar{flex-wrap:wrap;row-gap:2px}.topbar>.rules-button{margin-inline-start:auto;margin-inline-end:-6px}.topbar>.level-nav{flex-basis:100%;margin-inline-start:-8px}}@media(max-height:630px)and (min-width:601px)and (orientation:landscape){.game-shell{padding-top:8px}.play-card{margin-top:8px;padding-block:12px}.actions{margin-top:10px}}@media(max-height:630px)and (min-width:601px)and (orientation:landscape){.play-card.split-landscape{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,34%);grid-template-rows:auto minmax(0,1fr) auto;grid-template-areas:"board heading" "board feedback" "board actions";column-gap:var(--space-5);min-height:0}.split-landscape .level-heading{grid-area:heading;flex-wrap:wrap;row-gap:var(--space-1)}.split-landscape .board-region{grid-area:board;min-height:0;margin:0;contain:size}.split-landscape .feedback{grid-area:feedback;align-self:end;margin:var(--space-2) 0;text-align:start}.split-landscape .actions{grid-area:actions;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-1);margin:0 calc(-1 * var(--space-2))}.split-landscape .actions button{gap:var(--space-1);min-width:0;padding-inline:var(--space-2);line-height:var(--leading-tight);text-align:start}.split-landscape .actions .action-icon{flex:none}.play-card.split-landscape~.win-sheet{--split-view: calc(100vw - var(--host-left, 0px));--split-shell: min(var(--split-view), var(--shell-max));--split-content: calc(var(--split-shell) - 2 * var(--gutter) - 2 * var(--card-pad) - 2px);left:auto;right:calc((var(--split-view) - var(--split-shell)) / 2 + var(--gutter) + var(--card-pad) + 1px);flex-wrap:wrap;width:max(230px,.34 * var(--split-content));padding:var(--space-4);transform:none;animation-name:sheet-in-side}.play-card.split-landscape~.win-sheet button{width:100%}.play-card.split-landscape~.win-sheet[data-fit]{gap:var(--space-2);padding:var(--space-3)}.play-card.split-landscape~.win-sheet[data-fit=tight] .success-mark,.play-card.split-landscape~.win-sheet[data-fit=tight] .brand-line{display:none}.play-card.split-landscape~.win-sheet[data-fit=tight] .win-text{flex-basis:100%}.play-card.split-landscape~.win-sheet[data-fit=tight] button{flex:1 1 0;width:auto;min-width:0;padding-inline:var(--space-2);text-align:center}.game-shell:has(>.play-card.split-landscape){position:relative}.play-card.split-landscape~.progress-reset{--split-content: calc(100% - 2 * var(--gutter) - 2 * var(--card-pad) - 2px);position:absolute;right:calc(var(--gutter) + var(--card-pad) + 1px);bottom:calc(max(16px,env(safe-area-inset-bottom)) + 13px);justify-content:flex-start;width:max(230px,.34 * var(--split-content));margin:0}.play-card.split-landscape~.progress-reset>button{margin-inline-start:-10px}.play-card.split-landscape~.progress-reset .progress-reset-ask{justify-content:flex-start;text-align:start}.play-card.split-landscape:has(~.progress-reset) .actions{margin-bottom:calc(var(--control-min) + var(--space-1))}.play-card.split-landscape:has(~.progress-reset .progress-reset-ask) .actions{visibility:hidden}}@keyframes sheet-in-side{0%{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}@media(max-height:630px)and (min-width:601px)and (orientation:landscape)and (prefers-reduced-motion:reduce){.play-card.split-landscape~.win-sheet{animation:none}}@media(min-width:601px)and (min-aspect-ratio:5/4){.game-shell.board-first{--shell-max: 1600px;--side-col: clamp(256px, 24%, 320px);width:min(100%,var(--shell-max));height:calc(100dvh - var(--host-top, 0px) + var(--moderator-room, 0px));min-height:0;padding-top:max(8px,var(--shell-inset-top, env(safe-area-inset-top)));padding-bottom:max(12px,env(safe-area-inset-bottom))}.game-shell.board-first>.play-card.split-landscape{display:grid;grid-template-columns:minmax(0,1fr) var(--side-col);grid-template-rows:auto minmax(0,1fr) auto;grid-template-areas:"board heading" "board feedback" "board actions";column-gap:var(--space-6);min-height:0;margin-top:var(--space-2);padding:0 2px 2px 0;border:0;border-radius:0;background:none;box-shadow:none}.board-first .split-landscape .level-heading{grid-area:heading;flex-wrap:wrap;row-gap:var(--space-1)}.board-first .split-landscape .board-region{grid-area:board;min-height:0;margin:0;contain:size}.board-first .split-landscape .feedback{grid-area:feedback;align-self:end;margin:var(--space-2) 0;text-align:start}.board-first .split-landscape .actions{grid-area:actions;display:flex;gap:var(--space-1);margin:0;container-type:inline-size}.board-first .split-landscape .actions button{flex:1 1 0;flex-direction:column;gap:2px;min-width:max-content;padding:var(--space-2) var(--space-1);font-size:var(--text-xs);line-height:var(--leading-tight);text-align:center;white-space:nowrap}.board-first .split-landscape .actions .hint-cost{margin-inline-start:3px}@container (max-width: 247px){.board-first .split-landscape .actions button{padding-inline:2px;font-size:11px}}.game-shell.board-first>.play-card.split-landscape~.win-sheet{--split-view: calc(100vw - var(--host-left, 0px));--split-shell: min(var(--split-view), var(--shell-max));--split-content: calc(var(--split-shell) - 2 * var(--gutter) - 2px);left:auto;right:calc((var(--split-view) - var(--split-shell)) / 2 + var(--gutter) + 2px);bottom:calc(max(12px,env(safe-area-inset-bottom)) + 2px);flex-wrap:wrap;width:clamp(256px,.24 * var(--split-content),320px);padding:var(--space-4);transform:none;animation-name:sheet-in-side}.game-shell.board-first>.play-card.split-landscape~.win-sheet button{width:100%}}@media(min-width:601px)and (min-aspect-ratio:5/4)and (prefers-reduced-motion:reduce){.game-shell.board-first>.play-card.split-landscape~.win-sheet{animation:none}}.sound-button{display:grid;flex:none;place-items:center;width:var(--control-min);height:var(--control-min);padding:0;border:0;border-radius:var(--radius-control);background:none;color:var(--text-secondary);cursor:pointer;transition:background-color var(--motion-select) var(--ease-out),color var(--motion-select) var(--ease-out)}.sound-button .action-icon{width:22px;height:22px}.sound-button[aria-pressed=true]{color:var(--text-primary)}@media(hover:hover){.sound-button:hover{background:var(--surface-raised);color:var(--text-primary)}}.topbar>.sound-button{order:1}@media(max-width:540px){.topbar>.sound-button{order:0}}@media(prefers-reduced-motion:reduce){.sound-button{transition:none}}.level-overview-button.level-pill{gap:var(--space-2);margin:0;padding:0 var(--space-4) 0 var(--space-5);border:1px solid var(--border-strong);border-radius:var(--radius-round);background:var(--surface-raised);color:var(--text-primary);font-family:var(--font-display);font-size:var(--text-md);font-weight:800;letter-spacing:0;text-transform:none}.level-overview-button.level-pill .level-overview-icon{width:16px;height:16px}@media(hover:hover){.level-overview-button.level-pill:hover{border-color:var(--text-secondary)}}.level-overview .progress-reset{margin-top:var(--space-3);padding-top:var(--space-2);border-top:1px solid var(--border-subtle)}@media(max-width:600px){.board-first .actions{gap:var(--space-2)}.board-first .actions button{flex:1 1 0;flex-direction:column;gap:2px;min-width:0;padding:var(--space-1) var(--space-1);font-size:var(--text-xs);line-height:var(--leading-tight);text-align:center}.board-first .actions .hint-cost{margin-inline-start:3px}}.board-first .actions button{justify-content:center;border:1px solid var(--border-subtle);background:var(--surface-raised);color:var(--text-primary)}.board-first .actions button:disabled{opacity:.45}@media(hover:hover){.board-first .actions button:not(:disabled):hover{border-color:var(--text-secondary)}}.game-shell.board-first.has-overview .topbar>.level-nav{display:none}@media(min-width:601px)and (min-aspect-ratio:5/4){.game-shell.board-first.has-overview .topbar>.sound-button{margin-inline-start:auto}}.actions .hint-button .action-icon{color:var(--state-hint)}.hint-cost{margin-inline-start:var(--space-1);color:var(--text-secondary);font-size:var(--text-xs);font-weight:700;white-space:nowrap}.game-shell .topbar>.sound-button+.music-button.sound-button{margin-inline-start:0}@media(max-width:540px){.game-shell .topbar:has(>.music-button){column-gap:8px}.game-shell .topbar>.sound-button+.music-button.sound-button{margin-inline-start:-8px}}@media(max-width:359px){.game-shell .topbar:has(>.music-button) .rules-button-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}.demo-finger{pointer-events:none}.demo-finger-skin{fill:var(--text-primary);fill-opacity:.92;stroke:var(--surface-canvas);stroke-width:2.5;stroke-linejoin:round}.demo-finger-fold{fill:none;stroke:var(--surface-canvas);stroke-width:2;stroke-linecap:round;opacity:.55}.demo-finger-hand{transform:translate(3px,6px);transition:transform var(--motion-select) var(--ease-out)}.demo-finger.pressed .demo-finger-hand{transform:none}.demo-finger-ring{fill:none;stroke:var(--text-primary);stroke-width:2.5;transform-box:fill-box;transform-origin:center;animation:demo-press .64s var(--ease-out) both}.demo-finger-trail{fill:none;stroke:var(--text-primary);stroke-width:3;stroke-linecap:round;stroke-dasharray:.1 8;opacity:.5}.demo-finger-chevron{fill:none;stroke:var(--text-primary);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.demo-finger-chevron.second{opacity:.5}.demo-finger-chevrons{animation:demo-drift .9s var(--ease-in-out) infinite alternate}.demo-finger-overlay{position:absolute;z-index:3;overflow:visible;pointer-events:none}@keyframes demo-press{0%{opacity:1;transform:scale(.55)}70%{opacity:.9}to{opacity:.55;transform:scale(1)}}@keyframes demo-drift{0%{transform:translate(0)}to{transform:translate(4px)}}@media(prefers-reduced-motion:reduce){.demo-finger-hand{transition:none}.demo-finger-ring,.demo-finger-chevrons{animation:none}.demo-finger-ring{opacity:.7}}.win-sheet:has(>.par-stars){flex-wrap:wrap}.win-sheet>.par-stars{order:-1;display:flex;flex:0 0 100%;justify-content:center;gap:12px;margin:0}.win-sheet>.par-stars>.par-star{width:52px;height:52px}@media(max-width:600px){.win-sheet>.par-stars{gap:10px}.win-sheet>.par-stars>.par-star{width:40px;height:40px}}.play-card.split-landscape~.win-sheet[data-fit=compact]>.par-stars>.par-star{width:40px;height:40px}.play-card.split-landscape~.win-sheet[data-fit=tight]>.par-stars>.par-star{width:30px;height:30px}:root,:root[data-theme=dark]{color-scheme:dark;--surface-canvas: #0b1016;--surface-glow: #141c26;--surface-panel: #121922;--surface-raised: #1a232d;--text-primary: #e8edf2;--text-secondary: #a0acb9;--border-subtle: #25303b;--border-strong: #6b7987;--focus-ring: #7fb2ff;--mupomi-ink: #e8edf2;--mupomi-sub: #a0acb9;--app-bar-height: 48px}:root[data-theme=light]{color-scheme:light;--surface-canvas: #e8edf1;--surface-glow: #f5f7fa;--surface-panel: #f8fafc;--surface-raised: #ffffff;--text-primary: #17202a;--text-secondary: #525d69;--border-subtle: #cbd3da;--border-strong: #6c7885;--focus-ring: #1f56d0;--mupomi-ink: #17202a;--mupomi-sub: #525d69}:root.hosted{--host-bar: calc(var(--app-bar-height) + env(safe-area-inset-top, 0px));--host-top: calc(var(--host-bar) + var(--consent-h, 0px));--shell-inset-top: 0px}a{color:inherit}a:focus-visible,.hub:focus-visible{outline:3px solid var(--focus-ring);outline-offset:3px}.hub:focus{outline:none}.hub{width:min(100%,1080px);min-height:100dvh;margin:0 auto;padding:max(var(--space-8),env(safe-area-inset-top)) var(--gutter) max(var(--space-6),env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:var(--space-8)}.hub-head{display:grid;gap:var(--space-3);justify-items:start}@media(scripting:enabled){.site-static{display:none}}.site-static{max-width:68ch;gap:var(--space-5);line-height:1.5}.site-static p{margin:0}.site-static h1{margin:0;font-family:var(--font-display);font-size:var(--text-2xl);line-height:var(--leading-tight)}.site-static-brand{color:var(--text-secondary);font-weight:700}.site-static-games{display:grid;gap:var(--space-2);margin:0;padding-left:1.2em}.site-static-games a{font-weight:700}h1.hub-lockup{font-size:inherit;line-height:0}.hub-lockup svg{display:block;width:auto;height:clamp(44px,9vw,60px)}.hub-lockup .k-ink{stroke:var(--mupomi-ink)}.hub-lockup .k-dot{fill:var(--mupomi-ink)}.hub-lockup .k-sub{fill:var(--mupomi-sub)}.hub-tagline{margin:0;color:var(--text-secondary);font-size:var(--text-md)}.hub-section{margin:0 0 var(--space-3);color:var(--text-secondary);font-size:var(--label-size);font-weight:var(--label-weight);letter-spacing:var(--label-tracking);line-height:var(--leading-tight);text-transform:uppercase}.hub-testing{display:grid;justify-items:start;gap:16px}.hub-testing p{margin:0;color:var(--text-secondary)}.hub-count{font-variant-numeric:tabular-nums}.hub-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:10px;margin:0;padding:0;list-style:none}.hub-card{position:relative;display:flex;align-items:center;gap:var(--space-4);height:100%;padding:var(--space-4);border:1px solid var(--border-subtle);border-radius:var(--radius-lg);background:var(--surface-panel);text-decoration:none;transition:border-color var(--motion-select) var(--ease-out),background-color var(--motion-select) var(--ease-out),transform var(--motion-select) var(--ease-out)}@media(hover:hover){.hub-card:hover{border-color:var(--border-strong);background:var(--surface-raised)}}.hub-card:active{transform:scale(.985)}.hub-icon{flex:0 0 auto;display:grid;place-items:center;width:52px;height:52px;border-radius:var(--radius-md);background:var(--surface-canvas)}.hub-icon svg{width:40px;height:40px}.hub-card-text{display:grid;gap:var(--space-1);min-width:0}.hub-card-text strong{font-family:var(--font-display);font-size:var(--text-lg);font-weight:800;line-height:var(--leading-tight);letter-spacing:-.02em}.hub-card-text span{color:var(--text-secondary);font-size:var(--text-sm);line-height:1.35}.hub-group-incubator .hub-section{margin-bottom:var(--space-1)}.hub-note{margin:0 0 var(--space-3);color:var(--text-secondary);font-size:var(--text-sm)}.hub-group-incubator .hub-card{border-style:dashed;border-color:var(--border-strong)}.hub-foot{margin-top:auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.hub-settings{display:flex;flex-wrap:wrap;gap:0 20px}.hub-choice{display:inline-flex;align-items:center}.hub-choice .chip{min-height:44px;padding:0 6px;border:0;background:none;color:var(--text-secondary);font-size:var(--text-xs);font-weight:600;opacity:.7}.hub-choice .chip:first-child{padding-left:0}.hub-choice .chip+.chip:before{content:"·";margin-right:12px;color:var(--text-secondary);opacity:.7}@media(hover:hover){.hub-choice .chip:hover{color:var(--text-primary);opacity:1}}.hub-choice .chip[aria-pressed=true]{background:none;color:var(--text-primary);opacity:1}.hub-publisher{margin:0;color:var(--text-secondary);font-size:var(--text-xs)}.hub-publisher a{color:inherit;text-decoration:none}@media(hover:hover){.hub-publisher a:hover{color:var(--text-primary);text-decoration:underline;text-underline-offset:3px}}.hub-legal{display:flex;flex-wrap:wrap;gap:4px 16px}.hub-legal a,.app-legal a{display:inline-flex;align-items:center;min-height:44px;color:var(--text-secondary);font-size:var(--text-xs);font-weight:600;text-decoration:none}@media(hover:hover){.hub-legal a:hover,.app-legal a:hover{color:var(--text-primary);text-decoration:underline;text-underline-offset:3px}}.merch-shops{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:10px;margin:16px 0;padding:0;list-style:none}.merch-shop{display:grid;gap:var(--space-2);padding:var(--space-4);border:1px solid var(--border-subtle);border-radius:var(--radius-lg);background:var(--surface-panel)}.merch-shop strong{font-family:var(--font-display);font-size:var(--text-lg);font-weight:800;letter-spacing:-.02em}.merch-shop span{color:var(--text-secondary);font-size:var(--text-sm)}.merch-shop a{justify-self:start;margin-top:var(--space-1)}.hub-missing{align-items:flex-start;justify-content:center}.hub-missing p{margin:0;font-size:var(--text-lg)}.app-bar{position:sticky;top:0;z-index:20;display:flex;align-items:center;height:var(--host-bar);padding:env(safe-area-inset-top,0px) max(var(--gutter),calc((100% - var(--shell-max)) / 2 + var(--gutter))) 0;background:var(--surface-canvas);border-bottom:1px solid var(--border-subtle)}.app-back{display:inline-flex;align-items:center;gap:var(--space-1);min-height:var(--control-min);padding:0 10px 0 4px;margin-left:-8px;border-radius:var(--radius-control);color:var(--text-secondary);font-size:var(--text-sm);font-weight:650;text-decoration:none;transition:color var(--motion-select) var(--ease-out),background-color var(--motion-select) var(--ease-out)}@media(hover:hover){.app-back:hover{background:var(--surface-raised);color:var(--text-primary)}}.app-back svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.app-legal{display:flex;gap:var(--space-4);margin-left:auto}@media(max-height:520px)and (min-width:601px){:root.hosted{--host-bar: 0px;--host-left: calc(var(--app-rail-width) + env(safe-area-inset-left, 0px));--app-rail-width: 48px}.app-bar{position:fixed;top:0;bottom:0;left:0;flex-direction:column;justify-content:space-between;width:var(--host-left);height:auto;padding:max(8px,env(safe-area-inset-top,0px)) 0 max(8px,env(safe-area-inset-bottom,0px)) env(safe-area-inset-left,0px);border-bottom:0;border-right:1px solid var(--border-subtle)}.app-back{justify-content:center;width:var(--control-min);margin:0;padding:0}.app-back span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.app-legal{flex-direction:column;align-items:center;gap:var(--space-1);margin:0}.app-legal a{justify-content:center;min-width:var(--control-min);min-height:0;padding:var(--space-2) 0;writing-mode:vertical-rl;transform:rotate(180deg)}:root.hosted .game-root,:root.hosted .app-status{margin-left:var(--host-left)}:root.hosted .game-root{--gutter: max(16px, env(safe-area-inset-right, 0px))}}.app-status{display:grid;justify-items:center;gap:var(--space-3);margin:0;padding:var(--space-12) var(--gutter);color:var(--text-secondary);text-align:center}.app-status p{margin:0}.app-button{display:inline-flex;align-items:center;justify-content:center;min-height:var(--control-min);padding:0 var(--space-5);border:1px solid var(--border-strong);border-radius:var(--radius-control);background:var(--surface-raised);color:var(--text-primary);font-size:var(--text-md);font-weight:700;text-decoration:none;cursor:pointer;transition:border-color var(--motion-select) var(--ease-out),transform var(--motion-instant) var(--ease-out)}.app-button:active{transform:scale(.98)}@media(hover:hover){.app-button:hover{border-color:var(--text-secondary)}}.legal-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.legal-text{width:min(100%,66ch);color:var(--text-primary);font-size:var(--text-md);line-height:var(--leading-body);overflow-wrap:break-word}.legal-text h1{margin:0 0 var(--space-3);font-family:var(--font-display);font-size:clamp(var(--text-xl),7vw,var(--text-2xl));font-weight:800;line-height:var(--leading-tight);letter-spacing:-.025em;-webkit-user-select:text;user-select:text}.legal-text h2{margin:var(--space-8) 0 var(--space-2);font-family:var(--font-display);font-size:var(--text-lg);font-weight:800;line-height:var(--leading-tight);letter-spacing:-.01em}.legal-text h3{margin:var(--space-5) 0 var(--space-1);font-size:var(--text-md);font-weight:750;line-height:var(--leading-tight)}.legal-text p,.legal-text address,.legal-text ul{margin:0 0 var(--space-3)}.legal-text address{font-style:normal}.legal-text ul{padding-left:1.2em}.legal-text li+li{margin-top:8px}.legal-lead{color:var(--text-secondary);font-size:var(--text-lg);line-height:1.4}.legal-note{color:var(--text-secondary);font-size:var(--text-sm)}.legal-text a{text-underline-offset:3px}.hub-more{flex-basis:100%}.math .legal-text h1{white-space:normal}.math-draft{padding:var(--space-2) var(--space-3);border:1px dashed var(--border-strong);border-radius:var(--radius-md);color:var(--text-secondary);font-size:var(--text-sm)}.legal-text .math-games{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-5);padding:0;list-style:none}.legal-text .math-games li+li{margin-top:0}.math-games a{display:inline-flex;align-items:center;min-height:44px;font-family:var(--font-display);font-size:var(--text-lg);font-weight:800;letter-spacing:-.02em;color:var(--text-primary)}.math-shelf h3{color:var(--text-secondary);font-size:var(--label-size);font-weight:var(--label-weight);letter-spacing:var(--label-tracking);text-transform:uppercase}.legal-text .math-cards{display:grid;gap:var(--space-3);padding:0;list-style:none}.legal-text .math-cards li+li{margin-top:0}.math-card{display:grid;gap:var(--space-1);padding:var(--space-3) var(--space-4);border:1px solid var(--border-subtle);border-radius:var(--radius-lg);background:var(--surface-panel)}.math-card a{display:inline-flex;align-items:baseline;gap:var(--space-2);min-height:32px;color:var(--text-primary)}.math-card strong{font-weight:750}.math-card-arrow{color:var(--text-secondary);font-size:var(--text-sm)}.math-card-line{color:var(--text-secondary);font-size:var(--text-xs)}.math-card-reason{font-size:var(--text-sm);line-height:1.45}.math-cite{font-size:.7em;line-height:0}.math-cite a{padding:0 1px;color:var(--text-secondary);text-decoration:none}.math-figure{margin:var(--space-4) 0 var(--space-5)}.math-figure svg{display:block;width:min(100%,320px);height:auto}.math-figure figcaption{margin-top:var(--space-2);color:var(--text-secondary);font-size:var(--text-sm)}.math-figure .fig-coin,.math-figure .fig-pebble{fill:var(--text-primary)}.math-figure .fig-landed{fill:var(--text-primary);stroke:var(--focus-ring);stroke-width:2.5}.math-figure .fig-from{fill:none;stroke:var(--border-strong);stroke-width:2;stroke-dasharray:4 4}.math-figure .fig-arrow{fill:none;stroke:var(--text-secondary);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.math-figure .fig-tile{fill:var(--surface-raised);stroke:var(--border-subtle)}.math-figure .fig-wall{fill:var(--border-strong)}.math-sources{padding-left:1.4em;font-size:var(--text-sm);color:var(--text-secondary)}.math-sources p{margin:0}.math-sources li:target{color:var(--text-primary)}.legal-text .math-nav{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3) var(--space-5);margin-top:var(--space-6)}.hub-choice-label{margin-right:10px;color:var(--text-secondary);font-size:var(--text-xs);font-weight:600}:root.open-test-shown body{padding-bottom:var(--open-test-h, 0px)}:root.open-test-shown .win-sheet{margin-bottom:var(--open-test-h, 0px)}.open-test{position:fixed;z-index:30;left:var(--host-left, 0px);right:0;bottom:0;display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) max(var(--gutter),env(safe-area-inset-right,0px)) max(var(--space-2),env(safe-area-inset-bottom,0px)) max(var(--gutter),env(safe-area-inset-left,0px));border-top:1px solid var(--border-strong);background:var(--surface-raised);color:var(--text-primary)}.open-test-text{flex:1;margin:0;font-size:var(--text-sm);line-height:1.4}.open-test-text strong{font-weight:750}.open-test-go{flex:none;padding:0 var(--space-3);text-decoration:none}.open-test-close:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.open-test-close{flex:none;width:44px;height:44px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:none;color:var(--text-secondary);cursor:pointer}.open-test-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}@media(min-width:601px){.open-test{padding-left:max(var(--gutter),calc((100% - var(--shell-max)) / 2 + var(--gutter)));padding-right:max(var(--gutter),calc((100% - var(--shell-max)) / 2 + var(--gutter)))}}:root.consent-open body{padding-bottom:var(--consent-h, 0px)}:root.consent-open .win-sheet{margin-bottom:var(--consent-h, 0px)}.counter-consent{position:fixed;z-index:30;left:var(--host-left, 0px);right:0;bottom:0;display:grid;gap:var(--space-2);max-height:70dvh;overflow-y:auto;padding:var(--space-3) max(var(--gutter),env(safe-area-inset-right,0px)) max(var(--space-3),env(safe-area-inset-bottom,0px)) max(var(--gutter),env(safe-area-inset-left,0px));border-top:1px solid var(--border-strong);background:var(--surface-raised);color:var(--text-primary);box-shadow:0 -8px 24px #00000040}.counter-consent p{margin:0;font-size:var(--text-sm);line-height:1.4}.counter-consent strong{font-weight:750}.counter-consent p+p{margin-top:var(--space-1)}.counter-consent-note{color:var(--text-secondary)}.counter-consent-note a{text-underline-offset:3px}.counter-consent-toggle{padding:4px 0;border:0;background:none;color:inherit;font:inherit;font-weight:650;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.counter-consent-toggle:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.counter-consent-actions{display:grid;grid-template-columns:1fr 1fr;gap:var(--space-3)}.counter-consent-actions .app-button{width:100%;padding:0 var(--space-3)}@media(min-width:601px){.counter-consent{grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:var(--space-5);padding-left:max(var(--gutter),calc((100% - var(--shell-max)) / 2 + var(--gutter)));padding-right:max(var(--gutter),calc((100% - var(--shell-max)) / 2 + var(--gutter)))}.counter-consent-actions{grid-template-columns:repeat(2,minmax(9.5rem,auto))}}@media(prefers-reduced-motion:reduce){.hub-card,.app-back,.app-button{transition:none}.hub-card:active,.app-button:active{transform:none}}.hub-daily-card{position:relative}.hub-daily-card.is-solved{border-color:var(--border-strong)}.hub-daily-check{flex:none;width:24px;height:24px;margin-left:auto;fill:none;stroke:var(--text-primary);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}.app-daily{display:inline-flex;align-items:center;gap:var(--space-3);min-width:0;margin-left:var(--space-3);color:var(--text-secondary);font-size:var(--text-sm);font-weight:650}.app-daily-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.app-daily-mark{color:var(--text-primary);font-weight:800}.app-daily-share{display:inline-flex;align-items:center;gap:var(--space-1);min-height:var(--control-min);padding:0 var(--space-3);border:1px solid var(--border-strong);border-radius:var(--radius-control);background:var(--surface-raised);color:var(--text-primary);font:inherit;font-weight:700;cursor:pointer}.app-daily-share svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}@media(max-height:520px)and (min-width:601px){.app-daily{flex-direction:column;margin:0}.app-daily-label{display:none}.app-daily-share{justify-content:center;width:var(--control-min);padding:0}.app-daily-share span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}@media(max-width:480px){.app-bar:has(.app-daily) .app-back span,.app-daily-share span,.app-daily-date{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.app-daily{gap:var(--space-2);margin-left:var(--space-1)}.app-daily-share{justify-content:center;width:var(--control-min);padding:0}.app-bar:has(.app-daily) .app-legal{gap:var(--space-3)}}
