/* RivalPot: Hub hall, Shop, try-on, Garage, Season Pass, Daily, Leaderboards (public/js/shop.js).
   Colours from the approved designs (Shop, ShopFloor, Pass, Daily, Ranks, Garage, Me). */

.gem-pill { margin-left: auto; background: var(--card); border-radius: 999px; padding: 7px 11px; font-size: 12px; font-weight: 600; color: var(--purple); white-space: nowrap; }
.gem-pill.dark { background: #070B16; margin-left: 0; }
.sec-h { font-family: Sora, sans-serif; font-weight: 600; font-size: 16px; letter-spacing: 0; margin: 18px 0 10px; }
.sec-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 10px; }
.sec-row .sec-h { margin: 0; }
.fine { font-size: 11.5px; line-height: 1.5; color: var(--dim); margin: 8px 0 0; }
.btn.flame { background: #FF8A5C; color: #3A1405; }
.btn.purple:disabled { background: #4A4270; color: #1E1638; }
.av.s30 { width: 30px; height: 30px; border-radius: 9px; font-size: 11px; }
.spinner.inline { display: block; width: 26px; height: 26px; margin: 14px auto 0; }
.seat-title { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--gold); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-emote { display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; border-radius: 10px; font-family: Sora, sans-serif; font-weight: 800; color: #fff; letter-spacing: .3px; box-sizing: border-box; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.cb.emote .shop-emote { border-radius: 12px; }

/* ------------------------------------------------------------ segmented USDC / SOL */
.seg { display: inline-flex; background: var(--card); border-radius: 999px; padding: 3px; gap: 2px; flex-shrink: 0; }
.seg button { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--purple); color: var(--purple-ink); }
.seg.wide { display: flex; width: 100%; margin: 6px 0 4px; }
.seg.wide button { flex: 1; padding: 10px 6px; font-size: 13px; }

/* ------------------------------------------------------------ Hub hall */
.hub-wrap { padding: 0 18px 24px; }
.hub-intro { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 4px 0 14px; }
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hub-tile { position: relative; text-align: left; border-radius: 20px; padding: 82px 14px 14px; min-height: 168px; display: flex; flex-direction: column; justify-content: flex-start; overflow: hidden; }
.hub-tile .k { font-size: 10px; font-weight: 700; letter-spacing: 1px; opacity: .8; position: relative; }
.hub-tile .t { font-family: Sora, sans-serif; font-weight: 800; font-size: 16px; position: relative; margin-top: 2px; }
.hub-tile .s { font-size: 11px; opacity: .8; position: relative; margin-top: 2px; }
.hub-tile .hub-art { position: absolute; left: 0; right: 0; top: 10px; height: 64px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.hub-tile.purple { background: #1E1638; border: 1px solid #3B2D6B; color: #EFE9FA; grid-column: span 2; min-height: 132px; padding-top: 14px; justify-content: flex-end; }
.hub-tile.purple .hub-art { left: auto; right: 16px; width: 140px; top: 22px; }
.hub-tile.flame { background: #22140D; border: 1px solid #3A2418; color: #F6EDE6; }
.hub-tile.gold { background: #2A2208; border: 1px solid #5C4716; color: #FFE7B0; }
.hub-tile.gold2 { background: #16213F; border: 1px solid #22305A; }
.hub-tile.purple2 { background: #120D22; border: 1px solid #2E2350; }
.hb-cue { width: 110px; height: 7px; border-radius: 4px; background: linear-gradient(90deg, #F3E3C0 0 5%, #F5B83D 5% 75%, #8A5A00); transform: rotate(-14deg); }
.hb-gem { width: 26px; height: 26px; background: var(--purple); transform: rotate(45deg); border-radius: 6px; box-shadow: inset -5px -5px 0 rgba(0,0,0,.18); }
.hb-pod { width: 26px; border-radius: 6px 6px 0 0; background: #5C4716; align-self: flex-end; }
.hb-pod.a { height: 36px; } .hb-pod.b { height: 54px; background: var(--gold); } .hb-pod.c { height: 26px; }
.hb-bar { width: 110px; height: 10px; border-radius: 5px; background: #1F2A4A; } .hb-bar b { display: block; width: 62%; height: 10px; border-radius: 5px; background: var(--gold); }
.hb-days { display: flex; gap: 6px; } .hb-days b { width: 24px; height: 30px; border-radius: 8px; background: #1E1638; } .hb-days b.on { background: var(--purple); }

/* ------------------------------------------------------------ item pictures */
.art { height: 56px; border-radius: 10px; background: #1A1430; display: flex; align-items: center; justify-content: center; gap: 4px; position: relative; overflow: hidden; }
.art-felt { background: #0F5A3E; }
.art-dark { background: #1A1430; }
.art-garage { background: #22140D; }
.art-cue { width: 76%; height: 6px; border-radius: 3px; box-shadow: 0 2px 4px rgba(0,0,0,.35); }
.art-cloth { width: 66px; height: 40px; border-radius: 5px; border: 4px solid #5A3A1E; box-sizing: content-box; }
.art-dot { border-radius: 50%; flex-shrink: 0; }
.art-dot.ball { width: 16px; height: 16px; background: radial-gradient(circle at 35% 30%, #fff, #E6E0D0); }
.art-none { font-size: 11px; color: var(--dim); }
.art-board { position: absolute; left: 50%; top: 50%; width: 42px; height: 42px; margin: -21px 0 0 -21px; display: grid; grid-template-columns: repeat(3, 1fr); border-radius: 4px; overflow: hidden; opacity: .9; }
.art-king { width: 34px; height: 34px; position: relative; z-index: 1; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.art-die { width: 38px; height: 38px; border-radius: 9px; display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px; box-sizing: border-box; box-shadow: inset -3px -4px 6px rgba(0,0,0,.18); }
.art-die i { width: 6px; height: 6px; border-radius: 50%; margin: auto; } .art-die b { display: block; }
.art-name { font-family: Sora, sans-serif; font-weight: 800; font-size: 14px; text-align: center; padding: 0 6px; max-width: 100%; overflow: hidden; }
.art-name .seat-title { font-size: 10px; margin-top: 2px; }
.art-car { position: relative; flex-shrink: 0; }
.art-car i { position: absolute; display: block; box-sizing: border-box; }
.art-car .roof { top: 0; }
.art-car .glass { background: #1A1430; opacity: .9; }
.art-car .body { left: 0; right: 0; }
.art-car .wheel { bottom: 0; border-radius: 50%; background: #141414; border-style: solid; border-color: #3A2418; }

/* ------------------------------------------------------------ Shop */
.shop-wrap { padding: 4px 18px 26px; }
.featured { width: 100%; text-align: left; background: var(--purple); color: var(--purple-ink); border-radius: 22px; padding: 16px; display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.featured .f-art { width: 120px; height: 64px; display: flex; align-items: flex-end; justify-content: center; flex-shrink: 0; }
.featured .f-art .art-car .glass { background: #B9A4FF; opacity: .5; }
.featured .k { font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.featured .t { font-family: Sora, sans-serif; font-weight: 800; font-size: 18px; }
.featured .p { font-size: 13px; font-weight: 700; margin-top: 4px; }
.packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pack { background: var(--card); border: 1px solid transparent; border-radius: 16px; padding: 12px 8px; text-align: center; }
.pack.best { border-color: var(--purple); }
.pack .n { font-family: Sora, sans-serif; font-weight: 800; font-size: 18px; color: var(--purple); }
.pack .u { font-size: 11px; color: var(--muted); }
.pack .p { margin-top: 8px; background: #1F2A4A; border-radius: 10px; padding: 8px 0; font-size: 12px; font-weight: 700; }
.pack.best .p { background: var(--purple); color: var(--purple-ink); }
.pack:disabled { opacity: .55; cursor: default; }
.cats { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px 12px; padding: 0 18px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats button { background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.cats button.on { background: var(--purple); color: var(--purple-ink); }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.item { background: var(--card); border: 1px solid transparent; border-radius: 16px; padding: 12px; text-align: left; min-width: 0; }
.item .n { font-size: 13px; font-weight: 600; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .p { font-size: 12px; color: var(--purple); font-weight: 700; }
.item.own .p { color: var(--muted); }
.item.on { border-color: var(--green); } .item.on .p { color: var(--green); }
.item.pass .p { color: var(--gold); }

/* ------------------------------------------------------------ try-on and pack sheets */
.try-head .k { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--purple); }
.try-head h3 { margin-top: 2px; }
.try-stage { margin: 14px 0 0; border-radius: 18px; background: #120D22; min-height: 150px; display: flex; align-items: center; justify-content: center; padding: 14px; overflow: hidden; }
.try-stage .art { width: 100%; height: 130px; background: transparent; }
.try-stage .art-king { width: 64px; height: 64px; }
.try-stage .art-name { font-size: 22px; } .try-stage .art-name .seat-title { font-size: 12px; }
.try-stage .art-die { width: 64px; height: 64px; padding: 10px; border-radius: 14px; } .try-stage .art-die i { width: 10px; height: 10px; }
.try-stage .av.s40 { width: 72px; height: 72px; border-radius: 22px; font-size: 24px; outline-width: 3px !important; outline-offset: 4px !important; }
.try-stage .art-dot { transform: scale(1.8); margin: 0 6px; }
.try-stage canvas { display: block; max-width: 100%; border-radius: 12px; }
.try-cue, .try-cloth, .try-trail { padding: 10px; background: #0B1122; }
.try-car { background: #22140D; }
.garage-floor { width: 100%; display: flex; justify-content: center; padding: 18px 0 8px; background: linear-gradient(#22140D 70%, #2E1C12 70%); border-radius: 12px; }
.try-dice { display: flex; gap: 28px; padding: 12px 0; }
.try-board { width: 100%; max-width: 360px; border-radius: 8px; display: block; }
.try-sheet .btn.dark:disabled { color: var(--green); cursor: default; }
.pack-big { text-align: center; margin: 12px 0 6px; } .pack-big .n { font-family: Sora, sans-serif; font-weight: 800; font-size: 40px; color: var(--purple); } .pack-big .u { color: var(--muted); font-size: 13px; }
.pack-sheet p .test-pill { margin: 8px 0 0; }

/* ------------------------------------------------------------ Garage (warm colours from Garage.dc) */
.garage-shell .main { background: #140C08; }
.garage { position: relative; flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #140C08; color: #F6EDE6; padding-bottom: calc(96px + var(--safe-bottom)); }
.g-show { position: relative; height: 360px; overflow: hidden; }
.g-wall { position: absolute; left: 0; right: 0; top: 0; height: 290px; background: #22140D; }
.g-floor { position: absolute; left: 0; right: 0; top: 280px; height: 80px; background: #2E1C12; }
.g-shadow { position: absolute; left: 50%; width: 300px; margin-left: -150px; top: 320px; height: 18px; border-radius: 50%; background: #000; opacity: .45; }
.g-car { position: absolute; left: 50%; top: 226px; margin-left: -125px; }
.g-top { position: absolute; left: 0; right: 0; top: 0; padding: calc(14px + var(--safe-top)) 16px 0; display: flex; align-items: center; justify-content: space-between; }
.g-top .back { background: #070B16; }
.g-badge { background: #070B16; border-radius: 12px; padding: 6px 12px; font-family: Sora, sans-serif; font-size: 14px; font-weight: 800; color: #FF8A5C; }
.g-title { position: absolute; left: 0; right: 0; top: calc(86px + var(--safe-top)); text-align: center; }
.g-title .k { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: #FFB08A; }
.g-title .t { font-family: Sora, sans-serif; font-weight: 800; font-size: 24px; }
.g-title .s { font-size: 12px; color: #C9A894; }
.g-body { padding: 18px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.g-label { font-size: 12px; font-weight: 700; color: #C9A894; letter-spacing: 1px; }
.g-cars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.car-card { background: #1E140E; border: 1px solid #3A2418; border-radius: 14px; padding: 10px; text-align: center; color: #F6EDE6; display: flex; flex-direction: column; align-items: center; }
.car-card.shop { border-style: dashed; border-color: #5A3A28; }
.car-card.sel { background: #2A180F; border: 2px solid #FF8A5C; padding: 9px; }
.car-card .art-car .glass { background: #1E140E; }
.car-card .n { font-size: 12px; font-weight: 700; margin-top: 6px; }
.car-card .s { font-size: 10px; color: #C9A894; } .car-card .s.on { color: #FFB08A; } .car-card .s.shop { color: var(--purple); }
.g-note { font-size: 12px; color: #C9A894; line-height: 1.5; margin: 0; }
.g-cta { position: absolute; left: 16px; right: 16px; bottom: calc(18px + var(--safe-bottom)); }
.garage-shell .tabs { display: none; }

/* ------------------------------------------------------------ Season Pass (Pass.dc) */
.pass-head .kick { font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--gold); }
.pass-bar { padding: 10px 18px 6px; flex-shrink: 0; }
.pass-bar .row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.pass-bar .bar { height: 10px; border-radius: 5px; background: #1F2A4A; margin-top: 8px; overflow: hidden; }
.pass-bar .bar i { display: block; height: 10px; border-radius: 5px; background: var(--gold); }
.pass-wrap { padding: 6px 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.phead { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; font-size: 11px; font-weight: 700; color: var(--muted); position: sticky; top: 0; background: var(--bg); padding: 6px 0; z-index: 1; }
.phead .g { color: var(--gold); }
.prow { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: stretch; }
.prow .lv { font-family: Sora, sans-serif; font-weight: 800; font-size: 18px; color: var(--dim); display: flex; align-items: center; }
.prow.now .lv { color: var(--gold); }
.cell { border-radius: 14px; padding: 10px; font-size: 12px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cell .rw { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.cell.free { background: var(--card); }
.cell.free.claimable { background: #16213F; border: 1px solid var(--green); padding: 9px; }
.cell.premium { background: #1A160A; border: 1px solid #5C4716; padding: 9px; }
.cell.premium.claimable, .cell.premium.claimed { background: #2A2208; border-color: var(--gold); }
.cell .st { font-size: 12px; text-align: left; }
.cell .st.ok { color: var(--green); }
.cell .st.lock { color: var(--dim); }
.cell .st.claim { color: var(--green); font-weight: 700; padding: 0; }
.cell .st.claim.premium { color: var(--gold); }
.pass-fine { margin: 10px 0 0; }
.pass-cta { padding: 10px 18px calc(14px + var(--safe-bottom)); flex-shrink: 0; border-top: 1px solid var(--line); }
.prem-on { text-align: center; font-size: 13px; font-weight: 700; color: var(--gold); padding: 10px 0; }

/* ------------------------------------------------------------ Daily (Daily.dc) */
.daily-shell .main { background: #120D22; }
.daily-shell .scroll { background: #120D22; }
.daily-head .back.on-card { background: #1E1638; }
.daily-wrap { padding: 4px 18px 22px; }
.daily-wrap .wb { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--purple); margin-top: 4px; }
.streak-h { text-align: center; font-weight: 800; font-size: 30px; margin-top: 6px; }
.daily-wrap .sub { text-align: center; font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.dgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.dcell { background: #1E1638; border-radius: 14px; padding: 12px 4px; text-align: center; font-size: 11px; color: var(--muted); }
.dcell b { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-top: 6px; }
.dcell.done b { color: var(--green); }
.dcell.today { background: var(--purple); color: var(--purple-ink); font-weight: 700; } .dcell.today b { color: var(--purple-ink); }
.dcell.big { grid-column: span 2; background: #2A2208; border: 1px solid var(--gold); color: var(--gold); font-weight: 700; }
.dcell.big b { color: var(--gold); }
.dcell.big.today { background: var(--gold); color: var(--gold-ink); } .dcell.big.today b { color: var(--gold-ink); }
.dcell.big.done b { color: var(--green); }
.dmissions { display: flex; flex-direction: column; gap: 8px; }
.dm { background: #1E1638; border-radius: 14px; padding: 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dm .t { font-size: 13px; }
.dm .bar { height: 6px; background: #2E2350; border-radius: 3px; margin-top: 6px; overflow: hidden; } .dm .bar i { display: block; height: 6px; background: var(--purple); border-radius: 3px; }
.dm .r { font-size: 12px; font-weight: 700; color: var(--purple); white-space: nowrap; }
.dm .r.ok { color: var(--green); }
.dm .r.claim { background: var(--purple); color: var(--purple-ink); border-radius: 10px; padding: 7px 10px; }
.daily-cta { margin-top: 18px; }
.daily-cta .btn.ghost:disabled { color: var(--muted); border-color: #2E2350; cursor: default; font-size: 13px; }

/* ------------------------------------------------------------ Leaderboards (Ranks.dc) */
.filters .soonchip { background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--dim); opacity: .7; cursor: default; }
.filters.games { padding-top: 0; }
.filters.games button { font-size: 12px; padding: 6px 12px; }
.filters.games button.on { background: var(--purple); color: var(--purple-ink); }
.ranks-wrap { padding: 0 18px 12px; }
.podium { display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding: 18px 0 0; border-bottom: 1px solid var(--line); }
.pod { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100px; min-width: 0; }
.pod.p1 { width: 110px; }
.pod .pav { width: 54px; height: 54px; border-radius: 18px; border: 3px solid #C9CED9; font-size: 17px; box-sizing: border-box; }
.pod.p1 .pav { width: 66px; height: 66px; border-radius: 22px; font-size: 20px; }
.pod.empty .pav { background: var(--card); border-color: var(--line2); }
.pod .pn { font-size: 12px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .pp { font-size: 11px; color: var(--muted); margin-top: -4px; }
.pod .pb { width: 100%; height: 70px; border-radius: 14px 14px 0 0; background: var(--card); display: flex; align-items: center; justify-content: center; font-family: Sora, sans-serif; font-weight: 800; font-size: 22px; color: #C9CED9; }
.pod.p1 .pb { height: 100px; background: #2A2208; color: var(--gold); font-size: 28px; }
.pod.p3 .pb { height: 54px; color: #D08A4E; }
.lrows { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; }
.lrow { display: flex; align-items: center; gap: 10px; padding: 8px 4px; font-size: 13px; }
.lrow .pl { width: 30px; color: var(--muted); font-weight: 700; flex-shrink: 0; }
.lrow .nm { flex-grow: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .rt { color: var(--muted); white-space: nowrap; } .lrow .rt em { font-style: normal; }
.lrow.you { background: #111A31; border-radius: 10px; }
.lrow.mine { padding: 12px; background: #16213F; border: 1px solid var(--gold); border-radius: 14px; }
.lrow.mine .pl { width: auto; min-width: 30px; color: var(--gold); font-weight: 800; }
.ranks-foot { padding: 8px 18px 10px; flex-shrink: 0; }
.ranks-foot .fine { margin-top: 8px; }

/* ------------------------------------------------------------ desktop */
@media (min-width: 900px) {
  .hub-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .hub-tile { min-height: 190px; }
  .hub-tile.purple { grid-column: span 2; grid-row: span 2; min-height: 394px; }
  .hub-tile.purple .hub-art { width: auto; left: 0; right: 0; top: 120px; height: 120px; transform: scale(2.2); }
  .hub-tile.purple2 { min-height: 190px; }
  .packs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .items { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .item:hover, .pack:hover:not(:disabled), .hub-tile:hover, .car-card:hover { filter: brightness(1.12); }
  .art { height: 76px; }
  .featured { padding: 22px 26px; }
  .featured .f-art { width: 170px; }
  .shop-wrap, .hub-wrap { padding-top: 8px; }
  .garage { padding-bottom: 32px; }
  .g-show { height: 420px; border-radius: 0 0 24px 24px; }
  .g-wall { height: 340px; } .g-floor { top: 330px; height: 90px; } .g-shadow { top: 384px; width: 440px; margin-left: -220px; } .g-car { top: 276px; transform: scale(1.45); transform-origin: 50% 100%; }
  .g-body { max-width: 760px; margin: 0 auto; width: 100%; padding-top: 24px; }
  .g-cars { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .g-cta { position: static; max-width: 420px; }
  .g-top { max-width: 1000px; margin: 0 auto; padding-top: 18px; }
  .pass-bar { width: 100%; max-width: var(--cw); margin: 0 auto; }
  .pass-cta { width: 100%; max-width: var(--cw); margin: 0 auto; border-top: 0; }
  .pass-cta .btn { max-width: 420px; margin: 0 auto; }
  .cell .st.claim:hover { text-decoration: underline; }
  .dgrid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .daily-cta { max-width: 420px; margin: 24px auto 0; }
  .ranks-foot { width: 100%; max-width: var(--cw); margin: 0 auto; }
  .shell .main > .pass-bar, .shell .main > .filters { width: 100%; max-width: var(--cw); margin-left: auto; margin-right: auto; }
  .shell.daily-shell .side-card { background: #1E1638; }
}
