/**
 * SWADS Games — Tron / Explore orb visual language
 * Self-contained (do NOT load scan_customer_theme on game pages —
 * that theme locks html/body overflow for the /app shell).
 *
 * body.games-tron
 */

:root {
    --games-bg-deep: #050505;
    --games-accent: #ff6b00;
    --games-accent-soft: #ffb77d;
    --games-text: #ffffff;
    --games-shell-w: 30rem;
}

html:has(body.games-tron) {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    background: #000;
}

body.games-tron {
    margin: 0;
    min-height: 100dvh;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible; /* html is the scrollport — avoids dual-scroll trap with overscroll lock */
    -webkit-overflow-scrolling: touch;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    background-color: #000000 !important;
    color: var(--games-text);
    font-family: var(--main-font), 'Roboto Flex', sans-serif;
    font-weight: 400;
    color-scheme: dark;
}

/* Document-scrolling Tron pages (admin settings, etc.) */
html:has(body.games-tron:not([data-page="create-storefront-wizard"])) {
    overscroll-behavior-y: auto;
}

body.games-tron:not([data-page="create-storefront-wizard"]) {
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
}

body.games-tron.games-tron--play {
    overflow: hidden;
    height: 100dvh;
    touch-action: none;
}

/* Soft radial vignette — fixed, behind content (does not restack children) */
.games-tron-vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 90% 55% at 50% -10%, rgba(255, 107, 0, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 50% 110%, rgba(255, 107, 0, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 40%, #0c0c0c 0%, #050505 55%, #000 100%);
}

body.games-tron .nav-bar {
    z-index: 10000;
    background: rgba(0, 0, 0, 0.82) !important;
    border-bottom: 1px solid rgba(255, 107, 0, 0.22) !important;
    box-shadow: 0 0 24px rgba(255, 107, 0, 0.08);
}

/* —— Layout —— */
.games-tron-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--games-shell-w);
    margin: 0 auto;
    padding: 16px 16px 40px;
    box-sizing: border-box;
    overflow: visible;
    min-width: 0;
}

/* Create-storefront wizard: lock viewport, scroll inside shell (Leaflet-safe) */
html:has(body.games-tron[data-page="create-storefront-wizard"]) {
    height: 100%;
    height: 100dvh;
    overflow: hidden !important;
}

body.games-tron[data-page="create-storefront-wizard"] {
    height: 100%;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden !important;
    overscroll-behavior: none;
    touch-action: pan-y;
}

body.games-tron[data-page="create-storefront-wizard"] .games-tron-shell.wizard-scroll {
    height: calc(100dvh - var(--nav-bar-h, 56px));
    max-height: calc(100dvh - var(--nav-bar-h, 56px));
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
}

.games-tron-hero {
    text-align: center;
    margin-bottom: 22px;
    padding-top: 8px;
    overflow: hidden; /* clip glow so it never expands document width */
}

.games-tron-hero__orb {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    isolation: isolate;
    overflow: hidden; /* ::before must stay inside the orb */
    background:
        radial-gradient(ellipse 42% 55% at 28% 22%, rgba(255, 255, 255, 0.28) 0%, transparent 58%),
        radial-gradient(circle at 50% 110%, rgba(0, 0, 0, 0.85) 0%, transparent 55%),
        radial-gradient(circle at 50% 48%, #2c2c2c 0%, #161616 45%, #070707 100%);
    border: 1px solid rgba(255, 107, 0, 0.45);
    box-shadow:
        inset 0 -8px 16px rgba(0, 0, 0, 0.7),
        inset 0 5px 10px rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(255, 107, 0, 0.35),
        0 0 22px rgba(255, 107, 0, 0.35),
        0 0 40px rgba(255, 107, 0, 0.14);
    animation: games-tron-orb-throb 2.6s ease-in-out infinite;
}

.games-tron-hero__orb::before {
    content: '';
    position: absolute;
    inset: 0; /* was -40% — that expanded page scroll width past the screen */
    border-radius: 50%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(255, 107, 0, 0.35) 0%,
        rgba(255, 107, 0, 0.08) 40%,
        transparent 68%
    );
    filter: blur(4px);
    z-index: -1;
    pointer-events: none;
    animation: games-tron-orb-glow 2.6s ease-in-out infinite;
}

.games-tron-hero__orb i {
    font-size: 1.35rem;
    color: var(--games-accent-soft);
    text-shadow: 0 0 12px rgba(255, 107, 0, 0.55);
}

.games-tron-hero__title {
    margin: 0;
    font-size: clamp(1.35rem, 5vw, 1.75rem);
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
}

.games-tron-hero__tag {
    margin: 8px 0 0;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--games-accent-soft);
    opacity: 0.9;
}

