/* Lobby, hand history, statistics and account pages */
.hero { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 24px; padding: 34px 0 48px; }
/* The flow field bleeds to the edges of the window, behind the header and the hero. */
.hero-field { position: absolute; z-index: -1; left: 50%; top: -90px; width: 100vw; height: calc(100% + 150px); transform: translateX(-50%);
  pointer-events: none; opacity: .9;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent), radial-gradient(90% 120% at 76% 42%, #000 28%, rgba(0, 0, 0, .22) 72%);
  mask-image: linear-gradient(180deg, #000 55%, transparent), radial-gradient(90% 120% at 76% 42%, #000 28%, rgba(0, 0, 0, .22) 72%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); line-height: .95; letter-spacing: -.035em; font-weight: 600; margin: 18px 0 18px; }
.hero h1 em { font-style: italic; font-weight: 500; background: var(--field); -webkit-background-clip: text;
  background-clip: text; color: transparent; padding: 0 .08em .12em 0; }
.hero .pill i, .hero p i { font-family: var(--serif); font-size: 1.1em; }
.hero p i { color: var(--text); }
.hero p { color: var(--muted); font-size: 17px; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.lobby-counters { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 26px; color: var(--muted); font-size: 14px; min-height: 22px; }
.lobby-counters b { color: var(--text); font-size: 16px; }
.hero-art { position: relative; height: 320px; }
.hero-fig { position: absolute; right: 0; bottom: -18px; font: italic 14px var(--serif); color: var(--faint); text-align: right; line-height: 1.5; }
.hero-fig b { display: block; font-weight: 500; font-size: 22px; color: var(--muted); letter-spacing: .02em; }
.fan { position: absolute; left: 50%; top: 54%; }
.fan .pcard { --cw: 112px; position: absolute; left: -56px; top: -80px; transform-origin: 50% 160%;
  animation: fan .9s cubic-bezier(.2, 1.1, .3, 1) both; box-shadow: 0 20px 40px rgba(3, 4, 30, .6), 0 0 60px rgba(92, 160, 255, .12); }
.fan .f0 { --r: -32deg; } .fan .f1 { --r: -16deg; animation-delay: .06s; } .fan .f2 { --r: 0deg; animation-delay: .12s; }
.fan .f3 { --r: 16deg; animation-delay: .18s; } .fan .f4 { --r: 32deg; animation-delay: .24s; }
.fan .pcard { transform: rotate(var(--r)); }
@keyframes fan { from { transform: rotate(0) translateY(40px); opacity: 0; } }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 28px; letter-spacing: -.015em; line-height: 1.1; }
.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.table-card { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px;
  transition: transform .15s, border-color .15s, box-shadow .15s; }
.table-card:hover { transform: translateY(-2px); border-color: rgba(77, 214, 255, .4); box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.mini-felt { position: relative; width: 84px; height: 62px; flex: none; border-radius: 999px; display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 40%, #1d8394, #123f6b 70%, #0a1440); box-shadow: inset 0 0 0 3px #0a1238, 0 0 0 2px #333a6e;
  font-weight: 800; font-size: 14px; color: rgba(255, 255, 255, .92); }
.mini-felt i { position: absolute; width: 11px; height: 11px; margin: -5.500px; border-radius: 50%; background: var(--surface-3);
  box-shadow: 0 0 0 2px var(--surface); }
.mini-felt i.on { background: var(--accent); box-shadow: 0 0 0 2px var(--surface), 0 0 10px rgba(77, 214, 255, .8); }
.tc-main { min-width: 0; flex: 1; display: grid; gap: 6px; }
.tc-title { display: flex; align-items: center; gap: 8px; }
.tc-title h3 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.tc-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 13px; }
.tc-meta .stakes { color: var(--text); font-weight: 700; }
.tc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; font-size: 13px; }
.tc-avatars { display: flex; align-items: center; min-height: 26px; }
.tc-avatars .avatar { width: 26px; height: 26px; font-size: 11px; margin-right: -7px; box-shadow: 0 0 0 2px var(--surface); }
.tc-avatars .more { margin-left: 12px; color: var(--muted); font-weight: 700; }
.buyin { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.buyin .chip-ico { width: 14px; height: 14px; }
.tc-join { position: absolute; top: 14px; right: 14px; opacity: 0; transform: translateX(6px); transition: .15s; }
.table-card:hover .tc-join { opacity: 1; transform: none; }
.table-card:hover .tc-title .pill { opacity: 0; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 14px 0 30px; }
  .hero-field { opacity: .5; -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 85%); mask-image: linear-gradient(180deg, #000 20%, transparent 85%); }
  .hero-art { display: none; }
  .hero p { font-size: 15px; }
  .hero-cta .btn { flex: 1; padding: 0 12px; }
  .table-grid { grid-template-columns: 1fr; }
  .tc-join { display: none; }
  .section-head .seg { width: 100%; overflow-x: auto; }
  .section-head .seg button { flex: 1; }
}

/* account */
.acc-grid { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.acc-card { padding: 22px; display: grid; gap: 14px; }
.acc-card h3 { font-size: 17px; }
.acc-profile { justify-items: center; text-align: center; }
.avatar.big { width: 72px; height: 72px; font-size: 30px; }
.acc-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.acc-chips > div { padding: 12px; border-radius: 12px; background: var(--bg-2); display: grid; gap: 2px; }
.acc-chips span { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.acc-chips b { font-size: 20px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.settings .switch + .switch { border-top: 1px solid var(--line); }
@media (max-width: 760px) { .acc-grid { grid-template-columns: 1fr; } }

/* hand history */
.section-head p { font-size: 13px; }
.search-row { position: relative; margin-bottom: 14px; }
.search-row svg { position: absolute; left: 14px; top: 12px; color: var(--faint); }
.search-row .input { padding-left: 42px; }
.hand-list { overflow: hidden; }
.hand-row { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); transition: background .12s; }
.hand-row:last-child { border-bottom: 0; }
.hand-row:hover { background: rgba(255, 255, 255, .04); }
.hr-cards { width: 62px; flex: none; }
.hr-cards .pcard { --cw: 29px; }
.hr-main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.hr-top { display: flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; overflow: hidden; }
.hr-top b { overflow: hidden; text-overflow: ellipsis; }
.hr-top .muted { font-size: 13px; }
.hr-board { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.hr-board .pcard { --cw: 22px; }
.hr-board .pcard .rk { font-size: 12px; }
.hr-board .pcard .st { width: 10px; height: 10px; margin-left: -5px; }
.hr-res { display: grid; justify-items: end; gap: 2px; font-size: 12px; white-space: nowrap; }
.hr-res b { font-size: 15px; }

/* replayer */
.rp-bar { min-height: 0 !important; gap: 10px; align-items: center; }
.rp-caption { display: flex; align-items: center; gap: 10px; min-height: 24px; font-size: 14px; max-width: 100%; }
.rp-caption b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rp-scrub { width: min(560px, 100%); }
.rp-controls { display: flex; gap: 8px; }
.rp-controls .btn { width: 48px; height: 44px; }
.rp-controls .btn.primary { width: 64px; }

/* statistics */
.stats-body { display: grid; gap: 14px; }
.stats-pick { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.stats-pick select { width: auto; min-width: 240px; flex: 1; max-width: 380px; }
.kpis { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.kpi { padding: 14px; display: grid; gap: 4px; }
.kpi span { font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.kpi b { font-size: 24px; letter-spacing: -.02em; }
.stats-card { padding: 18px; min-width: 0; }
.sc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.sc-head h3 { font-size: 16px; }
.sc-head > b { font-size: 18px; }
.stats-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.chart .grid { stroke: rgba(255, 255, 255, .06); }
.chart .zero { stroke: rgba(255, 255, 255, .28); stroke-dasharray: 4 4; }
.chart .guide { stroke: rgba(255, 255, 255, .25); }
.chart .tick { fill: var(--faint); font-size: 11px; font-family: var(--font); }
.chart-tip { position: absolute; top: 0; transform: translateX(-50%); padding: 6px 10px; border-radius: 10px; background: var(--surface-3);
  border: 1px solid var(--line-2); font-size: 12px; display: grid; justify-items: center; pointer-events: none; white-space: nowrap; }
.chart-tip b { font-size: 14px; }
.tbl-wrap { overflow-x: auto; margin: 0 -6px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: right; font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; padding: 6px 8px; white-space: nowrap; }
.tbl td { text-align: right; padding: 9px 8px; border-top: 1px solid var(--line); white-space: nowrap; }
.tbl th:nth-child(-n+2), .tbl td:nth-child(-n+2) { text-align: left; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: rgba(255, 255, 255, .04); }
.tbl tr.sel td { background: rgba(77, 214, 255, .08); }
.tbl .who { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.tbl .who .avatar { width: 26px; height: 26px; font-size: 11px; }
.barcell { position: relative; display: inline-block; min-width: 70px; padding: 2px 6px; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .04); }
.barcell i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(77, 214, 255, .28); }
.range-grid { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 2px; }
.rc { aspect-ratio: 1; border-radius: 5px; display: grid; place-items: center; align-content: center; font-size: clamp(7px, 1.05vw, 11px); line-height: 1.15; overflow: hidden; }
.rc b { font-weight: 750; }
.rc span { opacity: .8; font-size: .9em; }
.rc.pair { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(4, 1fr); } .stats-two { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .kpi { padding: 10px; } .kpi b { font-size: 19px; }
  .rc { font-size: 7.5px; border-radius: 3px; } .rc span { display: none; }
  .hand-row { gap: 10px; padding: 12px; }
  .hr-top .muted { display: none; }
  .stats-pick select { max-width: none; }
}
