:root{color-scheme:dark;--bg:#09101d;--bg-soft:#0d1727;--panel:#111d30;--panel-2:#16243a;--panel-3:#1b2b44;--line:#293b55;--line-soft:rgba(154,178,210,.13);--text:#f4f7fc;--muted:#a4b2c6;--dim:#71819a;--blue:#66a9ff;--blue-strong:#3889f5;--cyan:#64e2e5;--yellow:#ffc965;--red:#ff6c78;--green:#78e2b1;--shadow:0 24px 65px rgba(0,0,0,.25);--radius:20px;--cell:clamp(25px,4vw,36px);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none;text-rendering:optimizeLegibility}html{scroll-behavior:smooth;scroll-padding-top:100px}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 72% -12%,rgba(43,106,178,.18),transparent 35%),var(--bg);color:var(--text);font-size:16px;line-height:1.65}body.theme-light{color-scheme:light;--bg:#f2f6fc;--bg-soft:#e9f0f9;--panel:#fff;--panel-2:#f5f8fc;--panel-3:#eaf1fa;--line:#d5e0ee;--line-soft:rgba(37,68,107,.12);--text:#162438;--muted:#52657f;--dim:#71819a;--shadow:0 20px 55px rgba(39,72,115,.10);background:radial-gradient(ellipse at 72% -12%,rgba(47,123,218,.11),transparent 35%),var(--bg)}button,input{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--cyan);outline-offset:3px}.skip-link{position:fixed;top:-80px;left:16px;z-index:1000;background:var(--text);color:var(--bg);padding:10px 16px;border-radius:10px}.skip-link:focus{top:12px}.site-header{height:76px;border-bottom:1px solid var(--line-soft);background:rgba(9,16,29,.86);backdrop-filter:blur(18px);position:sticky;top:0;z-index:50}.theme-light .site-header{background:rgba(255,255,255,.87)}.header-inner{max-width:1190px;padding:0 28px;margin:auto;height:100%;display:flex;align-items:center;gap:34px}.brand{display:flex;align-items:center;gap:11px;flex:none}.brand-mark{width:36px;height:36px;position:relative;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:3px;transform:rotate(-5deg)}.brand-mark span{background:linear-gradient(135deg,#67b3ff,#3485f4);border-radius:4px}.brand-mark span:nth-child(2){background:#2e78d6}.brand-mark span:nth-child(3){background:#428de8}.brand-mark b{position:absolute;right:-5px;top:-8px;width:15px;height:15px;border-radius:50%;background:var(--yellow);font-size:10px;line-height:15px;text-align:center;color:#172235}.brand-copy{display:grid;line-height:1.04;letter-spacing:.08em}.brand-copy strong{font-size:14px;font-weight:850}.brand-copy strong span{color:var(--blue)}.brand-copy small{font-size:8px;letter-spacing:.34em;color:var(--muted);margin-top:5px;font-weight:800}.primary-nav{display:flex;align-items:center;gap:8px;margin:auto}.primary-nav a{padding:9px 13px;color:var(--muted);font-weight:650;font-size:13px;border-radius:10px;transition:.18s}.primary-nav a:hover,.primary-nav a.is-active{color:var(--text);background:var(--panel-2)}.primary-nav a.is-active{box-shadow:inset 0 -2px var(--blue)}.header-actions{display:flex;align-items:center;gap:9px}.language-picker{position:relative}.language-picker summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:10px;background:var(--panel);border:1px solid var(--line-soft);font-size:12px;font-weight:750}.language-picker summary::-webkit-details-marker{display:none}.language-picker summary .chevron{color:var(--muted);font-size:16px;margin-left:2px}.language-menu{position:absolute;right:0;top:calc(100% + 10px);width:205px;padding:7px;background:var(--panel);border:1px solid var(--line);border-radius:13px;box-shadow:var(--shadow);z-index:70}.language-menu a{display:flex;align-items:center;gap:10px;padding:9px 10px;font-size:13px;border-radius:8px;color:var(--muted)}.language-menu a:hover,.language-menu a[aria-current=true]{background:var(--panel-2);color:var(--text)}.language-menu b{margin-left:auto;color:var(--green)}.theme-toggle,.menu-toggle,.icon-button{width:40px;height:40px;border-radius:11px;border:1px solid var(--line-soft);background:var(--panel);cursor:pointer;display:grid;place-items:center;font-size:20px}.theme-toggle:hover,.icon-button:hover{border-color:var(--blue)}.menu-toggle{display:none}.site-main{max-width:1190px;margin:0 auto;padding:0 28px 80px}.page-hero{padding:54px 0 28px;max-width:800px}.page-hero.compact-hero{padding-top:52px}.eyebrow,.eyebrow-small{display:flex;align-items:center;gap:9px;color:var(--blue);font-size:10px;font-weight:850;line-height:1.4;letter-spacing:.16em;text-transform:uppercase}.eyebrow-dot{width:7px;height:7px;border-radius:50%;background:var(--cyan);box-shadow:0 0 12px rgba(100,226,229,.8)}.eyebrow-small{font-size:9px;color:var(--dim);letter-spacing:.17em}.page-hero h1{font-size:clamp(36px,5vw,58px);line-height:1.08;letter-spacing:-.045em;margin:14px 0 14px;font-weight:850}.page-hero p{max-width:720px;color:var(--muted);font-size:17px;margin:0}.game-card{border:1px solid rgba(115,161,218,.28);border-radius:24px;background:linear-gradient(145deg,#14233a 0%,#0e192a 62%,#0c1625 100%);box-shadow:var(--shadow);overflow:hidden;position:relative}.theme-light .game-card{background:linear-gradient(145deg,#e8f2ff,#fff 74%);border-color:#c7d9ef}.game-card:before{content:"";position:absolute;inset:0 0 auto;height:220px;background:radial-gradient(ellipse at 50% 0,rgba(48,131,231,.16),transparent 70%);pointer-events:none}.game-card-head{position:relative;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 25px 18px;border-bottom:1px solid var(--line-soft)}.game-card-title{display:flex;align-items:center;gap:13px}.section-icon{width:42px;height:42px;border-radius:13px;background:rgba(70,145,241,.14);border:1px solid rgba(105,169,255,.2);color:var(--blue);display:grid;place-items:center;font-size:22px}.game-card-title .eyebrow-small{margin:0 0 3px}.game-card-title h2{margin:0;font-size:19px;letter-spacing:-.02em}.game-mode-switch{display:flex;gap:3px;padding:4px;border-radius:11px;border:1px solid var(--line-soft);background:rgba(4,10,18,.26)}.game-mode-switch button,.game-mode-switch a{padding:7px 11px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:12px;font-weight:750;cursor:pointer}.game-mode-switch .selected{background:var(--panel-3);color:var(--text);box-shadow:0 2px 8px #0002}.minesweeper-app{position:relative;padding:20px 24px 19px;z-index:1}.game-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;max-width:900px;margin:0 auto 12px}.difficulty-picker,.game-actions{display:flex;align-items:center;gap:6px}.difficulty-picker button{background:transparent;border:1px solid transparent;padding:7px 12px;border-radius:9px;color:var(--muted);font-size:12px;font-weight:750;cursor:pointer}.difficulty-picker button:hover{color:var(--text);background:var(--panel-2)}.difficulty-picker button.selected{color:var(--text);border-color:rgba(102,169,255,.32);background:rgba(56,137,245,.13)}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:10px 15px;border-radius:10px;border:1px solid transparent;font-size:12px;font-weight:800;cursor:pointer;transition:transform .16s,background .16s,border .16s}.button:hover{transform:translateY(-1px)}.button-primary{background:linear-gradient(135deg,#4a9bff,#327ce2);color:white;box-shadow:0 5px 17px rgba(39,122,222,.22)}.button-primary:hover{background:linear-gradient(135deg,#66adff,#438bed)}.button-quiet{background:var(--panel-2);border-color:var(--line-soft);color:var(--text)}.game-actions .button{padding:9px 13px}.icon-button{width:38px;height:38px;font-size:20px}.game-hud{max-width:520px;min-height:66px;margin:0 auto 12px;padding:9px 17px;display:grid;grid-template-columns:1fr 48px 1fr 1fr;align-items:center;gap:10px;background:rgba(5,11,20,.5);border:1px solid var(--line-soft);border-radius:14px}.theme-light .game-hud{background:#edf4fc}.hud-stat{display:grid;justify-items:center;line-height:1.2}.hud-stat span{color:var(--dim);font-size:9px;letter-spacing:.12em;font-weight:850}.hud-stat strong{font-variant-numeric:tabular-nums;font-size:19px;letter-spacing:.05em;color:#ff727c}.hud-stat.best-stat strong{font-size:15px;color:var(--cyan)}.board-frame{padding:12px;background:linear-gradient(145deg,rgba(66,102,148,.28),rgba(18,33,54,.35));border:1px solid rgba(145,174,215,.2);border-radius:16px;width:max-content;max-width:100%;margin:0 auto;box-shadow:inset 0 1px 3px #0005,0 8px 28px #0002}.board-scroller{max-width:100%;overflow:auto;overscroll-behavior:contain;scrollbar-color:#486689 transparent}.minefield{--cols:9;display:grid;grid-template-columns:repeat(var(--cols),var(--cell));grid-auto-rows:var(--cell);gap:3px;touch-action:manipulation;user-select:none}.mine-cell{padding:0;border:1px solid #38536f;border-radius:4px;background:linear-gradient(145deg,#345475,#263f5b);box-shadow:inset 1px 1px 0 rgba(195,222,250,.14),inset -1px -1px 0 rgba(5,15,26,.25);color:#f7fbff;display:grid;place-items:center;font-size:clamp(14px,2vw,18px);font-weight:850;line-height:1;cursor:pointer;position:relative}.mine-cell:hover:not(.open){filter:brightness(1.2);border-color:#75b5ff}.mine-cell.open{background:#dbe7f3;border-color:#c2d1e0;box-shadow:none;cursor:default;color:#1e3249}.theme-light .mine-cell:not(.open){background:linear-gradient(145deg,#7699bc,#527698);border-color:#55789c}.mine-cell.flagged{color:#ff6673}.mine-cell.mine{background:#ff6c78;color:white}.mine-cell.exploded{background:#df4453;box-shadow:0 0 0 2px #ffc1c5}.mine-cell.wrong-flag{background:#6e2834;color:#ffd3d7}.mine-cell.daily-start:not(.open){outline:2px solid var(--yellow);outline-offset:-3px}.mine-cell:disabled{cursor:default}.mine-cell.number-1{color:#1768d1}.mine-cell.number-2{color:#198353}.mine-cell.number-3{color:#d54453}.mine-cell.number-4{color:#563fbb}.mine-cell.number-5{color:#9c3b21}.mine-cell.number-6{color:#147f86}.mine-cell.number-7{color:#172538}.mine-cell.number-8{color:#718096}.mobile-game-controls{display:none}.game-feedback{min-height:28px;text-align:center;color:var(--muted);font-size:12px;font-weight:650;padding:8px 0 1px}.game-controls-note{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:14px;color:var(--dim);font-size:10px}.game-controls-note span{display:flex;align-items:center;gap:5px}kbd{font:inherit;color:var(--muted);padding:1px 5px;border-radius:4px;border:1px solid var(--line);background:var(--panel)}.controls-touch{display:none}.noscript-note{color:var(--yellow);text-align:center}.score-dialog{width:min(430px,calc(100% - 28px));padding:26px;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:20px;box-shadow:0 20px 90px #0008}.score-dialog::backdrop{background:rgba(3,8,15,.72);backdrop-filter:blur(5px)}.score-dialog form{position:relative}.score-dialog h2{margin:8px 30px 8px 0;font-size:26px;line-height:1.2}.score-dialog p{color:var(--muted);font-size:13px}.score-dialog label{display:block;margin:15px 0 6px;font-size:12px;font-weight:750}.score-dialog input{width:100%;height:44px;padding:0 12px;border-radius:9px;border:1px solid var(--line);background:var(--bg-soft);color:var(--text)}.dialog-close{position:absolute;right:0;top:-3px;border:0;background:transparent;font-size:25px;color:var(--muted);cursor:pointer}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:17px}.dialog-error{min-height:18px;margin:4px 0 0;color:var(--red)!important;font-size:11px!important}.feature-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:14px;margin:18px 0 56px}.feature-card{border:1px solid var(--line-soft);border-radius:var(--radius);background:var(--panel);padding:22px;display:flex;align-items:flex-start;gap:16px;position:relative;overflow:hidden}.feature-daily{background:linear-gradient(115deg,rgba(42,108,185,.2),transparent 63%),var(--panel);border-color:rgba(102,169,255,.2)}.feature-icon{width:42px;height:42px;flex:none;display:grid;place-items:center;color:var(--cyan);background:rgba(100,226,229,.09);border:1px solid rgba(100,226,229,.16);border-radius:13px;font-size:21px}.feature-body{min-width:0}.feature-body .eyebrow-small{margin:1px 0 6px}.feature-body h2{margin:0 0 7px;font-size:19px;letter-spacing:-.025em}.feature-body>p:not(.eyebrow-small){color:var(--muted);font-size:13px;margin:0 0 12px}.text-link{font-size:12px;font-weight:800;color:var(--blue)}.text-link span{margin-left:3px}.daily-date{position:absolute;right:17px;top:16px;color:var(--dim);font-size:9px;font-weight:850;letter-spacing:.14em}.best-times{display:flex;gap:14px;margin:11px 0}.best-times div{display:grid;gap:2px}.best-times span{color:var(--dim);font-size:9px}.best-times strong{font-size:14px;color:var(--cyan);font-variant-numeric:tabular-nums}.small-note{font-size:10px!important;color:var(--dim)!important;margin:5px 0 0!important}.content-section{margin:50px 0}.section-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:20px}.section-heading h2{margin:4px 0 3px;font-size:clamp(23px,3vw,31px);line-height:1.2;letter-spacing:-.035em}.section-heading p:not(.eyebrow-small){margin:6px 0 0;color:var(--muted);font-size:14px;max-width:650px}.section-heading>.button{flex:none}.leaderboard-panel{border:1px solid var(--line-soft);border-radius:18px;background:var(--panel);overflow:hidden}.leaderboard-filters{display:flex;justify-content:space-between;gap:14px;padding:15px 17px;border-bottom:1px solid var(--line-soft)}.filter-group{display:flex;gap:4px;flex-wrap:wrap}.filter-group button{padding:7px 11px;background:transparent;border:1px solid transparent;border-radius:8px;color:var(--muted);font-size:11px;font-weight:750;cursor:pointer}.filter-group button.selected{background:var(--panel-3);color:var(--text);border-color:var(--line-soft)}.leaderboard-table-wrap{overflow:auto}.leaderboard-table-head,.leaderboard-row{min-width:470px;display:grid;grid-template-columns:60px 1fr 110px 90px;align-items:center;gap:12px;padding:11px 19px}.leaderboard-table-head{font-size:9px;letter-spacing:.13em;font-weight:850;color:var(--dim);background:rgba(0,0,0,.12)}.leaderboard-table-head span:nth-child(n+3),.leaderboard-row>span:nth-child(n+3){text-align:right}.leaderboard-list{list-style:none;padding:0;margin:0}.leaderboard-row{border-top:1px solid var(--line-soft);font-size:13px}.leaderboard-row:first-child{border-top:0}.leaderboard-row .rank{font-weight:850;color:var(--blue)}.leaderboard-row:nth-child(-n+3) .rank{color:var(--yellow)}.leaderboard-player{display:flex;align-items:center;gap:9px;font-weight:700}.country-flag{font-size:15px}.leaderboard-time{font-variant-numeric:tabular-nums;font-weight:800}.leaderboard-moves{font-variant-numeric:tabular-nums;color:var(--muted)}.leaderboard-empty{padding:22px 18px;color:var(--muted);font-size:13px}.leaderboard-status{margin:0;padding:0 18px 12px;color:var(--dim);font-size:11px}.ranking-note{display:flex;gap:9px;align-items:flex-start;padding:14px 16px;margin-top:13px;border:1px solid var(--line-soft);border-radius:12px;color:var(--muted);font-size:12px;background:var(--panel-2)}.ranking-note span{color:var(--blue)}.text-content{max-width:880px}.copy-section{margin:22px 0}.copy-section h2{font-size:21px;line-height:1.3;letter-spacing:-.025em;margin:0 0 8px}.copy-section p{font-size:14px;color:var(--muted);margin:8px 0;line-height:1.8}.copy-section ul{color:var(--muted);padding-left:22px;font-size:14px}.guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.guide-card{display:flex;gap:15px;padding:19px;border:1px solid var(--line-soft);border-radius:16px;background:var(--panel);transition:transform .16s,border .16s,background .16s}.guide-card:hover{transform:translateY(-2px);border-color:rgba(102,169,255,.4);background:var(--panel-2)}.guide-number{width:35px;height:35px;display:grid;place-items:center;flex:none;border-radius:11px;background:rgba(102,169,255,.11);color:var(--blue);font-weight:850;font-size:12px}.guide-card h2,.guide-card h3{margin:0 0 5px;font-size:16px;line-height:1.35;letter-spacing:-.02em}.guide-card p{margin:0 0 10px;color:var(--muted);font-size:12px;line-height:1.65}.guide-read{font-size:11px;font-weight:800;color:var(--blue)}.guide-read b{margin-left:4px}.faq-list{border-top:1px solid var(--line-soft)}.faq-item{border-bottom:1px solid var(--line-soft)}.faq-item summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 1px;cursor:pointer;font-size:14px;font-weight:700}.faq-item summary::-webkit-details-marker{display:none}.faq-item summary span{color:var(--blue);font-size:20px;transition:transform .15s}.faq-item[open] summary span{transform:rotate(45deg)}.faq-item p{margin:0;padding:0 32px 16px 1px;color:var(--muted);font-size:13px}.article-page,.legal-page{padding-top:36px;max-width:1000px}.breadcrumbs{display:flex;align-items:center;gap:9px;color:var(--dim);font-size:11px;margin-bottom:24px}.breadcrumbs a{color:var(--blue)}.article-header{max-width:780px;margin-bottom:28px}.article-header h1{font-size:clamp(33px,4vw,49px);line-height:1.1;letter-spacing:-.045em;margin:12px 0}.article-intro{font-size:17px;color:var(--muted);line-height:1.65;margin:0}.article-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:46px;align-items:start}.article-copy .copy-section{scroll-margin-top:100px;margin:0 0 29px}.article-copy .copy-section h2{font-size:23px}.article-copy .copy-section p{font-size:15px}.article-sidebar{position:sticky;top:100px;display:grid;gap:13px}.sidebar-card{padding:16px;border:1px solid var(--line-soft);border-radius:14px;background:var(--panel)}.sidebar-card .eyebrow-small{margin:0 0 12px}.sidebar-card ol{margin:0;padding-left:20px;color:var(--dim);font-size:12px}.sidebar-card li{padding:4px 0}.sidebar-card li a:hover{color:var(--blue)}.sidebar-links{display:grid;gap:7px}.sidebar-links>a{display:flex;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted)}.sidebar-links>a:hover{color:var(--blue)}.article-faq{margin:30px 0}.article-faq h2{font-size:21px}.article-cta{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:19px;border:1px solid rgba(102,169,255,.2);border-radius:16px;background:linear-gradient(120deg,rgba(56,137,245,.12),transparent),var(--panel)}.article-cta h2{font-size:18px;margin:3px 0}.legal-page>.copy-section{max-width:800px}.contact-card{display:flex;align-items:center;gap:14px;max-width:760px;margin-top:24px;padding:17px;border-radius:14px;background:var(--panel);border:1px solid var(--line-soft)}.contact-icon{font-size:21px;color:var(--blue)}.contact-card div{flex:1}.contact-card strong{font-size:12px}.contact-card p{margin:2px 0 0;font-size:12px;color:var(--muted)}.not-found{min-height:54vh}.site-footer{border-top:1px solid var(--line-soft);padding:32px max(28px,calc((100vw - 1134px)/2)) 20px;background:rgba(5,10,18,.24)}.theme-light .site-footer{background:#eaf0f8}.footer-top{display:flex;align-items:center;gap:16px}.footer-top>p{color:var(--muted);font-size:13px}.footer-nav{display:flex;flex-wrap:wrap;gap:10px 19px;padding:18px 0;border-bottom:1px solid var(--line-soft)}.footer-nav a{font-size:11px;color:var(--muted)}.footer-nav a:hover{color:var(--blue)}.footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:15px;color:var(--dim);font-size:10px}.footer-bottom a{color:var(--blue)}
@media(max-width:900px){.header-inner{gap:17px;padding:0 20px}.primary-nav{gap:1px}.primary-nav a{padding:8px 9px;font-size:12px}.site-main{padding-left:20px;padding-right:20px}.feature-grid{grid-template-columns:1fr}.feature-card{min-height:125px}.best-times{gap:28px}.article-layout{grid-template-columns:minmax(0,1fr) 215px;gap:26px}.leaderboard-filters{align-items:flex-start;flex-direction:column}}
@media(max-width:680px){.site-header{height:64px}.header-inner{padding:0 15px;gap:11px}.brand-mark{width:32px;height:32px}.brand-copy strong{font-size:12px}.brand-copy small{font-size:7px}.menu-toggle{display:flex;flex-direction:column;justify-content:center;gap:4px;width:38px;height:38px;margin-left:auto;background:transparent;border:0}.menu-toggle span{width:19px;height:2px;background:var(--text);border-radius:2px;margin:auto}.primary-nav{display:none;position:absolute;left:12px;right:12px;top:calc(100% + 7px);padding:8px;gap:4px;align-items:stretch;flex-direction:column;background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}.primary-nav.is-open{display:flex}.primary-nav a{padding:11px 13px;font-size:13px}.header-actions{gap:5px}.theme-toggle{height:36px;width:36px}.language-picker summary{padding:8px 8px;gap:5px}.language-picker summary .chevron{display:none}.site-main{padding:0 14px 56px}.page-hero{padding:36px 2px 22px}.page-hero.compact-hero{padding-top:34px}.page-hero h1{font-size:36px}.page-hero p{font-size:14px}.eyebrow{font-size:9px}.game-card{border-radius:18px}.game-card-head{padding:16px 14px;align-items:flex-start;flex-direction:column}.game-card-title h2{font-size:17px}.section-icon{width:38px;height:38px}.game-mode-switch{align-self:stretch}.game-mode-switch button,.game-mode-switch a{flex:1;text-align:center}.minesweeper-app{padding:15px 9px}.game-toolbar{align-items:flex-start;flex-direction:column}.difficulty-picker{width:100%;justify-content:space-between;gap:1px}.difficulty-picker button{padding:7px 8px;font-size:11px}.game-actions{position:absolute;top:13px;right:10px}.game-actions .button{padding:8px 10px;font-size:11px}.icon-button{width:35px;height:35px}.game-hud{max-width:100%;padding:8px;grid-template-columns:1fr 42px 1fr 1fr;gap:4px}.hud-stat strong{font-size:16px}.hud-stat.best-stat strong{font-size:12px}.board-frame{max-width:100%;width:auto;padding:7px;border-radius:12px}.board-scroller{max-width:calc(100vw - 48px)}.minefield{--cell:clamp(22px,7.15vw,32px);gap:2px}.mine-cell{font-size:14px;border-radius:3px}.mobile-game-controls{display:flex;flex-direction:column;gap:8px;align-items:center;margin-top:10px}.mobile-hint{font-size:10px;color:var(--dim);text-align:center}.reveal-flag-switch{display:flex;gap:4px;padding:3px;border-radius:9px;background:rgba(4,10,18,.3);border:1px solid var(--line-soft)}.reveal-flag-switch button{min-width:98px;padding:8px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:11px;font-weight:800}.reveal-flag-switch button.selected{background:var(--panel-3);color:var(--text)}.game-controls-note{font-size:9px;gap:7px}.game-controls-note .controls-touch{display:none}.feature-grid{margin:14px 0 42px;gap:10px}.feature-card{padding:17px;gap:12px}.feature-body h2{font-size:17px}.feature-body>p:not(.eyebrow-small){font-size:12px}.feature-icon{width:37px;height:37px}.best-times{gap:19px}.best-times span{font-size:8px}.best-times strong{font-size:13px}.content-section{margin:39px 0}.section-heading{align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:15px}.section-heading h2{font-size:24px}.section-heading p:not(.eyebrow-small){font-size:12px}.leaderboard-filters{padding:11px;gap:8px}.filter-group button{padding:6px 8px;font-size:10px}.leaderboard-table-head,.leaderboard-row{min-width:410px;grid-template-columns:43px 1fr 83px 64px;padding-left:12px;padding-right:12px;gap:8px}.leaderboard-row{font-size:12px}.guide-grid{grid-template-columns:1fr;gap:9px}.guide-card{padding:15px;gap:12px}.guide-card h2,.guide-card h3{font-size:15px}.copy-section h2{font-size:19px}.copy-section p{font-size:13px}.article-page,.legal-page{padding-top:25px}.article-header h1{font-size:34px}.article-intro{font-size:14px}.article-layout{grid-template-columns:1fr;gap:19px}.article-sidebar{position:static;grid-row:1}.sidebar-links{display:none}.article-copy .copy-section h2{font-size:21px}.article-copy .copy-section p{font-size:14px}.article-cta{align-items:flex-start;flex-direction:column}.contact-card{align-items:flex-start;flex-wrap:wrap}.contact-card .button{width:100%}.footer-top{flex-wrap:wrap}.footer-nav{gap:9px 14px}.footer-bottom{align-items:flex-start;flex-direction:column}.site-footer{padding:26px 15px 18px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Local SVG language flags, matching the other game sites. */
.language-picker summary .language-flag,.language-menu .language-flag{display:block;object-fit:cover;flex:0 0 auto;border-radius:3px;box-shadow:0 0 0 1px rgba(255,255,255,.22)}
.language-picker summary{min-height:38px}
@media(max-width:680px){.language-picker summary{width:54px;min-height:38px;justify-content:center;padding:7px 6px;gap:4px}.language-picker summary .current-lang{display:none}.language-picker summary .chevron{display:block;font-size:14px;margin:0}}

/* Higher contrast and clearer controls for the game-first layout. */
:root{
  --bg:#07111f;--bg-soft:#0d1a2c;--panel:#112039;--panel-2:#192c48;--panel-3:#233b5c;
  --line:#38516f;--line-soft:rgba(158,190,231,.18);--text:#f7f9ff;--muted:#bdc9dc;--dim:#94a5bf;
  --blue:#78b8ff;--blue-strong:#4b92f6;--cyan:#49e7dd;--yellow:#ffd466;--red:#ff7188;--green:#72e49a;
}
body{font-size:17px;background:radial-gradient(ellipse at 76% -10%,rgba(78,134,255,.2),transparent 36%),radial-gradient(ellipse at 8% 32%,rgba(25,194,183,.08),transparent 26%),var(--bg)}
body.theme-light{--bg:#f4f8ff;--bg-soft:#e8f0fc;--panel:#fff;--panel-2:#f1f6ff;--panel-3:#e5efff;--line:#c7d7ed;--line-soft:rgba(37,68,107,.16);--text:#17263c;--muted:#4b5f7a;--dim:#647891;--blue:#216de8;--blue-strong:#185bc9;--cyan:#087f89;--yellow:#a56800;--red:#ce3e56;--green:#157348;background:radial-gradient(ellipse at 76% -10%,rgba(47,123,218,.14),transparent 36%),var(--bg)}
.page-hero p,.article-intro{font-size:18px}
.game-card{border-color:rgba(120,184,255,.36);background:linear-gradient(145deg,#162b49 0%,#101e33 62%,#0d192a 100%)}
.theme-light .game-card{background:linear-gradient(145deg,#e4f0ff,#fff 74%);border-color:#b9d1f0}
.game-card-head{border-bottom-color:rgba(132,182,244,.2)}
.difficulty-picker button,.game-mode-switch button,.game-mode-switch a,.button{font-size:13px}
.game-hud{border-color:rgba(123,181,245,.23);background:rgba(4,11,22,.6)}
.hud-stat span{font-size:10px;color:var(--muted)}
.hud-stat strong{font-size:21px}
.hud-stat.best-stat strong{font-size:17px}
.board-frame{border-color:rgba(135,186,245,.34);background:linear-gradient(145deg,rgba(80,124,181,.34),rgba(27,48,77,.64));box-shadow:inset 0 1px 3px #0005,0 12px 36px rgba(15,54,101,.23)}
.board-scroller{scrollbar-width:thin;scrollbar-color:#6da8ec rgba(9,20,36,.2)}
.board-scroller::-webkit-scrollbar{height:9px}
.board-scroller::-webkit-scrollbar-track{background:rgba(9,20,36,.3);border-radius:8px}
.board-scroller::-webkit-scrollbar-thumb{background:linear-gradient(90deg,#4c91ef,#49cfc8);border:2px solid rgba(9,20,36,.3);border-radius:8px}
.minefield{gap:2px}
.mine-cell{font-size:var(--cell-font,clamp(14px,2vw,18px));border-color:#53789f;background:linear-gradient(145deg,#426990,#294766);box-shadow:inset 1px 1px 0 rgba(224,241,255,.2),inset -1px -1px 0 rgba(5,15,26,.24);transition:background .12s,border-color .12s,transform .12s}
.mine-cell:not(:disabled):hover{z-index:1;border-color:#8fdcf5;background:linear-gradient(145deg,#5485b1,#315778)}
.mine-cell:focus-visible{z-index:2;outline:3px solid var(--cyan);outline-offset:1px}
.mine-cell.open{background:#e7f0fc;border-color:#aec5df;color:#203651;box-shadow:none}
.theme-light .mine-cell.open{background:#f6faff;border-color:#b5c9e2}
.mine-cell.open.number-1{color:#1268db}.mine-cell.open.number-2{color:#087e45}.mine-cell.open.number-3{color:#d52e4d}.mine-cell.open.number-4{color:#6546d5}.mine-cell.open.number-5{color:#b54221}.mine-cell.open.number-6{color:#087f8c}.mine-cell.open.number-7{color:#812f9b}.mine-cell.open.number-8{color:#3b4d67}
.mine-cell.flagged{color:#fff;background:linear-gradient(140deg,#ff657d,#d83b5a);border-color:#ff9cac;box-shadow:inset 1px 1px 0 rgba(255,255,255,.22),0 0 10px rgba(255,80,115,.2)}
.mine-cell.mine{background:#ff506b;border-color:#ffc2cb;color:#fff}
.mine-cell.exploded{background:radial-gradient(circle at 50% 40%,#ffe183,#ff5470 70%);box-shadow:0 0 0 3px rgba(255,94,118,.28),0 0 18px rgba(255,77,105,.55)}
.mine-cell.wrong-flag{background:#f6bec6;border-color:#e77f91;color:#8e2136}
.board-zoom-controls{display:flex;align-items:center;justify-content:center;gap:7px;margin:11px auto 3px}
.board-zoom-controls button{min-width:40px;min-height:38px;padding:6px 12px;border:1px solid var(--line-soft);border-radius:10px;background:var(--panel-2);color:var(--text);font-size:16px;font-weight:850;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.board-zoom-controls button:hover:not(:disabled){transform:translateY(-1px);background:var(--panel-3);border-color:var(--blue)}
.board-zoom-controls button:disabled{opacity:.48;cursor:default}
.board-zoom-controls button[data-board-zoom="fit"]{min-width:112px;font-size:12px;color:var(--blue)}
.board-zoom-controls output{min-width:48px;text-align:center;font-size:12px;font-weight:850;font-variant-numeric:tabular-nums;color:var(--muted)}
.game-feedback{min-height:30px;font-size:14px;color:var(--muted)}
.mobile-hint{font-size:12px}
.reveal-flag-switch button{font-size:12px}
.leaderboard-table-head{font-size:10px}
.leaderboard-row{font-size:14px}
.filter-group button{font-size:12px}
.leaderboard-player{min-width:0}
.leaderboard-player>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.country-flag{display:block;width:21px;height:15px;flex:0 0 21px;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px rgba(145,170,205,.35)}
.language-picker summary .language-flag,.language-menu .language-flag{border-radius:3px;box-shadow:0 0 0 1px rgba(145,170,205,.4)}
@media(max-width:680px){
  body{font-size:16px}
  .page-hero p,.article-intro{font-size:15px}
  .game-hud{grid-template-columns:1fr 40px 1fr 1fr;padding:8px 7px;gap:3px}
  .hud-stat span{font-size:9px}.hud-stat strong{font-size:18px}.hud-stat.best-stat strong{font-size:14px}
  .minefield{gap:1px}
  .mine-cell{border-radius:2px}
  .board-zoom-controls{margin-top:9px}
  .board-zoom-controls button{min-width:44px;min-height:42px}
  .board-zoom-controls button[data-board-zoom="fit"]{min-width:125px}
  .leaderboard-row{font-size:13px}
  .country-flag{width:19px;height:14px;flex-basis:19px}
}

/* Keep the measured viewport independent of the selected grid size. */
.board-frame{width:min(100%,900px);max-width:100%}
.board-scroller{width:100%;max-width:100%}
.minefield{width:max-content;max-width:none;margin-inline:auto}

/* Make the interface typography easier to read at a glance. */
body{font-size:18px}
.primary-nav a{font-size:14px}
.page-hero p,.article-intro{font-size:19px}
.game-card-title h2{font-size:21px}
.difficulty-picker button,.game-mode-switch button,.game-mode-switch a{font-size:14px}
.game-actions .button{font-size:13px}
.hud-stat span{font-size:11px}
.hud-stat strong{font-size:22px}
.hud-stat.best-stat strong{font-size:18px}
.board-zoom-controls button[data-board-zoom="fit"]{font-size:13px}
.board-zoom-controls output{font-size:13px}
.game-feedback{font-size:15px}
.mobile-hint{font-size:13px}
.reveal-flag-switch button{font-size:13px}
.section-heading p:not(.eyebrow-small){font-size:15px}
.copy-section p,.copy-section ul,.article-copy .copy-section p{font-size:15px}
.guide-card p{font-size:14px}
.faq-item summary{font-size:15px}
.faq-item p{font-size:14px}
.leaderboard-table-head{font-size:11px}
.leaderboard-row{font-size:15px}
.filter-group button{font-size:13px}
.leaderboard-empty{font-size:14px}
.leaderboard-status{font-size:12px}
.footer-nav a{font-size:12px}
.footer-bottom{font-size:11px}
.mine-cell{font-size:var(--cell-font,clamp(15px,2vw,20px))}
@media(max-width:680px){
  body{font-size:17px}
  .primary-nav a{font-size:14px}
  .page-hero p,.article-intro{font-size:16px}
  .game-card-title h2{font-size:18px}
  .difficulty-picker button,.game-mode-switch button,.game-mode-switch a{font-size:13px}
  .hud-stat span{font-size:10px}.hud-stat strong{font-size:19px}.hud-stat.best-stat strong{font-size:15px}
  .section-heading p:not(.eyebrow-small){font-size:14px}
  .copy-section p,.copy-section ul,.article-copy .copy-section p{font-size:14px}
  .guide-card p{font-size:13px}
  .leaderboard-row{font-size:14px}
}

/* Minesweeper arcade background, faded under the play area for readable UI. */
body{background-color:var(--bg);background-image:linear-gradient(180deg,rgba(7,17,31,.22) 0%,rgba(7,17,31,.46) 420px,rgba(7,17,31,.91) 760px,var(--bg) 900px),url("../bg.webp");background-size:100% 900px,min(100%,1920px) auto;background-repeat:no-repeat;background-position:center top}
body.theme-light{background-color:var(--bg);background-image:linear-gradient(180deg,rgba(244,248,255,.72) 0%,rgba(244,248,255,.88) 420px,rgba(244,248,255,.97) 760px,var(--bg) 900px),url("../bg.webp");background-size:100% 900px,min(100%,1920px) auto;background-repeat:no-repeat;background-position:center top}



/* Outfit typography and richer arcade accents. */
:root{font-family:"Outfit",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;--accent-mint:#48e0c4;--accent-amber:#ffd166;--accent-violet:#ad96ff;--accent-coral:#ff987b}
body,button,input,select,textarea{font-family:"Outfit",ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.game-mode-switch{gap:5px;padding:5px;border-radius:13px;background:linear-gradient(135deg,rgba(15,30,49,.95),rgba(19,39,60,.9));border-color:rgba(133,173,223,.27);box-shadow:inset 0 1px rgba(255,255,255,.035)}
.game-mode-switch .mode-link{display:inline-flex;align-items:center;justify-content:center;min-height:39px;padding:8px 15px;border-radius:9px;font-weight:750;transition:transform .16s,background .16s,color .16s,box-shadow .16s}
.game-mode-switch .mode-link:not(.selected):hover{transform:translateY(-1px);background:rgba(89,143,204,.14);color:var(--text)}
.game-mode-switch .mode-link[aria-current="page"]{background:linear-gradient(135deg,#4b92f6,#3276d7);color:white;box-shadow:0 5px 14px rgba(39,122,222,.24),inset 0 1px rgba(255,255,255,.16)}
.game-mode-switch .mode-link[href*="daily-challenge"]:not([aria-current="page"]):hover{color:#b6fff0}
.game-mode-switch .mode-link[href*="daily-challenge"][aria-current="page"]{background:linear-gradient(135deg,#17b9a7,#087f98);box-shadow:0 5px 15px rgba(20,186,170,.22)}
.game-mode-switch .mode-link:focus-visible{outline:3px solid var(--accent-amber);outline-offset:2px}
.feature-card{transition:transform .2s,border-color .2s,box-shadow .2s}
.feature-card:hover{transform:translateY(-3px);border-color:rgba(130,191,237,.4);box-shadow:0 17px 38px rgba(0,0,0,.2)}
.feature-daily{--card-accent:var(--accent-mint);background:radial-gradient(ellipse at 96% 6%,rgba(72,224,196,.15),transparent 40%),linear-gradient(112deg,rgba(26,135,158,.17),transparent 67%),var(--panel);border-color:rgba(72,224,196,.25)}
.player-card{--card-accent:var(--accent-amber);background:radial-gradient(ellipse at 98% 0,rgba(255,209,102,.12),transparent 40%),linear-gradient(120deg,rgba(188,125,35,.08),transparent 65%),var(--panel);border-color:rgba(255,209,102,.2)}
.feature-icon{color:var(--card-accent,var(--accent-mint));background:color-mix(in srgb,var(--card-accent,var(--accent-mint)) 13%,transparent);border-color:color-mix(in srgb,var(--card-accent,var(--accent-mint)) 24%,transparent)}
.best-times strong{color:var(--accent-amber)}
.hud-stat:nth-child(1) strong{color:var(--accent-coral)}
.hud-stat:nth-child(3) strong{color:var(--accent-amber)}
.hud-stat.best-stat strong{color:var(--accent-mint)}
.text-content .copy-section{--copy-accent:var(--accent-mint);position:relative;margin:15px 0;padding:20px 23px;border:1px solid color-mix(in srgb,var(--copy-accent) 24%,var(--line-soft));border-left:3px solid var(--copy-accent);border-radius:16px;background:linear-gradient(115deg,color-mix(in srgb,var(--copy-accent) 7%,transparent),transparent 50%),var(--panel);box-shadow:0 10px 28px rgba(0,0,0,.09)}
.text-content .copy-section:nth-of-type(2){--copy-accent:var(--accent-amber)}
.text-content .copy-section:nth-of-type(3){--copy-accent:var(--accent-violet)}
.text-content .copy-section:nth-of-type(4){--copy-accent:var(--accent-coral)}
.text-content .copy-section h2{color:var(--text);font-size:22px}
.text-content .copy-section p,.text-content .copy-section ul{font-size:16px;line-height:1.8}
.text-content .copy-section li{padding:2px 0}
.text-content .copy-section li::marker{color:var(--copy-accent)}
.leaderboard-row:nth-child(1) .rank{color:#ffd166}
.leaderboard-row:nth-child(2) .rank{color:#c7d4e7}
.leaderboard-row:nth-child(3) .rank{color:#e69b6b}
@media(max-width:680px){
  .game-mode-switch .mode-link{min-height:42px;padding:8px 12px}
  .text-content .copy-section{margin:12px 0;padding:16px 16px 17px}
  .text-content .copy-section h2{font-size:19px}
  .text-content .copy-section p,.text-content .copy-section ul{font-size:14px}
}

/* Classic Minesweeper counters, polished to match the arcade shell. */
.game-hud{padding:11px 16px;background:linear-gradient(180deg,rgba(20,32,46,.92),rgba(8,15,25,.92));border:1px solid rgba(160,187,211,.3);box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 8px 20px rgba(0,0,0,.16)}
.theme-light .game-hud{background:linear-gradient(180deg,#e6edf4,#cbd7e2);border-color:#a7b7c5;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 7px 17px rgba(30,54,78,.11)}
.hud-stat strong{min-width:76px;margin-top:4px;padding:3px 7px;border:1px solid rgba(255,255,255,.09);border-radius:6px;background:linear-gradient(180deg,#101720,#080d13);box-shadow:inset 0 2px 5px rgba(0,0,0,.62);font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;font-size:19px;font-weight:800;letter-spacing:.035em;text-align:center;text-shadow:0 0 9px currentColor}
.hud-stat.best-stat strong{min-width:70px;font-size:14px}
.theme-light .hud-stat strong{border-color:#334150;background:linear-gradient(180deg,#26333f,#121c26);color:#ff777d}
.theme-light .hud-stat.best-stat strong{color:#65dce0}
.mine-cell:active:not(.open):not(:disabled){transform:translate(1px,1px);border-top-color:#324a60;border-left-color:#324a60;border-right-color:#b9cbd9;border-bottom-color:#a9bdce;background:linear-gradient(145deg,#526d85,#6d88a1);box-shadow:inset 2px 2px 5px rgba(17,35,52,.52),inset -1px -1px 0 rgba(255,255,255,.1);filter:brightness(.94)}

@media(max-width:680px){.game-hud{padding:8px 7px}.hud-stat strong{min-width:0;width:100%;padding:3px 3px;font-size:16px}.hud-stat.best-stat strong{min-width:0;font-size:12px}}
@media(prefers-reduced-motion:reduce){.mine-cell,.mine-cell.tile-reveal{animation:none}}

/* Classic Minesweeper interaction: raised cells press into the board on hold. */
.board-frame{padding:11px;border:2px solid #b6c8d8;border-radius:12px;background:linear-gradient(145deg,#8299ad,#536a80);box-shadow:inset 2px 2px 0 rgba(255,255,255,.42),inset -2px -2px 0 rgba(22,39,56,.7),0 16px 34px rgba(0,0,0,.2)}
.theme-light .board-frame{background:linear-gradient(145deg,#cbd8e3,#8fa3b6);border-color:#d6e2eb}
.board-scroller{border:1px solid #30465b;border-radius:4px;background:#3c5267;scrollbar-color:#8da9c1 #33485d}
.board-scroller::-webkit-scrollbar-track{background:#33485d}
.board-scroller::-webkit-scrollbar-thumb{background:linear-gradient(90deg,#8da9c1,#6d8da8);border-color:#33485d}
.mine-cell{border:0;border-top:2px solid #b8c9d8;border-left:2px solid #a8bdcf;border-right:2px solid #344c63;border-bottom:2px solid #263c52;border-radius:2px;background:linear-gradient(145deg,#829bb2,#617d98);box-shadow:inset 1px 1px 0 rgba(255,255,255,.2),inset -1px -1px 0 rgba(20,38,55,.24);transition:transform .07s ease,filter .1s ease,background .1s ease,border-color .1s ease}
.mine-cell:not(:disabled):hover:not(.is-pressed):not(.is-chord-preview){filter:brightness(1.12)}
.mine-cell.is-pressed,.mine-cell.is-chord-preview{z-index:2;transform:translate(1px,1px);border-top-color:#324a60;border-left-color:#324a60;border-right-color:#b9cbd9;border-bottom-color:#a9bdce;background:linear-gradient(145deg,#526d85,#6d88a1);box-shadow:inset 2px 2px 5px rgba(17,35,52,.52),inset -1px -1px 0 rgba(255,255,255,.1);filter:brightness(.94)}
.mine-cell.open{border:1px solid #aebcc8;border-radius:0;background:#dce4eb;box-shadow:inset 0 0 0 1px rgba(255,255,255,.38);transform:none}
.theme-light .mine-cell.open{background:#e6edf3;border-color:#aebdca}
.mine-cell.flagged{color:#e83d52;background:linear-gradient(145deg,#829bb2,#617d98);border-top:2px solid #b8c9d8;border-left:2px solid #a8bdcf;border-right:2px solid #344c63;border-bottom:2px solid #263c52;box-shadow:inset 1px 1px 0 rgba(255,255,255,.2),inset -1px -1px 0 rgba(20,38,55,.24);font-size:var(--cell-font,18px);text-shadow:0 1px rgba(255,255,255,.25)}
.mine-cell.wrong-flag{border:1px solid #e77f91;border-radius:0;background:#f6bec6;box-shadow:none}
.mine-cell.tile-reveal{animation:minesweeper-tile-open .16s cubic-bezier(.2,.75,.25,1) both}
@keyframes minesweeper-tile-open{0%{transform:scale(.84);filter:brightness(1.22)}65%{transform:scale(1.035)}100%{transform:scale(1);filter:none}}



.classic-face-icon{display:block;width:22px;height:22px;flex:0 0 22px}
.classic-face-disc{fill:#ffd34d;stroke:#78561e;stroke-width:1.35}
.face-eye{fill:#342b1d}
.face-mouth{display:none;fill:none;stroke:#342b1d;stroke-width:2.35;stroke-linecap:round;stroke-linejoin:round}
.face-mouth-smile{display:block}
.face-mouth-open{fill:#342b1d;stroke:none}
.face-dead-eyes,.face-sunglasses{display:none}
.face-dead-eyes path{fill:none;stroke:#342b1d;stroke-width:2.3;stroke-linecap:round}
.face-sunglasses path{fill:#2e3741;stroke:#2e3741;stroke-width:1.4;stroke-linejoin:round;stroke-linecap:round}
#resetFace[data-expression="pressed"] .face-mouth-smile{display:none}
#resetFace[data-expression="pressed"] .face-mouth-open{display:block}
#resetFace[data-expression="lost"] .face-eye,#resetFace[data-expression="lost"] .face-mouth-smile{display:none}
#resetFace[data-expression="lost"] .face-mouth-frown,#resetFace[data-expression="lost"] .face-dead-eyes{display:block}
#resetFace[data-expression="won"] .face-eye,#resetFace[data-expression="won"] .face-mouth-smile{display:none}
#resetFace[data-expression="won"] .face-sunglasses{display:block}
.language-picker summary{display:grid;grid-template-columns:23px auto 12px;align-items:center;column-gap:6px;min-height:40px;padding:6px 10px}
.language-picker summary .language-flag{width:23px;height:16px;align-self:center}
.language-picker summary .current-lang{line-height:1}
.language-picker summary .chevron{display:grid;width:12px;height:16px;place-items:center;margin:0;font-size:14px;line-height:1;transform:translateY(-1px);transition:transform .16s}
.language-picker[open] summary .chevron{transform:rotate(180deg) translateY(1px)}
.text-content{max-width:1000px}
.text-content .copy-section{width:100%;max-height:none;overflow:visible}
.text-content .copy-section h2{max-width:65ch;line-height:1.28;text-wrap:balance}
.text-content .copy-section p,.text-content .copy-section ul,.article-copy .copy-section p{max-width:78ch;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;hyphens:auto;text-wrap:pretty}
.text-content .copy-section p{margin-block:10px 13px}
.text-content .copy-section ul{margin-top:10px;padding-inline-start:22px}
@media(max-width:680px){
  .board-frame{padding:7px;border-radius:9px}
  .board-scroller{border-radius:3px}
  .mine-cell{border-radius:1px}
  
  .language-picker summary{width:56px;min-height:40px;grid-template-columns:23px 12px;justify-content:center;column-gap:4px;padding:5px 7px}
  .language-picker summary .current-lang{display:none}
  .language-picker summary .chevron{font-size:13px}
  .text-content .copy-section{padding:16px 16px 17px}
  .text-content .copy-section p,.text-content .copy-section ul{font-size:14px}
}

/* Let the article card align with the wider guide cards below it. */
.text-content{width:100%;max-width:none}
.text-content .copy-section p,.text-content .copy-section ul{max-width:none;hyphens:manual;overflow-wrap:break-word}

/* Game-first console: one connected control bar and play surface. */
.game-card{overflow:hidden}
.minesweeper-app{padding:0}
.game-console{width:100%;margin:0 auto;background:#0b1727}
.game-console-top{padding:14px 20px 13px;background:linear-gradient(125deg,#62b7ff 0%,#428fe8 52%,#347ad1 100%);border-bottom:1px solid rgba(10,44,83,.35)}
.game-toolbar{width:100%;max-width:none;margin:0 auto 10px;gap:12px}
.difficulty-picker{width:auto;justify-content:flex-start;gap:5px}
.difficulty-picker button{padding:8px 13px;color:#f7fbff;border:1px solid transparent}
.difficulty-picker button:hover{background:rgba(13,48,88,.18);color:#fff}
.difficulty-picker button.selected{background:#f7fbff;color:#1d4d80;border-color:rgba(255,255,255,.8);box-shadow:0 3px 10px rgba(15,55,97,.16)}
.game-actions .button-primary{background:#f8fbff;color:#185aa6;box-shadow:0 4px 12px rgba(14,55,100,.2)}
.game-actions .button-primary:hover{background:#fff;color:#12477f}
.game-actions .icon-button{background:#f5f9ff;color:#244b74;border-color:rgba(255,255,255,.62)}
.game-actions .icon-button:hover{background:#fff;border-color:#fff}
.game-hud{width:100%;max-width:none;min-height:0;margin:0;padding:0;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;background:transparent;border:0;border-radius:0;box-shadow:none}
.theme-light .game-hud{background:transparent;border:0;box-shadow:none}
.hud-stat{min-width:0;min-height:58px;padding:6px 10px;gap:3px;border:1px solid rgba(31,73,118,.13);border-radius:12px;background:linear-gradient(180deg,#fbfdff,#edf4fb);box-shadow:0 3px 9px rgba(20,60,100,.12)}
.hud-stat span{color:#586f89;font-size:10px}
.hud-stat strong{min-width:82px;margin:0;padding:2px 7px;font-size:18px}
.hud-stat.best-stat strong{min-width:82px;font-size:14px}

.game-console-play{padding:12px 18px 14px;background:radial-gradient(ellipse at 50% 0,rgba(60,121,183,.16),transparent 58%),linear-gradient(180deg,#0c1a2b,#091421)}
.board-frame{width:100%;max-width:none;margin:0;padding:12px 8px 9px;border:0;border-radius:0;background:transparent;box-shadow:none}
.board-scroller{width:100%;max-width:100%;border:0;border-radius:3px;background:transparent}
.game-console-footer{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px 16px;padding:10px 4px 1px;border-top:1px solid rgba(160,190,224,.15)}
.board-zoom-controls{grid-column:1;justify-content:flex-start;margin:0}
.game-console-footer .board-zoom-controls button{min-width:36px;min-height:34px;padding:5px 10px;border-radius:9px;background:#14263b;border-color:rgba(144,180,220,.2)}
.game-console-footer .board-zoom-controls button[data-board-zoom="fit"]{min-width:96px}
.game-console-footer .board-zoom-controls output{min-width:42px;font-size:11px}
.game-feedback{grid-column:2;display:flex;align-items:center;justify-content:flex-end;min-width:0;min-height:34px;padding:0;text-align:right;font-size:13px}
.game-controls-note{grid-column:1/-1;gap:10px;padding-top:1px;font-size:10px}
.game-console-footer .mobile-game-controls{grid-column:1/-1}
.game-console-footer .noscript-note{grid-column:1/-1}
@media(max-width:680px){
  .game-card-head{padding:14px 14px 12px}
  .minesweeper-app{padding:0}
  .game-console-top{padding:10px 10px 11px}
  .game-toolbar{flex-wrap:wrap;align-items:center;gap:7px;margin-bottom:8px}
  .difficulty-picker{width:100%;flex:1 1 100%;justify-content:space-between;gap:3px}
  .difficulty-picker button{flex:1;min-width:0;padding:7px 5px;font-size:11px;white-space:nowrap}
  .game-actions{position:static;width:100%;justify-content:flex-end;gap:6px}
  .game-actions .button{padding:7px 11px;font-size:11px}
  .game-actions .icon-button{width:35px;height:35px}
  .game-hud{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
  .hud-stat{min-height:52px;padding:5px 4px;border-radius:9px}
  .hud-stat span{font-size:8px;letter-spacing:.08em}
  .hud-stat strong{width:100%;min-width:0;padding:3px 2px;font-size:clamp(11px,3.2vw,14px)}
  .hud-stat.best-stat strong{min-width:0;font-size:clamp(10px,2.8vw,12px)}
  
  .game-console-play{padding:7px 7px 10px}
  .board-frame{padding:7px 0 5px}
  .game-console-footer{grid-template-columns:1fr;gap:7px;padding:8px 3px 0}
  .board-zoom-controls,.game-feedback,.game-controls-note,.game-console-footer .mobile-game-controls,.game-console-footer .noscript-note{grid-column:1}
  .board-zoom-controls{justify-content:center}
  .game-feedback{justify-content:center;min-height:30px;text-align:center;font-size:12px}
  .game-console-footer .mobile-game-controls{display:flex;flex-direction:row;justify-content:space-between;gap:8px;margin:0;padding:2px 3px}
  .game-console-footer .mobile-hint{max-width:48%;text-align:left;font-size:10px}
  .game-console-footer .reveal-flag-switch{flex:none}
  .game-controls-note{justify-content:center;gap:6px;padding-top:3px;font-size:9px}
  .game-controls-note .controls-touch{display:none}
}
@media(max-width:360px){
  .game-console-top{padding-inline:7px}
  .difficulty-picker button{padding-inline:3px;font-size:10px}
  .game-hud{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
  
  .hud-stat{padding-inline:2px}
  .game-controls-note{font-size:8px}
}

.game-feedback-group{grid-column:2;display:flex;align-items:center;justify-content:flex-end;gap:9px;min-width:0}
.game-feedback-group .game-feedback{grid-column:auto;min-width:0}
.share-result-button{flex:none;min-height:34px;padding:6px 11px;border-color:rgba(144,180,220,.22);background:#14263b;color:#e7f2ff;font-size:11px;white-space:nowrap}
.share-result-button:hover{border-color:rgba(102,169,255,.58);background:#1a3452}
.share-result-button[hidden]{display:none}
@media(max-width:680px){
  .game-feedback-group{grid-column:1;flex-direction:column;gap:6px;justify-content:center}
  .game-feedback-group .game-feedback{justify-content:center;min-height:30px;text-align:center;font-size:12px}
  .share-result-button{min-height:32px;padding:6px 10px}
}
@media(max-width:360px){.share-result-button{font-size:10px}}
