/* App shell: the live game stays on screen; actions open in a sheet. */
:root{--app-safe-bottom:env(safe-area-inset-bottom,0px);--app-nav-height:72px;--app-action-height:74px;--app-surface:#fafaf4;--app-stroke:#e0e5d8;--app-accent:#6f8b61;--app-outer:#e9ede4}html{background:var(--app-outer);scroll-padding-top:86px}body.app-shell{background:var(--app-surface);max-width:1320px;margin:18px auto 110px;border:1px solid #dfe5d7;border-radius:24px;box-shadow:0 16px 80px #4358410c;min-height:calc(100dvh - 130px);position:relative;overflow-x:hidden}.app-shell .topbar{max-width:none;min-height:76px;padding:17px 28px;gap:16px;background:var(--app-surface);border-bottom:1px solid var(--app-stroke);border-radius:24px 24px 0 0;position:relative;z-index:15}.app-shell .brand{font-size:17px;gap:10px}.app-shell .brand-mark{width:39px;height:39px;border-radius:12px}.app-shell .brand-mark svg{width:27px}.app-shell .brand small{font-size:7px;letter-spacing:2.2px}.app-shell .nav,.app-shell footer,.app-shell .intro{display:none!important}.app-shell .header-actions{gap:10px}.app-shell .wallet{background:#eef2e5;border-color:#dfe6d3;border-radius:11px;padding:9px 13px;font-size:15px}.app-shell .wallet small{display:none}.app-shell .level-button{background:#fffdf2;border-color:#e4e4d5;border-radius:9px;min-width:56px}.app-shell main{max-width:none;padding:22px 26px 28px}.app-shell .game-layout{grid-template-columns:minmax(0,1fr) 318px;gap:23px}.app-shell .arena-column{min-width:0}.app-shell .live-round-band{padding:0 1px;margin:0 0 13px;min-height:31px}.app-shell .sync-pill{font-size:11px;letter-spacing:.1px}.app-shell .round-phase>span{font-size:10px}.app-shell .round-phase>strong{font-size:23px;letter-spacing:-.4px}.app-shell .round-length{font-size:8px}.app-shell .race-schedule{gap:6px;margin-bottom:12px}.app-shell .schedule-item,.app-shell .race-mode,.app-shell .mode-card{padding:10px 9px;border-radius:8px;background:#f1f3eb;border-color:#e3e7db;min-height:61px}.app-shell .schedule-item.active,.app-shell .race-mode.active,.app-shell .mode-card.active{background:#e5eddc;border-color:#b2c5a1}.app-shell .schedule-item strong,.app-shell .race-mode strong,.app-shell .mode-card strong{font-size:10px;letter-spacing:-.3px}.app-shell .schedule-item>span,.app-shell .race-mode>span,.app-shell .mode-card>span{font-size:7px;letter-spacing:.4px;margin-bottom:3px}.app-shell .schedule-item small,.app-shell .race-mode small,.app-shell .mode-card small{font-size:8px;margin-top:3px}.round-brief{font-size:10px;line-height:1.7;color:#89957c;padding:1px 2px 11px;min-height:29px}.round-brief strong{font-weight:600;color:#6d805f}.app-shell .arena{border-radius:14px;border:1px solid #d8e1d0;box-shadow:0 2px 0 #60724a04}.app-shell .arena-top{height:47px;padding:0 17px;background:#fbfcf6}.app-shell .round-label{font-size:10px;color:#81916f}.app-shell .race-type{font-size:11px;font-weight:700;color:#4f6845;margin-left:10px}.app-shell .condition{font-size:9px;background:#edf3e4;color:#778969;padding:6px 9px}.app-shell .stage{height:380px}.app-shell .announcer{min-height:54px;padding:11px 14px;background:#fdfef9;gap:9px}.app-shell .announcer p{font-size:11px;line-height:1.7}.app-shell .announcer-label{font-size:9px}.app-shell .mic-icon{padding:6px}.app-shell .mic-icon svg{width:15px;height:15px}.app-shell .arena-meta{font-size:8px;margin:10px 2px 0;line-height:1.6}.app-shell .roster-heading{margin:20px 0 11px}.app-shell .roster-heading h2{font-size:14px}.app-shell .roster-heading>span{font-size:8px}.app-shell .animal-grid{gap:9px}.app-shell .animal-card{min-height:124px;border-radius:10px;padding:10px;background:#fffef8;border-color:#e1e6d8;box-shadow:0 2px 0 #304b3703}.app-shell .animal-card.selected{padding:9px;background:#eff5e7;border-color:#78986a;box-shadow:0 0 0 1px #78986a13}.app-shell .animal-card .animal-number{font-size:8px;top:10px;left:10px}.app-shell .animal-card canvas{height:61px;margin:0 0 4px}.app-shell .animal-info strong{font-size:12px}.app-shell .animal-info b{font-size:12px}.app-shell .animal-card p{font-size:8px;line-height:1.6;margin-top:4px}.app-shell .race-footnote{font-size:8px;margin-top:11px}.app-shell .ticket{position:sticky;top:16px;padding:21px 21px 16px;border:1px solid #e0e3d4;border-radius:15px;background:#fffef8;box-shadow:0 4px 20px #62714606;align-self:start}.app-shell .ticket:after{display:none}.app-shell .ticket-top{font-size:7px;letter-spacing:1.3px}.app-shell .ticket-top>svg{width:18px;height:18px}.app-shell .ticket h2{font-size:22px;margin:8px 0 17px;letter-spacing:-.6px}.app-shell .ticket h2>span{font-size:24px}.ticket-close,.ticket-sheet-handle,.ticket-backdrop,.mobile-action-bar{display:none}.app-shell .selected-animal{padding:13px 0;margin-bottom:17px}.app-shell .player-progress strong{font-size:9px}.app-shell .ticket-bottom{font-size:8px;margin-top:16px}.app-shell .ticket-bottom i{height:2px}.app-shell .start-button{min-height:45px;border-radius:9px;background:#314838;box-shadow:0 2px 0 #243c2c;font-size:12px;padding:12px 14px}.app-shell .start-button:hover{background:#47634d}.app-shell .add-bet{min-height:42px;background:#e7efdc;color:#63804e;border-color:#d3e0c5}.app-shell .result-money{margin:19px 0;padding:18px 0}.result-podium:empty,.result-highlight:empty{display:none}.result-podium{display:flex;justify-content:center;align-items:flex-end;gap:7px;margin:17px 0 13px;min-height:96px}.result-podium>div{flex:1;text-align:center;background:#e9efdd;border-radius:8px 8px 3px 3px;min-height:66px;padding:11px 5px 8px;position:relative;color:#8b9b76;font-size:9px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:5px}.result-podium>div:first-child{background:#f5eabe;min-height:91px;color:#9f8c4c}.result-podium>div:nth-child(2){min-height:76px}.result-podium>div>strong{font-size:13px;color:#5c7351}.result-podium>div>span{font-size:20px;font-weight:800;line-height:1}.result-podium canvas{width:65px;height:55px;max-width:100%;display:block;margin-top:-29px}.result-highlight{font-size:10px;line-height:1.8;background:#f2efdf;border:1px solid #e8e4cf;border-radius:7px;padding:10px 12px;color:#9b926c;margin:12px 0 16px}.app-bottom-nav{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);width:400px;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;border:1px solid #dce3d3;border-radius:20px;background:#fcfdf7f2;backdrop-filter:blur(18px);padding:8px 10px;z-index:30;box-shadow:0 8px 35px #31452a12}.app-bottom-nav>button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;border-radius:12px;color:#9aa58d;font-size:10px;font-weight:600;position:relative;transition:background .15s,color .15s}.app-bottom-nav>button svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.app-bottom-nav>button.active{color:#54734b;background:#e7efde}.app-bottom-nav>button:hover{background:#edf3e5;color:#6c885e}.app-shell .toast{bottom:102px;z-index:120}.app-shell dialog{border-radius:20px;max-height:min(86dvh,860px);padding:24px;width:min(620px,calc(100vw - 36px));background:#fafbf4;box-shadow:0 25px 100px #20371e2a}.app-shell dialog::backdrop{background:#283e2e59;backdrop-filter:blur(5px)}.app-shell .modal-top{font-size:8px;letter-spacing:1.7px;margin-bottom:12px}.app-shell .modal-top .icon-button{width:36px;height:36px;background:#eef2e5;border-color:#e0e6d5}.app-shell #modal-content h2{font-size:27px}.app-shell .shop-item{border-radius:11px;background:#fffef7}.app-shell .shop-item button{min-height:40px}.market-asset-tabs{display:flex;gap:5px;margin:14px -2px 2px;flex-shrink:0;overflow-x:auto;scrollbar-width:none;position:relative;padding:0 1px}.market-asset-tabs::-webkit-scrollbar{display:none}.market-asset-tabs>button{display:flex;align-items:center;justify-content:center;gap:4px;background:#69827314;border:1px solid #8ca58e26;border-radius:7px;min-height:32px;flex:1;min-width:52px;padding:6px 8px;color:#a9bdae;font-size:9px;font-weight:500;white-space:nowrap;transition:.15s}.market-asset-tabs>button.selected,.market-asset-tabs>button.active{color:#e5efd7;background:#7c9c602c;border-color:#95b27768}.market-asset-tabs>button small{font-size:7px;color:#88ae91}.market-asset-tabs>button small.negative,.market-asset-tabs>button small.down{color:#dca783}.app-shell .market-stage{padding:18px 20px 0}.app-shell .market-chart-top h3{font-size:20px}.app-shell .market-chart-label{font-size:7px;letter-spacing:1.7px}.app-shell .market-quote strong{font-size:27px}.app-shell .market-chart-area{margin-top:7px}.app-shell .market-news{margin-left:-20px;margin-right:-20px;min-height:44px;padding:10px 17px}.app-shell .market-news>p{font-size:10px}.app-shell .market-stage:not(.hidden) ~ .stage-controls{bottom:51px}.app-shell .market-direction-buttons button{min-height:45px}.app-shell .market-close-btn{min-height:43px}.app-shell .market-open-info{line-height:1.7}.app-shell .market-risk-note{line-height:1.8}.app-shell .stage-controls .live-indicator{font-size:8px}.app-shell .finish-banner{font-size:21px;padding:12px 21px;border-radius:7px;box-shadow:4px 5px 0 #304331}.app-shell .countdown{z-index:4;font-size:100px}.app-shell .stage-badge{font-size:7px;left:16px;top:15px}.app-shell .stage-badge span{font-size:10px;letter-spacing:.5px}.app-shell .stage-controls{left:13px;right:13px;bottom:13px}.app-shell .race-progress{height:3px}.app-shell .refill{min-height:41px}.app-shell .app-bottom-nav button:focus-visible{outline-color:#88a674}@media(min-width:1500px){body.app-shell{margin-top:28px}.app-shell .stage{height:410px}}@media(max-width:1360px){body.app-shell{margin:12px 16px 108px;max-width:none}.app-shell .topbar{padding:17px 24px}.app-shell main{padding:20px 23px 27px}.app-shell .game-layout{gap:20px;grid-template-columns:minmax(0,1fr) 303px}.app-shell .stage{height:360px}.app-shell .ticket{padding:20px 18px 15px}}@media(max-width:1050px){.app-shell .game-layout{grid-template-columns:minmax(0,1fr) 285px;gap:16px}.app-shell main{padding:18px}.app-shell .topbar{padding:15px 20px;min-height:70px}.app-shell .stage{height:340px}.app-shell .schedule-item,.app-shell .race-mode,.app-shell .mode-card{padding:9px 6px;min-height:59px}.app-shell .schedule-item strong,.app-shell .race-mode strong,.app-shell .mode-card strong{font-size:8px}.app-shell .schedule-item small,.app-shell .race-mode small,.app-shell .mode-card small{font-size:6px}.app-shell .race-schedule{gap:4px}.app-shell .ticket{padding:18px 16px 14px}.app-shell .round-length{display:none}.app-shell .race-type{font-size:9px}.app-shell .round-label{font-size:9px}.app-shell .condition{font-size:8px}.app-shell .announcer p{font-size:10px}.app-shell .market-asset-tabs>button{font-size:8px;min-width:43px;padding:6px 5px}.app-shell .market-asset-tabs>button small{display:none}.app-shell .market-chart-top h3{font-size:17px}.app-shell .market-quote strong{font-size:24px}.app-shell .market-stage{padding-left:15px;padding-right:15px}.app-shell .market-news{margin-left:-15px;margin-right:-15px;padding-left:13px;padding-right:13px}.app-shell .market-news>p{font-size:9px}.app-shell .market-news>span{font-size:7px}.app-shell .animal-card{padding:9px;min-height:121px}.app-shell .animal-card.selected{padding:8px}.app-shell .animal-info strong{font-size:11px}.app-shell .animal-info b{font-size:10px}.app-shell .animal-info strong small{display:none}.app-shell .animal-card canvas{height:58px}}@media(max-width:800px){html{background:var(--app-surface);scroll-padding-top:78px}body.app-shell{margin:0;border:0;border-radius:0;box-shadow:none;min-height:100dvh;max-width:none;padding-bottom:calc(var(--app-nav-height) + var(--app-action-height) + var(--app-safe-bottom) + 22px)}.app-shell .topbar{height:64px;min-height:64px;border-radius:0;position:sticky;top:0;z-index:20;padding:12px 19px;background:#fafbf4ed;backdrop-filter:blur(18px)}.app-shell .brand{font-size:15px;gap:9px;letter-spacing:.1px}.app-shell .brand-mark{width:35px;height:35px;border-radius:11px;transform:rotate(-6deg)}.app-shell .brand-mark svg{width:25px}.app-shell .brand small{font-size:6px;letter-spacing:1.5px;margin-top:3px}.app-shell .header-actions{gap:8px}.app-shell .header-actions .help{display:none}.app-shell .header-actions .icon-button{height:33px;width:33px;background:#f2f5e9}.app-shell .wallet{padding:8px 11px;font-size:14px;gap:6px;border-radius:10px}.app-shell .wallet .coin{height:17px;width:17px;border-width:2px}.app-shell .level-button{min-width:48px;padding:5px 7px;border-radius:8px;gap:3px}.app-shell .level-button>span{font-size:7px}.app-shell .level-button strong{font-size:13px}.app-shell .level-button i{height:3px}.app-shell main{padding:13px 18px 7px}.app-shell .game-layout{display:block}.app-shell .live-round-band{margin:0 1px 10px;min-height:31px}.app-shell .sync-pill{font-size:10px;gap:8px}.app-shell .round-phase{gap:9px}.app-shell .round-phase>span{font-size:10px}.app-shell .round-phase>strong{font-size:23px}.app-shell .race-schedule{gap:6px;margin-bottom:9px}.app-shell .schedule-item,.app-shell .race-mode,.app-shell .mode-card{border-radius:8px;padding:8px 7px;min-height:53px}.app-shell .schedule-item strong,.app-shell .race-mode strong,.app-shell .mode-card strong{font-size:10px;line-height:1.4}.app-shell .schedule-item>span,.app-shell .race-mode>span,.app-shell .mode-card>span{font-size:6px;margin-bottom:3px;letter-spacing:.1px}.app-shell .schedule-item small,.app-shell .race-mode small,.app-shell .mode-card small{font-size:7px;line-height:1.3;margin-top:3px}.round-brief{font-size:10px;line-height:1.6;padding:0 2px 9px;min-height:25px}.app-shell .arena{border-radius:13px}.app-shell .arena-top{height:42px;padding:0 14px}.app-shell .round-label{font-size:10px}.app-shell .race-type{font-size:11px;margin-left:9px}.app-shell .condition{font-size:8px;padding:6px 8px}.app-shell .stage{height:clamp(255px,39dvh,370px)}.app-shell .announcer{min-height:51px;padding:10px 12px;gap:8px}.app-shell .announcer-label{display:none}.app-shell .announcer p{font-size:11px;line-height:1.65}.app-shell .mic-icon{padding:6px}.app-shell .on-air{display:none}.app-shell .arena-meta{font-size:8px;margin:8px 2px 0}.app-shell .roster-heading{margin:17px 2px 10px}.app-shell .roster-heading h2{font-size:14px}.app-shell .roster-heading>span{font-size:9px}.app-shell .animal-grid{display:flex;overflow-x:auto;scroll-snap-type:x proximity;gap:9px;padding:1px 2px 7px;margin:0 -2px;scrollbar-width:none}.app-shell .animal-grid::-webkit-scrollbar{display:none}.app-shell .animal-card{flex:0 0 120px;min-height:125px;scroll-snap-align:start;padding:10px;border-radius:11px}.app-shell .animal-card.selected{padding:9px}.app-shell .animal-card canvas{height:60px}.app-shell .animal-info strong{font-size:12px}.app-shell .animal-info b{font-size:12px}.app-shell .animal-card p{font-size:8px;line-height:1.6;margin-top:5px;min-height:24px}.app-shell .animal-card .animal-number{top:10px;left:10px;font-size:8px}.app-shell .animal-card .animal-check{top:9px;right:9px}.app-shell .animal-card .bet-badge{right:29px;top:10px;font-size:7px}.app-shell .race-footnote{font-size:8px;line-height:1.6;gap:10px;margin-top:6px}.app-shell .race-footnote>span:last-child{max-width:48%;text-align:right}.app-shell .ticket{position:fixed;inset:auto 0 0;width:100%;max-width:620px;margin:0 auto;top:auto;bottom:0;z-index:60;border-radius:22px 22px 0 0;border:1px solid #dce3d1;border-bottom:0;box-shadow:0 -18px 70px #23392320;padding:30px 23px calc(25px + var(--app-safe-bottom));max-height:calc(100dvh - 70px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;transform:translateY(105%);visibility:hidden;transition:transform .27s cubic-bezier(.2,.8,.2,1),visibility .27s;scrollbar-width:thin;background:#fcfdf6;scroll-margin-top:0}.app-shell.ticket-open{overflow:hidden}.app-shell.ticket-open .ticket{transform:translateY(0);visibility:visible}.ticket-sheet-handle{display:block;position:absolute;top:9px;left:50%;transform:translateX(-50%);height:4px;width:38px;background:#d8dfcc;border-radius:5px}.ticket-close{display:grid;place-items:center;position:absolute;right:16px;top:17px;width:44px;height:44px;border-radius:50%;background:#eef3e4;border:1px solid #e1e8d5;color:#8b9c78;z-index:1}.ticket-close svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}.ticket-backdrop{display:block;position:fixed;inset:0;z-index:50;background:#22352a66;border:0;backdrop-filter:blur(4px);opacity:0;pointer-events:none;visibility:hidden;transition:opacity .25s,visibility .25s}.app-shell.ticket-open .ticket-backdrop{opacity:1;pointer-events:auto;visibility:visible}.app-shell .ticket-top{padding-right:55px;font-size:7px;letter-spacing:1.4px}.app-shell .ticket-top>svg{display:none}.app-shell .ticket h2{font-size:24px;margin:8px 0 18px;padding-right:57px}.app-shell .ticket h2>span{display:none}.app-shell .player-progress{padding-bottom:17px}.app-shell .player-progress strong{font-size:11px}.app-shell .player-progress span{font-size:10px}.app-shell .xp-track{height:5px}.app-shell .selected-animal{margin-bottom:19px;padding:15px 0}.app-shell .selected-portrait{width:67px;height:59px}.app-shell .selected-portrait canvas{height:58px}.app-shell .selected-animal strong{font-size:19px}.app-shell .selected-animal small{font-size:9px}.app-shell .selected-odds{font-size:24px}.app-shell .amount-label{font-size:13px}.app-shell .amount-label>span{font-size:10px}.app-shell .amount-input{padding:12px 14px}.app-shell .amount-input input{font-size:25px;min-height:32px}.app-shell .chips{gap:8px;margin:10px 0 15px}.app-shell .chips button{min-height:44px;font-size:12px;border-radius:8px}.app-shell .add-bet{min-height:46px;font-size:13px;border-radius:8px}.app-shell .bets-list{padding:11px 0;margin-bottom:11px}.app-shell .bet-row{font-size:12px;min-height:30px}.app-shell .bet-row strong{font-size:12px}.app-shell .bet-row button{height:35px;width:35px;font-size:19px}.app-shell .choose-another{min-height:44px;font-size:11px;padding:10px;margin:0 auto 7px}.app-shell .stake-breakdown>div{font-size:11px}.app-shell .stake-breakdown strong{font-size:11px}.app-shell .bet-total{font-size:13px;margin-top:12px}.app-shell .bet-total strong{font-size:27px}.app-shell .possible-return{font-size:10px}.app-shell .xp-preview{font-size:10px;padding:11px;margin:12px 0 16px}.app-shell .xp-preview strong{font-size:10px}.app-shell .start-button{min-height:50px;font-size:14px;padding:16px;border-radius:10px}.app-shell .confirm-note{font-size:9px;line-height:1.7}.app-shell .spectate{font-size:11px;min-height:44px;padding:13px 0;margin-top:6px}.app-shell .share-button{font-size:10px;min-height:44px;margin-top:0}.app-shell .ticket-bottom{font-size:9px;padding-top:14px;margin-top:12px}.app-shell .refill{min-height:46px;font-size:11px}.mobile-action-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;position:fixed;bottom:calc(var(--app-nav-height) + var(--app-safe-bottom));left:0;right:0;height:var(--app-action-height);padding:12px 20px;background:#fafcf3f2;backdrop-filter:blur(18px);border-top:1px solid #dfe6d3;z-index:32;box-shadow:0 -7px 24px #344b2c06}.mobile-action-bar>div{min-width:0;display:flex;flex-direction:column;gap:5px}.mobile-action-bar strong{font-size:13px;font-weight:700;color:#5c7350;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:54vw}.mobile-action-bar>div>span{font-size:9px;color:#9ca98b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:54vw}.mobile-action-bar>button{display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:121px;min-height:46px;padding:12px 14px;font-size:12px;font-weight:700;border-radius:10px;background:#314c38;color:#f8fbef;box-shadow:0 2px 0 #233e2b;flex-shrink:0}.mobile-action-bar>button>span{font-size:19px;font-weight:400;line-height:1}.mobile-action-bar>button:disabled{background:#dce4d1;color:#9baa8c;box-shadow:none}.app-bottom-nav{left:0;right:0;bottom:0;transform:none;width:auto;height:calc(var(--app-nav-height) + var(--app-safe-bottom));padding:5px 18px calc(7px + var(--app-safe-bottom));border-radius:0;border:0;border-top:1px solid #e3e8d9;background:#fcfdf8f5;box-shadow:none;gap:12px;z-index:35;backdrop-filter:blur(18px)}.app-bottom-nav>button{display:flex;flex-direction:column;gap:4px;min-height:55px;padding:7px 3px;border-radius:11px;font-size:9px;line-height:1.3;font-weight:600;color:#a1ad92}.app-bottom-nav>button svg{width:21px;height:21px;stroke-width:1.5}.app-bottom-nav>button.active{background:#eaf1df;color:#648253}.app-bottom-nav>button.active:before{content:'';position:absolute;top:2px;width:15px;height:2px;background:#93ad79;border-radius:3px}.app-shell.ticket-open .mobile-action-bar{pointer-events:none}.app-shell .toast{bottom:calc(var(--app-nav-height) + var(--app-action-height) + var(--app-safe-bottom) + 16px);font-size:11px;z-index:120;padding:12px 17px}.app-shell.ticket-open .toast{bottom:calc(var(--app-safe-bottom) + 20px)}.app-shell dialog{position:fixed;inset:auto 0 0;top:auto;bottom:0;max-height:calc(100dvh - 58px);height:auto;width:100%;max-width:620px;margin:0 auto;border-radius:23px 23px 0 0;border:1px solid #dce4d1;border-bottom:0;padding:20px 22px calc(24px + var(--app-safe-bottom));background:#fafcf3;overscroll-behavior:contain;box-shadow:0 -20px 80px #213b232b}.app-shell dialog::before{content:'';position:absolute;left:50%;transform:translateX(-50%);top:8px;width:38px;height:4px;border-radius:4px;background:#d6dfca}.app-shell .modal-top{position:sticky;top:-20px;background:#fafcf3ef;backdrop-filter:blur(14px);z-index:2;margin:-1px -1px 12px;padding:8px 0 8px;font-size:8px}.app-shell .modal-top .icon-button{width:44px;height:44px;border:1px solid #e0e8d4;background:#edf3e3;font-size:24px}.app-shell #modal-content h2{font-size:25px;line-height:1.4;letter-spacing:-.7px;margin:14px 0}.app-shell #modal-content p{font-size:12px;line-height:1.9}.app-shell #modal-content li{font-size:12px;line-height:1.9}.app-shell .shop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:20px}.app-shell .shop-item{padding:12px;border-radius:12px}.app-shell .shop-item button{min-height:44px;font-size:11px}.app-shell .shop-item h3{font-size:13px}.app-shell .shop-price{font-size:13px}.app-shell .cosmetic-preview{height:100px}.app-shell .level-tiers>div{min-height:60px}.app-shell .leaderboard-row,.app-shell .leaderboard-item{min-height:65px}.app-shell .market-stage{padding:16px 17px 0}.app-shell .market-chart-label{font-size:7px}.app-shell .market-chart-top h3{font-size:20px;margin-top:4px}.app-shell .market-quote strong{font-size:27px}.app-shell .market-quote>span{font-size:9px}.market-asset-tabs{gap:5px;margin-top:12px;margin-bottom:0;padding-bottom:2px}.market-asset-tabs>button{min-height:35px;min-width:54px;font-size:9px;padding:7px 8px;border-radius:7px}.app-shell .market-asset-tabs>button small{display:none}.app-shell .market-chart-area{margin:5px -5px 0}.app-shell .market-news{margin-left:-17px;margin-right:-17px;padding:10px 14px;min-height:44px;gap:8px}.app-shell .market-news>p{font-size:9px;line-height:1.6}.app-shell .market-news>span{font-size:7px}.app-shell .market-news>i{display:none}.app-shell .market-stage:not(.hidden) ~ .stage-controls{bottom:50px}.app-shell .market-panel .leverage-options button{min-height:47px;font-size:13px}.app-shell .market-panel .leverage-heading{font-size:12px}.app-shell .market-panel .leverage-heading>span{font-size:9px}.app-shell .market-order-heading{padding-top:16px;padding-bottom:20px}.app-shell .market-order-heading>strong{font-size:23px}.app-shell .market-order-heading>span{font-size:9px}.app-shell .market-order-details>div{font-size:11px}.app-shell .market-order-details strong{font-size:13px}.app-shell .market-risk-note{font-size:10px;padding:11px 12px;margin:14px 0 17px}.app-shell .market-direction-buttons button{min-height:50px;font-size:15px;padding:16px}.app-shell .market-close-btn{min-height:47px;font-size:12px}.app-shell .market-open-info{font-size:10px}.app-shell .market-position-panel{padding:17px}.app-shell .position-heading{font-size:11px}.app-shell .position-facts>div{font-size:11px}.app-shell .position-facts strong{font-size:12px}.app-shell .position-pnl strong{font-size:31px}.app-shell .position-pnl small{font-size:10px}.app-shell .market-trades-heading{font-size:12px}.app-shell .market-trades-heading span{font-size:10px}.app-shell .market-round-xp{font-size:10px}.app-shell .result-winner{font-size:28px}.app-shell .result-money strong{font-size:34px}.app-shell .result-xp{font-size:14px}.app-shell .result-detail{font-size:11px;line-height:1.8}.app-shell .result-highlight{font-size:11px}.app-shell .result-podium{min-height:106px}.app-shell .result-podium>div{font-size:10px;min-height:74px}.app-shell .result-podium>div:first-child{min-height:101px}.app-shell .result-podium>div:nth-child(2){min-height:85px}.app-shell .result-podium>div>strong{font-size:14px}.app-shell .result-podium>div>span{font-size:23px}.app-shell .next-countdown{font-size:11px}.app-shell .finish-banner{font-size:18px;max-width:calc(100% - 38px);white-space:normal;text-align:center;padding:10px 17px}.app-shell .stage-badge{font-size:6px;left:13px;top:13px;padding:7px 9px}.app-shell .stage-badge span{font-size:9px;letter-spacing:.3px}.app-shell .stage-controls{left:11px;right:11px;bottom:11px}.app-shell .countdown{font-size:88px}.app-shell .round-brief:empty{display:none}}@media(max-width:480px){:root{--app-nav-height:65px;--app-action-height:70px}.app-shell .topbar{height:62px;min-height:62px;padding:11px 14px;gap:8px}.app-shell .brand{font-size:13px;gap:8px}.app-shell .brand-mark{width:33px;height:33px;border-radius:10px}.app-shell .brand-mark svg{width:23px}.app-shell .brand small{font-size:5px;letter-spacing:1.1px}.app-shell .header-actions{gap:6px}.app-shell .header-actions .icon-button{height:29px;width:29px}.app-shell .header-actions .icon-button svg{width:14px}.app-shell .wallet{padding:8px 9px;font-size:13px;gap:5px}.app-shell .wallet .coin{height:15px;width:15px}.app-shell .level-button{min-width:43px;padding:4px 6px}.app-shell .level-button>span{font-size:6px}.app-shell .level-button strong{font-size:12px}.app-shell .level-button i{height:2px}.app-shell main{padding:10px 12px 7px}.app-shell .live-round-band{min-height:29px;margin-bottom:9px}.app-shell .sync-pill{font-size:9px}.app-shell .round-phase>span{font-size:9px}.app-shell .round-phase>strong{font-size:21px}.app-shell .race-schedule{gap:4px;margin-bottom:8px}.app-shell .schedule-item,.app-shell .race-mode,.app-shell .mode-card{padding:7px 5px;min-height:50px;border-radius:7px}.app-shell .schedule-item strong,.app-shell .race-mode strong,.app-shell .mode-card strong{font-size:8px;letter-spacing:-.5px;line-height:1.4}.app-shell .schedule-item>span,.app-shell .race-mode>span,.app-shell .mode-card>span{font-size:6px;letter-spacing:0;margin-bottom:3px}.app-shell .schedule-item small,.app-shell .race-mode small,.app-shell .mode-card small{font-size:6px;margin-top:3px}.round-brief{font-size:9px;line-height:1.6;padding-bottom:8px;min-height:23px}.app-shell .arena-top{height:39px;padding:0 11px}.app-shell .round-label{font-size:8px}.app-shell .race-type{font-size:10px;margin-left:7px}.app-shell .condition{font-size:7px;padding:5px 7px}.app-shell .stage{height:clamp(245px,37dvh,330px)}.app-shell .announcer{min-height:50px;padding:9px 10px;gap:7px}.app-shell .announcer p{font-size:10px;line-height:1.65}.app-shell .mic-icon{padding:5px}.app-shell .mic-icon svg{width:14px;height:14px}.app-shell .arena-meta{font-size:7px;margin-top:8px}.app-shell .roster-heading{margin:15px 1px 9px}.app-shell .roster-heading h2{font-size:13px}.app-shell .roster-heading>span{font-size:8px}.app-shell .animal-grid{gap:8px}.app-shell .animal-card{flex-basis:108px;min-height:119px;padding:8px}.app-shell .animal-card.selected{padding:7px}.app-shell .animal-card canvas{height:59px}.app-shell .animal-info strong{font-size:11px}.app-shell .animal-info b{font-size:11px}.app-shell .animal-card p{font-size:7px;line-height:1.5;min-height:22px;margin-top:4px}.app-shell .animal-card .animal-number{top:8px;left:8px;font-size:7px}.app-shell .animal-card .animal-check{top:7px;right:7px;font-size:8px;width:14px;height:14px;line-height:14px}.app-shell .animal-card .bet-badge{right:26px;top:8px;font-size:6px;padding:2px 4px}.app-shell .race-footnote{font-size:7px}.mobile-action-bar{padding:11px 15px;gap:10px}.mobile-action-bar strong{font-size:12px;max-width:54vw}.mobile-action-bar>div>span{font-size:8px;max-width:54vw}.mobile-action-bar>button{min-width:116px;min-height:45px;font-size:11px;gap:13px;padding:12px 13px;border-radius:9px}.app-bottom-nav{padding-left:14px;padding-right:14px;padding-top:4px;padding-bottom:calc(5px + var(--app-safe-bottom));gap:10px}.app-bottom-nav>button{min-height:54px;font-size:8px;gap:4px;padding:7px 2px}.app-bottom-nav>button svg{height:20px;width:20px}.app-shell .ticket{padding:29px 22px calc(23px + var(--app-safe-bottom));max-height:calc(100dvh - 57px);border-radius:22px 22px 0 0}.app-shell .ticket-top{font-size:6px}.app-shell .ticket h2{font-size:23px;margin-top:7px;margin-bottom:17px}.ticket-close{top:16px;right:15px}.app-shell .selected-animal{margin-bottom:18px}.app-shell .selected-animal strong{font-size:18px}.app-shell .selected-odds{font-size:23px}.app-shell .amount-label{font-size:12px}.app-shell .amount-label>span{font-size:9px}.app-shell .amount-input input{font-size:25px}.app-shell .chips button{font-size:11px}.app-shell .bet-total strong{font-size:25px}.app-shell .possible-return{font-size:9px}.app-shell .xp-preview{font-size:9px;padding:10px 8px}.app-shell .xp-preview strong{font-size:9px}.app-shell .confirm-note{font-size:8px}.app-shell .ticket-bottom{font-size:8px}.app-shell .start-button{font-size:13px}.app-shell dialog{padding:20px 20px calc(25px + var(--app-safe-bottom));max-height:calc(100dvh - 48px)}.app-shell #modal-content h2{font-size:24px}.app-shell .shop-grid{gap:10px}.app-shell .shop-item{padding:10px}.app-shell .cosmetic-preview{height:93px}.app-shell .shop-item h3{font-size:12px}.app-shell .shop-item button{font-size:10px}.app-shell .market-stage{padding:13px 13px 0}.app-shell .market-chart-label{font-size:6px;letter-spacing:1.3px}.app-shell .market-chart-top h3{font-size:17px;margin-top:4px}.app-shell .market-quote strong{font-size:25px}.app-shell .market-quote>span{font-size:8px}.market-asset-tabs{gap:4px;margin-top:10px}.market-asset-tabs>button{font-size:8px;min-width:44px;min-height:33px;padding:6px;border-radius:6px}.app-shell .market-chart-area{margin:4px -4px 0}.app-shell .market-news{margin-left:-13px;margin-right:-13px;padding:9px 11px;min-height:43px;gap:7px}.app-shell .market-news>span{font-size:6px}.app-shell .market-news>p{font-size:8px;line-height:1.6}.app-shell .market-stage:not(.hidden) ~ .stage-controls{bottom:48px}.app-shell .market-panel .leverage-heading{font-size:11px}.app-shell .market-panel .leverage-heading>span{font-size:8px}.app-shell .market-order-heading>strong{font-size:22px}.app-shell .market-order-heading>small{font-size:8px}.app-shell .market-risk-note{font-size:9px;padding:10px 11px}.app-shell .market-order-details>div{font-size:10px}.app-shell .market-order-details strong{font-size:12px}.app-shell .market-direction-buttons button{font-size:14px}.app-shell .market-open-info{font-size:9px}.app-shell .market-panel .leverage-options button{font-size:12px}.app-shell .market-trades-heading{font-size:11px}.app-shell .market-trades-heading span{font-size:9px}.app-shell .position-facts>div{font-size:10px}.app-shell .position-facts strong{font-size:11px}.app-shell .market-round-xp{font-size:9px}.app-shell .finish-banner{font-size:17px}.app-shell .result-highlight{font-size:10px}.app-shell .toast{font-size:10px;max-width:calc(100% - 38px)}}@media(max-width:360px){.app-shell .brand{font-size:12px;gap:6px}.app-shell .brand-mark{width:30px;height:30px}.app-shell .brand small{font-size:5px;letter-spacing:.8px}.app-shell .header-actions{gap:5px}.app-shell .header-actions .icon-button{height:26px;width:26px}.app-shell .wallet{font-size:12px;padding:7px}.app-shell .level-button{min-width:39px;padding-left:5px;padding-right:5px}.app-shell .round-phase>span{font-size:8px}.app-shell .sync-pill{font-size:8px}.app-shell .race-type{font-size:9px}.app-shell .stage{height:clamp(235px,36dvh,290px)}.mobile-action-bar{padding-left:13px;padding-right:13px}.mobile-action-bar strong{font-size:11px;max-width:50vw}.mobile-action-bar>div>span{font-size:7px;max-width:50vw}.mobile-action-bar>button{min-width:106px;font-size:10px}.app-shell .ticket{padding-left:19px;padding-right:19px}}@media(prefers-reduced-motion:reduce){.app-shell .ticket,.ticket-backdrop,.market-asset-tabs>button,.app-bottom-nav>button{transition:none!important}}
.app-shell .sheet-rules{display:none}@media(max-width:800px){.app-shell .ticket #mobile-rules{display:block;min-height:44px;font-size:10px;color:#9aa68a;margin:7px auto -5px;padding:12px 15px;text-decoration:underline;text-underline-offset:3px}.app-shell .market-asset-tabs>button{min-height:44px}}
/* Keep game choices comfortably readable on phones. */
.app-shell .result-podium>div>span{font-size:10px;line-height:1.4;font-weight:600}.app-shell .result-podium>div>strong{font-size:16px;line-height:1.4}.app-shell .result-podium>div>small,.app-shell .result-podium time{font-size:9px;line-height:1.4;font-weight:400;color:#97a184}.market-asset-tabs>button strong.up{color:#a6d0a0}.market-asset-tabs>button strong.down{color:#e4a788}@media(max-width:800px){.app-shell .race-schedule{display:flex;overflow-x:auto;gap:8px;padding:1px 1px 5px;margin-left:-1px;margin-right:-1px;scroll-snap-type:x proximity;scrollbar-width:none}.app-shell .race-schedule::-webkit-scrollbar{display:none}.app-shell .schedule-item,.app-shell .race-mode,.app-shell .mode-card{flex:0 0 108px;min-width:108px;padding:10px 10px;min-height:60px;scroll-snap-align:start}.app-shell .schedule-item strong,.app-shell .race-mode strong,.app-shell .mode-card strong{font-size:11px;letter-spacing:-.2px;line-height:1.5}.app-shell .schedule-item>span,.app-shell .race-mode>span,.app-shell .mode-card>span{font-size:8px;letter-spacing:.2px;margin-bottom:4px}.app-shell .schedule-item small,.app-shell .race-mode small,.app-shell .mode-card small{font-size:8px;line-height:1.5;margin-top:4px}.app-shell .market-asset-tabs{overflow-x:auto;gap:6px;scroll-snap-type:x proximity;padding-bottom:3px}.app-shell .market-asset-tabs>button{flex:0 0 80px;min-width:80px;min-height:46px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:7px 8px;scroll-snap-align:start;font-size:10px}.app-shell .market-asset-tabs>button span{font-size:10px;line-height:1.3}.app-shell .market-asset-tabs>button strong,.app-shell .market-asset-tabs>button strong.up,.app-shell .market-asset-tabs>button strong.down{font-size:9px;font-weight:600;line-height:1.3;letter-spacing:.1px}.app-shell .result-podium>div>span{font-size:10px;line-height:1.4}.app-shell .result-podium>div>strong{font-size:16px;line-height:1.4}.app-shell .result-podium>div>small,.app-shell .result-podium time{font-size:9px}}

/* Navigation destinations behave as app pages; order entry remains a sheet. */
@media(max-width:800px){.app-shell dialog.app-tab-view{position:fixed;top:64px;bottom:0;left:0;right:0;margin:0;width:100%;height:calc(100dvh - 64px);max-width:none;max-height:none;border:0;border-radius:0;padding:20px 22px calc(100px + env(safe-area-inset-bottom,0px));box-shadow:none;background:var(--app-surface);overflow-y:auto}.app-shell dialog.app-tab-view::before{display:none}.app-shell dialog.app-tab-view::backdrop{background:transparent;backdrop-filter:none}.app-shell dialog.app-tab-view .app-bottom-nav{bottom:0;left:0;right:0;transform:none;width:100%;border-radius:0}.app-shell .app-tab-view .modal-top{margin-bottom:8px}.app-shell .app-tab-view #modal-content h2{margin-top:12px}}
