/* com_game_player — full-screen player shell
   Aesthetic: dark "field expedition" — deep charcoal, warm amber accent,
   atmospheric glow + faint topographic texture, refined type, staggered motion. */

:root {
    --bg: #0c0f17;
    --bg-2: #11151f;
    --surface: #161b27;
    --surface-2: #1d2331;
    --ink: #f3f0e9;
    --muted: #9aa2b4;
    --accent: #e8853b;
    --accent-2: #f3a35f;
    --accent-ink: #1a1206;
    --ok: #2fb37e;
    --warn: #e8590c;
    --bad: #ff9a8a;
    --line: #2a3142;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(0,0,0,.5);
    --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
/* Fallback background for the safe-area / status-bar region and overscroll,
   so nothing behind the fixed #gp-app layer ever shows the default white.
   !important to beat any site-template body background bleeding into the inset. */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #0c0f17 !important;
}
#gp-app {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background:
        radial-gradient(120% 80% at 50% -10%, rgba(232,133,59,.16) 0%, rgba(232,133,59,0) 45%),
        radial-gradient(90% 60% at 90% 110%, rgba(47,179,126,.08) 0%, rgba(47,179,126,0) 50%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
    color: var(--ink);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: max(28px, calc(env(safe-area-inset-top) + 18px)) 18px calc(28px + env(safe-area-inset-bottom));
}
#gp-app::before {
    content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
}
#gp-app > * { position: relative; z-index: 1; }
#gp-app * { box-sizing: border-box; }

.gp-screen { min-height: 100%; display: flex; flex-direction: column; animation: gp-fade .45s ease both; }
.gp-center { align-items: center; justify-content: center; text-align: center; gap: 16px; }
.gp-wrap { width: 100%; max-width: 660px; margin: 0 auto; }

@keyframes gp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gp-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.gp-card > *, .gp-play .gp-console > * { animation: gp-up .5s cubic-bezier(.2,.7,.2,1) both; }
.gp-card > *:nth-child(2), .gp-play .gp-console > *:nth-child(2) { animation-delay: .05s; }
.gp-card > *:nth-child(3), .gp-play .gp-console > *:nth-child(3) { animation-delay: .1s; }
.gp-card > *:nth-child(4), .gp-play .gp-console > *:nth-child(4) { animation-delay: .15s; }
.gp-card > *:nth-child(n+5), .gp-play .gp-console > *:nth-child(n+5) { animation-delay: .2s; }

/* brand / logo */
.gp-brand { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 20px; }
.gp-logo { max-width: 180px; max-height: 64px; height: auto; display: block; }
.gp-monogram {
    width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
    font-weight: 800; font-size: 24px; letter-spacing: -.04em; color: var(--accent-ink);
    background: linear-gradient(145deg, var(--accent-2), var(--accent));
    box-shadow: 0 8px 24px rgba(232,133,59,.4), inset 0 1px 0 rgba(255,255,255,.4);
}

/* card */
.gp-card {
    width: 100%; max-width: 440px; background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
    display: flex; flex-direction: column; gap: 16px; text-align: left; box-shadow: var(--shadow);
}
.gp-card.gp-center, .gp-finish { align-items: center; text-align: center; }
.gp-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0; }
.gp-card h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.gp-muted { color: var(--muted); margin: 0; font-size: 14.5px; line-height: 1.55; }
.gp-error { color: var(--bad); font-size: 14px; margin: 0; padding: 10px 12px; background: rgba(255,154,138,.1); border-radius: 12px; }

/* form controls */
.gp-input {
    width: 100%; padding: 15px 16px; font-size: 16px; color: var(--ink); font-family: inherit;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; transition: border-color .15s, box-shadow .15s;
}
.gp-input::placeholder { color: #707a90; }
.gp-input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232,133,59,.25); }
.gp-combo { letter-spacing: .35em; text-align: center; font-weight: 700; font-size: 22px; }

