/* The sheet owns the screen; secondary choices live in Menu. */
:root{color-scheme:light;--ink:#244147;--muted:#566e73;--paper:#f6f2ea;--coral:#d65139;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}
*{box-sizing:border-box}html{height:100%;background:var(--paper)}body{margin:0;min-width:280px;height:100vh;height:100dvh;display:flex;flex-direction:column;color:var(--ink);background:radial-gradient(ellipse at 15% 35%,#e0ece4 0,transparent 44%),radial-gradient(ellipse at 90% 52%,#eee4ec 0,transparent 42%),var(--paper)}
button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #ac432f;outline-offset:3px}button:disabled{cursor:default;opacity:.42}a{color:inherit;text-underline-offset:4px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.site-header{width:100%;max-width:800px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:max(4px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));flex:none}
.wordmark{display:inline-flex;align-items:center;min-height:44px;gap:8px;text-decoration:none;font-weight:750;font-size:21px;letter-spacing:-.7px;white-space:nowrap}.wordmark svg{width:27px;height:27px;fill:#d8e8df;stroke:#8eb9ae;stroke-width:1.3}.wordmark svg path{fill:none;stroke:var(--coral);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.brand-dot{color:var(--coral)}.dayplay-link{min-height:44px;display:inline-flex;align-items:center;font-size:14px;color:var(--muted);text-decoration:none}
main{flex:1;min-height:0;display:flex;padding:0 max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}.game{width:100%;max-width:760px;min-height:0;margin:0 auto;display:flex;flex-direction:column}.play-shell{display:flex;flex-direction:column;flex:1;min-height:0;width:100%}
.board-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;flex:none;min-height:48px}.board-heading>div{min-width:0}.heading-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap}h2{font-size:17px;line-height:1.25;margin:0;letter-spacing:-.4px}.day-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);margin:0}.progress{display:flex;gap:5px}.progress span{width:7px;height:7px;border:1.5px solid #9fb8ae;border-radius:50%}.progress span.done{background:var(--coral);border-color:var(--coral)}.progress span.current{background:#fff9ed;border-color:var(--coral)}
.board-navigation{margin-left:auto;display:flex;align-items:center;gap:4px}.menu-button,.fullscreen-toggle{min-height:44px;border:0;background:none;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px;font-size:14px;font-weight:600}.menu-button svg,.fullscreen-toggle svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.fullscreen-toggle{min-width:44px}.fullscreen-label{font-size:13px;font-weight:500}
.fullscreen-fit{display:flex;flex:1;min-height:180px;width:100%;container-type:size;max-height:calc(min(100vw - 36px,640px)*var(--rows)/var(--cols) + 12px)}.board-wrap{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:0;padding:6px}.board{position:relative;flex:none;width:min(calc(100cqw - 12px),calc((100cqh - 12px)*var(--cols)/var(--rows)));max-width:640px;touch-action:none;user-select:none;-webkit-user-select:none;isolation:isolate;outline:none;filter:drop-shadow(0 12px 12px #4777750c)}
.sheet-art{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.pop-trail{stroke:var(--coral);opacity:.82;filter:drop-shadow(0 1px 1px #ba533526)}.bubble{position:absolute;left:calc(var(--x)*100%/var(--cols));top:calc(var(--y)*100%/var(--rows));width:calc(100%/var(--cols));height:calc(100%/var(--rows));border:0;padding:12%;padding:calc(100%/var(--cols)*.115);border-radius:50%;background:none;display:grid;place-items:center;touch-action:none;z-index:1}.dome{display:block;position:relative;width:100%;height:100%;border-radius:48%;border:1px solid #8fb9b47d;background:radial-gradient(ellipse at 30% 19%,#fffffffa 0%,#fffdf0a3 12%,transparent 32%),radial-gradient(ellipse at 78% 84%,#b39bba80 0%,transparent 54%),radial-gradient(ellipse at 39% 31%,#efffffed 13%,#c4e6e4bf 52%,#93c5bf99 74%,#e7f4dfcc 90%);box-shadow:inset 2px 2px 3px #fffdfac4,inset -2px -4px 6px #5d92965c,1px 4px 5px #3d7c7b24,0 0 0 3px #eefcfa61;transition:transform .12s,background .15s,box-shadow .15s}.dome:after{content:"";position:absolute;inset:7%;border:1px solid #f4fff86b;border-radius:48%;transform:rotate(-14deg)}.dome-shine{position:absolute;left:19%;top:11%;width:38%;height:23%;background:linear-gradient(160deg,#fff 8%,#ffffff60 60%,transparent);border-radius:50%;transform:rotate(-28deg);filter:blur(.5px)}.membrane{position:absolute;inset:12%;border-radius:43%;opacity:0;background:conic-gradient(from 15deg,transparent 5%,#7da8aa35 7%,transparent 9%,transparent 22%,#ffffffbf 23%,transparent 26%,transparent 40%,#7da8aa38 42%,transparent 44%,transparent 66%,#ffffffbb 67%,transparent 70%,transparent 87%,#7da8aa45 88%,transparent 91%);transform:rotate(22deg)}.bubble-mark{position:absolute;inset:0;display:grid;place-items:center;font-size:clamp(10px,2.7vw,13px);font-weight:800;letter-spacing:.3px;color:#345d55;z-index:1}.finish .dome{box-shadow:inset 2px 2px 3px #fffdfac4,inset -2px -4px 6px #5d92965c,1px 4px 5px #3d7c7b24,0 0 0 3px #ce775a73}.finish .bubble-mark{color:#8d4734}.popped .dome{transform:scale(.87);background:radial-gradient(ellipse at 40% 35%,#e0eddd65,#c4ddd95c 64%,#a3c3bc65);box-shadow:inset 0 1px 4px #5d85864f,inset 0 -1px 2px #fffaffc4,0 0 0 3px #eff8e821;border-color:#92b7b069}.popped .dome-shine{opacity:.16}.popped .membrane{opacity:1}.popped .bubble-mark{opacity:0}.endpoint .dome{box-shadow:inset 0 1px 4px #5d85864f,0 0 0 3px #da6346;}.endpoint .dome:before{content:"";width:12%;height:12%;background:var(--coral);position:absolute;left:44%;top:44%;border-radius:50%;box-shadow:0 0 0 5px #fff7e9b0}.pop-now .dome{animation:pop .28s ease-out}.denied .dome{animation:shake .22s ease-in-out}.bubble:hover:not(.popped) .dome{transform:scale(.97)}.bubble:active:not(.popped) .dome{transform:scale(.87)}@keyframes pop{0%{transform:scale(.71)}55%{transform:scale(.95)}100%{transform:scale(.87)}}@keyframes shake{25%{translate:-3px 0}75%{translate:3px 0}}
.status-line{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:38px;margin:0 4px;flex:none}.status-line p{font-size:14px;line-height:1.35;margin:0;text-wrap:pretty}.status-line>span{font-size:13px;white-space:nowrap;color:var(--muted);font-variant-numeric:tabular-nums}.play-controls{display:flex;justify-content:center;align-items:center;gap:10px;flex:none;flex-wrap:wrap;padding:4px 0}
.tool-button,.primary{min-height:44px;border:1px solid #b0c4b9;border-radius:99px;background:#fffdf7a8;padding:10px 22px;font-size:15px;font-weight:650;display:inline-flex;align-items:center;justify-content:center;gap:7px}.tool-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.primary{background:var(--ink);border-color:var(--ink);color:#fffdf5}.play-controls .primary{min-width:180px}
dialog{border:1px solid #ced3c8;border-radius:24px;color:var(--ink);background:#fffdf7;max-width:430px;width:calc(100% - 32px);padding:22px;max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 20px 80px #23433d2e}dialog::backdrop{background:#28413966;backdrop-filter:blur(5px)}dialog h2{font-family:Georgia,serif;font-size:30px;font-weight:500;letter-spacing:-.8px;text-wrap:balance}dialog p{font-size:15px;line-height:1.55}dialog form{display:flex;justify-content:flex-end;margin:0}.dialog-close{border:0;background:none;font-size:14px;padding:10px 0;min-height:44px;color:var(--muted)}
#result{text-align:center;padding:16px 24px 26px}#result-close{display:block;margin-left:auto;font-size:13px}.result-kicker{color:var(--coral);font-size:12px;font-weight:750;letter-spacing:1.4px;margin:4px 0 10px}.result-actions{display:flex;flex-direction:column;gap:10px;margin-top:22px}.result-actions .primary{min-height:50px;font-size:17px}.result-actions .tool-button{background:none;border-color:#d6dfd3}#result-detail{color:var(--muted);margin:12px 0 0;text-wrap:pretty}.mode-tabs{display:flex;gap:4px;flex-wrap:wrap;margin:22px 0 12px;padding:4px;background:#e6e6dd;border-radius:20px}.mode-tabs button{flex:1;min-height:48px;border:0;border-radius:16px;background:none;font-size:14px;font-weight:650;padding:9px}.mode-tabs button[aria-pressed=true]{background:#fffdf8;box-shadow:0 2px 5px #35504c13}.utility-row{display:flex;gap:12px;flex-wrap:wrap;justify-content:center}.quiet-button{border:0;background:none;font-size:15px;min-height:44px;padding:10px}.run-note{font-size:14px;line-height:1.6;color:var(--muted);text-align:center;margin:16px 0}.reset-note{display:block}.day-switch{display:block;margin:auto;border:0;background:none;min-height:44px;text-decoration:underline;font-size:14px}.menu-links{display:flex;justify-content:center;flex-wrap:wrap;gap:20px;border-top:1px solid #d6dfd3;padding-top:10px}.menu-links a{display:inline-flex;align-items:center;min-height:44px;font-size:14px;text-decoration:none}.save-notice{font-size:13px;line-height:1.4;margin:4px 0;text-align:center;color:#8d4734}#share-copy{width:100%;font:inherit;font-size:14px;line-height:1.6;resize:vertical;border:1px solid #bacdc1;border-radius:10px;padding:12px}
.game-fullscreen-lock{overflow:hidden}.game.is-fullscreen{position:fixed;inset:0;z-index:10000;width:100%;max-width:none;height:100dvh;background:var(--paper);padding:max(4px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));overflow:hidden}.is-fullscreen .play-shell{max-width:860px;margin:auto}.is-fullscreen .fullscreen-fit{min-height:0}.is-fullscreen .save-notice{display:none}.fullscreen-tip{position:absolute;z-index:4;max-width:300px;right:12px;top:52px;background:#fffdf7;border:1px solid #bacdc1;border-radius:12px;padding:10px 50px 10px 14px;box-shadow:0 8px 30px #24414726}.fullscreen-tip p{font-size:13px;line-height:1.5;margin:0}.fullscreen-tip button{position:absolute;right:5px;top:5px;border:0;background:none;min-width:44px;min-height:44px}
.in-dayplay-app .site-header{display:none}.in-dayplay-app main,.in-dayplay-app .game.is-fullscreen{padding:0 12px 6px}.in-dayplay-app .board-heading{min-height:44px}
@media(max-width:350px){.site-header{padding-left:12px;padding-right:12px}.wordmark{font-size:19px}.board-heading h2{font-size:15px}.heading-line{gap:6px}.board-navigation{gap:0}.menu-button{padding:8px 4px}.progress{gap:4px}}
@media(max-height:540px) and (orientation:landscape){.site-header{max-width:none;padding-top:0}.play-shell,.is-fullscreen .play-shell{display:grid;grid-template-columns:minmax(0,1fr) 220px;grid-template-rows:auto 1fr auto;column-gap:18px;max-width:1050px;margin:auto}.board-heading{grid-column:2;grid-row:1;flex-wrap:wrap;justify-content:center}.fullscreen-fit{grid-column:1;grid-row:1/4;height:100%;min-height:0;max-height:none}.status-line{grid-column:2;grid-row:2;align-self:center}.play-controls{grid-column:2;grid-row:3}.tool-button{padding:10px 15px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.privacy-consent{position:fixed;z-index:1000;background:#fffdf7;color:#244147;border:1px solid #bacdc1;border-radius:16px;padding:18px;max-width:min(360px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;box-shadow:0 12px 45px #24414725;font-size:14px;line-height:1.5}.privacy-consent p{margin:0 0 12px}.privacy-consent-actions{display:flex;gap:8px;flex-wrap:wrap}.privacy-consent button{min-height:44px;padding:10px 15px;border:1px solid #a9bfb2;border-radius:99px;background:#244147;color:#fffdf7;font-size:14px}.privacy-consent button+button{background:#fffdf7;color:#244147}
