@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#303b31;--muted:#85897e;--green:#445d48;--paper:#f7f5ef;--line:#e5e6db}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #496b50;outline-offset:4px}button{border:0;background:none}button:disabled{opacity:.35;cursor:default}.svg-defs{position:absolute;width:0;height:0}.topbar{height:100px;max-width:1328px;margin:auto;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 28px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--ink);font-family:Manrope,sans-serif;font-weight:800;font-size:34px;letter-spacing:-2px}.brand svg{width:38px;height:38px}.brand-dot{color:#a3ad89}.topline{font-size:10px;letter-spacing:2.2px;color:var(--muted)}.help-top{font-size:12px}.help-top span{display:inline-flex;border:1px solid #c4c9b9;border-radius:50%;width:23px;height:23px;align-items:center;justify-content:center;margin-left:9px}main{max-width:1210px;margin:auto;padding:0 28px}.intro{text-align:center;padding:43px 0 36px}.eyebrow{font-size:9px;letter-spacing:2.3px;color:#7b876e;font-weight:700}.eyebrow span{display:inline-block;width:6px;height:6px;border-radius:50%;background:#8d9b73;margin-right:7px;vertical-align:middle}h1{font-family:Manrope,sans-serif;font-weight:500;font-size:44px;line-height:1.18;letter-spacing:-2px;margin:17px 0 14px}h1 em{font-family:Georgia,serif;color:#6e835d;font-weight:400}p{line-height:1.7}.intro p{color:var(--muted);font-size:13px;margin:0}.workspace{display:grid;grid-template-columns:224px minmax(300px,470px) 230px;justify-content:space-between;gap:34px;align-items:start}.sidebar{padding-top:17px}.side-heading{font-size:9px;letter-spacing:1.7px;color:#969a8d;font-weight:700;margin-bottom:19px}.mode-tabs{display:flex;background:#edece4;border-radius:10px;padding:4px;gap:3px}.mode-tabs button{padding:11px 7px;font-size:11px;flex:1;white-space:nowrap;border-radius:7px}.mode-tabs .active{background:#fffefa;box-shadow:0 2px 5px #303b310b}.mode-tabs span{color:#859566}.difficulty-label{margin:31px 0 12px;color:#7f8877;font-size:11px}.difficulties{display:grid;gap:9px}.difficulties button{display:flex;align-items:center;text-align:left;border:1px solid transparent;border-radius:11px;padding:14px;gap:13px;transition:.2s}.difficulties button>span{font-size:27px;width:28px;color:#8a967a}.difficulties button div{flex:1;font-weight:500;font-size:13px}.difficulties small{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:5px}.difficulties b{font-size:20px;font-weight:400;color:#b4bbaa}.difficulties .selected{background:#eef0e6;border-color:#b5c0a4}.difficulties .selected b{color:var(--green)}.new-game{padding:15px 18px;border-radius:10px;background:var(--green);color:#fff;display:flex;justify-content:space-between;align-items:center;gap:14px}.sidebar>.new-game{width:100%;margin-top:22px;font-size:12px}.new-game:hover{background:#334c38}.little-note{text-align:center;padding-top:34px;color:#989d8f}.little-note svg{width:45px;height:45px;transform:rotate(-12deg);color:#a2ae8f}.little-note p{font-size:11px;line-height:1.8}.little-note>span{font-family:Georgia;font-size:24px;color:#bdc4ae}.game-card{background:#fffefa;border:1px solid #e8e8dd;border-radius:19px;padding:24px;box-shadow:0 10px 35px #4a4b3210}.game-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px;gap:10px}.game-label{font-size:8px;color:#8b9580;letter-spacing:1.6px;font-weight:700}.game-top h2{font-family:Manrope,sans-serif;font-size:16px;font-weight:600;letter-spacing:-.5px;margin:7px 0 0}.timer{display:flex;gap:7px;font-size:11px;align-items:center;color:#7e8775;font-variant-numeric:tabular-nums;background:#f4f4ec;border-radius:7px;padding:8px}.board-wrap{position:relative}.board{display:grid;grid-template-columns:repeat(var(--n),1fr);border:2px solid #626853;border-radius:8px;overflow:hidden;aspect-ratio:1;user-select:none;touch-action:manipulation}.cell{min-width:0;position:relative;display:grid;place-items:center;padding:0;background:var(--color);border-right:1px solid #555c4824;border-bottom:1px solid #555c4824;font-size:22px;transition:filter .15s}.cell:hover{filter:brightness(.96)}.cell.region-right{border-right:2px solid #626853}.cell.region-bottom{border-bottom:2px solid #626853}.cell svg{width:69%;height:69%;color:#3c4935;animation:pop .2s ease-out}.cell .x{color:#555b4280;font-size:25px;font-weight:400}.cell.conflict{background:#eeb1a1}.cell.hinted{box-shadow:inset 0 0 0 3px #526d43}.board-footer{display:flex;justify-content:space-between;align-items:center;margin:17px 0 22px}.progress{display:flex;gap:7px;align-items:center;font-size:11px;color:#768268}.progress svg{width:18px;height:18px}.dots{display:flex;gap:5px}.dots i{height:6px;width:6px;border-radius:50%;background:#e7e9df}.dots .filled{background:#8c9c73}.tools{border-top:1px solid #eeeee5;display:grid;grid-template-columns:repeat(4,1fr);padding-top:18px;gap:2px}.tools button{font-size:9px;display:flex;align-items:center;flex-direction:column;gap:7px;position:relative;border-radius:7px;padding:4px 0;color:#7a8272}.tools button>span{font-size:23px;line-height:1}.tools button.active{background:#edf0e4;color:#3a5b3f}.tools small{position:absolute;right:1px;top:0;font-size:6px;background:#ecede4;border-radius:3px;padding:3px}.board-tip{text-align:center;font-size:10px;color:#9b9e91;margin:19px 0 0}#message{font-size:11px;text-align:center;color:#7a634a;line-height:1.5;margin-top:8px;min-height:16px}.rules{padding-top:20px}.rules-title{font-family:Manrope,sans-serif;font-size:19px;font-weight:500;line-height:1.45;letter-spacing:-.5px;position:relative;margin-bottom:27px}.rules-title>span{position:absolute;right:0;top:4px;font-size:32px;color:#a9b497}.rule{display:flex;gap:13px;margin-bottom:25px}.rule-num{border:1px solid #d9dece;border-radius:50%;height:25px;min-width:25px;display:grid;place-items:center;font-size:9px;color:#859274}.rule h3{font-size:12px;font-weight:500;margin:4px 0 7px}.rule p{font-size:11px;color:#93988a;margin:0;line-height:1.7}.rule-illustration{background:#efefe6;border-radius:12px;padding:20px;text-align:center;margin-top:28px}.mini-grid{display:grid;grid-template-columns:repeat(3,27px);grid-template-rows:repeat(3,27px);justify-content:center;transform:rotate(-7deg);margin-bottom:17px}.mini-grid>*{background:#e1e6ce;border:1px solid #f2f3e9;display:grid;place-items:center;color:#9da78b}.mini-grid svg{width:27px;height:27px;padding:3px;color:#687c55}.rule-illustration>span{font-size:9px;color:#909982}.saved{font-size:10px;color:#88917d;margin-top:24px;line-height:1.8}.saved>span{color:#7d9367;margin-right:5px}.saved small{padding-left:16px;font-size:9px;color:#a0a594}footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;margin:37px 0 0;padding:23px 0;color:#9a9e90;font-size:8px;letter-spacing:1.3px}footer>span:last-child{font-family:Georgia;font-size:12px;font-style:italic;letter-spacing:0}.footer-paw{margin-left:10px;color:#97a47f}.pause-overlay{position:absolute;inset:0;background:#eeeee9f5;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;border-radius:8px}.pause-overlay[hidden]{display:none}.pause-overlay svg{width:64px;height:64px;color:#889c73}.pause-overlay h2{font-weight:500}.pause-overlay button{font-size:12px}dialog{border:1px solid #d9dfcc;border-radius:20px;padding:38px;max-width:440px;width:calc(100% - 36px);color:var(--ink);background:#fffefa;box-shadow:0 24px 100px #24301c30}dialog::backdrop{background:#29342266;backdrop-filter:blur(4px)}.close{position:absolute;right:14px;top:10px;font-size:27px;color:#8b9581}dialog h2{font-family:Manrope;font-size:26px;font-weight:500;letter-spacing:-1px}dialog p,dialog li{font-size:13px;line-height:1.8;color:#7e8875}dialog ul{padding-left:18px}dialog .new-game{width:100%;margin-top:22px;font-size:13px}.modal-cat{width:66px;height:66px;color:#82996c;display:block;margin:auto}.modal-buttons{display:flex;gap:10px;align-items:center}.modal-buttons>button{flex:1}.modal-buttons>button:first-child{margin-top:22px;font-size:12px;padding:12px}body:has(dialog[open]){overflow:hidden}@keyframes pop{from{transform:scale(.6)}to{transform:scale(1)}}@media(min-width:1450px){main{padding-top:15px}.intro{padding-bottom:48px}.workspace{gap:48px}}@media(max-width:1050px){.workspace{grid-template-columns:190px minmax(300px,470px);justify-content:center;gap:30px}.rules{display:none}.topline{font-size:8px}.sidebar{padding-top:15px}main{max-width:820px}}@media(max-width:650px){.topbar{height:74px;padding:0 22px}.brand{font-size:29px}.brand svg{width:31px;height:31px}.topline{display:none}.help-top{font-size:10px}main{padding:0 18px}.intro{padding:29px 0 26px}.eyebrow{font-size:8px}h1{font-size:34px;line-height:1.16;margin:12px 0}.intro p{font-size:11px}.workspace{display:flex;flex-direction:column;gap:17px;align-items:stretch;max-width:440px;margin:auto}.sidebar{padding:0}.side-heading,.difficulty-label,.little-note{display:none}.mode-tabs{max-width:270px;margin:0 auto 15px}.mode-tabs button{padding:10px}.difficulties{display:flex;gap:7px}.difficulties button{flex:1;padding:10px 8px;gap:5px;border:1px solid #e5e7dc}.difficulties button>span{font-size:20px;width:21px}.difficulties button div{font-size:11px}.difficulties small{font-size:8px;white-space:nowrap;margin-top:3px}.difficulties b{display:none}.sidebar>.new-game{display:none}.game-card{padding:18px;border-radius:15px}.game-top{margin-bottom:18px}.game-top h2{font-size:15px}.board-footer{margin:14px 0 17px}.tools{padding-top:14px}.board-tip{margin-top:13px}.rules{display:none}footer{max-width:440px;margin:24px auto 0;padding:18px 0;font-size:6px;letter-spacing:.8px}footer>span:last-child{font-size:10px}.game-label{font-size:7px}.tools button{font-size:10px;min-height:44px}.cell .x{font-size:22px}.cell{min-height:0}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.board{grid-template-rows:repeat(var(--n),minmax(0,1fr))}.cell{min-height:0}.cell svg{position:absolute;inset:15%;width:70%;height:70%}
/* Gameplay v2 */
.intro{padding:28px 0}.intro h1{font-size:36px;margin:13px 0 10px}.challenge-settings{margin-top:24px;border-top:1px solid var(--line);padding-top:20px;display:grid;gap:10px}.challenge-settings>label{font-size:11px;color:#68745e;font-weight:600}.challenge-settings select,.challenge-settings>input{width:100%;font:inherit;font-size:12px;background:#fffefa;border:1px solid #cdd4c2;padding:11px 9px;border-radius:8px;color:var(--ink)}.challenge-settings p{font-size:11px;color:#828c76;margin:0 0 3px}.challenge-settings .option-row{display:flex;align-items:center;gap:8px;padding:4px 0;font-weight:400}.option-row input{accent-color:var(--green);width:17px;height:17px}.challenge-settings small,.rank-note{font-size:10px;line-height:1.7;color:#8a9380}.ranking-button{font-size:12px;text-align:left;padding:12px 0;color:var(--green);text-decoration:underline;text-underline-offset:4px}.challenge-status{margin-top:13px;font-size:10px;line-height:1.7;color:#7f8a72;padding:8px 10px;background:#f1f2e9;border-radius:6px}.challenge-status.danger{color:#9a573f;background:#f7e8df}.board{touch-action:none;cursor:crosshair}.cell svg,.cell .x{pointer-events:none}.game-top h2{font-size:20px}.game-label{font-size:10px}.tools button{font-size:12px}.board-tip{font-size:11px;line-height:1.6}.progress{font-size:13px}.timer{font-size:14px;min-width:44px;min-height:38px;justify-content:center}.timer [hidden]{display:none}#message{min-height:18px}.ranking-filters{display:flex;gap:8px;margin:18px 0}.ranking-filters button{padding:10px 14px;border-radius:8px;background:#f0f1e9;font-size:12px}.ranking-filters .active{background:var(--green);color:white}.rank-table{width:100%;border-collapse:collapse;font-size:12px;margin:15px 0}.rank-table td,.rank-table th{text-align:left;padding:10px 7px;border-bottom:1px solid #e5e8db}.rank-table th{font-size:10px;color:#859078}.rank-table .mine{background:#edf2e4}.rank-note{display:block;margin-top:18px}#rank-content{font-size:13px;line-height:1.7;max-height:48vh;overflow:auto}dialog:has(.rank-table){max-width:580px}footer button{font-size:11px;color:#7d896e;letter-spacing:0}.saved{line-height:1.8}
@media(min-width:1051px){main{max-width:1500px;padding:0 40px}.topbar{max-width:1580px;height:85px;padding:0 40px}.workspace{grid-template-columns:250px minmax(400px,640px) 250px;gap:40px;justify-content:center}.game-card{padding:28px}.sidebar{padding-top:13px}.intro{padding:25px 0 30px}.intro h1{font-size:38px}.topline{font-size:11px}.side-heading{font-size:11px}.difficulties button div{font-size:15px}.difficulties small{font-size:12px}.difficulty-label{font-size:13px;margin-top:23px}.difficulties button{padding:13px}.mode-tabs button{font-size:12px}.sidebar>.new-game{font-size:13px}.rules-title{font-size:23px}.rule h3{font-size:14px}.rule p{font-size:13px}.rule{margin-bottom:30px}.rule-num{min-width:30px;height:30px;font-size:11px}.challenge-settings>label{font-size:12px}.challenge-settings p,.challenge-settings small{font-size:11px}}
@media(min-width:1700px){main{max-width:1850px;padding:0 55px}.topbar{max-width:1960px;height:100px;padding:0 55px}.workspace{grid-template-columns:300px minmax(650px,820px) 300px;gap:65px}.intro{padding:27px 0 33px}.intro h1{font-size:44px}.intro p{font-size:15px}.game-card{padding:32px}.game-top h2{font-size:25px}.game-label{font-size:12px}.timer{font-size:17px;padding:12px}.game-top{margin-bottom:25px}.progress{font-size:15px}.tools button{font-size:14px;gap:10px}.tools button>span{font-size:28px}.challenge-status{font-size:13px}.board-tip{font-size:13px}.board-footer{margin:20px 0}.sidebar{padding-top:22px}.side-heading{font-size:12px}.mode-tabs button{font-size:14px}.difficulties button{padding:18px}.difficulties button div{font-size:17px}.difficulties small{font-size:13px}.difficulty-label{font-size:14px}.challenge-settings{gap:12px}.challenge-settings>label{font-size:14px}.challenge-settings select,.challenge-settings>input{font-size:14px;padding:13px}.challenge-settings p,.challenge-settings small{font-size:12px}.ranking-button{font-size:14px}.rules-title{font-size:28px}.rule h3{font-size:17px}.rule p{font-size:15px}.rule{gap:17px;margin-bottom:36px}.rule-num{height:35px;min-width:35px;font-size:12px}.rule-illustration>span{font-size:12px}.saved{font-size:13px}.saved small{font-size:12px}.sidebar>.new-game{font-size:15px;padding:19px}footer{font-size:11px}footer button{font-size:13px}}
@media(min-width:2600px){main{max-width:2400px}.topbar{max-width:2540px;height:120px}.workspace{grid-template-columns:380px minmax(900px,1120px) 380px;gap:100px}.intro{padding:34px 0 42px}.intro h1{font-size:56px}.intro p{font-size:19px}.eyebrow{font-size:12px}.brand{font-size:43px}.brand svg{width:48px;height:48px}.topline{font-size:14px}.help-top{font-size:16px}.game-card{padding:42px}.game-top h2{font-size:32px}.game-label{font-size:15px}.timer{font-size:22px}.game-top{margin-bottom:30px}.tools button{font-size:18px}.tools button>span{font-size:36px}.progress{font-size:20px}.progress svg{width:25px;height:25px}.board-tip{font-size:16px}.challenge-status,#message{font-size:16px}.mode-tabs button{font-size:18px}.difficulty-label{font-size:18px}.difficulties button div{font-size:21px}.difficulties small{font-size:16px}.challenge-settings>label{font-size:18px}.challenge-settings select,.challenge-settings>input{font-size:17px}.challenge-settings p,.challenge-settings small{font-size:15px}.option-row input{width:22px;height:22px}.ranking-button{font-size:18px}.sidebar>.new-game{font-size:19px;padding:22px}.side-heading{font-size:15px}.rules-title{font-size:34px}.rule h3{font-size:21px}.rule p{font-size:18px}.rule-num{height:42px;min-width:42px;font-size:15px}.rule-illustration>span{font-size:15px}.saved{font-size:16px}.saved small{font-size:15px}footer{font-size:13px}footer button{font-size:16px}}
@media(max-width:650px){.intro{padding:22px 0 20px}.intro h1{font-size:29px;letter-spacing:-1.4px}.intro p{font-size:10px}.intro .eyebrow{font-size:8px}.workspace{gap:14px}.sidebar{display:contents}.sidebar>.side-heading{display:none}.sidebar>.mode-tabs{order:0;margin-bottom:0;width:270px}.sidebar>.difficulties{order:1}.game-card{order:2}.sidebar>.new-game{display:flex;order:3;margin:0;padding:14px;font-size:12px}.challenge-settings{order:4;margin:0;padding:18px;border:1px solid #e0e4d5;border-radius:12px;grid-template-columns:1fr 1fr;gap:11px}.challenge-settings>label[for=challenge],.challenge-settings select,.challenge-settings>p,.challenge-settings .option-row,.challenge-settings small,.challenge-settings .ranking-button{grid-column:1/-1}.challenge-settings>label[for=nickname]{align-self:center}.challenge-settings>input{width:100%}.challenge-settings .ranking-button{padding-bottom:0}.game-top h2{font-size:17px}.timer{font-size:12px}.tools button{font-size:10px}.progress{font-size:11px}.board-tip{font-size:9px}.challenge-status{font-size:9px}.game-label{font-size:8px}.rank-table{font-size:11px}.rank-table td{padding:9px 4px}.board-footer{margin:12px 0 16px}footer{font-size:6px}}
@media(min-width:1700px){dialog{max-width:600px;padding:45px}dialog h2{font-size:32px}dialog p,dialog li{font-size:15px}dialog:has(.rank-table){max-width:760px}.rank-table{font-size:15px}.rank-table th{font-size:12px}.rank-note{font-size:12px}#rank-content{font-size:15px}}
@media(min-width:2600px){dialog{max-width:780px;padding:58px}dialog h2{font-size:40px}dialog p,dialog li{font-size:19px}dialog:has(.rank-table){max-width:1000px}.rank-table{font-size:19px}.rank-table th{font-size:15px}.rank-note{font-size:15px}#rank-content{font-size:19px}.ranking-filters button{font-size:18px}dialog .new-game{font-size:18px}.close{font-size:35px}}

.win-nickname{width:100%;font:inherit;padding:12px;border:1px solid #bdc7ad;border-radius:8px;margin-top:12px;background:#f7f8ef;color:var(--ink)}
