/* shell.css — v6 app chrome (locked V6Home / ClubsC1): charcoal #161618,
   panels #1F1F22, borders #2E2E33, gold #D4B98A / #E7C873, Manrope UI,
   Cormorant Garamond for display type. */
main[data-view="app"] { background: #161618; }
main[data-view="app"] .app-tab { font-family: 'Manrope', sans-serif; color: #F2EFEA; padding-bottom: 86px; }
.v6-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; position: relative; z-index: 2; }
.v6-head .sp { flex-grow: 1; }
.v6-logo { display: flex; align-items: center; gap: 8px; }
.v6-logo .w { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.v6-logo .a { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; letter-spacing: .2em; padding-left: .2em; color: #E3C998; }
.v6-logo .b { margin-top: 4px; font-size: 8px; font-weight: 600; letter-spacing: .55em; padding-left: .55em; color: #8A8178; }
.v6-title { margin: 0; font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; color: #F2EFEA; }
.v6-pill {
  height: 32px; padding: 0 12px 0 8px; border-radius: 16px; background: #1F1F22; border: 1px solid #2E2E33;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05); display: flex; align-items: center; gap: 6px;
  font: 700 13px 'Manrope', sans-serif; color: #F2EFEA; font-variant-numeric: tabular-nums; cursor: pointer;
}
.v6-ib {
  position: relative; width: 36px; height: 36px; border-radius: 50%; background: #1F1F22; border: 1px solid #2E2E33;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.v6-ib .dot { position: absolute; right: 7px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: #E5484D; border: 1.5px solid #1F1F22; }
.v6-empty { padding: 60px 24px; text-align: center; color: #8A8178; font: 600 14px 'Manrope', sans-serif; }

/* bottom tab bar */
#main-rail.v6-rail {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: var(--app-w); z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr); height: 62px; padding-bottom: env(safe-area-inset-bottom);
  background: rgba(22,22,24,.96); border-top: 1px solid #2A2A2F; backdrop-filter: blur(10px);
}
#main-rail.v6-rail a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font: 600 10.5px 'Manrope', sans-serif; color: #8A8178; text-decoration: none; cursor: pointer;
}
#main-rail.v6-rail a.on { color: #E7C873; }
#main-rail.v6-rail a.on::before { content: ""; position: absolute; top: -1px; left: 30%; right: 30%; height: 2px; background: #E7C873; border-radius: 0 0 2px 2px; }
#main-rail.v6-rail a .dot { position: absolute; top: 9px; left: calc(50% + 8px); width: 7px; height: 7px; border-radius: 50%; background: #E5484D; }

.v6-return {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 74px; z-index: 21;
  display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 19px;
  background: rgba(14,14,16,.92); border: 1.5px solid #E7C873; color: #E7C873; font: 800 13px 'Manrope', sans-serif;
  box-shadow: 0 10px 24px rgba(0,0,0,.6); cursor: pointer;
}
.v6-return .d { width: 8px; height: 8px; border-radius: 50%; background: #22B464; box-shadow: 0 0 8px #22B464; }

/* the app view scrolls inside the fixed frame (agents' fix 2026-10-04) */
main[data-view="app"].on { height: 100%; }
#app-scroll { height: 100%; min-height: 0 !important; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
@media (max-width: 380px) {
  .v6-head { gap: 6px; padding: 12px 10px 8px; }
  .v6-pill { padding: 0 9px 0 6px; font-size: 12px; }
  .v6-logo .a { font-size: 19px; }
  .v6-ib { width: 34px; height: 34px; }
}

/* logo + version (owner 2026-10-06) */
.v6-ver { align-self: flex-end; margin: 0 0 2px 2px; padding: 1px 5px; border-radius: 6px; font: 700 9px Manrope, system-ui; letter-spacing: .04em; color: #8A8178; border: 1px solid #2a2c33; }
.v6-title.v6-title-sm { font-size: 15px; margin-left: 10px; padding-left: 10px; border-left: 1px solid #2a2c33; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 460px) { .v6-title.v6-title-sm { display: none; } }
@media (max-width: 410px) { .v6-logo .a { letter-spacing: .12em; font-size: 18px; } .v6-logo .b { letter-spacing: .4em; } .v6-head .v6-pill { padding-left: 7px; padding-right: 8px; gap: 4px; } .v6-ver { padding: 1px 4px; } }

/* the logo tile is its own framed square: inside a framed slot it fills the slot */
.cb-gtile:has(> .pf-logo), .cl-tile:has(> .pf-logo), .gp-crest:has(> .pf-logo) { background: none; border: 0; box-shadow: none; padding: 0; }
.cb-gtile > .pf-logo, .cl-tile > .pf-logo, .gp-crest > .pf-logo { width: 100% !important; height: 100% !important; }

/* VIP badge (owner 2026-10-07) — the actual VIP card in miniature; locked = card with a lock */
.v6-vipb { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0; margin-right: 6px; border: 0; background: none; cursor: pointer; font-family: 'Manrope', sans-serif; }
.v6-vipc { display: block; filter: drop-shadow(0 3px 6px rgba(0,0,0,.6)); }
.v6-vipb b { font-size: 11.5px; font-weight: 800; color: #E9EAEE; }
.v6-vipb.lock .v6-vipc { filter: drop-shadow(0 3px 6px rgba(0,0,0,.6)); }

/* bottom bar with raised Polaris Play (owner 2026-10-07): notched bar, round button */
#main-rail.v6-rail { grid-template-columns: 1fr 1fr 84px 1fr 1fr; overflow: visible; background: transparent; border-top: 0; backdrop-filter: none; }
#main-rail.v6-rail::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(14,15,18,.97); border-top: 1px solid rgba(255,255,255,.1);
  -webkit-mask: radial-gradient(circle 38px at 50% 0, transparent 37px, #000 38px); mask: radial-gradient(circle 38px at 50% 0, transparent 37px, #000 38px); }
#main-rail.v6-rail a.on { color: #F5F3EF; }
#main-rail.v6-rail a.on::before { background: #F5F3EF; }
.v6-play { position: relative; border: 0; background: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; padding-bottom: 7px; }
.v6-play-c { position: absolute; left: 50%; top: -28px; width: 60px; height: 60px; margin-left: -30px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 40% 30%, #2B2E36, #0B0C0E 70%); box-shadow: 0 10px 22px rgba(0,0,0,.7), inset 0 0 0 1.5px rgba(212,185,138,.45), inset 0 2px 0 rgba(255,255,255,.12); transition: transform .15s; }
.v6-play-c::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: conic-gradient(from 200deg, rgba(231,200,115,0), rgba(231,200,115,.55), rgba(231,200,115,0) 40%);
  -webkit-mask: radial-gradient(circle, transparent 29px, #000 30px); mask: radial-gradient(circle, transparent 29px, #000 30px); animation: v6PlaySpin 6s linear infinite; }
.v6-play-c img { width: 28px; height: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.v6-play:active .v6-play-c { transform: scale(.94); }
.v6-play-l { font: 700 10.5px 'Manrope', sans-serif; color: #E3C998; }
@keyframes v6PlaySpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .v6-play-c::before { animation: none; } }
/* phones: VIP badge + chest join the header, so the wordmark and version step aside (logo tile stays) */
@media (max-width: 520px) {
  .v6-head .v6-logo { display: none; }   /* the raised Play button carries the P on phones (owner 2026-10-07: no second P on top) */
  .v6-head { gap: 6px; }
  .v6-head .v6-pill { padding: 0 9px; gap: 5px; }
  .v6-vipb { margin-right: 2px; padding: 0 7px 0 4px; }
}

/* currency pills: big glossy icon overhangs the left edge, + to buy (owner 2026-10-07) */
.v6-pill.v6-cur { position: relative; height: 30px; margin-left: 12px; padding: 0 3px 0 20px; gap: 8px; }
.v6-cur-i { position: absolute; left: -13px; top: 50%; transform: translateY(-50%); display: flex; filter: drop-shadow(0 2px 3px rgba(0,0,0,.6)); }
.v6-head .v6-ib { flex: none; }
.v6-plus { width: 20px; height: 20px; border-radius: 7px; display: grid; place-items: center; background: #34363D; color: #F5F3EF; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); font-style: normal; }
.v6-cur:active .v6-plus { background: #45474F; }
.v6-head .v6-pill.v6-cur { padding: 0 3px 0 20px; gap: 6px; }

/* header amounts in FULL (owner 2026-10-07): the two currency pills share
   the free width (more space between them), the number truncates nothing —
   shell.js fitNums shrinks its font only when it cannot fit. */
.v6-head .sp { flex: .35 1 0; min-width: 0; }
.v6-head .v6-pill.v6-cur { flex: 1 1 0; min-width: 0; max-width: 200px; margin-left: 18px; }
.v6-head .v6-pill.v6-cur + .v6-pill.v6-cur { margin-left: 22px; }
.v6-head .v6-pill.v6-cur .v6-num { flex: 1 1 auto; min-width: 0; overflow: hidden; white-space: nowrap; text-align: center; color: #F4F2EE; }
.v6-head .v6-pill.v6-cur .v6-plus { flex: none; }
.v6-head .v6-pill.v6-cur .v6-cur-i { flex: none; }
.v6-vipb { height: 36px; }
@media (max-width: 520px) {
  .v6-head .v6-pill.v6-cur { margin-left: 16px; }
  .v6-head .v6-pill.v6-cur + .v6-pill.v6-cur { margin-left: 20px; }
}

/* no visible scrollbars anywhere (owner 2026-10-07): wheel / touch / keys
   still scroll; desktop panes add drag scrolling via PF.enableDragScroll */
*, *::before, *::after { scrollbar-width: none; }
::-webkit-scrollbar { display: none; width: 0; height: 0; }
html, body { -ms-overflow-style: none; }
/* phones: the VIP days ride on the mini card's corner and the + buttons
   step aside so the full amounts get the room */
@media (max-width: 430px) {
  .v6-vipb { position: relative; margin-right: 0; padding: 0; }
  .v6-vipb b { position: absolute; right: -6px; bottom: -3px; padding: 0 4px; border-radius: 6px; background: #0E0F12; border: 1px solid #34363D; font-size: 9.5px; line-height: 14px; }
  .v6-head .v6-pill.v6-cur { margin-left: 15px; padding-right: 9px; }
  .v6-head .v6-pill.v6-cur + .v6-pill.v6-cur { margin-left: 18px; }
  .v6-head .v6-pill.v6-cur .v6-plus { display: none; }
  .v6-head .sp { flex: 0 0 0; }
}
