.sweeper-shell{--sweeper-ink:#47332a;--sweeper-muted:#6b5040;--sweeper-line:#d6ba86;--sweeper-size:430px;display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,300px);overflow:hidden;border:1px solid var(--sweeper-line);border-radius:18px;background:#fffaf0;color:var(--sweeper-ink)}.sweeper-main{display:grid;grid-template-columns:minmax(0,var(--sweeper-size));justify-content:center;align-content:start;gap:12px;padding:22px;background:#f9efd7}.sweeper-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}.sweeper-stats>div{padding:7px 8px;border:1px solid var(--sweeper-line);border-radius:10px;background:#fff9ec;text-align:center}.sweeper-stats dt{display:flex;justify-content:center;align-items:center;gap:5px;font-size:12px;font-weight:850;color:var(--sweeper-muted)}.sweeper-stats dd{margin:3px 0 0;font-family:Fredoka Variable,sans-serif;font-size:26px;font-weight:540;font-variant-numeric:tabular-nums;line-height:1}.sweeper-controls,.sweeper-mode{display:flex;gap:6px}.sweeper-controls{justify-content:space-between;align-items:stretch}.sweeper-mode,.sweeper-new{min-width:0}.sweeper-controls button,.sweeper-difficulties button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:44px;padding:4px 10px;border:1px solid var(--sweeper-line);border-radius:8px;background:#fff9ec;color:var(--sweeper-ink);font-size:13px;font-weight:850;line-height:1.2;touch-action:manipulation}.sweeper-controls button[aria-pressed=true],.sweeper-difficulties button[aria-pressed=true]{border-color:#765536;background:#f5daa0;box-shadow:inset 0 -2px 0 #b78e53}.sweeper-controls button:disabled{opacity:.62}.sweeper-new>span{font-size:19px;line-height:.8}.sweeper-board{--sweeper-gap:4px;display:grid;grid-auto-rows:minmax(0,1fr);gap:var(--sweeper-gap);width:100%;aspect-ratio:1;padding:7px;border:1px solid #9c7247;border-radius:13px;background:#c69b68;box-shadow:0 3px 0 #8b65363b;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.sweeper-row{grid-template-columns:repeat(var(--sweeper-cols),minmax(0,1fr));gap:var(--sweeper-gap)}.sweeper-row,.sweeper-tile{display:grid;min-width:0;min-height:0}.sweeper-tile{position:relative;place-items:center;padding:0;border:1px solid #9c7247;border-radius:6px;background:#f0c86f;box-shadow:inset 0 2px 0 #ffe9b2,inset 0 -3px 0 #daac59;color:var(--sweeper-ink);font-family:Fredoka Variable,sans-serif;font-size:24px;font-weight:620;line-height:1;touch-action:manipulation}.sweeper-tile:focus-visible{outline:3px solid #623e69;outline-offset:-3px}.sweeper-tile[data-state=clear],.sweeper-tile[data-state=number]{background:#fff7df;box-shadow:inset 0 0 0 1px #e5cfaa}.sweeper-tile[data-state=clear]{background:#f7ead0}.sweeper-tile[data-state=flagged]{background:#f9db92}.sweeper-tile[data-state=mine]{background:#edb8a2;box-shadow:none}.sweeper-tile[data-state=hit]{background:#dd8f85;border:2px solid #7f3e34;box-shadow:inset 0 0 0 1px #f7c2ae}.sweeper-tile[data-state=incorrect]{background:#f3d3ac;box-shadow:inset 0 0 0 1px #b66e59}.sweeper-tile[aria-disabled=true]{cursor:default}.sweeper-sample,.sweeper-tile[data-clue="1"]{color:#42604b}.sweeper-tile[data-clue="2"]{color:#614570}.sweeper-tile[data-clue="3"]{color:#9a483e}.sweeper-tile[data-clue="4"]{color:#3f527f}.sweeper-tile[data-clue="5"]{color:#7c4833}.sweeper-tile[data-clue="6"]{color:#356161}.sweeper-tile[data-clue="7"],.sweeper-tile[data-clue="8"]{color:#3f3441}.sweeper-tile>svg{width:73%;height:73%}.sweeper-tile>.sweeper-wrong{position:absolute;width:88%;height:88%;color:#85382e;stroke-width:2.5}.sweeper-board[data-action=flag] .sweeper-tile:not([aria-disabled=true]){cursor:crosshair}.sweeper-flag{position:relative;display:inline-block;flex-shrink:0;width:1em;aspect-ratio:1}.sweeper-flag:after,.sweeper-flag:before{content:"";position:absolute}.sweeper-flag:before{inset:9% auto 5% 15%;width:13%;min-width:1px;border-radius:2px;background:#68414d}.sweeper-flag:after{inset:10% 0 35% 23%;background:#b85d64;clip-path:polygon(0 0,100% 48%,0 100%)}.sweeper-tile>.sweeper-flag{width:54%}@media (hover:hover){.sweeper-controls button:not(:disabled):hover,.sweeper-difficulties button:hover,.sweeper-tile[data-state=covered]:not([aria-disabled=true]):hover,.sweeper-tile[data-state=flagged]:not([aria-disabled=true]):hover{filter:brightness(.96)}}.sweeper-status{min-width:0;text-align:center;font-size:13px;font-weight:850;line-height:1.45;color:var(--sweeper-muted)}.sweeper-status[data-phase=won]{color:#3b624a}.sweeper-status[data-phase=lost]{color:#823b35}.sweeper-side{display:grid;align-content:start;gap:20px;padding:22px 18px;border-left:1px solid var(--sweeper-line)}.sweeper-side h2{margin:0 0 8px;font-size:19px}.sweeper-difficulties{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.sweeper-difficulties button{flex-direction:column;gap:3px;padding-inline:3px}.sweeper-difficulties button span{color:var(--sweeper-muted);font-size:11px;font-weight:750}.sweeper-guide{padding-top:16px;border-top:1px solid #e3d1aa}.sweeper-guide ul{display:grid;gap:11px;padding:0;margin:0;list-style:none}.sweeper-guide li{display:grid;grid-template-columns:32px 1fr;gap:9px;align-items:start;color:var(--sweeper-muted);font-size:13px;line-height:1.5}.sweeper-sample{display:grid;place-items:center;width:32px;height:32px;border:1px solid #ba9b70;border-radius:6px;background:#fff7df;font-family:Fredoka Variable,sans-serif;font-size:20px}.sweeper-sample-flag{background:#f9db92}.sweeper-sample-check{background:#e9edd8}.sweeper-help,.sweeper-save-note{color:var(--sweeper-muted);font-size:12px;line-height:1.55}.sweeper-reset .button{min-height:44px}@media (max-width:760px){.sweeper-shell{grid-template-columns:minmax(0,1fr);border-radius:13px}.sweeper-main{gap:8px;padding:8px}.sweeper-board{--sweeper-gap:2px;padding:4px;border-radius:9px}.sweeper-tile{border-radius:4px;font-size:clamp(17px,4.1vw,24px)}.sweeper-stats{gap:5px}.sweeper-stats>div{padding:6px 3px}.sweeper-stats dd{font-size:23px}.sweeper-stats dt{font-size:11px}.sweeper-side{grid-template-columns:minmax(0,var(--sweeper-size));justify-content:center;gap:14px;padding:12px 10px;border-left:0;border-top:1px solid var(--sweeper-line)}}@media (orientation:landscape) and (max-height:500px){.sweeper-shell{grid-template-columns:minmax(0,1fr)}.sweeper-main{grid-template-columns:minmax(0,clamp(260px,100dvh - 82px,var(--sweeper-size))) minmax(174px,230px);grid-template-rows:auto auto 1fr;align-content:start;gap:8px;padding:8px}.sweeper-board{--sweeper-gap:2px;grid-column:1;grid-row:1/4}.sweeper-tile{font-size:17px}.sweeper-controls,.sweeper-stats,.sweeper-status{grid-column:2}.sweeper-stats{gap:4px}.sweeper-controls{flex-wrap:wrap}.sweeper-status{text-align:left}.sweeper-side{border-left:0;border-top:1px solid var(--sweeper-line)}}