/* Scorpion Arena — cinematic interface v2
   Presentation only. Game, wallet and payment behaviour stays in the existing modules. */

:root {
    --bg: #050505;
    --panel: rgba(16, 16, 17, .78);
    --panel-strong: rgba(12, 12, 13, .94);
    --panel-elevated: rgba(25, 23, 21, .88);
    --border: rgba(255, 255, 255, .105);
    --border-gold: rgba(255, 180, 46, .34);
    --gold: #ffb52e;
    --gold-light: #ffe0a0;
    --amber: #ff7a1a;
    --purple: #8d65ff;
    --green: #52e5a0;
    --red: #ff6477;
    --blue: #59b9ff;
    --text: #fffaf1;
    --muted: #aaa6a1;
    --shadow: 0 28px 80px rgba(0, 0, 0, .68);
    --soft-shadow: 0 14px 38px rgba(0, 0, 0, .38);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --ease-out: cubic-bezier(.22, 1, .36, 1);
}

html { background: #050505; }

body {
    background: #050505;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding-bottom: calc(118px + env(safe-area-inset-bottom));
}

body::before {
    z-index: -2;
    opacity: .13;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 75%);
}

button, input, summary { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }
button:focus-visible, input:focus-visible, summary:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.arena-atmosphere {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(3,3,3,.10), rgba(5,5,5,.78) 43%, #050505 88%),
        url("/assets/scorpion-arena-bg-v2.webp") center top / min(100%, 760px) auto no-repeat,
        #050505;
}

.arena-atmosphere::before {
    content: "";
    position: absolute;
    width: 80vw;
    height: 80vw;
    top: 7vh;
    left: 50%;
    border-radius: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(255,130,27,.11), transparent 68%);
    filter: blur(16px);
    animation: arenaBreathe 8s ease-in-out infinite;
}

.arena-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 18%, transparent 7%, rgba(0,0,0,.08) 48%, rgba(0,0,0,.82) 105%),
        linear-gradient(90deg, rgba(0,0,0,.35), transparent 18%, transparent 82%, rgba(0,0,0,.35));
}

.arena-embers { position: absolute; inset: 0; overflow: hidden; }
.arena-ember {
    position: absolute;
    bottom: -20px;
    width: var(--ember-size, 3px);
    height: var(--ember-size, 3px);
    border-radius: 50%;
    background: #ffc461;
    box-shadow: 0 0 10px #ff7418, 0 0 18px rgba(255,116,24,.5);
    opacity: 0;
    animation: emberRise var(--ember-time, 9s) linear var(--ember-delay, 0s) infinite;
}

@keyframes emberRise {
    0% { opacity: 0; transform: translate3d(0,0,0) scale(.5); }
    12% { opacity: .75; }
    72% { opacity: .35; }
    100% { opacity: 0; transform: translate3d(var(--ember-drift, 20px), -105vh, 0) scale(1.3); }
}
@keyframes arenaBreathe { 50% { opacity: .55; transform: translateX(-50%) scale(1.12); } }

.app {
    width: min(100%, 1120px);
    padding: max(15px, env(safe-area-inset-top)) 14px 112px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 15;
    min-height: 64px;
    margin: 0 -4px 16px;
    padding: 9px 4px;
    background: linear-gradient(180deg, rgba(5,5,5,.96) 0%, rgba(5,5,5,.72) 72%, transparent 100%);
    backdrop-filter: blur(10px);
}

