:root {
  --bg: #07111f;
  --surface: #0c1a2b;
  --surface-2: #11243a;
  --line: rgba(173, 200, 226, .14);
  --text: #f4f7fa;
  --muted: #8496aa;
  --green: #35d59a;
  --green-dark: #0e825e;
  --coral: #ff715b;
  --gold: #e6b85c;
  --cyan: #4cb9d9;
  --danger: #ff6c76;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif; letter-spacing: 0; }
button, input, select { font: inherit; letter-spacing: 0; }
button { color: inherit; }
button, [data-route], [data-action] { cursor: pointer; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.app-shell { min-height: 100vh; padding-bottom: 88px; background: radial-gradient(circle at 48% 0%, rgba(45, 107, 124, .15), transparent 25%), var(--bg); }
.topbar { height: 72px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: rgba(7, 17, 31, .88); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--bg); background: var(--green); border-radius: 6px; font-size: 21px; }
.brand div { display: grid; }
.brand strong { font-size: 13px; letter-spacing: .08em; }
.brand span:last-child { color: var(--muted); font-size: 11px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.balance-pill { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; min-height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 12px; }
.balance-pill span:last-child { color: var(--muted); font-size: 12px; }
.ticket-mini { width: 21px; height: 21px; display: grid; place-items: center; background: rgba(230, 184, 92, .16); color: var(--gold); border: 1px solid rgba(230,184,92,.35); font: 600 10px DM Mono; }
.avatar-button { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; flex-shrink: 0; white-space: nowrap; font-size: 12px; border-radius: 50%; border: 2px solid rgba(53,213,154,.5); background: #264a4c; font-weight: 700; }
.page { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 38px 0 60px; }

.welcome-row, .page-title { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 22px; }
.welcome-row h1, .page-title h1 { margin: 5px 0 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }
.page-title p { margin: 5px 0 0; color: var(--muted); }
.page-title.compact { align-items: center; }
.eyebrow, .modal-kicker { color: var(--green); font: 500 11px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .14em; }
.live-badge { color: #a9b7c5; font-size: 12px; display: flex; align-items: center; gap: 8px; }
.live-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(53,213,154,.1); }

.hero-panel { min-height: 282px; position: relative; overflow: hidden; border: 1px solid rgba(109, 215, 184, .23); border-radius: var(--radius); padding: 34px; background: linear-gradient(110deg, #0b4c42, #0c3140 68%, #102238); box-shadow: 0 24px 70px rgba(0,0,0,.24); }
.hero-grid { position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(90deg, #000, transparent); }
.suit-watermark { position: absolute; right: 38px; top: -72px; font-size: 330px; line-height: 1; opacity: .055; }
.club-kicker { position: relative; color: #a7cabf; font-size: 12px; }
.hero-panel h2 { position: relative; margin: 14px 0 8px; font-size: 34px; }
.hero-panel > p { position: relative; margin: 0; max-width: 520px; color: #a8c0be; }
.hero-stats { position: absolute; left: 34px; right: 34px; bottom: 30px; display: flex; align-items: end; gap: 46px; }
.hero-stats div { display: grid; gap: 2px; }
.hero-stats span { color: #9bb3b1; font-size: 11px; }
.hero-stats strong { font: 500 23px DM Mono; }
.secondary-light { margin-left: auto; height: 42px; padding: 0 15px; border: 1px solid rgba(255,255,255,.2); border-radius: 5px; background: rgba(255,255,255,.08); display: flex; align-items: center; gap: 8px; }

.quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 38px; }
.quick-actions > button { min-height: 84px; border-radius: var(--radius); border: 1px solid var(--line); padding: 0 20px; display: flex; align-items: center; gap: 15px; text-align: left; }
.quick-actions > button > svg { margin-left: auto; color: #7890a6; }
.quick-actions b { display: block; font-size: 16px; }
.quick-actions small { color: var(--muted); }
.primary-action { background: var(--green); color: #071c16; border-color: var(--green) !important; }
.primary-action small { color: #246951; }
.primary-action > svg { color: #11694d !important; }
.join-action { background: var(--surface); }
.action-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 6px; background: rgba(255,255,255,.08); }
.primary-action .action-icon { background: rgba(7,28,22,.12); }
.action-icon svg { width: 23px; height: 23px; }

.section-head { display: flex; align-items: end; justify-content: space-between; margin: 32px 0 14px; }
.section-head h3 { margin: 4px 0 0; font-size: 21px; }
.text-button { border: 0; color: var(--muted); background: transparent; font-size: 12px; }
.room-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.room-card { padding: 20px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.room-card-top { display: flex; justify-content: space-between; align-items: start; }
.room-card h4 { margin: 8px 0 0; font-size: 18px; }
.status { display: inline-block; border-radius: 3px; padding: 3px 7px; font-size: 10px; }
.status.playing { color: var(--green); background: rgba(53,213,154,.1); }
.status.waiting { color: var(--gold); background: rgba(230,184,92,.1); }
.icon-button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 5px; background: rgba(255,255,255,.025); display: grid; place-items: center; color: #92a7bb; }
.icon-button.large { width: 42px; height: 42px; }
.room-number { margin: 20px 0 15px; color: #64788d; font: 500 10px DM Mono; letter-spacing: .12em; }
.room-number b { color: var(--text); margin-left: 8px; font-size: 20px; letter-spacing: .08em; }
.room-meta, .seats { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; }
.room-meta svg { width: 14px; height: 14px; vertical-align: -2px; }
.seats { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.seat-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #26384a; margin-right: 6px; }
.seat-dot.filled { background: var(--green); }
.room-enter { width: 100%; height: 38px; margin-top: 15px; border: 1px solid #24624f; background: rgba(53,213,154,.06); color: var(--green); border-radius: 5px; }
.records-list, .transactions, .member-list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.record-row, .transaction-row, .member-row { min-height: 72px; padding: 12px 16px; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }
.record-row:last-child, .transaction-row:last-child, .member-row:last-child { border-bottom: 0; }
.record-icon { width: 36px; height: 36px; display: grid; place-items: center; background: #163549; color: var(--cyan); font: 600 13px DM Mono; border-radius: 5px; }
.record-main, .transaction-row > div, .member-main { display: grid; gap: 4px; flex: 1; min-width: 0; }
.record-main span, .transaction-row span, .member-main > span { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.record-result, .member-points { text-align: right; display: grid; }
.record-result b, .member-points b { font: 500 16px DM Mono; }
.record-result span, .member-points span { color: var(--muted); font-size: 10px; }
.win, .positive { color: var(--green) !important; }
.loss { color: var(--coral); }

.club-metrics { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.metric { min-height: 128px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; justify-content: center; }
.metric.featured { background: #0b342e; border-color: rgba(53,213,154,.28); }
.metric span { color: var(--muted); font-size: 11px; }
.metric strong { margin: 6px 0 2px; font: 500 28px DM Mono; }
.metric small { color: #698095; font-size: 10px; }
.club-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 38px; }
.club-tools button { min-height: 76px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); display: grid; grid-template-columns: 38px 1fr; grid-template-rows: 1fr 1fr; text-align: left; column-gap: 11px; align-items: end; }
.club-tools .tool-icon { grid-row: 1 / 3; align-self: center; width: 36px; height: 36px; display: grid; place-items: center; color: var(--green); background: rgba(53,213,154,.1); border-radius: 5px; font: 600 16px DM Mono; }
.tool-icon svg { width: 18px; }
.club-tools b { align-self: end; }
.club-tools small { color: var(--muted); align-self: start; }
.member-heading { margin-bottom: 12px; gap: 12px; flex-wrap: wrap; }
#member-search { min-width: 0; width: min(185px, 100%); height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; background: #102230; color: var(--text); font-size: 12px; }
.small-button { height: 34px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 5px; font-size: 11px; }
.search-box { height: 44px; margin-bottom: 10px; padding: 0 13px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #091725; border-radius: 6px; color: var(--muted); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.avatar { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #214846; font-weight: 700; font-size: 13px; }
.avatar.coral { background: #7b3c3e; }.avatar.cyan { background: #245567; }.avatar.gold { background: #6a5933; }.avatar.violet { background: #4f466f; }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.player-avatar { position: relative; display: grid; place-items: center; width: 100%; height: 100%; min-width: 0; min-height: 0; overflow: hidden; border-radius: inherit; background: #214846; color: #edf7f4; isolation: isolate; }
.avatar-initials { max-width: 100%; overflow: hidden; white-space: nowrap; line-height: 1; }
.player-avatar img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; opacity: 0; }
.player-avatar img.avatar-loaded { opacity: 1; }
.profile-heading { align-items: center; gap: 20px; flex-wrap: wrap; }
.profile-identity, .member-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.profile-identity { flex: 1 1 260px; }
.profile-avatar { flex: 0 0 72px; width: 72px; height: 72px; border: 2px solid rgba(53,213,154,.5); border-radius: 50%; font-size: 22px; font-weight: 700; }
.identity-copy { min-width: 0; }
.profile-heading h1 { font-size: clamp(24px, 4vw, 34px); overflow-wrap: anywhere; }
.profile-heading p { font-size: 12px; line-height: 1.6; }
.profile-heading > button { flex-shrink: 0; }
.member-identity { padding-right: 18px; margin-bottom: 22px; }
.member-identity .avatar { width: 52px; height: 52px; font-size: 16px; }
.live-modal .member-identity h2 { margin: 0 0 6px; overflow-wrap: anywhere; }
.member-identity p { margin: 0; overflow-wrap: anywhere; }
.member-main > div { display: flex; align-items: center; gap: 7px; }
.blocked-tag { padding: 2px 5px; color: var(--danger); background: rgba(255,108,118,.1); border-radius: 3px; font-size: 9px; }
.member-points { min-width: 76px; }

.cost-preview { padding: 10px 14px; background: rgba(230,184,92,.08); border: 1px solid rgba(230,184,92,.18); border-radius: 6px; display: grid; text-align: right; }
.cost-preview span { color: var(--muted); font-size: 10px; }
.cost-preview b { font: 500 17px DM Mono; color: var(--gold); }
.cost-preview i, .create-summary i { font-style: normal; width: 18px; height: 18px; border: 1px solid currentColor; display: inline-grid; place-items: center; font-size: 9px; }
.form-section { margin-bottom: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.field-label { display: grid; gap: 8px; color: #c8d2dc; font-size: 12px; }
.field-label input, .field-label select { width: 100%; height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 5px; outline: 0; background: #091624; color: var(--text); }
.field-block { margin-top: 24px; }
.field-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 12px; }
.field-title b { color: var(--green); font: 500 12px DM Mono; }
.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line); padding: 4px; background: #091624; border-radius: 6px; }
.segmented button { height: 37px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font-size: 12px; }
.segmented button.selected { background: #183d3a; color: var(--green); box-shadow: inset 0 0 0 1px rgba(53,213,154,.25); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .field-label { margin-top: 24px; }
.section-caption { padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font: 500 10px DM Mono; letter-spacing: .1em; }
.toggle-row { min-height: 66px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border: 0; }
.toggle-row > span { display: grid; gap: 3px; }
.toggle-row b { font-size: 13px; }.toggle-row small { color: var(--muted); }
.toggle-row input { position: absolute; opacity: 0; }
.toggle-row > i { position: relative; width: 42px; height: 23px; border-radius: 20px; background: #2b3d4e; transition: .2s; }
.toggle-row > i:after { content: ''; position: absolute; width: 17px; height: 17px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: .2s; }
.toggle-row input:checked + i { background: var(--green-dark); }
.toggle-row input:checked + i:after { transform: translateX(19px); }
.create-summary { position: sticky; bottom: 78px; z-index: 10; min-height: 76px; padding: 12px 14px 12px 20px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(53,213,154,.28); border-radius: var(--radius); background: rgba(9,27,38,.94); backdrop-filter: blur(14px); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.create-summary > div { display: grid; gap: 3px; }.create-summary span { color: var(--muted); font-size: 10px; }.create-summary strong { color: var(--gold); }.create-summary em { font-style: normal; font: 500 18px DM Mono; }
.primary-button, .outline-button { min-height: 42px; padding: 0 18px; border-radius: 5px; border: 1px solid var(--green); background: var(--green); color: #072118; font-weight: 700; }
.primary-button:disabled { opacity: .35; cursor: not-allowed; }
.outline-button { background: transparent; color: #d5dee7; border-color: var(--line); font-weight: 500; }
.outline-button.danger { color: var(--danger); border-color: rgba(255,108,118,.25); }
.primary-button.danger-fill { border-color: var(--danger); background: var(--danger); color: #2b090d; }
.primary-button.full { width: 100%; margin-top: 18px; }

.wallet-hero { position: relative; overflow: hidden; padding: 28px; min-height: 218px; border-radius: var(--radius); border: 1px solid rgba(230,184,92,.25); background: linear-gradient(115deg, #25261e, #31301e 52%, #172421); }
.wallet-hero:after { content: 'R'; position: absolute; right: 28px; top: -38px; color: rgba(230,184,92,.06); font: 600 210px DM Mono; }
.wallet-hero > span { color: #b7ad8e; font-size: 12px; }.wallet-number { margin: 7px 0; display: flex; align-items: center; gap: 13px; }.wallet-number i { width: 37px; height: 37px; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--gold); font: 500 16px DM Mono; font-style: normal; }.wallet-number strong { font: 500 47px DM Mono; }.wallet-hero p { color: #8d8d80; font-size: 11px; }.wallet-hero button { position: absolute; right: 28px; bottom: 28px; z-index: 1; height: 42px; padding: 0 18px; border: 1px solid rgba(230,184,92,.36); background: rgba(230,184,92,.08); color: var(--gold); border-radius: 5px; }
.transaction-icon { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-weight: 700; }.transaction-icon.receive { color: var(--green); background: rgba(53,213,154,.1); }.transaction-icon.use, .transaction-icon.send { color: var(--gold); background: rgba(230,184,92,.1); }.transaction-row > strong { font: 500 15px DM Mono; }

.profile-header { display: flex; align-items: center; gap: 14px; padding: 8px 0 25px; }.profile-header .avatar { width: 62px; height: 62px; font-size: 20px; }.profile-header > div { flex: 1; }.profile-header h1 { margin: 0 0 4px; }.profile-header p { margin: 0; color: var(--muted); font-size: 11px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }.profile-stats div { min-height: 90px; display: grid; place-content: center; text-align: center; border-right: 1px solid var(--line); }.profile-stats div:last-child { border: 0; }.profile-stats strong { font: 500 20px DM Mono; }.profile-stats span { color: var(--muted); font-size: 10px; }
.menu-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }.menu-list button { width: 100%; min-height: 70px; padding: 10px 15px; display: flex; align-items: center; gap: 13px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }.menu-list button:last-child { border: 0; }.menu-list button > div { flex: 1; display: grid; gap: 3px; }.menu-list small { color: var(--muted); }.menu-list button > svg { color: var(--muted); }.menu-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 5px; font-weight: 700; }.menu-icon.green { color: var(--green); background: rgba(53,213,154,.1); }.menu-icon.gold { color: var(--gold); background: rgba(230,184,92,.1); }.menu-icon.blue { color: var(--cyan); background: rgba(76,185,217,.1); }.menu-icon.gray { color: #a2b0be; background: rgba(162,176,190,.1); }.version-note { margin: 30px 0; text-align: center; color: #34475a; font: 500 9px DM Mono; letter-spacing: .16em; }

.bottom-nav { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 30; width: min(650px, calc(100% - 28px)); height: 64px; padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(var(--nav-count, 5), minmax(0, 1fr)); border: 1px solid rgba(151,180,205,.16); border-radius: 8px; background: rgba(10,24,39,.94); backdrop-filter: blur(18px); box-shadow: 0 18px 45px rgba(0,0,0,.45); }
.nav-item { border: 0; background: transparent; color: #708499; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; font-size: 9px; }.nav-item.active { color: var(--green); }.nav-icon { display: grid; place-items: center; }.nav-icon svg { width: 19px; height: 19px; }.create-nav .nav-icon { width: 38px; height: 38px; margin-top: -20px; border-radius: 50%; background: var(--green); color: #071b15; border: 5px solid #0a1827; }.create-nav span:last-child { margin-top: -2px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; padding: 18px; display: grid; place-items: center; background: rgba(1,7,13,.76); backdrop-filter: blur(8px); }
.modal { position: relative; width: min(480px, 100%); max-height: calc(100vh - 36px); overflow: auto; padding: 27px; border: 1px solid #294056; border-radius: var(--radius); background: #0d1d2e; box-shadow: 0 30px 80px rgba(0,0,0,.5); }.modal h2 { margin: 8px 0; font-size: 24px; }.modal-close { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); }.modal-copy { color: var(--muted); font-size: 12px; line-height: 1.7; }.modal-profile { display: flex; align-items: center; gap: 12px; margin: 19px 0; }.modal-profile h2 { margin: 0; }.modal-profile p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }.member-balance { min-height: 86px; padding: 15px; display: grid; grid-template-columns: 1fr auto; align-items: center; border: 1px solid var(--line); background: #091725; border-radius: 6px; }.member-balance span, .member-balance small { color: var(--muted); font-size: 10px; }.member-balance strong { grid-row: 1 / 3; grid-column: 2; font: 500 25px DM Mono; }.inline-form { display: grid; grid-template-columns: 1fr auto auto; gap: 7px; margin-top: 14px; }.inline-form input { min-width: 0; height: 42px; padding: 0 12px; color: var(--text); border: 1px solid var(--line); border-radius: 5px; background: #091725; }.modal-field { margin-top: 17px; }.modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 17px; }.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin: 18px 0; border: 1px solid var(--line); background: #091725; border-radius: 6px; }.mode-tabs button { height: 38px; border: 0; background: transparent; color: var(--muted); border-radius: 4px; }.mode-tabs button.active { background: #183d3a; color: var(--green); }.fee-grid { display: grid; gap: 8px; }.fee-grid label { display: grid; grid-template-columns: 1fr 160px; align-items: center; color: #b6c2cd; font-size: 12px; }.fee-grid label div { display: flex; }.fee-grid input, .fee-grid select { width: 50%; height: 38px; padding: 0 8px; color: var(--text); border: 1px solid var(--line); background: #091725; }.input-action { display: flex; }.input-action input { border-radius: 5px 0 0 5px; }.input-action button { width: 70px; border: 1px solid var(--green); background: rgba(53,213,154,.08); color: var(--green); border-radius: 0 5px 5px 0; }.receiver-card { display: flex; align-items: center; gap: 10px; padding: 11px; margin-top: 10px; border: 1px solid rgba(53,213,154,.25); background: rgba(53,213,154,.05); border-radius: 5px; }.receiver-card > div { flex: 1; display: grid; }.receiver-card span { color: var(--muted); font-size: 10px; }.receiver-card > i { color: var(--green); }.search-error { margin-top: 8px; color: var(--danger); font-size: 11px; }.room-code-input { width: 100%; height: 64px; margin: 18px 0 4px; border: 1px solid var(--line); background: #091725; color: var(--text); border-radius: 6px; text-align: center; font: 500 28px DM Mono; letter-spacing: .18em; }.success-mark { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: rgba(53,213,154,.12); color: var(--green); font-size: 26px; }.created-code { margin: 20px 0; padding: 18px; text-align: center; background: #091725; border: 1px solid var(--line); font: 500 31px DM Mono; letter-spacing: .14em; }.oauth-note { margin: 18px 0; padding: 14px; border: 1px solid var(--line); background: #091725; color: var(--muted); font-size: 11px; line-height: 1.8; }.oauth-note b { color: var(--text); font-family: DM Mono; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 100px; transform: translateX(-50%); padding: 10px 16px; color: #dfe8ef; background: #1a2c3d; border: 1px solid #344b60; border-radius: 5px; box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: 12px; animation: toast-in .2s ease-out; }@keyframes toast-in { from { transform: translate(-50%, 8px); opacity: 0; } }
#toast-root.login-toast .toast { top: max(18px, env(safe-area-inset-top)); bottom: auto; max-width: min(440px, calc(100vw - 32px)); }
.modal-actions.three { grid-template-columns: repeat(3, 1fr); }
.fee-hint { margin: 4px 0 0; color: var(--muted); font-size: 10px; }

.table-screen { min-height: 100vh; overflow: hidden; background: #07131d; }.table-top { height: 64px; padding: 0 16px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; border-bottom: 1px solid rgba(255,255,255,.08); }.table-top button { height: 40px; border: 0; background: transparent; color: #a9bac8; font-size: 24px; }.table-top div { display: grid; text-align: center; }.table-top span { color: var(--muted); font-size: 10px; }.poker-table-wrap { width: min(820px, 100%); height: calc(100vh - 270px); min-height: 430px; margin: auto; padding: 44px 72px; display: grid; place-items: center; }.poker-table { position: relative; width: 100%; height: 100%; max-height: 480px; min-height: 330px; border: 12px solid #4b382c; border-radius: 44%; background: radial-gradient(circle at center, #17644d, #0d4c3a 70%); box-shadow: inset 0 0 0 2px #8d7254, inset 0 0 70px rgba(0,0,0,.3), 0 24px 45px rgba(0,0,0,.4); }.felt-line { position: absolute; inset: 22px; border: 1px solid rgba(255,255,255,.11); border-radius: 45%; }.pot { position: absolute; left: 50%; top: 32%; transform: translate(-50%,-50%); display: flex; gap: 7px; color: #b2c9bf; font-size: 11px; }.pot b { color: var(--gold); font-family: DM Mono; }.community { position: absolute; left: 50%; top: 49%; transform: translate(-50%,-50%); display: flex; gap: 5px; }.playing-card { width: 42px; height: 57px; padding: 4px; display: grid; align-content: start; color: #162334; background: #f4f4ee; border-radius: 4px; font: 700 16px DM Mono; box-shadow: 0 3px 7px rgba(0,0,0,.25); }.playing-card small { font-size: 14px; line-height: 1; }.playing-card.red { color: #dc394b; }.playing-card.back { background: repeating-linear-gradient(45deg, #173d5b, #173d5b 5px, #286281 5px, #286281 10px); border: 3px solid #dce2dc; }.player-seat { position: absolute; display: grid; justify-items: center; transform: translate(-50%,-50%); }.seat-0 { left: 10%; top: 20%; }.seat-1 { left: 50%; top: 2%; }.seat-2 { left: 90%; top: 20%; }.seat-3 { left: 90%; top: 80%; }.seat-4 { left: 50%; top: 98%; }.seat-5 { left: 10%; top: 80%; }.seat-avatar { width: 43px; height: 43px; display: grid; place-items: center; border: 2px solid #527068; background: #17303b; border-radius: 50%; font-size: 11px; font-weight: 700; }.player-seat.you .seat-avatar { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(230,184,92,.12); }.player-seat.empty .seat-avatar { color: #83a69a; border-style: dashed; background: rgba(0,0,0,.12); font-size: 20px; }.seat-info { min-width: 75px; margin-top: -4px; padding: 4px 7px; display: grid; border-radius: 4px; background: rgba(4,15,20,.88); text-align: center; }.seat-info b { font-size: 10px; }.seat-info span { color: var(--gold); font: 500 9px DM Mono; }.empty-label { color: #a5b8b0; font-size: 9px; }.dealer { position: absolute; right: -7px; top: 35px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #f2efe2; color: #18212b; font: 700 9px DM Mono; }.bet-chip { position: absolute; left: -30px; top: 56px; padding: 3px 6px; color: #101c25; background: var(--gold); border-radius: 9px; font: 600 8px DM Mono; }.my-cards { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); display: flex; gap: 2px; }.my-cards .playing-card { width: 38px; height: 51px; transform: rotate(-5deg); }.my-cards .playing-card:last-child { transform: rotate(5deg); }.hand-hint { height: 44px; display: grid; place-content: center; text-align: center; }.hand-hint b { color: var(--green); font-size: 12px; }.hand-hint span { color: var(--muted); font-size: 10px; }.action-area { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); background: #0b1824; border-top: 1px solid rgba(255,255,255,.08); }.bet-slider { width: min(680px, 100%); margin: auto auto 9px; display: grid; grid-template-columns: 45px 1fr 45px; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }.bet-slider input { accent-color: var(--gold); }.bet-slider b { color: var(--gold); font: 500 12px DM Mono; text-align: right; }.game-actions { width: min(680px, 100%); margin: auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }.game-actions button { height: 47px; border-radius: 5px; font-weight: 700; }.game-actions b { display: block; font: 500 9px DM Mono; }.game-actions .fold { border: 1px solid #3a4b58; background: #172634; }.game-actions .check { border: 1px solid #31566a; background: #19394a; }.game-actions .raise { border: 1px solid #c79741; background: var(--gold); color: #252116; }

.table-top { grid-template-columns: 44px 1fr auto; }
.table-top .table-title { display: grid; text-align: center; }
.table-tools { display: flex !important; align-items: center; }
.table-tools button { width: 36px; display: grid; place-items: center; }
.table-tools svg { width: 18px; height: 18px; }
.player-seat[data-action] { cursor: pointer; }
.poker-table-wrap { height: calc(100vh - 318px); }
.table-social { width: min(680px, 100%); height: 34px; margin: 0 auto 4px; display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 8px; }
.table-social button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #263c4e; border-radius: 50%; background: #122433; color: #91a6b8; }
.table-social svg { width: 17px; height: 17px; }
.last-message-shell { min-width: 0; overflow: hidden; color: #9cb2bd; font-size: 10px; line-height: 1.3; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.last-message-track { display: inline-block; min-width: max-content; padding-right: 24px; transform: translateX(0); }
.last-message-track.is-scrolling { animation: room-chat-scroll var(--marquee-duration, 10s) linear var(--marquee-delay, 0ms) both; }
@keyframes room-chat-scroll { from { transform: translateX(var(--marquee-from)); } to { transform: translateX(var(--marquee-to)); } }
@media (prefers-reduced-motion: reduce) { .last-message-track.is-scrolling { animation: none; transform: none; } }
.room-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 16px 0; }
.room-presets button { min-height: 40px; padding: 8px 4px; border: 1px solid #485e69; border-radius: 6px; background: #192a32; color: #dbe6e8; font-size: 13px; }
.room-presets button[aria-pressed="true"] { color: #fff; border-color: #67bd99; background: #245842; }
.room-option-section { padding: 20px 0; border-top: 1px solid #3c5367; margin-top: 20px; }
.room-option-section h2 { margin: 0; font-size: 17px; }
.room-option-section .field-label { min-width: 0; }
.room-option-section input, .room-option-section select { width: 100%; min-width: 0; }
.room-option-section .field-label:has([data-blind-unit]) { display: block; }
.room-option-section .field-label:has([data-blind-unit]) input { display: block; margin-top: 8px; }
.room-option-label { display: flex; align-items: center; gap: 6px; min-height: 24px; }
.room-option-toggle { display: flex; align-items: center; gap: 4px; min-width: 0; }
.tw-rule-toggles .room-option-toggle .live-checkbox { flex: 1; min-width: 0; }
.room-help-button { display: inline-grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #d7edff; cursor: pointer; }
.room-option-label .room-help-button { margin: -6px 0; }
.room-help-button span { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #345d7a; font-size: 15px; font-weight: 700; line-height: 1; }
.room-help-button[aria-expanded="true"] span { background: #509dc0; color: #fff; }
.room-help-button:focus-visible { outline: 2px solid #8bd1ed; outline-offset: 1px; }
.room-help-popup { position: fixed; z-index: 80; width: min(340px, calc(100vw - 20px)); padding: 12px 14px; border: 1px solid #6ba7bb; border-radius: 8px; background: #28546a; color: #edf8ff; box-shadow: 0 8px 24px #0005; font-size: 14px; line-height: 1.7; overflow-y: auto; overflow-wrap: anywhere; overscroll-behavior: contain; }
.room-help-popup strong { display: block; margin-bottom: 4px; color: #fff; font-size: 14px; }
.room-help-popup p { margin: 0; }
.blind-preview { margin-top: 16px; font-size: 12px; line-height: 1.8; color: #9eccae; overflow-wrap: anywhere; }
.host-controls { border-top: 1px solid #3c5367; margin-top: 20px; padding-top: 8px; }
.host-controls h3 { font-size: 16px; }
.history-turn-notice { position: sticky; top: -20px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; margin-bottom: 12px; border: 1px solid #edc375; border-radius: 6px; background: #293727; color: #ffe0a4; font-size: 13px; }
.history-turn-notice button { flex-shrink: 0; min-height: 36px; border: 0; border-radius: 5px; background: #edc375; color: #1c271c; }
.tw-review { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 0; font-size: 13px; }
.tw-review small { grid-column: 1 / -1; color: #b3c9b9; }
.tw-review button,.tw-continue { min-height: 38px; border: 1px solid #c9b777; border-radius: 5px; padding: 8px 12px; color: #ffe4a8; background: #254d3c; }
.tw-continue { display: block; width: 100%; margin: 10px 0; }
.tw-social .last-message-shell { flex: 1; min-width: 0; text-overflow: clip; }
.last-message-shell { height: 20px; display: flex; align-items: center; }
@keyframes chat-marquee { 0%, 14% { transform: translateX(0); } 86%, 100% { transform: translateX(calc(-1 * var(--marquee-distance, 0px))); } }
.game-backdrop { display: block; padding: 0; }
.game-sheet { position: absolute; z-index: 2; overflow: auto; border: 1px solid #294056; background: #0d1d2e; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.game-sheet.bottom { left: 50%; bottom: 0; width: min(680px, 100%); max-height: 72vh; padding: 24px 20px calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); border-radius: 8px 8px 0 0; }
.game-sheet.side { right: 0; top: 0; bottom: 0; width: min(420px, 90vw); padding: 30px 22px; border-radius: 0; }
.game-sheet h2 { margin: 8px 0; }
.table-player-list { margin-top: 20px; border-top: 1px solid var(--line); }
.table-player-list > div { min-height: 64px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.table-player-list .avatar { width: 36px; height: 36px; }
.table-player-list span { flex: 1; display: grid; gap: 2px; }
.table-player-list small { color: var(--muted); }
.table-player-list strong { font: 500 12px ui-monospace, monospace; }
.table-stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; border: 1px solid var(--line); }
.table-stats div { min-height: 72px; padding: 13px; display: grid; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.table-stats div:nth-child(2n) { border-right: 0; }
.table-stats div:nth-last-child(-n+2) { border-bottom: 0; }
.table-stats span { color: var(--muted); font-size: 10px; }
.table-stats b { font: 500 14px ui-monospace, monospace; }
.history-list { display: grid; gap: 8px; margin-top: 18px; }
.history-list button { min-height: 70px; padding: 12px; display: grid; grid-template-columns: 1fr auto; gap: 4px; border: 1px solid var(--line); border-radius: 5px; background: #091725; color: var(--text); text-align: left; }
.history-list button span { font-weight: 600; }.history-list button b { font: 500 13px ui-monospace, monospace; }.history-list button small { grid-column: 1 / 3; color: var(--muted); }
.replay-board { min-height: 180px; padding: 25px 14px; display: grid; place-content: center; gap: 15px; text-align: center; background: radial-gradient(circle, #155d49, #0b3f32); border: 8px solid #43362d; border-radius: 45%; }
.replay-board .community { position: static; transform: none; justify-content: center; }
.replay-board p { margin: 0; color: #a5b9b0; font-size: 11px; }
.replay-controls { height: 52px; margin-top: 14px; display: grid; grid-template-columns: 48px 48px 1fr 48px 48px; align-items: center; border-top: 1px solid var(--line); }
.replay-controls button { height: 40px; border: 0; background: transparent; color: var(--text); font-size: 20px; }.replay-controls span { text-align: center; color: var(--muted); font: 500 11px ui-monospace, monospace; }
.buyin-balance { margin: 20px 0 8px; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }.buyin-balance strong { color: var(--text); }
.buyin-limits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }.buyin-limits div { min-height: 66px; padding: 11px 13px; display: grid; align-content: center; gap: 4px; border: 1px solid var(--line); background: #091725; }.buyin-limits span { color: var(--muted); font-size: 10px; }.buyin-limits b { font: 500 16px ui-monospace, monospace; }.buyin-disabled { margin: 14px 0; padding: 13px; border-left: 3px solid #607487; background: #111f2c; color: #aebdca; font-size: 11px; line-height: 1.6; }
.buyin-value { min-height: 74px; display: grid; place-content: center; text-align: center; }.buyin-value span { color: var(--muted); font-size: 10px; }.buyin-value b { color: var(--green); font: 500 30px ui-monospace, monospace; }
.buyin-range { width: 100%; accent-color: var(--green); }.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.check-row { min-height: 45px; display: flex; align-items: center; gap: 9px; color: #b8c5d0; font-size: 11px; }.check-row input { width: 17px; height: 17px; accent-color: var(--green); }
.chat-tabs { height: 50px; margin: -10px 35px 15px 0; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.chat-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 7px; }.chat-tabs button.active { color: var(--green); border-bottom-color: var(--green); }.chat-tabs svg { width: 18px; }
.emoji-grid { min-height: 190px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }.emoji-grid button { min-height: 64px; border: 0; background: transparent; font-size: 30px; }
.phrase-list { min-height: 190px; }.phrase-list button { width: 100%; min-height: 44px; padding: 0 8px; display: flex; align-items: center; justify-content: space-between; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: #c8d1da; text-align: left; }.phrase-list svg { width: 16px; color: var(--muted); }
.chat-compose { display: grid; grid-template-columns: 1fr 68px; gap: 8px; margin-top: 12px; }.chat-compose input { min-width: 0; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; background: #07131f; color: var(--text); outline: 0; }.chat-compose button { border: 0; border-radius: 5px; background: var(--green); color: #062018; font-weight: 700; }

.poker-table:after { content: ''; position: absolute; inset: 10%; pointer-events: none; border-radius: 50%; background: radial-gradient(circle at 50% 40%, rgba(103,255,199,.09), transparent 58%); animation: felt-breathe 4.8s ease-in-out infinite; }
.playing-card.dealt { opacity: 0; animation: card-deal .38s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(var(--deal-index) * 80ms + 120ms); }
.my-cards.dealing { animation: hand-deal .5s cubic-bezier(.2,.8,.2,1) both; }

/* The practice table renders directly from the legal hand state. */
.practice-screen { min-height: 100dvh; display: flex; flex-direction: column; }
.practice-screen .table-top { flex: 0 0 64px; }
.street-steps { display: flex; justify-content: center; gap: 5px; padding: 8px 5px; }
.loading-screen, .login-screen { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 22px; gap: 15px; text-align: center; background: radial-gradient(ellipse at 50% 20%, #164637, #07151f 70%); }
.login-screen h1 { font-size: clamp(25px, 5vw, 42px); margin: 0; }.login-screen > p { color: #9db4ac; }.login-screen > small { color: #778b93; font-size: 10px; }
.login-mark { color: #e9bf72; font-size: 66px; line-height: 1; }.login-card { width: min(380px, 100%); padding: 26px; border: 1px solid #35483e; border-radius: 14px; background: rgba(12,29,36,.9); text-align: left; }.login-card h2 { font-size: 20px; margin: 0 0 22px; }.login-card button { margin-top: 15px; }.login-divider { text-align: center; font-size: 10px; color: #859a9b; margin: 24px 0 15px; }
.account-form { display: grid; gap: 14px; }
.account-form .field-label, .account-form button { margin: 0; }
.account-hint { font-size: 11px; line-height: 1.7; color: #98adb8; margin: 0; overflow-wrap: anywhere; }
.password-input { display: flex; position: relative; min-width: 0; }
.password-input input { padding-right: 62px; min-width: 0; }
.account-form .password-input button { position: absolute; right: 0; top: 0; min-width: 56px; height: 46px; border: 0; background: transparent; color: #c2d9d0; font-size: 12px; }
.form-error { color: var(--danger); font-size: 12px; line-height: 1.6; margin: 0; overflow-wrap: anywhere; }
.form-error:empty { display: none; }
.account-form .account-help { min-height: 38px; justify-self: center; }
.bound-username { overflow-wrap: anywhere; color: #b3ccc3; }
.account-form input[readonly] { color: #93aba7; background: #12232c; }
.invitation-inbox { margin-bottom: 24px; }
.invitation-card { padding: 16px; margin-bottom: 10px; border: 1px solid #35584d; background: #102a29; border-radius: 10px; }
.invitation-card h4 { margin: 0; overflow-wrap: anywhere; }
.invitation-card p { color: #a1bdb4; font-size: 12px; overflow-wrap: anywhere; }
.invitation-actions { display: flex; justify-content: flex-end; gap: 10px; }
#share-link { min-height: 106px; overflow-wrap: anywhere; }
#share-status { margin-top: 10px; }
/* iOS zooms focused form controls below 16px. Keep ordinary taps stable,
   while retaining pinch zoom for readers who need larger text. */
@media (max-width: 768px), (pointer: coarse) {
  html body input, html body select, html body textarea { font-size: 16px; }
  #member-search { font-size: 16px; }
}
.live-nav-icon { font-family: serif; font-size: 26px; }.club-select { max-width: 155px; padding: 8px; background: #142b35; border: 1px solid #34504f; color: #c6dcd2; border-radius: 6px; font-size: 11px; }.hero-unit { font-size: 12px; font-weight: 400; }
.app-header { min-height: 68px; padding: 10px max(18px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); background: #0b1a25; }.header-actions { display: flex; align-items: center; gap: 8px; }.brand > i { font-style: normal; font-size: 28px; color: var(--green); }.brand b { font-size: 13px; }.brand small { font-size: 8px; color: var(--muted); letter-spacing: 1px; }
.empty-state { padding: 38px 16px; text-align: center; border: 1px dashed #314a52; border-radius: 12px; color: #9eb5ba; margin: 16px 0; }.empty-state h2 { color: #d3e7df; font-size: 22px; }.empty-state.compact { font-size: 12px; padding: 23px 14px; }
.live-checkbox { display: flex; align-items: center; gap: 10px; font-size: 12px; margin: 24px 0 0; }.live-checkbox input { accent-color: var(--green); }.create-summary small { color: #8ea6ae; font-size: 10px; }.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }.profile-actions button { min-height: 40px; }
.live-modal { max-height: 88dvh; overflow: auto; }.live-modal h2 { margin: 0 0 18px; }.live-modal .field-label { margin-bottom: 16px; }.live-modal > input, .live-modal textarea { width: 100%; min-height: 44px; border: 1px solid #324958; border-radius: 6px; padding: 11px; background: #0b1e2b; color: #dce8ee; margin-bottom: 14px; }.live-modal > .primary-button { margin-top: 14px; }.live-modal textarea { min-height: 88px; resize: vertical; }
.live-modal .transaction-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 13px 0; border-bottom: 1px solid #243844; font-size: 11px; }.transaction-row > div { display: grid; gap: 4px; }.transaction-row small, .transaction-row > span { color: #829ca9; font-size: 9px; }
.live-chat-log { max-height: min(38vh, 290px); overflow: auto; display: grid; gap: 8px; margin: 0; padding: 2px 3px 10px 0; list-style: none; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; overscroll-behavior: contain; }.chat-message { max-width: 88%; display: grid; gap: 3px; padding: 8px 10px; border: 1px solid #263f4c; border-radius: 9px; background: #102532; }.chat-message.mine { justify-self: end; border-color: #376654; background: #163b35; }.chat-message-meta { display: flex; align-items: baseline; gap: 8px; color: #9cb2bd; font-size: 10px; }.chat-message-meta b { color: var(--gold); }.chat-message-meta time { color: #718b98; font: 10px ui-monospace, monospace; }.chat-message p { margin: 0; color: #d5e3e0; white-space: pre-wrap; }.emoji-message p { font-size: 30px; line-height: 1; }.empty-chat-log { display: block; padding: 24px 10px; color: #829aa5; text-align: center; }.chat-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -7px 0 10px; }.chat-dialog-head .modal-copy { margin: 0; }.chat-dialog-head > span { flex-shrink: 0; color: #819aa5; font-size: 10px; }.chat-tools { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; }.chat-tool-title { margin: 0 0 7px; color: #9eb4bc; font-size: 10px; }.chat-compose { position: sticky; bottom: calc(-1 * (env(safe-area-inset-bottom) + 1px)); margin: 10px -2px calc(-1 * env(safe-area-inset-bottom)); padding: 10px 2px calc(10px + env(safe-area-inset-bottom)); background: #0d1d2e; }.chat-compose button { min-width: 68px; min-height: 42px; cursor: pointer; }.copy-text { user-select: all; }.record-row { width: 100%; text-align: left; color: inherit; background: #0d202e; border: 0; border-bottom: 1px solid var(--line); }.record-row:hover { background: #14303b; }
.member-main, .record-main { min-width: 0; }.member-main b, .record-main b { overflow-wrap: anywhere; }.member-main > span { display: block; overflow-wrap: anywhere; line-height: 1.6; }.member-row .icon-button { flex-shrink: 0; }.hero-panel > p, .page-title p { overflow-wrap: anywhere; }.hero-panel > p { max-height: 54px; overflow: auto; }
.sound-settings { display: grid; margin-bottom: 20px; }.sound-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }.sound-row span { display: grid; gap: 6px; }.sound-row b { font-size: 13px; }.sound-row small { font-size: 10px; color: #9fb3bd; }.sound-row input { appearance: none; flex: 0 0 42px; width: 42px; height: 25px; border-radius: 20px; background: #354b59; position: relative; cursor: pointer; }.sound-row input:after { content: ''; position: absolute; width: 19px; height: 19px; left: 3px; top: 3px; border-radius: 50%; background: #e6f1ea; transition: transform .15s; }.sound-row input:checked { background: #267856; }.sound-row input:checked:after { transform: translateX(17px); }.sound-volume { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding-top: 18px; font-size: 13px; }.sound-volume input { grid-column: 1 / -1; width: 100%; accent-color: var(--green); }.sound-volume output { color: var(--gold); }
.live-modal .emoji-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }.live-modal .emoji-grid button { display: grid; place-items: center; gap: 5px; min-height: 66px; background: #122b36; border: 1px solid #2c4b53; border-radius: 10px; color: #cee1d8; }.emoji-grid button span { font-size: 26px; }.emoji-grid button small { font-size: 10px; }.quick-phrases { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }.quick-phrases button { padding: 8px 10px; min-height: 36px; border: 1px solid #365057; border-radius: 18px; background: transparent; color: #bbd0c9; font-size: 11px; }
.seat-reaction { position: absolute; z-index: 12; top: -48px; font-size: 34px; line-height: 1.4; padding: 0 7px; background: #eef6e9; border-radius: 16px; box-shadow: 0 5px 18px #0005; pointer-events: none; animation: reaction-pop 2.8s ease both; }.seat-info b { max-width: 76px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }.seat-info span { white-space: nowrap; }
@keyframes reaction-pop { 0% { opacity: 0; transform: translateY(8px) scale(.6); } 12%, 82% { opacity: 1; transform: translateY(0) scale(1); } 100% { opacity: 0; transform: translateY(-8px); } }
.reduce-motion *, .reduce-motion *:before, .reduce-motion *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
button, input, select, textarea { touch-action: manipulation; } button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #e6bd76; outline-offset: 3px; }
.seat-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }.online-dot { position: absolute; right: 8px; top: 28px; width: 7px; height: 7px; border-radius: 50%; background: #526574; border: 1px solid #142934; }.online-dot.online { background: #4ed79c; }
.live-screen .player-seat.empty { background: transparent; border: 0; padding: 0; color: #9db8b0; }.live-screen .player-seat.empty:disabled { cursor: default; }.live-screen .table-tools button { font-size: 20px; }
.street-steps span { padding: 4px 8px; color: #8196a7; font-size: 10px; border-radius: 20px; background: #10212e; }
.street-steps .active { color: #f6d590; background: #3c3425; }
.practice-screen .poker-table-wrap { height: clamp(350px, calc(100dvh - 332px), 650px); min-height: 350px; padding: 50px 56px 65px; flex: 1 0 350px; }
.practice-screen .poker-table { min-height: 270px; }
.practice-screen .pot { top: 25%; white-space: nowrap; }
.board-caption { position: absolute; top: 36%; left: 50%; transform: translateX(-50%); font-size: 10px; color: #b0c8b9; }
.practice-screen .community { top: 50%; z-index: 2; }
.empty-card { background: rgba(4,29,23,.28); border: 1px dashed rgba(189,224,202,.24); box-shadow: none; }
.practice-screen .my-cards { bottom: 35px; z-index: 4; }
.hand-folded { opacity: .35; filter: grayscale(1); }
.seat-folded { opacity: .44; }
.seat-info em { margin-left: 3px; font-size: 7px; color: #81a392; font-style: normal; font-weight: 400; }
.seat-action { position: absolute; top: calc(100% + 3px); max-width: 108px; white-space: nowrap; color: #b7cbbc; font-size: 9px; }
.practice-screen .dealer { width: auto; min-width: 19px; padding: 0 3px; right: -13px; font-size: 8px; }
.practice-screen .bet-chip { left: auto; right: calc(100% - 4px); top: 30px; }
.revealed-cards { position: absolute; top: calc(100% + 16px); display: flex; gap: 2px; z-index: 5; }
.playing-card.mini-card { width: 24px; height: 32px; font-size: 10px; padding: 2px; }
.playing-card.mini-card small { font-size: 10px; }
.practice-screen .hand-hint { flex: 0 0 auto; height: auto; min-height: 55px; gap: 4px; padding: 7px 14px; overflow: visible; }
.practice-screen .hand-hint b { max-width: 700px; font-size: 11px; }
.practice-screen .hand-hint span { font-size: 10px; line-height: 1.5; }
.practice-screen .hand-hint i { animation: none; transition: transform .25s linear; }
.practice-screen .action-area { position: relative; margin-top: auto; }
.practice-screen .between-hand-actions { height: 45px; margin-top: 9px; }
.practice-screen .between-hand-actions button { min-width: 0; flex: 1; max-width: 200px; }
.practice-screen .bet-slider { grid-template-columns: 44px 1fr 62px; }
.practice-screen .game-actions button:disabled, .practice-screen .bet-presets button:disabled { cursor: default; opacity: .35; }
.hand-result-bar { display: flex; justify-content: center; align-items: center; gap: 20px; color: var(--gold); font-size: 14px; }
.hand-result-bar button, .history-navigation button { border: 1px solid #355064; border-radius: 4px; background: #122433; color: #d9e2e9; padding: 5px 10px; }
.spectating-note { text-align: center; color: #9cafbf; font-size: 11px; padding: 6px 0 13px; }
.poker-rules { font-size: 12px; line-height: 1.9; color: #aebfcc; }
.poker-rules ol { padding-left: 22px; }.poker-rules li { margin-bottom: 10px; }.poker-rules b { color: #f4d28c; }
.history-navigation { display: flex; overflow: auto; gap: 5px; margin: 12px 0; }
.history-navigation button { flex-shrink: 0; }.history-navigation .selected { color: var(--gold); border-color: var(--gold); }
.poker-payouts > div { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.poker-payouts strong { margin-left: auto; color: var(--gold); }.history-cards { display: flex; gap: 2px; }
.poker-pot-results { font-size: 11px; color: #a9c1b7; line-height: 1.7; }
.poker-action-log { list-style: none; padding: 0; margin: 15px 0; font-size: 11px; }
.poker-action-log li { display: flex; gap: 15px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.poker-action-log small { width: 42px; flex-shrink: 0; color: var(--gold); }
@media (max-width: 600px) {
  .practice-screen .poker-table-wrap { padding-left: 34px; padding-right: 34px; }
  .practice-screen .poker-table { min-height: 260px; }
  .practice-screen .playing-card { width: 30px; height: 43px; font-size: 13px; }
  .practice-screen .community { gap: 3px; }
  .practice-screen .seat-info { min-width: 59px; padding: 4px; }
  .practice-screen .seat-info b { font-size: 9px; }
  .practice-screen .playing-card.mini-card { width: 19px; height: 28px; font-size: 9px; }
  .practice-screen .seat-action { font-size: 8px; }
}

/* Portrait club-table creation: navy cards, blue tracks and gold selections. */
.star-create { width: min(720px, 100%); margin: 0 auto; color: #c9ddf6; }
.star-create-head { display:flex; align-items:center; gap:14px; margin: 0 0 14px; text-align:center; }
.star-create-head > div { flex:1; }.star-create-head h1 { margin:0; color:#d8eaff; font-size:28px; }.star-create-head p { margin:5px 0 0; color:#6ea7df; font-size:12px; }.star-back { border:0; background:transparent; color:#a4d3ff; font-size:42px; line-height:1; }
.star-tabs,.star-game-tabs { display:grid; grid-auto-flow:column; grid-auto-columns:1fr; gap:5px; padding:4px; border-radius:28px; background:#162d4c; margin-bottom:10px; }.star-tabs button,.star-game-tabs button { min-height:42px; border:0; border-radius:24px; background:transparent; color:#69a8e8; font-weight:600; }.star-tabs button.selected,.star-game-tabs button.selected { color:#18283b; background:linear-gradient(110deg,#edb84f,#ffdc91); }
.star-name-field { display:flex; align-items:center; gap:8px; padding:14px 16px; border-radius:18px; background:#173454; font-size:16px; }.star-name-field span { white-space:nowrap; }.star-name-field input { min-width:0; flex:1; border:0; outline:0; border-radius:22px; padding:12px 16px; text-align:center; color:#d9eaff; background:#10243d; }
.star-blinds-select,.star-buyin-sync { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.star-settings { display:grid; gap:10px; margin-top:10px; }.star-range { padding:16px 14px 12px; border-radius:18px; background:#173454; }.star-range-head { display:flex; justify-content:space-between; align-items:center; font-size:17px; }.star-range-head b { color:#62b0f5; font-weight:500; }.star-range input { width:100%; margin:10px 0 2px; accent-color:#45a8eb; }.star-range-labels { display:flex; justify-content:space-between; color:#6da7df; font-size:12px; }.star-setting-link { min-height:58px; padding:0 16px; border:0; border-radius:18px; background:#173454; color:#a9c8ec; text-align:left; font-size:16px; }.star-setting-link b { margin-left:22px; color:#63a9e6; font-weight:500; }.star-setting-link span { float:right; font-size:30px; color:#4c93ca; }.star-toggle-grid { display:grid; grid-template-columns:1fr 1fr; gap:1px 18px; padding:14px 16px; border-radius:18px; background:#173454; }.star-toggle-grid label { min-height:58px; display:flex; justify-content:space-between; align-items:center; gap:8px; border-bottom:1px solid #294b70; }.star-toggle-grid label:nth-last-child(-n+2) { border-bottom:0; }.star-toggle-grid span { display:grid; gap:3px; }.star-toggle-grid b { font-size:14px; font-weight:500; }.star-toggle-grid small { color:#6994bf; font-size:10px; }.star-toggle-grid input { position:absolute; opacity:0; }.star-toggle-grid i { width:44px; height:25px; flex:none; border-radius:20px; background:#0c213a; border:1px solid #43709d; position:relative; }.star-toggle-grid i:after { content:''; position:absolute; width:19px; height:19px; left:3px; top:2px; border-radius:50%; background:#8ca9c7; transition:.2s; }.star-toggle-grid input:checked+i { background:#2c91d3; }.star-toggle-grid input:checked+i:after { transform:translateX(17px); background:#fff; }.star-insurance { margin:0; padding:14px 16px; border-radius:18px; background:#173454; color:#b4d3f2; }
.star-create-summary { margin-top:16px; border:0; border-radius:30px; background:#0c1b2c; }.star-create-summary .primary-button { min-width:180px; }
@media(max-width:480px){ .star-create { padding:0 8px; }.star-name-field { align-items:flex-start; flex-direction:column; }.star-name-field input { width:100%; }.star-toggle-grid { grid-template-columns:1fr; }.star-toggle-grid label:nth-last-child(2) { border-bottom:1px solid #294b70; }.star-toggle-grid label:last-child { border-bottom:0; }.star-create-summary { margin-left:-8px; margin-right:-8px; } }
.my-cards.decision-lift { transform: translateX(-50%) translateY(-9px); transition: transform .18s ease; }
.my-cards.folding { animation: fold-cards .55s cubic-bezier(.4,0,.6,1) forwards; }
.player-seat.current-turn .seat-avatar { animation: turn-pulse 1.15s ease-in-out infinite; border-color: var(--gold); }
.player-seat.current-turn:before { content: ''; position: absolute; z-index: -1; top: -5px; width: 51px; height: 51px; border-radius: 50%; background: conic-gradient(var(--gold) 0 78%, rgba(230,184,92,.1) 78%); animation: turn-tick 4s linear infinite; }
.pot { align-items: center; z-index: 2; }
.pot-chips { width: 15px; height: 9px; margin-left: 2px; border-radius: 50%; background: var(--gold); box-shadow: 0 -3px 0 #bc7d38, 0 -6px 0 #e9c768; transform: rotate(-8deg); }
.flying-chip { position: absolute; z-index: 12; width: 17px; height: 17px; margin: -8px; border: 3px dashed #fff0a6; border-radius: 50%; background: #d6a244; box-shadow: 0 3px 9px rgba(0,0,0,.35); }
.action-bubble { position: absolute; z-index: 15; bottom: calc(100% + 6px); left: 50%; min-width: max-content; padding: 5px 9px; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: #15293a; color: #fff; font-size: 10px; font-style: normal; animation: bubble-in .24s cubic-bezier(.2,.9,.2,1); }
.action-bubble.raise { color: #2b210e; background: var(--gold); border-color: #f1d58f; }.action-bubble.fold { color: #d5dee6; background: #263542; }
.hand-hint { position: relative; overflow: hidden; }
.hand-hint i { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--green); transform-origin: left; animation: action-countdown 15s linear infinite; }
.hand-hint i.paused { animation-play-state: paused; opacity: .25; }
.between-hand-actions { height: 34px; margin-top: 5px; display: flex; justify-content: center; gap: 7px; }.between-hand-actions[hidden] { display: none; }.between-hand-actions button { min-width: 92px; padding: 0 13px; border: 1px solid #355064; border-radius: 4px; background: #122433; color: #d9e2e9; font-size: 10px; }.between-hand-actions button:last-child { border-color: #c79741; background: var(--gold); color: #252116; font-weight: 700; }.between-hand-actions button:disabled { opacity: .42; }
.bet-presets { width: min(680px, 100%); height: 31px; margin: 0 auto 4px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.bet-presets button { border: 1px solid #243a4b; border-radius: 4px; background: #102231; color: #8ca0b1; font-size: 9px; }
.bet-presets button.selected { color: var(--gold); border-color: rgba(230,184,92,.5); background: rgba(230,184,92,.08); }
.game-actions button { transition: transform .12s ease, filter .12s ease, opacity .12s ease; }.game-actions button.pressed { transform: translateY(2px) scale(.98); filter: brightness(1.12); }.game-actions button:disabled { opacity: .48; cursor: wait; }
.table-reaction { position: absolute; z-index: 20; left: 50%; bottom: 8%; max-width: 150px; padding: 7px 11px; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: rgba(7,19,29,.92); color: #fff; font-size: 11px; text-align: center; animation: reaction-float 2.4s ease-out forwards; }
.table-reaction.emoji { padding: 0; border: 0; background: transparent; font-size: 42px; filter: drop-shadow(0 7px 8px rgba(0,0,0,.4)); }

@keyframes felt-breathe { 0%,100% { opacity: .55; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.03); } }
@keyframes card-deal { from { opacity: 0; transform: translate(90px,-130px) rotate(18deg) scale(.7); } to { opacity: 1; transform: translate(0,0) rotate(0) scale(1); } }
@keyframes hand-deal { from { opacity: 0; transform: translate(-50%,-90px) scale(.7); } to { opacity: 1; transform: translate(-50%,0) scale(1); } }
@keyframes fold-cards { to { opacity: 0; transform: translate(-50%,-155px) scale(.65) rotate(12deg); } }
@keyframes turn-pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(230,184,92,.12); } 50% { box-shadow: 0 0 0 7px rgba(230,184,92,.2), 0 0 18px rgba(230,184,92,.22); } }
@keyframes turn-tick { to { transform: rotate(1turn); } }
@keyframes action-countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes bubble-in { from { opacity: 0; transform: translate(-50%,8px) scale(.8); } }
@keyframes reaction-float { 0% { opacity: 0; transform: translate(-50%,30px) scale(.7); } 20% { opacity: 1; transform: translate(-50%,0) scale(1.08); } 70% { opacity: 1; transform: translate(-50%,-115px) scale(1); } 100% { opacity: 0; transform: translate(-50%,-155px) scale(.85); } }

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 700px) {
  .topbar { height: 60px; padding: 0 16px; }.brand strong { font-size: 11px; }.brand span:last-child { display: none; }.balance-pill { padding: 0 9px; }.balance-pill span:last-child { display: none; }
  .page { width: calc(100% - 28px); padding-top: 24px; }.welcome-row h1, .page-title h1 { font-size: 27px; }
  .hero-panel { min-height: 300px; padding: 24px; }.hero-panel h2 { font-size: 27px; }.hero-stats { left: 24px; right: 24px; bottom: 22px; gap: 24px; flex-wrap: wrap; }.hero-stats .secondary-light { flex: 1 0 100%; margin: 3px 0 0; justify-content: center; }
  .quick-actions, .room-list { grid-template-columns: 1fr; }.quick-actions { gap: 10px; margin-bottom: 30px; }.quick-actions > button { min-height: 76px; }
  .club-metrics { grid-template-columns: 1fr 1fr; }.metric.featured { grid-column: 1 / 3; }.metric { min-height: 108px; }.club-tools { grid-template-columns: 1fr; }.club-tools button { min-height: 68px; }
  .member-row { padding-left: 12px; padding-right: 10px; }.member-points { min-width: 60px; }.member-points b { font-size: 13px; }
  .form-section { padding: 17px 14px; }.form-grid { grid-template-columns: 1fr; gap: 0; }.segmented button { padding: 0 4px; }.create-summary { bottom: 76px; }.create-summary .primary-button { padding: 0 14px; }
  .wallet-hero { padding: 22px; }.wallet-hero button { position: relative; right: auto; bottom: auto; margin-top: 13px; }.wallet-number strong { font-size: 41px; }
  .modal { padding: 23px 18px; }.inline-form { grid-template-columns: 1fr 1fr; }.inline-form input { grid-column: 1 / 3; }.modal-actions, .modal-actions.three { grid-template-columns: 1fr; }
  .table-top { padding: 0 8px; }.table-top .table-title b { max-width: 145px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; margin: auto; }.table-tools button { width: 32px; }
  .poker-table-wrap { height: calc(100vh - 308px); min-height: 370px; padding: 42px 30px; }.poker-table { border-width: 8px; border-radius: 42%; }.playing-card { width: 34px; height: 48px; font-size: 13px; }.playing-card small { font-size: 11px; }.seat-avatar { width: 38px; height: 38px; }.seat-info { min-width: 61px; padding: 3px 5px; }.my-cards .playing-card { width: 34px; height: 47px; }
}

@media (min-width: 900px) {
  .bottom-nav { left: 24px; top: 50%; bottom: auto; transform: translateY(-50%); width: 72px; height: 390px; grid-template-columns: 1fr; grid-template-rows: repeat(var(--nav-count, 5),1fr); }
  .page { padding-left: 76px; }.create-nav .nav-icon { margin: 0; border: 0; }.create-nav span:last-child { margin: 0; }
}

.connection-status { margin-left: 5px; color: #d39c55 !important; font-style: normal; }.connection-status.connected { color: var(--green) !important; }
.record-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }.record-summary div { min-height: 92px; padding: 14px; display: grid; align-content: center; gap: 5px; border-right: 1px solid var(--line); }.record-summary div:last-child { border-right: 0; }.record-summary span { color: var(--muted); font-size: 10px; }.record-summary strong { font: 500 20px DM Mono; }.record-filters { display: flex; gap: 7px; margin: 0 0 10px; }.record-filters button { min-width: 68px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--muted); font-size: 11px; }.record-filters button.active { border-color: rgba(53,213,154,.5); background: rgba(53,213,154,.08); color: var(--green); }.records-page-list .record-row { cursor: pointer; }.records-page-list .record-row > svg { width: 16px; color: var(--muted); }.empty-state { padding: 38px 20px; color: var(--muted); text-align: center; font-size: 12px; }.oauth-status { margin: 18px 0; padding: 14px; display: grid; gap: 5px; border: 1px solid var(--line); background: #091725; }.oauth-status span { color: #d39c55; font-size: 10px; }.oauth-status.connected span { color: var(--green); }.oauth-status b { font-size: 13px; }.oauth-note small { color: var(--muted); }.record-detail-stats { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0; border: 1px solid var(--line); background: #091725; }.record-detail-stats div { min-height: 72px; padding: 13px; display: grid; align-content: center; gap: 5px; border-right: 1px solid var(--line); }.record-detail-stats div:last-child { border-right: 0; }.record-detail-stats span { color: var(--muted); font-size: 10px; }.record-detail-stats strong { font: 500 15px DM Mono; }
@media (max-width: 700px) { .record-summary { grid-template-columns: 1fr 1fr; }.record-summary div:nth-child(2) { border-right: 0; }.record-summary div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.member-main > div > b { min-width: 0; overflow-wrap: anywhere; }
.member-main .blocked-tag { flex-shrink: 0; }
.member-role-setting { padding: 14px; margin-bottom: 20px; border: 1px solid #35534e; border-radius: 10px; background: #122e31; }
.member-role-setting > span { display: block; margin-bottom: 10px; color: #e5c987; }
.member-role-setting .modal-copy { margin-bottom: 0; }
.room-results-page { max-width: 760px; margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom)); }
.result-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 20px; color: #a4beb9; font-size: 12px; }
.room-result-card { overflow: hidden; border: 1px solid #416256; border-radius: 20px; background: linear-gradient(150deg, #163d3c, #0d242d 55%); box-shadow: 0 22px 64px #0005; }
.result-heading { padding: 28px 20px 24px; text-align: center; background: radial-gradient(ellipse at top, #41674865, transparent 80%); }
.result-heading .eyebrow { font-size: 9px; letter-spacing: 2px; color: #cbbf8d; }
.result-emblem { margin: 16px 0 10px; font-size: 42px; color: #ead29c; }
.result-heading h1 { margin: 0 0 10px; color: #fff1cf; font-size: 25px; overflow-wrap: anywhere; }
.result-heading p { margin: 0 0 17px; color: #a8c7c1; font-size: 12px; overflow-wrap: anywhere; }
.result-status { display: inline-block; padding: 7px 12px; border: 1px solid #60866755; border-radius: 20px; background: #88b79112; color: #c6dec7; font-size: 11px; }
.result-metrics { display: grid; grid-template-columns: repeat(3, 1fr); padding: 18px 10px; margin: 0 18px; border-top: 1px solid #87a78530; border-bottom: 1px solid #87a78530; }
.result-metrics > div { display: grid; text-align: center; gap: 7px; }
.result-metrics strong { font-size: 24px; color: #e6ca91; font-variant-numeric: tabular-nums; }
.result-metrics span { color: #a0b9b4; font-size: 11px; }
.result-dates { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 15px 20px; font-size: 10px; color: #8da9a4; }
.result-player-list { padding: 0 14px; }
.result-player { padding: 15px 10px 12px; margin-bottom: 8px; border: 1px solid #4d76613b; border-radius: 12px; background: #132e36; }
.result-player.is-me { border-color: #93b97680; background: #1d3b39; }
.result-player-main { display: flex; align-items: center; gap: 10px; }
.result-rank { width: 18px; flex-shrink: 0; color: #dec186; font-variant-numeric: tabular-nums; }
.result-player .avatar { width: 39px; height: 39px; flex-shrink: 0; }
.result-name { flex: 1; min-width: 0; display: grid; gap: 5px; }
.result-name > b { font-size: 13px; overflow-wrap: anywhere; line-height: 1.4; }
.result-name small { margin-left: 5px; padding: 2px 4px; border-radius: 4px; color: #dceccf; background: #54865870; font-size: 9px; white-space: nowrap; }
.result-name > span { font-size: 10px; color: #91aca8; }
.result-net { flex-shrink: 0; font-size: 22px; font-variant-numeric: tabular-nums; }
.result-player-detail { margin-top: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid #5b786a30; padding-top: 10px; font-size: 10px; color: #88a39d; }
.result-player-detail b { margin-left: 3px; color: #bccdc5; font-weight: 500; }
.result-note { padding: 12px 22px 20px; margin: 0; text-align: center; font-size: 10px; line-height: 1.9; color: #91a89e; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.result-export-image { display: block; width: 100%; height: auto; border-radius: 10px; }
.result-download { display: block; text-align: center; text-decoration: none; margin: 12px 0 20px; }
@media (max-width: 360px) { .room-results-page { padding-left: 10px; padding-right: 10px; } .result-player-main { gap: 7px; } .result-net { font-size: 18px; } .result-player .avatar { width: 33px; height: 33px; } .result-heading h1 { font-size: 22px; } }
.member-row[hidden] { display: none; }
.fee-panel[hidden] { display: none; }
.fee-rank-row { min-width: 0; margin: 16px 0; padding: 14px; border: 1px solid #34534e; border-radius: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: #12302f; }
.fee-rank-row legend { padding: 0 6px; color: #e4c78a; font-size: 13px; }
.live-modal .fee-rank-row .field-label { min-width: 0; margin: 0; font-size: 11px; }
.fee-rank-row input, .fee-rank-row select { width: 100%; min-width: 0; }
.fee-threshold { grid-column: 1 / -1; }
.fee-rule-summary { margin: 15px 0; padding: 4px 12px; border: 1px solid #34534e; border-radius: 10px; }
.fee-rule-summary > div { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 10px 0; font-size: 12px; border-bottom: 1px solid #34534e; }
.fee-rule-summary > div:last-child { border-bottom: 0; }
.fee-rule-summary b { color: #e4c78a; text-align: right; }
.fee-rule-summary small { grid-column: 1 / -1; color: #94ada3; font-size: 10px; }
.member-main > div > b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thirteen-celebration { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(3, 12, 24, .82); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.thirteen-celebration.is-visible { opacity: 1; pointer-events: auto; }
.tw-celebration-card { position: relative; width: min(88vw, 420px); padding: 34px 24px; text-align: center; border: 1px solid #d9b66f; border-radius: 18px; background: linear-gradient(145deg, #102d4c, #1e1832); box-shadow: 0 0 55px rgba(232, 182, 88, .32); transform: scale(.72) rotate(-2deg); animation: tw-card-in .55s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.tw-kicker { color: #e9c77e; letter-spacing: .18em; font-size: 11px; }
.tw-celebration-card h2 { margin: 10px 0; color: #fff1b2; font-size: 42px; text-shadow: 0 0 24px #edb942; }
.tw-celebration-card p { color: #c6d3df; line-height: 1.7; }
.tw-fireworks, .tw-fireworks::before, .tw-fireworks::after { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #ffd978; box-shadow: 0 0 0 0 #ffd978; animation: tw-burst 1.8s ease-out infinite; content: ''; }
.tw-fireworks { left: 18%; top: 25%; } .tw-fireworks::before { left: 48vw; top: 14vh; animation-delay: .35s; } .tw-fireworks::after { left: 25vw; top: 48vh; animation-delay: .7s; }
@keyframes tw-card-in { to { transform: scale(1) rotate(0); } }
@keyframes tw-burst { 0% { box-shadow: 0 0 0 0 #ffd978; opacity: 1; } 100% { box-shadow: 0 0 0 70px transparent, 24px -20px 0 -2px #f36b62, -28px 14px 0 -2px #7ed6c1, 12px 28px 0 -2px #8ab8ff, -16px -30px 0 -2px #fff1b2; opacity: 0; } }
.insurance-terms { margin: 0; color: #cad5df; font-size: 11px; line-height: 14px; overflow-wrap: anywhere; }
.live-screen .action-area .insurance-panel { gap: 3px; }
@media (orientation: portrait) { .live-screen:has(.insurance-panel) { grid-template-rows: 50px 48px minmax(0, 1fr) 108px 204px; } }
@media (max-height: 680px) and (orientation: portrait) { .live-screen:has(.insurance-panel) { grid-template-rows: 44px 48px minmax(0, 1fr) 90px 204px; } }

/* Make the existing club control and live tables visible without another home block. */
.club-switcher{position:relative;display:flex;flex-direction:column;justify-content:center;flex:0 0 142px;min-width:0;max-width:48%;min-height:52px;padding:7px 10px;border:1px solid #51b799;border-radius:8px;background:#163c35;box-shadow:0 2px 8px #0002}
.club-switcher>span{display:flex;align-items:center;justify-content:space-between;gap:5px;color:#8de4bd;font-size:11px;pointer-events:none}
.club-switcher>span i{font-size:17px;font-style:normal;line-height:12px}
.club-switcher .club-select{width:100%;max-width:100%;min-width:0;padding:4px 15px 0 0;border:0;border-radius:0;background:transparent;color:#f0f8f4;font-size:13px;font-weight:600;cursor:pointer;text-overflow:ellipsis}
.club-switcher .club-select option{background:#142b35}
.club-switcher:focus-within{outline:2px solid #8de4bd;outline-offset:3px}
.welcome-row:has(.club-switcher),.page-title:has(.club-switcher){gap:12px;align-items:center}
.welcome-row:has(.club-switcher)>div,.page-title:has(.club-switcher)>div{min-width:0}
.welcome-row:has(.club-switcher) h1{font-size:clamp(19px,5vw,42px)}
.club-hero{display:flex;flex-direction:column;padding-top:22px;padding-bottom:22px}
.club-hero h2{margin:10px 0 6px}
.club-hero>p{max-height:20px;line-height:20px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex-shrink:0}
.club-hero .hero-stats{position:relative;left:auto;right:auto;bottom:auto;gap:20px;flex-wrap:nowrap;margin-top:auto;padding-top:14px}
.club-hero .hero-stats .secondary-light{flex:0 0 auto;margin:0 0 0 auto;min-height:36px;height:36px;padding:0 10px;font-size:11px}
.home-live-preview{position:relative;display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:52px;flex-shrink:0;margin-top:12px;padding:8px 10px;border:1px solid #b5d8cc33;border-radius:6px;background:#0a272b66;color:#c9ddd5;text-align:left}
.home-live-preview.has-live{border-color:#71dbb45c;background:#0b2e2bb3}
.home-live-label{display:grid;grid-template-columns:7px minmax(0,1fr);align-items:center;gap:3px 7px;min-width:0}
.home-live-label>i{width:6px;height:6px;border-radius:50%;background:#9daea7}
.has-live .home-live-label>i{background:#58e2a7;box-shadow:0 0 0 3px #58e2a718}
.home-live-label b{font-size:13px;font-weight:600;color:#e8f5ee}
.home-live-label small{grid-column:2;color:#a8c7ba;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-live-link{flex-shrink:0;color:#84e3ba;font-size:11px}
.home-live-rooms .room-list{grid-template-columns:1fr}
.home-live-rooms .room-card{padding:14px}
.home-live-rooms .room-number{margin:10px 0}
@media(max-width:600px){.club-hero{padding:20px 18px;min-height:300px}.club-hero .hero-stats{gap:18px}.club-hero .hero-stats strong{font-size:21px}.club-switcher{flex-basis:132px}.welcome-row:has(.club-switcher) h1{font-size:20px;line-height:1.3}.welcome-row:has(.club-switcher) .eyebrow{font-size:10px;letter-spacing:.04em}}
.club-metrics [role=button]{cursor:pointer;border:1px solid #c5a36555}.club-metrics [role=button]:focus-visible{outline:2px solid #b88a43}
.club-health{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 0 14px}.club-health>div{display:grid;gap:3px;padding:13px 15px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.club-health span{font-size:11px;color:var(--muted)}.club-health b{font:500 22px DM Mono;color:var(--ink)}.club-health small{font-size:10px;color:var(--muted)}.club-health .warning{background:#fff8ed;border-color:#ecd8aa}.club-health .warning b{color:#ad6d1c}.negative-tag{display:inline-block;margin-left:5px;padding:2px 5px;border-radius:5px;color:#a84d48;background:#fbe9e8;font-size:9px;font-weight:700}.negative-balance{color:#b34d48!important}.member-detail-loading{padding:13px 0;margin-bottom:14px;color:var(--muted);font-size:12px}.member-detail{margin:0 0 16px;padding:13px;border:1px solid var(--line);border-radius:12px;background:#fbfdfc}.member-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:13px}.member-detail-grid>div{display:grid;gap:3px}.member-detail-grid span{font-size:10px;color:var(--muted)}.member-detail-grid b{font-size:12px;overflow-wrap:anywhere}.member-detail-title{padding:10px 0 6px;border-top:1px solid var(--line);font-size:11px;font-weight:700}.member-operation-row{display:grid;grid-template-columns:1fr auto;gap:3px 10px;padding:9px 0;border-bottom:1px solid var(--line);font-size:11px}.member-operation-row:last-child{border-bottom:0}.member-operation-row>span{display:grid;gap:3px}.member-operation-row small{color:var(--muted);font-size:10px}.member-operation-row>b{font:500 12px DM Mono}.member-operation-row>small{grid-column:1 / -1;overflow-wrap:anywhere}.positive{color:#2c8059}.loss{color:#b34d48}
@media(max-width:520px){.club-health{grid-template-columns:1fr}.member-detail-grid{grid-template-columns:1fr 1fr}}

/* Put the actual tables and their entry buttons on the first screen. */
.home-shell .page{padding-top:16px}
.home-table-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.home-table-heading>div{min-width:0}
.home-table-heading h1{display:flex;align-items:center;gap:8px;margin:0;font-size:26px;white-space:nowrap}
.home-table-heading h1>span{display:grid;place-items:center;min-width:25px;height:25px;padding:0 6px;border-radius:6px;background:#35d59a22;color:var(--green);font-size:15px}
.home-table-heading p{margin:6px 0 0;font-size:12px;color:var(--muted)}
.home-table-heading .club-switcher{margin:0;max-width:190px;flex:0 1 190px}
.home-table-heading .club-select{display:block;appearance:none;-webkit-appearance:none;height:24px;line-height:20px;overflow:hidden}
.home-table-heading .club-switcher:after{content:"";position:absolute;right:12px;bottom:14px;width:6px;height:6px;border-right:1px solid #d5eee2;border-bottom:1px solid #d5eee2;transform:rotate(45deg);pointer-events:none}
.home-shell .resume-table-banner{padding:10px 12px;margin-bottom:12px;gap:8px}
.home-shell .resume-table-banner small{font-size:10px}
.home-room-tools{display:flex;gap:8px;margin-bottom:12px}
.home-room-tools button{min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:6px;background:var(--surface-2);font-size:13px}
.home-room-tools [data-route=create]{color:var(--green);border-color:#35d59a66}
.home-room-tools .home-refresh{display:flex;align-items:center;gap:5px;margin-left:auto;background:none;color:var(--muted)}
.home-room-tools .home-refresh svg{width:14px;height:14px}
.home-room-list .room-card{padding:16px;border-color:#4cbd984d;background:linear-gradient(120deg,#12372f88,var(--surface) 72%)}
.home-room-list .room-card-top{gap:8px}
.home-room-list .room-card-top>div{min-width:0}
.home-room-list .room-card-top>b{flex-shrink:0;font-size:15px;color:var(--text)}
.home-room-list .room-card h4{font-size:17px;line-height:23px;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.home-room-list .room-number{margin:10px 0;color:var(--muted)}
.home-room-list .room-number b{font-size:24px}
.home-room-list .room-meta{justify-content:flex-start;flex-wrap:wrap;gap:5px 14px;font-size:11px}
.home-room-list .room-enter{min-height:44px;margin-top:12px;background:var(--green);border-color:var(--green);color:#072a20;font-size:15px;font-weight:600}
.home-room-list .room-watch{min-height:44px;margin-top:12px}
.home-no-rooms{grid-column:1/-1;padding:28px 12px;border:1px dashed #35d59a55;border-radius:8px}
.home-no-rooms>b{color:var(--text);font-size:17px}
.home-no-rooms p{margin-bottom:0;font-size:12px}
.home-club-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;margin-top:20px;padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--surface)}
.home-club-summary>div{display:grid;gap:7px;min-width:0;overflow-wrap:anywhere}
.home-club-summary>div>span{color:var(--muted);font-size:12px}
.home-club-summary strong{font-size:21px;color:var(--gold)}
.home-club-summary strong small{font-size:11px;color:var(--muted);font-weight:400}
.home-club-summary>p{grid-column:1/-1;margin:0;padding-top:10px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.home-club-summary>small{grid-column:1/-1;color:var(--muted);font-size:11px}
@media(max-width:600px){
  .home-shell .page{width:calc(100% - 28px);padding-top:12px}
  .home-table-heading{gap:8px;margin-bottom:12px}
  .home-table-heading h1{font-size:20px;gap:6px}
  .home-table-heading p{font-size:10px}
  .home-table-heading .club-switcher{flex-basis:126px;max-width:145px;min-width:0}
  .home-room-tools button{padding:0 11px;font-size:12px}
  .home-room-list{gap:12px}
  .home-room-list .room-card{padding:14px}
}
.insurance-period-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:16px 0}.insurance-period-totals>div{background:var(--surface);border-radius:10px;padding:12px 6px;text-align:center}.insurance-period-totals small,.insurance-period-totals b{display:block}.insurance-period-totals b{font-size:19px;margin-top:5px;font-variant-numeric:tabular-nums}.insurance-ledger article{padding:12px 0;border-bottom:1px solid var(--line)}.insurance-ledger header{display:flex;justify-content:space-between}.insurance-ledger small,.insurance-period-list small{font-size:11px;color:var(--muted)}.insurance-ledger p{font-size:12px;margin:5px 0;overflow-wrap:anywhere}.insurance-period-list{display:grid;gap:8px}.insurance-period-list button{display:grid;gap:5px;background:var(--surface);text-align:left;border:1px solid var(--line);border-radius:8px;padding:12px}.insurance-period-list span{font-size:12px;color:var(--gold)}

/* Club selection remains inside the page on desktop WeChat and phones. */
.club-switcher{text-align:left;cursor:pointer;font-family:inherit}
.club-switcher .club-select{display:block;overflow:hidden;white-space:nowrap;line-height:20px}
.club-picker{display:grid;gap:8px;max-height:60vh;overflow:auto;padding:3px}
.club-picker button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text);text-align:left}
.club-picker button[aria-pressed=true]{border-color:var(--green);background:#163c35}
.club-picker button:focus-visible{outline:2px solid var(--green);outline-offset:1px}
.club-picker button>span{min-width:0;display:grid;gap:5px}
.club-picker b{overflow-wrap:anywhere;font-size:15px}
.club-picker small{color:var(--muted);font-size:12px}
.club-picker i{font-style:normal;color:var(--green);font-size:21px;flex-shrink:0}
.live-nav-icon{display:grid;place-items:center}
.live-nav-icon svg{display:block;width:23px;height:23px;stroke:currentColor;fill:none}
.buyin-mode{min-width:0;margin:16px 0;padding:14px;border:1px solid var(--line);border-radius:8px}
.buyin-mode legend{padding:0 6px;font-size:14px;font-weight:600}
.buyin-mode>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.buyin-mode label{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;background:var(--surface);border:1px solid var(--line);border-radius:6px;cursor:pointer}
.buyin-mode label:has(input:checked){border-color:var(--green);color:var(--green);background:#163c35}
.buyin-mode input{accent-color:var(--green);width:17px;height:17px;margin:0}
.buyin-mode p{font-size:12px;color:var(--muted);line-height:1.7;margin:10px 0 0}
