:root{font-family:Inter,Noto Sans SC,system-ui,-apple-system,sans-serif;color:#1f2937;background:#eef1f5;--cell-size: 32px;--num-1: #1d4ed8;--num-2: #15803d;--num-3: #b91c1c;--num-4: #4c1d95;--num-5: #92400e;--num-6: #0e7490;--num-7: #374151;--num-8: #6b7280}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 50% 0%,#fff,#e8ecf2 60%,#dee4ec)}button{font:inherit;color:inherit;cursor:pointer}.page{max-width:860px;margin:0 auto;padding:32px 16px 48px;display:grid;gap:18px}.topbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}h1{margin:0;font-size:26px;letter-spacing:.04em}.subtitle{margin:4px 0 0;font-size:13px;color:#64748b}.difficulties{display:inline-flex;padding:3px;border-radius:999px;background:#dfe5ee;gap:2px}.chip{border:0;border-radius:999px;background:transparent;padding:7px 16px;font-size:13px;color:#4b5563;transition:background .15s ease,color .15s ease}.chip:hover{background:#fff9}.chip-active{background:#fff;color:#0f172a;font-weight:600;box-shadow:0 1px 3px #0f172a29}.console{background:#f8fafc;border:1px solid #d6dee8;border-radius:16px;padding:16px;box-shadow:0 20px 40px -24px #0f172a80;display:grid;gap:14px}.hud{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#1e293b;border-radius:10px;padding:8px 14px;color:#f8fafc}.hud-item{display:grid;gap:2px;min-width:76px}.hud-item-right{text-align:right;justify-items:end}.hud-label{font-size:11px;letter-spacing:.08em;color:#94a3b8}.hud-value{font-family:SFMono-Regular,Menlo,ui-monospace,monospace;font-size:22px;font-weight:700;color:#f87171;letter-spacing:.06em;font-variant-numeric:tabular-nums}.face{width:42px;height:42px;border-radius:50%;border:1px solid #475569;background:#f1f5f9;font-size:20px;line-height:1;display:grid;place-items:center;transition:transform .1s ease}.face:active{transform:scale(.94)}.board-scroll{overflow:auto;max-width:100%;padding-bottom:2px;justify-self:center;max-height:min(62vh,560px)}.board{display:grid;gap:2px;width:fit-content;margin:0 auto;user-select:none;-webkit-user-select:none;touch-action:manipulation}.cell{width:var(--cell-size);height:var(--cell-size);padding:0;border:0;border-radius:4px;font-size:15px;font-weight:700;line-height:1;display:grid;place-items:center;transition:background .1s ease}.cell-hidden{background:linear-gradient(180deg,#dbe3ee,#c3cfdd);box-shadow:inset 0 1px #fff,inset 0 -1px #3341552e}.cell-hidden:hover{background:linear-gradient(180deg,#e6ecf5,#cdd8e5)}.cell-hidden:active{background:#b6c3d3}.cell-revealed{background:#eef2f7;box-shadow:inset 0 0 0 1px #dde5ef;cursor:default}.cell-mine{background:#fee2e2}.cell-exploded{background:#ef4444}.cell-flagged{background:linear-gradient(180deg,#fde68a,#fcd34d)}.cell[data-number="1"]{color:var(--num-1)}.cell[data-number="2"]{color:var(--num-2)}.cell[data-number="3"]{color:var(--num-3)}.cell[data-number="4"]{color:var(--num-4)}.cell[data-number="5"]{color:var(--num-5)}.cell[data-number="6"]{color:var(--num-6)}.cell[data-number="7"]{color:var(--num-7)}.cell[data-number="8"]{color:var(--num-8)}.status{margin:0;text-align:center;font-size:13px;color:#64748b}.status-won{color:#15803d;font-weight:600}.status-lost{color:#b91c1c;font-weight:600}.controls{display:flex;flex-wrap:wrap;gap:10px}.action{flex:1 1 160px;min-height:44px;border-radius:10px;border:1px solid #cfd8e3;background:#fff;font-size:14px;box-shadow:0 1px 2px #0f172a0f}.action:hover{border-color:#94a3b8}.action-primary{background:#1e293b;border-color:#1e293b;color:#f8fafc;font-weight:600}.action-primary:hover{background:#0f172a}.hint{margin:0;font-size:12px;line-height:1.6;color:#7b8794}@media(max-width:640px){:root{--cell-size: 27px}.page{padding:20px 12px 32px}h1{font-size:22px}.cell{font-size:13px}.hud-value{font-size:19px}}
