/* Surrounding game UI only. The selected table, card styles and pile metrics
   stay in their existing modules and are deliberately not targeted here. */
html #game-screen{position:relative;isolation:isolate;background:#10091b;color:#f3e9d8}
/* Bind scenery to the viewport so long card columns never zoom the artwork. */
html #game-screen::before{content:'';position:fixed;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(180deg,#170f2380,#120b1dc2 65%,#100a18d9),url('./game-art/background.webp') center top/cover no-repeat}
html #game-screen .game-header{padding:9px 12px!important;gap:10px;border:1px solid #cfbda53b;border-radius:16px;background:linear-gradient(135deg,#2c2035d9,#1b1524e8);box-shadow:0 5px 17px #08020e40,inset 0 1px #f7e4c50a}
html #game-screen .brand-lockup{min-width:0;gap:9px}
html #game-screen .brand-icon{flex:0 0 36px;width:36px;height:40px;border:0;border-radius:0;background:url('./menu-art/cards.webp') center/contain no-repeat;font-size:0;box-shadow:none}
html #game-screen .brand-name{color:#f1e2c4;font:650 19px/1.1 'Palatino Linotype','Book Antiqua',Palatino,Georgia,serif;letter-spacing:.055em;text-shadow:0 2px 5px #090410}
html #game-screen .brand-caption{display:block;margin-top:4px;color:#cbbbd2;font:650 9px/1.2 'Segoe UI',sans-serif;letter-spacing:.045em}
html #game-screen .header-actions{display:flex;align-items:center;gap:6px;flex:none}
html #game-screen .header-actions .icon-btn{display:grid;place-items:center;position:relative;width:44px;min-width:44px;min-height:44px;height:44px;padding:0;gap:0;border:0;border-radius:10px;background:transparent;box-shadow:none;color:#f2e7d4}
html #game-screen .header-actions .button-glyph{display:grid;place-items:center;width:36px;height:36px;flex:none;line-height:1}
html #game-screen .header-actions img.game-button-art{display:block;width:36px;height:36px;object-fit:contain;filter:drop-shadow(0 3px 4px #06030b99);pointer-events:none}
html #game-screen .button-mute-cross{color:#f0c9bb;text-shadow:0 2px 3px #0c0711}
html #game-screen .icon-btn.is-muted .button-glyph{opacity:.55}
html #game-screen .game-hud{gap:8px;margin:10px 0}
html #game-screen .hud-card{padding:10px 13px;border:1px solid #c3aec83b;border-radius:13px;background:linear-gradient(145deg,#2d2239eb,#1a1524eb);box-shadow:inset 0 1px #f4e2c50c,0 4px 12px #08030d33}
html #game-screen .hud-label{color:#cdbdd7;font:700 10px/1.3 'Segoe UI',sans-serif;letter-spacing:.11em}
html #game-screen .hud-number{color:#f1e4c6;font:750 23px/1.1 'Segoe UI Variable','Avenir Next','Segoe UI',sans-serif;font-variant-numeric:tabular-nums;text-shadow:0 1px 4px #07020d}
html #game-screen .game-actions{gap:8px;margin:0 0 12px}
html #game-screen .game-actions-left,html #game-screen .game-actions-right{gap:7px}
html #game-screen .game-actions .action-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:4px 9px;border:0;border-radius:10px;background:transparent;box-shadow:none;color:#f0e6d8;font:700 12px/1.2 'Segoe UI Variable','Avenir Next','Segoe UI',sans-serif;letter-spacing:.035em;text-shadow:0 2px 4px #08020e;white-space:nowrap}
html #game-screen .game-actions .button-glyph{display:grid;place-items:center;flex:0 0 32px;width:32px;height:34px}
html #game-screen .game-actions img.game-button-art{display:block;width:32px;height:34px;object-fit:contain;filter:drop-shadow(0 3px 5px #05020c99);pointer-events:none}
html #game-screen .game-actions .hint-cost{color:#d7c49e;font:650 10px/1.2 'Segoe UI',sans-serif}
html #game-screen .game-actions .action-btn:disabled{opacity:.35;filter:grayscale(.7);cursor:default}
html #game-screen .header-actions button,html #game-screen .game-actions button{transition:transform .15s,filter .15s;touch-action:manipulation}
html #game-screen .header-actions button:focus-visible,html #game-screen .game-actions button:focus-visible{outline:2px solid #f2dfb8;outline-offset:2px}
@media(hover:hover){html #game-screen .header-actions button:not(:disabled):hover,html #game-screen .game-actions button:not(:disabled):hover{filter:brightness(1.15);transform:translateY(-1px)}}
html #game-screen .header-actions button:not(:disabled):active,html #game-screen .game-actions button:not(:disabled):active{transform:translateY(1px) scale(.96)}
@media(max-width:760px){html #game-screen .game-header{padding:8px!important;gap:7px}html #game-screen .brand-icon{flex-basis:28px;width:28px;height:34px}html #game-screen .brand-name{font-size:15px}html #game-screen .brand-caption{font-size:8px}html #game-screen .header-actions{gap:3px}html #game-screen .header-actions .icon-btn{width:38px;min-width:38px;height:42px;min-height:42px}html #game-screen .header-actions .button-glyph,html #game-screen .header-actions img.game-button-art{width:32px;height:32px}html #game-screen .game-hud{gap:6px}html #game-screen .hud-card{padding:9px 10px}html #game-screen .hud-number{font-size:20px}html #game-screen .hud-label{font-size:9px}html #game-screen .game-actions-left,html #game-screen .game-actions-right{gap:3px}html #game-screen .game-actions .action-btn{padding:4px 5px;gap:5px;font-size:11px}html #game-screen .game-actions .button-glyph{flex-basis:29px;width:29px;height:31px}html #game-screen .game-actions img.game-button-art{width:29px;height:31px}}
@media(max-width:380px){html #game-screen .brand-lockup{gap:5px}html #game-screen .brand-icon{flex-basis:23px;width:23px;height:29px}html #game-screen .brand-name{font-size:12px}html #game-screen .brand-caption{font-size:7px}html #game-screen .header-actions .icon-btn{width:34px;min-width:34px}html #game-screen .header-actions .button-glyph,html #game-screen .header-actions img.game-button-art{width:29px;height:29px}html #game-screen .game-actions .action-btn{padding-inline:4px;font-size:10px}html #game-screen .game-actions{gap:5px}}
@media(prefers-reduced-motion:reduce){html #game-screen .header-actions button,html #game-screen .game-actions button{transition:none;transform:none!important}}

/* Portrait and landscape use separately composed scenery, without stretching. */
@media(orientation:portrait){html #game-screen::before{background-image:linear-gradient(180deg,#170f2338,#120b1d66 65%,#100a1880),url('./game-art/background-portrait.webp');background-position:center top;background-size:cover}}
@media(orientation:landscape){html #game-screen::before{background-position:center top}}
