/* Member workspace: calm, dense, precise. Same tokens as the public site. */
.shell { display: grid; min-height: 100dvh; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .shell { grid-template-columns: 244px minmax(0, 1fr); } }
.side { display: none; position: sticky; top: 0; height: 100dvh; border-right: 1px solid var(--line); background: var(--bg-2); padding: 18px 12px; overflow-y: auto; flex-direction: column; gap: 2px; }
@media (min-width: 1024px) { .side { display: flex; } }
.side .logo { padding: 4px 10px 20px; }
.nav-g { display: grid; gap: 1px; margin-bottom: 16px; }
.nav-g .label { padding: 0 12px 6px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.nav-a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 550; font-size: 14px; transition: background .15s, color .15s; }
.nav-a svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav-a:hover { color: var(--text); background: rgba(165, 176, 194, .06); }
.nav-a[aria-current='page'] { color: #fff; background: var(--blue-soft); box-shadow: inset 2px 0 0 var(--blue); }
.nav-a[aria-current='page'] svg { stroke: var(--blue-hi); }
.side .foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 1px; }

.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) var(--gutter) 10px; border-bottom: 1px solid var(--line); background: rgba(9, 13, 20, .84); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); min-height: 62px; }
@media (min-width: 1024px) { .topbar .logo { display: none; } }
.acct-sel { display: inline-flex; align-items: center; min-height: 38px; padding: 0 4px 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; font-weight: 600; max-width: 220px; }
.acct-sel select { background: transparent; border: 0; outline: none; font-weight: 600; min-width: 0; padding-right: 8px; color: var(--text); }
.acct-sel select option { background: var(--surface); }
.tb-period { display: none; font-size: 13px; color: var(--muted); padding: 0 6px; }
@media (min-width: 900px) { .tb-period { display: inline-flex; gap: 8px; align-items: center; } }
.tb-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.conn { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 600; white-space: nowrap; }
.conn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.conn.ok .dot { background: var(--up); box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); } .conn.warn .dot { background: var(--warn); } .conn.bad .dot { background: var(--down); }
.conn .when { color: var(--dim); font-weight: 500; }
@media (max-width: 560px) { .conn .when, .conn .lbl { display: none; } .conn { padding: 0 11px; } }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--surface); flex: none; }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.demo-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 10px; border-radius: 999px; border: 1px dashed rgba(125, 155, 255, .6); color: #c9d4ff; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.demo-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-hi); }
.view { padding: clamp(16px, 2vw, 28px) var(--gutter) calc(100px + var(--safe-b)); max-width: 1680px; }
@media (min-width: 1024px) { .view { padding-bottom: 56px; } }
.view-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.view-h h1 { font-size: clamp(26px, 2.4vw, 34px); }
.view-h .sub { color: var(--muted); font-size: 14px; margin-top: 6px; }