@keyframes games-tron-orb-throb {
    0%, 100% {
        box-shadow:
            inset 0 -8px 16px rgba(0, 0, 0, 0.7),
            inset 0 5px 10px rgba(255, 255, 255, 0.08),
            0 0 0 1px rgba(255, 107, 0, 0.32),
            0 0 18px rgba(255, 107, 0, 0.28),
            0 0 36px rgba(255, 107, 0, 0.1);
    }
    50% {
        box-shadow:
            inset 0 -8px 16px rgba(0, 0, 0, 0.7),
            inset 0 5px 10px rgba(255, 255, 255, 0.1),
            0 0 0 1px rgba(255, 107, 0, 0.55),
            0 0 28px rgba(255, 107, 0, 0.45),
            0 0 52px rgba(255, 107, 0, 0.2);
    }
}

@keyframes games-tron-orb-glow {
    0%, 100% { opacity: 0.65; transform: scale(0.96); }
    50% { opacity: 1; transform: scale(1.04); }
}

/* —— Cards / panels —— */
.games-tron-card {
    background:
        linear-gradient(
            135deg,
            rgba(255, 107, 0, 0.08) 0%,
            rgba(255, 255, 255, 0.04) 42%,
            rgba(0, 0, 0, 0.4) 100%
        ),
        rgba(8, 8, 8, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 14px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 8px 28px rgba(0, 0, 0, 0.35);
}

.games-tron-label {
    display: block;
    color: rgba(255, 183, 125, 0.85);
    font-weight: 500;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 10px;
}

/* —— Preset tiles —— */
.games-tron-presets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.games-tron-presets--two {
    grid-template-columns: repeat(2, 1fr);
}

.games-tron-mode-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.games-tron-mode {
    flex: 1;
    padding: 12px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.45);
    font-family: inherit;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, color 0.2s, background 0.2s;
}

.games-tron-mode.active {
    color: #fff;
    border-color: rgba(255, 107, 0, 0.55);
    background:
        radial-gradient(ellipse 42% 55% at 28% 22%, rgba(255, 255, 255, 0.18) 0%, transparent 58%),
        rgba(0, 0, 0, 0.55);
    box-shadow:
        0 0 0 1px rgba(255, 107, 0, 0.3),
        0 0 16px rgba(255, 107, 0, 0.25);
}

/* —— Tapper play surface —— */
body.games-tron.games-tron--tapper {
    --tap-accent: var(--games-accent, #ff6b00);
}

.games-tron-tap-hud {
    position: fixed;
    top: calc(56px + 12px);
    left: 12px;
    right: 12px;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    pointer-events: none;
}

.games-tron-tap-chip {
    pointer-events: none;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 107, 0, 0.35);
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 0 14px rgba(255, 107, 0, 0.12);
}

