/* Shared styles for the full-screen game pages (photobooth, kuis). Builds on style.css tokens. */
html, body { height: 100%; }
body.game { overflow: hidden; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; background: radial-gradient(120% 80% at 50% 0%, var(--a50), var(--bg) 60%); }
:root[data-theme="dark"] body.game { background: radial-gradient(120% 80% at 50% 0%, #2a1b14, var(--bg) 60%); }
.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.app { position: relative; z-index: 1; height: 100dvh; display: flex; flex-direction: column; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.topbar .brand { font-size: 20px; }
.screen { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 16px 20px; text-align: center; }
.screen[hidden] { display: none; }
.glass { background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 30px 80px -40px rgba(46, 27, 22, .55); }
.title-xl { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 11vw, 84px); line-height: .98; letter-spacing: -.03em; margin: 0; }
.title-xl em { color: var(--accent); font-weight: 300; }
.sub { color: var(--muted); max-width: 440px; margin: 14px auto 22px; }
.big-btn { font-size: 17px; padding: 16px 28px; }
.note { font-size: 12.5px; color: var(--muted); margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); margin-bottom: 18px; }
.seg button { border: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.split { display: inline-block; }
.split > span { display: inline-block; will-change: transform; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; background: var(--a900); color: #fbf7f2; padding: 10px 16px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.toast.show { opacity: 1; }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
button.pill-outline { background: transparent; color: var(--text); }
.app::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 70% 42% at 50% 48%, color-mix(in srgb, var(--bg) 88%, transparent) 0%, color-mix(in srgb, var(--bg) 55%, transparent) 55%, transparent 80%); }

/* PS5 rules on touch devices for the game pages: Swassana brown glass, cream focus ring, big cream primary button */
/* (applies when the page marks itself .touch: a phone or tablet, whatever the browser reports about its pointer) */
:root.touch:not(.x) {
  --bg: #24150f; --surface: rgba(255, 236, 220, .08); --text: #f7ece2; --muted: rgba(247, 236, 226, .66);
  --line: rgba(255, 226, 204, .16); --accent: #e9c19d; --on-accent: #24150f; --a100: rgba(233, 193, 157, .16);
}
html.touch { background: #1f120d; }
.touch body.game, .touch body.mini { background: var(--glass-bg); color: var(--text); }
.touch .glass, .touch .panel, .touch .gcard, .touch .opt, .touch .idea-card { background: rgba(255, 236, 220, .08); border-color: var(--line); }
.touch .pill-solid, .touch .panel .pill-solid, .touch .big-btn.pill-solid { background: #fbeee2 !important; color: #24150f !important; }
.touch :is(.pill, .opt, .gcard, .chip, .fchip, .seg button, .shutter, .icon-btn):is(:active, :focus-visible) { box-shadow: var(--ps-ring); outline: none; }
.touch :is(.pill, .opt, .gcard):active { transform: scale(.96); }
.touch .picker { background: var(--glass-bg); }
.touch .picker h1 { font-weight: 300; }
.touch .gcard { border-radius: 20px; }

:root.touch[data-pal="latte"]:not(.x), :root.touch[data-pal="blush"]:not(.x) {
  --bg: #f6efe8; --surface: rgba(255, 255, 255, .72); --text: #3a2a22; --muted: rgba(58, 42, 34, .6); --line: rgba(58, 42, 34, .1); --accent: #b86b4b; --on-accent: #fff;
}
:root.touch[data-pal="blush"]:not(.x) { --bg: #fbeee9; --text: #4a2c2a; --accent: #e46f6f; }
:root.touch[data-pal="latte"] body.game, :root.touch[data-pal="latte"] body.mini, :root.touch[data-pal="latte"] .picker,
:root.touch[data-pal="blush"] body.game, :root.touch[data-pal="blush"] body.mini, :root.touch[data-pal="blush"] .picker {
  background: radial-gradient(70% 45% at 10% 0%, rgba(244, 183, 154, .35), transparent 70%), radial-gradient(60% 40% at 100% 40%, rgba(242, 182, 195, .3), transparent 70%), var(--bg); }
:root.touch[data-pal="latte"], :root.touch[data-pal="blush"] { background: var(--bg); }
:root.touch[data-pal="latte"] .pill-solid, :root.touch[data-pal="latte"] .panel .pill-solid, :root.touch[data-pal="latte"] .big-btn.pill-solid { background: #3a2a22 !important; color: #f6efe8 !important; }
:root.touch[data-pal="blush"] .pill-solid, :root.touch[data-pal="blush"] .panel .pill-solid, :root.touch[data-pal="blush"] .big-btn.pill-solid { background: #e46f6f !important; color: #fff !important; }
:root.touch[data-pal="latte"] .glass, :root.touch[data-pal="latte"] .panel, :root.touch[data-pal="latte"] .gcard, :root.touch[data-pal="latte"] .opt,
:root.touch[data-pal="blush"] .glass, :root.touch[data-pal="blush"] .panel, :root.touch[data-pal="blush"] .gcard, :root.touch[data-pal="blush"] .opt { background: rgba(255, 255, 255, .78); }