/* bottom nav */
.bnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + var(--safe-b)); background: rgba(12, 17, 26, .95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line-2); }
@media (min-width: 1024px) { .bnav { display: none; } }
.bnav a, .bnav button { display: grid; justify-items: center; gap: 3px; padding: 7px 2px; border-radius: 12px; text-decoration: none; color: var(--dim); font-size: 10.5px; font-weight: 650; min-height: 52px; }
.bnav svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bnav [aria-current='page'] { color: #fff; } .bnav [aria-current='page'] svg { stroke: var(--blue-hi); }

/* sheets */
.scrim { position: fixed; inset: 0; background: rgba(3, 6, 12, .66); z-index: 70; opacity: 0; transition: opacity .2s; }
.scrim.open { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; max-height: 90dvh; overflow-y: auto; background: var(--surface); border-top: 1px solid var(--line-2); border-radius: 20px 20px 0 0; padding: 10px var(--gutter) calc(20px + var(--safe-b)); transform: translateY(100%); transition: transform .3s var(--ease); }
.sheet.open { transform: none; }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line-3); margin: 0 auto 14px; }
@media (min-width: 900px) { .sheet { left: 50%; right: auto; top: 50%; bottom: auto; width: 560px; border-radius: 18px; border: 1px solid var(--line-2); transform: translate(-50%, -46%); opacity: 0; pointer-events: none; transition: .22s var(--ease); } .sheet.open { transform: translate(-50%, -50%); opacity: 1; pointer-events: auto; } .sheet .grab { display: none; } }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.more-grid a { display: grid; justify-items: center; gap: 8px; padding: 16px 6px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line); text-decoration: none; font-size: 12.5px; font-weight: 600; text-align: center; }
.more-grid svg { width: 22px; height: 22px; stroke: var(--blue-hi); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- overview: competition + prize hero ---------- */
.ov-hero { display: grid; gap: var(--gap); margin-bottom: var(--gap); }
@media (min-width: 1200px) { .ov-hero { grid-template-columns: minmax(0, 1.75fr) minmax(340px, 1fr); } }
.prize-stage { position: relative; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: radial-gradient(70% 90% at 0% 0%, rgba(82, 120, 255, .16), transparent 60%), var(--surface); padding: clamp(16px, 1.8vw, 24px); display: grid; gap: 16px; overflow: hidden; }
.prize-stage .ps-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.prize-stage .ps-h h2 { font-size: clamp(20px, 1.8vw, 26px); }
.ps-trio { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.ps-trio .p1 { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.ps-trio .p2, .ps-trio .p3 { aspect-ratio: 4 / 3; }
@media (min-width: 760px) { .ps-trio { grid-template-columns: 1.5fr 1fr 1fr; } .ps-trio .p1 { grid-column: auto; aspect-ratio: auto; min-height: 250px; } .ps-trio .p2, .ps-trio .p3 { aspect-ratio: auto; min-height: 250px; } }
.ps-trio .prz { border-radius: var(--r-lg); }
.ps-trio .p1 .ttl { font-size: clamp(38px, 16cqi, 72px); }
.ps-foot { display: flex; gap: 10px 18px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.countdown { display: inline-flex; gap: 6px; }
.countdown span { display: grid; justify-items: center; min-width: 44px; padding: 6px 4px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.countdown b { font-family: var(--mono); font-size: 17px; font-weight: 600; line-height: 1.15; }
.countdown small { font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.standing { display: grid; gap: 16px; align-content: start; border-radius: var(--r-xl); }
.standing .rk { display: flex; align-items: flex-end; gap: 12px; }
.standing .big { font-family: var(--display); font-size: clamp(52px, 4.6vw, 72px); font-weight: 750; letter-spacing: -.045em; line-height: .9; }
.standing .ret { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.qual { border-radius: 14px; padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 10px; }
.qual .meter { height: 8px; border-radius: 6px; background: rgba(165, 176, 194, .1); overflow: hidden; position: relative; }
.qual .meter i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--blue-hi)); transition: width .9s var(--ease); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; font-size: 14px; margin: 0; }
.kv dt { color: var(--dim); } .kv dd { margin: 0; text-align: right; font-weight: 600; }

/* metric strip */
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 760px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1400px) { .metrics.six { grid-template-columns: repeat(6, 1fr); } }
.metrics > div { background: var(--surface); padding: 16px 18px; display: grid; gap: 4px; }
.metrics small { color: var(--dim); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.metrics b { font-family: var(--display); font-size: clamp(20px, 1.6vw, 24px); font-weight: 700; letter-spacing: -.02em; }
.metrics .hint { font-size: 12px; color: var(--dim); }
.info { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-3); color: var(--dim); font-size: 10px; font-weight: 700; display: inline-grid; place-items: center; cursor: help; position: relative; }
.info:hover::after, .info:focus::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); width: 230px; padding: 10px 12px; border-radius: 10px; background: var(--raised-2); border: 1px solid var(--line-2); color: var(--text); font-size: 12.5px; font-weight: 500; line-height: 1.45; z-index: 20; box-shadow: var(--sh-2); white-space: normal; text-align: left; }

/* tables */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--dim); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr:hover { background: rgba(165, 176, 194, .035); }
.tbl tr.me td { background: rgba(82, 120, 255, .1); }
.tbl tr.me td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
.tbl tr.t4 td, .tbl tr.t5 td { background: rgba(165, 176, 194, .025); }
.tbl tr.flash td { animation: flashrow 1.6s var(--ease); }
@keyframes flashrow { 25% { background: rgba(82, 120, 255, .25); } }
.tbl tr.line td { padding: 0; border: 0; }
.prize-line { display: flex; align-items: center; gap: 12px; padding: 8px 14px; color: var(--gold); font-size: 12px; font-weight: 650; background: linear-gradient(90deg, rgba(232, 198, 106, .08), transparent 70%); border-top: 1px solid rgba(232, 198, 106, .3); border-bottom: 1px solid var(--line); }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prize-thumb { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; border: 1px solid var(--line-2); flex: none; }
.tbl-wrap { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
@media (max-width: 767px) {
  .tbl.cards thead { display: none; }
  .tbl.cards, .tbl.cards tbody { display: block; }
  .tbl.cards tr { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: 'rk who sc' 'rk meta st'; gap: 3px 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .tbl.cards tr.line { display: block; padding: 0; }
  .tbl.cards td { padding: 0; border: 0; background: transparent !important; }
  .tbl.cards .c-rk { grid-area: rk; } .tbl.cards .c-who { grid-area: who; min-width: 0; } .tbl.cards .c-sc { grid-area: sc; text-align: right; } .tbl.cards .c-meta { grid-area: meta; font-size: 12.5px; color: var(--dim); } .tbl.cards .c-st { grid-area: st; text-align: right; } .tbl.cards .c-hide { display: none; }
  .tbl.cards tr.me { background: rgba(82, 120, 255, .1); box-shadow: inset 3px 0 0 var(--blue); }
}
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.search { position: relative; flex: 1 1 220px; max-width: 340px; }
.search input { padding-left: 40px; min-height: 40px; font-size: 14.5px; }
.search svg { position: absolute; left: 13px; top: 11px; width: 18px; height: 18px; stroke: var(--dim); fill: none; stroke-width: 2; }
.myplace { position: fixed; right: var(--gutter); bottom: calc(84px + var(--safe-b)); z-index: 30; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; background: var(--blue-btn); color: #fff; box-shadow: 0 18px 30px -14px rgba(63, 99, 242, .9); font-size: 14px; font-weight: 650; transition: opacity .2s, transform .2s; }
.myplace.hide { opacity: 0; transform: translateY(12px); pointer-events: none; }
@media (min-width: 1024px) { .myplace { bottom: 28px; } }

/* podium for boards + hall of fame */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; margin-bottom: var(--gap); }
.pod { position: relative; border-radius: 18px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--raised), var(--surface)); display: grid; justify-items: center; gap: 8px; padding: 18px 10px 16px; text-align: center; min-width: 0; overflow: hidden; }
.pod::before { content: ''; position: absolute; left: 20%; right: 20%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--pc, var(--line-3)), transparent); }
.pod.p1 { --pc: var(--gold); padding-top: 26px; border-color: rgba(232, 198, 106, .4); background: radial-gradient(80% 60% at 50% 0%, rgba(232, 198, 106, .14), transparent 70%), linear-gradient(180deg, var(--raised), var(--surface)); }
.pod.p2 { --pc: var(--silver); } .pod.p3 { --pc: var(--bronze); }
.pod .avatar { width: 48px; height: 48px; font-size: 15px; }
.pod.p1 .avatar { width: 58px; height: 58px; font-size: 17px; box-shadow: 0 0 0 2px var(--gold); }
.pod .nm { font-weight: 650; font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .sc { font-family: var(--display); font-weight: 750; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -.02em; }
.pod .pz { font-size: 12px; color: var(--muted); }
.pod .medal { position: absolute; top: 10px; left: 10px; width: 26px; height: 26px; font-size: 12px; }

/* charts */
.chart { position: relative; width: 100%; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .ln { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chart .area { opacity: 0; transition: opacity .6s .3s; }
.chart.drawn .area { opacity: 1; }
.chart .gl { stroke: var(--line); stroke-dasharray: 3 5; }
.chart .zero { stroke: var(--line-2); }
.chart .cross { opacity: 0; transition: opacity .15s; }
.chart.hover .cross { opacity: 1; }
.chart .tipbox { position: absolute; top: -6px; transform: translate(-50%, -100%); padding: 6px 10px; border-radius: 9px; background: var(--raised-2); border: 1px solid var(--line-2); font-size: 12px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; font-family: var(--mono); }
.chart.hover .tipbox { opacity: 1; }
.axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--dim); margin-top: 8px; font-family: var(--mono); }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: 76px 1fr 72px; gap: 12px; align-items: center; font-size: 13.5px; }
.hbar > span:last-child { text-align: right; font-family: var(--mono); font-size: 12.5px; }
.hbar .track { height: 10px; border-radius: 6px; background: rgba(165, 176, 194, .08); position: relative; overflow: hidden; }
.hbar .track i { position: absolute; top: 0; bottom: 0; width: 0; border-radius: 6px; transition: width .8s var(--ease); }
.hbar .track i.p { left: 50%; background: linear-gradient(90deg, rgba(52, 211, 153, .45), var(--up)); }
.hbar .track i.n { right: 50%; background: linear-gradient(270deg, rgba(255, 123, 114, .45), var(--down)); }
.hbar .track::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line-3); }
.cols { display: grid; grid-template-columns: repeat(var(--n, 24), 1fr); gap: 3px; align-items: end; height: 120px; }
.cols i { display: block; border-radius: 3px 3px 1px 1px; min-height: 2px; height: 0; transition: height .7s var(--ease); background: var(--blue-hi); }
.cols i.n { background: var(--down); } .cols i.z { background: rgba(165, 176, 194, .15); }

