/* All overrides are scoped to small screens; desktop rules remain in style.css. */
.mobile-menu-button,.mobile-predict-jump{display:none}
@media(max-width:900px){
 .workspace{grid-template-columns:minmax(0,1fr)}.chart-layout.has-positions{grid-template-columns:minmax(0,1fr)}
 .chart-layout .entry-legend{margin:0 18px 16px;padding:12px 0 0;border:0;border-top:1px solid var(--line)}
 .chart .mobile-market-chart{overflow:hidden}.chart:has(.mobile-market-chart){height:auto;aspect-ratio:360/266;margin:10px 16px 0;max-height:440px}.mobile-market-chart text{font-size:11px;fill:#949da6}
 .entry-chip{flex-direction:row;align-items:center;justify-content:space-between;height:44px;font-size:13px;padding:6px 8px}.entry-chip small{font-size:11px}.position-list{max-height:308px}.positions-heading{font-size:10px}
}
@media(max-width:680px){
 html{scroll-padding-top:18px}body{min-width:320px}main{padding:24px 16px 0;min-width:0}header{display:grid;grid-template-columns:minmax(70px,1fr) auto 36px 44px;align-items:center;gap:8px;margin:0 16px;padding:14px 0;min-height:0;height:auto}header:has(#disconnectWallet[hidden]){grid-template-columns:1fr auto 44px}
 header .brand{grid-column:1;grid-row:1;font-size:19px;gap:7px;min-width:0}header .brand img{width:32px;height:32px}header .brand>span{display:inline}header:has(#disconnectWallet:not([hidden])) .brand>span{display:none}
 header .account-actions{display:contents}header #wallet{grid-column:2;grid-row:1;font-size:12px;min-height:44px;padding:10px 12px;white-space:nowrap}header #disconnectWallet{grid-column:3;grid-row:1;width:36px;height:44px;padding:8px}header #headerBalance{grid-column:1/-1;grid-row:2;font-size:17px;margin:9px 0 3px;padding:12px 0 0;border-top:1px solid #252629;overflow-wrap:anywhere}
 header #deposit{grid-column:1/3;grid-row:3}header #withdraw{grid-column:3/-1;grid-row:3}header #deposit,header #withdraw{font-size:13px;min-height:44px;margin-top:3px;padding:11px 8px}
 .mobile-menu-button{display:flex;grid-column:-2/-1;grid-row:1;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #34383c;border-radius:7px;color:#dadfe1}.mobile-menu-button svg{width:21px;height:21px}
 header nav{display:none;grid-column:1/-1;grid-row:4;margin:8px 0 0;padding:12px 0 0;border-top:1px solid #282c30;gap:5px;width:100%}header.mobile-menu-open nav{display:grid;grid-template-columns:1fr 1fr}header nav a,header #rulesNav{display:flex;align-items:center;min-height:46px;padding:12px;border-radius:7px;font-size:13px;background:#111315}header nav a.active{background:#2b1c13;color:#ff9858}
 button,a,input,select{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #ff9c59;outline-offset:3px}input,select,dialog input,dialog select,.funding-fields input,.funding-fields select,#sessionBudget{font-size:16px!important;min-height:48px}input[type=checkbox]{min-height:0}button{min-height:44px}
 .hero{padding:18px 0 28px}.hero h1{font-size:clamp(35px,10vw,48px);letter-spacing:-2px;line-height:1.08;margin:0 0 15px}.hero p{font-size:13px;margin:0;line-height:1.7}.hero p br{display:none}.btc{max-width:none;width:100%;margin:24px 0 0;padding:18px;border:1px solid #25292d;border-radius:10px;background:#101214}.btc .small{font-size:10px}.btc .pill{font-size:8px;margin-left:4px;padding:4px}.btc .price{font-size:34px;margin:14px 0 8px}.btc svg{width:100%;max-width:none;position:static;height:42px;margin:14px 0 0}.btc #marketChange{font-size:12px}.eyebrow{letter-spacing:1.1px;font-size:9px}.network-label{font-size:8px;letter-spacing:.5px}
 .section-title{margin-bottom:15px;gap:10px}h2{font-size:21px}.rounds{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:22px}.round-card.selected{grid-column:1/-1;padding:17px 18px;display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:center}.round-card.selected .card-top{display:block}.round-card.selected .live{display:block;margin-top:6px}.round-card.selected .card-pool{margin:0;font-size:28px;text-align:right}.round-card.selected .card-foot{grid-column:1/-1;font-size:11px;gap:10px;padding-top:11px}.round-card.coming-soon{padding:12px 9px;min-height:96px}.coming-soon .time-label{font-size:23px}.coming-soon .time-label small{font-size:10px}.coming-soon .coming-lock{display:none}.coming-soon-label{font-size:11px;min-height:28px;margin-top:7px}.time-label{font-size:29px}
 .workspace{gap:18px}.chart-panel{min-width:0;border-radius:11px}.chart-head{padding:18px 15px 0;gap:10px;align-items:flex-start}.chart-head .eyebrow{font-size:8px}.chart-head h2{font-size:19px;margin-top:9px}.chart-head .pill{display:block;width:max-content;margin:8px 0 0;font-size:9px}.chart-value{font-size:21px;white-space:nowrap}.chart-value .small{font-size:10px}.chart-stage{padding-top:112px}.round-countdown{top:18px}.countdown-label{font-size:10px}.countdown-value{font-size:46px;margin:5px 0;letter-spacing:1px}.countdown-next{font-size:11px;padding:0 12px}.chart-bottom{padding:13px 15px;gap:10px;font-size:10px;line-height:1.5;display:grid}.chart-layout .chart{margin-left:10px;margin-right:10px}.chart-layout .entry-legend{margin-left:15px;margin-right:15px}
 #predictionForm{scroll-margin-top:16px;padding:22px 18px;border-radius:11px}aside h2{font-size:27px}aside p{font-size:13px;margin:10px 0 22px}aside label{font-size:13px}.input-wrap{padding:13px}.input-wrap input{font-size:28px!important;min-height:38px}.input-wrap>span{font-size:14px}.quick{gap:7px;margin:10px 0 22px}.quick button{font-size:12px;min-height:44px}.detail{font-size:13px;margin:17px 0;gap:12px}.detail strong{text-align:right}.primary{min-height:52px;font-size:15px;padding:16px;border-radius:7px;gap:12px}.primary span{text-align:right}#balanceText{font-size:12px;line-height:1.7}.fine{font-size:11px;padding-top:17px;line-height:1.8}
 .mobile-arena{padding-bottom:88px}.mobile-predict-jump{display:block;position:fixed;bottom:max(12px,env(safe-area-inset-bottom));left:16px;right:16px;background:#ff762d;color:#17110d;padding:16px;border-radius:9px;text-align:center;min-height:52px;font-size:15px;font-weight:700;z-index:20;box-shadow:0 6px 30px #0009}.mobile-predict-jump.form-visible,body:has(dialog[open]) .mobile-predict-jump{display:none}
 .history{margin-top:28px}.history .activity-note,.activity-note{font-size:12px;line-height:1.7}.table-wrap:has(.mobile-card-table){overflow:visible;border:0;padding:0}.mobile-card-table{display:block;width:100%;white-space:normal;min-width:0}.mobile-card-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.mobile-card-table tbody{display:grid;gap:12px;width:100%}.mobile-card-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 12px;border:1px solid #2b2e32;background:#111315;border-radius:11px;padding:17px;min-width:0}.mobile-card-table td{display:block;padding:0!important;border:0;white-space:normal;min-width:0;font-size:13px;line-height:1.6;overflow-wrap:anywhere;align-self:start}.mobile-card-table td:before{content:attr(data-label);display:block;font-size:9px;letter-spacing:.6px;line-height:1.5;color:#89929c;margin-bottom:6px}.mobile-card-table td:first-child{grid-column:1/-1;padding-bottom:12px!important;border-bottom:1px solid #292c30;font-size:15px}.mobile-card-table td:first-child:before{display:none}.mobile-card-table td .cell-sub{font-size:10px;line-height:1.6;margin-top:4px}.mobile-card-table td .winner-item{margin:0}.mobile-card-table td .winner-link{margin:0;line-height:1.8}.mobile-card-table .state{font-size:12px;padding:6px 10px}.mobile-card-table a{display:inline-block;padding:4px 0}.predictions-table td:last-child{grid-column:1/-1}.mobile-card-table .paid{font-size:12px}.mobile-card-table .badge{font-size:10px}
 .predictions-hero{margin:15px 0 24px}.predictions-hero h1{font-size:36px;letter-spacing:-1.8px}.predictions-hero p{font-size:14px}.back-link{padding:12px 15px;font-size:13px;min-height:44px}.portfolio-stats{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:22px}.portfolio-stats>div{padding:14px 10px;min-width:0}.portfolio-stats span{font-size:11px}.portfolio-stats strong{font-size:26px}.portfolio-stats .account-label{font-size:11px;overflow-wrap:anywhere}.prediction-tools{display:grid;gap:14px;margin-top:16px}.prediction-tools .filters{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;padding-bottom:5px;max-width:calc(100vw - 32px);scrollbar-width:thin}.filters button{font-size:12px;white-space:nowrap;padding:10px 12px;flex-shrink:0}.prediction-tools select{width:100%;font-size:16px;min-height:48px}
 .stats-heading{margin:18px 0 26px;display:block}.stats-heading h1{font-size:clamp(33px,9vw,43px);letter-spacing:-1.9px;line-height:1.08}.stats-heading p{font-size:14px}.stats-health{margin-top:20px;justify-items:start;gap:12px;line-height:1.7;font-size:12px}.stats-health button{font-size:13px;min-height:44px}.stats-scope{display:block;font-size:9px;line-height:1.9;letter-spacing:.7px}.stats-scope span{display:block}.stats-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stats-cards article{padding:18px 14px;min-height:175px}.stats-cards strong{font-size:29px}.stats-cards small{font-size:11px}.stats-cards article>span:not(.stats-icon){font-size:12px;margin-right:0;max-width:85%}.stats-icon{top:18px;right:12px;font-size:15px}.stats-chart-heading{display:grid;gap:15px}.stats-ranges{width:max-content}.stats-ranges button{font-size:12px;min-height:44px}.stats-panel{padding:20px 15px}.stats-panel h3{font-size:20px}.stats-chart{height:auto;aspect-ratio:360/220;margin-top:18px}.stats-chart svg{display:block}.stats-chart text{font-size:11px}.stats-chart-note{font-size:11px}.stats-panel-head .eyebrow{font-size:9px}.stats-key{display:grid;gap:6px;font-size:11px}.stats-legend>div,.stats-frame-label{font-size:12px}.stats-definitions{padding:20px 17px;margin:24px 0 30px}.stats-definitions h2{font-size:21px}.stats-definitions p{font-size:12px;line-height:1.9}.stats-recent .section-title{display:block;line-height:1.7}.stats-recent .section-title>span{display:block;margin-top:9px}
 #leaderboardPage .stats-cards{grid-template-columns:repeat(2,minmax(0,1fr))}#leaderboardPage .stats-cards article:last-child{grid-column:1/-1;min-height:145px}.leader-table td{font-size:14px}.leader-table .win-rate{min-width:0}.leader-table .win-rate strong{font-size:16px}.leader-rank{width:26px}.leader-pagination{gap:12px;justify-content:center;flex-wrap:wrap;font-size:12px}.leader-pagination button{min-height:44px}
 .guide{padding:25px 16px 40px}.guide-hero{padding:10px 0 28px}.guide-hero h1{font-size:40px;letter-spacing:-2px;margin:20px 0}.guide-lead{font-size:16px;line-height:1.8}.guide-facts{gap:7px;margin:22px 0}.guide-facts span{font-size:12px;padding:9px}.guide-notice{padding:18px;font-size:13px}.guide-layout{gap:28px}.guide-toc{gap:7px;padding-bottom:20px}.guide-toc a{display:block;min-height:44px;font-size:13px;padding:9px;border:1px solid #282d30;border-radius:6px}.guide-section h2{font-size:28px}.guide-section h3{font-size:21px}.guide-section p,.guide-section li{font-size:15px}.guide-section figcaption{font-size:12px}.guide-section img{border-radius:8px}.guide-addresses a{padding:13px}.guide-addresses code{font-size:11px}.guide-table{overscroll-behavior-x:contain}.guide-top{margin-left:15px;font-size:13px}.guide-example{padding:18px}
 dialog{width:calc(100% - 24px);max-width:440px;max-height:calc(100dvh - 32px);padding:46px 20px 24px;border-radius:15px;overscroll-behavior-y:contain}dialog h2{font-size:25px;line-height:1.2}dialog p,dialog li{font-size:14px}dialog label{font-size:13px}dialog .close{width:44px;height:44px;right:6px;top:5px;z-index:1}.provider-option{min-height:66px;font-size:15px;padding:13px}.account-secondary{font-size:13px;min-height:44px}.account-total{font-size:34px}.deposit-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px}.deposit-tabs button{font-size:12px;line-height:1.5;padding:10px 0;text-align:left}.funding-summary{grid-template-columns:minmax(0,1fr) minmax(0,1fr);font-size:12px;gap:14px 10px}.funding-summary strong{overflow-wrap:anywhere}.funding-summary-note,.deposit-info{font-size:12px}.funding-address{padding:14px}.funding-address code{font-size:12px}.withdraw-amount-row{gap:8px}.withdraw-amount-row button{padding:12px}.risk-check{font-size:13px;gap:10px}.risk-check input{width:22px!important;height:22px;min-width:22px}.risk-links{font-size:13px}#accountStatus{font-size:12px}#fundingWalletBalance{overflow-wrap:anywhere}.transfer-amount{font-size:31px}.transfer-link{font-size:13px;min-height:44px;padding-top:10px}
 .toast,.toast.success{max-width:none;width:calc(100% - 32px);left:16px;right:16px;font-size:13px;padding:14px 16px;z-index:100}.toast{bottom:max(18px,env(safe-area-inset-bottom));transform:translateY(160px)}.toast.show{transform:translateY(0)}.toast.success{left:16px;top:max(12px,env(safe-area-inset-top));bottom:auto;transform:translateY(-180px)}.toast.success.show{transform:translateY(0)}
 .bottom-note{font-size:12px;line-height:1.8;padding:16px;margin:24px 0;gap:10px}footer{margin:0 16px;padding:22px 0 28px;gap:16px;flex-wrap:wrap}footer .hitprice-brand{font-size:18px}footer .hitprice-brand>span{display:inline}footer>span{display:block;font-size:11px}footer>a:last-child{font-size:12px;padding:10px 0}
}
@media(max-width:359px){header{margin:0 12px;gap:5px}header .brand>span{font-size:17px}header #wallet{font-size:11px;padding:9px}main{padding-left:12px;padding-right:12px}.hero .pill{display:none}.portfolio-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.chart-value{font-size:18px}.chart-head h2{font-size:17px}.stats-cards{grid-template-columns:1fr}.mobile-card-table tr{padding:14px;gap:13px 10px}}
@media(prefers-reduced-motion:reduce){.mobile-predict-jump,.toast{transition:none}}

.mobile-funding-actions{display:contents}@media(max-width:680px){header .mobile-funding-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;grid-column:1/-1;grid-row:3}header .mobile-funding-actions:has(#deposit[hidden]):has(#withdraw[hidden]){display:none}header .mobile-funding-actions #deposit,header .mobile-funding-actions #withdraw{grid-column:auto;grid-row:auto;width:100%}}
@media(max-width:900px){body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}}
@media(max-width:680px){.guide-layout{grid-template-columns:minmax(0,1fr)}.guide-layout>*{min-width:0}.guide-section{min-width:0}.guide-table{max-width:100%}}
@media(max-width:680px){.guide-section a{overflow-wrap:anywhere;word-break:normal}.guide-toc{grid-template-columns:repeat(2,minmax(0,1fr))}}