.games-tron-tap-chip--timer {
    color: var(--tap-accent, #ff6b00);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-variant-numeric: tabular-nums;
}

.games-tron-tap-win {
    position: fixed;
    top: calc(56px + 56px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    text-align: center;
    pointer-events: none;
    width: min(90vw, 22rem);
}

.games-tron-tap-win__label {
    margin: 0;
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.games-tron-tap-win__value {
    margin: 6px 0 0;
    font-size: clamp(2.2rem, 10vw, 3.6rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    color: #ffb77d;
    text-shadow: 0 0 22px rgba(255, 107, 0, 0.45);
}

.games-tron-tap-scoreboard {
    position: fixed;
    left: 12px;
    bottom: 18px;
    z-index: 90;
    width: min(200px, 46vw);
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(135deg, rgba(255, 107, 0, 0.08), rgba(0, 0, 0, 0.55)),
        rgba(8, 8, 8, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.games-tron-tap-scoreboard__title {
    margin: 0 0 6px;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 183, 125, 0.7);
}

.games-tron-tap-score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.68rem;
}

.games-tron-tap-score-row:last-child {
    border-bottom: 0;
}

.games-tron-tap-score-row__name {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.games-tron-tap-score-row__val {
    color: var(--tap-accent, #ff6b00);
    font-weight: 700;
    flex-shrink: 0;
}

.games-tron-tap-zone {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.games-tron-tap-orb {
    width: min(72vw, 20rem);
    height: min(72vw, 20rem);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: clamp(4rem, 18vw, 6.5rem);
    cursor: pointer;
    user-select: none;
    position: relative;
    isolation: isolate;
    color: #fff;
    background:
        radial-gradient(ellipse 42% 55% at 28% 22%, rgba(255, 255, 255, 0.28) 0%, transparent 58%),
        radial-gradient(circle at 50% 110%, rgba(0, 0, 0, 0.75) 0%, transparent 55%),
        radial-gradient(circle at 50% 48%, color-mix(in srgb, var(--tap-accent) 55%, #2c2c2c) 0%, #161616 45%, #070707 100%);
    border: 1px solid color-mix(in srgb, var(--tap-accent) 55%, transparent);
    box-shadow:
        inset 0 -10px 20px rgba(0, 0, 0, 0.7),
        inset 0 6px 12px rgba(255, 255, 255, 0.08),
        0 0 0 1px color-mix(in srgb, var(--tap-accent) 35%, transparent),
        0 0 28px color-mix(in srgb, var(--tap-accent) 45%, transparent),
        0 0 56px color-mix(in srgb, var(--tap-accent) 22%, transparent);
    transition: transform 0.05s;
}

.games-tron-tap-orb::before {
    content: '';
    position: absolute;
    inset: -28%;
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(
        circle at 50% 50%,
        color-mix(in srgb, var(--tap-accent) 40%, transparent) 0%,
        color-mix(in srgb, var(--tap-accent) 10%, transparent) 42%,
        transparent 70%
    );
    filter: blur(4px);
    animation: games-tron-orb-glow 2.4s ease-in-out infinite;
}

.games-tron-tap-orb:active {
    transform: scale(0.94);
}

.games-tron-tap-bar {
    position: fixed;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 100%;
    background: var(--tap-accent, #ff6b00);
    box-shadow: 0 0 12px color-mix(in srgb, var(--tap-accent, #ff6b00) 50%, transparent);
    transition: width 1s linear;
    z-index: 95;
}

.games-tron-particle {
    position: fixed;
    pointer-events: none;
    animation: games-tron-fountain 1s cubic-bezier(0.15, 0.85, 0.3, 1) forwards;
    font-size: 3.5rem;
    z-index: 100;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

@keyframes games-tron-fountain {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
    15% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) rotate(var(--tr)) scale(0.5);
        opacity: 0;
    }
}

.games-tron-preset {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    padding: 14px 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.45);
    color: rgba(255, 255, 255, 0.88);
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.15s;
}

.games-tron-preset:active {
    transform: scale(0.97);
}

.games-tron-preset__icon {
    display: block;
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.55);
}

.games-tron-preset__emoji {
    font-size: 1.75rem;
    line-height: 1;
    filter: none;
    text-shadow: none;
    color: inherit;
}

.games-tron-preset__name {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.games-tron-preset__meta {
    display: block;
    margin-top: 4px;
    font-size: 0.55rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.games-tron-preset.active {
    color: #fff;
    border-color: rgba(255, 107, 0, 0.55);
    background:
        radial-gradient(ellipse 42% 55% at 28% 22%, rgba(255, 255, 255, 0.22) 0%, transparent 58%),
        radial-gradient(circle at 50% 110%, rgba(0, 0, 0, 0.85) 0%, transparent 55%),
        radial-gradient(circle at 50% 48%, #2c2c2c 0%, #161616 45%, #070707 100%);
    box-shadow:
        inset 0 -6px 14px rgba(0, 0, 0, 0.65),
        inset 0 4px 8px rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(255, 107, 0, 0.4),
        0 0 18px rgba(255, 107, 0, 0.32);
}

.games-tron-preset.active::before {
    content: '';
    position: absolute;
    inset: -30%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(
        ellipse 70% 80% at 50% 55%,
        rgba(255, 107, 0, 0.4) 0%,
        rgba(255, 107, 0, 0.1) 42%,
        transparent 70%
    );
    filter: blur(2px);
}

.games-tron-preset.active .games-tron-preset__icon:not(.games-tron-preset__emoji) {
    color: var(--games-accent-soft);
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.5);
}

.games-tron-preset.active .games-tron-preset__emoji {
    color: inherit;
    text-shadow: none;
    transform: scale(1.06);
}

.games-tron-preset.active .games-tron-preset__meta {
    color: rgba(255, 183, 125, 0.75);
}

/* —— Forms —— */
.games-tron-field {
    margin-bottom: 14px;
}

.games-tron-field:last-child {
    margin-bottom: 0;
}

.games-tron-input,
.games-tron-select {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.075) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #fff !important;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.games-tron-select {
    background-image: linear-gradient(45deg, transparent 50%, rgba(255, 183, 125, 0.8) 50%),
        linear-gradient(135deg, rgba(255, 183, 125, 0.8) 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 36px;
}

.games-tron-input:focus,
.games-tron-select:focus {
    outline: none;
    border-color: rgba(255, 107, 0, 0.55) !important;
    box-shadow: 0 0 0 1px rgba(255, 107, 0, 0.25), 0 0 16px rgba(255, 107, 0, 0.18);
}

.games-tron-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.35);
}

.games-tron-toggle__title {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.games-tron-toggle__sub {
    margin: 4px 0 0;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.games-tron-toggle input[type="checkbox"] {
    width: 1.35rem;
    height: 1.35rem;
    accent-color: #ff6b00;
    flex-shrink: 0;
}

/* —— Buttons —— */
.games-tron-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 14px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 107, 0, 0.45);
    background:
        radial-gradient(ellipse 50% 80% at 50% 0%, rgba(255, 255, 255, 0.12) 0%, transparent 55%),
        rgba(0, 0, 0, 0.65);
    color: #fff;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    white-space: normal;
    line-height: 1.35;
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(255, 107, 0, 0.2),
        0 0 20px rgba(255, 107, 0, 0.22);
    transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}

.games-tron-btn:active {
    transform: scale(0.98);
    border-color: rgba(255, 107, 0, 0.7);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 107, 0, 0.4),
        0 0 28px rgba(255, 107, 0, 0.4);
}

.games-tron-btn--chrome {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 183, 125, 0.65) !important;
    background:
        radial-gradient(ellipse 70% 80% at 50% -15%, rgba(255, 255, 255, 0.4) 0%, transparent 65%),
        linear-gradient(180deg, rgba(255, 107, 0, 0.38) 0%, rgba(26, 10, 0, 0.85) 100%),
        rgba(10, 5, 0, 0.9) !important;
    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.6),
        inset 0 -3px 8px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 107, 0, 0.35),
        0 0 24px rgba(255, 107, 0, 0.45) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    font-weight: 800;
    letter-spacing: 0.12em;
}

.games-tron-btn--chrome:hover {
    border-color: rgba(255, 220, 180, 0.9) !important;
    box-shadow:
        inset 0 1px 3px rgba(255, 255, 255, 0.8),
        inset 0 -3px 8px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 107, 0, 0.6),
        0 0 32px rgba(255, 107, 0, 0.65) !important;
}

.games-tron-btn--chrome:active {
    transform: scale(0.97);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 16px rgba(255, 107, 0, 0.4) !important;
}

.games-tron-btn--chrome .games-tron-btn__text {
    background: linear-gradient(
        165deg,
        #ffffff 0%,
        #ffe0c2 20%,
        #ffb77d 45%,
        #ff8a3d 70%,
        #ffffff 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
}

.games-tron-btn--ghost {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.75);
}

.games-tron-btn--ghost:active {
    border-color: rgba(255, 107, 0, 0.4);
    color: #fff;
}

.games-tron-btn--sm {
    padding: 10px 14px;
    font-size: 0.65rem;
}

.games-tron-btn--pay {
    display: inline-flex;
    width: auto;
    padding: 6px 12px;
    font-size: 0.58rem;
    border-radius: 999px;
}

.games-tron-wait {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    text-align: center;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 183, 125, 0.85);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    animation: games-tron-pulse 2s ease-in-out infinite;
}

@keyframes games-tron-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* —— Meta rows —— */
.games-tron-meta {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.35);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.games-tron-meta__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
}

.games-tron-meta__key {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.games-tron-meta__val {
    color: #fff;
    font-weight: 600;
}

.games-tron-meta__val--accent {
    color: var(--games-accent);
    text-shadow: 0 0 10px rgba(255, 107, 0, 0.35);
}

/* —— Player / ledger rows —— */
.games-tron-player {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.78rem;
}

.games-tron-player--dim {
    opacity: 0.4;
    border-color: rgba(255, 255, 255, 0.06);
}

.games-tron-player--paid {
    opacity: 0.5;
}

.games-tron-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.games-tron-chip--ready {
    color: var(--games-accent-soft);
    background: rgba(255, 107, 0, 0.12);
    border: 1px solid rgba(255, 107, 0, 0.35);
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.15);
}

.games-tron-chip--lobby {
    color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.games-tron-chip--paid {
    color: #25d366;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.games-tron-rank {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--games-accent-soft);
    border: 1px solid rgba(255, 107, 0, 0.35);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.15);
}

/* —— Play HUD / canvas —— */
.games-tron-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 107, 0, 0.08) 0%, transparent 50%),
        rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.games-tron-overlay.hidden,
