:root{color-scheme:dark;--bg:#0b1020;--bg2:#0e1428;--panel:#141d32;--panel2:#1b2540;--panel3:#25304b;--line:#2a3651;--txt:#f5f6ff;--muted:#9ca9c7;--purple:#ab8dff;--teal:#56decc;--yellow:#ffca78;--shadow:0 22px 70px rgba(0,0,0,.22)}
:root[data-theme=light]{color-scheme:light;--bg:#f3f5ff;--bg2:#eff2fa;--panel:#fff;--panel2:#f2f4ff;--panel3:#e8ecfb;--line:#d9dff0;--txt:#192441;--muted:#586984;--purple:#7354cc;--teal:#008a80;--yellow:#8a5817;--shadow:0 20px 65px rgba(38,50,98,.09)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:300px;background:var(--bg);color:var(--txt);font:400 15px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}a{color:inherit}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.48;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:3px solid var(--teal);outline-offset:3px}button,input{touch-action:manipulation}img{display:block;max-width:100%}::selection{background:#ad87fa;color:#111325}.site-bg{pointer-events:none;position:absolute;inset:0 0 auto;height:680px;z-index:-1;background:radial-gradient(ellipse 49% 38% at 10% 0%,rgba(143,96,255,.15),transparent 100%),radial-gradient(ellipse 45% 30% at 80% 11%,rgba(34,211,185,.12),transparent 100%)}.skip-link{position:fixed;z-index:60;top:-100px;left:12px;padding:12px;background:#fff;color:#000}.skip-link:focus{top:12px}.site-header{position:sticky;top:0;z-index:20;border-bottom:1px solid color-mix(in srgb,var(--line),transparent 22%);background:color-mix(in srgb,var(--bg),transparent 6%);backdrop-filter:blur(18px)}.header-inner{max-width:1340px;margin:auto;min-height:80px;padding:12px clamp(16px,3.1vw,42px);display:flex;align-items:center;gap:clamp(16px,3vw,44px)}.logo{display:flex;gap:12px;align-items:center;text-decoration:none;min-width:172px}.logo-mark{width:48px;height:48px;display:grid;place-items:center;color:var(--teal);border-radius:16px;background:linear-gradient(140deg,rgba(144,106,255,.27),rgba(61,214,207,.22));box-shadow:inset 0 0 0 1px rgba(141,113,255,.29)}.logo-text{font-size:22px;line-height:1;font-weight:900;letter-spacing:-1.1px}.logo-text>span,.footer strong>span{color:var(--teal)}.logo-text small{display:block;font-size:10px;font-weight:650;letter-spacing:1.8px;text-transform:uppercase;margin-top:5px;color:var(--muted)}.header-nav{display:flex;gap:4px;margin-left:auto}.header-nav a{display:inline-flex;text-decoration:none;color:var(--muted);font-weight:700;border-radius:12px;padding:9px 16px;transition:.2s}.header-nav a:hover,.header-nav a.active{color:var(--txt);background:var(--panel2)}.header-tools{display:flex;align-items:center;gap:8px}.header-pill,.header-icon{border:1px solid var(--line);color:var(--txt);background:var(--panel);height:40px;display:inline-grid;place-items:center;font-weight:750}.header-pill{border-radius:12px;padding:0 13px;font-size:13px}.header-icon{width:40px;border-radius:12px;font-size:19px}.header-pill:hover,.header-icon:hover{background:var(--panel2);border-color:var(--purple)}.install-button{background:var(--teal);color:var(--bg);border-color:transparent}.app-shell{max-width:1340px;min-height:600px;margin:auto;padding:clamp(22px,3.3vw,46px) clamp(16px,3.1vw,42px) 44px}.boot-loading{padding:80px 20px;text-align:center;color:var(--muted)}.eyebrow{text-transform:uppercase;font-size:11px;letter-spacing:2px;color:var(--teal);font-weight:850}.hero{position:relative;border-radius:30px;overflow:hidden;min-height:338px;border:1px solid rgba(152,122,255,.24);background:radial-gradient(circle at 82% 25%,rgba(82,231,206,.16),transparent 30%),radial-gradient(circle at 68% 65%,rgba(145,91,255,.33),transparent 44%),linear-gradient(130deg,#202044 0%,#141b37 64%,#183b46 100%);padding:clamp(28px,5vw,62px);display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:12px;isolation:isolate}.hero:before{content:"";position:absolute;inset:0;opacity:.16;background-image:radial-gradient(#e9deff 1px,transparent 1px);background-size:22px 22px;mask-image:linear-gradient(90deg,transparent,#000)}.hero-copy{position:relative;z-index:2}.hero h1{max-width:690px;margin:15px 0 16px;font-size:clamp(34px,4.9vw,66px);line-height:1.06;letter-spacing:-.055em;font-weight:850;color:#faf9ff}.hero h1 span{background:linear-gradient(90deg,#b998ff 0%,#60e1cf 100%);-webkit-background-clip:text;background-clip:text;color:transparent}.hero p{max-width:530px;margin:0 0 25px;font-size:clamp(14px,1.4vw,17px);color:#cad1ec}.hero-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.btn-primary,.btn-secondary{border:0;border-radius:13px;padding:12px 20px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:11px;text-decoration:none;min-height:46px}.btn-primary{background:linear-gradient(110deg,#ac89fb,#6be0d6);color:#15142d;box-shadow:0 8px 30px rgba(161,119,239,.2)}.btn-primary:hover{filter:brightness(1.06)}.btn-secondary{background:rgba(255,255,255,.09);color:#f7f6ff;border:1px solid rgba(255,255,255,.13)}.hero-stat{display:flex;gap:22px;align-items:center;margin-top:28px;color:#c9d2e7;font-size:13px}.hero-stat strong{color:#fff;font-size:16px;margin-right:4px}.hero-visual{position:relative;z-index:1;min-height:242px;display:flex;align-items:center;justify-content:center;transform:rotate(-7deg)}.hero-board{width:250px;height:218px;position:relative;border-radius:27px;border:1px solid rgba(255,255,255,.25);box-shadow:0 35px 65px rgba(0,0,0,.38),inset 0 0 30px rgba(97,112,225,.12);background:linear-gradient(160deg,#282c5a,#171c35);display:grid;place-items:center}.hero-pad{width:115px;height:115px;border-radius:32px;background:linear-gradient(145deg,#7a5ee9,#42d2bd);display:grid;place-items:center;font-size:65px;box-shadow:0 12px 20px #0005}.hero-small{position:absolute;border-radius:14px;padding:9px 13px;background:#292448;box-shadow:0 8px 28px #0005;color:#f2ebff;font-size:15px;font-weight:800}.hero-small.top{right:-28px;top:-25px;transform:rotate(12deg)}.hero-small.bottom{left:-39px;bottom:-21px;transform:rotate(-4deg)}.section-head{display:flex;align-items:end;justify-content:space-between;gap:14px;margin:41px 0 20px}.section-title h2{font-size:clamp(23px,2.6vw,31px);letter-spacing:-.04em;line-height:1.2;margin:4px 0 4px;font-weight:850}.section-title p{margin:0;color:var(--muted);font-size:14px}.listing-tools{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px;flex-wrap:wrap}.filters{display:flex;gap:6px;flex-wrap:wrap}.filter{padding:8px 14px;border-radius:11px;border:1px solid transparent;background:var(--panel);color:var(--muted);font-size:13px;font-weight:750}.filter:hover{background:var(--panel2)}.filter.active{background:color-mix(in srgb,var(--purple),transparent 82%);border-color:color-mix(in srgb,var(--purple),transparent 52%);color:var(--txt)}.search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:12px;max-width:260px;min-width:210px;padding:0 12px;background:var(--panel);color:var(--muted)}.search input{width:100%;min-height:39px;outline:0;background:transparent;border:0;color:var(--txt);font-size:13px}.search:focus-within{border-color:var(--purple)}.search input::placeholder{color:var(--muted)}.games-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.game-card{position:relative;border:1px solid var(--line);border-radius:20px;background:var(--panel);overflow:hidden;transition:transform .18s,border-color .18s,box-shadow .18s;min-width:0}.game-card:hover{transform:translateY(-4px);border-color:color-mix(in srgb,var(--purple),transparent 20%);box-shadow:var(--shadow)}.game-cover{display:block;aspect-ratio:1.57;position:relative;overflow:hidden;background:var(--panel2)}.game-cover img{width:100%;height:100%;object-fit:cover;transition:transform .3s}.game-card:hover .game-cover img{transform:scale(1.055)}.card-label{position:absolute;left:13px;top:12px;background:rgba(5,9,23,.64);border:1px solid rgba(255,255,255,.18);color:#fff;font-weight:700;font-size:11px;border-radius:8px;padding:4px 9px;backdrop-filter:blur(8px)}.fav-btn{position:absolute;right:11px;top:11px;width:34px;height:34px;display:grid;place-items:center;border-radius:10px;color:white;background:rgba(8,12,28,.58);border:1px solid rgba(255,255,255,.25);font-size:20px}.fav-btn[aria-pressed=true]{color:#ffd26f}.game-card-content{padding:16px}.game-card h3{margin:0 0 4px;font-size:17px;font-weight:820;letter-spacing:-.025em}.game-card p{margin:0;min-height:40px;color:var(--muted);font-size:13px;line-height:1.45}.game-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:15px}.score-small{color:var(--muted);font-size:12px;white-space:nowrap}.score-small strong{color:var(--txt);font-weight:850}.card-play{display:inline-flex;padding:8px 13px;gap:7px;align-items:center;background:color-mix(in srgb,var(--purple),transparent 80%);border-radius:10px;text-decoration:none;font-size:13px;font-weight:850;color:var(--txt)}.card-play:hover{background:var(--purple);color:var(--bg)}.empty{text-align:center;padding:75px 20px;border:1px dashed var(--line);background:var(--panel);border-radius:20px;color:var(--muted)}.empty strong{display:block;color:var(--txt);font-size:20px;margin-bottom:8px}.why-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:29px}.why{padding:21px;background:var(--panel);border:1px solid var(--line);border-radius:16px}.why b{display:block;font-size:14px;margin:10px 0 5px}.why p{color:var(--muted);font-size:13px;margin:0}.why-ico{height:37px;width:37px;border-radius:11px;display:grid;place-items:center;background:var(--panel2);font-size:21px}.game-top{display:flex;justify-content:space-between;gap:15px;align-items:start;margin:0 0 22px}.back-link{display:inline-flex;align-items:center;gap:7px;color:var(--muted);text-decoration:none;font-size:13px;font-weight:750}.back-link:hover{color:var(--txt)}.game-title{font-size:clamp(28px,3.4vw,40px);margin:12px 0 4px;letter-spacing:-.04em;line-height:1.1}.game-summary{color:var(--muted);margin:0}.game-scoreline{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.score-pill{padding:8px 14px;border-radius:12px;border:1px solid var(--line);background:var(--panel);color:var(--muted);font-size:12px}.score-pill strong{display:block;color:var(--txt);font-size:20px;line-height:1.3}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 275px;align-items:start;gap:19px}.game-panel{min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:23px;padding:18px;box-shadow:var(--shadow)}.game-area{min-width:0}.game-side{display:grid;gap:16px}.side-card{background:var(--panel);border:1px solid var(--line);border-radius:19px;padding:20px}.side-card h3{font-size:15px;margin:0 0 13px}.side-card p{margin:0;color:var(--muted);font-size:13px}.side-card .side-body{font-size:13px;color:var(--muted);margin-bottom:18px}.side-card button{width:100%}.stage-wrap{margin:auto;width:100%;max-width:750px;position:relative;border-radius:15px;overflow:hidden;background:#0f1830;touch-action:none;user-select:none}.stage-wrap canvas{display:block;width:100%;height:auto;touch-action:none}.stage-wide{max-width:760px}.stage-square{max-width:600px}.stage-landscape{max-width:760px}.stage-portrait{max-width:410px}.control-bar{margin-top:14px;display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap}.ctrl-btn{display:inline-grid;place-items:center;min-width:55px;min-height:48px;padding:8px 13px;background:var(--panel2);border:1px solid var(--line);color:var(--txt);border-radius:13px;font-weight:850;font-size:16px;touch-action:none;user-select:none;-webkit-user-select:none}.ctrl-btn:hover,.ctrl-btn:active,.ctrl-btn.pressed{background:color-mix(in srgb,var(--purple),transparent 60%);border-color:var(--purple)}.ctrl-btn.primary{background:var(--purple);color:#111425;border-color:var(--purple)}.ctrl-spacer{width:12px}.game-status{margin:12px auto 0;padding:9px 13px;text-align:center;color:var(--muted);font-size:13px;max-width:760px;border-radius:9px}.game-status strong{color:var(--txt)}.hud-inset{display:flex;justify-content:space-between;gap:12px;margin:0 auto 12px;font-size:14px;color:var(--muted);max-width:760px;flex-wrap:wrap}.hud-inset b{color:var(--txt)}.hud-inset .hud-value{font-weight:850;color:var(--teal)}.help-note{color:var(--muted);font-size:12px;text-align:center;margin:10px 0 0}.center-controls{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap}.game-menu{border-radius:12px;border:1px solid var(--line);color:var(--txt);background:var(--panel2);padding:10px 14px;font-weight:750}.panel-title{font-weight:850;font-size:16px;margin:0 0 12px}.button-wide{border:1px solid var(--line);background:var(--panel2);color:var(--txt);font-weight:750;padding:11px 16px;border-radius:11px}.button-wide:hover{background:var(--panel3)}.board-info{padding:14px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.game-over-box{border:1px solid rgba(255,255,255,.22);border-radius:16px;background:rgba(10,14,29,.87);color:#fff;padding:24px;max-width:300px;text-align:center}.game-over-box h3{font-size:25px;margin:0 0 6px}.game-over-box p{margin:0 0 17px;color:#cdd5e9}.overlay-center{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(7,9,22,.52);z-index:5}.overlay-center[hidden]{display:none}.card-table{display:flex;flex-direction:column;min-height:400px;border-radius:16px;padding:14px;background:radial-gradient(circle at 48% 41%,#174638,#0d2d2d);border:3px solid #31675b;color:#ecfff8;gap:8px}.playing-cards{display:flex;flex-wrap:wrap;justify-content:center;gap:5px}.playing-card{width:56px;height:78px;border:2px solid #fff;border-radius:9px;background:#fcfdfb;color:#111f3a;font-weight:850;display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:23px;line-height:1.06;box-shadow:0 5px 10px #0003}.playing-card.red{color:#cb334c}.playing-card:disabled{opacity:.42}.playing-card.selected{transform:translateY(-8px);border-color:#ffde82;box-shadow:0 0 0 3px #ffdc80aa}.playing-card.back{background:repeating-linear-gradient(45deg,#4461ab,#4461ab 6px,#334784 6px,#334784 12px);border-color:#e6efff}.card-top{text-align:center;font-weight:800;min-height:35px}.card-top small{font-weight:550}.card-middle{display:flex;align-items:center;gap:13px;justify-content:center;min-height:114px;flex-wrap:wrap}.card-bottom{margin-top:auto}.card-banner{text-align:center;font-size:13px;color:#d3f3e5;min-height:25px}.card-action{background:#e0eafa;color:#142b29;border:0;border-radius:10px;padding:10px 14px;font-weight:850}.card-action:disabled{opacity:.4}.chess-wrap{width:100%;max-width:580px;margin:auto}.chessboard{display:grid;grid-template-columns:repeat(8,1fr);aspect-ratio:1;width:100%;border:5px solid #343b58;border-radius:10px;overflow:hidden;touch-action:manipulation;box-shadow:0 12px 36px #0002}.chess-cell{position:relative;min-width:0;min-height:0;border:0;border-radius:0;display:grid;place-items:center;font-size:clamp(19px,4vw,48px);line-height:1;padding:0;text-shadow:0 2px 3px #0004;user-select:none}.chess-cell.light{background:#e4e1c9;color:#202538}.chess-cell.dark{background:#6f88aa;color:#202538}.chess-cell.selected{background:#aad788}.chess-cell.legal:after{content:"";position:absolute;width:27%;height:27%;background:#194e4b99;border-radius:100%}.chess-cell.legal.has-piece:after{width:78%;height:78%;border:4px solid #1c7970;background:transparent;pointer-events:none}.chess-cell.in-check{background:#f28383}.chess-cell.white-piece{color:#fff;text-shadow:0 1px 2px #121628,0 2px 2px #171923,1px 0 #263d5d,-1px 0 #263d5d}.chess-cell.black-piece{color:#111827;text-shadow:0 1px 1px #fff9}.farm-wrap{max-width:760px;margin:auto}.farm-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:5px;background:#365f49;padding:8px;border:4px solid #629b65;border-radius:17px}.farm-tile{aspect-ratio:1;border:2px solid #53734c;border-radius:9px;background:#9c734f;display:grid;place-items:center;font-size:clamp(19px,3vw,33px);padding:0;position:relative}.farm-tile:nth-child(odd){background:#a67c53}.farm-tile.planted{background:#658d4c}.farm-tile.ready{background:#9ba54d}.farm-tile.building{background:#a8c387}.farm-tile.selected{outline:3px solid #fcdf82;outline-offset:-3px}.farm-tile small{position:absolute;bottom:0;right:3px;font-size:10px;font-weight:800;color:#fff;text-shadow:0 1px 3px #000}.farm-shop{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin-top:13px}.farm-shop button{background:var(--panel2);border:1px solid var(--line);border-radius:12px;color:var(--txt);padding:8px 11px;font-size:13px;font-weight:750}.farm-shop button.active{border-color:var(--teal);background:color-mix(in srgb,var(--teal),transparent 80%)}.farm-shop button span{display:block;font-size:11px;color:var(--muted)}.promo-wrap{max-width:1340px;margin:0 auto;padding:0 clamp(16px,3.1vw,42px) 37px}.promo{isolation:isolate;position:relative;overflow:hidden;border-radius:25px;background:radial-gradient(circle at 93% 17%,rgba(99,233,209,.2),transparent 30%),linear-gradient(108deg,#231841,#222048 53%,#123b47);border:1px solid #665aa5;padding:clamp(26px,4vw,46px);display:flex;justify-content:space-between;align-items:center;gap:34px}.promo:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.23;background:linear-gradient(135deg,transparent 45%,#a7a5ff22 45.5%,transparent 46.1%);background-size:38px 38px;z-index:-1}.promo-copy{max-width:750px}.status-dot{display:inline-block;width:7px;height:7px;margin-right:7px;background:#74efc7;border-radius:100%;box-shadow:0 0 0 4px #2a8e7c55}.promo h2{color:#fff;letter-spacing:-.04em;font-size:clamp(25px,3.3vw,39px);margin:8px 0 10px;line-height:1.19}.promo h2 em{font-style:normal;color:#7bedda}.promo p{color:#cdd2e6;font-size:14px;margin:0;max-width:630px}.promo-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:19px}.promo-tags span{font-weight:700;font-size:11px;color:#e8e9fb;background:#ffffff12;border:1px solid #ffffff28;border-radius:7px;padding:6px 10px}.promo-link{position:relative;white-space:nowrap;display:flex;align-items:center;gap:20px;padding:14px 17px;border-radius:12px;color:#132537;background:#7ce4d9;text-decoration:none;font-size:13px;font-weight:850}.promo-link:hover{background:#adfff1}.promo-link>span:last-child{font-size:20px}.promo-orb{position:absolute;z-index:-1;right:-80px;top:-130px;width:260px;height:260px;border-radius:50%;border:48px solid #62e6cc12}.footer{border-top:1px solid var(--line)}.footer-inner{max-width:1340px;margin:auto;padding:26px clamp(16px,3.1vw,42px) 39px;display:flex;justify-content:space-between;gap:24px;color:var(--muted);font-size:12px}.footer strong{font-size:19px;color:var(--txt);letter-spacing:-.05em}.footer p{margin:4px 0 0}.footer-right{text-align:right;display:grid;gap:4px}.footer a{text-decoration:none;color:var(--teal)}.toast{position:fixed;bottom:20px;left:50%;transform:translate(-50%,20px);background:#f6f7ff;color:#171831;padding:11px 18px;border-radius:11px;box-shadow:0 10px 30px #0005;pointer-events:none;opacity:0;transition:.2s;z-index:60;font-weight:750;font-size:13px}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1050px){.games-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.game-layout{grid-template-columns:minmax(0,1fr) 225px}.header-inner{gap:16px}.hero-visual{transform:scale(.85) rotate(-7deg)}}
@media(max-width:760px){.header-inner{min-height:69px;gap:9px}.logo{min-width:auto}.logo-mark{width:40px;height:40px;border-radius:12px}.logo-text{font-size:19px}.logo-text small{font-size:8px}.header-nav{display:none}.header-tools{margin-left:auto;gap:5px}.header-icon{width:36px;height:36px}.header-pill{height:36px;padding:0 9px}.games-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hero{grid-template-columns:1fr;min-height:0;padding:32px}.hero-visual{display:none}.game-layout{grid-template-columns:minmax(0,1fr)}.game-side{grid-template-columns:repeat(2,minmax(0,1fr))}.game-top{flex-wrap:wrap}.game-scoreline{width:100%}.why-row{grid-template-columns:1fr}.promo{flex-direction:column;align-items:flex-start;gap:22px}.footer-inner{flex-direction:column}.footer-right{text-align:left}.section-head{margin-top:30px}.listing-tools{align-items:stretch}.search{max-width:100%;width:100%}.game-panel{padding:10px}.chess-cell{font-size:clamp(18px,7vw,46px)}}
@media(max-width:420px){.app-shell{padding:20px 12px 35px}.promo-wrap{padding:0 12px 25px}.header-inner{padding:10px 12px}.hero{padding:26px 21px;border-radius:20px}.hero h1{font-size:35px}.hero-stat{gap:12px;flex-wrap:wrap}.games-grid{gap:10px}.game-card{border-radius:14px}.game-card-content{padding:11px}.game-card h3{font-size:15px}.game-card p{font-size:12px;min-height:52px}.card-play{padding:7px 9px}.score-small{font-size:11px}.filter{padding:7px 10px}.game-side{grid-template-columns:1fr}.playing-card{width:45px;height:69px;font-size:19px}.card-table{min-height:370px}.farm-grid{gap:3px;padding:4px}.farm-tile{border-width:1px;border-radius:5px;font-size:21px}.control-bar{gap:5px}.ctrl-btn{min-width:49px;min-height:44px;padding:7px 9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* v2 portal and card-board enhancements */
#games-list{scroll-margin-top:98px}.browse-page{min-width:0}.count-games{font-weight:850;font-size:13px;color:var(--teal);border:1px solid var(--line);background:var(--panel);padding:7px 12px;border-radius:11px;white-space:nowrap}.lang-group{display:block}.lang-select{height:40px;width:158px;max-width:25vw;border:1px solid var(--line);color:var(--txt);border-radius:12px;background:var(--panel);padding:0 25px 0 10px;outline-offset:3px;font-weight:700;font-size:12px}.lang-select option{background:var(--panel);color:var(--txt)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.game-list-section{margin-top:12px}.game-play-view{min-height:565px}.loading-game{text-align:center;background:var(--panel2);border-radius:12px;padding:14px;margin-bottom:9px;color:var(--muted);font-weight:750;font-size:13px}.error-game{text-align:center;margin-bottom:12px;padding:14px;background:#90372d26;color:#e7968c;border:1px solid #c7686844;border-radius:12px}.legacy-notice{position:absolute;z-index:3;top:5px;left:50%;transform:translateX(-50%);white-space:normal;max-width:80%;text-align:center;padding:7px 14px;color:#fffbd9;background:#264c48e8;border-radius:10px;font-size:14px;font-weight:850;pointer-events:none;box-shadow:0 6px 16px #0005}.legacy-notice[hidden]{display:none}.legacy-stage[hidden],.legacy-controls[hidden]{display:none}.legacy-controls button[aria-pressed="true"]{background:var(--teal);color:var(--bg);border-color:transparent}.legacy-stage{background:#c4cdb8}.legacy-dom{min-width:0}.legacy-dom[hidden]{display:none}
/* Authentic-inspired Latvian Zole table with touch-optimised original card design. */
.zole-table{overflow:hidden;border-radius:21px;background:#10283a;color:#f1f8ef;box-shadow:inset 0 0 0 2px #57716c,0 12px 38px #0003}.z-top{padding:13px 19px;background:linear-gradient(110deg,#183b44,#163240);display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12px;font-weight:720;color:#d8ede7;border-bottom:1px solid #ffffff19}.z-top span{color:#f9d58c}.z-opponents{display:flex;justify-content:space-between;gap:11px;padding:14px 18px 2px}.z-opponent{flex:1;min-width:0}.z-op-name{font-weight:850;font-size:13px;display:flex;justify-content:space-between;gap:7px}.z-op-name span{font-weight:550;color:#b7d5cb}.z-backs{display:flex;padding:7px 0 2px;min-height:40px}.z-backs i{font-size:15px;font-style:normal;display:grid;place-items:center;width:21px;height:29px;background:repeating-linear-gradient(45deg,#5070ac,#5070ac 4px,#384e8a 4px,#384e8a 8px);margin-left:-6px;border-radius:4px;border:1px solid #d9e0e5;color:#f9e4a8;box-shadow:0 1px 4px #001a}.z-backs i:first-child{margin-left:0}.z-felt{position:relative;margin:5px 15px;padding:8px 12px;min-height:170px;border:2px solid #4d997c;border-radius:45% / 27%;background:radial-gradient(ellipse at 49% 45%,#1d8069,#135544 78%);box-shadow:inset 0 11px 26px #002e1d55,0 5px 14px #0003}.z-felt-label{text-align:center;color:#aef1cf;font-size:11px;font-weight:750;letter-spacing:.7px}.z-trick{display:flex;gap:14px;justify-content:center;align-items:center;flex-wrap:wrap;min-height:127px;padding:8px 0}.z-played{display:flex;flex-direction:column;align-items:center;gap:2px}.z-played>span{font-size:10px;color:#b7e6d5}.z-empty{font-size:44px;color:#ffffff3b;letter-spacing:13px}.z-msg{min-height:35px;margin:9px 15px 5px;text-align:center;color:#fde3a8;font-size:13px;font-weight:750}.z-hand-label{padding:6px 16px;color:#d7ece9;font-weight:850;font-size:12px}.z-hand{display:flex;align-items:center;justify-content:center;gap:3px;overflow-x:auto;padding:5px 9px 19px;scrollbar-width:thin;scrollbar-color:#579f82 transparent}.z-card{position:relative;min-width:0;flex:0 1 63px;width:63px;height:91px;border:2px solid #e4dfcb;border-radius:10px;color:#153245;background:linear-gradient(157deg,#fff,#edf1e8);display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:6px 3px;box-shadow:0 5px 10px #0005;transition:transform .15s ease,box-shadow .15s ease}.z-card small{font-size:13px;font-weight:950;line-height:1}.z-card strong{font-size:30px;line-height:1}.z-card.red{color:#c73352}.z-card.selected{transform:translateY(-12px);border-color:#ffdd7e;box-shadow:0 0 0 3px #ffdc7e77,0 8px 14px #0006}.z-card:disabled{opacity:.49;cursor:not-allowed}.z-card.face{width:57px;height:83px;flex:none}.z-card.face strong{font-size:24px}.z-action-bar{display:flex;justify-content:center;gap:8px;align-items:center;flex-wrap:wrap;padding:13px 4px}.z-button{border:1px solid #54ad93;border-radius:10px;background:#1a614e;color:#f4fff4;padding:10px 14px;min-height:44px;font-size:13px;font-weight:850}.z-button:hover{background:#237d63}.z-button:disabled{opacity:.45}.z-result{font-size:13px;color:var(--teal)}.z-hint{color:var(--muted);font-size:12px}.legacy-dom .zole-table{width:100%}
@media (max-width:760px){.lang-select{max-width:33vw;width:139px}.game-layout{gap:12px}.z-top{padding:9px 11px}.z-opponents{padding:10px 13px 2px}.z-felt{margin:4px 7px}.z-card{flex-basis:45px;height:72px;border-radius:7px}.z-card strong{font-size:22px}.z-card small{font-size:10px}.z-hand{gap:2px;padding:5px 4px 14px}.z-card.face{width:45px;height:67px}.game-play-view .game-layout{display:flex;flex-direction:column}.game-play-view .game-panel,.game-play-view .game-side{width:100%}.game-play-view .game-side{display:grid;grid-template-columns:1fr 1fr}}
@media (max-width:480px){.header-tools{gap:4px}.header-inner{padding:8px 10px}.logo-mark{width:35px;height:35px}.logo-text{font-size:17px}.logo-text small{letter-spacing:.8px;font-size:7px}.header-icon{width:34px;height:34px}.lang-select{max-width:36vw;width:124px;height:34px;padding-left:6px;font-size:11px}.game-play-view .game-side{grid-template-columns:1fr}.z-op-name{font-size:10px}.z-op-name span{font-size:10px}.z-card{flex-basis:35px;height:63px;padding:4px 2px}.z-card strong{font-size:19px}.z-card small{font-size:9px}.z-empty{font-size:30px;letter-spacing:5px}.z-felt{min-height:143px}.z-trick{min-height:101px}.z-msg{font-size:12px}.z-button{padding:8px 12px}.game-title{font-size:28px}.game-over-box{padding:18px}.hero h1{font-size:34px}.hero-stat{font-size:12px}.count-games{display:none}}
/* v2.1: stable chess geometry, accessible help and tactile controls. */
.chessboard{
  grid-template-columns:repeat(8,minmax(0,1fr));
  grid-template-rows:repeat(8,minmax(0,1fr));
  contain:layout paint; aspect-ratio:1 / 1;
  border:6px solid #3f5170;border-radius:15px;
  box-shadow:0 10px 26px #0004,inset 0 0 0 1px #aab8c644;
}
.chess-cell{display:flex;justify-content:center;align-items:center;width:100%;height:100%;min-width:0;min-height:0;box-shadow:none;transition:background-color .12s ease;cursor:pointer;overflow:hidden}
.chess-piece{display:block;line-height:1;transform:translateZ(0);font-family:"DejaVu Sans","Segoe UI Symbol","Apple Symbols",serif;font-variant-emoji:text;font-size:clamp(22px,3.5vw,44px);pointer-events:none;will-change:auto}
.chess-cell.last-from:not(.selected){box-shadow:inset 0 0 0 999px #f8d98126}
.chess-cell.last-to:not(.selected){box-shadow:inset 0 0 0 999px #d2b45e45}
.chess-cell.legal:after{pointer-events:none}
.chess-cell:focus{outline:none;box-shadow:inset 0 0 0 3px #ffffffb0}
.chess-cell.selected:focus{box-shadow:inset 0 0 0 3px #214e40}
.game-help-trigger{background:linear-gradient(140deg,#36426a,#1a4150);color:#effff8;border:1px solid #7adbcf66;padding:11px 15px;border-radius:12px;font-weight:800;white-space:nowrap}
.game-help-trigger:hover,.game-help-trigger:focus-visible{border-color:#8effe6;background:#255065}
.game-scoreline{flex-wrap:wrap;gap:9px}
.game-scoreline .btn-primary{white-space:nowrap}
.help-wide{border-color:color-mix(in srgb,var(--teal),transparent 50%);background:color-mix(in srgb,var(--teal),var(--panel2) 86%)}
.header-icon.sound-on{color:#b6fff0;border-color:#59d9cba3;background:color-mix(in srgb,var(--teal),var(--panel) 85%)}
.header-icon.sound-off{opacity:.86}
.logo-mark{overflow:hidden;box-shadow:0 8px 28px #786cec30,inset 0 0 0 1px #a1a9ff44}
.logo-mark img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.help-modal-backdrop{position:fixed;z-index:200;inset:0;padding:18px;display:flex;align-items:center;justify-content:center;background:rgba(5,9,21,.75);backdrop-filter:blur(9px);overscroll-behavior:contain;animation:modal-fade .17s ease-out}
.help-modal{width:min(100%,620px);max-height:min(90vh,790px);overflow:auto;overscroll-behavior:contain;box-shadow:0 30px 100px #000a;border:1px solid #99bdce5a;border-radius:26px;background:radial-gradient(circle at 96% 0%,#2d52636b,transparent 40%),linear-gradient(155deg,#1c2740,#101b32);color:#f5f6ff}
.help-modal-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding:28px 30px 22px;border-bottom:1px solid #ffffff22}
.help-modal-head h2{font-weight:850;font-size:clamp(24px,4vw,32px);line-height:1.2;letter-spacing:-.03em;margin:8px 0 0}
.help-modal-close{width:41px;height:41px;flex:0 0 41px;border:1px solid #789eaa60;background:#ffffff0e;color:#fff;border-radius:12px;font-weight:850;font-size:16px}
.help-modal-close:hover{background:#ffffff25}
.help-modal-content{padding:25px 30px 18px}
.help-rule-title{font-size:13px;text-transform:uppercase;letter-spacing:1px;font-weight:850;color:#92f0dc}
.help-step-list{list-style:none;padding:0;margin:19px 0 20px;display:grid;gap:17px}
.help-step-list li{display:flex;align-items:flex-start;gap:14px;color:#edf2fb;font-size:15px;line-height:1.6}
.help-step-n{min-width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:linear-gradient(150deg,#6b5dac,#377f8f);color:#fff;font-weight:900;font-size:12px}
.help-key-row{display:flex;align-items:center;gap:14px;padding:15px;border-radius:14px;background:#ffffff0c;border:1px solid #ffffff20}
.help-key-row>span{font-size:21px}.help-key-row code{font-family:ui-monospace,Consolas,monospace;letter-spacing:.02em;font-size:13px;white-space:normal;word-break:break-word;color:#afece0}
.help-pause{margin:16px 0 0;color:#b8c5d4;font-size:12px}
.help-modal-bottom{padding:13px 30px 27px;display:flex;justify-content:flex-end}
.help-modal-bottom .btn-primary{min-width:153px}
@keyframes modal-fade{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
.darts-announcement{min-height:42px;padding:10px 12px;color:var(--txt);font-weight:700;background:color-mix(in srgb,var(--panel2),transparent 20%);margin:14px auto}
.darts-difficulty{display:flex;gap:7px;justify-content:center;flex-wrap:wrap;margin:9px auto 12px}
.darts-mode{background:var(--panel2);color:var(--txt);border:1px solid var(--line);border-radius:11px;padding:8px 14px;font-size:12px;font-weight:800}
.darts-mode[aria-pressed=true]{background:linear-gradient(125deg,#a08afd,#67ddd3);color:#101c31;border-color:transparent}
.legacy-controls .ctrl-btn{font-size:13px;letter-spacing:.015em;min-width:52px;padding:9px 12px}
.legacy-stage{box-shadow:0 15px 40px #0003}
@media(max-width:760px){.chess-piece{font-size:clamp(19px,6vw,41px)}.help-modal-head{padding:22px 20px 15px}.help-modal-content{padding:18px 20px}.help-modal-bottom{padding:13px 20px 23px}.help-modal-backdrop{padding:12px}.game-help-trigger{font-size:13px;padding:10px 11px}}
@media(prefers-reduced-motion:reduce){.help-modal-backdrop{animation:none}.chess-cell{transition:none}}

/* v2.2.0: responsive gameplay and mobile navigation. */
.install-button{white-space:nowrap;line-height:1.05;flex-shrink:0}
.header-tools{min-width:0}
.logo-text{white-space:nowrap}
.game-panel{overflow:hidden}
.game-area{display:flex;flex-direction:column;align-items:stretch;width:100%}
.game-area>.stage-wrap{flex-shrink:0}
.pool-stage{max-width:780px}
.pool-player{border:1px solid var(--line);border-radius:12px;padding:8px 12px;background:var(--panel2);font-size:12px;font-weight:700;white-space:nowrap}
.pool-player.playing{box-shadow:0 0 0 2px #57d6c2;border-color:var(--teal);color:var(--txt)}
.pool-turn{color:var(--txt);font-weight:800;align-self:center}
.novuss-stage,.tycoon-stage,.cirks-stage{max-width:665px}
.platform-stage{max-width:820px}
.stage-wrap:fullscreen{max-width:100%;width:100vw;height:100vh;display:grid;place-items:center;border-radius:0;background:#0d1826}
.stage-wrap:fullscreen canvas{width:auto;max-width:100vw;max-height:100vh;object-fit:contain}
.darts-announcement{max-width:540px;margin:10px auto;padding:11px 15px;border-radius:12px;line-height:1.5}
.darts-difficulty{margin:9px auto 12px}
.darts-difficulty .darts-mode{min-width:77px}
.darts-difficulty .darts-mode[aria-pressed="true"]{box-shadow:0 6px 15px #50c4c72d}
.stage-wrap.stage-square{max-width:min(100%,630px)}
.stage-wrap.stage-square.novuss-stage,.stage-wrap.stage-square.tycoon-stage,.stage-wrap.stage-square.cirks-stage{max-width:min(100%,665px)}
.game-status{line-height:1.5;min-height:30px}
.hud-inset{align-items:center;justify-content:space-evenly;gap:8px}
.hud-inset>span{line-height:1.5}
@media(max-width:660px){
 .logo-text small{display:none}
 .game-top{gap:13px}
 .game-scoreline{display:flex;justify-content:flex-start;gap:6px;width:100%;flex-wrap:wrap}
 .game-scoreline>*{min-height:40px}
 .game-panel{padding:12px}
 .game-status{font-size:12px}
 .control-bar{gap:7px}
 .control-bar .ctrl-btn{font-size:13px;min-height:44px}
 .pool-player{font-size:11px;padding:6px 8px}
 .pool-turn{order:3;width:100%;text-align:center}
 .hud-inset{font-size:12px}
}
@media(max-width:540px){
 .header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto;min-height:57px;gap:5px;padding:7px 10px}
 .site-header .logo{min-width:0;gap:6px;white-space:nowrap}
 .site-header .logo-mark{width:32px;height:32px;border-radius:10px;flex-shrink:0}
 .site-header .logo-mark img{width:32px;height:32px}
 .logo-text{font-size:16px;letter-spacing:-.7px}
 .header-tools{min-width:0;display:flex;align-items:center;gap:4px;margin-left:0}
 .lang-select{width:102px;max-width:27vw;font-size:11px;height:35px;padding:0 18px 0 6px}
 .header-icon{width:32px;height:35px;border-radius:9px;font-size:17px;flex-shrink:0}
 .install-button{height:35px;min-width:59px;padding:0 7px;font-size:12px;border-radius:9px}
 .game-top .game-scoreline .btn-primary{padding:8px 9px;font-size:12px}
 .game-top .game-scoreline .game-help-trigger{padding:8px 9px;font-size:12px}
 .game-top .game-scoreline .score-pill{padding:5px 10px;font-size:11px}
 .control-bar{width:100%}
 .control-bar .ctrl-btn{min-width:49px;padding:7px 9px}
}
@media(max-width:380px){
 .header-inner{padding:7px 6px}
 .logo-text{font-size:14px}
 .site-header .logo-mark,.site-header .logo-mark img{width:29px;height:29px}
 .lang-select{width:85px;max-width:25vw;padding-left:3px}
 .header-icon{width:29px;height:33px;font-size:15px}
 .install-button{min-width:52px;padding:0 4px;font-size:11px}
 .header-tools{gap:3px}
 .hud-inset{gap:4px}
}

/* v2.3.0: logo spacing, hero stability, cache control button and mobile game modal. */
.logo-text>span,.footer strong>span{display:inline-block;margin-left:.16em}
.logo-text{letter-spacing:-.9px}
.hero-copy{padding-right:clamp(10px,2vw,24px)}
.hero h1{max-width:720px;padding-right:.14em;overflow:visible;font-size:clamp(34px,4.7vw,62px);line-height:1.09;text-wrap:balance}
.hero h1 span{display:inline-block;padding-right:.08em}
.cache-reset{font-size:17px}
.game-mobile-launch{min-height:240px;display:grid;place-items:center;gap:12px;padding:28px 18px;border:1px dashed color-mix(in srgb,var(--line),transparent 12%);border-radius:24px;background:color-mix(in srgb,var(--panel2),transparent 18%);text-align:center}
.mobile-launch-btn{min-width:min(100%,240px)}
.orientation-note{margin:0;color:var(--muted);font-size:13px;line-height:1.5;text-align:center}
.game-modal-backdrop{position:fixed;z-index:160;inset:0;padding:10px;display:flex;align-items:center;justify-content:center;background:rgba(7,11,24,.82);backdrop-filter:blur(8px)}
.game-modal{width:min(100%,980px);max-height:calc(100vh - 20px);overflow:auto;border:1px solid color-mix(in srgb,var(--line),transparent 10%);border-radius:24px;background:var(--bg);box-shadow:0 30px 90px rgba(0,0,0,.55)}
.game-modal-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--bg),transparent 6%);backdrop-filter:blur(18px)}
.game-modal-close{width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:var(--panel);color:var(--txt);font-size:18px;font-weight:800}
.game-modal .game-panel{border:none;border-radius:0;box-shadow:none}
@media (max-width:980px){.hero{grid-template-columns:1fr}.hero-visual{margin-top:14px;transform:none}.game-layout{grid-template-columns:1fr}}
@media (max-width:760px){.hero{padding:26px 22px;min-height:auto}.hero h1{font-size:clamp(32px,9.8vw,48px);line-height:1.1;letter-spacing:-.045em}.header-tools{gap:6px}.header-nav{display:none}.install-button{padding:0 11px}.game-modal{width:100%;height:auto;max-height:calc(100vh - 16px)}.game-modal .game-panel{padding:12px}.game-modal .help-note{padding:0 6px 4px}.game-modal canvas{max-width:100%;height:auto}.game-modal .legacy-shell{width:100%;overflow:auto}.game-play-view .game-side{grid-template-columns:1fr}.game-mobile-launch{min-height:180px}}
@media (max-width:480px){.logo{gap:10px;min-width:0}.logo-text{font-size:16px}.logo-text>span,.footer strong>span{margin-left:.14em}.header-pill,.header-icon{height:36px}.install-button{font-size:12px}.hero h1{text-wrap:pretty}}

/* Games 63 v2.3.0 polish and orientation-safe immersive play */
.logo-text{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:.33em;letter-spacing:-.035em;line-height:1.07}
.logo-text>span{margin-left:0}
.logo-text small{flex-basis:100%;margin-top:5px;letter-spacing:1.45px}
.footer strong>span{margin-left:.27em}
.hero{grid-template-columns:minmax(0,1.1fr) minmax(220px,.9fr)}
.hero-copy{min-width:0;padding-right:0}
.hero h1{max-width:100%;font-size:clamp(34px,4.25vw,62px);line-height:1.13;letter-spacing:-.04em;overflow:visible;overflow-wrap:break-word;text-wrap:pretty;padding:0}
.hero h1 span{display:inline;box-decoration-break:clone;-webkit-box-decoration-break:clone;padding:0}
.game-modal-open{overflow:hidden;overscroll-behavior:none}
.game-modal-backdrop{inset:0;padding:max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left));overscroll-behavior:contain}
.game-modal{width:min(100%,1100px);height:auto;max-height:calc(100dvh - 12px);display:flex;flex-direction:column;overflow:hidden;overscroll-behavior:contain}
.game-modal-head{flex:none;position:relative;min-height:48px;padding:7px 14px;gap:10px}
.game-modal-head strong{font-weight:780;font-size:clamp(13px,3.2vw,16px);line-height:1.2}
.game-modal-close{display:grid;place-items:center;flex:none;min-width:40px;min-height:40px;color:var(--txt);font-size:20px}
.game-modal-body{min-height:0;flex:1 1 auto;overflow:auto;overscroll-behavior:contain;padding:8px 12px max(10px,env(safe-area-inset-bottom))}
.game-modal-body .game-panel{padding:5px;background:transparent;border:0;border-radius:0;box-shadow:none}
.game-modal-body .stage-wrap{margin-left:auto;margin-right:auto}
.game-modal-body .control-bar{justify-content:center}
.game-modal-body .game-status{max-width:860px;margin:10px auto}
.game-modal-body .help-note{display:none}
.orientation-shield{display:none;flex:1 1 auto;min-height:0;padding:20px;align-items:center;justify-content:center;flex-direction:column;gap:12px;text-align:center;overflow:auto}
.orientation-shield strong{font-size:clamp(19px,5vw,26px)}
.orientation-shield p{color:var(--muted);max-width:300px;margin:0 0 5px}
.orientation-glyph{display:grid;place-items:center;font-size:46px;line-height:1;width:86px;height:86px;border:1px solid var(--line);background:var(--panel2);border-radius:22px;color:var(--teal)}
@media (max-width:980px){.hero{grid-template-columns:minmax(0,1fr)}.hero-visual{display:none}}
@media (max-width:760px){.hero h1{font-size:clamp(31px,8vw,46px);line-height:1.17;letter-spacing:-.034em}.game-modal{border-radius:15px}.game-modal-body{padding:5px 8px 10px}.game-modal .game-panel{padding:0}.game-mobile-launch{min-height:150px}.site-header .logo-text{column-gap:.29em}.header-inner{gap:5px}}
@media (max-width:760px) and (orientation:portrait){.game-modal.needs-landscape:not(.allow-portrait) .orientation-shield{display:flex}.game-modal.needs-landscape:not(.allow-portrait) .game-modal-body{display:none}.game-modal.needs-landscape:not(.allow-portrait){min-height:240px}}
@media (pointer:coarse) and (orientation:portrait) and (max-width:1100px){.game-modal.needs-landscape:not(.allow-portrait) .orientation-shield{display:flex}.game-modal.needs-landscape:not(.allow-portrait) .game-modal-body{display:none}}
@media (pointer:coarse) and (orientation:landscape) and (max-height:600px){.game-modal{max-width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}.game-modal-head{min-height:43px;padding:4px 10px}.game-modal-close{min-height:35px;min-width:36px;height:35px}.game-modal-body{padding:4px 10px}.game-modal-body canvas{width:auto;max-width:100%;max-height:calc(100dvh - 155px);object-fit:contain}.game-modal-body .stage-wrap{max-width:100%;display:flex;justify-content:center}.game-modal .control-bar{gap:4px;margin:5px auto}.game-modal .ctrl-btn{min-height:34px;min-width:38px;padding:4px 9px;font-size:11px}.game-modal .hud-inset{font-size:10px;gap:4px}}
@media (max-width:420px){.logo-text{font-size:15px}.logo-text small{display:none}.hero h1{font-size:clamp(31px,8vw,37px)}.header-tools{gap:3px}}
@media (prefers-reduced-motion:reduce){.game-modal,.game-modal-backdrop{animation:none}}
/* Remove unused retro-canvas sidebars in the landscape mobile modal. */
.game-modal .legacy-stage{background:transparent;box-shadow:none;border:0}
.game-modal .legacy-stage canvas{border-radius:12px;box-shadow:0 6px 28px #0003}
@media (pointer:coarse) and (orientation:landscape) and (max-height:600px){.game-modal-body canvas{max-height:calc(100dvh - 138px)}.game-modal-body .orientation-note{display:none}}
@media (max-width:360px){.header-inner{grid-template-columns:1fr;gap:7px}.header-tools{justify-content:space-between;width:100%}.lang-select{width:min(120px,30vw);max-width:none}.site-header .logo{justify-self:start}.hero h1{font-size:clamp(30px,8vw,35px)}}


/* v2.4.0: align pool UI with the table, preserve Formula portrait play, add the app family. */
.pool-stage{max-width:750px}
.pool-table-title{width:min(100%,750px);margin:0 auto 9px;text-align:center;color:var(--muted);font-size:11px;font-weight:850;letter-spacing:.13em;line-height:1.5}
.pool-scoreboard.hud-inset{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;justify-content:initial;gap:10px;width:min(100%,750px);max-width:750px;margin:12px auto 0}
.pool-scoreboard .pool-player{display:inline-flex;align-items:center;justify-content:center;gap:4px;white-space:normal;line-height:1.3;text-align:center;min-width:0;padding:8px 10px;max-width:100%}
.pool-scoreboard .pool-player:first-child{justify-self:start}
.pool-scoreboard .pool-player:last-child{justify-self:end}
.pool-scoreboard .pool-turn{justify-self:center;text-align:center;min-width:0;font-size:12px;max-width:250px;overflow-wrap:anywhere}
.pool-scoreboard .pool-turn,.pool-scoreboard .pool-player{order:initial}
@media(max-width:580px){
 .pool-scoreboard.hud-inset{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px}
 .pool-scoreboard .pool-player{width:100%;font-size:11px;padding:7px 5px}
 .pool-scoreboard .pool-player:first-child{grid-column:1;grid-row:1}
 .pool-scoreboard .pool-player:last-child{grid-column:2;grid-row:1}
 .pool-scoreboard .pool-turn{grid-column:1/-1;grid-row:2;justify-self:center;width:100%;font-size:11px}
 .pool-table-title{font-size:10px;letter-spacing:.09em}
}
/* Formula is already a portrait (480 x 620) game; no rotation shield. */
@media (pointer:coarse) and (orientation:portrait){
 .game-modal.formula-portrait .stage-wrap.stage-portrait{width:min(100%,55dvh,480px);max-width:480px;max-height:none}
 .game-modal.formula-portrait .game-modal-body{overflow-y:auto}
 .game-modal.formula-portrait .stage-wrap.stage-portrait canvas{width:100%;max-height:none;height:auto}
 .game-modal.formula-portrait .hud-inset{justify-content:space-between;font-size:11px;gap:6px}
 .game-modal.formula-portrait .control-bar{margin-top:8px}
}
/* Like GO 63, show the other services but not a link back to the current app. */
.other-apps-wrap{max-width:1340px;margin:0 auto 28px;padding:26px clamp(16px,3.1vw,42px);background:#091c22;color:#f5fffd;border:1px solid #2b4a50;border-radius:24px}
.other-apps-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:15px}
.other-apps-head h2{margin:0;font-size:clamp(19px,2.4vw,25px);line-height:1.25;letter-spacing:-.025em}
.other-apps-head p{margin:0;color:#b5d0d1;font-size:13px}
.other-apps-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.other-app-link{display:flex;align-items:center;gap:10px;min-width:0;min-height:66px;padding:11px;border:1px solid #29454b;background:#11282e;color:#fff;text-decoration:none;border-radius:13px;transition:background .18s,border-color .18s,transform .18s}
.other-app-link:hover{background:#19353c;border-color:#6de5d8;transform:translateY(-2px)}
.other-app-icon{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:10px;background:color-mix(in srgb,var(--app-colour),transparent 81%);color:var(--app-colour);font-size:20px}
.other-app-info{min-width:0;display:flex;flex-direction:column;gap:3px;line-height:1.3}
.other-app-info strong{font-weight:800;font-size:13px}
.other-app-info small{font-size:11px;color:#bbd0d2;white-space:normal}
.other-app-arrow{margin-left:auto;padding-left:5px;color:#63ead4;font-size:18px;flex:0 0 auto}
@media(max-width:1040px){.other-apps-wrap{margin-left:16px;margin-right:16px}.other-apps-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.other-apps-wrap{padding:20px 14px;border-radius:18px;margin:0 12px 24px}.other-apps-grid{grid-template-columns:1fr;gap:8px}.other-app-link{min-height:58px;padding:9px}.other-apps-head{gap:4px}.other-apps-head p{font-size:12px}}

/* v2.4.1: accessible offline flag picker with a scrollable language menu. */
.lang-picker{position:relative;display:block;flex:0 1 auto;min-width:0}
.lang-toggle{width:166px;max-width:25vw;height:40px;display:flex;align-items:center;gap:8px;padding:0 10px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--txt);font-size:12px;font-weight:750;text-align:left;white-space:nowrap}
.lang-toggle:hover,.lang-toggle[aria-expanded=true]{border-color:var(--teal);background:var(--panel2)}
.lang-flag{display:block;flex:none;width:26px;height:20px;object-fit:contain;filter:drop-shadow(0 1px 1px #0004)}
.lang-current-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lang-caret{flex:none;line-height:1;margin-left:auto;color:var(--muted);font-size:18px;transform:translateY(-2px)}
.lang-toggle[aria-expanded=true] .lang-caret{transform:translateY(2px) rotate(180deg)}
.lang-options{position:absolute;right:0;top:calc(100% + 8px);z-index:65;display:grid;gap:2px;width:250px;max-height:min(64vh,410px);max-height:min(64dvh,410px);overflow-y:auto;overscroll-behavior:contain;padding:6px;border:1px solid var(--line);border-radius:15px;background:var(--panel);box-shadow:0 24px 65px #0007;scrollbar-width:thin}
.lang-choice{display:flex;gap:11px;align-items:center;min-height:40px;width:100%;padding:7px 11px;color:var(--txt);background:transparent;border:1px solid transparent;border-radius:9px;font-size:13px;font-weight:650;text-align:left}
.lang-choice:hover,.lang-choice:focus-visible,.lang-choice.is-selected{background:var(--panel2)}
.lang-choice.is-selected{border-color:color-mix(in srgb,var(--teal),transparent 40%)}
.lang-selected-icon{margin-left:auto;color:var(--teal);font-weight:900}
@media(max-width:760px){.lang-toggle{width:132px;max-width:36vw}}
@media(max-width:540px){.lang-toggle{height:35px;width:107px;max-width:27vw;padding:0 6px;gap:5px;border-radius:10px;font-size:11px}.lang-flag{width:22px;height:17px}.lang-caret{font-size:14px}.lang-options{position:fixed;top:62px;left:12px;right:12px;width:auto;max-height:min(65vh,460px);max-height:min(65dvh,460px);padding:8px;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.lang-choice{font-size:12px;min-width:0;gap:7px;padding:7px}.lang-choice>span:not(.lang-selected-icon){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(max-width:380px){.lang-toggle{width:79px;max-width:24vw;gap:3px;padding:0 4px}.lang-options{left:7px;right:7px;top:60px}}
@media(max-width:360px){.lang-options{top:105px}}