.gp-btn {
    width: 100%; padding: 15px 18px; font-size: 16px; font-weight: 700; cursor: pointer; font-family: inherit;
    color: var(--accent-ink); background: linear-gradient(145deg, var(--accent-2), var(--accent));
    border: 0; border-radius: 13px; letter-spacing: .01em;
    box-shadow: 0 8px 22px rgba(232,133,59,.32), inset 0 1px 0 rgba(255,255,255,.35);
    transition: filter .15s, transform .08s, box-shadow .15s;
}
.gp-btn:hover { filter: brightness(1.05); }
.gp-btn:active { transform: translateY(1px); box-shadow: 0 4px 12px rgba(232,133,59,.3); }
.gp-btn.gp-ghost {
    background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); box-shadow: none;
}
.gp-btn.gp-ghost:hover { border-color: var(--accent); filter: none; }
.gp-choice { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); text-align: left; box-shadow: none; }
.gp-choice:hover { border-color: var(--accent); filter: none; }

.gp-link { background: none; border: 0; color: var(--muted); font-size: 14px; cursor: pointer; padding: 8px 10px; font-family: inherit; border-radius: 8px; }
.gp-link:hover { color: var(--ink); }

/* divider */
.gp-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; margin: 2px 0; }
.gp-divider::before, .gp-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* resume card */
.gp-resume {
    width: 100%; max-width: 440px; text-align: left; cursor: pointer; color: inherit; font-family: inherit;
    background: linear-gradient(145deg, rgba(232,133,59,.16), rgba(232,133,59,.05));
    border: 1px solid rgba(232,133,59,.4); border-radius: var(--radius); padding: 18px 20px;
    display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow);
    transition: transform .12s, border-color .15s;
}
.gp-resume:hover { transform: translateY(-2px); border-color: var(--accent); }
.gp-resume .gp-resume-ic { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 20px; }
.gp-resume .gp-resume-tx { display: flex; flex-direction: column; gap: 2px; }
.gp-resume .gp-resume-k { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.gp-resume .gp-resume-n { font-size: 17px; font-weight: 700; }

/* spinner / progress */
.gp-spinner {
    width: 42px; height: 42px; border-radius: 50%;
    border: 3px solid rgba(255,255,255,.12); border-top-color: var(--accent);
    animation: gp-spin .8s linear infinite;
}
@keyframes gp-spin { to { transform: rotate(360deg); } }

/* splash */
.gp-splash { align-items: center; justify-content: center; gap: 18px; }
.gp-splash .gp-monogram { width: 84px; height: 84px; border-radius: 22px; font-size: 34px; animation: gp-pop .7s cubic-bezier(.2,.8,.2,1) both; }
.gp-splash .gp-logo { animation: gp-pop .7s cubic-bezier(.2,.8,.2,1) both; }
.gp-splash .gp-splash-name { font-size: 22px; font-weight: 800; letter-spacing: -.01em; animation: gp-up .6s ease .15s both; }
.gp-splash .gp-splash-tag { color: var(--muted); font-size: 13px; letter-spacing: .04em; animation: gp-up .6s ease .25s both; }
.gp-splash .gp-splash-bar { width: 120px; height: 3px; border-radius: 3px; overflow: hidden; background: var(--line); animation: gp-up .6s ease .3s both; }
.gp-splash .gp-splash-bar::after { content: ""; display: block; height: 100%; width: 40%; border-radius: 3px; background: linear-gradient(90deg, var(--accent-2), var(--accent)); animation: gp-slide 1.1s ease-in-out infinite; }
@keyframes gp-pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
@keyframes gp-slide { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }

/* catalog */
.gp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin-top: 8px; }
.gp-tile {
    display: flex; flex-direction: column; gap: 8px; padding: 0 0 12px; cursor: pointer; font-family: inherit;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: inherit; text-align: left;
    transition: transform .15s, border-color .15s;
}
.gp-tile:hover { transform: translateY(-3px); border-color: var(--accent); }
.gp-thumb { display: block; width: 100%; aspect-ratio: 16/10; background-size: cover; background-position: center; }
.gp-thumb-blank { background: linear-gradient(135deg, #243049, #161c2b); }
.gp-tile-name { font-weight: 700; font-size: 15px; padding: 0 12px; }
.gp-tag { font-size: 11px; color: var(--muted); padding: 0 12px; text-transform: uppercase; letter-spacing: .07em; }

/* ---------- play screen: framed dark chrome around a game-themed console ---------- */
#gp-app[data-state="play"] { padding: 0; }
.gp-play { min-height: 100%; display: flex; padding-top: 0; }
.gp-console {
    --g-bg: #ffffff; --g-ink: #1c1c1c; --g-head: var(--accent); --g-accent: var(--accent);
    --g-btnink: #fff; --g-console: #0b132b; --g-font: var(--font);
    --g-field: #f4f5f7; --g-fieldink: #16181d;
    flex: 1; width: 100%; max-width: 720px; margin: 0 auto;
    background: var(--g-bg); color: var(--g-ink); font-family: var(--g-font);
    border: 0; border-radius: 0; box-shadow: none;
    padding: calc(26px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
    overflow-x: hidden;
}
@media (min-width: 760px) {
    #gp-app[data-state="play"] { padding: 26px 18px calc(26px + env(safe-area-inset-bottom)); }
    .gp-play { align-items: flex-start; }
    .gp-console {
        flex: none; max-width: 640px;
        border: 1px solid rgba(0,0,0,.08); border-radius: var(--radius); box-shadow: var(--shadow);
        padding: 26px 24px;
    }
}
.gp-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.gp-note { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--g-accent); background: color-mix(in srgb, var(--g-accent) 14%, transparent); padding: 6px 12px; border-radius: 999px; }
.gp-dir { color: color-mix(in srgb, var(--g-ink) 65%, transparent); font-size: 15px; line-height: 1.55; margin: 0 0 14px; padding-left: 12px; border-left: 3px solid var(--g-accent); }
.gp-clue-name { font-size: 21px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 10px; color: var(--g-head); }
.gp-clue-text { font-size: 17px; line-height: 1.6; color: var(--g-ink); }
.gp-clue-text img { max-width: 100%; height: auto; border-radius: 12px; }
.gp-img { display: block; width: 100%; height: auto; border-radius: 14px; margin: 16px 0; }
.gp-console .gp-input { background: var(--g-field); color: var(--g-fieldink); border-color: color-mix(in srgb, var(--g-fieldink) 22%, transparent); }
.gp-console .gp-input::placeholder { color: color-mix(in srgb, var(--g-fieldink) 48%, transparent); }
.gp-console .gp-input:focus { border-color: var(--g-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g-accent) 28%, transparent); }
.gp-console .gp-btn { color: var(--g-btnink); background: var(--g-accent); box-shadow: 0 8px 20px color-mix(in srgb, var(--g-accent) 32%, transparent); }
.gp-console .gp-choice { background: var(--g-field); color: var(--g-fieldink); border: 1px solid color-mix(in srgb, var(--g-fieldink) 18%, transparent); box-shadow: none; }
.gp-console .gp-choice:hover { border-color: var(--g-accent); }
.gp-console .gp-link { color: color-mix(in srgb, var(--g-ink) 55%, transparent); }
.gp-console .gp-link:hover { color: var(--g-ink); }
.gp-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.gp-hintbar { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; align-items: center; border-top: 1px solid color-mix(in srgb, var(--g-ink) 10%, transparent); padding-top: 10px; }
.gp-hintbar .gp-exit { margin-left: auto; }
.gp-msg { min-height: 0; margin-top: 12px; font-size: 15px; }
.gp-msg.gp-wrong { color: #c0392b; font-weight: 600; }
.gp-msg.gp-hint { color: var(--g-ink); background: color-mix(in srgb, var(--g-accent) 12%, transparent); padding: 12px 14px; border-radius: 12px; }

/* finish */
.gp-tick { width: 70px; height: 70px; border-radius: 50%; background: rgba(47,179,126,.16); color: var(--ok); display: grid; place-items: center; font-size: 34px; font-weight: 800; animation: gp-pop .6s cubic-bezier(.2,.8,.2,1) both; }
.gp-loaded-badge { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 2px; display: grid; place-items: center; background: rgba(47,179,126,.16); color: var(--ok); font-size: 28px; font-weight: 700; animation: gp-pop .6s cubic-bezier(.2,.8,.2,1) both; }
.gp-game-name { font-weight: 700; font-size: 18px; margin: 0; }

/* hotspot */
.gp-hotspot { position: relative; margin: 16px 0; border-radius: 14px; overflow: hidden; cursor: crosshair; }
.gp-hotspot img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-select: none; }
.gp-hotspot-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; pointer-events: none; }

