html { scroll-padding-top: 112px; }
.header { position: fixed; inset: 0 0 auto; height: 88px; background: linear-gradient(100deg,#031321bf,#09283bb8,#031321d9); backdrop-filter: blur(22px) saturate(140%); z-index: 50; }
body { padding-top: 88px; }
.header nav { display:flex; gap:20px; }
.header .header-cta { display:none; }
.header .brand img { width:166px; }
.header nav a { font-size:12px; }
.game-art { display:block; width:100%; height:auto; aspect-ratio:540/374; object-fit:cover; background:none; }
.game-name { font-size:20px; margin:0 0 10px; color:#efe6d7; }
.card-content { display:flex; flex-direction:column; }
.card-content > p { flex:1; }
.card-action { display:flex; align-items:center; justify-content:space-between; min-height:44px; border-top:1px solid #d7b77b35; color:var(--gold); margin-top:16px; padding-top:12px; font-size:12px; }
.card-action:hover { color:#fff1cc; }
.card-footer { margin-top:10px; }
@keyframes appear { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:none} }
.play-section { border-top:1px solid #d9b46c3d; background:radial-gradient(ellipse at 85% 35%,#16546633,transparent 60%); }
.play-lead { margin-top:22px;color:var(--muted);line-height:1.8; }
.game-tabs { display:flex; flex-wrap:wrap; gap:10px; margin:30px 0 22px; }
.game-tabs button, .game-instructions > button:not(.button), .direction-pad button, .sudoku-pad button { min-height:44px; border:1px solid #739cac66; background:#102c40; color:#e9f0ed; border-radius:8px; padding:10px 17px; }
.game-tabs button[aria-pressed='true'], #flag-mode[aria-pressed='true'] { background:var(--gold);color:#142430;border-color:var(--gold); }
.game-panel { display:grid;grid-template-columns:1fr 1.2fr;gap:40px;padding:38px;border:1px solid #8bacba55;border-radius:20px;background:linear-gradient(130deg,#102b40e6,#041321e6); }
.game-instructions { min-width:0;display:flex;align-items:flex-start;flex-direction:column;gap:18px; }
.game-instructions h3 { font-size:clamp(28px,4vw,42px); }
.game-instructions p:not(.eyebrow) { font-size:14px;line-height:1.8;color:#b4cbd6;max-width:360px; }
.game-instructions output { color:var(--gold);font-size:15px; }
.game-instructions .button { margin:0; }
.direction-pad, .sudoku-pad { display:flex;flex-wrap:wrap;gap:7px;max-width:340px; }
.direction-pad button { min-width:48px;font-size:22px; }
.sudoku-pad button { min-width:44px;padding:10px; }
.game-board-wrap { min-width:0;align-self:center; }
.play-board { display:grid; gap:5px;width:min(100%,430px);aspect-ratio:1;padding:8px;border-radius:12px;background:#183749;margin:auto;box-shadow:0 15px 40px #0004; }
.board-2048 {grid-template-columns:repeat(4,minmax(0,1fr));touch-action:none;}
.board-mines, .board-sudoku {grid-template-columns:repeat(9,minmax(0,1fr));gap:2px;padding:5px;}
.play-cell { min-width:0;min-height:0;border:0;border-radius:4px;display:grid;place-items:center;padding:0;aspect-ratio:1;background:#315366;color:#f1e6d2;font:600 clamp(12px,2vw,23px)/1 system-ui;user-select:none; }
.tile {font-size:clamp(19px,3vw,36px);background:#d4c6a7;color:#27394a;}
.tile[data-value='0'] {background:#ffffff12;color:transparent;}
.tile[data-value='8'], .tile[data-value='16'], .tile[data-value='32'] {background:#e9ae63;}
.tile[data-value='64'], .tile[data-value='128'], .tile[data-value='256'] {background:#d78060;}
.tile[data-value='512'], .tile[data-value='1024'], .tile[data-value='2048'] {background:#6bc7c8;}
.mine-cell {cursor:pointer;color:#e4c495;font-size:clamp(12px,2vw,21px);}
.mine-cell.revealed {background:#ceddde;color:#193947;}
.sudoku-cell {background:#e2e8de;color:#1b3541;font-size:clamp(13px,1.7vw,22px);font-weight:400;}
.sudoku-cell.given {background:#b4cbd0;color:#102e42;font-weight:800;}
.sudoku-cell.selected {background:#e4c495;}
.sudoku-cell.invalid {background:#e1a19b;color:#57221c;}
.box-right {border-right:2px solid #213e4b;}
.box-bottom {border-bottom:2px solid #213e4b;}
#game-message {min-height:50px;margin:15px auto 0;color:var(--gold);font-size:13px;line-height:1.7;text-align:center;max-width:430px;}
.support-section {border-top:1px solid #7795a738;}
.support-section p:not(.eyebrow), .game-detail p:not(.eyebrow) {margin-top:20px;color:var(--muted);font-size:14px;line-height:1.9;max-width:650px;}
.game-detail {padding-block:45px;border-top:1px solid #7795a725;}
.footer-showcase {scroll-margin-top:105px;}
@media(min-width:1600px) {
.header .header-cta {display:inline-flex;}
.header {padding-inline:max(5%,calc((100vw - 1600px)/2));}
.footer-showcase {grid-template-columns:1fr 1.25fr 1fr;}

}
@media(max-width:1100px) {
html {scroll-padding-top:100px;}
body {padding-top:76px;}
.header:not(.privacy-header) {display:flex;height:76px;min-height:76px;padding:0 5%;gap:12px;}
.header:not(.privacy-header) .brand {display:inline-flex;}
.header .brand img {width:145px;}
.header:not(.privacy-header) .menu-toggle {display:flex;margin-left:auto;flex-direction:column;justify-content:center;gap:6px;width:44px;height:44px;flex-shrink:0;background:#071c2bc2;border:1px solid #d6b67a55;border-radius:8px;padding:12px;}
.menu-toggle span {width:18px;height:1px;background:#e2cd9e;}
.header:not(.privacy-header) #main-nav {display:none;position:absolute;top:75px;left:0;right:0;width:auto;grid-column:auto;grid-row:auto;background:#041421f7;backdrop-filter:blur(20px);padding:18px 5% 24px;border-bottom:1px solid #d6b67a55;gap:4px;}
.header:not(.privacy-header) #main-nav.open {display:flex;flex-direction:column;}
.header:not(.privacy-header) #main-nav a {font-size:15px;width:100%;min-height:46px;padding:10px 14px;text-align:left;justify-content:flex-start;white-space:normal;}
.header:not(.privacy-header) #main-nav a.current {color:var(--gold);border:0;border-left:2px solid var(--gold);}
.header nav a::after {display:none;}
.game-panel {gap:24px;padding:25px;}


}
@media(max-width:760px) {
.game-panel {grid-template-columns:1fr;}
.game-instructions {gap:14px;}
.game-instructions p:not(.eyebrow) {max-width:100%;}
.play-board {width:min(100%,400px);}
.game-board-wrap {margin-top:12px;}
.play-cell {font-size:18px;}
.tile {font-size:28px;}

}
@media(max-width:480px) {
.header:not(.privacy-header) {padding-inline:14px;gap:7px;}
.header .brand img {width:110px;}
.language-switch select {width:118px;}
.game-panel {padding:14px;border-radius:12px;}
.game-tabs {gap:7px;}
.game-tabs button {padding:10px 12px;font-size:12px;}
.play-cell {font-size:14px;}
.tile {font-size:24px;}
.game-name {font-size:20px;}


}
@media(prefers-reduced-motion:reduce) {
html {scroll-behavior:auto;}

}
@media(max-width:480px) {
.tile {font-size:clamp(16px,5vw,22px);}

}
.tile[data-value='16384'], .tile[data-value='32768'], .tile[data-value='65536'] {font-size:16px;}
.footer-showcase { min-height:240px; grid-template-columns:1fr 1.25fr 1.25fr; background:#041421; }
.footer-mission, .footer-platforms { padding-top:28px;padding-bottom:28px; }
.footer-mission { background:linear-gradient(90deg,#041421e8,#04142170); }
.footer-platforms { background:linear-gradient(90deg,#04142150,#041421dd); }
.footer-showcase h2, html:not([lang='en']) .footer-showcase h2 { font-size:22px; }
.footer-mission .eyebrow { color:#e8d7b5; }
.platform-badges { display:flex;flex-wrap:wrap;gap:9px;margin-top:18px; }
.platform-badge { min-height:46px;display:inline-flex;align-items:center;gap:8px;border:1px solid #b0ccdf66;border-radius:5px;background:#020b12d9;color:#f2f2ed;padding:8px 11px;font-size:11px;line-height:1.4; }
.platform-badge svg { width:22px;height:22px;flex-shrink:0; }
.platform-badge strong { display:block;font-size:12px;font-weight:600; }
.platform-badge small { display:block;font-size:9px;color:#c4b28b; }
.platform-pending { cursor:default; }
.browser-badge { border-color:#d7b675; }
.browser-badge:hover { background:#172e3b;border-color:#f4d293; }
@media(min-width:1450px) {
.platform-badges {flex-wrap:nowrap;}
.footer-mission {padding-left:max(30px,calc((100vw - 1400px)/2));}
.footer-platforms {padding-right:max(30px,calc((100vw - 1400px)/2));}

}
@media(max-width:1000px) {
.footer-showcase {grid-template-columns:1fr 1fr;}
.footer-mission, .footer-platforms {background:#04142188;}
.platform-badges {gap:8px;}

}
@media(max-width:480px) {
.footer-showcase {grid-template-columns:1fr;}
.footer-mission, .footer-platforms {background:transparent;}
.platform-badges {gap:8px;}
.platform-badge {flex:1;}
.browser-badge {flex-basis:100%;justify-content:center;}

}
.header { gap:18px; }
.header nav { margin-inline:auto; gap:24px; }
.header .header-cta { display:inline-flex; flex-shrink:0; font-size:11px; padding:12px 20px; min-height:44px; white-space:nowrap; }
.search-toggle { width:40px;height:40px;flex-shrink:0;border:1px solid #8198a52e;border-radius:50%;background:#061d2c80;color:#d5e9ed;display:grid;place-items:center;padding:10px; }
.search-toggle svg { width:20px;height:20px; }
.search-toggle:hover { border-color:var(--gold);color:var(--gold); }
.header-search { position:absolute;top:100%;right:5%;width:min(460px,90vw);display:grid;grid-template-columns:1fr auto;gap:10px;background:#041b2bf5;border:1px solid #d1b37166;border-radius:0 0 12px 12px;padding:20px;box-shadow:0 20px 40px #0006; }
.header-search label { grid-column:1/-1;color:#e7d4af;font-size:12px; }
.header-search input { min-width:0;min-height:44px;background:#0f2c3d;border:1px solid #87b2c577;border-radius:6px;color:white;padding:10px;font:inherit; }
.header-search button { border:1px solid #e5c07d;border-radius:6px;background:var(--gold);color:#172b36;padding:10px;font:inherit;font-size:12px; }
@media(max-width:1300px) {
.header:not(.privacy-header) {display:flex;min-height:76px;height:76px;padding:0 4%;gap:12px;}
body {padding-top:76px;}
.header:not(.privacy-header) .menu-toggle {display:flex;margin-left:auto;flex-direction:column;justify-content:center;gap:6px;width:44px;height:44px;flex-shrink:0;border:1px solid #d6b67a55;border-radius:8px;background:#071c2bc2;padding:12px;}
.header:not(.privacy-header) #main-nav {display:none;position:absolute;top:100%;left:0;right:0;margin:0;width:auto;padding:18px 5%;background:#041421f7;border-bottom:1px solid #d6b67a55;gap:4px;}
.header:not(.privacy-header) #main-nav.open {display:flex;flex-direction:column;}
.header:not(.privacy-header) #main-nav a {min-height:44px;font-size:15px;justify-content:flex-start;width:100%;padding:10px;}
.header nav a::after {display:none;}
.header nav a.current {border-left:2px solid var(--gold);}
.header .brand img {width:145px;}


}
@media(max-width:760px) {
body {padding-top:126px;}
html {scroll-padding-top:150px;}
.header:not(.privacy-header) {display:grid;grid-template-columns:1fr 44px 40px auto;grid-template-rows:70px 48px;min-height:126px;height:126px;gap:0 10px;padding:0 5% 8px;}
.header:not(.privacy-header) .brand {grid-column:1;grid-row:1;}
.header:not(.privacy-header) .menu-toggle {grid-column:2;grid-row:1;}
.header .search-toggle {grid-column:3;grid-row:1;}
.header:not(.privacy-header) .language-switch {grid-column:4;grid-row:1;}
.header:not(.privacy-header) .header-cta {display:inline-flex;grid-column:1/-1;grid-row:2;justify-self:center;min-height:40px;padding:9px 30px;}
.header:not(.privacy-header) #main-nav {top:100%;grid-column:auto;grid-row:auto;}


}
@media(max-width:480px) {
.header:not(.privacy-header) {padding-inline:12px;grid-template-columns:1fr 38px 34px 104px;column-gap:5px;}
.header .brand img {width:94px;}
.header:not(.privacy-header) .menu-toggle {width:38px;padding:9px;}
.search-toggle {width:34px;height:38px;padding:8px;}
.language-switch select {width:104px;font-size:10px;padding-left:27px;}


}
body.game-is-open { overflow:hidden; }
.game-dialog { position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:radial-gradient(ellipse at 80% 20%,#153f52,#061522 65%);color:var(--text);overflow:auto;overscroll-behavior:contain; }
.game-dialog::backdrop {background:#020b13e8;}
.game-dialog-bar {position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:16px max(22px,4vw);border-bottom:1px solid #cba96a44;background:#061522f5;backdrop-filter:blur(15px);}
.game-dialog-bar > span {font-size:11px;letter-spacing:2px;color:var(--gold);}
.game-dialog-bar > div {display:flex;gap:10px;}
.game-dialog-bar button {min-height:44px;padding:10px 16px;border:1px solid #8ba9b055;border-radius:8px;background:#0d2a3c;color:#e9ddc4;font:inherit;font-size:12px;}
.game-dialog-content {max-width:1180px;margin:auto;padding:20px 4vw 35px;}
.game-dialog .game-tabs {margin:0 0 18px;}
.game-dialog .game-panel {grid-template-columns:.8fr 1.2fr;}
.game-dialog .play-board {width:min(100%,calc(100dvh - 230px),560px);min-width:240px;}
.game-launchers {display:flex;flex-wrap:wrap;gap:15px;margin-top:30px;}
.game-launchers .button {margin:0;border:1px solid #e3c187;}
@media(max-width:760px) {
.game-dialog-bar {padding:10px 16px;gap:10px;}
.game-dialog-bar > span {font-size:9px;letter-spacing:1px;}
.game-dialog-bar button {font-size:11px;padding:9px 11px;}
.game-dialog-content {padding:14px 16px 24px;}
.game-dialog .game-panel {grid-template-columns:1fr;padding:16px;gap:16px;}
.game-dialog .game-instructions {display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center;}
.game-dialog .game-instructions > .eyebrow {display:none;}
.game-dialog .game-instructions h3 {font-size:26px;}
.game-dialog #game-hint {grid-column:1/-1;grid-row:2;font-size:12px;line-height:1.6;}
.game-dialog #game-score {grid-column:2;grid-row:1;text-align:right;font-size:13px;}
.game-dialog .direction-pad, .game-dialog .sudoku-pad {grid-column:1/-1;}
.game-dialog .play-board {width:min(100%,430px);min-width:0;}
.game-dialog #game-message {min-height:26px;}


}
@media(max-width:380px) {
.game-dialog-bar > span {display:none;}
.game-dialog-bar > div {width:100%;justify-content:space-between;}
.game-dialog .game-panel {padding:10px;}
.game-dialog-content {padding-inline:10px;}

}
@media(max-width:760px) {
.game-dialog .play-board {width:min(100%,max(200px,calc(100dvh - 410px)),430px);}
.game-dialog .game-board-wrap {margin-top:0;}
.game-dialog .game-instructions .button {min-height:40px;padding:10px 15px;justify-self:start;}
.game-dialog .direction-pad button {min-height:40px;min-width:44px;padding:6px 12px;}
.game-dialog #game-hint {margin:0;}
.game-dialog #game-message {margin-top:8px;min-height:20px;font-size:11px;}


}
.game-dialog:not([open]) { display:none !important; }
.game-dialog[open] { position:fixed;inset:0;z-index:1000; }
.game-dialog:fullscreen { width:100vw;height:100dvh; }