.games-tron-play.hidden,
.hidden {
    display: none !important;
}

.games-tron-panel {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.games-tron-countdown {
    margin: 0;
    padding: 0 12px;
    font-family: var(--logo-font, 'Poppins'), 'Poppins', sans-serif;
    font-size: clamp(7.5rem, 34vw, 12rem);
    font-weight: 900;
    font-style: normal;
    letter-spacing: -0.04em;
    line-height: 0.9;
    text-align: center;
    text-transform: uppercase;
    /* Orb-like shiny metal: bright specular → orange body → deep shade */
    background:
        linear-gradient(
            165deg,
            rgba(255, 255, 255, 0.92) 0%,
            #ffe0c2 14%,
            #ffb77d 28%,
            #ff6b00 48%,
            #9a3a00 72%,
            #1a0a00 100%
        );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    /* Soft rim + depth only — no heavy bloom */
    filter:
        drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.35))
        drop-shadow(0 2px 0 rgba(0, 0, 0, 0.65))
        drop-shadow(0 6px 12px rgba(0, 0, 0, 0.45))
        drop-shadow(0 0 10px rgba(255, 107, 0, 0.28));
    user-select: none;
    pointer-events: none;
}

.games-tron-countdown--go {
    background:
        linear-gradient(
            165deg,
            #ffffff 0%,
            #fff0e0 16%,
            #ffb77d 36%,
            #ff8a3d 58%,
            #ff6b00 78%,
            #4a1c00 100%
        );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter:
        drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.45))
        drop-shadow(0 2px 0 rgba(0, 0, 0, 0.6))
        drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4))
        drop-shadow(0 0 12px rgba(255, 183, 125, 0.35));
}

