:root{color-scheme:dark;--ink:#f5f5ff;--muted:#afb8d1;--lime:#d8fa8a;--bg:#11182b;--line:#2c3650;font-family:ui-rounded,'Avenir Next','Segoe UI',system-ui,sans-serif;font-synthesis:none}
*{box-sizing:border-box}[hidden]{display:none!important}
body{margin:0;color:var(--ink);background:radial-gradient(ellipse at 50% 16%,#222b48 0,#11182b 53%,#0c1222 100%);min-height:100svh}
a{color:inherit}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:default;opacity:.55}
:where(button,a,input):focus-visible{outline:3px solid var(--lime);outline-offset:4px}h1:focus{outline:none}
.unlimited-shell{width:min(100%,460px);min-height:100svh;margin:auto;padding:max(18px,env(safe-area-inset-top)) 24px max(16px,env(safe-area-inset-bottom))}
.brand-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px}
.wordmark{text-decoration:none;font-size:39px;line-height:1;font-weight:850;letter-spacing:-2.3px;text-shadow:0 3px 0 #6475a244}
.wordmark span{display:inline-block;color:var(--lime);font-size:31px;vertical-align:top;margin-left:4px;transform:rotate(12deg)}
.back{font-size:12px;color:var(--muted);min-height:44px;display:inline-flex;align-items:center;text-underline-offset:4px}
.edition-label{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:750;letter-spacing:2.3px;color:var(--lime);margin-top:16px}
.edition-label span{color:var(--muted);font-size:9px;letter-spacing:1.3px;border:1px solid var(--line);padding:7px 9px;border-radius:20px}
.tile-strip{display:flex;justify-content:center;gap:9px;margin:36px 0 30px}.tile{width:48px;height:48px;border-radius:22%;display:block}.tile svg{width:100%;height:100%;fill:#000}
.pink{background:#F66FA7}.gold{background:#FFE96A}.teal{background:#67EBA9}.blue{background:#50B9EE}.purple{background:#B68AF0}
h1{font-size:clamp(28px,7.6vw,36px);font-weight:800;line-height:1.1;letter-spacing:-1.1px;margin:0 0 18px}
.lead{font-size:16px;line-height:1.55;color:#c9d2e9;margin:0 0 25px}.lead strong{font-weight:650;overflow-wrap:anywhere}
label{font-size:13px;font-weight:650;display:block;margin:0 0 9px}input{display:block;width:100%;min-height:54px;border:1px solid #56627c;border-radius:14px;background:#0c1425a6;color:var(--ink);padding:13px 16px;font-size:16px}input::placeholder{color:#8f9bb6}
.primary,.secondary{display:block;width:100%;min-height:54px;border-radius:17px;font-size:16px;font-weight:750;padding:14px 18px;margin-top:16px;text-align:center}
.primary{background:var(--lime);color:#1c2833;border:1px solid #f2ffd6;box-shadow:inset 0 2px 1px #ffffff90}.secondary{background:#ffffff03;border:1px solid #56627c;color:var(--ink)}.button-link{text-decoration:none;display:flex;align-items:center;justify-content:center}
.small{font-size:12px;line-height:1.6;color:var(--muted);margin:17px 0 0}.input-hint{margin-top:8px}.small a{text-underline-offset:3px}
.quiet,.text-actions button{background:none;border:0;color:var(--muted);text-decoration:underline;text-underline-offset:4px;min-height:44px;padding:10px 0;font-size:13px}.quiet{display:block;margin:10px auto 0}
.text-actions{display:flex;justify-content:space-between;gap:16px;margin-top:12px;flex-wrap:wrap}.text-actions button:only-child{margin:auto}
.status{font-size:13px;line-height:1.5;color:var(--lime);margin:16px 0 0;overflow-wrap:anywhere}.status:empty{margin:0}
.info-links{display:flex;justify-content:center;gap:26px;font-size:11px;color:var(--muted);margin-top:24px}.info-links a{display:inline-flex;align-items:center;min-height:44px;text-underline-offset:4px}
.welcome{font-size:11px;letter-spacing:1.1px;color:var(--muted);overflow-wrap:anywhere}.welcome strong{color:var(--lime)}
.access-card{display:flex;align-items:center;gap:14px;border:1px solid #d8fa8a33;background:#d8fa8a08;padding:18px;border-radius:18px;margin:22px 0}.access-card strong{font-size:14px}.access-card p{color:var(--muted);font-size:12px;margin:6px 0 0}.access-star{color:var(--lime);font-size:32px}
.policy{font-size:15px;line-height:1.65}.policy h1{margin-top:32px}.policy h2{font-size:20px;margin-top:28px}.policy p{color:#c9d2e9}
@media(min-width:700px){.unlimited-shell{padding-top:32px}.tile-strip{margin-top:48px;margin-bottom:36px}}
@media(max-height:680px){.unlimited-shell{padding-top:12px}.tile-strip{margin:22px 0}.lead{margin-bottom:18px}.info-links{margin-top:14px}}
@media(max-width:350px){.unlimited-shell{padding-left:18px;padding-right:18px}.tile-strip{gap:8px}.tile{width:43px;height:43px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

.compact .tile-strip{margin:22px 0}.compact h1{font-size:31px}.compact .lead{margin-bottom:18px}
.difficulty-list{display:grid;gap:12px}.difficulty{display:flex;align-items:center;justify-content:space-between;gap:15px;text-align:left;padding:18px;border:1px solid #62708c55;border-radius:18px;background:#ffffff04;color:var(--ink);min-height:87px}.difficulty:hover{border-color:var(--lime);background:#d8fa80;box-shadow:inset 0 0 0 100px #11182bef}.difficulty strong{display:block;font-size:21px}.difficulty small{display:block;color:var(--muted);font-size:12px;margin-top:6px}.difficulty>span:last-child{font-size:12px;color:var(--lime);text-align:right;white-space:nowrap}
.motion-setting{display:flex;align-items:center;justify-content:space-between;margin-top:22px;padding:10px 0}.motion-setting input{width:24px;height:24px;min-height:0;accent-color:var(--lime)}
.playing{height:100svh;overflow:hidden}.playing .unlimited-shell{height:100svh;min-height:0;max-height:1000px;width:min(100%,470px);display:flex;flex-direction:column;padding:max(10px,env(safe-area-inset-top)) 22px max(10px,env(safe-area-inset-bottom));gap:6px}
.playing .edition-label,.playing .tile-strip,.playing .info-links{display:none}.playing .brand-row{flex:none;min-height:48px}.playing #content{flex:1;min-height:0;display:flex;flex-direction:column}.playing [data-screen="game"]{flex:1;min-height:0;display:flex;flex-direction:column;gap:10px}.playing #status{font-size:11px;line-height:1.25;margin:0;max-height:30px;overflow:auto;flex:none}
.game-context{display:flex;align-items:center;justify-content:space-between;flex:none;min-height:42px}.game-context h1{font-size:14px;letter-spacing:1px;margin:0;color:var(--lime)}.game-context .quiet{margin:0;min-height:44px;font-size:13px}
.game-score{display:flex;align-items:center;justify-content:space-between;flex:none;min-height:76px}.label{font-size:10px;letter-spacing:1.7px;font-weight:750;color:var(--muted)}.game-score strong{display:block;font-size:42px;line-height:1.15;letter-spacing:-1px;font-variant-numeric:tabular-nums}.game-score .target{text-align:right}.game-score .target strong{font-size:34px}
.board-space{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}.game-board{display:grid;grid-template-columns:repeat(8,1fr);gap:4px;padding:8px;border:1px solid #ffffff20;border-radius:18px;background:linear-gradient(145deg,#ffffff0b,#ffffff02);box-shadow:inset 0 2px 1px #ffffff15;width:min(100%,calc(100svh - 330px));aspect-ratio:1}
.game-tile{position:relative;display:grid;place-items:center;min-width:0;min-height:0;aspect-ratio:1;border-radius:7px;background:var(--jewel);overflow:hidden}.game-tile svg,.game-palette svg{width:100%;height:100%;fill:#000;display:block}.game-tile.origin:after{content:'';position:absolute;top:2px;left:2px;width:6px;height:6px;border-radius:50%;background:#11182b;border:1px solid #fff9}
.c0{--jewel:#F66FA7}.c1{--jewel:#FFE96A}.c2{--jewel:#67EBA9}.c3{--jewel:#50B9EE}.c4{--jewel:#B68AF0}
.game-progress{display:flex;gap:18px;align-items:center;height:26px;flex:none}.game-progress progress{flex:1;width:0;height:5px;border:0;appearance:none;border-radius:5px;background:#ffffff10;color:var(--lime)}progress::-webkit-progress-bar{background:#ffffff10;border-radius:5px}progress::-webkit-progress-value{background:var(--lime);border-radius:5px}progress::-moz-progress-bar{background:var(--lime);border-radius:5px}.game-progress span{font-size:11px;letter-spacing:1px;color:var(--muted);min-width:53px;text-align:right;font-variant-numeric:tabular-nums}
.game-palette{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;flex:none}.game-palette button{background:var(--jewel);border:0;border-radius:15px;height:58px;min-width:0;padding:0;position:relative}.game-palette button:disabled{opacity:.65}.game-palette button[aria-pressed="true"]{opacity:1;outline:2px solid var(--lime);outline-offset:3px}
.sync-line{min-height:36px;display:flex;align-items:center;justify-content:space-between;gap:5px;color:var(--muted);font-size:11px;flex:none}.sync-line button{border:0;background:transparent;color:var(--lime);font-size:11px;text-decoration:underline;min-height:36px;white-space:nowrap;padding:5px}.sync-line span{max-width:76%}
[data-screen="results"]{text-align:center}.result-score strong{display:block;font-size:90px;line-height:1.1;font-variant-numeric:tabular-nums}.result-score span{color:var(--muted);font-size:16px}.result-delta{color:var(--lime);font-weight:700;margin:20px 0 0}.result-target{margin-top:7px}.result-tiles{display:flex;justify-content:center;gap:9px;margin:25px 0}.result-tiles .game-tile{width:42px;height:42px}
.game-tile.capture{animation:tile-pop 380ms cubic-bezier(.2,.8,.2,1)}.game-tile.capture:before{content:'';position:absolute;inset:0;border-radius:inherit;background:linear-gradient(115deg,transparent 30%,#fff9 45%,transparent 60%);animation:glint 360ms both;pointer-events:none}
@keyframes tile-pop{0%{transform:scale(.9);filter:brightness(1.1)}40%{transform:scale(1.13);filter:brightness(1.18);z-index:2}100%{transform:scale(1);filter:brightness(1)}}
@keyframes glint{from{opacity:1;transform:translateX(-12%)}to{opacity:0;transform:translateX(12%)}}
.celebrate .game-tile{animation:tile-pop 650ms cubic-bezier(.2,.8,.2,1)}.celebrate .game-tile:nth-child(2){animation-delay:80ms}.celebrate .game-tile:nth-child(3){animation-delay:160ms}.celebrate .game-tile:nth-child(4){animation-delay:240ms}.celebrate .game-tile:nth-child(5){animation-delay:320ms}
@media(max-height:680px){.playing .game-score{min-height:58px}.playing [data-screen="game"]{gap:6px}.game-board{width:min(100%,calc(100svh - 350px));gap:3px;padding:6px}.game-palette button{height:50px}.compact .tile-strip{display:none}.compact h1{font-size:28px;margin-top:18px}.compact .info-links{margin-top:4px}.difficulty{min-height:72px;padding:13px}}
@media(max-width:350px){.playing .unlimited-shell{padding-left:15px;padding-right:15px}.game-palette{gap:8px}.game-palette button{height:48px}.game-score strong{font-size:36px}}

@supports(width:1cqh){.board-space{container-type:size}.game-board{width:min(100%,100cqh)}}
.result-screen .tile-strip{display:none}.result-screen .edition-label{margin-bottom:28px}

/* Read-only reports; all gameplay layout and effects above remain unchanged. */
.report-links{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.report-links button{margin:0;font-size:13px}
.report-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.report-header h1{font-size:28px;margin:0}.report-header .quiet{margin:0;white-space:nowrap}
.stats-card{margin:18px 0;padding:18px 15px;border:1px solid #62708c55;border-radius:18px;background:#ffffff04}.stats-card h2{font-size:18px;letter-spacing:-.3px;margin:0 0 15px}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px 5px}.metric-grid.two{grid-template-columns:repeat(2,1fr);gap:23px 12px}.metric{text-align:center;min-width:0}.metric strong{display:block;font-size:25px;font-variant-numeric:tabular-nums;letter-spacing:-.7px}.metric span{display:block;font-size:10px;line-height:1.4;color:var(--muted);margin-top:6px}.expert-record{border-color:#d8fa8a55}.qualification{font-size:13px;line-height:1.55;color:var(--lime);margin:18px 0}.perfect-twenty{padding:14px;background:#d8fa8a0c;border:1px solid #d8fa8a44;border-radius:12px;color:var(--lime);font-size:15px;line-height:1.5}.past-records{font-size:13px;padding:15px 0;color:var(--muted)}.past-records summary{cursor:pointer;min-height:36px}
.report-kicker{font-size:12px;color:var(--lime);margin:20px 0 0}.ranking-table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px;margin:24px 0}.ranking-table caption{text-align:left;font-size:11px;line-height:1.5;color:var(--muted);padding:0 0 12px}.ranking-table th,.ranking-table td{padding:13px 7px;border-bottom:1px solid #ffffff14;text-align:left}.ranking-table thead th{font-size:10px;letter-spacing:.6px;text-transform:uppercase;color:var(--muted)}.ranking-table th:first-child,.ranking-table td:first-child{width:48px}.ranking-table th:last-child,.ranking-table td:last-child{width:78px;text-align:right;font-variant-numeric:tabular-nums}.ranking-table tbody th{overflow-wrap:anywhere;font-weight:600}.ranking-table .your-ranking{background:#d8fa8a0a;color:var(--lime)}.rank-empty{padding:28px 15px;border:1px solid #62708c55;border-radius:18px;line-height:1.7;font-size:15px;margin-top:24px}.own-position{padding:15px;border:1px solid #d8fa8a44;border-radius:14px;color:var(--lime);font-size:13px;overflow-wrap:anywhere}#rankingsBody>progress{width:100%;height:5px;appearance:none;border:0;border-radius:6px;background:#ffffff10;color:var(--lime)}
[data-screen="stats"]>p.small{margin-top:18px}.report-header+div{margin-top:18px}

/* Unlimited v0.5: account access, personal-best standings, and responsive transitions. */
.header-actions{display:flex;align-items:center;gap:14px}.account-button{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:8px 10px;background:#ffffff08;border:1px solid #62708c70;border-radius:12px;color:var(--ink);font-size:12px;font-weight:700}.account-button svg{width:17px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8}.account-email{color:var(--muted);font-size:14px;overflow-wrap:anywhere;margin:0 0 24px}
[data-screen="home"] [data-report="stats"]{background:#b4dfd8;border-color:#d0f0e9;color:#143531}[data-screen="home"] [data-report="rankings"]{background:#e6d29b;border-color:#f0e1bb;color:#3e3213}
button:active:not(:disabled){transform:translateY(1px);filter:brightness(.94)}
.expert-standing{flex:none;text-align:center;font-size:12px;line-height:1.45;margin:0;padding:8px 9px;border-radius:11px;background:#e6d29b0d;border:1px solid #e6d29b35;color:#f0e1bb;font-variant-numeric:tabular-nums}
/* Keep the save-status row in the layout, even when it is empty. Otherwise
   each save resizes the available board space and moves the color buttons. */
.ranking-explainer-title{font-size:17px;margin:23px 0 8px;letter-spacing:-.2px}.ranking-explainer{font-size:13px;line-height:1.6;color:#c9d2e9;margin:0}.player-total{font-size:12px;font-weight:700;color:#e6d29b;margin:16px 0 0}.ranking-table{margin-bottom:10px}
.expert-result{margin:18px 0;padding:15px 12px;border:1px solid #e6d29b55;border-radius:16px;background:#e6d29b08}.expert-result p{margin:6px 0;font-size:13px;line-height:1.4;color:#c9d2e9}.expert-result .record-best{font-size:18px;font-weight:750;color:#f0e1bb}.expert-result .record-rank{font-weight:700;color:var(--lime)}.new-best-title{font-size:22px;letter-spacing:-.5px;color:var(--lime);margin:0 0 12px}
.result-screen .result-score strong{font-size:72px}.result-screen .result-tiles{margin:18px 0}.result-screen .edition-label{margin-bottom:20px}
.puzzle-loading{display:grid;place-items:center;min-height:260px;color:var(--muted);font-size:14px}.loading-spark{font-size:62px;color:var(--lime);animation:loading-breathe 900ms ease-in-out infinite alternate}.puzzle-loading p{margin:0 0 60px}@keyframes loading-breathe{to{opacity:.45;transform:scale(.85)}}
#confetti{pointer-events:none;position:fixed;inset:0;overflow:hidden;z-index:20}.confetti-piece{position:absolute;top:-20px;width:9px;height:14px;background:var(--jewel);animation:confetti-fall 2100ms ease-in forwards}.confetti-0{left:7%;animation-delay:0ms}.confetti-1{left:18%;animation-delay:140ms}.confetti-2{left:30%;animation-delay:70ms}.confetti-3{left:43%;animation-delay:210ms}.confetti-4{left:55%;animation-delay:40ms}.confetti-5{left:67%;animation-delay:180ms}.confetti-6{left:79%;animation-delay:110ms}.confetti-7{left:91%;animation-delay:250ms}.confetti-piece:nth-child(3n){width:7px;height:7px;border-radius:50%;animation-duration:1700ms}.confetti-piece:nth-child(4n){animation-duration:1900ms}@keyframes confetti-fall{0%{transform:translateY(0) rotate(0deg);opacity:1}100%{transform:translate(25px,100vh) rotate(620deg);opacity:0}}
@media(max-width:350px){.header-actions{gap:8px}.account-button{padding:7px;font-size:11px}.back{font-size:11px}.expert-standing{font-size:11px;padding:6px}.wordmark{font-size:35px}}
@media(prefers-reduced-motion:reduce){#confetti{display:none}}

/* Clear, consistent navigation for Unlimited v0.5.2. */
.nav-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 12px;border:1px solid #7886a4;border-radius:12px;background:#ffffff0c;color:var(--ink);font:700 12px/1.3 ui-rounded,'Avenir Next','Segoe UI',system-ui,sans-serif;text-decoration:none;white-space:nowrap;touch-action:manipulation}
.nav-button:hover{background:#ffffff16;border-color:#b3bfd7}.header-actions{gap:8px}.header-daily{padding:9px 10px}.report-navigation{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 24px}.report-navigation .nav-button{width:100%;font-size:14px;min-height:48px}.reports .header-daily{display:none}.game-context .nav-button{font-size:12px;padding:8px 11px}
@media(max-width:350px){.brand-row{gap:8px}.brand-row .wordmark{font-size:30px}.brand-row .wordmark span{font-size:24px}.header-daily{font-size:11px;padding:8px}.account-button{padding:7px;font-size:11px}.header-actions{gap:6px}}
.brand-row .wordmark{white-space:nowrap;flex-shrink:0;font-size:32px}.brand-row .wordmark span{font-size:26px}
@media(max-width:350px){.brand-row .wordmark{font-size:26px}.brand-row .wordmark span{font-size:21px}}
