@font-face{font-family:Inter;src:url(./fonts/inter-latin.woff2) format("woff2");font-weight:100 900;font-display:optional}:root{font-family:Inter,system-ui,sans-serif;color:#172b29;background:#fff;font-size:18px;line-height:1.45;font-synthesis:none;--teal:#087f75;--border:#d5e2dc;--muted:#52645f;--surface:#f5f8f5}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}a{color:var(--teal);text-decoration:none}a:hover,a:focus{text-decoration:none}a:hover{color:#04534c}button,.button{min-height:48px;border:1px solid var(--border);border-radius:25px;background:#fff;color:var(--teal);padding:11px 22px;font-size:15px;font-weight:650;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;line-height:24px}button:hover,.button:hover{background:#ddf3ed}button:active,.button:active{background:#c8e8db}.primary{background:var(--teal);border-color:var(--teal);color:#fff}.primary:hover{background:#06685f;color:#fff}.primary:active{background:#04534c}button:disabled{background:#e3e9e5;color:#52645f;cursor:not-allowed}button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--teal);outline-offset:3px;box-shadow:0 0 0 3px #fff}button[hidden],[hidden]{display:none!important}.wrap{max-width:1200px;margin:0 auto}.header{height:80px;border-bottom:1px solid #edf1ee}.header-inner{height:100%;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:12px;color:#172b29;font-size:17px;white-space:nowrap}.desktop-nav{display:flex;gap:36px}.desktop-nav a{color:#172b29;font-size:15px;padding:10px 8px;border-radius:12px}.desktop-nav a:hover{background:var(--surface);color:var(--teal)}.menu-toggle{display:none}.icon-button{padding:8px;min-width:44px;min-height:44px;border:0;border-radius:10px}.skip{position:fixed;top:-80px;left:16px;padding:12px;background:#fff;z-index:20}.skip:focus{top:8px}main{padding-top:32px}h1{font-size:58px;line-height:1.45;letter-spacing:-1.8px;font-weight:650;margin:12px 0 16px}h2{font-size:28px;line-height:1.45;font-weight:650;letter-spacing:-.6px;margin:0 0 12px}h3{margin:0;font-size:18px}p{margin:0 0 20px}.intro{font-size:20px;max-width:880px;margin-bottom:28px;color:var(--muted)}.breadcrumbs{font-size:12px;color:var(--muted);margin-bottom:24px}.breadcrumbs ol{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px}.breadcrumbs li+li:before{content:"/";margin-right:8px}.breadcrumbs a{color:var(--muted)}.game-layout{display:grid;grid-template-columns:620px 1fr;gap:60px}.game{min-width:0}.mode-label{font-size:12px;color:var(--teal);margin-bottom:20px}.scores{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}.scores>div{height:78px;padding:10px 16px;background:var(--surface);border:1px solid var(--border);border-radius:12px}.scores span{font-size:11px;color:var(--muted);display:block}.scores strong{font-size:25px;font-weight:650;display:block}.actions{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:20px}.board{display:grid;gap:12px;padding:12px;background:var(--border);border-radius:16px;aspect-ratio:1;touch-action:none;container-type:inline-size;overflow:hidden}.size-4{grid-template-columns:repeat(4,1fr)}.size-5{grid-template-columns:repeat(5,1fr)}.size-6{grid-template-columns:repeat(6,1fr)}.size-8{grid-template-columns:repeat(8,1fr)}.cell{background:#e8eeea;border-radius:8px;display:flex;align-items:center;justify-content:center;position:relative;min-width:0;min-height:0;font-weight:650;font-variant-numeric:tabular-nums;font-size:min(50px,8.7cqw)}.size-5 .cell{font-size:6.7cqw}.size-6 .cell{font-size:5.4cqw;border-radius:4px}.size-8 .cell{font-size:3.8cqw;border-radius:4px}.cell.long{font-size:6.5cqw}.size-5 .cell.long{font-size:5cqw}.size-6 .cell.long{font-size:4cqw}.size-8 .cell.long{font-size:2.9cqw}.cell.huge{font-size:2.2cqw}.tile-2{background:#e9f0e9}.tile-4{background:#ddeddd}.tile-8{background:#c8e8db}.tile-16{background:#a9ddcd}.tile-32{background:#80cdb8}.tile-64{background:#55b79f}.tile-128{background:#efdea9}.tile-256{background:#eacf82}.tile-512{background:#e3b955}.tile-1024{background:#d89d35}.tile-high{background:#087f75;color:#fff}.cell img{position:absolute;width:68%;height:68%;left:16%;top:3%;object-fit:contain}.cell.cupcake span{position:absolute;bottom:6%;font-size:max(11px,3cqw)}.board.changed .cell.occupied{animation:appear .12s ease-out}@keyframes appear{0%{opacity:.7;transform:scale(.97)}to{opacity:1;transform:scale(1)}}.caption{font-size:12px;line-height:18px;color:var(--muted)}#controls-help{margin:16px 0}.directions{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.directions button{font-size:22px;padding:8px}.game-aside{padding-top:202px}.tip{background:var(--surface);border-radius:12px;padding:30px;margin-bottom:28px}.tip h2{font-size:28px;line-height:1.35}.tip p{font-size:16px;color:var(--muted)}.tip .button{width:100%;margin-top:46px;justify-content:flex-start}.game-aside>.caption{max-width:300px}.prose{max-width:880px}.prose section,main>section:not(.game-layout){margin-top:34px}.prose p{color:var(--muted)}.play-link{min-width:320px;margin-top:12px;justify-content:flex-start}.mode-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin:32px 0}.mode-card{min-height:124px;border:1px solid var(--border);border-radius:12px;background:var(--surface);padding:22px;color:#172b29;display:flex;flex-direction:column;justify-content:space-between;font-size:20px}.mode-card:hover{border-color:var(--teal);background:#ddf3ed}.mode-card small{font-size:14px;color:var(--teal);margin-top:24px}.mode-card small span{float:right}.ladder{display:grid;grid-template-columns:repeat(6,1fr);gap:20px;max-width:1200px}.ladder figure{margin:0}.ladder img{width:100%;height:auto;aspect-ratio:120/140}.ladder figcaption{font-size:14px;color:var(--muted)}.board-summary{font-size:12px;color:var(--muted);margin-top:16px}.board-summary summary{cursor:pointer;padding:8px 0}.board-summary p{margin:8px 0}#undo{width:100%;justify-content:flex-start;margin-top:16px}#history-note{margin:10px 0}#storage-notice{background:#fce8e6;border:1px solid #b3261e;color:#812019;padding:12px;margin-top:16px;border-radius:8px;font-size:14px}.faq{border:1px solid var(--border);border-radius:12px;background:var(--surface);margin-bottom:16px}.faq button{width:100%;justify-content:space-between;border:0;border-radius:12px;background:transparent;color:#172b29;text-align:left;padding:20px;font-size:18px}.faq p{padding:0 20px 20px;margin:0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}dialog{border:1px solid var(--border);border-radius:16px;padding:30px;width:min(520px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;color:#172b29}dialog::backdrop{background:#172b2959}dialog h2{margin-bottom:20px}dialog p{color:var(--muted)}dialog>button{width:100%;margin-top:14px;justify-content:flex-start}dialog label{font-size:14px;display:block;margin:20px 0 8px}dialog select{width:100%;min-height:46px;padding:8px 12px;border:1px solid var(--border);border-radius:8px;background:#fff;color:#172b29}.check{display:flex;align-items:center;gap:12px;min-height:44px}.check input{width:22px;height:22px;accent-color:var(--teal)}body:has(dialog[open]){overflow:hidden}.mobile-menu{margin:80px 0 0 auto;width:min(440px,100%);max-height:calc(100dvh - 80px);border:0;border-radius:0;padding:20px 24px 28px}.mobile-menu::backdrop{background:#172b2926}.menu-top{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;border-bottom:1px solid var(--border);padding-bottom:12px;margin-bottom:12px}.menu-top button{font-size:28px}.mobile-menu nav{display:grid}.mobile-menu nav a{color:#172b29;min-height:48px;padding:12px;border-radius:10px}.mobile-menu nav a:hover{background:var(--surface);color:var(--teal)}.contrast .cell{background:#fff;color:#172b29;border:2px solid #172b29}.reduced-motion *{animation:none!important;scroll-behavior:auto!important}.game:fullscreen,.game.expanded{background:#fff;padding:24px;overflow:auto;width:100%;height:100%;max-width:none}.game:fullscreen .board,.game.expanded .board{width:min(80vh,800px);max-width:100%;margin:auto}.game.expanded{position:fixed;inset:0;z-index:10}.game:fullscreen .scores,.game.expanded .scores{max-width:620px;margin:0 auto 16px}.game:fullscreen .mode-label,.game.expanded .mode-label{display:none}.game:fullscreen .actions,.game.expanded .actions,.game:fullscreen .directions,.game.expanded .directions{max-width:620px;margin:16px auto}@media(max-width:1247px){.wrap{margin-left:24px;margin-right:24px}.game-layout{display:block}.game{max-width:620px}.game-aside{display:none}.mode-cards{grid-template-columns:repeat(2,1fr)}}@media(max-width:767px){:root{font-size:16px}.wrap{margin-left:20px;margin-right:20px}.desktop-nav{display:none}.menu-toggle{display:inline-flex}.brand{font-size:17px}.header{height:80px}h1{font-size:38px;line-height:55px;letter-spacing:-1px;margin:12px 0 16px}h2{font-size:24px;line-height:35px}.intro{font-size:17px;line-height:25px;margin-bottom:28px}.breadcrumbs{margin-bottom:24px}.game{max-width:none}.board{gap:8px;padding:8px}.mode-label{margin-bottom:20px}.scores{gap:16px}.scores>div{padding:10px 12px}.actions{gap:16px}.directions{gap:12px}.prose section,main>section:not(.game-layout){margin-top:34px}.mode-cards{grid-template-columns:1fr;gap:24px}.mode-card{font-size:20px}.ladder{grid-template-columns:repeat(3,1fr);gap:16px}.play-link{min-width:0;width:calc(100% - 30px)}.game-layout{display:block}dialog{padding:24px}.tip{display:none}}@media(max-width:359px){.wrap{margin-left:16px;margin-right:16px}.brand{font-size:14px;gap:8px}h1{font-size:34px;line-height:1.3}.actions{gap:10px}button,.button{padding-left:14px;padding-right:14px}.board{padding:6px;gap:6px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important}}.size-4{grid-template-rows:repeat(4,minmax(0,1fr))}.size-5{grid-template-rows:repeat(5,minmax(0,1fr))}.size-6{grid-template-rows:repeat(6,minmax(0,1fr))}.size-8{grid-template-rows:repeat(8,minmax(0,1fr))}.prose p a,.prose li a{color:#00100e;font-weight:650}.prose p a:hover,.prose p a:focus,.prose li a:hover,.prose li a:focus{color:#00100e;background:#ddf3ed;border-radius:3px}button:not(.primary):hover,.button:not(.primary):hover{color:#04534c}.board .cell.huge{font-size:2.2cqw}.cell.huge span{max-width:100%;overflow-wrap:anywhere;text-align:center;line-height:1.1}.prose{overflow-wrap:anywhere}.prose li{margin-bottom:12px;color:var(--muted)}.table-scroll{max-width:100%;overflow:auto;border:1px solid var(--border);border-radius:12px;margin:24px 0}.table-scroll table{border-collapse:collapse;min-width:620px;width:100%;font-size:15px;text-align:left}.table-scroll caption{text-align:left;padding:16px;font-weight:650;background:var(--surface)}.table-scroll th,.table-scroll td{padding:16px;border-bottom:1px solid var(--border);vertical-align:top}.table-scroll th{background:var(--surface)}code{overflow-wrap:anywhere;white-space:normal;font-size:.9em}.recovery-links{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:24px}.recovery-links a{padding:18px;border:1px solid var(--border);border-radius:12px;background:var(--surface);font-weight:650}.recovery-links a:hover{background:#ddf3ed;color:#04534c}.consent-banner{margin-top:24px;padding:24px;background:var(--surface);border:1px solid var(--border);border-radius:16px}.consent-banner h2{font-size:22px;line-height:1.4}.consent-banner p{font-size:15px;margin-bottom:16px;color:var(--muted)}.consent-banner p a{color:#00100e;font-weight:650}.consent-actions{display:flex;flex-wrap:wrap;gap:12px}.consent-actions button{flex:1 1 160px;font-weight:650}.consent-category{border:1px solid var(--border);border-radius:12px;padding:16px;margin:16px 0;background:var(--surface)}.consent-category h3{font-size:16px;margin-bottom:8px}.consent-category p{font-size:14px;margin-bottom:8px}.consent-category .check{font-weight:650;margin:0 0 8px}.consent-feedback{font-size:14px;color:var(--muted);padding-bottom:18px}.consent-feedback:empty{display:none}.back-to-top{position:fixed;right:20px;bottom:20px;z-index:5;border:1px solid var(--teal);background:#fff;box-shadow:0 3px 15px #172b291a;padding:8px 14px;gap:6px;min-height:48px}.back-to-top span:first-child{font-size:24px}body:has(dialog[open]) .back-to-top{visibility:hidden}@media(max-width:767px){.consent-banner{padding:18px}.consent-actions button{flex-basis:100%}.recovery-links{grid-template-columns:1fr}.back-to-top{right:12px;bottom:12px}.table-scroll{font-size:14px}}html{scroll-padding-block-end:90px}.storage-choice-known #consent-banner{display:none}.desktop-nav a[aria-current=page],.mobile-menu a[aria-current=page]{background:var(--surface);font-weight:650;color:#04534c}.merge-demo{border:1px solid var(--border);border-radius:16px;padding:24px;background:var(--surface);margin:20px 0}.demo-controls{margin:20px 0}.demo-controls label{display:block;font-size:16px;font-weight:650;margin-bottom:8px}.demo-controls select{width:100%;min-height:48px;padding:10px;border:1px solid var(--border);border-radius:8px;background:#fff;color:#172b29}.demo-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px}.demo-actions button[aria-pressed=true]{background:var(--teal);color:#fff;border-color:var(--teal)}.demo-comparison{display:grid;grid-template-columns:1fr 1fr;gap:24px}.demo-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;list-style:none;margin:12px 0 20px;padding:0}.prose .demo-row li{margin:0;min-height:54px;display:flex;align-items:center;justify-content:center;border:1px solid var(--border);border-radius:6px;color:#172b29;font-size:18px;font-weight:650}.demo-row .tile-0{background:#fff}.merge-demo [data-demo-status]{font-weight:650;color:#172b29}.merge-demo p:last-child{margin-bottom:0}@media(max-width:767px){.demo-comparison{grid-template-columns:1fr;gap:8px}.merge-demo{padding:16px}.demo-actions button{flex:1 1 110px}}.footer{margin-top:80px;background:#f2f6f2;border-top:1px solid #d5e2dc;color:#172b29;padding:56px 0 30px}.footer-main{display:grid;grid-template-columns:1.15fr 3fr;gap:64px}.footer-brand{display:inline-flex;align-items:center;gap:10px;color:#172b29;font-size:14px;font-weight:650;letter-spacing:.5px;min-height:44px;border-radius:6px}.footer-brand img{flex:none}.footer-message{font-size:30px;line-height:1.2;letter-spacing:-.9px;font-weight:650;margin:24px 0 14px}.footer-description{font-size:14px;line-height:1.7;color:#52645f;margin:0}.footer-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;padding-top:10px}.footer-group h2{font-size:12px;line-height:1.5;font-weight:650;text-transform:uppercase;letter-spacing:1.3px;color:#52645f;margin:0 0 18px}.footer-group ul{list-style:none;margin:0;padding:0}.footer-group li{margin:0}.footer-group a{display:flex;align-items:center;min-height:44px;padding:8px 0;font-size:14px;line-height:1.5;color:#172b29;border-radius:5px;overflow-wrap:anywhere}.footer-group a:hover{color:#087f75}.footer-group a[aria-current=page]{color:#06685f;font-weight:650}.footer-bottom{margin-top:40px;padding-top:22px;border-top:1px solid #d5e2dc;display:flex;align-items:center;justify-content:space-between;gap:20px}.footer-bottom p{margin:0;font-size:12px;line-height:1.8;color:#52645f}.footer-bottom a{color:#00100e;font-weight:650}.footer-bottom a:hover{color:#00100e;background:#ddf3ed}.footer-action{flex:none;gap:9px;background:transparent;border:1px solid #c7d7cf;padding:8px 16px;color:#172b29;min-height:44px;font-size:12px;font-weight:500}.footer-action:hover{background:#e4eee7;border-color:#087f75}.footer-settings-icon{font-size:20px;line-height:1}@media(max-width:1100px){.footer-main{grid-template-columns:1fr;gap:36px}.footer-identity{display:grid;grid-template-columns:1fr 1fr;column-gap:40px;align-items:start}.footer-brand{justify-self:start}.footer-message{grid-column:1;grid-row:2;margin-top:16px}.footer-description{grid-column:2;grid-row:2}.footer-grid{padding-top:0;gap:32px}.footer-bottom{padding-right:84px}}@media(max-width:767px){.footer{margin-top:56px;padding:32px 0 84px}.footer-main{gap:32px}.footer-identity{display:block}.footer-message{font-size:28px;margin:20px 0 12px}.footer-description{font-size:14px}.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px}.footer-group h2{margin-bottom:10px;font-size:11px}.footer-group a{font-size:14px;min-height:44px}.footer-bottom{margin-top:28px;padding-top:22px;padding-right:0;flex-direction:column;align-items:flex-start;gap:18px}.footer-bottom p{max-width:290px}.footer-action{font-size:13px}}
