/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(./fonts/dm-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(./fonts/dm-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Libre Caslon Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/libre-caslon-display-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Libre Caslon Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(./fonts/libre-caslon-display-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root{--bg:#f7f8f2;--paper:#fffefa;--ink:#273f35;--muted:#7b857b;--line:#e0e5db;--green:#3f6552;--soft:#eaf0e5;--selected:#d5e4ca;--peer:#f0f3eb;--accent:#f4eadc;--accent-ink:#886442;--number:#527c62;--danger:#b55243;--danger-bg:#f8e9e3;--shadow:0 16px 44px #253d3312;font-family:'DM Sans',sans-serif;color:var(--ink);background:var(--bg);color-scheme:light}
*{box-sizing:border-box}body{margin:0;font-size:14px;-webkit-font-smoothing:antialiased}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible{outline:3px solid #a2b88c;outline-offset:4px}button{transition:background .15s,transform .15s,border-color .15s}button:active:not(:disabled){transform:translateY(1px)}a{color:inherit;text-decoration:none}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.wrap{width:min(1080px,calc(100% - 80px));margin-inline:auto}.site-header{height:106px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;font-family:'Libre Caslon Display',Georgia,serif;font-size:43px;letter-spacing:-2px}.brand-period{color:#b88b64}.brand-mark{display:grid;grid-template-columns:repeat(2,10px);gap:4px;margin-right:13px;transform:translateY(1px)}.brand-mark i{width:10px;height:10px;border-radius:2px;background:var(--green)}.brand-mark i:nth-child(2),.brand-mark i:nth-child(3){opacity:.38}.brand-type{font-family:'DM Sans',sans-serif;font-size:10px;letter-spacing:2.7px;margin:13px 0 0 17px;font-weight:600;color:var(--muted)}.header-actions{display:flex;gap:22px;align-items:center}.text-button{display:flex;align-items:center;gap:8px;background:none;border:0;padding:9px 0;font-size:12px}.text-button svg{width:17px;height:17px}.icon-button{background:none;border:0;padding:8px;display:inline-flex;align-items:center;justify-content:center;border-radius:50%}.icon-button:hover{background:var(--soft)}.header-divider{height:20px;border-left:1px solid var(--line)}.intro{display:flex;align-items:center;justify-content:space-between;padding:40px 0 34px}.eyebrow{font-size:9px;letter-spacing:2.1px;font-weight:600;margin:0 0 13px;color:var(--muted)}.intro .eyebrow{display:flex;align-items:center;gap:8px}.intro .eyebrow span{width:5px;height:5px;border-radius:50%;background:#8aa27c}h1,h2{font-family:'Libre Caslon Display',Georgia,serif;font-weight:400}h1{font-size:56px;line-height:1.1;letter-spacing:-1.6px;margin:0 0 13px}.intro-copy{color:var(--muted);font-size:13px;margin:0}.intro-detail{display:flex;align-items:center;gap:14px;font-size:11px;line-height:1.8;color:var(--muted);padding-top:20px}.intro-detail svg{width:35px;height:35px;stroke-width:1;color:#9ca78f;transform:rotate(-8deg)}.game-layout{display:grid;grid-template-columns:minmax(0,590px) minmax(280px,1fr);gap:56px}.board-column{min-width:0}.difficulty-row{display:flex;align-items:center;justify-content:space-between;margin:0 0 16px;gap:12px}.difficulty-tabs{display:flex;background:#ecefe7;border:1px solid #e7eadf;border-radius:9px;padding:4px;gap:2px}.difficulty-tabs button{background:transparent;border:0;border-radius:6px;font-size:11px;padding:8px 17px;color:var(--muted)}.difficulty-tabs button.active{background:var(--paper);color:var(--green);box-shadow:0 2px 4px #253d330d;font-weight:600}.difficulty-tabs button:hover:not(.active){background:var(--soft);color:var(--ink)}.timer-wrap{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}.timer-wrap svg{width:15px;height:15px;stroke-width:1.5}.pause-button{background:none;border:0;border-left:1px solid var(--line);margin-left:5px;padding:2px 0 2px 12px;font-size:15px;color:var(--muted);line-height:1}.board-frame{position:relative;border:2px solid #637563;border-radius:9px;overflow:hidden;background:var(--paper);box-shadow:0 4px 16px #30473504}.board{display:grid;grid-template-columns:repeat(9,1fr);width:100%;aspect-ratio:1}.cell{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:1;min-width:0;background:var(--paper);border:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:0;font-size:clamp(20px,2.3vw,30px);font-weight:450;color:var(--number);font-variant-numeric:tabular-nums;line-height:1}.cell:nth-child(9n){border-right:0}.cell:nth-child(n+73){border-bottom:0}.cell.box-right{border-right:2px solid #8a9884}.cell.box-bottom{border-bottom:2px solid #8a9884}.cell.given{color:var(--ink);font-weight:550}.cell.peer{background:var(--peer)}.cell.same{background:#e3eddc;color:var(--green)}.cell.selected{background:var(--selected)!important;box-shadow:inset 0 0 0 2px #8eaa7d;z-index:1}.cell.hinted{background:#f1dfbc!important;box-shadow:inset 0 0 0 2px #c4a570}.cell.error{color:var(--danger);background:var(--danger-bg)}.cell:hover{background:var(--soft)}.cell:focus-visible{outline:0;box-shadow:inset 0 0 0 3px var(--green);z-index:2}.pencil-grid{display:grid;grid-template-columns:repeat(3,1fr);grid-template-rows:repeat(3,1fr);position:absolute;inset:4px;font-size:10px;line-height:1;font-weight:500;color:var(--muted)}.pencil-grid span{display:flex;align-items:center;justify-content:center}.board-meta{display:flex;justify-content:space-between;margin-top:14px;color:var(--muted);font-size:10px;gap:10px}.save-label{display:flex;align-items:center;gap:5px}.save-label>span:first-child{width:4px;height:4px;border-radius:50%;background:#8da67c}.progress-track{height:3px;background:var(--line);margin-top:12px;overflow:hidden;border-radius:3px}.progress-track div{height:100%;background:#a9bb94;width:0;transition:width .4s}.level-description{font-size:11px;color:var(--muted);margin-top:16px;line-height:1.7}.controls-column{padding-top:5px}.play-heading{display:flex;justify-content:space-between;align-items:center}.play-heading .eyebrow{font-size:8px;letter-spacing:1.7px;margin:0 0 11px}.play-heading h2{font-size:29px;letter-spacing:-.5px;margin:0}.small-flower{color:#b4bc9f;font-size:40px;line-height:1;padding-left:12px}.selection-label{font-size:11px;color:var(--muted);margin:20px 0 18px;height:16px}.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.number-key{height:68px;border:1px solid var(--line);border-radius:9px;background:var(--paper);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;color:var(--green)}.number-key:hover{background:var(--soft);border-color:#b9c8ae}.number-key .key-number{font-size:25px;line-height:1}.number-key .key-count{font-size:8px;color:#a0a794;letter-spacing:.2px}.number-key.notes-on .key-number{font-size:20px;opacity:.8}.tools{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:14px 0 23px}.tool-button{display:flex;flex-direction:column;gap:8px;align-items:center;padding:9px 3px;border:1px solid transparent;border-radius:8px;background:none;color:var(--muted);font-size:10px}.tool-button svg{width:19px;height:19px}.tool-button:hover,.tool-button[aria-pressed=true]{background:var(--soft);color:var(--green)}.tool-button[aria-pressed=true]{border-color:#c9d6be}.tool-button #notes-status{font-size:8px;margin-left:2px;color:#a2a98e}.tool-button[aria-pressed=true] #notes-status{color:var(--green)}.hint-card{background:var(--accent);border:1px solid #e9dfcf;padding:20px 16px;display:flex;gap:12px;border-radius:10px}.hint-card-icon{color:var(--accent-ink);padding-top:1px}.hint-card-icon svg{width:21px;height:21px}.hint-card h3{font-size:12px;font-weight:600;color:#6c563b;margin:0 0 8px}.hint-card p{font-size:10px;line-height:1.8;color:#96826b;margin:0 0 14px}.hint-button{background:none;border:0;padding:0;display:flex;align-items:center;gap:11px;font-size:10px;font-weight:600;color:#826241}.hint-button svg{width:15px;height:15px}.hint-button:hover{color:#4f3821}.game-actions{display:grid;grid-template-columns:1.6fr 1fr;gap:10px;margin-top:20px}.primary-button,.secondary-button,.check-button{border:1px solid transparent;border-radius:8px;display:flex;align-items:center;justify-content:center;gap:10px;padding:13px 17px;font-size:11px;font-weight:500}.primary-button{background:var(--green);color:#fffefa}.primary-button:hover{background:#2f5140}.primary-button svg{width:15px;height:15px}.secondary-button,.check-button{border-color:var(--line);background:transparent;color:var(--ink)}.secondary-button:hover,.check-button:hover{background:var(--soft)}.check-button svg{width:17px;height:17px}.guarantee{display:flex;align-items:center;justify-content:center;gap:6px;font-size:9px;color:var(--muted);margin-top:15px}.guarantee svg{width:12px;height:12px;color:#7d9a6c}.below-game{display:flex;justify-content:space-between;color:#9aA28f;font-size:9px;padding:14px 0 25px;align-items:center}.below-game p{display:flex;align-items:center;gap:7px;margin:0}.keyboard-key{font-size:8px;border:1px solid #dde3d4;background:#f0f3e9;border-radius:4px;padding:3px 5px;margin-left:8px;color:#7b8972}.keyboard-key:first-child{margin-left:0}.below-game>span{font-family:'Libre Caslon Display',Georgia,serif;font-size:17px;color:#96a086}footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:23px 0 27px;font-size:9px;color:#9aa18f}.footer-spark{padding-left:16px;color:#adb99c;font-size:17px}.pause-overlay{position:absolute;inset:0;background:var(--bg);z-index:5;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;text-align:center}.pause-overlay[hidden]{display:none}.pause-overlay h2{font-size:38px;margin:10px 0}.pause-overlay p{color:var(--muted);margin:0 0 26px;font-size:13px}.toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:14px 22px;border-radius:9px;box-shadow:var(--shadow);font-size:12px;z-index:20;max-width:calc(100% - 30px);text-align:center;line-height:1.5}.toast[hidden]{display:none}.dialog{color:var(--ink);background:var(--paper);border:1px solid var(--line);border-radius:18px;width:min(480px,calc(100% - 32px));padding:38px;box-shadow:0 24px 90px #1f352c26;max-height:90dvh;overflow:auto}.dialog::backdrop{background:#263b3166;backdrop-filter:blur(4px)}.dialog-close{position:absolute;right:12px;top:12px;color:var(--muted)}.dialog h2{font-size:35px;line-height:1.15;letter-spacing:-.5px;margin:10px 0 18px}.dialog .eyebrow{font-size:8px}.dialog-copy{font-size:13px;line-height:1.85;color:var(--muted)}.dialog-copy strong{color:var(--ink);font-weight:600}.dialog-actions{display:flex;gap:10px;margin-top:26px;justify-content:flex-end}.dialog-actions button{flex:1;font-size:11px;padding-inline:10px}.dialog-illustration{display:flex;width:52px;height:52px;align-items:center;justify-content:center;background:var(--accent);border-radius:14px;margin-bottom:24px;color:var(--accent-ink)}.dialog-illustration svg{width:30px;height:30px}.hint-coordinate{padding:14px;background:var(--soft);border-radius:8px;margin-top:20px;font-size:12px;color:var(--green)}.rule-points{margin-block:20px}.rule-points>div{display:flex;gap:15px;margin:18px 0}.rule-points>div>span{color:#a4b595;font-size:11px;padding-top:3px}.rule-points p{font-size:11px;line-height:1.8;color:var(--muted);margin:0}.rule-points strong{display:block;color:var(--ink);font-weight:600;margin-bottom:2px}.difficulty-guide{background:var(--soft);padding:16px;border-radius:9px;margin:20px 0;font-size:11px;color:var(--muted);line-height:1.9}.difficulty-guide>strong{color:var(--green)}.difficulty-guide p{margin:7px 0 0}.difficulty-guide b{font-weight:500;color:var(--ink)}.win-dialog{text-align:center}.win-flower{display:block;font-size:72px;color:#9eae87;margin-bottom:16px}.win-stats{display:flex;justify-content:center;gap:28px;background:var(--soft);border-radius:9px;margin:24px 0;padding:18px;font-size:12px}.win-stats span{display:block;color:var(--muted);font-size:9px;margin-top:5px}.win-dialog>.primary-button{width:100%}body.dark{--bg:#1f2a24;--paper:#29362d;--ink:#e0e8d8;--muted:#a0ad99;--line:#40503f;--green:#6d916f;--soft:#354733;--selected:#486341;--peer:#2f3d31;--accent:#423e2e;--accent-ink:#d3b786;--number:#b0cda3;--danger:#f6ad98;--danger-bg:#553d34;color-scheme:dark}body.dark .difficulty-tabs{background:#2e3b2e;border-color:#40503f}body.dark .cell.same{background:#3d5037;color:#d3e4c9}body.dark .cell.hinted{background:#675434!important}body.dark .hint-card{border-color:#5a5039}body.dark .hint-card h3,body.dark .hint-button{color:#ddc7a7}body.dark .hint-card p{color:#b9a88b}body.dark .keyboard-key{background:#29362d;border-color:#40503f}body.dark .progress-track{background:#40503f}body.dark .primary-button{color:#fffefa}
.board-row{display:contents}.cell.edge-right{border-right:0}.cell.edge-bottom{border-bottom:0}
.generation-progress{font-size:11px;color:var(--muted);line-height:1.8;min-height:20px;margin:18px 0 24px}.generation-dialog>.secondary-button{width:100%}.generation-spinner svg{animation:gentle-spin 2.5s linear infinite}@keyframes gentle-spin{to{transform:rotate(360deg)}}
@media(min-width:1400px){.wrap{width:min(1120px,calc(100% - 120px))}.game-layout{grid-template-columns:minmax(0,610px) minmax(280px,1fr);gap:64px}.number-key{height:73px}.controls-column{padding-top:7px}.tools{margin-top:18px;margin-bottom:26px}.hint-card{padding:22px 18px}.game-actions{margin-top:24px}}
@media(max-width:1050px){.wrap{width:calc(100% - 56px)}.game-layout{grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);gap:32px}.difficulty-tabs button{padding:8px 11px}.intro-detail{display:none}.number-key{height:60px}.play-heading h2{font-size:25px}.small-flower{font-size:30px}.hint-card{padding:16px 12px}.hint-card p{margin-bottom:10px}.tools{margin-bottom:17px}.below-game>span{display:none}.cell{font-size:27px}.board-meta{font-size:9px}.save-label{font-size:8px}.pencil-grid{font-size:9px}}
@media(max-width:760px){.wrap{width:calc(100% - 36px);max-width:510px}.site-header{height:78px}.brand{font-size:36px}.brand-type{font-size:8px;letter-spacing:2px;margin:10px 0 0 13px}.brand-mark{grid-template-columns:repeat(2,8px);gap:3px;margin-right:10px}.brand-mark i{width:8px;height:8px}.header-actions{gap:12px}.header-divider{display:none}.text-button{font-size:10px;gap:5px}.text-button svg{width:15px;height:15px}.icon-button{padding:6px}.intro{padding:28px 0 24px}.intro .eyebrow{font-size:8px;letter-spacing:1.7px;margin-bottom:12px}h1{font-size:42px;letter-spacing:-1.4px}.intro-copy{font-size:11px;line-height:1.8;max-width:320px}.game-layout{display:flex;flex-direction:column;gap:20px}.difficulty-row{margin-bottom:12px}.difficulty-tabs{padding:3px;gap:0}.difficulty-tabs button{font-size:10px;padding:8px 12px}.timer-wrap{font-size:11px;gap:5px}.timer-wrap svg{width:14px;height:14px}.pause-button{padding-left:9px;margin-left:1px}.cell{font-size:26px}.board-meta{font-size:9px;margin-top:12px}.save-label{font-size:8px}.level-description{font-size:10px;margin-top:10px;margin-bottom:0}.controls-column{padding-top:0}.play-heading{display:none}.selection-label{margin:0 0 13px;text-align:center;font-size:10px}.keypad{grid-template-columns:repeat(9,1fr);gap:5px}.number-key{height:50px;border-radius:6px;gap:4px}.number-key .key-number{font-size:20px}.number-key .key-count{font-size:6px}.tools{margin:10px 0 16px;gap:8px}.tool-button{flex-direction:row;justify-content:center;gap:6px;padding:9px 4px;background:var(--soft);font-size:10px}.tool-button svg{width:16px;height:16px}.hint-card{padding:17px;gap:12px}.hint-card>div:last-child{display:grid;grid-template-columns:1fr auto;column-gap:15px;flex:1}.hint-card h3{grid-column:1;font-size:11px;margin-bottom:5px}.hint-card p{grid-column:1;grid-row:2;margin:0;font-size:9px;line-height:1.7}.hint-card p br{display:none}.hint-button{grid-column:2;grid-row:1 / 3;font-size:9px;max-width:110px;text-align:left;line-height:1.7;gap:5px}.hint-card-icon svg{width:19px;height:19px}.game-actions{margin-top:15px;grid-template-columns:1.5fr 1fr}.primary-button,.check-button{padding:13px 14px}.guarantee{margin:13px 0 0;font-size:8px}.below-game{display:none}footer{margin-top:28px;padding:20px 0 24px;font-size:8px;gap:20px;line-height:1.6}.footer-spark{padding-left:8px}.pencil-grid{font-size:9px;inset:3px}.dialog{padding:30px 25px}.dialog h2{font-size:33px}.dialog-copy{font-size:12px}.dialog-actions{flex-wrap:wrap}.toast{bottom:15px;font-size:11px}}
@media(max-width:365px){.wrap{width:calc(100% - 24px)}h1{font-size:37px}.difficulty-tabs button{padding:7px 10px}.cell{font-size:23px}.number-key{height:45px}.number-key .key-number{font-size:18px}.hint-card{padding:14px 11px}.hint-card>div:last-child{column-gap:10px}.save-label{font-size:7px}.pencil-grid{font-size:8px}.brand-type{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Touch entry: real buttons keep the software keyboard closed. */
body{padding:env(safe-area-inset-top,0) env(safe-area-inset-right,0) env(safe-area-inset-bottom,0) env(safe-area-inset-left,0)}
button,a{touch-action:manipulation}.board,.cell-menu{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.board-input-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-4px 0 12px;min-height:44px}
.board-input-bar p{font-size:11px;line-height:1.6;color:var(--muted);margin:0}.cell-menu-toggle{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font-size:11px;white-space:nowrap}.cell-menu-toggle span{font-size:9px;color:var(--muted)}.cell-menu-toggle[aria-pressed=true]{background:var(--soft);border-color:#b9c8ae;color:var(--green)}.cell-menu-toggle[aria-pressed=true] span{color:var(--green)}
.cell-menu{position:fixed;z-index:30;width:254px;padding:14px;border:1px solid var(--line);border-radius:16px;background:var(--paper);box-shadow:0 10px 48px #172c3238;overflow-y:auto;overscroll-behavior:contain;color:var(--ink)}.cell-menu[hidden]{display:none!important}.cell-menu-header{display:flex;align-items:center;justify-content:space-between;gap:4px}.cell-menu-header .eyebrow{font-size:7px;letter-spacing:1.5px;margin:0 0 6px}.cell-menu-header h2{font-family:'DM Sans',sans-serif;font-size:12px;font-weight:600;margin:0;line-height:1.5}.cell-menu-header .icon-button{width:44px;height:44px;min-width:44px;flex-shrink:0;margin:-5px -5px -5px 0}.cell-menu-help{font-size:10px;color:var(--muted);line-height:1.6;min-height:32px;margin:10px 0}
.cell-menu-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.cell-menu-number{display:flex;align-items:center;justify-content:center;height:52px;min-width:44px;border:1px solid var(--line);border-radius:9px;background:var(--bg);color:var(--green);font-size:24px;font-weight:500}.cell-menu-number:hover{background:var(--soft);border-color:#a9bb94}.cell-menu-number[aria-pressed=true]{background:var(--selected);border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}
.cell-menu-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;padding-top:10px;margin-top:10px;border-top:1px solid var(--line)}.cell-menu-tool{border:1px solid transparent;border-radius:8px;background:transparent;min-height:54px;padding:6px 2px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:9px;color:var(--muted)}.cell-menu-tool svg{width:18px;height:18px}.cell-menu-tool:hover,.cell-menu-tool[aria-pressed=true]{color:var(--green);background:var(--soft)}.cell-menu-tool[aria-pressed=true]{border-color:#b9c8ae}
@media(min-width:761px) and (max-width:1000px){.wrap{width:calc(100% - 64px);max-width:640px}.site-header{height:88px}.intro{padding:26px 0}.intro h1{font-size:49px}.game-layout{display:flex;flex-direction:column;gap:24px}.difficulty-tabs button{padding:11px 20px;font-size:12px}.controls-column{display:grid;grid-template-columns:1fr 1fr;gap:0 26px;padding-top:0}.play-heading{display:none}.selection-label{grid-column:1/-1;margin:0 0 14px;font-size:12px}.keypad{grid-column:1;grid-row:2/5;gap:9px}.number-key{height:66px}.tools{grid-column:2;grid-row:2;margin:0 0 12px}.hint-card{grid-column:2;grid-row:3;padding:17px 12px}.game-actions{grid-column:2;grid-row:4;margin-top:14px}.guarantee{grid-column:1/-1;margin-top:18px}.cell{font-size:32px}.pencil-grid{font-size:13px;inset:5px}.board-meta{font-size:11px}.save-label{font-size:10px}.below-game{padding-top:18px}.below-game p{font-size:10px}}
@media(min-width:1001px) and (max-width:1366px) and (max-height:900px){.site-header{height:80px}.intro{padding:22px 0}.intro h1{font-size:45px}.intro .eyebrow{margin-bottom:9px}.game-layout{grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:34px}.board-column{max-width:min(100%,calc(100dvh - 235px))}.play-heading h2{font-size:27px}.selection-label{margin-top:15px;margin-bottom:14px}.number-key{height:62px}.tools{margin-bottom:16px}.hint-card{padding:17px 14px}.game-actions{margin-top:15px}.cell{font-size:29px}.pencil-grid{font-size:11px}}
@media(max-width:760px){.board-input-bar{margin:-2px 0 10px;gap:8px}.board-input-bar p{font-size:10px}.cell-menu-toggle{font-size:10px;padding-inline:9px}.keypad{grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.number-key{height:54px;min-width:44px}.number-key .key-number{font-size:23px}.number-key .key-count{font-size:8px}.tools{gap:8px}.tool-button{min-height:46px}.cell-menu{border-radius:14px}.cell-menu-number{height:52px}.cell-menu-help{font-size:10px}}
@media(any-pointer:coarse){.site-header .text-button,.site-header .icon-button{min-height:44px;min-width:44px}.difficulty-tabs button{min-height:44px}.pause-button{min-width:44px;min-height:44px;padding-left:10px}.primary-button,.secondary-button,.check-button{min-height:48px;font-size:12px}.tool-button{min-height:52px}.hint-button{min-height:44px;font-size:11px}.dialog-close{min-width:44px;min-height:44px}.below-game{display:none}}
@media(min-width:1001px) and (max-width:1366px) and (max-height:900px){.site-header{height:64px}.intro{padding:14px 0}.intro h1{font-size:38px;margin:0}.intro .eyebrow,.intro-copy,.intro-detail{display:none}.board-column{max-width:min(100%,calc(100dvh - 280px))}.difficulty-row{margin-bottom:8px}.board-input-bar{margin-top:0;margin-bottom:8px}}

.relax-links{display:flex;align-items:center;gap:16px;font-size:11px}.relax-links a{min-height:44px;display:inline-flex;align-items:center}.relax-links a:hover{color:var(--green)}
@media(max-width:760px){.relax-links{gap:12px;font-size:10px}footer{flex-wrap:wrap;gap:6px}}
