/* PLATFORM LAYER · site shell: lobby, accounts, Hall of Fame, results. Game screens are styled by the game layer. */
.lobby { position: fixed; inset: 0; overflow-y: auto; z-index: 2; padding: calc(env(safe-area-inset-top, 0px) + 20px) max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); background: linear-gradient(180deg, rgba(3,3,8,0.55), rgba(3,3,8,0.88) 40%); }
.wrap { max-width: 920px; margin: 0 auto; display: grid; gap: 34px; }
.mast { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 9vw, 72px); line-height: 0.9; letter-spacing: -0.02em; margin: 0; background: linear-gradient(100deg, #3d7bff 0%, #8a4dff 35%, var(--hot) 75%, #fff2d6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tag { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.wallet { text-align: right; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.wallet b.l-bal { display: block; font-family: var(--display); font-size: 28px; letter-spacing: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.wallet .tix { display: block; margin-top: 4px; color: var(--win); letter-spacing: 0.08em; }
.metag { display: block; margin-bottom: 6px; text-transform: none; letter-spacing: 0.04em; font-size: 12px; color: var(--ink); }
.metag button, .linkbtn { background: none; border: 0; color: inherit; font: inherit; padding: 0; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.walletbtns { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.resbtn { padding: 6px 10px; font-size: 10px; }
.eyebrow { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.online { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; text-transform: none; letter-spacing: 0.02em; font-size: 12px; }
.online .dotlive { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.solo-block { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 28px; align-items: center; border: 1px solid var(--line); padding: 22px; background: rgba(9,10,19,0.6); }
.solo-block h2 { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 0 0 6px; }
.solo-block p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 60ch; }
.solo-block p b { color: var(--ink); font-weight: 600; }
.majors { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.major { border: 1px solid var(--line); padding: 20px; display: grid; gap: 12px; align-content: start; background: radial-gradient(120% 100% at 100% 0%, rgba(255, 90, 46, 0.13), rgba(9, 10, 19, 0.6) 60%); }
.major .when { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.major .when b { color: var(--ink); font-weight: 600; }
.major .prize { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 6vw, 44px); color: var(--win); line-height: 1; font-variant-numeric: tabular-nums; }
.major .prize small { font-size: 0.32em; color: var(--muted); font-weight: 400; margin-left: 6px; }
.major .meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.major .meta b { color: var(--ink); font-weight: 600; }
.act { display: flex; gap: 6px; flex-wrap: wrap; }
.matrix { display: grid; grid-template-columns: 84px repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.matrix > div { padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 12px; font-variant-numeric: tabular-nums; min-width: 0; }
.matrix .mh { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.matrix .price { font-family: var(--display); font-weight: 700; font-size: 16px; align-self: center; padding-left: 0; }
.cell { display: grid; gap: 6px; align-content: start; }
.cell .p1 { color: var(--win); font-weight: 600; font-size: 14px; }
.cell .st { color: var(--muted); font-size: 11px; }
.cell .tbadge { color: var(--hot); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.cell.locked { opacity: 0.45; }
.cell button.go { padding: 8px 12px; font-size: 12px; }
.cell button.ghost { padding: 6px 8px; font-size: 10px; }
.ptable { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 18px; font-size: 12px; }
.ptable div { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--line); padding: 4px 0; }
.ptable span:first-child { color: var(--muted); }
.stats { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 12px; color: var(--muted); }
.stats b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.foot { font-size: 11px; color: var(--muted); line-height: 1.6; max-width: 70ch; }
@media (max-width: 760px) {
  .solo-block { grid-template-columns: minmax(0, 1fr); }
  .wallet { text-align: left; } .walletbtns { justify-content: flex-start; }
  .matrix { grid-template-columns: minmax(0, 1fr); }
  .matrix .mh { display: none; }
  .matrix .price { padding-top: 18px; border-bottom: 0; }
  .cell::before { content: attr(data-size); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
}
/* accounts */
.namefield { display: grid; gap: 6px; }
.namefield input { font: 16px var(--mono); padding: 10px 12px; background: #0d0f1a; color: var(--ink); border: 1px solid var(--line); }
.namefield .err { color: var(--hot); font-size: 12px; min-height: 1em; }
/* hall of fame */
.hof { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.hof section { border: 1px solid var(--line); padding: 12px; }
.hof ol { margin: 0; padding-left: 20px; font-size: 12px; display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.hof li span { float: right; color: var(--muted); }
.hof li.me { color: var(--win); }
.fno { color: var(--win); }
.founders { display: flex; flex-wrap: wrap; gap: 6px; }
.founders span { border: 1px solid var(--line); padding: 4px 8px; font-size: 11px; }
.founders span b { color: var(--win); font-weight: 400; margin-right: 6px; }
.founders span.me { border-color: var(--win); }
/* results */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.tile { border: 1px solid var(--line); padding: 12px; display: grid; gap: 4px; }
.tile span { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.tile b { font-family: var(--display); font-size: 22px; font-variant-numeric: tabular-nums; }
.tile i { font-style: normal; font-size: 11px; color: var(--muted); }
.chart { position: relative; }
.chart svg { width: 100%; height: 150px; display: block; }
.chart .bar { fill: var(--win); } .chart .bar.on { fill: #fff1c4; }
.chart .ax { fill: var(--muted); font-size: 9px; font-family: var(--mono); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.ctip { position: absolute; pointer-events: none; background: #11131f; border: 1px solid var(--line); padding: 6px 8px; font-size: 11px; white-space: nowrap; transform: translate(-50%, -110%); }
.tablewrap { overflow-x: auto; }
.restable { width: 100%; border-collapse: collapse; font-size: 11px; font-variant-numeric: tabular-nums; }
.restable th { text-align: right; font-weight: 400; color: var(--muted); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.restable td { text-align: right; padding: 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.restable th:first-child, .restable td:first-child { text-align: left; }

.ts-box { position: fixed; right: 12px; bottom: 12px; z-index: 40; }
