:root{--ink:#1f2937;--muted:#687386;--paper:#f5f7f2;--white:#fff;--green:#187a60;--line:#e8ece7;--coral:#fb7185;--gold:#fbbf24;--mint:#34d399;--blue:#60a5fa;--violet:#a78bfa;--pink:#f472b6;--shadow:0 24px 70px #1c3b2d18}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}a{color:inherit}h1,h2,h3{font-family:'Trebuchet MS',Arial,sans-serif;letter-spacing:-1px}h1,h2,h3,p{margin-top:0}
.site-header{height:76px;max-width:1160px;margin:auto;padding:0 28px;display:flex;align-items:center;justify-content:space-between}.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;font-family:'Trebuchet MS',Arial,sans-serif;font-size:18px;font-weight:700;letter-spacing:-.5px}.brand-light{font-weight:500;color:#697568}.brand-mark{width:28px;height:28px;display:grid;grid-template-columns:1fr 1fr;gap:3px;transform:rotate(-7deg)}.brand-mark i{border-radius:4px;background:var(--coral)}.brand-mark i:nth-child(2){background:var(--gold)}.brand-mark i:nth-child(3){background:var(--mint)}.brand-mark i:nth-child(4){background:var(--blue)}nav{display:flex;gap:30px}nav a,.footer-links a{font-size:13px;color:var(--muted);text-decoration:none;font-weight:600}nav a:hover,.footer-links a:hover{color:var(--green)}
.hero{max-width:1160px;margin:22px auto 0;padding:30px 28px 42px;display:grid;grid-template-columns:.85fr 1.15fr;gap:42px;align-items:center}.hero-copy{padding:0 6px 0 8px}.eyebrow{color:var(--green);font-size:10px;line-height:1.3;font-weight:800;letter-spacing:1.45px;margin:0 0 14px}.live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#51c69b;box-shadow:0 0 0 4px #51c69b21;margin-right:7px;vertical-align:1px}h1{font-size:clamp(40px,5vw,60px);line-height:1.03;margin:0 0 18px;max-width:480px}.hero-lede{font-size:16px;line-height:1.7;color:#5f6a78;max-width:410px;margin-bottom:22px}.hero-lede strong{color:var(--ink)}.hero-tags{display:flex;gap:8px;flex-wrap:wrap}.hero-tags span{padding:8px 11px;border:1px solid #e4e9e1;border-radius:99px;color:#566273;font-size:11px;font-weight:600;background:#ffffff6e}
.game-card{background:var(--white);border:1px solid #edf0eb;border-radius:24px;padding:24px 28px 20px;box-shadow:var(--shadow);max-width:580px;width:100%;justify-self:end}.game-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.game-kicker{font-size:9px;letter-spacing:1.5px;color:#8a948f;font-weight:800;margin:0 0 4px}.game-top h2{font-size:19px;letter-spacing:-.5px;margin:0}.icon-button{border:1px solid var(--line);border-radius:11px;background:white;width:38px;height:38px;font-size:23px;color:#61706b;cursor:pointer;transition:.2s}.icon-button:hover{background:#eaf7f1;color:var(--green);transform:rotate(35deg)}.stats{display:grid;grid-template-columns:75px 1fr 58px;gap:14px;align-items:end;margin-bottom:12px}.stat{display:flex;flex-direction:column;gap:2px}.stat-label{font-size:8px;letter-spacing:1.05px;font-weight:800;color:#9aa39e}.stat strong{font-size:23px}.stat-right{text-align:right;align-items:flex-end}.stat-right strong{font-size:18px}.progress-meta{display:flex;justify-content:space-between;font-size:9px;color:#87918b;margin:0 0 6px}.progress-meta strong{color:var(--ink)}.progress-track{height:6px;background:#eff2ee;border-radius:10px;overflow:hidden}.progress-bar{height:100%;width:1%;background:linear-gradient(90deg,#34d399,#60a5fa);border-radius:10px;transition:width .25s}
.board{width:min(100%,390px);aspect-ratio:1;margin:0 auto 16px;border-radius:12px;overflow:hidden;display:grid;grid-template-columns:repeat(10,1fr);gap:3px;background:#fff;padding:2px}.tile{border-radius:5px;transition:background-color .19s ease}.board.won .tile{animation:winpop .3s ease both;animation-delay:calc(var(--i)*4ms)}@keyframes winpop{50%{transform:scale(.8);border-radius:50%}}.palette{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.color-choice{position:relative;border:0;background:#f6f8f5;border-radius:12px;height:47px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:transform .16s,background .16s;touch-action:manipulation}.color-choice:hover{transform:translateY(-2px);background:#edf3ee}.color-choice:focus-visible,.icon-button:focus-visible,.play-again:focus-visible{outline:3px solid #215e4d;outline-offset:3px}.color-choice span{width:21px;height:21px;border-radius:7px;background:var(--color);box-shadow:inset 0 0 0 1px #0000000b}.color-choice kbd{position:absolute;right:5px;bottom:3px;color:#a1aaa3;font:600 8px Arial,sans-serif;background:none;border:0}.color-choice[aria-pressed="true"]{box-shadow:0 0 0 2px #24362f inset;background:#f0f5f0}.game-message{min-height:23px;margin:10px 0 0;text-align:center;color:#718078;font-size:11px}.game-message[data-state="win"]{color:#187a60;font-weight:700}.game-message[data-state="loss"]{color:#c15b52;font-weight:700}.play-again{display:block;margin:0 auto 2px;border:0;background:none;color:var(--green);font-weight:700;font-size:12px;cursor:pointer}.play-again span{margin-left:3px}
.content-section,.faq-section{max-width:1080px;margin:0 auto;padding:70px 28px}.intro{border-top:1px solid #e6eae4}.section-heading{text-align:center;max-width:620px;margin:0 auto 34px}.section-heading .eyebrow{margin-bottom:10px}.section-heading h2,.strategy h2{font-size:32px;line-height:1.15;margin:0 0 12px}.section-heading>p:last-child{color:var(--muted);font-size:14px;line-height:1.7;margin:0}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.step{background:#fff;border:1px solid var(--line);border-radius:16px;padding:23px 22px;min-height:178px}.step-number{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:9px;background:#eaf6f0;color:var(--green);font-size:11px;font-weight:700;margin-bottom:16px}.step h3,.tip-card h3{font-size:16px;letter-spacing:-.3px;margin:0 0 8px}.step p,.tip-card p,.strategy-copy>p:not(.eyebrow){color:var(--muted);font-size:12px;line-height:1.75;margin:0}
.strategy{display:grid;grid-template-columns:1fr .75fr;gap:80px;align-items:center;border-top:1px solid #e6eae4;border-bottom:1px solid #e6eae4}.strategy-copy h2{max-width:430px}.strategy-copy>p:not(.eyebrow){font-size:13px;max-width:500px;margin-top:12px}.tip-card{border-radius:18px;background:#eaf5ed;padding:25px;position:relative;overflow:hidden}.tip-icon{width:34px;height:34px;border-radius:11px;background:white;display:grid;place-items:center;color:var(--green);font-size:19px;margin-bottom:17px}.tip-card p{max-width:300px}.mini-board{display:grid;grid-template-columns:repeat(4,24px);gap:4px;position:absolute;right:20px;bottom:20px;transform:rotate(-10deg);opacity:.8}.mini-board i{width:24px;height:24px;border-radius:6px}.c1{background:var(--coral)}.c2{background:var(--gold)}.c3{background:var(--mint)}
.faq-section{padding-top:72px;padding-bottom:82px}.faq-section .section-heading{margin-bottom:24px}.faq-list{max-width:750px;margin:0 auto}.faq-list details{border-bottom:1px solid #e2e8e1;padding:17px 4px}.faq-list summary{font-size:14px;font-weight:600;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:20px}.faq-list summary::-webkit-details-marker{display:none}.faq-list summary:after{content:'+';font-size:19px;color:var(--green);transition:transform .2s}.faq-list details[open] summary:after{transform:rotate(45deg)}.faq-list details p{color:var(--muted);font-size:12px;line-height:1.7;margin:11px 35px 0 0}.site-footer{background:#eaf0e9;padding:30px max(28px,calc((100vw - 1100px)/2));display:grid;grid-template-columns:1fr auto;gap:6px 20px;align-items:center}.footer-brand{font-size:15px}.site-footer>p{font-size:11px;color:var(--muted);margin:2px 0 0}.footer-links{grid-column:2;grid-row:1;display:flex;gap:20px}.footer-links a{font-size:11px}.site-footer small{grid-column:1/-1;font-size:10px;color:#89938c;margin-top:14px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.legal-page{max-width:800px;min-height:65vh;margin:50px auto 80px;padding:0 28px}.legal-page h1{font-size:42px;margin-bottom:12px}.legal-page .updated{font-size:12px;color:var(--muted);margin-bottom:35px}.legal-page h2{font-size:21px;letter-spacing:-.5px;margin:30px 0 10px}.legal-page p,.legal-page li{color:#596474;font-size:14px;line-height:1.8}.legal-page a{color:var(--green)}
@media(max-width:800px){.hero{grid-template-columns:1fr;gap:27px;padding-top:25px}.hero-copy{text-align:center}.hero-copy h1,.hero-lede{margin-left:auto;margin-right:auto}.hero-tags{justify-content:center}.game-card{justify-self:center;max-width:520px}.strategy{gap:35px}}
@media(max-width:600px){.site-header{height:66px;padding:0 18px}.brand{font-size:16px}nav{gap:16px}nav a{font-size:11px}.hero{margin-top:10px;padding:19px 16px 34px;gap:23px}.eyebrow{font-size:9px}h1{font-size:43px}.hero-lede{font-size:14px}.hero-tags span{font-size:10px;padding:7px 9px}.game-card{border-radius:19px;padding:19px 15px 14px}.game-top h2{font-size:17px}.board{width:min(100%,370px);gap:2px}.tile{border-radius:3px}.palette{gap:5px}.color-choice{height:44px;border-radius:10px}.color-choice span{width:19px;height:19px}.stats{grid-template-columns:64px 1fr 46px;gap:9px}.content-section,.faq-section{padding:52px 19px}.section-heading h2,.strategy h2{font-size:27px}.steps{grid-template-columns:1fr;gap:10px}.step{min-height:0;padding:18px}.step-number{margin-bottom:11px}.strategy{grid-template-columns:1fr;gap:24px}.tip-card{min-height:180px}.faq-list summary{font-size:13px}.site-footer{padding:25px 19px;grid-template-columns:1fr}.footer-links{grid-column:1;grid-row:auto;margin-top:13px}.site-footer small{margin-top:10px}.legal-page{margin-top:35px;padding:0 20px}.legal-page h1{font-size:36px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* Premium game controls and selectable modes/themes */
.nav-control{border:1px solid #e0e8df;border-radius:10px;width:34px;height:34px;background:#fff;color:#52645d;font-size:17px;cursor:pointer}.nav-control:hover{background:#eaf6f0}.game-substats{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin:-3px 0 10px}.game-substats span{background:#f2f6f1;border-radius:99px;padding:5px 9px;color:#617168;font-size:9px;font-weight:700}.board{grid-template-columns:repeat(var(--board-size,10),1fr);gap:2px;transition:filter .2s}.tile{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.tile span{font-family:Arial,sans-serif;font-size:clamp(9px,1.65vw,16px);line-height:1;text-shadow:0 1px 1px #ffffff85;filter:drop-shadow(0 1px 1px #ffffff55);pointer-events:none;user-select:none}.board[style*="14"] .tile span{font-size:clamp(7px,1.3vw,13px)}.tile.is-owned{box-shadow:inset 0 0 0 1px #ffffff80}.board.won{animation:board-win .45s ease}@keyframes board-win{50%{transform:scale(1.012);box-shadow:0 0 0 5px #c5f3d7,0 12px 32px #2a9a6830}}.color-choice.hinted{animation:hint-pulse .35s ease 3;background:#e2f8e9;box-shadow:0 0 0 3px #4bab78}@keyframes hint-pulse{50%{transform:scale(1.1)}}.game-actions{display:flex;justify-content:center;gap:8px;margin-top:11px}.secondary-action{border:1px solid #e8ece7;background:#fff;border-radius:10px;padding:8px 11px;color:#65736a;font-size:10px;font-weight:700;cursor:pointer;transition:background .15s,transform .15s}.secondary-action:hover:not(:disabled){background:#f0f8f2;transform:translateY(-1px)}.secondary-action:disabled{opacity:.4;cursor:default}.end-actions{display:flex;justify-content:center;gap:16px}.settings-panel{margin-top:15px;padding:15px;border:1px solid var(--line);border-radius:13px;background:#fbfdfb}.settings-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:13px}.settings-head button{border:0;background:transparent;font-size:20px;cursor:pointer;color:var(--muted)}.settings-panel label{display:flex;align-items:center;gap:8px;font-size:12px;color:#53625a}.settings-panel input{accent-color:var(--green)}.settings-panel p{font-size:10px;color:#8b968f;margin:9px 0 0 22px}.selector-block{margin-bottom:34px}.selector-title{display:flex;align-items:end;justify-content:space-between;margin-bottom:15px}.selector-title .eyebrow{margin-bottom:5px}.selector-title h2{font-size:23px;margin:0;letter-spacing:-.7px}.selector-note{font-size:10px;color:#89948d}.mode-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.mode-choice{display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;min-height:70px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:13px;cursor:pointer;transition:.16s}.mode-choice strong{font:700 12px 'Trebuchet MS',Arial,sans-serif;color:#28372f}.mode-choice span{font-size:9px;color:#7d8981}.mode-choice:hover,.theme-choice:hover{transform:translateY(-2px);box-shadow:0 8px 22px #294d3810}.mode-choice.active,.theme-choice.active{border-color:#74b497;background:#f3faf5;box-shadow:0 0 0 1px #74b497 inset}.themes-block{margin-bottom:0}.theme-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.theme-choice{background:#fff;border:1px solid var(--line);border-radius:13px;min-width:0;padding:10px 8px;display:flex;flex-direction:column;align-items:center;gap:8px;cursor:pointer;transition:.16s}.theme-preview{height:31px;display:flex;align-items:center;justify-content:center;gap:1px;white-space:nowrap;font-size:14px;letter-spacing:-3px;overflow:hidden;max-width:100%}.theme-choice strong{font-size:9px;text-align:center;color:#4d5c53;line-height:1.25}.classic-preview{display:grid;grid-template-columns:repeat(2,14px);gap:3px;transform:rotate(-5deg)}.classic-preview i{width:14px;height:14px;border-radius:4px;background:var(--coral)}.classic-preview i:nth-child(2){background:var(--gold)}.classic-preview i:nth-child(3){background:var(--mint)}.classic-preview i:nth-child(4){background:var(--blue)}
.daily{max-width:1024px;margin:0 auto 20px;padding:35px 38px;display:grid;grid-template-columns:1.2fr .8fr;gap:20px 40px;align-items:center;background:#eaf5ed;border:1px solid #deebe0;border-radius:22px;position:relative;overflow:hidden}.daily-copy h2{font-size:29px;letter-spacing:-.9px;margin:0 0 9px}.daily-copy>p:not(.eyebrow){font-size:12px;color:#627168;line-height:1.7;max-width:520px}.daily-meta{display:flex;gap:22px;flex-wrap:wrap;margin:17px 0 13px}.daily-meta span{font-size:10px;color:#718077}.daily-meta strong{display:block;color:#293b30;font-size:12px;margin-top:3px}.daily-progress{font-size:10px;color:var(--green);margin-bottom:13px}.daily-actions{display:flex;gap:13px;align-items:center}.primary-button{border:0;background:#187a60;border-radius:11px;padding:11px 17px;color:#fff;font-size:11px;font-weight:700;cursor:pointer;box-shadow:0 5px 12px #187a6024}.primary-button:hover{background:#12644e}.text-button{border:0;background:transparent;color:#187a60;font-size:11px;font-weight:700;cursor:pointer}.daily-art{height:150px;display:grid;place-items:center;position:relative}.daily-art-grid{display:grid;grid-template-columns:repeat(3,36px);gap:4px;transform:rotate(8deg)}.daily-art-grid i{width:36px;height:36px;border-radius:9px;background:var(--coral);box-shadow:0 6px 12px #314b3015}.daily-art-grid i:nth-child(3n+2){background:var(--mint)}.daily-art-grid i:nth-child(3n){background:var(--gold)}.daily-art-grid i:nth-child(2),.daily-art-grid i:nth-child(4),.daily-art-grid i:nth-child(7){background:var(--blue)}.daily-art>span{position:absolute;right:16%;top:12%;color:#d6a823;font-size:35px}.countdown{grid-column:1/-1;text-align:right;color:#708078;font-size:10px;margin:0}.countdown strong{color:#294638;font-variant-numeric:tabular-nums}.variation-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.variation-grid article{border:1px solid var(--line);border-radius:15px;padding:20px;background:#fff}.variation-grid article>span{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#eaf6f0;color:var(--green);font-size:17px;margin-bottom:13px}.variation-grid h3{font-size:15px;margin:0 0 8px}.variation-grid p{font-size:11px;color:var(--muted);line-height:1.65;margin:0}.site-footer small a{color:inherit}.sr-only{clip-path:inset(50%)}
@media(max-width:900px){.mode-grid{grid-template-columns:repeat(3,1fr)}.theme-grid{grid-template-columns:repeat(3,1fr)}.daily{margin-left:22px;margin-right:22px}}
@media(max-width:600px){.game-actions{gap:5px}.secondary-action{padding:8px 7px;font-size:9px}.mode-grid{grid-template-columns:repeat(2,1fr)}.theme-grid{grid-template-columns:repeat(3,1fr);gap:7px}.theme-choice{padding:8px 4px}.selector-title{align-items:flex-start;gap:8px;flex-direction:column}.selector-title h2{font-size:21px}.selector-note{font-size:9px}.daily{margin:0 15px 15px;padding:24px 20px;grid-template-columns:1fr;gap:0}.daily-copy h2{font-size:25px}.daily-art{height:125px;grid-row:2}.daily-art-grid{grid-template-columns:repeat(3,30px)}.daily-art-grid i{width:30px;height:30px;border-radius:7px}.countdown{grid-row:3;text-align:left;margin-top:17px}.daily-meta{gap:18px}.variation-grid{grid-template-columns:1fr;gap:9px}.variation-grid article{padding:16px}.game-card{scroll-margin-top:12px}.game-actions .secondary-action{min-width:0}}
.tile{position:relative;box-shadow:inset 0 0 0 1px #ffffff30;transition:background-color .22s ease,transform .18s ease,filter .18s ease}.tile.is-owned{animation:flood-claim .2s ease both}.tile.with-icon span{font-size:clamp(8px,1.5vw,14px);line-height:1;text-shadow:0 1px 2px #20312638}.board.pattern-mode .tile{box-shadow:inset 0 0 0 1px #ffffff68,inset 0 0 0 3px #ffffff22}.board[data-theme="gems"] .tile{border-radius:2px 7px 2px 7px}.board[data-theme="ocean"] .tile{border-radius:50% 4px 50% 4px}.board[data-theme="space"] .tile{border-radius:50%}.board[data-theme="animals"] .tile{border-radius:40% 6px 40% 6px}.board[data-theme="fruit"] .tile{border-radius:50%}.board.won .tile{animation:winpop .32s ease both;animation-delay:calc(var(--i)*4ms)}@keyframes flood-claim{from{transform:scale(.82);filter:brightness(1.18)}to{transform:scale(1);filter:brightness(1)}}
.section-heading h2{font-size:clamp(28px,3vw,36px)}.section-heading>p:last-child{font-size:clamp(15px,1.5vw,17px);line-height:1.7}.why-puzzles{padding-top:clamp(34px,5vw,66px);padding-bottom:clamp(40px,5vw,70px)}.why-puzzles .variation-grid article{padding:22px}.why-puzzles .variation-grid h3{font-size:18px}.why-puzzles .variation-grid p{font-size:15px;line-height:1.65}
@media(max-width:600px){.why-puzzles .variation-grid{grid-template-columns:1fr;gap:10px}.why-puzzles .variation-grid article{padding:16px}.why-puzzles .variation-grid p{font-size:15px}}
@media(prefers-reduced-motion:reduce){.tile.is-owned,.board.won .tile{animation:none;transition:none}}
@media(max-width:380px){.site-header{height:64px;padding-left:14px;padding-right:14px}.site-header nav{gap:8px}.site-header nav a[href="#daily"],.site-header nav a[href="/games/color-flood/archive/"]{display:none}.site-header .nav-control{width:34px;height:34px}.brand{font-size:16px;gap:7px}}
.color-choice span{display:grid;place-items:center;color:#fff;font-size:12px;line-height:1;text-shadow:0 1px 2px #1c302c80}.color-choice.has-theme-symbol span{border-radius:8px;box-shadow:inset 0 0 0 1px #20332620,0 1px 2px #20332616}.color-choice:focus-visible{outline:3px solid #215e4d;outline-offset:3px}
/* Larger play area and controls, with readable labels across desktop and mobile. */
@media(min-width:900px){.hero{grid-template-columns:.78fr 1.22fr;gap:34px}.game-card{max-width:640px}}
.board{width:min(100%,460px)}
.game-kicker{font-size:10px}.game-top h2{font-size:22px}.stat-label{font-size:10px}.progress-meta{font-size:11px}.stat strong{font-size:25px}.stat-right strong{font-size:20px}
.color-choice{height:54px}.color-choice span{width:27px;height:27px;font-size:15px}.color-choice kbd{font-size:10px;right:7px;bottom:5px}
.game-message{font-size:13px;min-height:27px}.secondary-action{font-size:12px;padding:10px 14px}.game-actions{gap:10px;margin-top:13px}
.nav-control{width:40px;height:40px;font-size:19px}.game-substats span{font-size:11px;padding:6px 11px}.settings-head{font-size:15px}.settings-panel label{font-size:14px}.settings-panel p{font-size:12px}
.mode-choice{min-height:78px;padding:15px}.mode-choice strong{font-size:14px}.mode-choice span{font-size:11px}.theme-choice{padding:12px 9px}.theme-choice strong{font-size:11px}
.selector-note{font-size:12px}.selector-title h2{font-size:25px}
@media(max-width:600px){.board{width:min(100%,460px)}.game-top h2{font-size:19px}.game-message{font-size:12px}.secondary-action{font-size:11px;padding:9px 8px}.color-choice{height:48px}.color-choice span{width:24px;height:24px}.mode-choice strong{font-size:13px}.mode-choice span,.theme-choice strong{font-size:10px}}
/* Completion meter below the board, roomy color choices, and consistent header alignment. */
.site-header{display:flex;align-items:center}.header-actions{display:flex;align-items:center;gap:18px}.header-actions nav{align-items:center}.theme-toggle{flex:0 0 auto}.game-top-actions{display:flex;align-items:center;gap:9px}.board-progress{max-width:820px;margin:-20px auto 36px;padding:0 28px}.board-progress .progress-meta{font-size:13px;color:#647268}.board-progress .progress-meta strong{font-size:14px}.progress-track{height:10px}.color-choice{height:66px}.color-choice span{width:42px;height:42px;border-radius:11px;font-size:19px}.color-choice kbd{font-size:11px}.hero-tags span{font-size:14px;padding:10px 14px}.hero-buttons .primary-button,.hero-buttons .outline-button{font-size:14px;padding:13px 19px}
@media(max-width:800px){.header-actions{gap:12px}.header-actions nav{gap:16px}.board-progress{margin:-12px auto 30px}}
@media(max-width:600px){.site-header{gap:10px}.header-actions{gap:8px}.header-actions nav{gap:10px}.header-actions nav a{font-size:10px}.header-actions nav a:nth-child(3),.header-actions nav a:nth-child(4){display:none}.theme-toggle{width:36px;height:36px}.board-progress{padding:0 15px;margin:0 auto 28px}.color-choice{height:58px}.color-choice span{width:34px;height:34px;font-size:16px}.hero-tags{gap:7px}.hero-tags span{font-size:12px;padding:8px 10px}.hero-buttons{justify-content:center;flex-wrap:wrap}.hero-buttons .primary-button,.hero-buttons .outline-button{font-size:13px;padding:12px 14px}}
html[data-color-mode="dark"]{--ink:#edf3ee;--muted:#afbbb1;--paper:#151b17;--white:#222b25;--line:#3b4940;--green:#72d2a7;--shadow:0 24px 70px #0006;color-scheme:dark}
html[data-color-mode="dark"] body{background:var(--paper);color:var(--ink)}
html[data-color-mode="dark"] .site-header,html[data-color-mode="dark"] .hero,html[data-color-mode="dark"] .subpage{color:var(--ink)}
html[data-color-mode="dark"] .brand-light,html[data-color-mode="dark"] nav a,html[data-color-mode="dark"] .game-message,html[data-color-mode="dark"] .selector-note{color:#adbbb1}
html[data-color-mode="dark"] .game-card,html[data-color-mode="dark"] .play-card,html[data-color-mode="dark"] .catalog-card,html[data-color-mode="dark"] .step,html[data-color-mode="dark"] .variation-grid article,html[data-color-mode="dark"] .settings-panel,html[data-color-mode="dark"] .theme-choice,html[data-color-mode="dark"] .mode-choice{background:#222b25;border-color:#3b4940;color:var(--ink)}
html[data-color-mode="dark"] .secondary-action,html[data-color-mode="dark"] .icon-button,html[data-color-mode="dark"] .nav-control,html[data-color-mode="dark"] .outline-button{background:#27322b;border-color:#45554a;color:#dbe8de}
html[data-color-mode="dark"] .hero-tags span,html[data-color-mode="dark"] .game-substats span,html[data-color-mode="dark"] .color-choice{background:#27322b;border-color:#3b4940;color:#dbe8de}
html[data-color-mode="dark"] .mode-choice strong,html[data-color-mode="dark"] .theme-choice strong,html[data-color-mode="dark"] .game-top h2,html[data-color-mode="dark"] .section-heading h2,html[data-color-mode="dark"] .game-guide h2{color:#edf3ee}
html[data-color-mode="dark"] .mode-choice span,html[data-color-mode="dark"] .game-guide p,html[data-color-mode="dark"] .hero-lede,html[data-color-mode="dark"] .step p,html[data-color-mode="dark"] .variation-grid p{color:#b6c1b8}
html[data-color-mode="dark"] .progress-track{background:#36443a}html[data-color-mode="dark"] .daily{background:#202e25;border-color:#344b3b}html[data-color-mode="dark"] .site-footer{background:#1b241e;color:#dce7df}html[data-color-mode="dark"] .daily-art-grid i{box-shadow:0 6px 12px #0004}
.stats{grid-template-columns:1fr 1fr}
@media(max-width:700px){.header-actions nav a:nth-child(3),.header-actions nav a:nth-child(4){display:none}}
/* Restore the move budget and completion bar inside the active game card. */
.stats{grid-template-columns:75px minmax(0,1fr) 58px}
@media(max-width:600px){.stats{grid-template-columns:60px minmax(0,1fr) 44px;gap:8px}}
/* Turn local milestones into a readable progress panel directly below the board. */
.progress-tracker.under-board{max-width:1000px;margin:24px auto 34px;padding:28px 30px;background:#fff;border:1px solid #e7ece6;border-radius:20px;box-shadow:0 10px 28px #253b2c0a}
.progress-tracker.under-board .section-heading{margin:0 auto 20px}.progress-tracker.under-board .section-heading h2{font-size:clamp(25px,3vw,32px)}.progress-tracker.under-board .section-heading>p:last-child{font-size:15px}
.progress-summary{margin:0;padding:15px 18px;border-radius:12px;background:#f1f6f1;color:#35473c;font-size:15px;font-weight:700;line-height:1.6}
.achievement-list{list-style:none;padding:0;margin:16px 0 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px}
.achievement{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:start;padding:15px;border:1px solid #e5ebe4;border-radius:13px;background:#fbfdfb;color:#35463b}
.achievement>span:first-child{display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:#e7f5ec;color:#668273;font-size:19px;font-weight:800}
.achievement>span:last-child{display:block;min-width:0}.achievement strong,.achievement small{display:block}.achievement strong{font-size:14px;line-height:1.35;color:#26392e}.achievement small{margin-top:5px;font-size:13px;line-height:1.5;color:#5e6e63}.achievement.earned{border-color:#a8d5b8;background:#f1faf4}.achievement.earned>span:first-child{background:#d8f1e0;color:#187a49}
/* Improve text contrast and sizing in the daily challenge and game cards. */
.daily-copy h2{color:#25362b}.daily-copy>p:not(.eyebrow){font-size:14px;line-height:1.7;color:#4e6054}.daily-meta{gap:20px}.daily-meta span{font-size:12px;color:#526458}.daily-meta strong{font-size:14px;color:#263b2e}.daily-actions .primary-button,.daily-actions .text-button{font-size:14px}.countdown{font-size:12px;color:#536459}
.catalog-card h3{color:#263d30}.catalog-meta{font-size:13px;color:#56685c}.catalog-description{font-size:15px;color:#4f6055;line-height:1.65}.catalog-link{font-size:15px}
html[data-color-mode="dark"] .progress-tracker.under-board{background:#202923;border-color:#3b4940;box-shadow:0 12px 32px #0004}
html[data-color-mode="dark"] .progress-summary{background:#2a352d;color:#edf5ef}
html[data-color-mode="dark"] .achievement{background:#26312a;border-color:#435248;color:#eaf2ec}
html[data-color-mode="dark"] .achievement strong{color:#f2f7f3}html[data-color-mode="dark"] .achievement small{color:#cfdbd1}
html[data-color-mode="dark"] .achievement>span:first-child{background:#35453a;color:#d2e5d7}
html[data-color-mode="dark"] .achievement.earned{background:#24382b;border-color:#4b795b}html[data-color-mode="dark"] .achievement.earned>span:first-child{background:#315e3d;color:#c6f1d0}
html[data-color-mode="dark"] .daily-copy h2{color:#f0f6f1}html[data-color-mode="dark"] .daily-copy>p:not(.eyebrow){color:#d0dbd2}
html[data-color-mode="dark"] .daily-meta span,html[data-color-mode="dark"] .daily-meta strong,html[data-color-mode="dark"] .countdown,html[data-color-mode="dark"] .countdown strong{color:#d3dfd6}
html[data-color-mode="dark"] .daily-actions .text-button{color:#8de1b5}
html[data-color-mode="dark"] .catalog-card h3{color:#f0f6f1}html[data-color-mode="dark"] .catalog-meta{color:#c2d0c6}html[data-color-mode="dark"] .catalog-description{color:#d2ddd4}html[data-color-mode="dark"] .catalog-link{color:#9ce6bd}
html[data-color-mode="dark"] .catalog-badge{background:#26352b;color:#b5efc9;border-color:#415548}
@media(max-width:600px){.progress-tracker.under-board{margin:18px 15px 28px;padding:22px 16px}.progress-summary{font-size:13px;padding:12px}.achievement-list{grid-template-columns:1fr;gap:9px}.achievement{padding:13px}.achievement small{font-size:13px}.daily{padding:24px 20px}.daily-copy>p:not(.eyebrow){font-size:14px}.daily-meta{gap:14px}.daily-meta span{font-size:12px}.daily-meta strong{font-size:14px}.daily-actions{flex-wrap:wrap}.catalog-card h3{font-size:22px}.catalog-description{font-size:15px}}
