:root{--page-pad:20px;--game-nav-bg:#f3f2ee;--game-nav-line:#cecec7;--game-nav-button:#faf9f5;--game-nav-fg:#354650;--game-nav-focus:#805b3e;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#354650;background:#f3f2ee;font-synthesis:none;--ink:#354650;--line:#cecec7;--paper:#faf9f5;--accent:#4b6371}*{box-sizing:border-box}body{margin:0;padding:0 var(--page-pad)}button,select,.file-button{font:inherit;color:inherit;min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--paper);padding:10px 14px;cursor:pointer;line-height:1.25}button:hover:not(:disabled),.file-button:hover{background:#e8ebeb}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible,.file-button:focus-within{outline:3px solid #805b3e;outline-offset:3px}button.primary{background:var(--accent);border-color:var(--accent);color:#ffffff;font-weight:750;padding:15px 20px}button.primary:hover:not(:disabled){background:#3c5260}button.quiet{background:transparent;border-color:transparent;text-decoration:underline;text-underline-offset:4px}h1,h2,p{margin:0}[data-game-navigation-host]{margin:0 calc(-1*var(--page-pad))}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}#levels{display:block;margin:12px auto 0;font-size:12px}main{max-width:1000px;margin:28px auto 22px;display:grid;grid-template-columns:minmax(0,570px) minmax(240px,1fr);gap:36px;align-items:center}.stage-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:14px}.stage-heading small{font-size:12px;color:#616e78}.stage-heading h2{font-size:22px;letter-spacing:-.4px;margin-top:3px}#level-best{font-size:20px;color:#86663a;white-space:nowrap}.board-wrap{position:relative;line-height:0;border:1px solid #a2b0b5;border-radius:20px;overflow:hidden;background:#b5c5cc;box-shadow:0 12px 28px #34434b0a}canvas{display:block;width:100%;height:auto;image-rendering:pixelated}#board-grid{position:absolute;display:grid;z-index:2;touch-action:manipulation}#board-grid [role=row]{display:contents}#board-grid button{border:0;border-radius:0;background:transparent;padding:0;min-height:0;box-shadow:none;width:100%;height:100%;touch-action:manipulation}#board-grid button:hover:not(:disabled){background:#f8faf824}#board-grid button:focus-visible{outline:3px solid #405562;outline-offset:-5px;background:#f8faf824}#delivery-label{position:static;margin:8px 0 0;border-radius:6px;padding:6px 10px;background:#e9ecebe8;line-height:1.3;font-size:12px;text-align:center;z-index:3;pointer-events:none}#delivery-progress{display:block;width:100%;height:5px;margin-top:3px;accent-color:#597480}.play-panel{padding:10px 0}.eyebrow{font-size:11px;letter-spacing:1.7px;text-transform:uppercase;color:#616e78;margin-bottom:14px}.play-panel h2{font-size:26px;line-height:1.2;letter-spacing:-.5px}.play-panel #message{font-size:14px;line-height:1.65;min-height:76px;margin:14px 0}#send{width:100%}.turn-count{display:flex;justify-content:space-between;align-items:center;margin:24px 0 2px}.turn-count strong{font-size:25px}.muted{font-size:12px;color:#616e78;line-height:1.6}.utilities{display:grid;grid-template-columns:1fr 1.6fr;gap:8px;margin-top:18px;font-size:13px}#restart{display:block;margin:8px auto 14px;font-size:12px}#help{display:block;margin:12px auto 0;font-size:12px}#celebration{border:1px solid #c7d0d0;padding:16px;border-radius:14px;background:#e8eeee;text-align:center}#stars{color:#86663a;font-size:28px;letter-spacing:5px;margin-bottom:6px}#celebration p{font-size:13px;line-height:1.6;margin:8px 0 12px}#celebration button{margin:3px}footer{max-width:1000px;margin:18px auto;display:flex;justify-content:space-between;font-size:12px;color:#616e78;padding:14px 0;border-top:1px solid var(--line)}#storage-notice{max-width:1000px;margin:20px auto;background:#efe4d1;border:1px solid #ac936f;padding:16px;border-radius:12px}#storage-message{line-height:1.5;margin-bottom:10px}#storage-notice button{margin:3px}dialog{border:1px solid var(--line);border-radius:18px;max-width:600px;width:calc(100% - 24px);padding:0 22px 22px;background:var(--paper);color:var(--ink);max-height:90dvh;overflow-y:auto}dialog::backdrop{background:#27343e66;backdrop-filter:blur(3px)}.dialog-heading{position:sticky;top:0;background:var(--paper);display:flex;justify-content:space-between;gap:12px;align-items:center;padding:18px 0;z-index:5;border-bottom:1px solid var(--line);margin-bottom:16px}.dialog-heading h2{font-size:22px}dialog p{font-size:14px;line-height:1.7;margin:14px 0}dialog label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0;font-size:14px}dialog .check{justify-content:flex-start}input[type=checkbox]{width:20px;height:20px;accent-color:var(--accent)}.save-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:13px}.file-button{position:relative;display:flex;align-items:center;justify-content:center;margin:0!important;text-align:center}.file-button input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.dialog-actions{display:flex;justify-content:flex-end;gap:10px}#confirm-dialog{padding-top:22px}#confirm-message{font-size:19px;line-height:1.55;margin-bottom:22px}.chapter{margin:20px 0}.chapter h3{font-size:14px;margin:0 0 10px}.island-list{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.island-list button{padding:9px 0;font-weight:bold}.island-list small{display:block;font-size:10px;letter-spacing:-1px;color:#86663a;margin-top:4px}.island-list button[aria-current=true]{border:2px solid var(--accent);background:#e7edef}#game-privacy{margin:10px 0!important;padding:12px!important;font-size:12px!important}#game-feedback{max-width:1000px!important}.game-expanded{--page-pad:12px}.game-expanded main{margin:10px auto;max-width:1080px;grid-template-columns:minmax(0, min(68dvh,580px)) minmax(240px,1fr);gap:28px;justify-content:center}.game-expanded .stage-heading{margin-bottom:6px}.game-expanded footer,.game-expanded #game-feedback{display:none!important}.game-expanded .eyebrow{display:none}.game-expanded #help{margin-top:2px}[hidden]{display:none!important}@media(max-width:820px){main{gap:24px;grid-template-columns:minmax(0,1.3fr) minmax(220px,1fr)}.play-panel h2{font-size:22px}.stage-heading h2{font-size:19px}.eyebrow{font-size:10px}}@media(max-width:620px){body{--page-pad:12px}main{display:block;margin:20px auto;max-width:480px}.stage-heading h2{font-size:20px}#level-best{font-size:17px}.board-wrap{border-radius:14px}.play-panel{padding:16px 2px 0}.eyebrow{display:none}.play-panel h2{font-size:20px}.play-panel #message{margin:8px 0 12px;min-height:0;font-size:13px;line-height:1.5}#send{padding:14px}.turn-count{margin:13px 0 0;font-size:13px}.turn-count strong{font-size:20px}.utilities{margin-top:12px}.utilities button{min-height:44px}#restart{margin:4px auto}#help{margin:2px auto}.save-actions{grid-template-columns:1fr}dialog{padding:0 16px 18px}.island-list{grid-template-columns:repeat(3,1fr)}footer{font-size:10px}.game-expanded main{display:block;max-width:480px}.game-expanded .board-wrap{max-width:min(100%,60dvh);margin:auto}.game-expanded .play-panel{padding-top:10px}.game-expanded .play-panel #message{margin:4px 0 8px}.game-expanded .turn-count,.game-expanded #par{display:none}.game-expanded .utilities{margin-top:6px}.game-expanded #restart{margin:0 auto}.game-expanded #help{display:none}}@media(orientation:landscape) and (max-height:620px){.game-expanded #game{display:grid;grid-template-columns:minmax(0,50%) minmax(0,1fr);gap:20px;margin:4px auto;max-width:1000px;align-items:center}.game-expanded .board-wrap{max-width:calc(100dvh - 52px);margin:auto}.game-expanded .stage-heading{height:42px;margin:0}.game-expanded .stage-heading h2{font-size:15px}.game-expanded .stage-heading small{font-size:10px}.game-expanded .play-panel{padding-top:42px}.game-expanded .play-panel h2{font-size:17px}.game-expanded .play-panel #message{font-size:11px;min-height:0;margin:6px 0}.game-expanded #send{padding:10px}.game-expanded .turn-count,.game-expanded #par,.game-expanded #help{display:none}.game-expanded .utilities{margin-top:7px;font-size:11px}.game-expanded #restart{margin:0;font-size:10px}.game-expanded #celebration{padding:8px}.game-expanded #celebration #stars{font-size:19px}.game-expanded #celebration p{margin:3px;font-size:11px}}
