:root {
    --ink: #111821;
    --muted: #718096;
    --line: #e4e8ee;
    --panel: #171b23;
    --panel-2: #202631;
    --panel-3: #2b323e;
    --red: #f2144f;
    --red-dark: #bb123f;
    --green: #09bf62;
    --green-dark: #079f51;
    --yellow: #ffb800;
    --blue: #7357ff;
    --radius: 14px;
    --shadow: 0 14px 38px rgba(20, 29, 43, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--ink);
    background: #edf0f4;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.45;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.app-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 58px minmax(0, 1fr);
    min-height: 100vh;
}

.topbar {
    position: sticky;
    z-index: 50;
    top: 0;
    grid-column: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    min-height: 58px;
    padding: 0 22px;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid #edf0f4;
    box-shadow: 0 2px 12px rgba(35, 45, 60, .04);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    width: max-content;
    align-items: center;
    overflow: hidden;
    border: 2px solid #111;
    border-radius: 4px;
    background: #111;
    color: #fff;
    font-size: 15px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.7px;
}
.brand span { padding: 3px 2px 3px 5px; }
.brand b { padding: 3px 5px 3px 3px; color: #0d0d0d; background: #dbf300; font-weight: 950; }
.single-game-title { display: inline-flex; align-items: center; justify-self: center; gap: 7px; color: var(--red); font-size: 14px; font-style: italic; font-weight: 950; letter-spacing: -.4px; }
.single-game-title span { transform: rotate(-14deg); font-size: 17px; }

.main-nav { display: flex; min-width: 0; align-items: center; gap: 4px; overflow: hidden; }
.main-nav a { position: relative; flex: 0 0 auto; padding: 18px 14px; font-size: 14px; font-weight: 750; }
.main-nav a:hover, .main-nav a.active { color: #ec9f00; }
.main-nav a::after { content: ""; position: absolute; right: 0; top: 21px; width: 1px; height: 15px; background: var(--line); }
.main-nav a:last-child::after { display: none; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(9, 191, 98, .12); }

.account-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.pwa-install-action { border: 0; color: inherit; background: transparent; cursor: pointer; font: inherit; }
.pwa-install-top { display: inline-flex; min-width: 118px; height: 40px; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid #d7dde5; border-radius: 9px; color: #273240; background: #f7f9fb; font-size: 10px; font-weight: 900; letter-spacing: .35px; transition: border-color .15s, background .15s, transform .15s; }
.pwa-install-top:hover { border-color: #aeb8c6; background: #fff; transform: translateY(-1px); }
.pwa-install-top span { display: grid; width: 18px; height: 18px; place-items: center; border: 1px solid currentColor; border-radius: 5px; font-size: 14px; line-height: 1; }
.btn { min-width: 134px; height: 40px; padding: 0 20px; border-radius: 9px; font-size: 13px; font-weight: 900; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-login { color: #202020; background: var(--yellow); box-shadow: 0 6px 18px rgba(255, 184, 0, .2); }
.btn-register { color: #fff; background: var(--green); box-shadow: 0 6px 18px rgba(9, 191, 98, .22); }
.wallet-action { min-width: 92px; padding: 0 13px; color: #fff; }
.deposit-action { background: var(--green); box-shadow: 0 6px 18px rgba(9, 191, 98, .2); }
.withdraw-action { color: #202631; background: #e9edf2; }
.wallet-pill { display: grid; min-width: 136px; height: 40px; grid-template-columns: 27px auto; grid-template-rows: auto auto; column-gap: 8px; align-content: center; justify-items: start; padding: 4px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #f8fafb; cursor: pointer; text-align: left; transition: border-color .16s, background .16s, transform .16s; }
.wallet-pill:hover { border-color: #718099; background: #fff; transform: translateY(-1px); }
.wallet-icon { display: grid; width: 27px; height: 27px; grid-row: 1 / 3; place-items: center; align-self: center; border-radius: 8px; color: #fff; background: linear-gradient(135deg, #16ce70, #079c51); }
.wallet-icon svg { width: 17px; height: 17px; fill: currentColor; }
.wallet-pill small { align-self: end; color: #8993a0; font-size: 8px; font-weight: 850; letter-spacing: .6px; line-height: 1.05; }
.wallet-pill strong { align-self: start; font-size: 13px; line-height: 1.15; white-space: nowrap; }
.wallet-pill.balance-updated { animation: walletCreditPulse 1.8s ease-out; }
@keyframes walletCreditPulse {
    0% { border-color: #303a49; box-shadow: none; transform: scale(1); }
    20% { border-color: #19dd7a; box-shadow: 0 0 0 5px rgba(25,221,122,.13), 0 0 26px rgba(25,221,122,.28); transform: scale(1.035); }
    100% { border-color: #303a49; box-shadow: none; transform: scale(1); }
}
.profile-button { width: 38px; height: 38px; border-radius: 50%; color: #fff; background: #17212e; cursor: pointer; font-weight: 900; }
.profile-button svg { display: block; width: 20px; height: 20px; margin: auto; fill: currentColor; }
.header-identity { display: flex; align-items: center; gap: 10px; }
.icon-button, .mobile-menu { display: none; }

.category-rail {
    position: sticky;
    z-index: 20;
    top: 58px;
    height: calc(100vh - 58px);
    padding: 18px 14px 90px;
    overflow: auto;
    background: #fff;
    border-right: 1px solid #edf0f4;
}
.rail-heading { margin: 0 2px 14px; color: #303946; font-size: 10px; font-weight: 950; letter-spacing: .5px; }
.category-link { display: grid; grid-template-columns: 27px minmax(0, 1fr) auto; align-items: center; min-height: 40px; padding: 0 7px; border-radius: 9px; color: #252e39; font-size: 13px; transition: color .15s, background .15s; }
.category-link:hover { background: #f4f6f8; color: #000; }
.category-link.active { color: var(--red); background: #fff1f5; }
.category-link b { color: #111; font-size: 10px; font-weight: 900; }
.cat-icon { display: grid; width: 23px; place-items: center; color: currentColor; font-size: 19px; font-weight: 900; }
.responsible-note { display: flex; align-items: center; gap: 8px; margin: 18px 6px 0; padding-top: 16px; color: #7b8490; border-top: 1px solid var(--line); font-size: 12px; }
.responsible-note span { display: grid; width: 31px; height: 31px; place-items: center; border: 2px solid #9aa2ac; border-radius: 50%; font-size: 10px; font-weight: 900; }

.main-content { min-width: 0; width: 100%; padding: 18px; }
.game-card { overflow: hidden; max-width: 1500px; margin: 0 auto; border: 1px solid #333b47; border-radius: var(--radius); background: var(--panel); color: #fff; box-shadow: var(--shadow); }
.game-head { display: flex; height: 54px; align-items: center; justify-content: space-between; padding: 0 15px; border-bottom: 1px solid #2b313b; background: #12161d; }
.aviator-logo { color: var(--red); font-size: 21px; font-weight: 950; font-style: italic; letter-spacing: -1.4px; }
.aviator-logo .wing { display: inline-block; margin-right: -2px; transform: rotate(-16deg); font-size: 22px; }
.game-head-tools { display: flex; align-items: center; gap: 8px; }
.game-tool { width: 31px; height: 31px; border-radius: 8px; color: #d5dae1; background: #282e38; cursor: pointer; font-weight: 900; }
.game-tool:hover { background: #343c48; }

.round-history { display: flex; gap: 7px; min-height: 39px; align-items: center; padding: 5px 12px; overflow: hidden; border-bottom: 1px solid #282e38; background: #1c212a; }
.round-history button { flex: 0 0 auto; padding: 3px 9px; border-radius: 99px; color: #9e8cff; background: transparent; font-size: 12px; font-weight: 850; }
.round-history button.warm { color: #e780ff; }
.round-history button.hot { color: #ff4a82; }
.round-history .history-more { margin-left: auto; color: #a8b0bb; background: #2a303a; }

.game-grid { display: grid; grid-template-columns: minmax(0, 1fr); min-height: clamp(400px, calc(100vh - 390px), 680px); }
.bets-board { min-width: 0; border-right: 1px solid #2a313b; background: #1c212a; }
.bet-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 9px 10px 6px; padding: 3px; border-radius: 9px; background: #11151b; }
.bet-tabs button { padding: 7px 2px; border-radius: 7px; color: #7d8796; background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }
.bet-tabs button.active { color: #fff; background: #343b47; }
.bet-summary { display: flex; align-items: baseline; justify-content: space-between; padding: 7px 12px; color: #929baa; font-size: 11px; }
.bet-summary strong { color: #e5e9ef; }
.bet-list-head, .bet-row { display: grid; grid-template-columns: minmax(72px, 1fr) 58px 42px 64px; gap: 4px; align-items: center; }
.bet-list-head { padding: 5px 12px; color: #687180; font-size: 9px; text-transform: uppercase; }
.bet-list { height: 305px; overflow: hidden; }
.bet-row { min-height: 29px; padding: 3px 12px; color: #adb5c0; font-size: 10px; animation: rowIn .25s ease-out; }
.bet-row:nth-child(2n) { background: rgba(255, 255, 255, .016); }
.bet-row .player { display: flex; min-width: 0; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { display: grid; flex: 0 0 auto; width: 19px; height: 19px; place-items: center; border-radius: 50%; color: #fff; font-size: 8px; font-weight: 900; }
.bet-row strong { color: #e6e9ed; font-size: 10px; text-align: right; }
.bet-row .won { color: #35df87; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-4px); } }

.flight-area { position: relative; min-width: 0; min-height: 400px; overflow: hidden; background: radial-gradient(circle at 55% 52%, #202630 0, #151920 54%, #11151b 100%); isolation: isolate; }
.flight-area::before { content: ""; position: absolute; inset: 0; z-index: -2; opacity: .3; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to top right, #000, transparent 70%); }
#flightCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.round-status { position: absolute; z-index: 3; left: 50%; top: 47%; display: grid; justify-items: center; transform: translate(-50%, -50%); pointer-events: none; text-align: center; }
.round-status span { color: #a2abb8; font-size: 11px; font-weight: 850; letter-spacing: 1.3px; }
.round-status strong { margin: 3px 0; font-size: clamp(46px, 6vw, 82px); line-height: 1; letter-spacing: -4px; text-shadow: 0 5px 28px rgba(0, 0, 0, .28); }
.round-status small { color: #788391; font-size: 12px; }
.round-status.crashed strong { color: var(--red); animation: shake .28s linear; }
.round-status.crashed span { color: #ff5a84; }
@keyframes shake { 25% { transform: translateX(-6px) } 75% { transform: translateX(6px) } }
.plane { position: absolute; z-index: 4; left: 12%; bottom: 13%; color: #fff; filter: drop-shadow(0 5px 5px rgba(0,0,0,.55)); font-size: 39px; opacity: 0; transform: rotate(-14deg); transition: opacity .2s; }
.flight-area.flying .plane { opacity: 1; }
.cloud-lines { position: absolute; inset: 0; z-index: -1; opacity: .19; }
.cloud-lines i { position: absolute; width: 150px; height: 50px; border: 2px solid #657181; border-radius: 50%; filter: blur(.2px); }
.cloud-lines i:nth-child(1) { top: 17%; left: 12%; }
.cloud-lines i:nth-child(2) { right: 8%; bottom: 19%; width: 220px; }
.cloud-lines i:nth-child(3) { top: 14%; right: 27%; width: 100px; height: 32px; }
.countdown-track { position: absolute; right: 18%; bottom: 20%; left: 18%; height: 5px; overflow: hidden; border-radius: 9px; background: #333b47; opacity: 0; }
.countdown-track i { display: block; width: 100%; height: 100%; background: var(--red); transform-origin: left; }
.flight-area.betting .countdown-track { opacity: 1; }
.next-round { position: absolute; right: 16px; bottom: 12px; color: #808b99; font-size: 11px; }

.betting-desk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding: 9px; border-top: 1px solid #343b46; background: #12161d; }
.bet-panel { min-width: 0; padding: 8px; border: 1px solid #323945; border-radius: 11px; background: #20262f; }
.panel-tabs { display: flex; width: 150px; margin: 0 auto 7px; padding: 2px; border-radius: 99px; background: #11151b; }
.panel-tabs button { flex: 1; padding: 4px; border-radius: 99px; color: #798392; background: transparent; font-size: 10px; font-weight: 800; }
.panel-tabs button.active { color: #fff; background: #303844; }
.bet-panel.auto-enabled { border-color: rgba(22, 206, 112, .42); box-shadow: inset 0 0 0 1px rgba(22, 206, 112, .08); }
.bet-panel.auto-enabled .panel-tabs button[data-bet-mode="auto"] { color: #fff; background: #087d48; }
.panel-body { display: grid; grid-template-columns: minmax(175px, 1.2fr) minmax(115px, .8fr) minmax(160px, 1fr); gap: 9px; align-items: stretch; }
.amount-stepper { display: grid; grid-template-columns: 34px minmax(76px, 1fr) 34px; min-height: 49px; overflow: hidden; border: 1px solid #38414d; border-radius: 9px; background: #151a21; }
.amount-stepper button { color: #fff; background: transparent; cursor: pointer; font-size: 20px; }
.amount-stepper button:hover { background: #252c36; }
.amount-stepper label { display: grid; align-content: center; justify-items: center; border-right: 1px solid #303844; border-left: 1px solid #303844; }
.amount-stepper label span { color: #717b89; font-size: 8px; font-weight: 800; }
.amount-stepper input { width: 100%; border: 0; outline: 0; color: #fff; background: transparent; font-size: 16px; font-weight: 850; text-align: center; }
.amount-stepper input::-webkit-inner-spin-button { appearance: none; }
.quick-amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: 4px; }
.quick-amounts button { padding: 3px 1px; border-radius: 4px; color: #8b95a3; background: #2a313b; cursor: pointer; font-size: 9px; font-weight: 750; }
.quick-amounts button:hover { color: #fff; background: #3b4451; }
.auto-control { display: grid; align-content: center; justify-content: center; gap: 7px; color: #8e98a5; font-size: 10px; }
.switch { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: relative; width: 28px; height: 15px; border-radius: 99px; background: #424a56; transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(13px); }
.auto-at { text-align: center; }
.auto-at input { width: 57px; height: 25px; border: 1px solid #3b4450; border-radius: 5px; outline: 0; color: #fff; background: #151a21; font-size: 11px; text-align: center; }
.bet-action { display: grid; min-width: 0; place-content: center; border: 1px solid #35d77f; border-radius: 9px; color: #fff; background: linear-gradient(#19c66b, #069d4e); box-shadow: inset 0 1px rgba(255, 255, 255, .25), 0 5px 14px rgba(0, 182, 91, .17); cursor: pointer; transition: filter .15s, transform .15s; }
.bet-action:hover { filter: brightness(1.08); transform: translateY(-1px); }
.bet-action span { font-size: 16px; font-weight: 950; }
.bet-action strong { font-size: 11px; }
.bet-action.active { border-color: #ff6d91; background: linear-gradient(#ff376a, #ce123f); }
.bet-action.waiting { border-color: #ffc836; background: linear-gradient(#ffb900, #d98f00); }
.bet-action:disabled { cursor: not-allowed; filter: grayscale(.45); opacity: .58; transform: none; }
.game-footer { display: flex; min-height: 35px; align-items: center; justify-content: space-between; padding: 0 14px; border-top: 1px solid #2a313b; color: #788391; background: #171c23; font-size: 10px; }
.game-footer div { display: flex; align-items: center; gap: 6px; }
.game-footer strong { color: #9ba4af; font-weight: 700; }
.pwa-install-footer { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 7px; color: #d7dfea; font-size: 10px; font-weight: 850; }
.pwa-install-footer:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.pwa-install-footer span { color: #28dc83; font-size: 15px; line-height: 1; }
.fair-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

.info-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; max-width: 1350px; margin: 18px auto 40px; padding: 34px; border-radius: var(--radius); background: #fff; box-shadow: 0 10px 28px rgba(21, 31, 43, .07); }
.eyebrow { color: var(--red); font-size: 11px; font-weight: 900; letter-spacing: 1.2px; }
.info-card h1 { max-width: 650px; margin: 8px 0 10px; font-size: clamp(26px, 3vw, 42px); line-height: 1.08; letter-spacing: -1.5px; }
.info-card p { max-width: 690px; margin: 0; color: #657080; }
.steps { display: grid; gap: 8px; }
.steps article { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 11px; background: #fafbfc; font-weight: 800; }
.steps b { color: var(--red); font-size: 20px; }

.games-rail { position: sticky; z-index: 20; top: 58px; display: flex; height: calc(100vh - 58px); flex-direction: column; align-items: stretch; background: #fff; border-left: 1px solid #edf0f4; }
.games-rail a { position: relative; display: grid; flex: 1; min-height: 86px; place-content: center; justify-items: center; color: #404854; font-size: 11px; text-align: center; }
.games-rail a + a::before { content: ""; position: absolute; top: 0; width: 30px; height: 1px; background: #e9edf1; }
.games-rail a:hover, .games-rail a.active { color: var(--red); background: #fff8fa; }
.games-rail a span { margin-bottom: 4px; font-size: 23px; }
.games-rail a b { line-height: 1.1; }

.modal-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(7, 10, 14, .78); backdrop-filter: blur(3px); }
.modal { position: relative; overflow: hidden; max-width: 940px; max-height: calc(100vh - 40px); border-radius: 14px; background: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.42); animation: modalIn .2s ease-out; }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.modal-close { position: absolute; z-index: 3; right: 13px; top: 13px; display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; color: #4a535f; background: #f1f3f5; cursor: pointer; font-size: 23px; }
.auth-modal { display: grid; grid-template-columns: 1fr 1fr; width: min(940px, 100%); }
.modal-brand-panel { position: relative; display: grid; min-height: 555px; align-content: end; padding: 50px; overflow: hidden; color: #fff; background: radial-gradient(circle at 58% 27%, #ffcf35 0, #ffaf00 32%, #e85800 90%); }
.modal-brand-panel::before { content: ""; position: absolute; width: 440px; height: 440px; left: -120px; top: -150px; border: 58px solid rgba(255,255,255,.12); border-radius: 50%; }
.modal-brand-panel::after { content: ""; position: absolute; width: 300px; height: 300px; right: -170px; bottom: -140px; border: 42px solid rgba(255,255,255,.13); border-radius: 50%; }
.modal-flight { position: absolute; left: 49%; top: 30%; transform: translate(-50%, -50%) rotate(-17deg); color: #fff; filter: drop-shadow(0 14px 8px rgba(111,52,0,.24)); font-size: 120px; }
.modal-brand { position: relative; z-index: 1; margin-bottom: 22px; font-size: 18px; }
.modal-brand-panel h2 { position: relative; z-index: 1; max-width: 360px; margin: 0 0 10px; font-size: 38px; line-height: 1.06; letter-spacing: -1.8px; }
.modal-brand-panel p { position: relative; z-index: 1; margin: 0; color: rgba(255,255,255,.88); }
.modal-form-panel { padding: 48px 40px 38px; color: #17212e; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-bottom: 28px; padding: 4px; border-radius: 10px; background: #f1f3f5; }
.auth-tabs button { padding: 10px; border-radius: 8px; color: #727c88; background: transparent; cursor: pointer; font-size: 13px; font-weight: 850; }
.auth-tabs button.active { color: #18212c; background: #fff; box-shadow: 0 3px 10px rgba(15, 24, 35, .08); }
.modal-form-panel h2, .help-modal h2 { margin: 0; color: #17212e; font-size: 27px; letter-spacing: -.7px; }
.form-intro { margin: 6px 0 24px; color: #788290; font-size: 13px; }
.referral-invite-note { margin: 0; padding: 10px 12px; border: 1px solid #bcebd2; border-radius: 9px; color: #087343; background: #ebfaf2; font-size: 11px; line-height: 1.45; }
.auth-form { display: grid; gap: 14px; }
.auth-form > label > span { display: block; margin-bottom: 6px; color: #495360; font-size: 12px; font-weight: 750; }
.auth-form input { width: 100%; height: 47px; padding: 0 13px; border: 1px solid #dfe3e8; border-radius: 9px; outline: 0; color: #15202b; background: #f8f9fa; }
.auth-form input:focus { border-color: #739cff; box-shadow: 0 0 0 3px rgba(66, 118, 255, .1); }
.phone-input { display: grid; grid-template-columns: 61px 1fr; border: 1px solid #dfe3e8; border-radius: 9px; background: #f8f9fa; }
.phone-input b { display: grid; place-items: center; border-right: 1px solid #e3e6ea; font-size: 13px; }
.phone-input input { border: 0; }
.terms-check { display: grid !important; grid-template-columns: 19px 1fr; align-items: start; gap: 9px; color: #687381; font-size: 11px; line-height: 1.35; }
.terms-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.terms-check span { margin: 0 !important; font-size: 11px !important; }
.form-submit { height: 48px; margin-top: 3px; border-radius: 9px; color: #222; background: var(--yellow); cursor: pointer; font-size: 13px; font-weight: 900; }
.form-submit.register { color: #fff; background: var(--green); }
.form-submit:disabled { opacity: .6; cursor: wait; }
.form-message { min-height: 17px; color: #d42250; font-size: 11px; }
.help-modal { width: min(480px, 100%); padding: 38px; }
.help-modal ol { display: grid; gap: 10px; padding-left: 20px; color: #4d5865; }
.help-modal p { color: #717d8a; font-size: 13px; }
.wallet-modal { width: min(780px, 100%); overflow-y: auto; color: #17212e; }
.wallet-modal-head { padding: 32px 34px 19px; border-bottom: 1px solid var(--line); }
.wallet-modal-head h2 { margin: 5px 0 3px; font-size: 27px; }
.wallet-modal-head p { margin: 0; color: #747f8d; font-size: 13px; }
.wallet-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 10px 34px 0; }
.wallet-tabs button { padding: 11px; border-radius: 8px; color: #697482; background: #eef1f4; cursor: pointer; font-size: 12px; font-weight: 850; }
.wallet-tabs button.active { color: #fff; background: #202936; }
.wallet-panel { padding: 23px 34px 32px; }
.wallet-form { display: grid; gap: 14px; }
.wallet-form label > span { display: block; margin-bottom: 6px; color: #4d5865; font-size: 11px; font-weight: 800; }
.wallet-form input, .wallet-form select, .wallet-form textarea { width: 100%; border: 1px solid #dce1e7; border-radius: 8px; outline: 0; color: #17212e; background: #f8f9fb; }
.wallet-form input, .wallet-form select { height: 44px; padding: 0 11px; }
.wallet-form textarea { padding: 10px 11px; resize: vertical; }
.wallet-form input:focus, .wallet-form select:focus, .wallet-form textarea:focus { border-color: #6d91ed; box-shadow: 0 0 0 3px rgba(66, 118, 255, .1); }
.wallet-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.payment-channel-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.payment-channel-fieldset legend { margin-bottom: 7px; color: #4d5865; font-size: 11px; font-weight: 800; }
.payment-channel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.payment-channel { position: relative; display: grid; min-width: 0; min-height: 91px; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 9px; align-content: center; padding: 12px 10px; border: 1px solid #dce1e7; border-radius: 11px; color: #273240; background: #fff; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.payment-channel:hover { transform: translateY(-1px); border-color: #b8c3d0; box-shadow: 0 7px 18px rgba(24, 38, 55, .08); }
.payment-channel:has(input:checked) { border-color: #12ad62; box-shadow: 0 0 0 3px rgba(9, 191, 98, .12); }
.payment-channel input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.payment-channel .channel-mark { display: grid; width: 38px; height: 38px; grid-row: 1 / 3; place-items: center; align-self: center; border-radius: 10px; color: #fff; background: #4d2a91; font-size: 11px; font-weight: 950; letter-spacing: -.3px; }
.payment-channel b { align-self: end; overflow: hidden; font-size: 13px; text-overflow: ellipsis; }
.payment-channel small { align-self: start; color: #84909e; font-size: 9px; }
.payment-channel.upi .channel-mark { color: #113d67; background: linear-gradient(135deg, #ff8b24 0 48%, #fff 49% 54%, #30a965 55%); }
.payment-channel.paytm .channel-mark { background: linear-gradient(135deg, #08a8e2, #172d85); }
.payment-channel.gpay .channel-mark { color: #4285f4; border: 1px solid #e0e5eb; background: #fff; font-size: 19px; }
.payment-smart-card { overflow: hidden; border: 1px solid #d8e0e8; border-radius: 12px; background: linear-gradient(145deg, #fff, #f7f9fc); box-shadow: 0 7px 20px rgba(27, 42, 60, .06); }
.payment-method-preview { display: grid; min-height: 112px; grid-template-columns: 94px minmax(0, 1fr); gap: 14px; align-items: center; padding: 11px 13px 9px; }
.payment-method-preview h3 { margin: 1px 0 5px; font-size: 15px; }
.payment-method-preview p { margin: 4px 0; color: #66717e; font-size: 11px; }
.payment-method-preview > div > small { color: #8a95a2; font-size: 8px; font-weight: 900; letter-spacing: .6px; }
.payment-method-preview code { display: block; overflow: hidden; padding: 6px 8px; border-radius: 7px; color: #17212e; background: #e8ecf1; font-size: 12px; font-weight: 850; text-overflow: ellipsis; user-select: all; white-space: nowrap; }
.payment-method-preview img, .payment-qr-placeholder { width: 92px; height: 92px; border: 1px solid #dfe3e8; border-radius: 9px; object-fit: contain; background: #fff; }
.payment-qr-placeholder { display: grid; place-items: center; color: #1f6e4a; background: #eaf8f1; font-size: 14px; font-weight: 950; }
.payment-detail-label { margin-bottom: 3px !important; color: #8a95a2 !important; font-size: 8px !important; font-weight: 900; letter-spacing: .45px; text-transform: uppercase; }
.payment-account-name { display: grid; gap: 1px; margin: 5px 0 7px !important; }
.payment-account-name span { color: #8a95a2; font-size: 8px; font-weight: 900; letter-spacing: .45px; text-transform: uppercase; }
.payment-account-name b { color: #263648; font-size: 13px; }
.payment-preview-amount { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.payment-preview-amount strong { color: #087e45; font-size: 13px; }
.payment-quick-actions { display: flex; justify-content: flex-end; gap: 7px; padding: 8px 10px; border-top: 1px solid #e2e7ed; background: rgba(243, 246, 250, .82); }
.payment-icon-action { display: inline-flex; min-height: 34px; align-items: center; gap: 6px; padding: 5px 10px 5px 7px; border: 1px solid #cfd9e4; border-radius: 8px; color: #31506f; background: #fff; cursor: pointer; transition: border-color .16s, color .16s, transform .16s; }
.payment-icon-action:hover { border-color: #75a1d5; color: #1765b2; transform: translateY(-1px); }
.payment-icon-action:disabled { cursor: wait; opacity: .6; }
.payment-icon-action span { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 6px; color: #fff; background: #2774c8; font-size: 14px; font-weight: 900; }
.payment-icon-action small { font-size: 9px; font-weight: 850; }
.limit-copy { margin: -2px 0 0; color: #717d8a; font-size: 11px; }
.wallet-submit { min-height: 48px; border-radius: 9px; color: #fff; cursor: pointer; font-size: 12px; font-weight: 900; }
.wallet-submit:disabled { opacity: .6; cursor: wait; }
.deposit-submit { background: var(--green); }
.withdraw-submit { background: #202936; }
.wallet-balance-box { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; border-radius: 9px; color: #fff; background: #202936; }
.wallet-balance-box span { color: #aeb7c4; font-size: 11px; }
.wallet-balance-box strong { font-size: 18px; }
.wallet-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.wallet-breakdown span { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid #e1e6ec; border-radius: 8px; color: #7b8592; background: #f8f9fb; font-size: 10px; }
.wallet-breakdown b { color: #283442; font-size: 13px; }
.referral-card { display: grid; gap: 13px; padding: 22px; border: 1px solid #dce4ec; border-radius: 13px; background: linear-gradient(145deg, #fff, #f3f8f6); }
.referral-card h3 { margin: -5px 0 0; font-size: 22px; }
.referral-card > p { margin: 0; color: #5f6c79; font-size: 12px; line-height: 1.55; }
.referral-link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.referral-link-row input { min-width: 0; height: 46px; padding: 0 12px; border: 1px solid #cfd9e3; border-radius: 8px; color: #273544; background: #fff; font-weight: 700; }
.referral-link-row button { padding: 0 16px; border-radius: 8px; color: #fff; background: var(--green); cursor: pointer; font-size: 11px; font-weight: 900; }
.referral-link-row button:disabled { cursor: not-allowed; opacity: .5; }
.referral-card .referral-rule { padding: 10px 12px; border-radius: 8px; color: #815d00; background: #fff3ce; font-size: 10px; }
.referral-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.referral-stats div { display: grid; gap: 3px; padding: 12px; border-radius: 9px; background: #202936; text-align: center; }
.referral-stats strong { color: #fff; font-size: 17px; }
.referral-stats span { color: #aeb7c4; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.payment-history { display: grid; gap: 18px; }
.history-group h3 { margin: 0 0 9px; font-size: 14px; }
.history-list { display: grid; gap: 7px; }
.payment-history-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 13px; align-items: center; padding: 11px 13px; border: 1px solid #e2e6eb; border-radius: 9px; background: #fafbfc; }
.payment-history-row div { display: grid; gap: 2px; }
.payment-history-row small { color: #7b8592; font-size: 10px; }
.payment-history-row strong { white-space: nowrap; }
.bonus-history-row > strong { color: var(--green); }
.payment-history-row .payment-status { padding: 4px 7px; border-radius: 99px; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.payment-status.pending { color: #9a6700; background: #fff0c2; }
.payment-status.approved { color: #057a43; background: #d7f8e5; }
.payment-status.rejected { color: #bd1745; background: #ffe0e9; }
.profile-popover { position: fixed; z-index: 90; left: 22px; top: 74px; width: 220px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: var(--shadow); }
.profile-popover div { display: grid; padding: 4px 4px 12px; }
.profile-popover small { color: #87919d; }
.profile-popover button { width: 100%; padding: 9px; border-radius: 7px; color: #fff; background: #202936; cursor: pointer; font-weight: 800; }
.profile-popover .profile-funds { margin-bottom: 5px; color: #25303b; background: #eef1f4; text-align: left; }
.toast-stack { position: fixed; z-index: 140; right: 20px; bottom: 20px; display: grid; width: min(360px, calc(100% - 40px)); gap: 8px; }
.toast { padding: 13px 15px; border: 1px solid #3a4450; border-radius: 9px; color: #fff; background: #1b222c; box-shadow: var(--shadow); font-size: 13px; animation: toastIn .2s ease-out; }
.toast.success { border-color: rgba(9,191,98,.7); }
.toast.error { border-color: rgba(242,20,79,.8); }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
.mobile-bottom { display: none; }

@media (max-width: 1180px) {
    .topbar { padding: 0 14px; }
    .main-nav a { padding-right: 9px; padding-left: 9px; font-size: 12px; }
    .btn { min-width: 105px; padding: 0 13px; }
    .wallet-action { min-width: 78px; padding: 0 9px; font-size: 11px; }
    .panel-body { grid-template-columns: minmax(144px, 1fr) minmax(92px, .62fr) minmax(125px, .78fr); }
    .auto-control { display: grid; }
}

@media (max-width: 900px) {
    body { padding-bottom: 0; }
    .app-shell { display: grid; min-height: 100vh; }
    .topbar { position: sticky; display: flex; height: 56px; min-height: 56px; padding: 0 12px; }
    .single-game-title { margin-left: 18px; }
    .account-actions { margin-left: auto; }
    .btn { min-width: 0; height: 36px; padding: 0 12px; font-size: 11px; }
    .btn-login { display: none; }
    .pwa-install-top { min-width: 38px; width: 38px; padding: 0; }
    .pwa-install-top b { display: none; }
    .wallet-pill { min-width: 108px; height: 36px; padding: 3px 8px; }
    .main-content { padding: 10px; }
    .game-grid { grid-template-columns: 1fr; }
    .flight-area { min-height: 390px; }
    .betting-desk { grid-template-columns: 1fr; }
    .panel-body { grid-template-columns: minmax(180px, 1fr) minmax(120px, .62fr) minmax(160px, .72fr); }
    .info-card { grid-template-columns: 1fr; gap: 24px; padding: 26px; }
}

@media (max-width: 640px) {
    .topbar .brand { font-size: 13px; }
    .single-game-title { display: none; }
    .btn-register { padding: 0 10px; }
    .wallet-action { display: none; }
    .game-card { border-radius: 10px; }
    .game-head { height: 48px; padding: 0 10px; }
    .aviator-logo { font-size: 18px; }
    .flight-area { min-height: 320px; }
    .round-status { top: 46%; width: 94%; }
    .round-status strong { font-size: 52px; }
    .round-status small { max-width: 240px; }
    .plane { font-size: 31px; }
    .betting-desk { padding: 7px; }
    .panel-body { grid-template-columns: minmax(0, 1fr) minmax(128px, .68fr); gap: 7px; }
    .amount-wrap { grid-column: 1; grid-row: 1; }
    .auto-control { grid-column: 1 / -1; grid-row: 2; min-height: 36px; grid-template-columns: auto auto; align-items: center; justify-content: center; gap: 18px; padding: 4px 8px; border: 1px solid #303b49; border-radius: 9px; background: #111822; }
    .auto-at { display: flex; align-items: center; gap: 5px; }
    .bet-action { grid-column: 2; grid-row: 1; }
    .amount-stepper { grid-template-columns: 30px minmax(70px, 1fr) 30px; }
    .bet-action span { font-size: 14px; }
    .game-footer span { display: none; }
    .pwa-install-footer { padding-right: 6px; padding-left: 6px; }
    .info-card { margin-bottom: 10px; padding: 23px 20px; }
    .auth-modal { grid-template-columns: 1fr; max-height: calc(100vh - 24px); overflow-y: auto; }
    .modal-brand-panel { min-height: 168px; align-content: center; padding: 23px 104px 23px 23px; }
    .modal-brand-panel h2 { max-width: none; margin: 0; font-size: 22px; line-height: 1.1; letter-spacing: -1px; }
    .modal-brand-panel p, .modal-brand { display: none; }
    .modal-flight { left: auto; right: 18px; top: 54%; transform: translateY(-50%) rotate(-17deg); pointer-events: none; font-size: 62px; }
    .modal-form-panel { padding: 25px 21px 22px; }
    .auth-tabs { margin-bottom: 18px; }
    .help-modal { padding: 30px 23px; }
    .wallet-modal { max-height: calc(100vh - 20px); }
    .wallet-modal-head { padding: 24px 20px 15px; }
    .wallet-tabs { padding: 9px 20px 0; }
    .wallet-panel { padding: 18px 20px 24px; }
    .wallet-fields { grid-template-columns: 1fr; }
    .wallet-breakdown { grid-template-columns: 1fr; }
    .referral-link-row { grid-template-columns: 1fr; }
    .referral-link-row button { min-height: 44px; }
    .payment-channel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .payment-method-preview { grid-template-columns: 84px minmax(0, 1fr); gap: 11px; }
    .payment-method-preview img, .payment-qr-placeholder { width: 82px; height: 82px; }
    .payment-history-row { grid-template-columns: 1fr auto; }
    .payment-history-row .payment-status { grid-column: 1 / -1; width: max-content; }
}

@media (max-width: 400px) {
    .btn-register { font-size: 0; }
    .btn-register::after { content: "JOIN"; font-size: 11px; }
    .panel-body { grid-template-columns: minmax(0, 1fr) 116px; }
    .auto-control { gap: 11px; }
    .quick-amounts button:last-child { display: none; }
    .quick-amounts { grid-template-columns: repeat(3, 1fr); }
}

/* Professional visual refresh */
body {
    color: #e9eef6;
    background:
        radial-gradient(circle at 12% 0%, rgba(242, 20, 79, .11), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(68, 117, 255, .10), transparent 25%),
        #090e16;
}

.app-shell { grid-template-rows: 68px minmax(0, 1fr); }
.topbar {
    min-height: 68px;
    padding: 0 clamp(16px, 2.4vw, 36px);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    color: #f6f8fb;
    background: rgba(11, 17, 27, .92);
    box-shadow: 0 10px 32px rgba(0, 0, 0, .22);
}
.brand {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 6px;
    box-shadow: 0 7px 18px rgba(0, 0, 0, .24);
    font-size: 16px;
}
.single-game-title { gap: 8px; color: #fff; font-size: 13px; font-style: normal; letter-spacing: .4px; }
.single-game-title > span { color: var(--red); filter: drop-shadow(0 0 8px rgba(242,20,79,.55)); }
.single-game-title b { font-style: italic; font-weight: 950; }
.single-game-title small { padding: 4px 7px; border: 1px solid rgba(255,255,255,.1); border-radius: 99px; color: #7f8da2; font-size: 8px; font-weight: 900; letter-spacing: 1px; }
.account-actions { gap: 9px; }
.pwa-install-top { height: 42px; border-color: #344052; color: #e1e8f1; background: #18222f; box-shadow: 0 7px 18px rgba(0, 0, 0, .16); }
.pwa-install-top:hover { border-color: #596a80; background: #222e3d; }
.btn { height: 42px; border: 1px solid transparent; border-radius: 10px; }
.btn-login { color: #f1f4f8; border-color: #303b4b; background: #1a2330; box-shadow: none; }
.btn-login:hover { border-color: #526175; background: #222d3c; }
.btn-register, .deposit-action { background: linear-gradient(135deg, #16ce70, #079c51); box-shadow: 0 8px 24px rgba(9, 191, 98, .22); }
.withdraw-action { color: #d9e1ec; border-color: #344052; background: #202a38; }
.wallet-pill { height: 42px; border-color: #303a49; color: #fff; background: #161f2b; }
.wallet-pill small { color: #77859a; }
.profile-button { border: 1px solid #38475a; background: linear-gradient(135deg, #273448, #151e2a); box-shadow: 0 5px 16px rgba(0,0,0,.24); }

.main-content { padding: clamp(12px, 2vw, 26px); }
.game-card {
    max-width: 1480px;
    border: 1px solid rgba(139, 157, 184, .26);
    border-radius: 18px;
    background: #111722;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .42), 0 0 0 1px rgba(255,255,255,.025) inset;
}
.game-head {
    height: 64px;
    padding: 0 20px;
    border-bottom-color: rgba(255,255,255,.07);
    background: linear-gradient(180deg, #171e29, #111720);
}
.aviator-brand-block { display: flex; align-items: center; gap: 15px; }
.aviator-brand-block > small { display: inline-flex; align-items: center; gap: 6px; color: #78879a; font-size: 8px; font-weight: 900; letter-spacing: 1.2px; }
.aviator-brand-block > small i { width: 7px; height: 7px; border-radius: 50%; background: #17d877; box-shadow: 0 0 0 4px rgba(23,216,119,.11), 0 0 13px rgba(23,216,119,.48); }
.aviator-logo { font-size: 23px; text-shadow: 0 0 20px rgba(242,20,79,.25); }
.secure-play { margin-right: 4px; color: #637186; font-size: 8px; font-weight: 850; letter-spacing: .8px; }
.game-tool { width: 34px; height: 34px; border: 1px solid #303b49; border-radius: 10px; color: #dfe6ef; background: #202a37; transition: border-color .18s, background .18s, transform .18s; }
.game-tool:hover { border-color: #56657a; background: #2a3747; transform: translateY(-1px); }
.game-tool.sound-muted { color: #778396; background: #18212c; }

.round-history {
    min-height: 46px;
    gap: 6px;
    padding: 6px 14px;
    border-bottom-color: rgba(255,255,255,.06);
    background: #141b26;
}
.history-label { flex: 0 0 auto; margin-right: 5px; color: #5f6c7e; font-size: 8px; font-weight: 900; letter-spacing: 1.05px; }
.round-history button:not(.history-more) { padding: 5px 10px; border: 1px solid rgba(125,105,255,.16); color: #a99bff; background: rgba(115,87,255,.08); }
.round-history button.warm { border-color: rgba(231,128,255,.18); color: #e58bff; background: rgba(231,128,255,.07); }
.round-history button.hot { border-color: rgba(255,74,130,.22); color: #ff648f; background: rgba(255,74,130,.08); }
.round-history button:nth-of-type(n+11):not(.history-more),
.round-history .history-more { display: none; }
.round-history .history-more { border: 1px solid #303b4a; background: #202a37; }

.game-grid { min-height: clamp(460px, calc(100vh - 420px), 700px); }
.flight-area {
    min-height: 460px;
    background: #0d0d0f;
}
.flight-area::before {
    opacity: 1;
    background-size: auto;
    background-image: repeating-conic-gradient(
        from 269deg at 1.5% 98%,
        rgba(102, 28, 122, .09) 0deg 2.4deg,
        transparent 2.4deg 7.4deg
    );
    mask-image: linear-gradient(90deg, #000 0 72%, transparent 91%);
}
.flight-area::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 1;
    pointer-events: none;
    background-image:
        radial-gradient(ellipse at 52% 54%, rgba(79, 12, 57, .16), transparent 48%),
        linear-gradient(180deg, rgba(255,255,255,.018), transparent 34%);
}
.sky-glow { display: none; }
.waiting-propeller {
    position: absolute;
    z-index: 3;
    top: 16%;
    left: 50%;
    width: clamp(92px, 10vw, 132px);
    color: #f2144f;
    opacity: 0;
    transform: translateX(-50%) scale(.82);
    transition: opacity .22s ease, transform .28s ease;
    pointer-events: none;
}
.waiting-propeller svg { display: block; width: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 4; filter: drop-shadow(0 0 9px rgba(242,20,79,.22)); }
.waiting-propeller-spin { transform-box: fill-box; transform-origin: center; animation: waitingPropellerSpin 1.05s linear infinite; }
.waiting-propeller-waves { opacity: .92; animation: propellerWave 1.05s ease-in-out infinite; }
.flight-area.betting .waiting-propeller { opacity: 1; transform: translateX(-50%) scale(1); }
.flight-area.countdown-final .waiting-propeller-spin { animation-duration: .52s; }
@keyframes waitingPropellerSpin { to { transform: rotate(360deg); } }
@keyframes propellerWave { 50% { opacity: .46; } }
.round-status { top: 46%; }
.round-status span { color: #8996a9; font-size: 10px; letter-spacing: 2px; }
.round-status strong { margin: 7px 0 4px; font-size: clamp(58px, 7vw, 100px); letter-spacing: -5px; text-shadow: 0 9px 35px rgba(0,0,0,.55); }
.round-status small { color: #627084; font-size: 12px; }
.flight-area.flying .round-status strong { color: #fff; text-shadow: 0 0 35px rgba(255,255,255,.09), 0 10px 35px rgba(0,0,0,.5); }
.flight-area.betting .round-status { top: 59%; width: min(94%, 640px); }
.flight-area.betting .round-status span { color: #fff; font-size: clamp(18px, 2.2vw, 28px); font-weight: 800; letter-spacing: .3px; line-height: 1; }
.flight-area.betting .round-status strong { display: none; }
.flight-area.betting .round-status small { margin-top: 12px; color: #8d96a4; font-size: 12px; }
.flight-area.crashed .round-status { top: 48%; }
.flight-area.crashed .round-status span { color: #fff; font-size: clamp(17px, 1.8vw, 25px); letter-spacing: .5px; }
.flight-area.crashed .round-status small { display: none; }
.round-status.crashed strong { color: #ff235b; text-shadow: 0 0 40px rgba(242,20,79,.3); }

.plane {
    width: clamp(98px, 16.667vw, 150px);
    aspect-ratio: 150 / 74;
    filter: drop-shadow(0 7px 6px rgba(0,0,0,.48));
    font-size: 0;
    transform: translate(-14%, 10%);
    transform-origin: 14% 90%;
    will-change: left, bottom, transform, opacity;
}
.plane img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
}
.plane-frame { animation: planeFrameVisibility .533333s linear infinite; }
.plane-frame-1 { animation-delay: -.4s; }
.plane-frame-2 { animation-delay: -.266667s; }
.plane-frame-3 { animation-delay: -.133333s; }
@keyframes planeFrameVisibility {
    0%, 24.99% { opacity: 1; }
    25%, 100% { opacity: 0; }
}
.flight-area.betting .plane {
    left: 4%;
    bottom: 5%;
    opacity: .94;
    animation: waitingPlane 2.4s ease-in-out infinite;
}
.flight-area.flying .plane { animation: planeFloat 1.8s ease-in-out infinite; }
.flight-area.crashed .plane { opacity: 0; animation: none; }
.flight-area.crashed.crash-transition .plane { opacity: 1; animation: planeFlyAway .5s linear forwards; }
@keyframes waitingPlane { 50% { transform: translate(-14%, 10%) translateY(-3px); } }
@keyframes planeFlyAway {
    0% { opacity: 1; transform: translate(-14%, 10%); }
    99% { opacity: 1; }
    100% { opacity: 0; transform: translate(calc(-14% + var(--fly-away-x, 100vw)), calc(10% - 200px)); }
}
@keyframes planeFloat {
    0%, 100% { transform: translate(-14%, 10%) translateY(0); }
    50% { transform: translate(-14%, 10%) translateY(-4px); }
}
.cloud-lines { display: none; }
.countdown-track { right: 23%; bottom: 17%; left: 23%; height: 4px; background: #273241; box-shadow: 0 0 0 1px rgba(255,255,255,.025); }
.countdown-track i { background: linear-gradient(90deg, #ff124f, #ff557c); box-shadow: 0 0 16px rgba(242,20,79,.5); }
.flight-area.flying::before { animation: flightRays 8s linear infinite; }
@keyframes flightRays { 50% { transform: scale(1.035) rotate(.35deg); } }

.betting-desk { gap: 12px; padding: 12px; border-top-color: rgba(255,255,255,.07); background: #0d131c; }
.bet-panel { padding: 11px; border-color: #303b49; border-radius: 14px; background: linear-gradient(145deg, #1c2532, #171f2b); box-shadow: inset 0 1px rgba(255,255,255,.025), 0 8px 24px rgba(0,0,0,.13); }
.panel-tabs { margin-bottom: 10px; background: #0d131c; }
.panel-tabs button.active { background: #344155; box-shadow: 0 3px 8px rgba(0,0,0,.22); }
.panel-body { gap: 12px; }
.amount-stepper { min-height: 55px; border-color: #3a4657; border-radius: 11px; background: #111822; }
.quick-amounts { gap: 5px; margin-top: 6px; }
.quick-amounts button { min-height: 24px; border: 1px solid rgba(255,255,255,.025); border-radius: 6px; background: #273241; }
.auto-control { color: #93a0b1; }
.auto-at input { border-color: #3c495b; border-radius: 7px; background: #111822; }
.bet-action { min-height: 74px; border-radius: 12px; background: linear-gradient(145deg, #21d579, #079e50); box-shadow: inset 0 1px rgba(255,255,255,.32), 0 10px 24px rgba(0,182,91,.2); }
.bet-action span { letter-spacing: .3px; }
.game-footer { min-height: 40px; border-top-color: rgba(255,255,255,.06); background: #121923; }
.pwa-install-footer { color: #bfc9d7; }
.fair-dot { box-shadow: 0 0 0 4px rgba(9,191,98,.1), 0 0 12px rgba(9,191,98,.4); }

.modal { border: 1px solid rgba(255,255,255,.17); border-radius: 18px; }
.wallet-modal { border-color: #d9e0e8; box-shadow: 0 35px 120px rgba(0,0,0,.58); }
.auth-form input, .wallet-form input, .wallet-form select, .wallet-form textarea { transition: border-color .18s, box-shadow .18s, background .18s; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(87,137,255,.42); outline-offset: 2px; }

@media (max-width: 900px) {
    .app-shell { grid-template-rows: 60px minmax(0, 1fr); }
    .topbar { min-height: 60px; }
    .pwa-install-top { height: 38px; }
    .game-grid { min-height: 430px; }
    .flight-area { min-height: 430px; }
    .plane { width: clamp(98px, 16.667vw, 150px); }
    .secure-play { display: none; }
    .round-history { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; min-height: 82px; padding: 7px 9px; }
    .history-label { display: block; grid-column: 1 / -1; margin: 0; padding-right: 50px; }
    .round-history button:not(.history-more) { min-width: 0; width: 100%; padding: 5px 2px; overflow: hidden; font-size: 10px; text-align: center; text-overflow: ellipsis; }
    .round-history.history-expanded button:nth-of-type(n+11):not(.history-more) { display: block; }
    .round-history .history-more:not([hidden]) { position: absolute; top: 5px; right: 9px; display: inline-flex; height: 18px; align-items: center; justify-content: center; padding: 0 7px; font-size: 8px; letter-spacing: .35px; }
}

@media (max-width: 640px) {
    .app-shell { grid-template-rows: 56px minmax(0, 1fr); }
    .topbar { min-height: 56px; }
    .pwa-install-top { width: 36px; min-width: 36px; height: 36px; }
    .main-content { padding: 7px; }
    .game-card { border-radius: 13px; }
    .game-head { height: 54px; padding: 0 12px; }
    .aviator-brand-block { gap: 9px; }
    .aviator-brand-block > small { font-size: 7px; }
    .round-history { min-height: 82px; padding-right: 9px; padding-left: 9px; }
    .history-label { display: block; }
    .game-grid { min-height: 350px; }
    .flight-area { min-height: 350px; }
    .round-status strong { font-size: clamp(54px, 17vw, 72px); }
    .round-status span { font-size: 8px; }
    .plane { width: 98px; }
    .waiting-propeller { top: 14%; width: 88px; }
    .flight-area.betting .round-status { top: 58%; }
    .flight-area.betting .round-status span { font-size: clamp(17px, 5.3vw, 23px); }
    .betting-desk { gap: 8px; padding: 8px; }
    .bet-panel { padding: 9px; }
    .bet-action { min-height: 68px; }
}

.my-bets-panel { border-top: 1px solid rgba(255,255,255,.07); color: #e9eef6; background: #101720; scroll-margin-top: 72px; }
.my-bets-panel-head { display: flex; min-height: 62px; align-items: stretch; padding: 7px 12px; }
.my-bets-toggle { display: grid; min-width: 0; flex: 1; grid-template-columns: 38px minmax(0, 1fr) 24px; align-items: center; gap: 10px; padding: 5px 8px; color: #eef3f9; background: transparent; cursor: pointer; text-align: left; }
.my-bets-icon { display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid #3a4758; border-radius: 10px; color: #ff3f70; background: #1b2532; }
.my-bets-icon svg { width: 19px; height: 19px; fill: currentColor; }
.my-bets-title { display: grid; gap: 2px; }
.my-bets-title b { font-size: 11px; letter-spacing: .8px; }
.my-bets-title small { overflow: hidden; color: #718095; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.my-bets-chevron { color: #7d8999; font-size: 22px; line-height: 1; transform: rotate(0); transition: transform .18s ease; }
.my-bets-panel.open .my-bets-chevron { transform: rotate(180deg); }
.my-bets-refresh { align-self: center; width: 36px; height: 36px; border: 1px solid #344153; border-radius: 10px; color: #9eabbc; background: #1b2532; cursor: pointer; font-size: 19px; }
.my-bets-refresh:hover { color: #fff; border-color: #53647a; }
.my-bets-refresh:disabled { cursor: wait; opacity: .6; }
.my-bets-refresh.loading { animation: myBetsSpin .8s linear infinite; }
@keyframes myBetsSpin { to { transform: rotate(360deg); } }
.my-bets-content { padding: 0 14px 14px; }
.my-bets-list-head, .my-bet-row { display: grid; grid-template-columns: minmax(145px, 1.4fr) minmax(105px, .9fr) 95px 90px 105px 74px; gap: 10px; align-items: center; }
.my-bets-list-head { padding: 6px 12px; color: #5f6e82; font-size: 8px; font-weight: 850; letter-spacing: .55px; text-transform: uppercase; }
.my-bets-list { display: grid; gap: 5px; }
.my-bet-row { min-height: 55px; padding: 8px 12px; border: 1px solid #293544; border-radius: 10px; background: #151e29; }
.my-bet-primary, .my-bet-cell { min-width: 0; }
.my-bet-primary, .my-bet-cell:not(.result) { display: grid; gap: 2px; }
.my-bet-primary b, .my-bet-cell b { overflow: hidden; color: #e8edf4; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.my-bet-primary small, .my-bet-cell small { overflow: hidden; color: #69778a; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.my-bet-cell strong { color: #c9d2de; font-size: 11px; white-space: nowrap; }
.my-bet-cell.payout.won strong { color: #2cdc82; }
.my-bet-status { display: inline-flex; width: max-content; align-items: center; justify-content: center; padding: 4px 8px; border-radius: 99px; font-size: 8px; font-weight: 900; letter-spacing: .35px; text-transform: uppercase; }
.my-bet-status.won { color: #25d77a; background: rgba(24,198,105,.12); }
.my-bet-status.lost { color: #ff5a82; background: rgba(242,20,79,.12); }
.my-bet-status.pending { color: #ffc95a; background: rgba(255,184,0,.12); }
.my-bets-empty { display: grid; min-height: 150px; place-content: center; justify-items: center; gap: 3px; color: #657489; text-align: center; }
.my-bets-empty > span { color: #3f4d60; font-size: 32px; transform: rotate(-13deg); }
.my-bets-empty b { color: #c6cfda; font-size: 12px; }
.my-bets-empty small { font-size: 9px; }
.my-bets-note { margin: 10px 2px 0; color: #59677a; font-size: 8px; text-align: right; }

.deposit-amount-card {
    display: grid;
    grid-template-columns: minmax(170px, .75fr) minmax(0, 1.25fr);
    gap: 14px;
    align-items: end;
    padding: 15px;
    border: 1px solid #dce3ea;
    border-radius: 12px;
    background: linear-gradient(145deg, #f9fbfd, #f2f5f8);
}
.deposit-amount-card input { font-size: 19px; font-weight: 900; }
.deposit-quick-amounts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.deposit-quick-amounts button { min-height: 44px; padding: 7px 4px; border: 1px solid #d8dfe7; border-radius: 9px; color: #334050; background: #fff; cursor: pointer; font-size: 12px; font-weight: 850; transition: border-color .16s, color .16s, background .16s, transform .16s; }
.deposit-quick-amounts button:hover, .deposit-quick-amounts button.active { border-color: #14b966; color: #087c42; background: #eafbf2; transform: translateY(-1px); }
.deposit-account-field { display: block; }
.upi-launch-button { display: grid; min-height: 58px; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 11px; align-content: center; padding: 10px 16px; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #16ca70, #07934b); box-shadow: 0 10px 24px rgba(9, 168, 85, .22); cursor: pointer; text-align: left; transition: filter .16s, transform .16s; }
.upi-launch-button:hover { filter: brightness(1.04); transform: translateY(-1px); }
.upi-launch-button > span { display: grid; width: 34px; height: 34px; grid-row: 1 / 3; place-items: center; align-self: center; border: 1px solid rgba(255,255,255,.32); border-radius: 10px; background: rgba(255,255,255,.12); font-size: 19px; }
.upi-launch-button b { align-self: end; font-size: 13px; letter-spacing: .3px; }
.upi-launch-button small { align-self: start; color: rgba(255,255,255,.78); font-size: 10px; }
.payment-risk-note { margin: -7px 2px 0; color: #7b8795; font-size: 9px; line-height: 1.45; text-align: center; }
.upi-return-status { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 11px; align-items: center; padding: 13px 14px; border: 1px solid #a9e7c6; border-radius: 11px; color: #184d33; background: #effbf5; }
.upi-return-status.returned { border-color: #a9c5ef; color: #244d80; background: #f0f6ff; }
.upi-status-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: #fff; background: #11ae60; font-weight: 950; }
.upi-return-status.returned .upi-status-icon { background: #3978c7; }
.upi-return-status b { font-size: 12px; }
.upi-return-status p { margin: 2px 0; color: #4f6d5f; font-size: 11px; }
.upi-return-status.returned p { color: #5f7086; }
.upi-return-status small { display: block; color: #75887e; font-size: 9px; font-weight: 800; overflow-wrap: anywhere; }
.manual-deposit-fallback { border: 1px solid #dce2e9; border-radius: 10px; background: #fafbfd; }
.manual-deposit-fallback summary { padding: 12px 14px; color: #495665; cursor: pointer; font-size: 11px; font-weight: 850; }
.manual-deposit-fields { display: grid; gap: 12px; padding: 2px 14px 14px; }
.manual-deposit-fields > p { margin: 0; color: #6b7785; font-size: 11px; }

@media (max-width: 640px) {
    .header-identity { gap: 7px; }
    .profile-button { width: 36px; height: 36px; }
    .profile-popover { left: 12px; top: 62px; }
    .signed-in .topbar { gap: 8px; }
    .signed-in .account-actions { min-width: 0; gap: 0; }
    .wallet-pill { position: static; min-width: 102px; max-width: 116px; height: 36px; grid-template-columns: 24px auto; column-gap: 6px; padding: 3px 7px; transform: none; }
    .wallet-pill:hover { transform: none; }
    .wallet-icon { width: 24px; height: 24px; border-radius: 7px; }
    .wallet-icon svg { width: 15px; height: 15px; }
    .wallet-pill small { font-size: 7px; }
    .wallet-pill strong { overflow: hidden; max-width: 72px; font-size: 12px; text-overflow: ellipsis; }
    .signed-in .pwa-install-top { display: none; }
    .my-bets-panel { scroll-margin-top: 60px; }
    .my-bets-panel-head { min-height: 58px; padding: 6px 8px; }
    .my-bets-toggle { grid-template-columns: 34px minmax(0, 1fr) 20px; gap: 8px; padding-right: 4px; padding-left: 4px; }
    .my-bets-icon { width: 32px; height: 32px; border-radius: 9px; }
    .my-bets-refresh { width: 34px; height: 34px; }
    .my-bets-content { padding: 0 8px 10px; }
    .my-bets-list-head { display: none; }
    .my-bets-list { gap: 7px; }
    .my-bet-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; padding: 11px; }
    .my-bet-primary { grid-column: 1 / -1; padding-bottom: 8px; border-bottom: 1px solid #293544; }
    .my-bet-cell { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; }
    .my-bet-cell::before { content: attr(data-label); color: #657388; font-size: 8px; font-weight: 800; letter-spacing: .35px; text-transform: uppercase; }
    .my-bet-cell small { display: none; }
    .my-bet-cell[data-label="Round"] b::after { content: " · " attr(data-crash); }
    .my-bets-note { text-align: left; }
    .deposit-amount-card { grid-template-columns: 1fr; padding: 12px; }
    .deposit-quick-amounts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .deposit-quick-amounts button { min-height: 39px; }
}

.live-chat-launcher {
    position: fixed;
    z-index: 92;
    right: 20px;
    bottom: 20px;
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 99px;
    color: #fff;
    background: linear-gradient(135deg, #f2144f, #b90838);
    box-shadow: 0 14px 38px rgba(75,0,22,.34);
    cursor: pointer;
}
.live-chat-launcher > span { font-size: 17px; }
.live-chat-launcher > b { font-size: 10px; letter-spacing: .7px; }
.live-chat-launcher > i { display: grid; min-width: 21px; height: 21px; place-items: center; padding: 0 5px; border-radius: 99px; color: #b90838; background: #fff; font-size: 9px; font-style: normal; font-weight: 950; }
.live-chat-launcher.has-unread { animation: chatUnreadPulse 1.8s ease-in-out infinite; }
.signed-in .toast-stack { bottom: 82px; }
@keyframes chatUnreadPulse { 50% { box-shadow: 0 14px 38px rgba(75,0,22,.34), 0 0 0 7px rgba(242,20,79,.13); } }
.user-chat {
    position: fixed;
    z-index: 93;
    right: 20px;
    bottom: 78px;
    display: grid;
    width: min(390px, calc(100vw - 28px));
    height: min(640px, calc(100vh - 105px));
    grid-template-rows: auto auto auto minmax(0,1fr) auto;
    overflow: hidden;
    border: 1px solid #303b49;
    border-radius: 17px;
    color: #eaf0f7;
    background: #111923;
    box-shadow: 0 28px 90px rgba(0,0,0,.55);
}
.user-chat-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 16px; border-bottom: 1px solid #283442; background: #17212d; }
.user-chat-head small { color: #ff527e; font-size: 8px; font-weight: 900; letter-spacing: 1.3px; }
.user-chat-head h2 { margin: 2px 0 0; font-size: 18px; }
.user-chat-head > button { width: 33px; height: 33px; border-radius: 9px; color: #bec9d7; background: #273342; cursor: pointer; font-size: 22px; }
.user-chat-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 12px 0; }
.user-chat-tabs.single-tab { grid-template-columns: 1fr; }
.user-chat-tabs button { min-height: 35px; border-radius: 8px; color: #8795a8; background: #1c2734; cursor: pointer; font-size: 10px; font-weight: 850; }
.user-chat-tabs button.active { color: #fff; background: #38485c; }
.chat-retention-note { margin: 9px 13px; color: #76859a; font-size: 9px; line-height: 1.4; }
.user-chat-messages { display: flex; min-height: 0; flex-direction: column; gap: 8px; overflow-y: auto; padding: 7px 13px 13px; overscroll-behavior: contain; }
.chat-message { width: min(86%, 300px); padding: 9px 10px; border: 1px solid #2b3949; border-radius: 12px 12px 12px 3px; background: #1b2633; }
.chat-message.mine { align-self: flex-end; border-color: #7d1736; border-radius: 12px 12px 3px 12px; background: #57172c; }
.chat-message > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.chat-message > div b { color: #ff7195; font-size: 9px; }
.chat-message.mine > div b { color: #ffd5e0; }
.chat-message time { color: #69788d; font-size: 7px; }
.chat-message.mine time { color: #d69aac; }
.chat-message p { margin: 0; color: #e4eaf2; font-size: 11px; line-height: 1.48; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-message-image { display: block; margin-bottom: 7px; }
.chat-message-image img { display: block; width: 100%; max-height: 220px; border-radius: 8px; object-fit: cover; }
.user-chat-empty { display: grid; min-height: 100%; place-content: center; justify-items: center; gap: 4px; padding: 28px; color: #66768b; text-align: center; }
.user-chat-empty > span { color: #f2144f; font-size: 27px; }
.user-chat-empty b { color: #aeb9c8; font-size: 11px; }
.user-chat-empty small { max-width: 250px; font-size: 9px; line-height: 1.45; }
.user-chat-form { display: grid; gap: 7px; padding: 11px 12px 12px; border-top: 1px solid #2a3645; background: #151f2b; }
.user-chat-form textarea { width: 100%; min-height: 58px; max-height: 125px; resize: vertical; padding: 10px 11px; border: 1px solid #344356; border-radius: 9px; outline: 0; color: #edf2f7; background: #0e1620; font-size: 11px; }
.user-chat-form > div { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px; }
.chat-image-picker { cursor: pointer; }
.chat-image-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chat-image-picker span, .user-chat-form button { display: inline-flex; min-height: 33px; align-items: center; justify-content: center; padding: 0 10px; border-radius: 8px; font-size: 9px; font-weight: 900; }
.chat-image-picker span { color: #b8c4d3; border: 1px solid #354456; background: #202c39; }
.user-chat-form button { color: #fff; background: #f2144f; cursor: pointer; }
.user-chat-form button:disabled { cursor: wait; opacity: .65; }
.user-chat-form > div > small { overflow: hidden; color: #657489; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.user-chat-form > .form-message { min-height: 0; color: #ff8ba8; font-size: 9px; }

@media (max-width: 520px) {
    .live-chat-launcher { right: 12px; bottom: 12px; min-height: 44px; padding: 0 13px; }
    .user-chat { right: 7px; bottom: 65px; width: calc(100vw - 14px); height: min(620px, calc(100vh - 75px)); border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .plane-frame { animation: none !important; opacity: 0; }
    .plane-frame-0 { opacity: 1; }
}