.brand { gap: 10px; }
.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    border: 1px solid rgba(255,181,46,.34);
    background: linear-gradient(145deg, rgba(255,181,46,.23), rgba(38,24,11,.88));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 10px 28px rgba(255,122,26,.14);
}
.brand-logo svg { width: 28px; height: 28px; fill: var(--gold); filter: drop-shadow(0 0 8px rgba(255,181,46,.36)); }
.brand-title { font-size: 15px; font-weight: 950; letter-spacing: .13em; }
.brand-subtitle { margin-top: 3px; color: #7d7974; font-size: 10px; letter-spacing: .04em; }

.profile-chip {
    min-width: 45px;
    height: 45px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 25px rgba(0,0,0,.25);
    color: var(--text);
    transition: transform .18s ease, border-color .18s ease;
}
.profile-chip:active { transform: scale(.95); border-color: var(--border-gold); }
#profileName { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 800; }

.hero {
    min-height: min(66vh, 570px);
    align-items: end;
    isolation: isolate;
    padding: clamp(140px, 42vh, 310px) clamp(20px, 5vw, 48px) 28px;
    border: 1px solid rgba(255,181,46,.25);
    border-radius: 30px;
    background:
        linear-gradient(180deg, transparent 0%, rgba(6,6,6,.28) 35%, rgba(8,8,8,.96) 76%),
        linear-gradient(120deg, rgba(255,134,25,.09), transparent 42%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.58);
}
.hero::before {
    width: 420px;
    height: 420px;
    right: -210px;
    top: -180px;
    background: radial-gradient(circle, rgba(255,144,28,.28), transparent 70%);
    filter: blur(18px);
}
.hero::after {
    content: "";
    inset: 0;
    right: auto;
    bottom: auto;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    opacity: .42;
    background: linear-gradient(115deg, rgba(255,255,255,.07), transparent 25%, transparent 72%, rgba(255,154,42,.07));
    transform: none;
    filter: none;
    pointer-events: none;
}
.hero-content { max-width: 690px; }
.eyebrow {
    gap: 9px;
    padding: 7px 11px;
    border: 1px solid rgba(82,229,160,.24);
    color: #a7f8cf;
    background: rgba(8,18,13,.72);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
    font-size: 11px;
    letter-spacing: .1em;
}
.live-pulse {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(82,229,160,.55);
    animation: livePulse 2s ease-out infinite;
}
@keyframes livePulse { 70% { box-shadow: 0 0 0 7px rgba(82,229,160,0); } }

h1 {
    margin: 15px 0 11px;
    max-width: 620px;
    font-size: clamp(43px, 8vw, 76px);
    line-height: .92;
    letter-spacing: -.055em;
    text-shadow: 0 3px 28px rgba(0,0,0,.64);
}
.gradient-text {
    display: block;
    background: linear-gradient(100deg, #fff1c9 0%, #ffb52e 40%, #ff7a1a 92%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 6px 18px rgba(255,126,23,.18));
}
.hero-description { max-width: 520px; color: #bdb7ae; font-size: 15px; line-height: 1.55; }
.hero-actions { gap: 9px; margin-top: 19px; }

.btn, .wallet-action, .ak2-action, .wp-action, .ap-action,
.gift-main-action, .gift-deposit-quick, .deposit-submit,
.withdraw-clean-submit, .arena-preview-button, .stars-ton-buy {
    position: relative;
    overflow: hidden;
    min-height: 52px;
    border-radius: 16px;
    font-weight: 900;
    letter-spacing: -.01em;
    transition: transform .18s var(--ease-out), filter .18s ease, box-shadow .18s ease;
}
.btn::after, .wallet-action::after, .ak2-action::after, .wp-action::after,
.ap-action::after, .gift-main-action::after, .gift-deposit-quick::after,
.deposit-submit::after, .withdraw-clean-submit::after, .arena-preview-button::after,
.stars-ton-buy::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-130%) skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.20), transparent);
    transition: transform .55s var(--ease-out);
    pointer-events: none;
}
.btn:active, .wallet-action:active, .ak2-action:active, .wp-action:active,
.ap-action:active, .gift-main-action:active, .gift-deposit-quick:active,
.deposit-submit:active, .withdraw-clean-submit:active, .arena-preview-button:active,
.stars-ton-buy:active { transform: scale(.97); filter: brightness(1.05); }
.btn:hover::after, .wallet-action:hover::after, .ak2-action:hover::after,
.wp-action:hover::after, .ap-action:hover::after, .gift-main-action:hover::after,
.gift-deposit-quick:hover::after, .deposit-submit:hover::after,
.withdraw-clean-submit:hover::after, .arena-preview-button:hover::after,
.stars-ton-buy:hover::after { transform: translateX(130%) skewX(-18deg); }