.games-tron-countdown--pop {
    animation: games-tron-countdown-pop 0.48s cubic-bezier(0.16, 0.84, 0.28, 1.2) both;
}

.games-tron-countdown-tag {
    margin: 0 0 10px;
    font-family: var(--main-font), 'Roboto Flex', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 183, 125, 0.85);
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

/* Compact variant (in-game timers that reused the countdown class) */
.games-tron-countdown--inline {
    font-size: clamp(2rem, 10vw, 2.75rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    background: none;
    -webkit-text-fill-color: #ff6b00;
    color: #ff6b00;
    filter: none;
    text-shadow:
        0 -1px 0 rgba(255, 255, 255, 0.25),
        0 1px 0 rgba(0, 0, 0, 0.55),
        0 0 10px rgba(255, 107, 0, 0.3);
}

@keyframes games-tron-countdown-pop {
    0% {
        transform: scale(0.45);
        opacity: 0;
    }
    55% {
        transform: scale(1.08);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.games-tron-play {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: calc(100dvh - 56px);
    padding: 10px;
    box-sizing: border-box;
}

.games-tron-play-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 380px;
}

.games-tron-live {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(135deg, rgba(255, 107, 0, 0.08), rgba(0, 0, 0, 0.45)),
        rgba(8, 8, 8, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.games-tron-live__label {
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.55rem;
}

.games-tron-leaderboard {
    width: 100%;
    max-width: 400px;
    margin-top: 12px;
    padding: 11px 13px;
    box-sizing: border-box;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(135deg, rgba(255, 107, 0, 0.07), rgba(0, 0, 0, 0.45)),
        rgba(8, 8, 8, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-height: 100px;
    overflow-y: auto;
}

.games-tron-leaderboard__title {
    margin: 0 0 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 183, 125, 0.7);
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.games-tron-leaderboard__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.68rem;
}

.games-tron-leaderboard__row:last-child {
    border-bottom: 0;
}

.games-tron-utility {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.78);
    font-family: inherit;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.games-tron-utility--danger {
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5;
}

.games-tron-utility--accent {
    border-color: rgba(255, 107, 0, 0.4);
    color: var(--games-accent-soft);
    box-shadow: 0 0 14px rgba(255, 107, 0, 0.12);
}

.games-tron-status {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.6rem;
    letter-spacing: 0.06em;
}

.games-tron-crash-toast {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 250;
    padding: 9px 14px;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.5);
    background: rgba(20, 4, 4, 0.9);
    color: #fca5a5;
    font-size: 0.68rem;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
    animation: games-tron-toast-in 0.25s ease-out;
}

@keyframes games-tron-toast-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.games-tron-hud {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.games-tron-hud__card {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.games-tron-hud__label {
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.games-tron-hud__value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.games-tron-hud__value--timer {
    color: #ff6b00;
    text-shadow: 0 0 12px rgba(255, 107, 0, 0.4);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.games-tron-canvas-wrap {
    position: relative;
    width: 100%;
    max-width: 380px;
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    overflow: hidden;
    background: #020205;
    border: 1px solid rgba(255, 107, 0, 0.28);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.06),
        0 0 32px rgba(255, 107, 0, 0.18),
        inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.games-tron-canvas-wrap canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.games-tron-canvas-wrap--square {
    aspect-ratio: 1 / 1;
    max-width: 400px;
}

.games-tron-canvas-wrap--square canvas {
    max-width: 100%;
    max-height: min(56dvh, 400px);
}

.games-tron-crash-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 40;
    box-shadow: inset 0 0 100px rgba(255, 0, 0, 0);
    transition: box-shadow 0.1s ease-out;
}

.games-tron-crash-vignette.crashed {
    box-shadow: inset 0 0 100px rgba(255, 0, 0, 0.7);
    animation: games-tron-crash-flash 0.5s ease-out;
}

@keyframes games-tron-crash-flash {
    0% { box-shadow: inset 0 0 120px rgba(255, 0, 0, 0.9); }
    100% { box-shadow: inset 0 0 100px rgba(255, 0, 0, 0); }
}

.games-tron-controls {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    padding: 12px 4px 4px;
}

.games-tron-steer {
    width: 4rem;
    height: 4rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid rgba(255, 107, 0, 0.35);
    background:
        radial-gradient(ellipse 50% 60% at 30% 25%, rgba(255, 255, 255, 0.14) 0%, transparent 55%),
        rgba(0, 0, 0, 0.55);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 16px rgba(255, 107, 0, 0.15);
    cursor: pointer;
    user-select: none;
    transition: transform 0.12s, box-shadow 0.15s, border-color 0.15s;
}

.games-tron-steer:active {
    transform: scale(0.94);
    border-color: rgba(255, 107, 0, 0.7);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 22px rgba(255, 107, 0, 0.4);
}

.games-tron-steer span {
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.games-tron-controls__hint {
    flex: 1;
    max-width: 120px;
    text-align: center;
}

.games-tron-controls__hint p {
    margin: 0;
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.games-tron-controls__hint p + p {
    margin-top: 4px;
    color: rgba(255, 183, 125, 0.7);
    letter-spacing: 0.06em;
}

.games-tron-prize-hero {
    text-align: center;
    margin-bottom: 4px;
}

.games-tron-prize-hero__label {
    margin: 0;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.games-tron-prize-hero__value {
    margin: 8px 0 0;
    font-size: clamp(1.8rem, 8vw, 2.4rem);
    font-weight: 300;
    letter-spacing: 0.04em;
    color: #ff6b00;
    text-shadow: 0 0 20px rgba(255, 107, 0, 0.4);
}

.games-tron-section-title {
    margin: 8px 0 12px;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 183, 125, 0.75);
}

.games-tron-qr-modal h2 {
    font-weight: 300;
    letter-spacing: 0.2em;
}

.games-tron-qr-frame {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 107, 0, 0.4);
    background: #fff;
    box-shadow: 0 0 40px rgba(255, 107, 0, 0.25);
}

/* —— Trivia setup / play —— */
.games-tron-library-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(0, 0, 0, 0.35);
}

.games-tron-library-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.games-tron-details {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.games-tron-details > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 14px;
    cursor: pointer;
    color: rgba(255, 183, 125, 0.85);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.games-tron-details > summary::-webkit-details-marker {
    display: none;
}

.games-tron-details > summary::after {
    content: '+';
    color: #ff6b00;
    font-size: 1rem;
    font-weight: 300;
}

.games-tron-details[open] > summary::after {
    content: '−';
}

.games-tron-details__body {
    padding: 0 14px 14px;
}

.games-tron-flow-step {
    display: grid;
    grid-template-columns: 1.8rem 1fr;
    gap: 10px;
    align-items: start;
}

.games-tron-flow-step__number {
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffb77d;
    border: 1px solid rgba(255, 107, 0, 0.38);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.14);
    font-size: 0.65rem;
    font-weight: 700;
}

.games-tron-question-editor {
    position: relative;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(135deg, rgba(255, 107, 0, 0.06), transparent 45%),
        rgba(0, 0, 0, 0.38);
}

.games-tron-answer-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.32);
}

.games-tron-answer-row input[type="radio"] {
    width: 1rem;
    height: 1rem;
    accent-color: #25d366;
    flex-shrink: 0;
}

.games-tron-option {
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background:
        linear-gradient(135deg, rgba(255, 107, 0, 0.05), rgba(0, 0, 0, 0.3)),
        rgba(255, 255, 255, 0.035);
    color: #fff;
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.games-tron-option:active {
    transform: scale(0.985);
}

.games-tron-option.selected {
    border-color: rgba(255, 107, 0, 0.65);
    background: rgba(255, 107, 0, 0.12);
    box-shadow: 0 0 18px rgba(255, 107, 0, 0.2);
}

.games-tron-option.correct-anim,
.games-tron-option.correct {
    border-color: #25d366 !important;
    background: rgba(37, 211, 102, 0.16) !important;
    color: #7cf0a4;
    animation: games-tron-answer-correct 0.45s ease;
}

.games-tron-option.wrong-anim,
.games-tron-option.incorrect {
    border-color: #ef4444 !important;
    background: rgba(239, 68, 68, 0.16) !important;
    color: #fca5a5;
    animation: games-tron-answer-wrong 0.35s ease;
}

@keyframes games-tron-answer-correct {
    50% { transform: scale(1.015); box-shadow: 0 0 20px rgba(37, 211, 102, 0.28); }
}

@keyframes games-tron-answer-wrong {
    25% { transform: translateX(-4px); }
    50% { transform: translateX(4px); }
    75% { transform: translateX(-3px); }
}

.games-tron-progress {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(0, 0, 0, 0.5);
}

.games-tron-progress__fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: #ff6b00;
    box-shadow: 0 0 12px rgba(255, 107, 0, 0.55);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.games-tron-loader {
    width: 2.25rem;
    height: 2.25rem;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ff6b00;
    border-radius: 50%;
    animation: games-tron-spin 0.8s linear infinite;
}

@keyframes games-tron-spin {
    to { transform: rotate(360deg); }
}

/* —— Community surfaces (shared glass cards / tiles) —— */
body.games-tron .ui-card {
    background:
        radial-gradient(ellipse 55% 50% at 12% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 55%),
        rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 107, 0, 0.35);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(255, 107, 0, 0.12),
        0 12px 28px rgba(0, 0, 0, 0.45);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

body.games-tron .comm-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    aspect-ratio: 1;
    padding: 10px 6px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    transition: border-color 0.15s, box-shadow 0.2s, transform 0.15s;
}

body.games-tron .comm-tile:active {
    transform: scale(0.97);
}

body.games-tron .comm-tile:hover {
    border-color: rgba(255, 107, 0, 0.45);
    box-shadow: 0 0 16px rgba(255, 107, 0, 0.2);
}

body.games-tron .comm-tile i {
    color: #ff6b00;
    font-size: 1.25rem;
    margin-bottom: 6px;
}

body.games-tron .comm-tile span {
    font-size: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.2;
    color: #fff;
}

body.games-tron .comm-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.5rem;
    z-index: 50;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 107, 0, 0.45);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 0 22px rgba(255, 107, 0, 0.35);
    transition: transform 0.15s, box-shadow 0.2s;
}

body.games-tron .comm-fab:active {
    transform: scale(0.95);
}

body.games-tron .comm-sheet {
    background: rgba(0, 0, 0, 0.92);
    border-top: 1px solid rgba(255, 107, 0, 0.25);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55);
}

body.games-tron.community-landing {
    overflow: hidden;
}

body.games-tron.community-landing .games-tron-vignette {
    opacity: 0.35;
    pointer-events: none;
}

/* —— Storefront create wizard —— */
.games-tron-step {
    display: none;
}

.games-tron-step.active {
    display: block;
    animation: games-tron-fade-up 0.28s ease;
}

@keyframes games-tron-fade-up {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.games-tron-choice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.15s;
}

.games-tron-choice:active {
    transform: scale(0.985);
}

.games-tron-choice.selected {
    border-color: rgba(255, 107, 0, 0.55);
    background:
        radial-gradient(ellipse 42% 55% at 18% 18%, rgba(255, 255, 255, 0.14) 0%, transparent 58%),
        rgba(0, 0, 0, 0.55);
    box-shadow:
        0 0 0 1px rgba(255, 107, 0, 0.28),
        0 0 18px rgba(255, 107, 0, 0.22);
}

.games-tron-choice--stack {
    display: block;
    flex-direction: unset;
}

.games-tron-choice--stack .games-tron-choice__desc {
    margin-top: 4px;
}

.games-tron-choice__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffb77d;
    border: 1px solid rgba(255, 107, 0, 0.35);
    background: rgba(255, 107, 0, 0.12);
    box-shadow: 0 0 14px rgba(255, 107, 0, 0.15);
}

