:root{--ink:#19303e;--muted:#6c7d88;--line:#dfe6e9;--green:#c4f477;--green-deep:#40601e;--paper:#f5f7f8;--cell:44px;--gap:5px;color-scheme:light;font-family:'DM Sans','Noto Sans JP',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0;font-size:16px}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.38;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #298a8a;outline-offset:4px}button{transition:background .16s,transform .16s,border-color .16s}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-defs{position:absolute;width:0;height:0;overflow:hidden}.topbar{height:88px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(5%,calc((100vw - 1320px)/2));gap:24px}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;font-size:23px;font-weight:800;letter-spacing:-.7px;white-space:nowrap}.brand-mark{height:37px;width:37px;display:grid;place-items:center;background:var(--ink);border-radius:10px;color:var(--green)}.brand-mark svg{width:20px;height:20px}.brand-edition{font-size:12px;font-weight:600;letter-spacing:1.3px;color:#91a0a8;margin-left:7px}.top-actions{display:flex;align-items:center;gap:13px}.offline-label{font-size:13px;color:var(--muted);margin-right:15px}.icon-button{background:none;border:0;width:40px;height:40px;display:grid;place-items:center;position:relative;border-radius:9px}.icon-button:hover{background:#eaf0f3}.mute-slash{position:absolute;width:26px;height:2px;background:currentColor;transform:rotate(-47deg);box-shadow:0 0 0 2px #fff}.help-button{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fff;padding:10px 15px;border-radius:9px;font-size:14px;font-weight:600}.help-button:hover{background:var(--paper)}main{max-width:1320px;margin:auto;padding:43px 0 0;width:90%}.page-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:31px;gap:20px}.eyebrow{font-size:12px;letter-spacing:2.2px;font-weight:700;margin:0 0 12px;display:flex;align-items:center;gap:8px}.eyebrow>span{height:6px;width:6px;background:#718f4b;border-radius:50%}h1{font-size:31px;letter-spacing:-.7px;line-height:1.5;margin:0;font-weight:800}.heading-dot{color:#9dca63;font-family:Arial;margin-left:2px}.page-heading>p{font-size:14px;line-height:1.85;color:var(--muted);margin:14px 0 0}.workspace{display:grid;grid-template-columns:255px minmax(0,1fr);gap:32px;align-items:start}.difficulty-panel{padding-top:6px}.section-label{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.section-label h2{font-size:14px;margin:0;font-weight:700}.section-label>span{font-size:12px;color:#8998a0;font-variant-numeric:tabular-nums}.difficulty-list{display:flex;flex-direction:column;gap:9px}.difficulty-option{display:flex;align-items:center;gap:13px;width:100%;text-align:left;padding:13px 13px;border:1px solid transparent;border-radius:11px;background:transparent;position:relative;min-height:71px}.difficulty-option:hover{background:#eaf0f2;border-color:#d8e1e5}.difficulty-option.selected{background:#fff;border-color:#8cac73;box-shadow:0 4px 12px #233e4010}.difficulty-index{font-size:14px;color:#92a0a6;font-weight:600;width:22px}.difficulty-option.selected .difficulty-index{color:#648639}.difficulty-copy{flex:1}.difficulty-copy strong{font-size:15px;display:block;font-weight:700}.difficulty-copy small{font-size:12px;color:var(--muted);display:block;margin-top:5px;letter-spacing:.1px}.difficulty-bars{display:flex;gap:3px;align-items:flex-end;height:20px}.difficulty-bars i{width:3px;background:#dce4e8;border-radius:2px}.difficulty-bars i.on{background:#90a879}.difficulty-bars i:nth-child(1){height:6px}.difficulty-bars i:nth-child(2){height:9px}.difficulty-bars i:nth-child(3){height:12px}.difficulty-bars i:nth-child(4){height:15px}.difficulty-bars i:nth-child(5){height:18px}.difficulty-bars i:nth-child(6){height:21px}.difficulty-option.selected:after{content:'';position:absolute;height:22px;width:3px;background:#789d50;left:-1px;top:24px;border-radius:0 3px 3px 0}.difficulty-option.custom{border-top:1px solid var(--line);border-radius:0 0 11px 11px;margin-top:6px}.difficulty-option.custom.selected{border-radius:11px;border:1px solid #8cac73}.difficulty-option.custom svg{width:19px}.difficulty-note{display:flex;gap:11px;border-top:1px solid var(--line);margin-top:23px;padding:21px 2px 0}.note-symbol{font-size:24px;line-height:1.2;color:#708b4e}.difficulty-note p{font-size:12px;line-height:1.95;margin:0;font-weight:600}.difficulty-note p span{color:var(--muted);font-weight:400}.game-panel{background:#fff;border:1px solid #dce4e8;border-radius:17px;box-shadow:0 7px 20px #17324206;overflow:hidden}.game-heading{display:flex;align-items:center;justify-content:space-between;padding:22px 27px}.game-heading-title{display:flex;align-items:center;gap:13px}.level-icon{width:43px;height:43px;border-radius:11px;background:var(--green);display:grid;place-items:center;font-size:16px;font-weight:700;font-variant-numeric:tabular-nums}.game-heading h2{margin:0 0 4px;font-size:17px}.game-heading-title p{font-size:12px;margin:0;color:var(--muted);font-variant-numeric:tabular-nums}.game-heading-title p span{padding:0 8px}.game-status{font-size:12px;border:1px solid #dfe8db;background:#f5f9ef;border-radius:99px;padding:6px 11px;color:#5c7640;font-weight:500}.game-status.lost{color:#b9504c;background:#fff0ed;border-color:#f0ccc6}.console{background:var(--ink);margin:0 26px;padding:17px 24px;border-radius:12px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;color:#fff}.counter{display:flex;align-items:center;gap:13px}.counter>svg{color:#b8ced8;width:23px;height:23px}.counter-label{display:block;font-size:11px;letter-spacing:.8px;color:#b5c5ce;margin-bottom:3px}.counter strong{font-size:30px;font-weight:500;letter-spacing:1px;font-variant-numeric:tabular-nums;line-height:1.15}.counter:first-child strong{color:var(--green)}.time-counter{justify-content:flex-end}.restart-button{width:45px;height:45px;display:grid;place-items:center;border:1px solid #ffffff2c;background:#ffffff0d;color:#eaf0f2;border-radius:12px}.restart-button:hover{background:#ffffff20;transform:rotate(-12deg)}.pause-button{width:29px;height:34px;border:0;background:none;color:#bbced7;padding:0;display:grid;place-items:center;margin-left:2px}.pause-button svg{width:19px}.board-area{position:relative;min-height:330px;background:radial-gradient(ellipse at center,#f4f8f9 0%,#fff 75%);margin:0;padding:27px 26px 23px;display:flex;align-items:center;justify-content:center}.board-scroll{overflow:auto;max-width:100%;padding:5px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#acbcc5 #ecf1f3}.board{display:grid;grid-template-columns:repeat(var(--cols,9),var(--cell));gap:var(--gap);width:max-content;padding:8px;background:#e8eef1;border:1px solid #dce5e9;border-radius:11px;box-shadow:inset 0 1px 3px #1f3c4510;touch-action:pan-x pan-y}.cell{width:var(--cell);height:var(--cell);padding:0;display:grid;place-items:center;border-radius:5px;border:1px solid #cdd9df;border-bottom:3px solid #c8d6dd;background:linear-gradient(160deg,#f9fcfd,#e7eff3);color:var(--ink);font-size:22px;font-weight:750;font-family:'DM Sans',sans-serif;user-select:none;touch-action:pan-x pan-y;position:relative}.cell:hover:not(.revealed):not(:disabled){background:#dceac9;border-color:#b7cc98;transform:translateY(-1px)}.cell:focus-visible{outline:3px solid #316c91;outline-offset:0;z-index:1}.cell.revealed{border:1px solid #e1e8ec;background:#f7f9fa;box-shadow:none}.cell.flagged{color:#466924;background:#ebf5df;border-color:#c3d4b0}.cell svg{width:19px;height:19px}.cell.flagged svg{fill:#a9d770;stroke-width:1.8}.cell[data-number="1"]{color:#3984b4}.cell[data-number="2"]{color:#528852}.cell[data-number="3"]{color:#d58250}.cell[data-number="4"]{color:#8e6daf}.cell[data-number="5"]{color:#bb5c6e}.cell[data-number="6"]{color:#248c91}.cell[data-number="7"]{color:#6c608e}.cell[data-number="8"]{color:#3c4e5b}.cell.mine{background:#e8d8d5;border-color:#dcc9c4;color:#9c5751}.cell.exploded{background:#ec7c70;border-color:#d56358;color:#fff}.cell.wrong-flag:after{content:'×';font-size:32px;position:absolute;color:#c84443}.board.finished .cell{cursor:default}.board.celebrate{animation:win-glow 1s ease-in-out 2}.game-bottom{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:4px 26px 22px}.game-bottom>p{font-size:13px;color:var(--muted);margin:0;display:flex;align-items:center;gap:7px}.live-dot{height:5px;width:5px;border-radius:50%;background:#92ac71;display:inline-block;flex-shrink:0}.mode-switch{display:flex;background:#f0f3f5;padding:4px;border-radius:9px;border:1px solid #e4eaed;flex-shrink:0}.mode-switch button{display:flex;align-items:center;gap:7px;background:transparent;border:0;border-radius:6px;padding:7px 12px;font-size:12px;font-weight:600;color:#73838c}.mode-switch button.active{background:#fff;color:var(--ink);box-shadow:0 1px 4px #172b3a16}.mode-switch svg{width:16px;height:16px}.progress-track{height:3px;background:#f0f4ed}.progress-track>div{height:100%;background:#a5ce71;width:0;transition:width .3s}.underbar{display:flex;justify-content:space-between;gap:15px;margin:20px 0 0;padding-left:287px}.controls-guide{display:flex;gap:17px;flex-wrap:wrap}.controls-guide span,.underbar>p{font-size:11px;color:#84939d;margin:0;line-height:1.7}kbd{font-family:inherit;border:1px solid #dfe6ea;border-radius:4px;background:#fff;padding:3px 5px;font-size:11px;color:#6a7d89;margin-right:4px}.underbar>p{white-space:nowrap}footer{border-top:1px solid var(--line);margin-top:39px;padding:22px 0 26px;display:flex;justify-content:space-between;gap:12px;font-size:11px;color:#91a0a8;letter-spacing:1px}footer b{font-weight:400;margin:0 9px}footer>span:last-child{letter-spacing:.2px}.pause-cover{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#f8fafb;z-index:3}.pause-cover[hidden]{display:none}.pause-emblem{display:grid;place-items:center;width:65px;height:65px;background:var(--ink);color:var(--green);border-radius:20px;margin-bottom:10px}.pause-cover h3{font-size:24px;margin:9px 0}.pause-cover p{font-size:14px;color:var(--muted);margin-bottom:24px}.modal{border:1px solid #dde5e9;border-radius:22px;box-shadow:0 24px 100px #142a3b30;padding:32px;max-width:520px;width:calc(100% - 32px);color:var(--ink);max-height:calc(100dvh - 40px);overflow:auto}.modal::backdrop{background:#142a3b70;backdrop-filter:blur(6px)}.modal-top{display:flex;align-items:center;justify-content:space-between;margin:-8px -9px 12px 0}.modal-top .eyebrow{margin:0;color:#809460}.modal h2{font-size:26px;letter-spacing:-.8px;margin:0 0 12px}.modal>p,.modal form>p{font-size:14px;color:var(--muted);line-height:1.9}.custom-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:28px 0 20px}.custom-fields label{font-size:13px;font-weight:600}.custom-fields input{width:100%;padding:13px 10px;border:1px solid #ccd8df;border-radius:8px;background:#f8fafb;margin:9px 0;font-size:22px;font-weight:600;color:var(--ink)}.custom-fields small{font-size:11px;color:var(--muted);font-weight:400}.density{display:flex;justify-content:space-between;background:#eef5e5;border-radius:9px;padding:14px 16px;font-size:14px}.form-note{font-size:12px!important;line-height:1.85!important;color:var(--muted)!important;margin:18px 0 24px!important}.primary-button,.secondary-button{border:1px solid transparent;background:var(--ink);color:#fff;border-radius:10px;padding:13px 21px;font-weight:600;font-size:14px;display:inline-flex;gap:9px;justify-content:center;align-items:center}.primary-button:hover{background:#2a485b;transform:translateY(-1px)}.primary-button svg{width:18px;height:18px}.secondary-button{border-color:#d5e0e5;background:white;color:var(--ink)}.secondary-button:hover{background:#eef3f5}.full-width{width:100%}.full-width>span{margin-left:auto}.rule{display:flex;gap:15px;margin:25px 0}.rule-number{flex:0 0 33px;height:33px;border-radius:9px;background:#edf5e2;color:#56793a;font-weight:700;display:grid;place-items:center}.rule h3,.keyboard-help h3{font-size:14px;margin:0 0 7px}.rule p,.keyboard-help p{font-size:13px;color:var(--muted);line-height:1.85;margin:0}.keyboard-help{background:#f4f7f8;padding:17px;border-radius:11px}.keyboard-help p{line-height:2.6}.small-modal{max-width:430px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:26px}.result-modal{text-align:center;padding-top:45px}.result-close{position:absolute;top:14px;right:14px}.result-emblem{width:78px;height:78px;border-radius:24px;background:var(--green);display:grid;place-items:center;margin:0 auto 25px;transform:rotate(-7deg)}.result-emblem svg{width:38px;height:38px;transform:rotate(7deg)}.result-modal>.eyebrow{justify-content:center;color:#748b56}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;padding:22px 0;margin:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.result-stats span{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}.result-stats strong{font-size:21px;font-weight:650;font-variant-numeric:tabular-nums}.text-button{border:0;background:none;padding:15px 5px 0;font-size:13px;color:var(--muted)}.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}@keyframes win-glow{50%{box-shadow:0 0 28px #add87280}}@media(min-width:1550px){main{padding-top:50px}.board-area{padding-top:34px;padding-bottom:29px}:root{--cell:47px}}
@media(max-width:1150px){.workspace{grid-template-columns:220px minmax(0,1fr);gap:24px}.underbar{padding-left:244px;flex-wrap:wrap}.console{padding:17px 18px}.counter strong{font-size:27px}.game-bottom{flex-wrap:wrap}.offline-label{display:none}.board-area{padding:23px 18px}.game-heading{padding:20px}.console{margin:0 20px}.game-bottom{padding:4px 20px 20px}}
@media(max-width:850px){main{padding-top:27px;width:92%}.topbar{height:72px;padding:0 4%}.brand-edition{display:none}.page-heading{margin-bottom:24px}h1{font-size:27px}.page-heading>p{font-size:12px}.workspace{display:flex;flex-direction:column;gap:20px}.difficulty-panel{width:100%}.section-label{margin-bottom:10px}.difficulty-list{display:grid;grid-template-columns:repeat(7,minmax(94px,1fr));gap:7px;overflow:auto;padding:2px 2px 7px}.difficulty-option{padding:10px 9px;min-height:68px;gap:0;justify-content:center;text-align:center;background:#edf1f3;border:1px solid transparent;border-radius:9px}.difficulty-index,.difficulty-bars{display:none}.difficulty-copy strong{font-size:14px}.difficulty-copy small{font-size:11px}.difficulty-option.custom{margin:0;border:1px solid transparent;border-radius:9px}.difficulty-option.custom.selected{border-radius:9px}.difficulty-option.custom svg{display:none}.difficulty-option.selected:after{height:3px;width:25px;left:calc(50% - 12px);top:auto;bottom:-1px;border-radius:3px 3px 0 0}.difficulty-note{display:none}.game-panel{width:100%}.board-area{padding-top:25px;padding-bottom:25px;min-height:330px}.game-bottom{flex-wrap:nowrap}.underbar{padding-left:0;margin-top:16px}.controls-guide{gap:12px}footer{margin-top:30px}.counter strong{font-size:30px}.console{padding:15px 22px}}
@media(max-width:520px){:root{--cell:32px;--gap:4px}.topbar{height:64px}.brand{font-size:19px;gap:9px}.brand-mark{width:32px;height:32px;border-radius:9px}.top-actions{gap:5px}.help-button{padding:8px;border:0}.help-button span{display:none}.page-heading{align-items:flex-end;margin-bottom:22px}.page-heading>p{display:none}h1{font-size:26px}.eyebrow{font-size:10px;margin-bottom:7px}.section-label h2{font-size:13px}.workspace{gap:13px}.difficulty-option{min-height:61px}.difficulty-copy small{font-size:10px}.game-panel{border-radius:14px}.game-heading{padding:17px 16px}.game-heading h2{font-size:16px}.level-icon{width:38px;height:38px;font-size:14px}.console{margin:0 14px;padding:13px 14px;border-radius:9px;gap:7px}.counter{gap:8px}.counter>svg{width:18px}.counter-label{font-size:10px;letter-spacing:.2px}.counter strong{font-size:25px}.restart-button{height:37px;width:37px;border-radius:10px}.restart-button svg{width:19px}.pause-button{width:20px;margin-left:0}.pause-button svg{width:16px}.board-area{padding:19px 7px;min-height:270px}.board{padding:6px;border-radius:8px}.cell{font-size:19px;border-radius:4px;border-bottom-width:2px}.cell svg{width:16px;height:16px}.game-bottom{padding:4px 14px 16px;gap:6px}.game-bottom>p{font-size:11px;max-width:185px;line-height:1.7}.mode-switch{padding:3px}.mode-switch button{padding:7px 9px;gap:5px;font-size:11px}.mode-switch svg{width:14px}.underbar{margin-top:12px}.controls-guide{display:none}.underbar>p{margin-left:auto}.game-status{font-size:11px;padding:5px 9px}footer{margin-top:23px;font-size:9px;letter-spacing:.5px}footer>span:last-child{display:none}.modal{padding:25px}.modal h2{font-size:23px}.custom-fields{gap:9px}.custom-fields label{font-size:12px}.custom-fields input{font-size:20px}.result-modal{padding-top:43px}.result-modal .eyebrow{font-size:11px}}
.board-row{display:contents}.board.dense{--cell:32px;--gap:3px}.board-scroll{max-height:650px;max-height:min(68dvh,650px)}.mute-slash[hidden]{display:none}.cell[aria-disabled="true"]:hover{transform:none}.board-scroll[aria-hidden="true"]{visibility:hidden}.board.dense .cell{font-size:19px}.board.dense .cell svg{width:17px;height:17px}@media(max-width:520px){:root{--cell:clamp(24px,calc((92vw - 82px)/9),39px);--gap:3px}.board.dense{--cell:32px;--gap:3px}.board-scroll{max-height:58dvh}.difficulty-list{scrollbar-width:thin}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Field edition */
body{background:#f1f5ed}.game-panel{border-color:#cbd9bc}.board-area{overflow:hidden;background:radial-gradient(circle at 13% 16%,#e4efc9 0 2px,transparent 3px),radial-gradient(circle at 85% 76%,#e8d9a5 0 2px,transparent 3px),linear-gradient(155deg,#d7e8b4 0%,#bdd58c 45%,#a9c578 100%);border-top:1px solid #d5e2c5;border-bottom:1px solid #aeca7f}.board-area:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(78deg,transparent 0 23px,#668a3a0a 24px 25px);pointer-events:none}.board-scroll{position:relative;z-index:2;scrollbar-color:#769c4f #dce8c9}.board{background:#749b50;border-color:#638744;box-shadow:0 10px 24px #42612c28,inset 0 1px 3px #27421938}.cell{border-color:#668c45;border-bottom-color:#547b35;background:linear-gradient(145deg,#9dcf65,#79ac49);box-shadow:inset 1px 1px #c8e99a;color:#173a2c}.cell:hover:not(.revealed):not(:disabled){background:#acd976;border-color:#5f8a3c}.cell.revealed{border-color:#d6d4b6;background:linear-gradient(145deg,#faf6da,#e7e6c6);box-shadow:inset 0 1px 2px #9b9b7324}.cell.logical-hint{box-shadow:inset 0 0 0 2px #edb844,0 0 0 1px #fff6c8}.cell.logical-hint:after{content:'•';position:absolute;top:0;right:3px;color:#bf8120;font-size:10px}.cell.flagged{color:#315220;background:linear-gradient(145deg,#c9e896,#9fc968);border-color:#5c843a}.cell.mine{background:#e9d4c3}.wildflower,.grass-tuft{position:absolute;z-index:1;pointer-events:none;color:#fff7d2;text-shadow:0 1px #638341;font-size:24px;opacity:.85}.flower-one{left:3%;top:17%;transform:rotate(-12deg)}.flower-two{right:3.5%;bottom:18%;color:#fff}.grass-tuft{color:#527a36;font-size:30px;font-weight:700;opacity:.55}.tuft-one{left:8%;bottom:8%;transform:rotate(-10deg)}.tuft-two{right:9%;top:11%;transform:scaleX(-1) rotate(-7deg)}.edge-guide{display:flex;gap:10px;align-items:center;margin-left:auto;color:#758471;font-size:10px;white-space:nowrap}.edge-guide span+span:before{content:'·';margin-right:10px;color:#9caf91}.logic-promise{font-size:11px;color:#60794b;margin:0;letter-spacing:.1px}.game-bottom{background:#fbfcf8}.progress-track{background:#e1ead6}.progress-track>div{background:#78a94d}.pause-cover{background:#edf4df}.live-dot{background:#6c9b42}
@media(max-width:1100px){.edge-guide span:nth-child(3){display:none}}
@media(max-width:850px){.game-bottom{flex-wrap:wrap}.edge-guide{display:flex;order:3;width:100%;justify-content:flex-start;padding-top:7px;border-top:1px solid #e3eadb}.edge-guide span:nth-child(3){display:none}.wildflower,.grass-tuft{opacity:.45}.underbar{padding-left:0}}
@media(max-width:520px){.board-area{background:linear-gradient(155deg,#d7e8b4,#a9c578)}.wildflower,.grass-tuft{display:none}.logic-promise{max-width:68%;line-height:1.5}.edge-guide{font-size:9px;gap:7px}.edge-guide span+span:before{margin-right:7px}}

/* Meadow grid — compact controls, square turf tiles */
:root{--ink:#17372d;--muted:#65756b;--line:#d8ded5;--green:#d7ea52;--green-deep:#294b2d;--paper:#f4f5ef;--gap:0;font-family:'IBM Plex Sans JP','Yu Gothic UI',sans-serif}.brand,h1,.game-heading h2,.difficulty-copy strong,.counter strong{font-family:'Space Grotesk','IBM Plex Sans JP',sans-serif}.topbar{height:70px;background:#f9faf5;border-bottom-color:#cfd7cc}.brand{font-size:20px;letter-spacing:-.5px}.brand-mark{border-radius:2px;background:#214a35;color:#d9f06b}.help-button,.icon-button,.game-panel,.level-icon,.console,.restart-button,.mode-switch,.mode-switch button{border-radius:2px}main{padding-top:26px}.page-heading{margin-bottom:16px}.page-heading .eyebrow{margin-bottom:4px}.page-heading h1{font-size:27px}.page-heading>p{font-size:12px;line-height:1.65}.workspace{display:block}.difficulty-panel{display:flex;align-items:center;gap:12px;padding:0}.section-label{flex:0 0 112px;margin:0}.section-label>span{display:none}.difficulty-list{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;flex:1}.difficulty-option,.difficulty-option.custom{min-height:44px;margin:0;padding:7px 10px;gap:7px;border:1px solid #d5ddd1;border-radius:2px;background:#ecefe8;text-align:left}.difficulty-option:hover{background:#e2e9dd;border-color:#9bac91}.difficulty-option.selected,.difficulty-option.custom.selected{border-radius:2px;background:#263f30;border-color:#263f30;color:#f7f7ee;box-shadow:none}.difficulty-option.selected:after{width:100%;height:3px;left:0;bottom:-1px;top:auto;background:#d9e95b;border-radius:0}.difficulty-index{width:auto;font-family:'Space Grotesk',sans-serif;font-size:11px;color:#809083}.difficulty-option.selected .difficulty-index{color:#d9e95b}.difficulty-copy strong{font-size:13px}.difficulty-copy small,.difficulty-bars,.difficulty-option.custom>svg{display:none}.difficulty-note{display:none}.game-panel{margin-top:13px;border-radius:3px;border-color:#bcc9b7;box-shadow:0 8px 24px #243a2912}.game-heading{padding:13px 18px}.level-icon{width:36px;height:36px;font-size:13px}.game-heading-title{gap:10px}.game-heading h2{font-size:16px;margin-bottom:2px}.game-status{border-radius:2px}.console{margin:0 17px;padding:11px 18px;background:#183c31}.counter{gap:10px}.counter strong{font-size:26px}.counter-label{font-size:10px}.restart-button{width:38px;height:38px}.board-area{min-height:352px;padding:30px 22px;background:radial-gradient(ellipse at 16% 18%,#6e843f80 0 8%,transparent 28%),radial-gradient(ellipse at 82% 72%,#536d3588 0 11%,transparent 32%),repeating-linear-gradient(100deg,#76964f 0 2px,#82a558 2px 5px,#6e914a 5px 7px,#8bab5e 7px 11px);border-color:#58713c}.board-area:before{background:repeating-linear-gradient(83deg,transparent 0 11px,#314d2526 12px,#abc47a14 13px,transparent 15px),linear-gradient(#ffffff0c,#203b1918)}.wildflower,.grass-tuft{display:none}.board-scroll{padding:0;scrollbar-color:#476733 #8ba76a}.board{gap:0;padding:0;border:3px solid #3f5f35;border-radius:0;background:#3f5f35;box-shadow:0 18px 30px #23351d45,0 2px 0 #b7ce8c inset}.cell{border-radius:0;border:0;border-right:1px solid #52793e;border-bottom:1px solid #486c37;background:radial-gradient(circle at 70% 28%,#9abb6733 0 8%,transparent 9%),repeating-linear-gradient(104deg,#709d4d 0 2px,#79a653 2px 5px,#659044 5px 7px);box-shadow:inset 1px 1px #9fc47555,inset -1px -1px #375d2f55;color:#17372d;font-family:'Space Grotesk','IBM Plex Sans JP',sans-serif}.cell:hover:not(.revealed):not(:disabled){background:repeating-linear-gradient(104deg,#85b85c 0 2px,#8fc363 2px 5px,#76a950 5px 7px);border-color:#52793e;transform:none}.cell.revealed{border:0;border-right:1px solid #9b8d69;border-bottom:1px solid #8c7c5b;background:radial-gradient(circle at 28% 26%,#d6c59d 0 2px,transparent 3px),radial-gradient(circle at 72% 68%,#8c775128 0 2px,transparent 3px),linear-gradient(145deg,#c5b58d,#ad9b72);box-shadow:inset 0 0 4px #705e3a35}.cell.logical-hint{box-shadow:inset 0 0 0 2px #f2d35e}.cell.flagged{background:repeating-linear-gradient(104deg,#8db55a 0 2px,#98c263 2px 5px,#7ba54d 5px 7px);border-color:#52793e;color:#f0f4cf}.cell.mine{background:#95705c}.cell.exploded{background:#bd513e}.cell[data-number="1"]{color:#244f9e}.cell[data-number="2"]{color:#2f6937}.cell[data-number="3"]{color:#9e312a}.cell[data-number="4"]{color:#583a8d}.cell[data-number="5"]{color:#7f2822}.cell[data-number="6"]{color:#176a6d}.cell[data-number="7"]{color:#352d32}.cell[data-number="8"]{color:#4e4e42}.game-bottom{padding:8px 17px 10px;background:#f7f8f2;border-top:1px solid #d8dfd3}.game-bottom>p{font-size:12px}.edge-guide{font-size:10px}.mode-switch{padding:2px;background:#e4e8df;border-color:#d2d9cd}.mode-switch button{padding:5px 8px}.mode-switch button.active{box-shadow:none;background:#fff}.progress-track{height:4px}.underbar{padding-left:0;margin-top:10px}.logic-promise{color:#4d6a43}.modal,.primary-button,.secondary-button,.custom-fields input,.density,.rule-number,.keyboard-help,.result-emblem{border-radius:3px}
@media(max-width:850px){.difficulty-panel{display:block}.section-label{margin-bottom:8px}.difficulty-list{display:grid;grid-template-columns:repeat(7,minmax(84px,1fr));overflow:auto}.difficulty-option{justify-content:center;text-align:center}.game-panel{margin-top:10px}.game-heading{padding:12px 14px}.console{margin:0 12px}.board-area{padding:22px 10px}.game-bottom{padding:8px 12px}.edge-guide{padding-top:6px}}
@media(max-width:520px){main{padding-top:18px}.page-heading{margin-bottom:12px}.page-heading h1{font-size:24px}.difficulty-option{min-height:40px;padding:6px}.board-area{background:repeating-linear-gradient(100deg,#76964f 0 2px,#82a558 2px 5px,#6e914a 5px 7px,#8bab5e 7px 11px)}.board{border-width:2px}.cell{border-radius:0!important}.console{padding:10px 12px}.counter strong{font-size:23px}}

/* Voxel minefield */
.board-area{background:radial-gradient(circle at 20% 16%,#536d3d88 0 9%,transparent 29%),radial-gradient(circle at 78% 74%,#324b2f66 0 12%,transparent 34%),repeating-conic-gradient(from 90deg at 50% 50%,#587a48 0 25%,#628550 0 50%,#547345 0 75%,#6c8c54 0) 0 0/34px 34px;background-color:#58764a;perspective:900px}.board-area:before{background:linear-gradient(#bbd18418,#142b1f3d),repeating-linear-gradient(90deg,transparent 0 16px,#d0e2a20a 17px,#1c38290d 18px)}.board{border:5px solid #283e2f;background:#283e2f;box-shadow:0 7px 0 #1b2b20,0 24px 34px #10231966,inset 0 1px #8ea873;transform:translateZ(0)}.cell{isolation:isolate;border-right:1px solid #436b35;border-bottom:1px solid #355a2f;background:linear-gradient(135deg,transparent 0 76%,#315a2c 77% 100%),linear-gradient(45deg,#7cae53 0 24%,#70a047 25% 49%,#85b35a 50% 74%,#679541 75% 100%);background-size:100% 100%,12px 12px;box-shadow:inset 3px 3px #9ac56f,inset -3px -3px #3f6d35;text-shadow:0 1px #ffffff8c;image-rendering:pixelated;transition:filter .08s,transform .08s}.cell:hover:not(.revealed):not(:disabled){background:linear-gradient(135deg,transparent 0 76%,#3d6b36 77% 100%),linear-gradient(45deg,#8dc269 0 24%,#80b759 25% 49%,#96c96f 50% 74%,#76a950 75% 100%);background-size:100% 100%,12px 12px;box-shadow:inset 3px 3px #b1d78a,inset -3px -3px #47773b;filter:brightness(1.04)}.cell:not(.revealed):active{transform:translate(1px,2px);box-shadow:inset 2px 2px #416e37,inset -1px -1px #97be71}.cell.revealed{border-right:1px solid #735339;border-bottom:1px solid #62472f;background:linear-gradient(45deg,#976f49 0 24%,#a57c53 25% 49%,#8d6744 50% 74%,#b0845c 75% 100%);background-size:12px 12px;box-shadow:inset 1px 1px #c3a078,inset -1px -1px #66472f;text-shadow:1px 1px #d6bc9680}.cell.flagged{background:linear-gradient(45deg,#739d4d 0 24%,#84ae5a 25% 49%,#678e46 50% 74%,#91b765 75% 100%);background-size:12px 12px;box-shadow:inset 3px 3px #a9cb7f,inset -3px -3px #416c36}.cell.mine{background:linear-gradient(45deg,#765548 0 24%,#896052 25% 49%,#68493f 50% 74%,#966b59 75% 100%);background-size:12px 12px}.cell.exploded{background:linear-gradient(45deg,#bd492f 0 24%,#e2693e 25% 49%,#8e3026 50% 74%,#f08a49 75% 100%);background-size:12px 12px}.effects-layer{position:absolute;inset:0;z-index:6;overflow:hidden;pointer-events:none}.voxel-debris{position:absolute;width:var(--size);height:var(--size);background:#8b6844;box-shadow:inset 1px 1px #c29868;animation:voxel-debris .75s cubic-bezier(.15,.65,.3,1) var(--debris-delay) both}.voxel-debris.debris-grass{background:#74a44e;box-shadow:inset 1px 1px #a9ce78}.cell.block-breaking{animation:block-break .38s steps(4,end) var(--break-delay) both}.game-panel.shake-small{animation:screen-shake-small .28s steps(2,end)}.game-panel.shake-large{animation:screen-shake-large .45s steps(2,end)}.game-panel.shake-impact{animation:screen-shake-impact .55s steps(2,end)}
.hint-button{border:1px solid #cbd5c5;background:#eef1e9;color:#52634e;border-radius:2px;padding:5px 9px;font-size:10px;font-weight:600}.hint-button:hover:not(:disabled){background:#fff;border-color:#8ea283}.hint-button:disabled{opacity:.42}
@keyframes block-break{0%{opacity:.25;filter:brightness(1.6);transform:scale(.72)}35%{opacity:.65;transform:scale(.88)}70%{filter:brightness(.9);transform:scale(1.04)}100%{opacity:1;filter:none;transform:scale(1)}}
@keyframes voxel-debris{0%{opacity:1;transform:translate(-50%,-50%) scale(1) rotate(0)}72%{opacity:1}100%{opacity:0;transform:translate(calc(-50% + var(--dx)),calc(-50% + var(--dy) + 52px)) scale(.45) rotate(var(--spin))}}
@keyframes screen-shake-small{0%,100%{transform:translate(0)}25%{transform:translate(-2px,1px)}50%{transform:translate(2px,-1px)}75%{transform:translate(-1px,-1px)}}
@keyframes screen-shake-large{0%,100%{transform:translate(0)}12%{transform:translate(-5px,2px)}25%{transform:translate(4px,-3px)}40%{transform:translate(-4px,-1px)}55%{transform:translate(4px,2px)}70%{transform:translate(-2px,1px)}85%{transform:translate(1px,-1px)}}
@keyframes screen-shake-impact{0%,100%{transform:translate(0)}10%{transform:translate(-7px,3px)}22%{transform:translate(7px,-4px)}36%{transform:translate(-6px,-2px)}50%{transform:translate(5px,4px)}66%{transform:translate(-4px,1px)}82%{transform:translate(2px,-2px)}}
@media(prefers-reduced-motion:reduce){.cell.block-breaking,.game-panel.shake-small,.game-panel.shake-large,.game-panel.shake-impact,.voxel-debris{animation:none!important}.effects-layer{display:none}}

/* Soft field — calm, original palette inspired by simple lawn boards */
.board-area{
 background:
  linear-gradient(#ffffff0c,#6c9d2510),
  conic-gradient(from 90deg,#add477 25%,#a7ce70 0 50%,#add477 0 75%,#a7ce70 0) 0 0/66px 66px;
 background-color:#aad173;
 border-color:#91bb61;
 perspective:none
}
.board-area:before{background:linear-gradient(115deg,#d8f08b12,#76a63212)}
.board{
 border:1px solid #7fa855;
 background:#aad173;
 box-shadow:0 10px 28px #536f3a20;
 transform:none
}
.cell{
 border:0;
 background:#add477;
 box-shadow:none;
 text-shadow:none;
 filter:none;
 transition:background .09s,opacity .09s,transform .09s
}
.board-row:nth-child(odd) .cell:nth-child(even),
.board-row:nth-child(even) .cell:nth-child(odd){background:#a7ce70}
.cell:hover:not(.revealed):not(:disabled){
 background:#b9dd84;
 box-shadow:inset 0 0 0 2px #ffffff45;
 filter:none
}
.cell:not(.revealed):active{transform:scale(.94);box-shadow:none}
.cell.revealed{
 border:0;
 border-right:1px solid #ceb08f;
 border-bottom:1px solid #ceb08f;
 background:#e8c8a9;
 box-shadow:none;
 text-shadow:none
}
.board-row:nth-child(odd) .cell.revealed:nth-child(even),
.board-row:nth-child(even) .cell.revealed:nth-child(odd){background:#e1bd9d}
.cell.logical-hint{box-shadow:inset 0 0 0 2px #f3b94e}
.cell.flagged,
.board-row:nth-child(odd) .cell.flagged:nth-child(even),
.board-row:nth-child(even) .cell.flagged:nth-child(odd){
 background:#b2d97b;
 color:#31552d;
 box-shadow:inset 0 0 0 2px #77aa43
}
.cell.mine{background:#ddb6a0}
.cell.exploded{background:#df6856}
.cell[data-number="1"]{color:#2876bd}.cell[data-number="2"]{color:#388443}.cell[data-number="3"]{color:#d34638}.cell[data-number="4"]{color:#7650a0}.cell[data-number="5"]{color:#9b3d38}.cell[data-number="6"]{color:#237e82}.cell[data-number="7"]{color:#4f4752}.cell[data-number="8"]{color:#69645c}
.voxel-debris{background:#cda987;box-shadow:none}.voxel-debris.debris-grass{background:#a9d173;box-shadow:none}
.board{border:2px solid #72984d;box-shadow:0 9px 22px #3f5a2c2b}
.board-area.custom-background{
 background-image:linear-gradient(#23351f3d,#23351f3d),var(--field-image);
 background-size:cover;
 background-position:center;
 background-repeat:no-repeat
}
.board-area.custom-background:before{background:linear-gradient(115deg,#ffffff16,#18271522)}
.background-controls{display:flex;align-items:center;gap:3px;flex-shrink:0}
.background-button,.background-remove{border:1px solid #cbd5c5;background:#fff;color:#52634e;border-radius:2px;padding:5px 8px;font-size:10px;font-weight:600;white-space:nowrap}
.background-button:hover,.background-remove:hover{background:#eef4e8;border-color:#96aa89}
.background-remove{width:25px;padding:5px 0}
@media(max-width:900px){.game-bottom{flex-wrap:wrap}.background-controls{order:2}.edge-guide{order:3;width:auto}.mode-switch{margin-left:auto}}
@media(max-width:520px){.background-button{max-width:112px;overflow:hidden;text-overflow:ellipsis}.background-controls{order:3}.edge-guide{order:4;width:100%}}

/* Archive edition */
:root{--brass:#9b7a38;--paper-warm:#f3efe3;--ink-vintage:#263b31}
body{background-color:#efede4;background-image:linear-gradient(#ffffff40,#e4dfd030)}
.topbar{background:#f5f1e6;border-bottom-color:#c9c0a9;box-shadow:inset 0 -1px #fff9e9}
.brand{gap:11px}.brand-title{font-family:'Yu Mincho','Hiragino Mincho ProN','Times New Roman',serif;font-size:21px;font-weight:700;letter-spacing:.08em;color:#294537}
.brand-mark{background:#294537;color:#d7bd65;border:1px solid #183126;box-shadow:inset 0 0 0 1px #ffffff1f}
.difficulty-option,.difficulty-option.custom{background:#ebe7da;border-color:#d2cab6}.difficulty-option:hover{background:#f4efdf;border-color:#ae9a68}.difficulty-option.selected,.difficulty-option.custom.selected{background:#344c3f;border-color:#263c32}.difficulty-option.selected:after{background:#c7a94f}
.game-panel{background:#f8f5ec;border-color:#bdb39b;box-shadow:0 10px 28px #54493414}.game-heading,.game-bottom{background:#f8f5ec}.level-icon{background:#d8bc58;color:#263b31}.game-status{background:#f1ead6;border-color:#d0c29c;color:#655328}.console{background:#29453a}.counter:first-child strong{color:#e0c65c}
.board{border-color:#526f4a;box-shadow:0 8px 0 #415b3b55,0 14px 26px #3f5a2c24}
.cell,.board.dense .cell{font-size:clamp(8px,calc(var(--cell)*.5),20px)}
.cell svg,.board.dense .cell svg{width:clamp(8px,calc(var(--cell)*.46),18px);height:clamp(8px,calc(var(--cell)*.46),18px)}
.zoom-controls{display:flex;align-items:center;border:1px solid #c8bea7;background:#eee9dc;border-radius:2px;overflow:hidden;flex-shrink:0}
.zoom-controls>span{padding:0 7px;font-size:9px;color:#746a56;border-right:1px solid #d3c9b3}.zoom-controls button{width:27px;height:27px;border:0;background:#f9f6ed;color:#465b4d;font-weight:700;padding:0}.zoom-controls button:hover:not(:disabled){background:#e4dcc8}.zoom-controls output{min-width:42px;text-align:center;font:600 10px 'Space Grotesk',sans-serif;color:#695d48}
.board-area{height:clamp(360px,58dvh,640px);min-height:0}.board-scroll{max-height:100%;max-width:100%;overflow:auto}
@media(max-width:900px){.zoom-controls{order:2}.background-controls{order:1}}
@media(max-width:520px){.brand-title{font-size:16px;letter-spacing:.04em}.zoom-controls{order:2}.zoom-controls output{min-width:36px}.game-bottom>p{order:3}.background-controls{order:1}.board-area{height:clamp(280px,52dvh,480px)}}
.background-callout{position:absolute;left:14px;bottom:12px;z-index:4;border:1px solid #8b774d;background:#fff9e9e8;color:#55482f;padding:10px 14px;font-size:13px;font-weight:700;box-shadow:0 5px 17px #3344262b;backdrop-filter:blur(4px)}.background-callout span{display:inline-block;margin-left:6px;color:#a34436;font-size:19px;animation:callout-arrow 1.2s ease-in-out infinite}.background-callout[hidden]{display:none}
.cell.hint-pulse{z-index:5;animation:hint-pulse .62s steps(2,end) 5!important;box-shadow:inset 0 0 0 3px #d9362b,0 0 0 3px #fff4e5,0 0 18px #d9362b!important}.cell.hint-pulse:after{content:'';position:absolute;width:7px;height:7px;border-radius:50%;background:#d9362b;top:3px;right:3px}
@keyframes hint-pulse{0%,100%{background:#f7d4c7;filter:brightness(1)}50%{background:#d9362b;filter:brightness(1.12)}}@keyframes callout-arrow{50%{transform:translate(-2px,3px)}}
.game-panel:fullscreen{width:100vw;height:100vh;max-width:none;border:0;border-radius:0;display:flex;flex-direction:column;background:#f8f5ec}.game-panel:fullscreen .board-area{height:auto;min-height:0;flex:1}.game-panel:fullscreen .game-heading{flex:0 0 auto}.game-panel:fullscreen .console{flex:0 0 auto}.game-panel:fullscreen .game-bottom,.game-panel:fullscreen .progress-track{flex:0 0 auto}
.game-heading-actions{display:flex;align-items:center;gap:8px}.panel-fullscreen-btn{width:30px;height:30px;display:grid;place-items:center;border:1px solid #d0c29c;background:#f5f0e2;color:#5d543e;padding:0}.panel-fullscreen-btn:hover{background:#e8dfc8}.panel-fullscreen-btn svg{width:16px;height:16px}
@media(prefers-reduced-motion:reduce){.cell.hint-pulse{animation:none!important;background:#f2b4aa!important}.background-callout span{animation:none}}
.brand-title{margin:0}
.cell.mine:not(.exploded){background:linear-gradient(45deg,#51406f 0 24%,#674f8b 25% 49%,#46345f 50% 74%,#785da0 75% 100%)!important;background-size:12px 12px!important;color:#f5edff;box-shadow:inset 3px 3px #a98ad055,inset -3px -3px #302044!important;filter:drop-shadow(0 0 5px #8d62bc88)}.cell.mine.exploded{background:linear-gradient(45deg,#8f211f 0 24%,#dc4036 25% 49%,#a92825 50% 74%,#ef6550 75% 100%)!important;background-size:12px 12px!important;color:#fff3e9;animation:mine-explosion .58s steps(2,end) 5;box-shadow:inset 3px 3px #ffb19a,inset -3px -3px #681714,0 0 18px #e3362c!important}
@keyframes mine-explosion{0%,100%{filter:brightness(1);transform:scale(1)}50%{filter:brightness(1.42) drop-shadow(0 0 14px #ff3025);transform:scale(.94)}}
@media(prefers-reduced-motion:reduce){.cell.mine.exploded{animation:none}}
.board-area{background:radial-gradient(ellipse at 16% 20%,#fff0b44a 0 5%,transparent 29%),radial-gradient(ellipse at 76% 78%,#a85d2540 0 8%,transparent 34%),repeating-conic-gradient(from 45deg,#d7ad62 0 25%,#c99850 0 50%,#e3be73 0 75%,#c48f46 0) 0 0/38px 38px;background-color:#d3a55d}.board-area:before{background:repeating-linear-gradient(12deg,transparent 0 18px,#8d5c2830 19px 20px),linear-gradient(#fff5c31c,#8d522b22)}.board{border-color:#6e4827;background:#6e4827;box-shadow:0 7px 0 #473018,0 24px 34px #4c2f1566,inset 0 1px #efd38d}.cell{border-right-color:#b57d3d;border-bottom-color:#9e672e;background:linear-gradient(135deg,transparent 0 76%,#a16a2e 77% 100%),linear-gradient(45deg,#d9a95d 0 24%,#c9954c 25% 49%,#e5ba6e 50% 74%,#bb8240 75% 100%);background-size:100% 100%,12px 12px;box-shadow:inset 3px 3px #f4d58f,inset -3px -3px #95602b;text-shadow:0 1px #fff5cf8c}.cell:hover:not(.revealed):not(:disabled){background:linear-gradient(135deg,transparent 0 76%,#ae7738 77% 100%),linear-gradient(45deg,#e8bd73 0 24%,#d6a75b 25% 49%,#f1ca7f 50% 74%,#c9904c 75% 100%);background-size:100% 100%,12px 12px;box-shadow:inset 3px 3px #ffe4a2,inset -3px -3px #a56c31}.cell.flagged{background:linear-gradient(45deg,#d2a65c 0 24%,#c4944c 25% 49%,#dfb76c 50% 74%,#b98240 75% 100%);background-size:12px 12px;box-shadow:inset 3px 3px #f1d18b,inset -3px -3px #96602c}
.cell.water-source{background:linear-gradient(135deg,#4ca7c2 0 38%,#7ed3df 39% 62%,#367fae 63% 100%)!important;background-size:100% 100%!important;box-shadow:inset 2px 2px #b5f4ed,inset -3px -3px #24658d!important;animation:water-settle .7s steps(3,end) both}.win-garden{position:absolute;z-index:7;pointer-events:none;transform-origin:50% 100%;animation:garden-grow .65s cubic-bezier(.18,.8,.3,1) var(--grow-delay) both}.win-flower{width:9px;height:15px;background:#467d3c;box-shadow:2px 0 #78a54a;clip-path:polygon(42% 32%,21% 26%,0 39%,14% 56%,0 72%,25% 74%,39% 96%,55% 74%,80% 78%,90% 57%,100% 42%,75% 25%,57% 31%,50% 0)}.win-flower:after{content:'';position:absolute;width:5px;height:5px;left:2px;top:4px;background:#f8e164;box-shadow:0 0 0 2px #f08a98}.win-tree{width:15px;height:27px;background:linear-gradient(#4c7f3d 0 13%,#2f6537 14% 48%,#3c8b46 49% 72%,transparent 73%);clip-path:polygon(50% 0,100% 33%,76% 33%,100% 66%,62% 66%,62% 100%,38% 100%,38% 66%,0 66%,24% 33%,0 33%);filter:drop-shadow(2px 3px #244a2d)}
@keyframes water-settle{0%{filter:brightness(1.7);transform:scale(.35)}100%{filter:brightness(1);transform:scale(1)}}@keyframes garden-grow{0%{opacity:0;transform:scaleY(.08)}70%{opacity:1;transform:scaleY(1.13)}100%{opacity:1;transform:scaleY(1)}}
@media(prefers-reduced-motion:reduce){.cell.water-source,.win-garden{animation:none}}
.cell.grassland{background:linear-gradient(135deg,transparent 0 76%,#427a38 77% 100%),linear-gradient(45deg,#75aa4d 0 24%,#639940 25% 49%,#8abd5b 50% 74%,#568b3c 75% 100%)!important;background-size:100% 100%,12px 12px!important;box-shadow:inset 3px 3px #b2d97d,inset -3px -3px #396934!important;animation:grass-return .62s steps(3,end) both}.win-skip{position:absolute;z-index:8;right:15px;bottom:13px;color:#fff9dc;background:#2e513bcc;border:1px solid #c7de8a;padding:7px 10px;font-size:11px;letter-spacing:.08em;animation:skip-pulse 1s steps(2,end) infinite}.skip-finish{animation:none!important}.cell.grassland.skip-finish,.cell.water-source.skip-finish{filter:none!important}@keyframes grass-return{0%{filter:saturate(.3) brightness(1.35);transform:scale(.7)}100%{filter:saturate(1);transform:scale(1)}}@keyframes skip-pulse{50%{opacity:.55}}
.game-status{min-width:126px;padding:8px 12px!important;display:flex;flex-direction:column;align-items:flex-end;gap:2px;border-width:2px!important}.game-status span{font-size:9px;letter-spacing:.08em;opacity:.78}.game-status strong{font-family:'Space Grotesk','IBM Plex Sans JP',sans-serif;font-size:17px;line-height:1.1;letter-spacing:.02em}.game-status.lost strong{color:#b64235}
.game-heading-actions{position:relative;display:flex;align-items:center;min-height:48px;margin-left:18px;padding-left:46px;border-left:1px solid #cbbf9f}.game-heading-actions:before{content:'';position:absolute;left:18px;top:50%;width:10px;height:10px;margin-top:-5px;background:#9ee85c;border:1px solid #e8ffd1;box-shadow:0 0 0 3px #92cf5828,0 0 12px #9ee85c;animation:status-glow 1.7s ease-in-out infinite}@keyframes status-glow{50%{transform:scale(.78);filter:brightness(1.2)}}
.background-controls,.zoom-controls{transform:translateX(10px)}.background-controls{gap:5px}.background-button,.background-remove{padding:7px 11px;font-size:11px}.zoom-controls>span{padding:0 9px;font-size:10px}.zoom-controls button{width:31px;height:31px;font-size:16px}.zoom-controls output{min-width:47px;font-size:11px}@media(max-width:900px){.background-controls,.zoom-controls{transform:none}}
.restart-button{width:auto!important;height:38px!important;padding:0 12px!important;display:flex!important;align-items:center;gap:7px;font-size:12px;font-weight:700;letter-spacing:.04em}.restart-button svg{width:17px;height:17px}.restart-button:hover{transform:none!important;background:#ffffff20}
.exit-fullscreen-btn{display:none}.game-panel:fullscreen .exit-fullscreen-btn{position:absolute;z-index:20;top:14px;right:16px;display:flex;align-items:center;gap:6px;border:1px solid #c8b77b;background:#fff9e8;color:#4a5137;padding:8px 11px;font-size:12px;font-weight:700;box-shadow:0 3px 10px #26351d24}.exit-fullscreen-btn svg{width:16px;height:16px}.exit-fullscreen-btn:hover{background:#f0e2b7}
.difficulty-notice{margin:0 0 12px;padding:9px 12px;border-left:3px solid #88ad4e;background:#f0f5e8;color:#4d6540;font-size:12px;line-height:1.65}
.difficulty-notice{margin-bottom:7px;padding:6px 11px}main{padding-top:13px}
.board{border-color:#355b36;background:#355b36;box-shadow:0 7px 0 #254529,0 20px 30px #18342155,inset 0 1px #9cc77b}.cell:not(.revealed):not(.grassland):not(.water-source):not(.mine){border-right-color:#4c7c43;border-bottom-color:#3c6938;background:linear-gradient(135deg,transparent 0 76%,#427a38 77% 100%),linear-gradient(45deg,#75aa4d 0 24%,#639940 25% 49%,#8abd5b 50% 74%,#568b3c 75% 100%);background-size:100% 100%,12px 12px;box-shadow:inset 3px 3px #b2d97d,inset -3px -3px #396934;text-shadow:0 1px #ffffff8c}.cell.revealed{border-right-color:#735339;border-bottom-color:#62472f;background:linear-gradient(45deg,#976f49 0 24%,#a57c53 25% 49%,#8d6744 50% 74%,#b0845c 75% 100%);background-size:12px 12px;box-shadow:inset 1px 1px #c3a078,inset -1px -1px #66472f}
.board-area:not(.custom-background){background:linear-gradient(90deg,#b5d86d 50%,#acd164 50%) 0 0/42px 42px,linear-gradient(#b1d56a 50%,#a8cf60 50%) 0 0/42px 42px;background-blend-mode:multiply}.board-area:not(.custom-background):before{background:radial-gradient(circle at 22% 20%,#effbb216 0 1px,transparent 2px),linear-gradient(#ffffff08,#5f832016)}.board{border:2px solid #7d9e4d;background:#7d9e4d;box-shadow:0 8px 20px #52682c2b}.cell:not(.revealed):not(.grassland):not(.water-source):not(.mine){border:0;border-right:1px solid #94bb58;border-bottom:1px solid #8daf52;background:linear-gradient(145deg,#afd865,#98c94f);box-shadow:inset 1px 1px #d6eb9a;color:#24442b;text-shadow:none}.cell.revealed{border:0;border-right:1px solid #c7a87f;border-bottom:1px solid #b7966d;background:linear-gradient(145deg,#efd0aa,#dfba91);box-shadow:inset 0 1px 2px #9d7a4a24;text-shadow:none}.cell.flagged{background:linear-gradient(145deg,#b8dc78,#9dc957);box-shadow:inset 1px 1px #e0f1ad}.cell[data-number="1"]{color:#2771b6}.cell[data-number="2"]{color:#358044}.cell[data-number="3"]{color:#c8443e}.cell[data-number="4"]{color:#6150a0}.cell[data-number="5"]{color:#9a4332}.cell[data-number="6"]{color:#277878}.cell[data-number="7"]{color:#3f3c46}.cell[data-number="8"]{color:#5c5d54}
.board-row:nth-child(odd) .cell:nth-child(odd):not(.revealed):not(.flagged):not(.grassland):not(.water-source):not(.mine),.board-row:nth-child(even) .cell:nth-child(even):not(.revealed):not(.flagged):not(.grassland):not(.water-source):not(.mine){background:#a8ce63!important;border-right-color:#93b755;border-bottom-color:#8aab4d}.board-row:nth-child(odd) .cell:nth-child(even):not(.revealed):not(.flagged):not(.grassland):not(.water-source):not(.mine),.board-row:nth-child(even) .cell:nth-child(odd):not(.revealed):not(.flagged):not(.grassland):not(.water-source):not(.mine){background:#9fc45a!important;border-right-color:#8daf4c;border-bottom-color:#85a544}
.board-area:not(.custom-background){background:radial-gradient(circle at 18% 22%,#f1f1f1 0 1px,transparent 2px),radial-gradient(circle at 78% 70%,#a8a8a8 0 1px,transparent 2px),linear-gradient(145deg,#d8d8d8,#aeb0b1 54%,#929597)}.board-area:not(.custom-background):before{background:repeating-linear-gradient(90deg,transparent 0 18px,#ffffff1e 19px 20px),linear-gradient(#ffffff1c,#33383c18)}
.skip-link{position:fixed;left:12px;top:8px;z-index:1000;padding:9px 13px;background:#fff;color:#17372d;border:2px solid #294537;transform:translateY(-150%);transition:transform .12s}
.skip-link:focus{transform:translateY(0)}
.help-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;border:1px solid var(--line);border-radius:3px;background:#f4f7f1;margin:0 0 8px}
.help-tabs [role="tab"]{min-height:40px;border:1px solid transparent;border-radius:2px;padding:9px 12px;background:transparent;color:var(--muted);font:inherit;font-size:14px;font-weight:600}
.help-tabs [role="tab"]:hover{background:#e9efdf;color:var(--ink)}
.help-tabs [role="tab"][aria-selected="true"]{background:var(--ink);color:#fff}
.help-tabs [role="tab"]:focus-visible{outline-offset:1px}
.help-panel[hidden]{display:none}
.help-panel:focus-visible{outline:2px solid #298a8a;outline-offset:5px}
.site-footer{margin-top:32px;background:#203b31;color:#e9eadf;border-top:4px solid #b8994c}.footer-inner{width:min(1180px,calc(100% - 40px));margin:auto;padding:34px 0 28px;display:grid;grid-template-columns:minmax(220px,1fr) minmax(190px,300px);gap:56px}.footer-about strong{font-family:'Yu Mincho','Hiragino Mincho ProN',serif;font-size:20px;letter-spacing:.06em;color:#e1c76b}.footer-about p{max-width:520px;margin:10px 0 0;color:#bdc9c1;font-size:13px;line-height:1.9}.footer-links{display:grid;grid-template-columns:1fr 1fr;gap:8px 22px}.footer-links h2{grid-column:1/-1;margin:0 0 6px;color:#fff;font-size:14px}.footer-links a{color:#d4ded7;font-size:13px;text-decoration:none}.footer-links a:hover,.footer-links a:focus-visible{color:#f0d879;text-decoration:underline}.footer-bottom{border-top:1px solid #ffffff1c;padding:15px max(20px,calc((100% - 1180px)/2));color:#aebdb4}.footer-bottom small{font-size:12px}@media(max-width:650px){.footer-inner{grid-template-columns:1fr;gap:26px;padding-top:28px}.footer-links{grid-template-columns:1fr 1fr}.footer-bottom{line-height:1.7}}