.btn { min-height: 52px; padding: 0 17px; }
.btn-primary {
    flex: 1 1 220px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #130c02;
    background: linear-gradient(135deg, #ffe0a0 0%, #ffb52e 45%, #ff7a1a 100%);
    box-shadow: 0 12px 30px rgba(255,120,20,.24), inset 0 1px 0 rgba(255,255,255,.6);
}
.btn-secondary {
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.065);
    color: #eee8df;
    backdrop-filter: blur(16px);
}
.button-arrow { font-size: 22px; line-height: 1; }
.button-icon { color: var(--gold); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 17px; color: #77736e; font-size: 11px; font-weight: 700; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

.section { margin-top: 31px; }
.section-head { margin-bottom: 13px; }
.section-title { display: flex; align-items: center; gap: 9px; font-size: 18px; letter-spacing: -.02em; }
.section-index { color: var(--gold); font-size: 10px; letter-spacing: .08em; }
.section-link { display: inline-flex; align-items: center; gap: 7px; color: #8e8982; font-size: 11px; }
.section-link-button { padding: 7px 0; border: 0; background: transparent; cursor: pointer; }

.glass-card {
    border: 1px solid rgba(255,255,255,.09);
    background:
        linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.022)),
        rgba(8,8,8,.73);
    backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.055), var(--soft-shadow);
}
.stats-grid { gap: 9px; }
.stat-card { min-height: 106px; padding: 14px; border-radius: 19px; }
.stat-icon { margin-bottom: 10px; font-size: 19px; filter: saturate(.8); }
.stat-value { font-size: 21px; letter-spacing: -.035em; }
.stat-label { color: #807c77; font-size: 11px; }

.games-grid { gap: 10px; }
.game-card {
    min-height: 218px;
    padding: 17px;
    border-radius: 24px;
    isolation: isolate;
    background:
        linear-gradient(155deg, rgba(255,148,36,.12), transparent 46%),
        linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.022)),
        rgba(8,8,8,.84);
    transition: transform .28s var(--ease-out), border-color .28s ease, box-shadow .28s ease;
}
.game-card:nth-child(2n) { background: linear-gradient(155deg, rgba(74,153,255,.14), transparent 46%), linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.022)), rgba(8,8,8,.84); }
.game-card:nth-child(3n) { background: linear-gradient(155deg, rgba(141,101,255,.16), transparent 46%), linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.022)), rgba(8,8,8,.84); }
.game-card::before {
    content: "PLAY";
    position: absolute;
    right: 14px;
    bottom: 15px;
    color: rgba(255,255,255,.18);
    font-size: 10px;
    font-weight: 950;
    letter-spacing: .15em;
}
.game-card::after { width: 150px; height: 150px; right: -60px; top: -60px; background: rgba(255,160,44,.14); filter: blur(8px); }
.game-card:active { transform: scale(.975); }
.game-icon {
    width: 62px;
    height: 62px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,.13), rgba(255,255,255,.035));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 12px 28px rgba(0,0,0,.3);
    font-size: 29px;
}
.game-name { margin-top: 20px; font-size: 19px; letter-spacing: -.025em; }
.game-meta { color: #85817c; }
.game-status { margin-top: 16px; background: rgba(82,229,160,.09); color: #87edbc; }

.wallet { gap: 10px; }
.balance-card, .mission-card { position: relative; overflow: hidden; padding: 21px; border-radius: 25px; }
.balance-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: -100px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,169,45,.18), transparent 68%);
    pointer-events: none;
}
.balance-label { color: #8b8781; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.balance-value { margin-top: 8px; font-size: clamp(35px, 7vw, 54px); font-variant-numeric: tabular-nums; }
.balance-currency { color: var(--gold); }
.wallet-actions { grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 20px; }
.wallet-action { height: 48px; border-color: rgba(255,255,255,.10); background: rgba(255,255,255,.055); font-size: 12px; }
.wallet-action:first-child { color: #160e03; border-color: transparent; background: linear-gradient(135deg, #ffd789, #ff9e25); }
.mission-progress { background: rgba(255,255,255,.07); }
.mission-progress span { background: linear-gradient(90deg, #ff7a1a, #ffc45d); box-shadow: 0 0 16px rgba(255,150,35,.25); }

.bottom-nav {
    z-index: 8000;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: min(calc(100% - 20px), 600px);
    min-height: 72px;
    gap: 3px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 24px;
    background: rgba(9,9,10,.86);
    backdrop-filter: blur(26px) saturate(1.2);
    box-shadow: 0 20px 55px rgba(0,0,0,.64), inset 0 1px 0 rgba(255,255,255,.08);
}
.nav-item { position: relative; gap: 4px; min-height: 56px; border-radius: 18px; color: #6f6d6a; font-size: 10px; transition: color .18s ease, transform .18s ease, background .18s ease; }
.nav-icon { width: 24px; height: 24px; font-size: 0; }
.nav-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active { color: #1b1003; background: linear-gradient(135deg, #ffe19d, #ffad2b); box-shadow: 0 8px 22px rgba(255,139,23,.20), inset 0 1px 0 rgba(255,255,255,.5); }
.nav-item:active { transform: scale(.94); }

.toast {
    top: calc(14px + env(safe-area-inset-top));
    padding: 14px 16px;
    border-color: rgba(255,181,46,.24);
    background: rgba(13,12,11,.95);
    backdrop-filter: blur(22px);
    box-shadow: 0 18px 55px rgba(0,0,0,.55), inset 3px 0 0 var(--gold);
    font-size: 13px;
}

/* Full-screen sections */
#akMainSections, .gift-center {
    background:
        linear-gradient(180deg, rgba(5,5,5,.72), #070707 45%, #050505 100%),
        url("/assets/scorpion-arena-bg-v2.webp") center top / min(100%, 720px) auto no-repeat,
        #050505;
}
#akMainSections {
    padding: max(15px, env(safe-area-inset-top)) 14px calc(112px + env(safe-area-inset-bottom));
}
.ak2-head, .gift-head { position: sticky; top: 0; z-index: 10; min-height: 56px; padding: 7px 0 11px; background: linear-gradient(180deg, rgba(5,5,5,.96), rgba(5,5,5,.75), transparent); backdrop-filter: blur(10px); }
.ak2-title, .gift-title { font-size: 23px; letter-spacing: -.04em; }
.ak2-close, .gift-close, .deposit-close, .withdraw-clean-close, .arena-preview-close {
    border: 1px solid rgba(255,255,255,.11);
    background: rgba(255,255,255,.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    color: #f5efe7;
    transition: transform .16s ease, background .16s ease;
}
.ak2-close:active, .gift-close:active, .deposit-close:active, .withdraw-clean-close:active, .arena-preview-close:active { transform: scale(.91); background: rgba(255,181,46,.14); }
.ak2-tabs, .gift-tabs { padding: 5px; border-color: rgba(255,255,255,.09); background: rgba(15,15,16,.78); backdrop-filter: blur(18px); }
.ak2-tab, .gift-tab { min-height: 44px; font-size: 12px; }
.ak2-tab.active, .gift-tab.active { color: #160e03; background: linear-gradient(135deg, #ffe09a, #ffac29); box-shadow: 0 7px 20px rgba(255,139,23,.16); }
.ak2-card, .ap-card, .wp-card, .pp-card, .gift-card, .gift-deposit-card, .gift-history-item {
    border-color: rgba(255,255,255,.09);
    background: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.018)), rgba(9,9,10,.83);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 16px 42px rgba(0,0,0,.28);
}
.ak2-action, .wp-action-primary, .ap-action-primary, .gift-main-action, .gift-deposit-quick {
    color: #150d02;
    background: linear-gradient(135deg, #ffe09b, #ffae2b 54%, #ff7a1a);
    box-shadow: 0 11px 28px rgba(255,126,21,.20), inset 0 1px 0 rgba(255,255,255,.5);
}
.ak2-action.secondary, .wp-action, .ap-action, .gift-main-action.secondary {
    color: #f5efe8;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.055);
}

/* Wallet, profile and arena dashboards */
.wp-wrap, .pp-wrap, .ap-wrap { padding-bottom: 24px; }
.wp-hero, .pp-hero, .ap-hero {
    overflow: hidden;
    border: 1px solid rgba(255,181,46,.26);
    background:
        radial-gradient(circle at 88% 12%, rgba(255,138,24,.22), transparent 35%),
        linear-gradient(145deg, rgba(39,26,14,.93), rgba(8,8,9,.95));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 22px 55px rgba(0,0,0,.4);
}
.wp-balance, .pp-name, .ap-title { color: #fffaf1; letter-spacing: -.045em; }
.wp-live, .ap-live, .pp-rank { border-color: rgba(255,181,46,.24); background: rgba(255,181,46,.10); color: #ffd98c; }
.wp-summary-card, .pp-stat, .ap-stat {
    border-color: rgba(255,255,255,.085);
    background: rgba(255,255,255,.045);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}
.wp-summary-value, .pp-stat-value, .ap-stat-value, .ap-hero-value { color: #fff4dc; }
.wp-filter { border-color: rgba(255,255,255,.09); background: rgba(255,255,255,.045); color: #918d87; }
.wp-filter.active { color: #160e03; background: linear-gradient(135deg,#ffda8d,#ffac28); border-color: transparent; }
.wp-row, .pp-activity-row, .ap-feed-row, .ap-game, .ap-mission { border-color: rgba(255,255,255,.07); background: rgba(255,255,255,.025); }
.wp-row-icon, .pp-activity-icon, .ap-feed-icon, .ap-game-icon { background: rgba(255,181,46,.09); border-color: rgba(255,181,46,.13); }
.pp-avatar-shell { background: linear-gradient(145deg, #ffe09b, #ff7a1a); box-shadow: 0 0 34px rgba(255,126,21,.24); }
.pp-progress span, .ap-progress span { background: linear-gradient(90deg,#ff7a1a,#ffc858); box-shadow: 0 0 14px rgba(255,137,23,.24); }

/* Gift vault */
.gift-center { --gift-accent: var(--gold); --gift-accent-text: #160e03; --gift-bg: #050505; --gift-panel: rgba(14,14,15,.88); --gift-panel-2: rgba(255,255,255,.045); --gift-border: rgba(255,255,255,.09); --gift-purple: #c18bff; }
.gift-summary {
    border-color: rgba(255,181,46,.25);
    background: radial-gradient(circle at 92% 10%, rgba(255,143,28,.18), transparent 40%), linear-gradient(145deg, rgba(39,26,14,.91), rgba(9,9,10,.91));
    box-shadow: 0 18px 46px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.07);
}
.gift-art { background: radial-gradient(circle, rgba(255,170,43,.22), rgba(20,18,16,.9) 69%); }
.gift-card:nth-child(2n) .gift-art { background: radial-gradient(circle, rgba(85,175,255,.18), rgba(18,18,20,.9) 69%); }
.gift-step-number { background: linear-gradient(135deg,#ffe09b,#ff9b21); }
.gift-vault { border-color: rgba(255,181,46,.14); }

/* Sheets and payment modals */
.deposit-modal, .withdraw-modal, .arena-preview-modal, .stars-ton-overlay, .wp-modal {
    background: rgba(0,0,0,.76);
    backdrop-filter: blur(16px) saturate(.8);
}
.deposit-panel, .withdraw-clean-panel, .arena-preview-panel, .stars-ton-card, .wp-sheet {
    border: 1px solid rgba(255,181,46,.24) !important;
    border-radius: 27px !important;
    background:
        radial-gradient(circle at 100% 0%, rgba(255,139,22,.14), transparent 34%),
        linear-gradient(155deg, rgba(27,24,20,.98), rgba(8,8,9,.99)) !important;
    box-shadow: 0 32px 90px rgba(0,0,0,.72), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
.deposit-input, .withdraw-clean-input, .arena-preview-input {
    border-color: rgba(255,255,255,.11);
    background: rgba(255,255,255,.055);
}
.deposit-input:focus, .withdraw-clean-input:focus, .arena-preview-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,181,46,.10); }
.deposit-preset, .withdraw-clean-quick button, .arena-preview-preset, .withdraw-clean-method {
    border-color: rgba(255,255,255,.10);
    background: rgba(255,255,255,.05);
}
.withdraw-clean-method.active { color: #160e03; background: linear-gradient(135deg,#ffe09b,#ffad2a); }
.deposit-submit, .withdraw-clean-submit, .arena-preview-button, .stars-ton-buy {
    color: #140c02;
    background: linear-gradient(135deg,#ffe09b,#ffad2a 56%,#ff7818) !important;
    box-shadow: 0 14px 34px rgba(255,126,21,.20) !important;
}

/* Games: preserve mechanics, upgrade the containing chrome */
#arenaGamesV2Root .ag2-modal {
    background:
        linear-gradient(180deg, rgba(5,5,5,.70), #060606 48%),
        url("/assets/scorpion-arena-bg-v2.webp") center top / min(100%, 720px) auto no-repeat !important;
}
#arenaGamesV2Root .ag2-panel {
    border-color: rgba(255,181,46,.18);
    background: rgba(8,8,9,.88);
    box-shadow: 0 28px 80px rgba(0,0,0,.55);
}
.ag2-header { position: sticky; top: 0; z-index: 30; background: rgba(7,7,7,.78); backdrop-filter: blur(18px); }
.ag2-close, .ag-wheel-original-close { border-color: rgba(255,255,255,.11) !important; background: rgba(255,255,255,.07) !important; color: #fff6e8 !important; }
.ag2-tabs { border-color: rgba(255,255,255,.09); background: rgba(255,255,255,.035); }
.ag2-tab.ag2-active { color: #160e03; background: linear-gradient(135deg,#ffe09b,#ffad2a); }
.ag2-action { color: #160e03; background: linear-gradient(135deg,#ffe09b,#ffad2a 55%,#ff7818); box-shadow: 0 14px 34px rgba(255,126,21,.2); }
.ag2-preset, .ag2-share, .ag2-summary-box, .ag2-list-section, .ag4-tournament-backend { border-color: rgba(255,255,255,.09); background: rgba(255,255,255,.04); }
.ag2-input { border-color: rgba(255,255,255,.11); background: rgba(255,255,255,.055); }
.ag2-dice-stage { border-color: rgba(255,181,46,.12); background: radial-gradient(ellipse at center bottom, rgba(255,129,22,.12), transparent 58%), linear-gradient(180deg, rgba(19,17,16,.96), rgba(6,6,7,.99)); }
.ag-wheel-original-shell { background: radial-gradient(circle at 50% 27%, rgba(255,128,21,.12), transparent 37%), #060606 !important; }

.reveal-on-scroll { opacity: 0; transform: translateY(18px); transition: opacity .65s var(--ease-out), transform .65s var(--ease-out); }
.reveal-on-scroll.is-visible { opacity: 1; transform: none; }

@media (hover:hover) {
    .game-card:hover { transform: translateY(-5px); border-color: rgba(255,181,46,.27); box-shadow: 0 24px 58px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.08); }
}

@media (max-width: 520px) {
    .app { padding-inline: 11px; }
    .topbar { margin-bottom: 10px; }
    .brand-title { font-size: 13px; }
    .hero { min-height: 535px; padding: 245px 17px 19px; border-radius: 27px; }
    h1 { font-size: clamp(42px, 14vw, 58px); }
    .hero-description { font-size: 14px; }
    .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .btn-primary { grid-column: 1 / -1; }
    .btn-secondary { padding-inline: 9px; font-size: 12px; }
    .hero-trust { gap: 8px 12px; font-size: 10px; }
    .section { margin-top: 27px; }
    .stats-grid, .games-grid { gap: 8px; }
    .game-card { min-height: 202px; padding: 14px; }
    .game-icon { width: 56px; height: 56px; }
    .game-name { font-size: 17px; }
    .wallet-actions { grid-template-columns: 1fr; }
    .wallet-action { height: 50px; }
    .gift-summary { grid-template-columns: 1fr; }
    .gift-deposit-quick { width: 100%; }
}

@media (max-width: 360px) {
    #profileName { display: none; }
    .hero { min-height: 520px; padding-top: 230px; }
    .hero-actions { grid-template-columns: 1fr; }
    .btn-primary { grid-column: auto; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
    .arena-atmosphere { background-size: 760px auto; }
    .hero { min-height: 620px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
    .reveal-on-scroll { opacity: 1; transform: none; }
    .arena-ember { display: none; }
}
