@import url('./brand/brand.css');
:root {
    color-scheme: light;
    --ground: var(--vp-ground);
    --surface: #f3f2ed;
    --paper: #fff;
    --ink: #1f1e1a;
    --muted: #66645b;
    --quiet: #605e56;
    --rule: #c9c4b6;
    --rule-strong: #9d9787;
    --blue: var(--vp-blue);
    --blue-soft: var(--vp-blue-soft);
    --red: var(--vp-danger);
    --green: #137a3d;
    --yellow: #f2d653;
    --focus: #111827;
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    background: var(--ground);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

::selection { background: var(--yellow); color: var(--ink); }

* { scrollbar-color: var(--rule-strong) var(--surface); scrollbar-width: thin; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { outline: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    box-shadow: 0 0 0 3px var(--ground), 0 0 0 5px var(--focus);
}

.skip-link { position: fixed; left: 12px; top: -80px; z-index: 99; background: var(--ink); color: white; padding: 10px 14px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 68px;
    display: grid;
    grid-template-columns: 220px 1fr 220px;
    align-items: center;
    padding: 0 32px;
    background: rgba(229, 227, 218, .96);
    border-bottom: 1px solid var(--rule-strong);
    backdrop-filter: blur(8px);
}

.brand img { display: block; width: 164px; height: auto; }
.top-nav { justify-self: center; display: flex; gap: 4px; }
.top-nav a { padding: 9px 13px; border-radius: 2px; text-decoration: none; color: var(--muted); font-size: 14px; font-weight: 600; }
.top-nav a:hover, .top-nav a[aria-current="page"] { background: var(--paper); color: var(--ink); }
.account-slot { justify-self: end; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.account-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; }
.text-link { font-weight: 700; }
.account-action { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: inherit; cursor: pointer; }

main { max-width: 1500px; margin: 0 auto; display: flex; flex-direction: column; }

.control-room { order: 1; padding: 46px 32px 0; display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.control-rail { min-width: 0; padding: 18px 18px 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; gap: 14px; }
.control-rail a { font-size: 12px; font-weight: 700; text-decoration: none; }
.control-rail a:hover { color: var(--blue); }
.rail-kicker { color: var(--quiet); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.rail-status { margin-top: auto; color: var(--quiet); font-size: 10px; font-weight: 700; }
.rail-status i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--red); }
.event-runway {
    width: 100%;
    min-width: 0;
    min-height: 540px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    background: var(--surface);
}
.control-room > *, .runway-copy, .next-event, .event-empty { min-width: 0; }
.control-room > .table-stage { grid-column: 2; }
.runway-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(38px, 7vw, 104px); border-right: 1px solid var(--ink); }
.runway-copy h1 { max-width: 760px; margin: 0 0 24px; font-size: clamp(48px, 6.5vw, 94px); line-height: .93; letter-spacing: -.04em; font-weight: 800; text-wrap: balance; }
.lead { max-width: 650px; margin: 0; color: var(--muted); font-size: clamp(17px, 2vw, 22px); line-height: 1.5; }
.runway-actions { display: flex; gap: 10px; margin-top: 34px; flex-wrap: wrap; }
.trust-line { margin: 24px 0 0; color: var(--quiet); font-size: 12px; font-weight: 600; letter-spacing: .02em; }

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--ink);
    border-radius: 2px;
    padding: 10px 16px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 750;
    transition: background-color .2s var(--ease-out), color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.button.primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 7px 12px rgba(31, 30, 26, .18); }
.button.primary:hover { background: var(--vp-blue-hover); }
.button.secondary { background: transparent; color: var(--ink); }
.button.secondary:hover, .button.quiet:hover { background: var(--paper); }
.button.quiet { background: transparent; border-color: var(--rule-strong); min-height: 36px; padding: 6px 10px; font-size: 12px; }
.button:disabled { cursor: not-allowed; opacity: .5; box-shadow: none; }