/* journal */
.jr-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.tagz { display: flex; gap: 6px; flex-wrap: wrap; }
.tagz span { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--blue-soft); color: #c9d4ff; }

/* lifecycle stepper */
.life { display: grid; gap: 0; counter-reset: l; margin: 14px 0 0; padding: 0; }
.life li { list-style: none; display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding-bottom: 16px; position: relative; }
.life li::before { counter-increment: l; content: counter(l); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; border: 1px solid var(--line-2); color: var(--dim); background: var(--bg-2); }
.life li:not(:last-child)::after { content: ''; position: absolute; left: 12.5px; top: 28px; bottom: 2px; width: 1px; background: var(--line-2); }
.life li.done::before { content: '✓'; background: rgba(52, 211, 153, .14); border-color: rgba(52, 211, 153, .45); color: var(--up); }
.life li.now::before { border-color: var(--blue); color: var(--blue-hi); box-shadow: 0 0 0 4px rgba(82, 120, 255, .16); }
.life b { display: block; font-size: 14px; } .life span { color: var(--dim); font-size: 13px; }

/* settings rows */
.set-row { display: grid; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .set-row { grid-template-columns: 260px minmax(0, 1fr); gap: 32px; } }
.set-row:last-child { border-bottom: 0; }
.set-row .lbl h3 { font-size: 15px; } .set-row .lbl p { color: var(--dim); font-size: 13px; margin-top: 4px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.switch:last-child { border-bottom: 0; }
.switch input { width: 40px; height: 22px; accent-color: var(--blue); }

/* insights (pattern preview) */
.insight { display: grid; gap: 10px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.insight .conf { font-size: 12px; font-weight: 650; }

/* victory ceremony (finalized results only) */
.victory { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; overflow: hidden; background: radial-gradient(60% 50% at 50% 38%, #172238, #05080e 75%); opacity: 0; transition: opacity .5s; padding: calc(56px + var(--safe-t)) 16px calc(20px + var(--safe-b)); }
.victory.on { opacity: 1; }
.victory canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.victory .rays { position: absolute; left: 50%; top: calc(-100vmax + 8vh); width: 200vmax; aspect-ratio: 1; transform: translateX(-50%); background: repeating-conic-gradient(rgba(246, 226, 164, .06) 0deg 6deg, transparent 6deg 18deg); -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 75%); mask-image: radial-gradient(closest-side, #000 20%, transparent 75%); opacity: 0; transition: opacity 2s; z-index: -1; }
.victory.lit .rays { opacity: .7; }
.victory .spot { position: absolute; top: -10%; width: 60vmin; height: 130vh; background: linear-gradient(180deg, rgba(200, 214, 255, .18), transparent 78%); clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%); filter: blur(12px); opacity: 0; transform-origin: 50% 0; z-index: -1; }
.victory .spot.a { left: -6%; animation: swA 2.6s .5s var(--ease) forwards; } .victory .spot.b { right: -6%; animation: swB 2.6s .5s var(--ease) forwards; }
@keyframes swA { 0% { opacity: 0; transform: rotate(-40deg); } 40% { opacity: 1; } 100% { opacity: .7; transform: rotate(-16deg); } }
@keyframes swB { 0% { opacity: 0; transform: rotate(40deg); } 40% { opacity: 1; } 100% { opacity: .7; transform: rotate(16deg); } }
.victory .inner { position: relative; width: min(560px, 100%); text-align: center; display: grid; gap: 22px; justify-items: center; }
.victory .title { opacity: 0; transform: translateY(14px); transition: .8s var(--ease); display: grid; gap: 8px; } .victory .title.in { opacity: 1; transform: none; }
.victory .title .eyebrow { font-size: 13px; color: var(--blue-hi); font-weight: 650; }
.victory .podium { width: 100%; margin: 0; }
.victory .place { display: grid; justify-items: center; gap: 8px; min-width: 0; }
.victory .place .who { display: grid; justify-items: center; gap: 6px; opacity: 0; transform: translateY(16px); transition: .7s var(--ease) .35s; }
.victory .place .nm { font-weight: 650; font-size: 13px; }
.victory .place .val { font-family: var(--display); font-weight: 700; font-size: 18px; }
.victory .place .ped { width: 100%; border-radius: 14px 14px 0 0; border: 1px solid var(--line-2); border-bottom: 0; background: linear-gradient(180deg, rgba(165, 176, 194, .1), transparent), var(--raised); display: grid; justify-items: center; padding-top: 12px; transform: translateY(115%); transition: transform 1s var(--ease); }
.victory .place .ped b { font-family: var(--display); font-size: 40px; font-weight: 800; color: transparent; -webkit-text-stroke: 1px var(--pc, var(--silver)); }
.victory .place .ped small { font-size: 11px; color: var(--muted); margin-top: 4px; }
.victory .p1 .ped { height: 150px; --pc: var(--gold); } .victory .p2 .ped { height: 112px; } .victory .p3 .ped { height: 88px; --pc: var(--bronze); }
.victory .place.in .ped { transform: none; } .victory .place.in .who { opacity: 1; transform: none; }
.victory .ring { border-radius: 50%; padding: 3px; background: conic-gradient(var(--gold-hi), var(--gold-lo), var(--gold-hi)); }
.victory .ring.r2 { background: conic-gradient(#f4f7fb, var(--silver-lo), #f4f7fb); } .victory .ring.r3 { background: conic-gradient(#f0b98d, var(--bronze-lo), #f0b98d); }
.victory .ring .avatar { width: 54px; height: 54px; border: 2px solid var(--bg); }
.victory .crown { width: 34px; height: 26px; animation: crowndrop 1s var(--ease) both .9s; }
@keyframes crowndrop { from { transform: translateY(-60px); opacity: 0; } }
.victory .sparks { display: none; }
.victory .winner { opacity: 0; transform: scale(.94); transition: .6s var(--ease); display: grid; gap: 12px; justify-items: center; } .victory .winner.in { opacity: 1; transform: none; }
.victory .skip { position: absolute; top: calc(12px + var(--safe-t)); right: 12px; z-index: 4; }
.victory .flashbang { position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, rgba(220, 230, 255, .28), transparent 60%); opacity: 0; pointer-events: none; z-index: 2; }
.victory .flashbang.go { animation: glow 1.6s ease-out; }
@keyframes glow { 20% { opacity: 1; } 100% { opacity: 0; } }
.prize-stage { grid-template-rows: auto 1fr auto; }
.ps-trio { min-height: 0; }
@media (min-width: 760px) { .ps-trio > .prz { height: 100%; } }

@media (max-width: 560px) { .topbar { gap: 6px; } .acct-sel { max-width: 128px; padding-left: 10px; } .acct-sel select { font-size: 13px; } .demo-pill { padding: 0 8px; } .topbar .logo .mk { width: 30px; height: 30px; } }
@media (max-width: 380px) { .acct-sel { display: none; } }
@media (max-width: 767px) { .tbl .c-hide { display: none; } .tbl td, .tbl th { padding: 11px 10px; } .tbl td:first-child { white-space: nowrap; font-size: 13px; } }

/* ---------- v3: compact prize band + overview ---------- */
.ov-top { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); margin-bottom: var(--gap); }
@media (min-width: 1200px) { .ov-top { grid-template-columns: minmax(0, 1.75fr) minmax(320px, 1fr); } }
.prize-band { position: relative; border-radius: var(--r-xl); border: 1px solid var(--line-2); background: radial-gradient(70% 90% at 0% 0%, rgba(82, 120, 255, .12), transparent 60%), var(--surface); padding: clamp(14px, 1.6vw, 22px); display: grid; gap: 14px; min-width: 0; }
.pb-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.pb-h h2 { font-size: clamp(19px, 1.6vw, 24px); margin-top: 4px; }
.pb-trio { display: grid; gap: 10px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
.pb-trio .prz { border-radius: var(--r-lg); min-height: 170px; box-shadow: none; }
.pb-trio .p1 .ttl { font-size: clamp(26px, 13cqi, 52px); white-space: nowrap; }
.pb-trio .prz .ttl { font-size: clamp(16px, 9cqi, 24px); }
.pb-trio .prz .sub, .pb-trio .prz .ill { display: none; }
@media (max-width: 759px) { .pb-trio { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .pb-trio .p1 { grid-column: 1 / -1; min-height: 150px; } .pb-trio .p2, .pb-trio .p3 { min-height: 120px; } .pb-trio .prz .cap { padding: 12px; } }
.pb-foot { display: flex; gap: 10px 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.prize-band .mine-strip .chev, .chev { width: 18px; height: 18px; stroke: var(--dim); fill: none; stroke-width: 2; }
.next { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 18px; margin-bottom: var(--gap); border-radius: var(--r-lg); border: 1px solid rgba(82, 120, 255, .3); background: rgba(82, 120, 255, .06); }
.next > div { display: grid; gap: 3px; min-width: 0; flex: 1 1 260px; }
.next .muted { font-size: 13.5px; }
.metrics.m4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .metrics.m4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.metrics.m6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .metrics.m6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .metrics.m6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.metrics > div { min-width: 0; }
.metrics small { flex-wrap: wrap; }

/* community modules */
.feed { list-style: none; margin: 0; padding: 0; display: grid; }
.feed li { display: grid; gap: 2px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; min-width: 0; }
.feed li:last-child { border-bottom: 0; } .feed li:first-child { padding-top: 0; }
.feed b { font-weight: 600; overflow-wrap: anywhere; } .feed .dim { font-size: 12.5px; }
.guide { display: flex; gap: 12px; align-items: center; }
.guide .avatar { width: 44px; height: 44px; }
.bens { list-style: none; margin: 0; padding: 0; display: grid; }
.bens li { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.bens li:last-child { border-bottom: 0; } .bens li:first-child { padding-top: 0; }
.bens li > div { display: grid; gap: 3px; min-width: 0; } .bens .dim, .bens .muted { font-size: 13px; }
.chan-list { display: grid; gap: 10px; }
.chan { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); }
.chan > div { display: grid; gap: 2px; min-width: 0; } .chan .dim { font-size: 13px; }
.acc-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-hi); font-weight: 700; font-family: var(--mono); }
.posts { list-style: none; margin: 0; padding: 0; display: grid; }
.posts li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.posts li:last-child { border-bottom: 0; }
.posts li > div { display: grid; gap: 4px; min-width: 0; } .posts .muted { font-size: 14px; }
@media (max-width: 560px) { .posts li { grid-template-columns: minmax(0, 1fr); } .posts .badge { justify-self: start; } }
.btn.is-off { opacity: .5; cursor: not-allowed; }
.people { list-style: none; margin: 0; padding: 0; display: grid; }
.people li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.people li:last-child { border-bottom: 0; }
.icon-btn.on { border-color: rgba(82, 120, 255, .6); color: var(--blue-hi); background: var(--blue-soft); }

/* boards */
.c-sub { display: block; font-size: 12px; font-weight: 500; }
.pz-cell { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--gold); white-space: nowrap; }
@media (max-width: 767px) {
  .tbl.cards tr { grid-template-areas: 'rk who sc' 'rk pz st'; }
  .tbl.cards .c-pz { grid-area: pz; } .tbl.cards .c-pz:empty { display: none; }
  .pz-cell .prize-thumb { width: 22px; height: 22px; border-radius: 6px; } .pz-cell { font-size: 12px; }
}
.race-wrap { padding: 18px 14px 12px; overflow-x: auto; }
.race { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(46px, 1fr); gap: 8px; align-items: end; height: 300px; min-width: 560px; }
.lane { display: grid; grid-template-rows: 1fr auto; gap: 8px; height: 100%; justify-items: center; }
.lane .col { align-self: end; width: 100%; max-width: 54px; height: 0; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, rgba(125, 155, 255, .55), rgba(82, 120, 255, .12)); position: relative; transition: height .9s var(--ease); }
.lane.l1 .col { background: linear-gradient(180deg, rgba(232, 198, 106, .7), rgba(232, 198, 106, .1)); }
.lane.me .col { box-shadow: 0 0 0 2px var(--blue-hi); }
.lane .tip { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); }
.lane .tip .avatar { width: 30px; height: 30px; font-size: 11px; }
.lane .ln { font-size: 11.5px; color: var(--muted); white-space: nowrap; max-width: 70px; overflow: hidden; text-overflow: ellipsis; }

/* journal */
.chev-cell { width: 28px; text-align: right; }
@media (max-width: 767px) { .jtbl td:first-child { white-space: normal; } .jtbl .chev-cell { padding-left: 0; } }

/* trade review */
.insight.low { background: var(--bg-2); border-style: dashed; }
.insight h3 { font-size: 17px; }
dl.ins { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 20px; margin: 4px 0 0; font-size: 14.5px; }
@media (min-width: 760px) { dl.ins { grid-template-columns: 190px minmax(0, 1fr); gap: 12px 20px; } }
dl.ins dt { color: var(--dim); font-size: 13px; font-weight: 600; padding-top: 8px; }
@media (min-width: 760px) { dl.ins dt { padding-top: 0; } }
dl.ins dd { margin: 0; color: var(--text); }
.ins-trades { display: flex; gap: 8px; flex-wrap: wrap; }

/* in-app reader: article styles shared with the public article pages */
.reader { max-width: 860px; }
.reader h1 { font-size: clamp(28px, 3.4vw, 44px); max-width: 22ch; margin-top: 12px; }
.reader .lede { margin-top: 14px; }
.reader .art-meta { display: flex; gap: 10px 18px; flex-wrap: wrap; margin-top: 16px; font-size: 13.5px; color: var(--dim); align-items: center; }
.reader .art-cover { margin-top: 24px; border-radius: var(--r-xl); border: 1px solid var(--line-2); overflow: hidden; background: var(--surface); }
.reader .art-body { padding-block: 28px 0; }
.reader .prose { max-width: 70ch; color: #c9d1de; font-size: 16.5px; line-height: 1.72; }
.reader .prose > * + * { margin-top: 16px; }
.reader .prose h2 { font-size: clamp(22px, 2vw, 28px); margin-top: 40px; color: var(--text); }
.reader .prose h3 { font-size: 18px; margin-top: 28px; color: var(--text); }
.reader .prose strong { color: var(--text); }
.reader .prose ul, .reader .prose ol { padding-left: 22px; }
.reader .prose li + li { margin-top: 6px; }
.reader .prose a { color: var(--blue-hi); }
.reader .callout { border-left: 3px solid var(--blue); background: rgba(82, 120, 255, .08); padding: 16px 18px; border-radius: 0 12px 12px 0; color: #d6dcf0; font-size: 15.5px; line-height: 1.6; }
.reader .callout b { color: #fff; }
.reader .callout.key { border-left-color: var(--gold); background: rgba(232, 198, 106, .07); }
.reader .compare { display: grid; gap: 1px; background: var(--line); grid-template-columns: 1fr; }
@media (min-width: 700px) { .reader .compare { grid-template-columns: 1fr 1fr; } }
.reader .compare > div { background: var(--surface); padding: clamp(18px, 2.4vw, 30px); display: grid; gap: 10px; }
.reader .compare .acct { font-family: var(--mono); font-size: 12.5px; color: var(--dim); }
.reader .compare .flow { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; }
.reader .compare .flow small { font-family: var(--font); font-size: 14px; color: var(--muted); font-weight: 500; }
.reader .compare .bar { height: 10px; border-radius: 6px; background: rgba(165, 176, 194, .1); overflow: hidden; }
.reader .compare .bar i { display: block; height: 100%; width: 10%; background: linear-gradient(90deg, var(--blue), var(--blue-hi)); border-radius: 6px; }
.reader .compare .res { font-family: var(--display); font-size: 40px; font-weight: 750; color: var(--up); }
.reader .compare-foot { background: var(--bg-2); padding: 14px 20px; text-align: center; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.reader .calc { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; margin-block: 28px; }
.reader .calc .ci { display: grid; gap: 14px; padding: 20px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .reader .calc .ci { grid-template-columns: repeat(3, 1fr); } }
.reader .calc .co { display: grid; grid-template-columns: 1fr 1fr; }
.reader .calc .co > div { padding: 18px 20px; display: grid; gap: 4px; }
.reader .calc .co > div + div { border-left: 1px solid var(--line); }
.reader .calc .co b { font-family: var(--display); font-size: 28px; font-weight: 750; }
.reader .calc .co .wrong b { color: var(--down); text-decoration: line-through; opacity: .85; }
.reader .diagram { margin: 0 0 28px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); padding: 18px; }
.reader .diagram svg { width: 100%; height: auto; }
.reader .diagram figcaption { font-size: 13.5px; color: var(--dim); margin-top: 10px; }
.reader .two-pw { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.reader .two-pw > div { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 8px; background: var(--bg-2); }
.reader .two-pw b { font-family: var(--display); font-size: 20px; color: var(--text); }
.reader .two-pw ul { margin: 0; padding-left: 18px; font-size: 14px; }
@media (max-width: 520px) { .reader .two-pw { grid-template-columns: 1fr; } }
.related { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13.5px; }
.crumbs a { color: var(--muted); text-decoration: none; } .crumbs a:hover { color: var(--text); }