.games-tron-choice__title {
    margin: 0;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
}

.games-tron-choice__desc {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.68rem;
    line-height: 1.45;
}

/* Compact bottom sheet — fulfillment / order-type pickers */
.games-tron-sheet {
    width: 100%;
    max-width: var(--games-shell-w, 30rem);
    margin: 0 auto;
    border-radius: 1.25rem 1.25rem 0 0;
    border-bottom: none;
    padding: 16px 10px max(16px, env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
    background:
        radial-gradient(ellipse 60% 38% at 50% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse 70% 40% at 50% 110%, rgba(255, 107, 0, 0.12) 0%, transparent 52%),
        #000000;
    border: 1px solid rgba(255, 107, 0, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 -16px 48px rgba(0, 0, 0, 0.85),
        0 0 28px rgba(255, 107, 0, 0.14);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.games-tron-sheet__header {
    text-align: center;
    margin-bottom: 14px;
    padding: 0 6px;
}

.games-tron-sheet__header .games-tron-hero__orb {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 10px;
}

.games-tron-sheet__header .games-tron-hero__orb i {
    font-size: 1.05rem;
}

.games-tron-sheet__title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.35;
}

.games-tron-sheet .games-tron-choice {
    width: 100%;
    padding: 14px 14px;
    gap: 12px;
    margin: 0;
    background: #0a0a0a;
    border: 1px solid rgba(255, 107, 0, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 0 0 1px rgba(255, 107, 0, 0.08);
}

.games-tron-sheet .games-tron-choice:active {
    background: #111111;
    border-color: rgba(255, 107, 0, 0.5);
}

.games-tron-sheet .games-tron-choice__icon {
    width: 2.5rem;
    height: 2.5rem;
}

.games-tron-sheet .games-tron-choice__icon i {
    font-size: 0.95rem;
}

.games-tron-sheet .games-tron-choice__title {
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
}

.games-tron-sheet .games-tron-choice__desc {
    margin-top: 3px;
    font-size: 0.68rem;
    line-height: 1.4;
}

.games-tron-sheet__choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.games-tron-sheet .games-tron-btn--ghost {
    background: #0a0a0a;
    border-color: rgba(255, 255, 255, 0.16);
}

.games-tron-wizard-nav {
    display: flex;
    gap: 10px;
    padding-top: 8px;
}

.games-tron-wizard-nav .games-tron-btn {
    width: auto;
    flex: 2;
}

.games-tron-wizard-nav .games-tron-btn--ghost,
.games-tron-wizard-nav .w-1\/3 {
    flex: 1;
}

.games-tron-wizard-nav .games-tron-btn:only-child {
    flex: 1;
    width: 100%;
}

.games-tron-pin-box {
    border: 1px solid rgba(255, 107, 0, 0.28);
    border-radius: 14px;
    padding: 12px;
    background: rgba(255, 107, 0, 0.05);
}

/* Embedded wizard map: allow one-finger page scroll; pan only when toggled */
body.games-tron[data-page="create-storefront-wizard"] #wizardStoreMap.leaflet-container {
    touch-action: pan-y;
    background: #0a0a0a;
}

body.games-tron[data-page="create-storefront-wizard"] #wizardStoreMap.leaflet-container.wizard-map--panning {
    touch-action: none;
}

.games-tron-review-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.games-tron-review-row:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.games-tron-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 107, 0, 0.2);
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.games-tron-dock__inner {
    width: 100%;
    max-width: var(--games-shell-w, 30rem);
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.games-tron-dock__inner .games-tron-btn {
    width: auto;
    flex: 2;
}

.games-tron-dock__inner .games-tron-btn--ghost {
    flex: 1;
}

.games-tron-progress-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

.games-tron-progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.games-tron-progress-dot.active {
    background: #ff6b00;
    box-shadow: 0 0 10px rgba(255, 107, 0, 0.55);
}

.games-tron-progress-dot.done {
    background: #25d366;
}

.games-tron-tool-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.games-tron-tool-item input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 2px;
    accent-color: #ff6b00;
    flex-shrink: 0;
}