/* scan */
.gp-scan-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.gp-scanner { position: fixed; inset: 0; z-index: 100001; background: #000; display: flex; flex-direction: column; }
.gp-scanner video { flex: 1; width: 100%; object-fit: cover; }
.gp-scanner .gp-scan-frame { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.gp-scanner .gp-scan-frame i { width: 64vw; max-width: 280px; aspect-ratio: 1; border: 3px solid rgba(255,255,255,.85); border-radius: 18px; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
.gp-scanner .gp-scan-close { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 22px; cursor: pointer; }

/* network indicator: top-center pill on change + persistent corner dot */
.gp-net-dot {
    position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 12px; z-index: 100000;
    width: 11px; height: 11px; border-radius: 50%; pointer-events: none;
    transition: background-color .3s ease, box-shadow .3s ease;
}
.gp-net-dot[data-state="online"] { background: #2fb37e; box-shadow: none; }
.gp-net-dot[data-state="offline"] { background: #e8590c; box-shadow: none; }

.gp-net-pill {
    position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 50%; z-index: 100001;
    transform: translate(-50%, -150%); opacity: 0; pointer-events: none;
    display: flex; align-items: center; gap: 8px;
    max-width: calc(100vw - 32px); padding: 9px 16px; border-radius: 999px;
    font-size: 13px; font-weight: 600; line-height: 1.2; color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,.45);
    transition: transform .32s cubic-bezier(.2,.8,.2,1), opacity .32s ease;
}
.gp-net-pill.show { transform: translate(-50%, 0); opacity: 1; }
.gp-net-pill[data-state="online"] { background: #168a63; }
.gp-net-pill[data-state="offline"] { background: #c14e10; }
.gp-net-pill .gp-net-pdot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.9); flex: none; }

/* iOS add-to-home hint */
.gp-a2hs {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 100000;
    background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); border-radius: 12px;
    padding: 12px 14px; font-size: 13px; line-height: 1.4; box-shadow: var(--shadow);
    display: flex; align-items: center; gap: 10px;
}
.gp-a2hs .gp-a2hs-x { margin-left: auto; flex: none; background: none; border: 0; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }

@media (prefers-reduced-motion: reduce) {
    .gp-screen, .gp-card > *, .gp-play .gp-console > *, .gp-splash .gp-monogram, .gp-splash .gp-logo, .gp-tick, .gp-loaded-badge { animation: none !important; }
}

/* combination lock */
.gp-lock { display: flex; justify-content: center; gap: 10px; margin: 20px 0 6px; flex-wrap: wrap; }
.gp-wheel { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gp-wheel-b {
    width: 48px; height: 28px; border: 0; border-radius: 8px; cursor: pointer; font-size: 12px;
    background: color-mix(in srgb, var(--g-ink) 9%, #fff); color: color-mix(in srgb, var(--g-ink) 55%, transparent);
    transition: background-color .12s, color .12s;
}
.gp-wheel-b:hover { color: var(--g-accent); }
.gp-wheel-b:active { background: var(--g-accent); color: #fff; }
.gp-wheel-d {
    width: 48px; height: 58px; display: grid; place-items: center; border-radius: 10px;
    font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums;
    background: var(--g-console, #0b132b); color: #fff; box-shadow: inset 0 2px 8px rgba(0,0,0,.45);
}

/* finish result */
.gp-result { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 4px 0; }
.gp-result-k { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.gp-result-t { font-size: 40px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.gp-result-p { font-size: 13px; color: var(--warn); }

/* disabled controls */
.gp-btn:disabled { opacity: .45; cursor: not-allowed; filter: none; box-shadow: none; }
.gp-input:disabled { opacity: .55; cursor: not-allowed; }

/* overlays: penalty / success / share */
.gp-overlay {
    position: fixed; inset: 0; z-index: 100002; display: grid; place-items: center;
    background: rgba(8,10,16,.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
    opacity: 0; transition: opacity .2s ease; padding: 20px;
    color: var(--ink); font-family: var(--font);
}
.gp-overlay.gp-shown { opacity: 1; }
.gp-ov-card {
    background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 24px; text-align: center;
    max-width: 360px; width: 100%; transform: scale(.92); transition: transform .22s cubic-bezier(.2,.8,.2,1);
}
.gp-overlay.gp-shown .gp-ov-card { transform: scale(1); }
.gp-ov-ic { width: 66px; height: 66px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 32px; }
.gp-ov-ok .gp-ov-ic { background: rgba(47,179,126,.18); color: var(--ok); }
.gp-ov-pen .gp-ov-ic { background: rgba(232,89,12,.16); color: var(--warn); }
.gp-ov-t { font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.gp-ov-pen .gp-ov-t { color: var(--warn); font-variant-numeric: tabular-nums; }
.gp-ov-s { color: var(--muted); font-size: 13px; margin-top: 4px; }
.gp-ov-ok .gp-ov-ic { animation: gp-pop .4s cubic-bezier(.2,.8,.2,1) both; }

/* share modal */
.gp-share { text-align: center; display: flex; flex-direction: column; gap: 12px; max-width: 340px; }
.gp-share h2 { margin: 0; font-size: 22px; font-weight: 800; }
.gp-qr { background: #fff; border-radius: 14px; padding: 14px; width: 220px; max-width: 80%; margin: 4px auto; }
.gp-qr svg { display: block; width: 100%; height: auto; }
.gp-share-code { font-size: 15px; color: var(--muted); }
.gp-share-code strong { color: var(--ink); letter-spacing: .08em; }

/* photo zoom + geofence */
.gp-photozoom {
    width: 100%; margin: 16px 0; border-radius: 14px;
    background-repeat: no-repeat; background-color: color-mix(in srgb, var(--g-ink) 8%, #fff);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--g-ink) 12%, transparent);
    max-height: 60vh;
}
.gp-geo { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 18px 0 8px; text-align: center; }
.gp-geo-ring {
    width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center;
    background: color-mix(in srgb, var(--g-accent) 12%, transparent);
    border: 2px solid var(--g-accent); transition: background-color .3s ease, border-color .3s ease;
}
.gp-geo-dist { font-size: 24px; font-weight: 800; color: var(--g-head); font-variant-numeric: tabular-nums; }
.gp-geo-status { color: color-mix(in srgb, var(--g-ink) 70%, transparent); font-size: 15px; line-height: 1.5; max-width: 30ch; }
.gp-geo.gp-here .gp-geo-ring { background: color-mix(in srgb, var(--ok) 24%, transparent); border-color: var(--ok); }
.gp-geo.gp-here .gp-geo-dist { color: var(--ok); }

/* keep the share buttons glass-morphic but legible */
.gp-share .gp-btn {
    background: rgba(255,255,255,.12); color: var(--ink);
    border: 1px solid rgba(255,255,255,.26); box-shadow: none;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.gp-share .gp-btn:hover { background: rgba(255,255,255,.18); filter: none; }

/* store / get-a-game */
.gp-getgame { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.gp-getgame a { color: var(--accent-2); font-weight: 700; text-decoration: none; }
.gp-getgame a:hover { text-decoration: underline; }
.gp-back { align-self: center; margin: -2px 0 12px; color: var(--muted); }
.gp-back:hover { color: var(--ink); }
.gp-products { display: flex; flex-direction: column; gap: 10px; width: 100%; margin: 4px 0; }
.gp-product {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; text-align: left;
}
.gp-product-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gp-product-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.gp-product-type { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.gp-btn.gp-buy { width: auto; flex: none; padding: 10px 16px; font-size: 15px; border-radius: 11px; }
.gp-order { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.gp-order strong { font-size: 20px; }
.gp-demo-note { font-size: 12px; color: var(--accent-2); background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 9px; padding: 7px 12px; margin: 4px 0; }
.gp-price { font-weight: 700; color: var(--ink); }
.gp-product-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gp-detail-hero { width: 100%; border-radius: 12px; overflow: hidden; margin: 2px 0 8px; background: var(--line); }
.gp-detail-hero img { display: block; width: 100%; height: auto; }
.gp-detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0; }
.gp-detail-desc { color: var(--ink); font-size: 14px; line-height: 1.5; margin: 6px 0; }
.gp-detail-facts { display: flex; flex-direction: column; gap: 0; width: 100%; margin: 6px 0; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.gp-detail-facts > div { display: flex; align-items: center; justify-content: space-between; padding: 9px 13px; }
.gp-detail-facts > div + div { border-top: 1px solid var(--line); }
.gp-fact-k { color: var(--muted); font-size: 13px; }
.gp-fact-v { color: var(--ink); font-weight: 600; font-size: 14px; }
.gp-buy-now { margin-top: 4px; }
.gp-cc-row { display: flex; gap: 10px; width: 100%; }
.gp-cc-row .gp-input { flex: 1; min-width: 0; }
.gp-ov-info .gp-ov-card { max-width: 320px; }

/* stop-playing link + confirm modal */
.gp-stop {
    width: 100%; max-width: 440px; margin: -2px 0 0; padding: 10px;
    background: none; border: 0; cursor: pointer; font-family: inherit;
    color: color-mix(in srgb, var(--warn) 80%, var(--muted)); font-size: 13px; font-weight: 600;
}
.gp-stop:hover { color: var(--warn); text-decoration: underline; }
.gp-ov-confirm .gp-ov-card { max-width: 340px; }
.gp-ov-confirm .gp-btn { margin-top: 8px; }

/* store filters + badges */
.gp-filters { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; margin: 2px 0 6px; }
.gp-chip {
    border: 1px solid var(--line); background: var(--surface-2); color: var(--muted);
    border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.gp-chip:hover { color: var(--ink); }
.gp-chip-on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.gp-product-meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; }
.gp-badge { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.gp-badge-online  { background: color-mix(in srgb, #16BFE5 22%, transparent); color: #8fe3f5; }
.gp-badge-outdoor { background: color-mix(in srgb, var(--ok) 22%, transparent); color: #7fe0bb; }
.gp-badge-indoor  { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent-2); }
.gp-dist { font-size: 12px; color: var(--muted); }

/* timer countdown chip (in the play topbar) */
.gp-countdown {
    font-variant-numeric: tabular-nums; font-weight: 800; font-size: 15px;
    padding: 4px 12px; border-radius: 999px; letter-spacing: .02em;
    background: color-mix(in srgb, var(--g-accent) 16%, transparent); color: var(--g-accent);
}
.gp-countdown-low { background: #c0392b; color: #fff; animation: gp-pulse 1s ease-in-out infinite; }
@keyframes gp-pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
