:root{font-family:'Pretendard Variable',Pretendard,system-ui,sans-serif;color:#1b2924;background:#faf8f2;font-synthesis:none;--forest:#355944;--yellow:#f7d747;--muted:#64726b;--line:#daddd3}*{box-sizing:border-box}body{margin:0}button,select,a{-webkit-tap-highlight-color:transparent}button,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.4}button:focus-visible,select:focus-visible,a:focus-visible{outline:3px solid #28684b;outline-offset:4px}button{border:0;background:none}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.symbols{position:absolute;width:0;height:0;overflow:hidden}.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}[hidden]{display:none!important}.site-head{height:94px;max-width:1160px;margin:auto;display:flex;align-items:center;gap:22px;border-bottom:1px solid var(--line)}.brand{font-size:31px;font-weight:850;letter-spacing:-.06em;color:inherit;text-decoration:none;position:relative;display:flex;align-items:center;gap:5px}.brand-dot{width:7px;height:7px;background:var(--forest);border-radius:50%;align-self:flex-end;margin-bottom:8px}.site-note{font-size:13px;color:var(--muted)}.site-head>.text-button{margin-left:auto}.text-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-size:14px;font-weight:650;border-radius:12px;padding:0 10px}.text-button:hover{background:#efeee6}.question{width:20px;height:20px;border:1.5px solid #78857b;border-radius:50%;display:grid;place-items:center;font-size:12px}main{max-width:990px;margin:0 auto}.heading{display:flex;align-items:center;justify-content:space-between;padding:43px 0 28px}.heading h1{font-size:34px;letter-spacing:-.04em;margin:0;display:flex;align-items:center;gap:12px}.new{font-size:11px;letter-spacing:.03em;font-weight:800;color:#36503c;background:#e2eadb;padding:6px 9px;border-radius:7px}.heading p{margin:9px 0 0;color:var(--muted);font-size:15px}.difficulty select{font-size:14px;font-weight:650;border:1px solid var(--line);border-radius:12px;background:#faf8f2;min-height:46px;padding:0 40px 0 16px;cursor:pointer}.play-layout{display:grid;grid-template-columns:minmax(0,650px) 1fr;gap:56px;align-items:start}.game{min-width:0}.dashboard{display:flex;align-items:center;justify-content:space-between;height:74px;padding:0 24px;background:#e7ecdf;border-radius:22px 22px 0 0;border:1px solid #dce3d6;border-bottom:0}.stat{display:flex;align-items:center;gap:12px}.stat>svg{color:#355944;width:24px;height:24px;fill:#355944;stroke-width:1.4}.stat small{display:block;font-size:11px;color:#53644f;margin-bottom:3px;font-weight:550}.stat strong{font-size:25px;line-height:1;letter-spacing:-.025em;font-variant-numeric:tabular-nums}.stat-total{font-size:12px;color:#61705a}.timer{display:flex;gap:9px;align-items:center;font-variant-numeric:tabular-nums;font-weight:650;font-size:20px}.timer>svg{width:19px;color:#61705a}.icon-button{display:grid;place-items:center;min-width:44px;height:44px;border-radius:12px}.icon-button:hover:not(:disabled){background:#dae1d2}.timer .icon-button{margin-right:-11px;margin-left:3px}.field-shell{position:relative;background:#edf0e6;padding:22px;border:1px solid #dce3d6;border-top:0;border-radius:0 0 22px 22px;overflow:hidden}.board-viewport{overflow:auto;overscroll-behavior:contain;max-height:580px;scrollbar-width:thin;scrollbar-color:#8e9d87 #e3e8dd}.board{display:grid;grid-template-columns:repeat(var(--columns),var(--cell));gap:5px;width:max-content;margin:0 auto;--cell:58px;--columns:9;isolation:isolate;padding:3px}.cell{width:var(--cell);height:var(--cell);padding:0;display:grid;place-items:center;border-radius:10px;background:#cedcc0;box-shadow:inset 0 -2px 0 #bacdac;color:#244b34;font-size:23px;font-weight:750;user-select:none;touch-action:manipulation;transition:background 100ms,transform 100ms;position:relative}.cell:hover:not(.opened):not(:disabled){background:#bbd0aa;transform:translateY(-1px)}.cell:active:not(:disabled){transform:scale(.95)}.cell.opened{background:#e4e9dc;box-shadow:none;cursor:default}.cell.opened[data-count]:not([data-count="0"]){cursor:pointer}.cell.just-opened{animation:uncover 180ms ease-out}.cell:focus-visible{z-index:1;outline-offset:-3px;outline-width:3px}.cell.flagged{background:#fbdf64;box-shadow:inset 0 -2px 0 #e5c443}.cell.flagged svg{width:23px;height:23px;fill:#355944;stroke-width:1.5}.cell[data-count="1"]{color:#2c654d}.cell[data-count="2"]{color:#346b8b}.cell[data-count="3"]{color:#a35233}.cell[data-count="4"]{color:#795490}.cell[data-count="5"],.cell[data-count="6"],.cell[data-count="7"],.cell[data-count="8"]{color:#913d38}.cell.mine{background:#ecd9c8;box-shadow:none;color:#844732}.cell.exploded{background:#ba4b3b;color:#fff}.cell.wrong{background:#f0d6c5;color:#9a4032}.cell:disabled{opacity:1}.status{display:flex;justify-content:center;align-items:center;gap:8px;min-height:46px;font-size:13px;font-weight:550;color:#546348;text-align:center}.status-dot{width:6px;height:6px;flex-shrink:0;background:#6d8857;border-radius:50%}.status.lost{color:#a24535}.status.lost .status-dot{background:#a24535}.game-tools{display:flex;gap:8px;align-items:center;border-top:1px solid var(--line);padding-top:15px}.mode-switch{display:flex;gap:4px;padding:4px;background:#eeeee6;border-radius:15px}.mode-switch button{height:44px;display:flex;gap:8px;align-items:center;justify-content:center;padding:0 22px;border-radius:11px;font-size:14px;font-weight:700;color:#64705f}.mode-switch button[aria-pressed="true"]{background:#355944;color:#fff}.mode-switch button svg{width:19px;height:19px}.mode-switch button[aria-pressed="true"] svg{stroke-width:2}.zoom{margin-left:auto;border:1px solid var(--line);height:46px}.zoom[aria-pressed="true"]{background:#e2eadb}.restart{padding:0 12px}.restart svg{width:18px}.board-hint{text-align:center;font-size:12px;color:#65715f;margin:15px 0 0;line-height:1.5}.guide{padding-top:16px}.guide-top{padding-bottom:32px}.number-sample{display:grid;grid-template-columns:repeat(3,27px);gap:4px;margin-bottom:25px;transform:rotate(-7deg);transform-origin:left bottom}.number-sample>*{width:27px;height:27px;border-radius:5px;background:#d7e0c9;display:grid;place-items:center}.number-sample b{background:#e8ebdf;color:#2c654d;font-size:19px;transform:rotate(7deg)}.number-sample .sample-flag{background:#f7d747}.number-sample svg{width:16px;height:16px;fill:#355944}.guide h2{font-size:29px;line-height:1.25;letter-spacing:-.035em;margin:0 0 15px;font-weight:730}.guide-top p{font-size:14px;line-height:1.75;color:#62705c;margin:0}.guide-bottom{border-top:1px solid var(--line);padding-top:24px}.guide h3{font-size:13px;margin:0 0 20px}.guide-bottom p{display:flex;gap:10px;align-items:center;font-size:13px;color:#62705c;margin:17px 0}.guide-bottom p svg{width:17px;height:17px;color:#48613f}.guide-bottom b{font-weight:650;color:#344831}.guide-bottom .text-button{font-size:12px;padding:0;margin-top:10px;gap:18px}.guide-bottom .text-button:hover{background:none;text-decoration:underline}footer{display:flex;justify-content:space-between;font-size:11px;color:#747d6f;border-top:1px solid var(--line);margin:34px 0 20px;padding-top:18px}.pause-cover{position:absolute;inset:0;z-index:3;background:#edf0e6;display:flex;flex-direction:column;align-items:center;justify-content:center}.pause-cover>svg{width:30px;height:30px;color:#355944;margin-bottom:4px}.pause-cover h2{font-size:24px;margin:12px 0 0;letter-spacing:-.03em}.pause-cover p{font-size:14px;color:#62705c;margin:10px 0 25px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;border-radius:13px;padding:0 25px;font-size:14px;font-weight:750}.primary{background:var(--yellow);color:#293c25}.primary:hover{background:#edcd3d}.secondary{background:#edefe6;color:#40523c}.primary svg{width:18px}.result{display:flex;align-items:center;justify-content:space-between;margin-top:22px;padding:22px 0;border-top:1px solid var(--line);gap:16px}.result h2{font-size:22px;margin:0 0 7px;letter-spacing:-.03em}.result p{font-size:13px;color:#62705c;margin:0;line-height:1.5}.result .primary{flex-shrink:0}.game.finished .board-hint{display:none}dialog{border:1px solid #daddd3;border-radius:24px;padding:30px;width:min(470px,calc(100% - 32px));max-height:calc(100dvh - 48px);background:#faf8f2;color:#1b2924;box-shadow:0 20px 90px #15281930}dialog::backdrop{background:#1b292466}dialog h2{font-size:23px;letter-spacing:-.035em;margin:0}dialog p{font-size:14px;line-height:1.7;color:#596852;margin:15px 0 22px}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.close{font-size:27px;min-width:44px;height:44px;border-radius:12px;margin-right:-12px}.close:hover{background:#eceee4}dt{font-size:14px;font-weight:750;margin-top:20px}dd{font-size:13px;line-height:1.7;margin:6px 0 0;color:#596852}.close-help{width:100%;margin-top:15px}.dialog-actions{display:flex;gap:10px;justify-content:flex-end}.dialog-actions button{flex:1;padding:0 15px}@keyframes uncover{from{transform:scale(.94);background:#f4f5ec}to{transform:scale(1)}}@media(min-width:1150px){main{margin-top:2px}}@media(max-width:1200px){.site-head{margin:0 36px}main{margin:0 50px}.play-layout{grid-template-columns:minmax(0,650px) 200px;gap:30px}.board{--cell:clamp(36px,4.1vw,58px)}}@media(max-width:900px){main{max-width:650px;margin:0 auto;padding:0 20px}.site-head{height:76px;margin:0 24px}.play-layout{display:block}.guide{display:none}.heading{padding:30px 0 24px}.board{--cell:clamp(28px,7.7vw,58px)}.field-shell{padding:18px}.heading h1{font-size:30px}footer{margin-top:28px}}@media(max-width:480px){.site-head{height:66px;margin:0 20px}.brand{font-size:27px}.brand-dot{width:6px;height:6px}.site-note{display:none}.site-head>.text-button{font-size:12px;padding:0 0 0 8px}.question{width:18px;height:18px}main{padding:0 16px}.heading{padding:27px 2px 22px;gap:8px}.heading h1{font-size:27px;gap:8px}.new{font-size:9px;padding:4px 6px}.heading p{font-size:12px;margin-top:8px}.difficulty select{font-size:12px;padding:0 24px 0 10px;max-width:139px;min-height:42px;border-radius:10px}.dashboard{height:73px;padding:0 17px;border-radius:18px 18px 0 0}.field-shell{padding:10px 7px 13px;border-radius:0 0 18px 18px}.board{gap:4px;--cell:calc((100vw - 92px)/9);padding:2px}.cell{border-radius:6px;font-size:19px}.cell.flagged svg{width:18px;height:18px}.stat strong{font-size:25px}.timer{font-size:20px;gap:7px}.status{font-size:12px;min-height:45px;padding:5px 8px}.game-tools{padding-top:14px;gap:6px}.mode-switch{padding:4px;gap:2px;border-radius:13px}.mode-switch button{padding:0 14px;height:44px;font-size:13px;gap:6px}.mode-switch button svg{width:17px;height:17px}.zoom{min-width:42px}.restart{font-size:12px;padding:0 8px;gap:6px}.restart svg{width:16px}.board-hint{font-size:11px;margin-top:14px}.result{padding:18px 2px;gap:8px}.result h2{font-size:21px}.result p{font-size:12px}.result .primary{padding:0 17px;font-size:13px}footer{font-size:10px;margin-top:28px;padding-top:16px}.board-viewport{max-height:500px}dialog{padding:24px}.dialog-top h2{font-size:21px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(min-width:901px){.site-head{height:80px}.heading{padding:30px 0 22px}.board{--cell:44px}.field-shell{padding:16px}.board-viewport{max-height:490px}}
/* Fit to the actual play viewport, including when page scrollbars appear. */
.board-viewport{container-type:inline-size}
.cell[data-count="3"]{color:#9c492d}
footer{color:#687162}
@media(max-width:480px){.board{--cell:calc((100cqw - 36px)/9)}}
.close{display:grid;place-items:center}.guide-bottom .text-button>svg{width:15px;height:15px}@media(max-width:480px){.status,.board-hint{font-size:13px}}
