: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: 248px minmax(0, 1fr) 80px;
    grid-template-rows: 58px auto;
    min-height: 100vh;
}

.topbar {
    position: sticky;
    z-index: 50;
    top: 0;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 248px 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; }

.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; }
.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-pill { display: grid; min-width: 128px; height: 40px; align-content: center; padding: 4px 14px; border: 1px solid var(--line); border-radius: 9px; background: #f8fafb; text-align: right; }
.wallet-pill small { color: #8993a0; font-size: 9px; font-weight: 850; letter-spacing: .5px; }
.wallet-pill strong { font-size: 14px; }
.profile-button { width: 38px; height: 38px; border-radius: 50%; color: #fff; background: #17212e; cursor: pointer; font-weight: 900; }
.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; padding: 18px; }
.game-card { overflow: hidden; max-width: 1350px; 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; }
.demo-badge { padding: 5px 9px; border: 1px solid #3d4654; border-radius: 99px; color: #aab3c0; font-size: 10px; font-weight: 850; letter-spacing: .7px; }
.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: 280px minmax(0, 1fr); min-height: 400px; }
.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; }
.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; }
.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; }
.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; font-size: 27px; letter-spacing: -.7px; }
.form-intro { margin: 6px 0 24px; color: #788290; font-size: 13px; }
.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; }
.profile-popover { position: fixed; z-index: 90; right: 22px; top: 54px; 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; }
.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) {
    .app-shell { grid-template-columns: 210px minmax(0, 1fr) 70px; }
    .topbar { grid-template-columns: 210px minmax(0, 1fr) auto; padding: 0 14px; }
    .main-nav a { padding-right: 9px; padding-left: 9px; font-size: 12px; }
    .btn { min-width: 105px; padding: 0 13px; }
    .game-grid { grid-template-columns: 235px minmax(0, 1fr); }
    .panel-body { grid-template-columns: minmax(155px, 1fr) minmax(120px, .8fr); }
    .auto-control { display: none; }
}

@media (max-width: 900px) {
    body { padding-bottom: 63px; }
    .app-shell { display: block; min-height: auto; }
    .topbar { position: sticky; display: flex; height: 56px; min-height: 56px; padding: 0 12px; }
    .mobile-menu { display: grid; width: 36px; height: 36px; margin-right: 9px; place-content: center; gap: 4px; border-radius: 8px; background: #f3f5f7; }
    .mobile-menu span { display: block; width: 17px; height: 2px; border-radius: 2px; background: #25303b; }
    .main-nav, .games-rail { display: none; }
    .account-actions { margin-left: auto; }
    .btn { min-width: 0; height: 36px; padding: 0 12px; font-size: 11px; }
    .btn-login { display: none; }
    .wallet-pill { min-width: 110px; height: 36px; padding: 3px 9px; }
    .category-rail { position: fixed; z-index: 70; top: 56px; bottom: 63px; left: 0; width: min(294px, 86vw); height: auto; transform: translateX(-102%); box-shadow: 12px 0 40px rgba(18, 26, 36, .18); transition: transform .22s ease; }
    .category-rail.open { transform: translateX(0); }
    .main-content { padding: 10px; }
    .game-grid { grid-template-columns: 1fr; }
    .bets-board { display: none; }
    .flight-area { min-height: 390px; }
    .betting-desk { grid-template-columns: 1fr; }
    .panel-body { grid-template-columns: minmax(180px, 1fr) minmax(160px, .72fr); }
    .info-card { grid-template-columns: 1fr; gap: 24px; padding: 26px; }
    .mobile-bottom { position: fixed; z-index: 65; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(4, 1fr); min-height: 63px; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #e6e9ed; background: rgba(255,255,255,.98); box-shadow: 0 -4px 18px rgba(22,30,42,.08); }
    .mobile-bottom a, .mobile-bottom button { display: grid; place-content: center; justify-items: center; gap: 2px; color: #68727f; background: transparent; font-size: 10px; }
    .mobile-bottom span { font-size: 17px; }
    .mobile-bottom .active { color: var(--red); font-weight: 850; }
}

@media (max-width: 640px) {
    .topbar .brand { font-size: 13px; }
    .btn-register { padding: 0 10px; }
    .wallet-pill { position: absolute; left: 50%; transform: translateX(-50%); }
    .game-card { border-radius: 10px; }
    .game-head { height: 48px; padding: 0 10px; }
    .aviator-logo { font-size: 18px; }
    .demo-badge { display: none; }
    .round-history button:nth-child(n+5):not(.history-more) { display: none; }
    .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-stepper { grid-template-columns: 30px minmax(70px, 1fr) 30px; }
    .bet-action span { font-size: 14px; }
    .game-footer span { display: none; }
    .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: 150px; align-content: end; padding: 23px; }
    .modal-brand-panel h2 { max-width: 270px; margin: 0; font-size: 24px; }
    .modal-brand-panel p, .modal-brand { display: none; }
    .modal-flight { left: auto; right: 10px; top: 55%; transform: translateY(-50%) rotate(-17deg); font-size: 78px; }
    .modal-form-panel { padding: 25px 21px 22px; }
    .auth-tabs { margin-bottom: 18px; }
    .help-modal { padding: 30px 23px; }
}

@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; }
    .quick-amounts button:last-child { display: none; }
    .quick-amounts { grid-template-columns: repeat(3, 1fr); }
}

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