/* Shared structure: one data model, readable table on desktop, complete cards on phones. */
html{scroll-padding-top:16px}
button,input,summary,a{-webkit-tap-highlight-color:transparent}
button,summary,.pw-btn{touch-action:manipulation}
[hidden]{display:none!important}
.board-jump{display:inline-flex;align-items:center;gap:16px;width:max-content;min-height:44px;font-size:14px;font-weight:600}
.board-toolbar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px}
.board-toolbar h2{margin:0;font-size:26px;font-weight:600;letter-spacing:-.035em}
.board-toolbar p{margin:6px 0 0;color:#a3a3a3;font-size:13px}
.leaderboard-search{display:flex;align-items:center;gap:10px;width:280px;max-width:100%;min-height:48px;padding:0 14px;border:1px solid #404040;border-radius:12px;background:#111;color:#9a9a9a}
.leaderboard-search:focus-within{border-color:#ff7948;box-shadow:0 0 0 2px #ff794820}
.leaderboard-search input{width:100%;min-width:0;min-height:46px;padding:0;border:0;outline:0;background:transparent;color:#fff;font:400 16px 'Figtree',sans-serif}
.leaderboard-search input::placeholder{color:#a3a3a3}
.board-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:18px 24px;border-top:1px solid #333}
#boardCount{color:#a3a3a3;font-size:13px}
#showMore{min-height:44px;min-width:128px;padding:0 18px;font-size:14px}
.leaderboard-row:focus{outline:2px solid #ff7948;outline-offset:-3px}
.metric-label,.streak-days{display:none}
.board-revenue,.board-sales,.board-trials,.board-streak{text-align:right}
.board-revenue,.board-trials{color:#d2d2d2}
.board-streak .metric-value{display:flex;align-items:center;justify-content:flex-end;gap:3px}
.board-affiliate .affiliate-details{width:100%;min-width:0}
.prize-breakdown summary{display:none}
.pw-lockup{min-height:44px}
.pw-btn--m{min-height:44px}
.terms-close{width:44px;height:44px}
.terms-tab{min-height:44px}
#feed{min-height:0!important}
#leaderboard{scroll-margin-top:16px}

@media(max-width:1200px){
  .board-scroll{overflow:visible}
  .board-inner{min-width:0;width:100%}
  #board{height:auto!important;transition:none!important;display:flex;flex-direction:column}
  .board-head{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .leaderboard-row{position:relative;top:auto!important;left:auto;right:auto;height:auto!important;min-height:116px;width:100%;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:6px;row-gap:12px;padding:18px 20px 22px;transition:none;contain:layout paint}
  .leaderboard-row>.board-cell{filter:none}
  .board-rank{grid-column:1/2;grid-row:1;align-self:center;flex-direction:column;gap:2px!important}
  .board-rank .num{width:auto!important;font-size:18px!important}
  .board-rank>span:last-child{font-size:9px!important}
  .board-affiliate{grid-column:2/9;grid-row:1;gap:10px!important;align-self:center}
  .board-avatar,.board-avatar img{width:36px!important;height:36px!important;border-radius:10px!important}
  .affiliate-name{font-size:15px!important;line-height:1.3;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere}
  .affiliate-tier{flex-wrap:wrap;gap:4px!important}
  .next-tier{font-size:10px!important;color:#aaa!important}
  .earned-value{grid-column:9/13;grid-row:1;align-self:center;text-align:right!important;font-size:21px!important;letter-spacing:-.035em}
  .metric-label{display:block;margin-bottom:5px;color:#aaa;font:400 11px/1.25 'Figtree',sans-serif;letter-spacing:0}
  .metric-value{display:block;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
  .earned-value .metric-label{color:#c0ac91}
  .multiplier-cell{grid-column:1/13;grid-row:2;justify-content:flex-start}
  .milestone-badge{width:100%;max-width:none;flex-direction:row-reverse;justify-content:space-between;gap:12px;padding:8px 10px;border:1px solid #584127;border-radius:9px;background:#271d12;line-height:1.2}
  .milestone-badge__text{font-size:12px;color:#e7c388;background:none;-webkit-text-fill-color:currentColor;filter:none;animation:none}
  .milestone-badge__value{gap:6px}
  .milestone-multiplier{min-width:0;height:auto;padding:0;border:0;border-radius:0;background:none;box-shadow:none;text-shadow:none;color:#ffdc9b;font-size:17px;letter-spacing:-.3px;transform:none;animation:none}
  .milestone-multiplier::after{display:none}
  .milestone-emoji{font-size:14px;animation:none;filter:none}
  .board-revenue,.board-sales,.board-trials,.board-streak{grid-row:3;padding-top:2px;text-align:left;font-size:16px;line-height:1.2}
  .board-revenue{grid-column:1/4}.board-sales{grid-column:4/7}.board-trials{grid-column:7/10}.board-streak{grid-column:10/13}
  .board-streak .metric-value{justify-content:flex-start;gap:2px}
  .streak-days{display:inline}
  .leaderboard-row:not(.leaderboard-row--boosted) .multiplier-cell{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
  .leaderboard-row:not(.leaderboard-row--boosted) .board-revenue,.leaderboard-row:not(.leaderboard-row--boosted) .board-sales,.leaderboard-row:not(.leaderboard-row--boosted) .board-trials,.leaderboard-row:not(.leaderboard-row--boosted) .board-streak{grid-row:2}
  .leaderboard-row--boosted{background:#201910;border-bottom-color:#4a3523;box-shadow:inset 2px 0 #d48e3a}
  .leaderboard-row--boosted::before{background:none}
  .milestone-fire{opacity:.48}
  .leaderboard-row--boosted>.board-cell{filter:none}
  .leaderboard-row--boosted .earned-value,.boost-rank{text-shadow:none}
  .boost-avatar{box-shadow:0 0 0 1px #e1a45255}
  .leaderboard-row--boosted::after{box-shadow:none}
  .leaderboard-row--boosted:hover{background:#201910;box-shadow:inset 2px 0 #d48e3a}
}
@media(max-width:700px){
  .wrap-pad{padding-left:16px!important;padding-right:16px!important}
  header{padding-top:10px!important;padding-bottom:10px!important}
  .pw-lockup{gap:7px}.pw-lockup span{font-size:20px}
  .pw-btn--m{padding:0 15px;font-size:13px;height:44px}
  main{padding-top:24px!important;padding-bottom:max(32px,env(safe-area-inset-bottom))!important;gap:32px!important}
  .games-hero{gap:20px!important}
  .games-hero>div:first-child{gap:16px!important}
  .hero-h1{font-size:clamp(34px,8.4vw,50px);line-height:1.04}
  .games-hero p{font-size:14px!important;line-height:1.6!important}
  .hero-stats{display:grid!important;grid-template-columns:1.6fr 1fr 1fr;gap:12px!important;padding-top:0!important}
  .hero-stats>div{min-width:0}
  .hero-stats .stat-n{font-size:28px;overflow-wrap:anywhere}
  .hero-stats>div>div:first-child{font-size:11px!important;color:#aaa!important}
  .season-strip{height:auto;min-height:34px;padding:3px;flex-wrap:nowrap;max-width:100%;border-radius:20px}
  .season-strip__badge{padding:0 10px;font-size:11px}
  .season-strip__timer{padding:0 8px;gap:5px;font-size:11px;min-height:28px}
  .season-strip__sep{display:none}
  .prize-card{padding:18px!important;border-radius:18px!important;box-shadow:inset 0 0 0 1px #7b3517!important}
  .prize-card>div:first-child{display:none}
  .prize-total{font-size:34px!important;margin:5px 0 8px!important}
  .prize-breakdown summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;cursor:pointer;color:#d6c2b6;font-size:13px;list-style:none}
  .prize-breakdown summary::-webkit-details-marker{display:none}
  .prize-breakdown summary span{font-size:22px;color:#ff7948}
  .prize-breakdown[open] summary span{transform:rotate(45deg)}
  .prize-breakdown:not([open]) #prizes{display:none!important}
  .board-toolbar{padding:20px 16px;flex-direction:column;align-items:stretch;gap:16px}
  .board-toolbar h2{font-size:26px}
  .board-toolbar p{font-size:12px}
  .leaderboard-search{width:100%}
  #leaderboard{border-radius:18px}
  .milestone-notice{padding:14px 16px;gap:9px;background:#221d16}
  .milestone-notice__icon{width:24px;height:24px;border-radius:7px}
  .milestone-notice__title{font-size:12px;margin-bottom:5px}
  .milestone-notice p{font-size:12px;line-height:1.55;color:#bfb5a8}
  .leaderboard-row{padding:16px 12px 20px;column-gap:4px;row-gap:12px}
  .board-affiliate{gap:8px!important}
  .affiliate-name{font-size:14px!important}
  .board-avatar,.board-avatar img{width:32px!important;height:32px!important;border-radius:9px!important}
  .affiliate-tier>span:first-child{padding:0 5px!important;font-size:10px!important}
  .earned-value{font-size:20px!important}
  .board-revenue,.board-sales,.board-trials,.board-streak{font-size:15px}
  .board-pagination{padding:16px;gap:10px}
  #boardCount{font-size:12px}
  #podium{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  #podium>*{padding:16px!important;min-width:0;min-height:150px!important;order:2!important}
  #podium>.pw-podium--first{grid-column:1/-1;order:1!important;margin-top:12px;box-shadow:inset 0 0 0 1px #874324}
  #podium .num{font-size:28px!important;margin-top:16px!important}
  #podium .pw-podium--first .num{font-size:38px!important}
  #podium>div>div:first-child:not([style*="position:absolute"]){gap:10px!important}
  #podium img{width:40px!important;height:40px!important;border-radius:12px!important}
  #podium div[style*="width:64px"]{width:40px!important;height:40px!important}
  #podium div[style*="font-size:18px"]{font-size:14px!important;white-space:normal!important;overflow-wrap:anywhere}
  #podium div[style*="margin-top:14px"]{font-size:11px!important;gap:6px 10px!important}
  .tiers-section h2,.podium-section h2{font-size:22px!important}
  .tier-card{min-height:132px;padding:12px;gap:8px}
  #join h2{font-size:27px!important}
  #join .pw-btn{width:100%;min-height:48px;height:auto;padding:15px;font-size:15px}
  .terms-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px);border-radius:20px}
  .terms-header{padding:20px 16px 0;gap:10px}
  .terms-title{font-size:24px}
  .terms-tabs{margin:18px 16px 0}
  .terms-tab{font-size:13px;padding:10px 8px}
  .terms-panel{margin:20px 16px;font-size:14px}
  .spark{display:none}
  #tickerViewport{backdrop-filter:none!important}
  #celebration>div:last-child{width:calc(100% - 32px);padding:24px 16px!important}
}
@media(max-width:359px){
  .wrap-pad{padding-left:12px!important;padding-right:12px!important}
  .board-affiliate{grid-column:2/9;gap:6px!important}
  .board-avatar,.board-avatar img{width:28px!important;height:28px!important}
  .earned-value{font-size:18px!important}
  .affiliate-name{font-size:13px!important}
  .next-tier{white-space:normal!important}
  .board-revenue,.board-sales,.board-trials,.board-streak{font-size:14px}
}