.games-tron-tool-item:has(input:checked) {
    border-color: rgba(255, 107, 0, 0.45);
    background: rgba(255, 107, 0, 0.1);
}

.games-tron-mgmt-toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.games-tron-mgmt-toggle input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 2px;
    accent-color: #ff6b00;
    flex-shrink: 0;
}

.games-tron-tool-pack.is-muted {
    opacity: 0.38;
    filter: grayscale(0.45);
    pointer-events: none;
}

.games-tron-card.is-collapsed {
    display: none;
}

.tools-next-step {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tools-more-link {
    appearance: none;
    background: none;
    border: 0;
    padding: 0.35rem 0;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 183, 125, 0.85);
    text-align: left;
    cursor: pointer;
}

.tools-more-link:active {
    color: #ffb77d;
}

#saveModulesBtn.is-hidden-save {
    display: none;
}

.dash-sales-spark {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 36px;
    width: 100%;
}

.dash-sales-spark span {
    flex: 1;
    min-height: 3px;
    border-radius: 3px 3px 0 0;
    background: rgba(255, 107, 0, 0.35);
}

body.games-tron .form-label {
    display: block;
    color: rgba(255, 183, 125, 0.85);
    font-weight: 500;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 8px;
}

body.games-tron .form-input-glass,
body.games-tron select.form-input-glass,
body.games-tron textarea.form-input-glass {
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.075) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #fff !important;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-family: inherit;
}