.next-event { padding: 34px; display: flex; flex-direction: column; justify-content: space-between; background: var(--ink); color: #f7f4ea; }
.event-date { display: grid; grid-template-columns: max-content 1fr; gap: 16px; align-items: start; }
.event-day { font-size: 48px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.event-month { color: #c6c0b2; font-size: 12px; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.next-event h2 { margin: auto 0 14px; font-size: clamp(30px, 3vw, 48px); line-height: 1.02; letter-spacing: -.035em; }
.event-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); gap: 12px; padding: 11px 0; border-top: 1px solid #4b4942; font-size: 13px; }
.event-meta span:first-child { color: #aaa598; }
.event-meta strong { max-width: 100%; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: right; }
.event-meta strong.urgent { color: #ff8079; }
.event-action { margin-top: 26px; width: 100%; }
.event-switcher { display: flex; gap: 6px; margin-top: 26px; padding-top: 16px; border-top: 1px solid #4b4942; }
.event-switcher button { flex: 1; min-height: 48px; display: grid; place-items: center; border: 1px solid #5f5b52; border-radius: 2px; background: transparent; color: #d8d3c8; cursor: pointer; }
.event-switcher button.active { background: #f7f4ea; border-color: #f7f4ea; color: var(--ink); }
.event-switcher span { font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
.event-switcher strong { font-variant-numeric: tabular-nums; }
.event-empty { margin: auto 0; }
.event-empty h2 { margin-top: 0; }
.event-empty p { color: #b9b3a5; }
.mini-table { position: relative; min-height: 150px; margin: 24px 8px; border: 1px solid #a6cab4; border-radius: 48%; background: #12663d; }
.mini-table::after { content: '6-seat table'; position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); color: #d9eee0; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.mini-seat { position: absolute; width: 34px; height: 20px; display: grid; place-items: center; background: #f7f4ea; border: 1px solid #171612; border-radius: 2px; color: var(--ink); font-size: 8px; font-weight: 800; }
.mini-seat:nth-child(1) { left: 50%; bottom: -8px; transform: translateX(-50%); }
.mini-seat:nth-child(2) { left: -8px; bottom: 24%; }
.mini-seat:nth-child(3) { left: -8px; top: 20%; }
.mini-seat:nth-child(4) { left: 50%; top: -8px; transform: translateX(-50%); }
.mini-seat:nth-child(5) { right: -8px; top: 20%; }
.mini-seat:nth-child(6) { right: -8px; bottom: 24%; }
.preview-label { color: #f1c8c8; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.skeleton-lines { width: 100%; margin: auto 0; }
.skeleton-lines span { display: block; height: 14px; margin: 14px 0; background: #403e38; animation: skeleton 1.4s ease-in-out infinite alternate; }
.skeleton-lines span:first-child { width: 60%; height: 40px; }
.skeleton-lines span:last-child { width: 80%; }
@keyframes skeleton { to { background: #59564d; } }

.table-stage { margin-top: 28px; border: 1px solid var(--ink); background: var(--surface); }
.table-status { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 20px; border-bottom: 1px solid var(--rule); }
.table-status h2, .table-status p { margin: 0; }
.table-status h2 { font-size: 18px; }
.table-status p { color: var(--muted); font-size: 13px; }
.poker-table { position: relative; min-height: 500px; margin: 28px; border: 2px solid #0e5d36; border-radius: 48%; background: #137a48; box-shadow: inset 0 0 0 10px #0f6b3f, 0 18px 44px rgba(31, 30, 26, .18); }
.board { position: absolute; inset: 42% 18% auto; display: flex; justify-content: center; gap: 6px; }
.card { width: clamp(38px, 5vw, 62px); aspect-ratio: 5/7; display: grid; place-items: center; background: #fff; border: 1px solid #cfcabf; border-radius: 4px; color: var(--ink); font-size: clamp(15px, 2vw, 22px); font-weight: 800; box-shadow: 0 5px 10px rgba(0,0,0,.16); }
.card.red { color: var(--red); }
.pot { position: absolute; top: 31%; left: 50%; transform: translateX(-50%); color: #e7f7ec; font-weight: 700; font-variant-numeric: tabular-nums; }
.seat { position: absolute; width: 126px; min-height: 64px; padding: 9px 10px; background: var(--paper); border: 1px solid var(--ink); border-radius: 2px; text-align: center; box-shadow: 0 6px 9px rgba(0,0,0,.16); }
.seat.active { border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow), 0 9px 18px rgba(0,0,0,.14); }
.seat.folded { opacity: .56; }
.seat-name { display: block; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-stack { display: block; font-weight: 800; font-variant-numeric: tabular-nums; }
.seat-cards { display: flex; justify-content: center; gap: 3px; margin-top: 4px; font-size: 11px; font-weight: 800; }
.seat:nth-child(1) { left: 50%; bottom: -18px; transform: translateX(-50%); }
.seat:nth-child(2) { left: -20px; bottom: 17%; }
.seat:nth-child(3) { left: -20px; top: 15%; }
.seat:nth-child(4) { left: 50%; top: -18px; transform: translateX(-50%); }
.seat:nth-child(5) { right: -20px; top: 15%; }
.seat:nth-child(6) { right: -20px; bottom: 17%; }
.action-bar { min-height: 68px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--rule); }
.action-bar p { margin-right: auto; color: var(--muted); font-size: 13px; }
.amount-field { width: 100px; min-height: 44px; border: 1px solid var(--rule-strong); border-radius: 2px; padding: 8px; font-variant-numeric: tabular-nums; }

.discovery, .host-console { padding: 104px 32px 24px; }
.discovery { order: 3; }
.host-console { order: 4; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.section-heading h2 { margin: 0 0 6px; max-width: 760px; font-size: clamp(30px, 4vw, 54px); line-height: 1; letter-spacing: -.035em; }
.section-heading p { margin: 0; color: var(--muted); }
.search-field { width: min(320px, 100%); min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 2px; }
.search-field svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.search-field input { width: 100%; border: 0; background: transparent; color: var(--ink); }

.club-ledger { min-height: 180px; }
.club-row { display: grid; grid-template-columns: minmax(180px, .7fr) minmax(260px, 1.3fr) auto; gap: 28px; align-items: center; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.club-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.club-avatar { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; background: var(--ink); color: white; border-radius: 50%; font-weight: 800; }
.club-row h3, .club-row p { margin: 0; }
.club-row h3 { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.club-handle { color: var(--quiet); font-size: 12px; }
.club-description { color: var(--muted); font-size: 14px; max-width: 65ch; }
.club-terms { margin-top: 6px; color: var(--quiet); font-size: 12px; }
.club-actions { display: flex; align-items: center; gap: 8px; }
.club-price { min-width: 88px; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.empty-row { padding: 42px 0; color: var(--muted); }

.inline-action { margin-top: auto; font-weight: 800; text-decoration: none; border-bottom: 1px solid currentColor; }

.journey-guide { max-width: 1436px; margin: 28px auto 0; padding: 72px 32px 0; }
.journey-guide, .discovery, .host-console, .control-room { scroll-margin-top: 80px; }
.journey-intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 40px; align-items: end; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.journey-intro h2 { max-width: 720px; margin: 0; font-size: clamp(38px, 5vw, 70px); line-height: .96; letter-spacing: -.04em; }
.journey-intro p { max-width: 62ch; margin: 0; color: var(--muted); font-size: 17px; }
.journey-paths { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--ink); }
.journey-paths article { min-width: 0; min-height: 260px; padding: 28px 28px 30px 0; display: flex; flex-direction: column; align-items: flex-start; }
.journey-paths article + article { padding-left: 28px; border-left: 1px solid var(--rule-strong); }
.journey-paths h3 { margin: 0 0 12px; font-size: 23px; letter-spacing: -.02em; }
.journey-paths p { max-width: 46ch; margin: 0 0 24px; color: var(--muted); }
.study-note { margin: 0; padding: 18px 0; color: var(--muted); }
.study-note strong { color: var(--ink); }

.host-steps { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; counter-reset: host-step; border-bottom: 1px solid var(--rule); }
.host-steps li { min-width: 0; padding: 18px; counter-increment: host-step; }
.host-steps li + li { border-left: 1px solid var(--rule); }
.host-steps strong { display: block; margin-bottom: 5px; }
.host-steps strong::before { content: counter(host-step) '. '; color: var(--blue); }
.host-steps span { display: block; color: var(--muted); font-size: 12px; }
.setup-help { margin: 0; padding: 16px 20px 0; color: var(--muted); font-size: 13px; }
.host-grid details:target { scroll-margin-top: 132px; background: var(--surface); }

.status-chip { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 9px; border: 1px solid var(--rule-strong); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 700; }
.status-chip.ready { background: #dff2e5; border-color: #8db99b; color: #0d5b2d; }
.member-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.tool-card { min-width: 0; min-height: 190px; margin: 0; padding: 18px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; border: 0; border-right: 1px solid var(--rule); background: transparent; }
.tool-card:last-child { border-right: 0; }
.tool-card > span { color: var(--quiet); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.tool-card > strong { margin: auto 0; font-size: 34px; font-variant-numeric: tabular-nums; }
.tool-card small { color: var(--quiet); overflow-wrap: anywhere; }
.tool-card input, .tool-card select { width: 100%; min-width: 0; min-height: 38px; padding: 7px 8px; border: 1px solid var(--rule-strong); border-radius: 2px; background: var(--paper); color: var(--ink); }
.compact-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.host-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.host-grid details { border-right: 1px solid var(--rule); }
.host-grid details:last-child { border-right: 0; }
.host-grid summary { padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 800; border-bottom: 1px solid var(--rule); }
.host-grid summary::-webkit-details-marker { display: none; }
.host-grid summary::after { content: '+'; float: right; color: var(--blue); }
.host-grid details[open] summary::after { content: '−'; }
.operation-form { padding: 20px; display: grid; gap: 14px; }
.operation-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.operation-form input, .operation-form select, .operation-form textarea { width: 100%; min-height: 42px; padding: 9px 10px; border: 1px solid var(--rule-strong); border-radius: 2px; background: var(--paper); color: var(--ink); }
.operation-form textarea { resize: vertical; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-result { min-height: 20px; margin: 0; font-size: 12px; color: var(--muted); }
.form-result.error { color: var(--red); }

footer { max-width: 1436px; margin: 90px auto 0; padding: 24px 32px 44px; display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--rule-strong); color: var(--muted); font-size: 12px; }
footer p { margin: 0; }
footer div { display: flex; gap: 18px; }

@media (max-width: 980px) {
    .journey-guide, .discovery, .host-console, .control-room { scroll-margin-top: 132px; }
    .site-header { grid-template-columns: 1fr auto; padding: 0 20px; backdrop-filter: none; }
    .top-nav { position: static; grid-column: 1 / -1; width: 100%; justify-content: space-around; flex-wrap:wrap; background: var(--paper); border-top: 1px solid var(--rule-strong); }
    .top-nav a[href="casino.html"] { flex-basis:100%;white-space:nowrap; }
    .top-nav a { flex: 1; text-align: center; padding: 13px 6px; font-size: 12px; }
    .account-slot { grid-column: 2; }
    .control-room { grid-template-columns: 1fr; }
    .control-rail { padding: 12px 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
    .rail-status { margin: 0 0 0 auto; }
    .event-runway { grid-template-columns: 1fr; }
    .control-room > .table-stage { grid-column: 1; }
    .runway-copy { min-height: 490px; border-right: 0; border-bottom: 1px solid var(--ink); }
    .next-event { min-height: 420px; }
    .host-grid { grid-template-columns: 1fr; }
    .journey-intro { grid-template-columns: 1fr; align-items: start; }
    .journey-paths { grid-template-columns: 1fr; }
    .journey-paths article { min-height: 0; padding: 26px 0; }
    .journey-paths article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule-strong); }
    .host-steps { grid-template-columns: 1fr 1fr; }
    .host-steps li:nth-child(3) { border-left: 0; border-top: 1px solid var(--rule); }
    .host-steps li:nth-child(4) { border-top: 1px solid var(--rule); }
    .member-tools { grid-template-columns: 1fr 1fr; }
    .tool-card:nth-child(2) { border-right: 0; }
    .tool-card:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
    .host-grid details { border-right: 0; border-bottom: 1px solid var(--rule); }
    body { padding-bottom: 0; }
}

@media (max-width: 700px) {
    .site-header { min-height: 58px; padding: 0 16px; }
    .brand img { width: 138px; }
    .account-slot .account-email { display: none; }
    .control-room { padding: 22px 16px 0; }
    .control-rail { gap: 10px; }
    .rail-kicker, .rail-status { width: 100%; }
    .rail-status { margin-left: 0; }
    .runway-copy { width: 100%; padding: 34px 22px; min-height: 440px; }
    .runway-copy h1 { max-width: 100%; font-size: clamp(42px, 13vw, 58px); }
    .lead { max-width: 100%; font-size: 17px; }
    .next-event { padding: 24px; }
    .discovery, .host-console { padding: 78px 16px 12px; }
    .journey-guide { padding: 68px 16px 0; }
    .journey-intro { gap: 20px; }
    .section-heading { align-items: stretch; flex-direction: column; }
    .search-field { width: 100%; }
    .club-row { grid-template-columns: 1fr; gap: 13px; }
    .club-actions { flex-wrap: wrap; }
    .club-price { text-align: left; }
    .member-tools { grid-template-columns: 1fr; }
    .host-steps { grid-template-columns: 1fr; }
    .host-steps li + li { border-left: 0; border-top: 1px solid var(--rule); }
    .tool-card { min-height: 0; border-right: 0; border-bottom: 1px solid var(--rule); }
    .tool-card:last-child { border-bottom: 0; }
    h1, h2, h3, p, a, span, strong { overflow-wrap: anywhere; }
    .field-pair { grid-template-columns: 1fr; }
    .poker-table { min-height: 430px; margin: 44px 10px; }
    .seat { width: 96px; font-size: 12px; }
    .seat:nth-child(2), .seat:nth-child(3) { left: -8px; }
    .seat:nth-child(5), .seat:nth-child(6) { right: -8px; }
    .action-bar { flex-wrap: wrap; justify-content: flex-start; }
    .action-bar p { width: 100%; }
    footer { margin-top: 60px; padding: 22px 16px 80px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* The clubhouse embeds the same authoritative table, with its own return control. */
body.table-embed .site-header,body.table-embed .skip-link,body.table-embed .control-rail,body.table-embed .event-runway,body.table-embed .journey-guide,body.table-embed .discovery,body.table-embed .host-grid,body.table-embed .host-steps,body.table-embed .host-console>.section-heading,body.table-embed .member-tools>#invite-form,body.table-embed .member-tools>#table-form,body.table-embed footer{display:none!important}
body.table-embed main{max-width:1000px;margin:auto;padding:12px}
body.table-embed .control-room{display:block;min-height:0}
body.table-embed .table-stage{padding:12px;min-width:0}
body.table-embed .host-console{margin:0;padding:12px;border:0}
body.table-embed .member-tools{grid-template-columns:minmax(160px,1fr) minmax(240px,2fr);margin:0}
@media(max-width:600px){body.table-embed .member-tools{grid-template-columns:1fr}body.table-embed .member-tools>article{order:2}}