body.games-tron .form-input-glass:focus {
    outline: none;
    border-color: rgba(255, 107, 0, 0.55) !important;
    box-shadow: 0 0 0 1px rgba(255, 107, 0, 0.25), 0 0 16px rgba(255, 107, 0, 0.18);
}

@media (min-width: 800px) {
    .games-tron-play {
        flex-direction: row;
        gap: 30px;
    }
    .games-tron-canvas-wrap {
        max-width: 400px;
    }
    .games-tron-leaderboard {
        width: 220px;
        max-height: 400px;
        margin-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .games-tron-hero__orb,
    .games-tron-hero__orb::before,
    .games-tron-wait {
        animation: none !important;
    }
}

/* —— Surfaces re-assert (matches /css/tron_surfaces.css) —— */
body.games-tron .ui-card,
body.games-tron .glass-card,
body.games-tron .form-section {
    border: 1px solid rgba(255, 107, 0, 0.35) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(255, 107, 0, 0.12),
        0 12px 28px rgba(0, 0, 0, 0.45) !important;
}
body.games-tron .games-tron-input,
body.games-tron .games-tron-select,
body.games-tron .form-input-glass,
body.games-tron .field-input,
body.games-tron .form-control,
body.games-tron input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="image"]):not([type="color"]),
body.games-tron textarea,
body.games-tron select {
    background: rgba(255, 255, 255, 0.075) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #fff !important;
    color-scheme: dark;
}

body.games-tron input[type="checkbox"],
body.games-tron input[type="radio"] {
    accent-color: #ff6b00;
}

/* Native <select> popup often paints a light OS menu; white text from the closed
   field then becomes invisible until hover. Force readable option chrome. */
body.games-tron select option,
body.games-tron select optgroup {
    background-color: #ffffff !important;
    color: #111111 !important;
}

body.games-tron select option:checked,
body.games-tron select option:hover {
    background-color: #ffe0b2 !important;
    color: #111111 !important;
}
