/* Layout: the page is a pool table seen from above. A fixed layer of green cloth, drawn fiber
   by fiber, sits behind everything; pool balls roll on it and answer to a cue that follows the
   cursor. The day rack, filters, list, map and bracket sit on white cards laid on the cloth.
   Single look on purpose: one table, one lamp. */
:root {
  color-scheme: light;
  --bg: #F6F9F7; --bg-2: #EAF1EE;
  --panel: rgba(255,255,255,.76); --surface: #FFFFFF; --sunk: #EEF3F0; --line: rgba(16,42,32,.11); --line-2: rgba(16,42,32,.2);
  --ink: #0F211A; --ink-2: #47594F; --ink-3: #6A7A72;
  --lamp: #0B7350;          /* table-cloth green, the one accent */
  --lamp-soft: rgba(11,115,80,.09);
  --neon: #C2392B; --neon-glow: rgba(194,57,43,.25); --neon-text: #0F211A;
  --felt: #17694A; --felt-hi: #1E8A60;
  --wood: #FFFFFF; --wood-2: #F1F5F3;
  --solid: #0F211A; --on-solid: #FFFFFF;
  --good: #1F7A45; --good-soft: rgba(31,122,69,.12);
  --c-apa: #2E8A55; --c-bca: #2F6FB8; --c-tap: #B8661A; --c-up: #7E4FB0; --c-money: #C2392B;
  --map-land: #1B7350; --map-water: #135A3E; --map-ink: rgba(255,255,255,.6);
  --shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 18px 40px -26px rgba(15,33,26,.28);
  --shadow-lg: 0 30px 70px -20px rgba(15,33,26,.35);
  --scrim: rgba(15,33,26,.32);
  --chalk: #2E6FB7;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --script: var(--display);
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --cond: var(--sans);
  --serif: var(--display);
}
body { margin: 0; }
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15.5px; line-height: 1.45; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 2px; border-radius: 8px; }
.num { font-variant-numeric: tabular-nums; }
.serif { font-family: var(--display); }
.ico { width: 20px; height: 20px; flex: none; display: block; }


.shell { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 14px 56px; }

/* Header: neon sign */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 6px 26px; }
.brand { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.brand b { font-family: var(--script); font-weight: 400; font-size: clamp(36px, 8vw, 50px); line-height: .95; color: var(--neon-text); white-space: nowrap; letter-spacing: .5px;
  text-shadow: 0 0 4px var(--neon-glow), 0 0 14px var(--neon), 0 0 34px var(--neon-glow); animation: flicker 3.2s linear 1; }
:root[data-theme="light"] .brand b { text-shadow: none; }
.brand b i { font-style: normal; }
.brand span { font-family: var(--cond); font-size: 13px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; color: var(--lamp); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 6px; padding-left: 4px; }
@keyframes flicker { 0%, 8%, 10%, 30%, 32%, 100% { opacity: 1; } 9%, 31% { opacity: .35; } }
.top-actions { display: flex; gap: 8px; flex: none; }
.ibtn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); border: 1px solid var(--line-2); background: var(--panel); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ibtn:hover { color: var(--ink); border-color: var(--lamp); }
.ibtn.solid { background: var(--solid); color: var(--on-solid); border-color: var(--solid); }

/* Hero */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 18px; }
.hero > div:first-child { min-width: 0; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(46px, 11vw, 76px); line-height: .9; letter-spacing: .5px; text-transform: uppercase; text-wrap: balance; color: var(--ink); text-shadow: 0 2px 24px rgba(0,0,0,.5); }
:root[data-theme="light"] .hero h1 { text-shadow: none; }
.hero p { margin: 8px 0 0; color: var(--ink-2); font-size: 15.5px; }
.hero p b { color: var(--lamp); font-weight: 700; }

/* Day strip: a rack of balls */
.days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 8px; margin: 0 -2px 14px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; scroll-snap-align: start; width: 64px; padding: 9px 0 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink-2); transition: border-color .15s, transform .15s; }
.day:hover { border-color: var(--line-2); transform: translateY(-1px); }
.day .dl { font-family: var(--cond); font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.day .dn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--cond); font-size: 17px; font-weight: 700; color: var(--ink); background: var(--sunk); line-height: 1; }
.day .dc { display: flex; gap: 3px; height: 5px; }
.day .dc i { width: 5px; height: 5px; border-radius: 50%; background: var(--lamp); opacity: .5; }
.day.is-today .dl { color: var(--neon); }
.day[aria-pressed="true"] { border-color: var(--lamp); box-shadow: 0 0 0 1px var(--lamp), 0 8px 22px rgba(234,174,82,.18); }
.day[aria-pressed="true"] .dl { color: var(--lamp); }
.day[aria-pressed="true"] .dn { background: radial-gradient(circle at 35% 30%, #fffdf7 0 20%, #efe6d2 60%, #cbbd9f 100%); color: #1A120A; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.day[aria-pressed="true"] .dc i { opacity: 1; }

/* Controls */
.controls { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 1px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-family: var(--cond); font-size: 15px; font-weight: 600; letter-spacing: .3px; color: var(--ink-2); white-space: nowrap; }
.chip:hover { border-color: var(--lamp); color: var(--ink); }
.chip .n { font-size: 13px; color: var(--ink-3); }
.chip .sw { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.chip[aria-pressed="true"] { background: var(--solid); border-color: var(--solid); color: var(--on-solid); }
.chip[aria-pressed="true"] .n { color: var(--on-solid); opacity: .7; }
.chip[aria-pressed="true"] .sw { box-shadow: 0 0 0 2px var(--on-solid); }
.sep { flex: none; width: 1px; height: 20px; background: var(--line-2); margin: 7px 4px; }
.seg { flex: none; display: inline-flex; padding: 3px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.seg button { height: 32px; padding: 0 14px; border-radius: 999px; font-family: var(--cond); font-size: 15px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.seg button[aria-pressed="true"] { background: var(--solid); color: var(--on-solid); }
.view-seg { display: none; }

/* Main layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 24px; align-items: start; }
.map-col { position: sticky; top: calc(16px + env(safe-area-inset-top, 0px)); }
@media (max-width: 959px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .map-col { position: static; }
  .view-seg { display: inline-flex; }
  .layout[data-view="list"] .map-col { display: none; }
  .layout[data-view="map"] .list-col { display: none; }
}

/* List: lacquered panel, rows under the lamp */
.list-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.group-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.group-h h2 { margin: 0; font-family: var(--cond); font-size: 14px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--lamp); }
.group-h a, .group-h button { font-family: var(--cond); font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.group-h a:hover, .group-h button:hover { color: var(--lamp); }
.events { background: var(--panel); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.ev { display: grid; grid-template-columns: 74px minmax(0,1fr) auto; gap: 14px; align-items: start; width: 100%; text-align: left; padding: 16px 16px 16px 14px; border-top: 1px solid var(--line); position: relative; }
.ev:first-child { border-top: 0; }
.ev:hover, .ev.hl { background: linear-gradient(90deg, var(--lamp-soft), transparent 80%); }
.ev .when { display: flex; flex-direction: column; gap: 3px; padding-top: 1px; }
.ev .when b { font-family: var(--cond); font-size: 19px; font-weight: 700; white-space: nowrap; letter-spacing: .2px; }
.ev .when small { font-family: var(--cond); font-size: 13px; font-weight: 600; color: var(--ink-3); }
.ev .when small.next { color: var(--neon); }
.ev .when small.live { color: var(--good); }
.ev .body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ev .tag { display: flex; align-items: center; gap: 8px; font-family: var(--cond); font-size: 13.5px; font-weight: 600; letter-spacing: .3px; color: var(--ink-2); flex-wrap: wrap; }
.ev .tag .sw { width: 8px; height: 8px; border-radius: 50%; }
.ev .tag .free { color: var(--good); }
.ev .tag .pal { color: var(--neon); }
.ev .t { font-size: 17px; font-weight: 700; line-height: 1.28; }
.ev .v { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev .side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ev .pot { font-size: 13px; font-weight: 600; white-space: nowrap; }
.ev.past { opacity: .5; }
@media (max-width: 480px) { .ev { grid-template-columns: 62px minmax(0,1fr) auto; gap: 12px; padding: 14px 14px 14px 12px; } .ev .t { font-size: 16px; } }

/* Billiard-ball number badges (list and map share the numbering) */
.ball { --bc: #E8B923; width: 28px; height: 28px; border-radius: 50%; position: relative; display: grid; place-items: center; flex: none;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.55) 0 8%, transparent 26%), var(--bc); box-shadow: inset -3px -4px 6px rgba(0,0,0,.35), 0 2px 5px rgba(0,0,0,.35); }
.ball.stripe { background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.55) 0 8%, transparent 26%), linear-gradient(180deg, #F4EEDF 0 24%, var(--bc) 24% 76%, #F4EEDF 76%); }
.ball span { width: 15px; height: 15px; border-radius: 50%; background: #FBF7EE; color: #111; font-family: var(--cond); font-size: 11px; font-weight: 700; line-height: 15px; text-align: center; }

.fp { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-top: 1px solid var(--line); }
.fp:first-child { border-top: 0; }
.fp .ring { width: 11px; height: 11px; border-radius: 50%; border: 2.5px solid var(--good); margin-top: 6px; flex: none; }
.fp .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fp .t { font-weight: 700; }
.fp .v { font-size: 14px; color: var(--ink-2); }
.fp .links { display: flex; gap: 14px; margin-top: 4px; font-family: var(--cond); font-size: 15px; font-weight: 600; }
.fp .links a, .fp .links button { color: var(--lamp); text-decoration: none; }
.fp .links a:hover, .fp .links button:hover { text-decoration: underline; }

.empty { padding: 34px 20px; text-align: center; color: var(--ink-2); }
.empty .serif { font-size: 30px; font-weight: 800; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.empty .acts { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; font-family: var(--cond); font-weight: 700; font-size: 16px; letter-spacing: .4px; text-decoration: none; white-space: nowrap; background: var(--solid); color: var(--on-solid); border: 1px solid var(--solid); }
.btn:hover { filter: brightness(1.08); }
.btn.line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.line:hover { background: var(--lamp-soft); filter: none; }
.btn.sm { height: 36px; padding: 0 14px; font-size: 15px; }
.btn.full { width: 100%; }
.btn.danger { color: var(--c-money); }

/* Map: a felt table with wood rails and diamond sights */
.mapcard { position: relative; border-radius: 20px; padding: 14px; box-shadow: var(--shadow);
  background:
    radial-gradient(circle, #E9DCC0 0 2px, transparent 2.6px) 0 3px / 25% 10px repeat-x,
    radial-gradient(circle, #E9DCC0 0 2px, transparent 2.6px) 0 calc(100% - 4px) / 25% 10px repeat-x,
    linear-gradient(135deg, var(--wood) 0%, var(--wood-2) 45%, var(--wood) 100%); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-family: var(--cond); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 50%; }
.legend i.ringi { border: 2.5px solid var(--good); width: 11px; height: 11px; }

.foot-note { margin-top: 30px; font-size: 13px; color: var(--ink-3); text-align: center; text-wrap: balance; }

/* Sheets */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 40; animation: fade .18s ease; }
.sheet { position: fixed; z-index: 50; background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); display: flex; flex-direction: column; overflow: hidden;
  left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100% - 32px)); max-height: min(86vh, 860px); border-radius: 20px; animation: pop .2s ease; }
@media (max-width: 640px) {
  .sheet { left: 0; right: 0; top: auto; bottom: 0; transform: none; width: 100%; max-height: 92%; border-radius: 20px 20px 0 0; border-bottom: 0; animation: rise .22s ease;
    padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -48%); } }
@keyframes rise { from { transform: translateY(24px); opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .scrim, .sheet, .brand b, .haze { animation: none; } .day { transition: none; } }
.sheet-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 14px 6px 22px; }
.sheet-h span { font-family: var(--cond); font-size: 14px; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; color: var(--lamp); }
.sheet-b { overflow-y: auto; padding: 4px 22px 24px; display: flex; flex-direction: column; gap: 18px; }
.d-title { font-family: var(--display); font-weight: 800; font-size: 36px; line-height: 1; letter-spacing: .3px; text-transform: uppercase; margin: 0; text-wrap: balance; }
.d-sub { color: var(--ink-2); margin-top: 8px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.fact { background: var(--sunk); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; min-width: 0; }
.fact span { display: block; font-family: var(--cond); font-size: 12.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-3); }
.fact b { display: block; font-size: 16px; font-weight: 700; margin-top: 2px; overflow-wrap: anywhere; }
.venue { background: var(--sunk); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.venue b { font-size: 16.5px; }
.venue .addr { color: var(--ink-2); font-size: 14.5px; }
.venue .dist { color: var(--ink-3); font-size: 13.5px; }
.venue .vlink { margin-top: 6px; align-self: flex-start; font-family: var(--cond); font-size: 15px; font-weight: 700; color: var(--lamp); }
.venue .vlink:hover { text-decoration: underline; }
.pal-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--neon-glow); background: rgba(255,90,70,.08); font-size: 14.5px; }
.pal-note b { color: var(--neon); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.kv:first-child { border-top: 0; }
.kv .k { color: var(--ink-2); }
.kv .vv { font-weight: 600; text-align: right; }
.copy { user-select: all; font-variant-numeric: tabular-nums; }
.note { color: var(--ink-2); font-size: 14.5px; }
.lbl { font-family: var(--cond); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.card { background: var(--sunk); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px; }
.wk { padding: 10px 0; border-top: 1px solid var(--line); }
.wk:first-child { border-top: 0; }
.wk h3 { margin: 0 0 4px; font-family: var(--cond); font-size: 14px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--lamp); }
.wk .li { padding: 8px 0; border-top: 0; }

/* You sheet */
.me { display: flex; align-items: center; gap: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.5) 0 8%, transparent 26%), #151515; display: grid; place-items: center; flex: none; box-shadow: inset -4px -5px 8px rgba(0,0,0,.5); }
.avatar span { width: 30px; height: 30px; border-radius: 50%; background: #FBF7EE; color: #111; display: grid; place-items: center; font-family: var(--cond); font-size: 14px; font-weight: 700; }
.me b { font-family: var(--display); font-size: 28px; font-weight: 800; text-transform: uppercase; display: block; line-height: 1; }
.me span.s { color: var(--ink-2); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.stat { background: var(--sunk); border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1.1; }
.stat span { font-family: var(--cond); font-size: 12px; font-weight: 700; letter-spacing: 1.2px; color: var(--ink-3); text-transform: uppercase; }
.bar { height: 6px; background: var(--sunk); border-radius: 4px; overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; background: var(--lamp); border-radius: 4px; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); width: 100%; text-align: left; }
.li:first-child { border-top: 0; }
.li .m { flex: 1; min-width: 0; }
.li .m b { display: block; font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .m span { display: block; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .r { font-family: var(--cond); font-size: 14px; font-weight: 600; color: var(--ink-2); flex: none; }
button.li:hover .m b { color: var(--lamp); }
.muted { color: var(--ink-3); font-size: 13.5px; padding: 12px 0; }
.switch { width: 46px; height: 28px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FBF7EE; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .18s; }
.switch[aria-checked="true"] { background: var(--felt-hi); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }

/* Forms */
form.f { display: flex; flex-direction: column; gap: 14px; }
.f label { display: flex; flex-direction: column; gap: 6px; font-family: var(--cond); font-size: 14.5px; font-weight: 600; letter-spacing: .3px; color: var(--ink-2); min-width: 0; }
.f input, .f select, .f textarea { width: 100%; min-width: 0; border: 1px solid var(--line-2); background: var(--sunk); border-radius: 10px; padding: 11px 13px; font-family: var(--sans); font-size: 16px; font-weight: 400; color: var(--ink); }
.f textarea { min-height: 80px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--lamp); }
.f .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.f .err { background: rgba(255,90,70,.12); color: var(--neon); border-radius: 10px; padding: 10px 13px; font-family: var(--sans); font-size: 13.5px; font-weight: 600; }
.f .hint { font-family: var(--sans); font-size: 12.5px; color: var(--ink-3); font-weight: 400; letter-spacing: 0; }
select.inl { border: 1px solid var(--line-2); border-radius: 10px; padding: 7px 10px; background: var(--sunk); color: var(--ink); font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 70; background: var(--solid); color: var(--on-solid); padding: 11px 18px; border-radius: 999px; font-family: var(--cond); font-size: 16px; font-weight: 700; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); text-align: center; }

/* ===== White look: overrides on top of the component styles above ===== */
body { background: radial-gradient(120% 80% at 70% 0%, #FFFFFF 0%, var(--bg) 55%, var(--bg-2) 100%) fixed, var(--bg); overflow-x: hidden; }
#table { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
.shell { position: relative; z-index: 1; }
.top { padding-block: 10px 8px; }
.brand b { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 5vw, 26px); line-height: 1.1; letter-spacing: -.01em; color: var(--ink); text-shadow: none; animation: none; }
.brand b i { font-style: italic; font-weight: 300; color: var(--lamp); padding: 0 .06em; }
.brand span { font-size: 12px; letter-spacing: .1em; color: var(--ink-3); padding-left: 0; margin-top: 3px; }
.ibtn { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

.intro { display: flex; flex-direction: column; gap: 16px; max-width: 640px; padding-block: clamp(20px, 5vh, 52px) clamp(28px, 6vh, 60px); }
.intro .eyebrow { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--lamp); font-weight: 600; }
.intro .headline { font-family: var(--display); font-weight: 300; font-size: clamp(40px, 7vw, 82px); line-height: 1.02; letter-spacing: -.025em; margin: 0; text-wrap: balance; color: var(--ink); }
.intro .headline em { font-style: italic; color: var(--ink-2); }
.intro .lede { font-size: 17.5px; color: var(--ink-2); max-width: 46ch; margin: 0; }
.intro .cuehint { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font-size: 14px; color: var(--ink-2); padding: 8px 14px 8px 11px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.intro .cuehint i { width: 10px; height: 10px; border-radius: 50%; background: var(--chalk); box-shadow: 0 0 0 4px rgba(46,111,183,.15); flex: none; }

.hero h1 { font-weight: 300; font-size: clamp(34px, 6vw, 52px); line-height: 1; letter-spacing: -.02em; text-transform: none; text-shadow: none; }
.day { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.day .dl { font-size: 11px; letter-spacing: .08em; }
.day .dn { font-size: 15.5px; font-weight: 600; }
.day[aria-pressed="true"] { box-shadow: 0 0 0 1px var(--lamp), 0 10px 24px -12px rgba(11,115,80,.4); }
.day[aria-pressed="true"] .dn { background: radial-gradient(circle at 35% 30%, #FFFFFF 0 25%, #EEF3F0 70%, #D3DED8 100%); color: var(--ink); box-shadow: 0 2px 6px rgba(15,33,26,.22); }
.chip, .seg button { font-size: 14px; letter-spacing: 0; }
.group-h h2, .sheet-h span, .wk h3 { font-size: 12.5px; letter-spacing: .12em; }
.group-h a, .group-h button, .fp .links, .venue .vlink { font-size: 14px; }
.events { border-radius: 20px; backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); }
.ev { grid-template-columns: 92px minmax(0,1fr) auto; }
@media (max-width: 480px) { .ev { grid-template-columns: 80px minmax(0,1fr) auto; } }
.ev .when b { font-size: 15px; letter-spacing: 0; font-variant-numeric: tabular-nums; color: var(--lamp); }
.ev .when small, .ev .tag { font-size: 12.5px; letter-spacing: 0; }
.ev .t { font-size: 16.5px; font-weight: 600; }
.btn { font-size: 15px; letter-spacing: 0; font-weight: 600; }
.btn.sm { font-size: 14px; }
.mapcard { background: var(--surface); border: 1px solid var(--line); padding: 10px; border-radius: 22px; }
.legend { font-size: 13px; }
.d-title { font-weight: 400; font-size: 32px; line-height: 1.06; letter-spacing: -.015em; text-transform: none; }
.empty .serif { font-weight: 400; text-transform: none; font-size: 28px; }
.me b { font-weight: 400; text-transform: none; font-size: 26px; }
.stat b { font-weight: 400; }
.fact span, .stat span, .lbl { letter-spacing: .08em; font-size: 11.5px; }
.li .r, .f label { font-size: 13.5px; }
.switch::after { background: #FFFFFF; }
.toast { font-size: 15px; font-weight: 600; }
/* ===== Tabs and the bracket builder ===== */
.top { flex-wrap: wrap; }
.tabs { margin-left: auto; }
.tabs button { height: 36px; padding: 0 16px; font-size: 14px; }
@media (max-width: 560px) { .tabs { order: 3; flex-basis: 100%; margin-left: 0; display: flex; } .tabs button { flex: 1; justify-content: center; } }
.bk { display: flex; flex-direction: column; gap: 22px; padding-block: clamp(18px, 4vh, 40px) 0; }
.bk-head { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.bk-head .eyebrow { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--lamp); font-weight: 600; }
.bk-head h1 { font-family: var(--display); font-weight: 300; font-size: clamp(36px, 6vw, 60px); line-height: 1.03; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
.bk-head h1 em { font-style: italic; color: var(--ink-2); }
.bk-head p { margin: 0; color: var(--ink-2); font-size: 16.5px; max-width: 50ch; }
.bk-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .bk-grid { grid-template-columns: minmax(0, 1fr); } }
.bk-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1); min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.bk-card h2 { margin: 0; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--lamp); font-weight: 700; }
.bk-two { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 10px; }
.bk-add { display: flex; gap: 8px; }
.bk-add input { flex: 1; min-width: 0; }
.bk-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.bk-count { font-size: 13px; color: var(--ink-3); }
.bk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bk-list li { display: grid; grid-template-columns: 30px 26px minmax(0, 1fr) 34px; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 5px 6px 5px 4px; }
.bk-list li.drag { border-color: var(--lamp); box-shadow: 0 10px 24px -12px rgba(11,115,80,.5); position: relative; z-index: 2; }
.bk-grip { width: 30px; height: 34px; display: grid; place-items: center; color: var(--ink-3); cursor: grab; touch-action: none; border-radius: 8px; }
.bk-grip:active { cursor: grabbing; }
.bk-seed { font-size: 12.5px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; text-align: center; }
.bk-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-x { width: 34px; height: 34px; display: grid; place-items: center; color: var(--ink-3); border-radius: 50%; }
.bk-x:hover { color: var(--neon); background: var(--sunk); }
.bk-empty { color: var(--ink-2); font-size: 14.5px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.bk-pay { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; }
.bk-scroll, .bk-card > * { max-width: 100%; min-width: 0; }
.bk-pay .fact b { font-variant-numeric: tabular-nums; }
.bk-board-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.bk-board-h b { font-family: var(--display); font-weight: 400; font-size: 24px; letter-spacing: -.01em; }
.bk-board-h span { font-size: 14px; color: var(--ink-2); }
.bk-scroll { overflow-x: auto; padding-bottom: 6px; }
.bk-rounds { display: flex; gap: 18px; min-width: min-content; align-items: stretch; }
.bk-round { display: flex; flex-direction: column; gap: 10px; min-width: 176px; flex: 1; }
.bk-round h3 { margin: 0; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.bk-col { display: flex; flex-direction: column; justify-content: space-around; gap: 10px; flex: 1; }
.bk-match { background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.bk-p { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 9px 10px; min-height: 40px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.bk-p + .bk-p { border-top: 1px solid var(--line); }
.bk-p small { font-size: 11.5px; font-weight: 700; color: var(--ink-3); width: 18px; text-align: center; flex: none; font-variant-numeric: tabular-nums; }
.bk-p span { min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-p:not(:disabled):hover { background: var(--lamp-soft); }
.bk-p:disabled { cursor: default; color: var(--ink-3); font-weight: 500; }
.bk-p.win { background: var(--lamp); color: #FFFFFF; }
.bk-p.win small { color: rgba(255,255,255,.75); }
.bk-p.win:hover { background: var(--felt-hi); }
.bk-p.lose { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.bk-champ { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--solid); color: var(--on-solid); }
.bk-champ .ball { width: 40px; height: 40px; }
.bk-champ .ball span { width: 21px; height: 21px; line-height: 21px; font-size: 13px; }
.bk-champ small { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; font-weight: 700; }
.bk-champ b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.1; }
.bk-note { font-size: 13px; color: var(--ink-3); margin: 0; }

/* ===== Felt look: light type on the cloth, white cards on top ===== */
:root { --felt-base: #146343; --on-felt: #F5FAF7; --on-felt-2: rgba(245,250,247,.88); --on-felt-3: rgba(245,250,247,.78); --brass: #F3CC7E; --panel: rgba(255,255,255,.94); }
body { background: var(--felt-base); }
#felt { position: fixed; inset: 0; z-index: 0; pointer-events: none; background-color: var(--felt-base); background-repeat: repeat; }
#felt::after { content: ""; position: absolute; inset: 0; background: radial-gradient(115% 85% at 50% 30%, rgba(255,250,225,.09) 0%, rgba(255,250,225,0) 46%, rgba(0,12,6,.44) 100%); }
:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 2px; box-shadow: 0 0 0 2px var(--ink); }
.brand b, .intro .headline, .hero h1, .bk-head h1 { color: var(--on-felt); text-shadow: 0 1px 2px rgba(0,20,10,.35); }
.brand b i, .intro .eyebrow, .bk-head .eyebrow, .group-h h2, .hero p b { color: var(--brass); }
.intro .headline em, .bk-head h1 em { color: var(--on-felt-2); }
.intro .lede, .hero p, .bk-head p, .group-h a, .group-h button { color: var(--on-felt-2); }
.group-h a:hover, .group-h button:hover { color: var(--brass); }
.brand span, .foot-note, .hero p .of { color: var(--on-felt-3); }
.day[aria-pressed="true"] { border-color: var(--brass); box-shadow: 0 0 0 2px var(--brass), 0 10px 24px -12px rgba(0,0,0,.5); }
.events, .bk-card, .mapcard { box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 24px 46px -22px rgba(0,18,10,.62); }
.day, .chip, .seg, .ibtn, .intro .cuehint { box-shadow: 0 10px 22px -16px rgba(0,18,10,.7); }

/* ===== Google map card ===== */
.mapcard { background: var(--surface); border: 1px solid var(--line); padding: 10px; border-radius: 22px; display: flex; flex-direction: column; gap: 10px; }
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 2px 0 6px; min-width: 0; }
.map-head .mh { min-width: 0; display: flex; flex-direction: column; }
.map-head b { font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-head small { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-head .acts { display: flex; gap: 6px; flex: none; }
@media (max-width: 480px) { .map-head { flex-wrap: wrap; } .map-head .mh { flex-basis: 100%; } }
.gmap { border-radius: 14px; overflow: hidden; background: var(--sunk); border: 1px solid var(--line); }
.gmap iframe { display: block; width: 100%; height: min(54vh, 440px); min-height: 300px; border: 0; }
.stops { display: flex; flex-wrap: wrap; gap: 6px; }
.stop { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 4px 13px 4px 5px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--ink-2); max-width: 100%; min-width: 0; }
.stop .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stop .ball { width: 26px; height: 26px; }
.stop .ringi { width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid var(--good); margin: 0 5px 0 7px; flex: none; }
.stop.all { padding: 4px 14px; }
.stop:hover, .stop.hl { border-color: var(--lamp); color: var(--ink); }
.stop[aria-pressed="true"] { background: var(--solid); border-color: var(--solid); color: var(--on-solid); }
.map-note { margin: 0; padding: 0 6px 2px; font-size: 12.5px; color: var(--ink-3); }

/* ===== Double elimination ===== */
.bk-sec { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bk-sec + .bk-sec { border-top: 1px solid var(--line); padding-top: 14px; }
.bk-sec-h { display: flex; align-items: baseline; gap: 10px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--lamp); font-weight: 700; }
.bk-sec-h small { font-size: 12.5px; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--ink-3); }
.bk-final .bk-round { flex: 0 1 250px; }

/* ===== Smoked glass: cards are dark tinted glass so the cloth shows through ===== */
:root {
  color-scheme: dark;
  --panel: rgba(4,26,16,.2); --surface: #103626; --sunk: rgba(255,255,255,.07);
  --line: rgba(255,255,255,.13); --line-2: rgba(255,255,255,.24);
  --ink: #F5FAF7; --ink-2: rgba(245,250,247,.82); --ink-3: rgba(245,250,247,.66);
  --lamp: #F3CC7E; --lamp-soft: rgba(243,204,126,.13); --felt-hi: #F8DDA6;
  --solid: #F5FAF7; --on-solid: #0F211A;
  --good: #7BE0A6; --good-soft: rgba(123,224,166,.14);
  --neon: #FF9384; --neon-glow: rgba(255,147,132,.3);
  --c-apa: #5FCF93; --c-bca: #74AEF0; --c-tap: #EFA356; --c-up: #BC96E8; --c-money: #F47C6C;
  --scrim: rgba(0,10,5,.6); --shadow-lg: 0 30px 70px -20px rgba(0,0,0,.7);
}
:focus-visible { box-shadow: 0 0 0 2px rgba(0,0,0,.6); }
.events, .bk-card, .mapcard { background: var(--panel); border-color: var(--line); -webkit-backdrop-filter: blur(16px) saturate(1.15); backdrop-filter: blur(16px) saturate(1.15);
  box-shadow: 0 1px 0 rgba(255,255,255,.1) inset, 0 24px 46px -22px rgba(0,10,5,.75); }
.day, .chip, .seg, .ibtn { -webkit-backdrop-filter: blur(12px) saturate(1.15); backdrop-filter: blur(12px) saturate(1.15); }
.day[aria-pressed="true"] .dn { color: #0F211A; }
.sheet { background: var(--surface); }
.bk-list li, .bk-match, .stop { background: rgba(255,255,255,.06); }
.stop[aria-pressed="true"] { background: var(--solid); }
.bk-p.win { color: #0F211A; }
.bk-p.win small { color: rgba(15,33,26,.7); }
.bk-champ { background: var(--brass); color: #0F211A; }
.gmap { border-color: var(--line-2); }
.f select option { background: #103626; color: #F5FAF7; }

/* ===== Table frame: wood rails and cushions are painted on #rails; the page keeps clear of them ===== */
#rails { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
.shell { padding-left: max(16px, calc(var(--rail, 0px) + 12px), env(safe-area-inset-left, 0px)); padding-right: max(16px, calc(var(--rail, 0px) + 12px), env(safe-area-inset-right, 0px)); padding-top: calc(14px + var(--rail, 0px)); }

/* ===== Polish on top of the smoked-glass cards (the cards stay see-through) ===== */
.events, .bk-card, .mapcard { -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1); }
:root { --ease: cubic-bezier(.2,.7,.2,1); }
.day, .chip, .seg button, .btn, .ibtn, .stop, .bk-p, .ev { transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease); }
.btn:active, .chip:active, .ibtn:active, .seg button:active { transform: scale(.97); }
.events, .bk-card, .mapcard { border-radius: 22px; }
.ev:hover, .ev.hl { background: rgba(243,204,126,.08); }
.intro .headline { letter-spacing: -.03em; }
.hero h1 { letter-spacing: -.025em; }
@media (prefers-reduced-motion: reduce) { .day, .chip, .seg button, .btn, .ibtn, .stop, .bk-p, .ev { transition: none; } }

/* ===== Map: a dark street map tinted to the cloth, with the numbered balls as markers ===== */
.map-col .group-h a { white-space: nowrap; }
.layout .group-h { min-height: 24px; align-items: center; }
.lmap { position: relative; z-index: 0; height: min(56vh, 470px); min-height: 320px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #0B2A1D; }
.lmap .leaflet-container, .lmap.leaflet-container { background: #0B2A1D; font-family: var(--sans); }
/* the standard street tiles, turned into a night map and tinted toward the cloth */
.lmap .leaflet-tile { filter: invert(1) grayscale(.85) sepia(.5) hue-rotate(92deg) saturate(1.5) brightness(.95) contrast(.92); }
.lmap::after { content: ""; position: absolute; inset: 0; z-index: 450; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05), inset 0 0 60px rgba(0,10,5,.55); }
.lmap .leaflet-control-zoom { border: 0; box-shadow: 0 10px 22px -12px rgba(0,8,4,.9); border-radius: 12px; overflow: hidden; margin: 12px; }
.lmap .leaflet-control-zoom a { width: 36px; height: 36px; line-height: 34px; background: rgba(9,34,24,.92); color: var(--ink); border: 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.lmap .leaflet-control-zoom a:last-child { border-bottom: 0; }
.lmap .leaflet-control-zoom a:hover { background: #14402D; color: var(--brass); }
.lmap .leaflet-control-zoom a.leaflet-disabled { background: rgba(9,34,24,.92); color: var(--ink-3); opacity: .6; }
.lmap .leaflet-control-attribution { background: rgba(6,24,16,.72); color: rgba(245,250,247,.62); font-size: 10px; padding: 1px 7px; border-radius: 8px 0 0 0; }
.lmap .leaflet-control-attribution a { color: rgba(245,250,247,.8); text-decoration: none; }
.mk { background: none; border: 0; }
.mk .mkb { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; transition: transform .2s var(--ease); }
.mk .mkb::before { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 9px; margin: 12px 0 0 -11px; border-radius: 50%; background: rgba(0,6,3,.55); filter: blur(3px); }
.mk .ball { width: 32px; height: 32px; box-shadow: inset -3px -4px 7px rgba(0,0,0,.4), 0 0 0 1.5px rgba(0,10,5,.55); }
.mk .ball span { width: 17px; height: 17px; line-height: 17px; font-size: 11.5px; }
.mk .mkf { position: relative; width: 20px; height: 20px; border-radius: 50%; border: 4px solid var(--good); background: rgba(6,24,16,.8); box-shadow: 0 0 0 1.5px rgba(0,10,5,.55); }
.mk .mkn { position: absolute; right: -2px; top: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--solid); color: var(--on-solid); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 2px 5px rgba(0,0,0,.45); }
.mk .mkb:hover, .mk .mkb.hl { transform: scale(1.14); }
.mk.on .mkb { transform: scale(1.22); }
.mk.on .mkb::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid var(--brass); box-shadow: 0 0 0 5px rgba(243,204,126,.22), 0 0 18px rgba(243,204,126,.45); }
.lmap .leaflet-tooltip.mktip { background: rgba(6,24,16,.94); color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 10px; font-size: 13px; font-weight: 600; box-shadow: 0 12px 24px -12px rgba(0,0,0,.8); }
.lmap .leaflet-tooltip.mktip::before { border-top-color: rgba(6,24,16,.94); }
.lmap .nomap { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 959px) { .lmap { height: min(58vh, 520px); } }

/* ===== Brand: a touch bigger, and the whole thing is a refresh button ===== */
button.brand { align-items: flex-start; text-align: left; padding: 6px 10px 6px 0; margin: -6px 0; border-radius: 12px; cursor: pointer; }
.brand b { font-size: clamp(27px, 6.2vw, 33px); transition: opacity .18s var(--ease); }
.brand span { font-size: 12.5px; }
button.brand:hover b { opacity: .86; }
button.brand:active b { opacity: .7; }
button.brand.going { opacity: .55; }

/* ===== Bracket: wider page, and a full-screen board you can pan and pinch ===== */
.shell.wide { max-width: 1640px; }
.bk-grid { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
@media (max-width: 1040px) { .bk-grid { grid-template-columns: minmax(0, 1fr); } }
.bk-board-h { align-items: center; }
.bk-ttl { display: flex; align-items: baseline; gap: 4px 14px; flex-wrap: wrap; min-width: 0; }
.bk-bar { display: flex; align-items: center; gap: 6px; flex: none; margin-left: auto; }
.bk-bar .btn.sm { height: 36px; }
.bk-bar .zb { width: 36px; padding: 0; font-size: 19px; line-height: 1; }
.bk-bar .zv { min-width: 46px; text-align: center; font-size: 13px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.bk-round { min-width: 164px; }
.bk-card.full { position: fixed; inset: 0; z-index: 60; border-radius: 0; border: 0; gap: 10px; background: #0A2018; box-shadow: none; max-width: none;
  padding: calc(10px + env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); }
.bk-card.full .bk-board-h { flex-wrap: nowrap; }
.bk-card.full .bk-ttl { flex-wrap: nowrap; overflow: hidden; }
.bk-card.full .bk-ttl b { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-card.full .bk-ttl span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-card.full .bk-view { flex: 1 1 auto; min-height: 0; overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-x pan-y;
  border-radius: 16px; border: 1px solid var(--line); background: #0D2A1E; }
.bk-card.full .bk-sizer { position: relative; margin: 0 auto; overflow: hidden; }
.bk-card.full .bk-zoom { position: absolute; left: 0; top: 0; width: max-content; max-width: none; transform-origin: 0 0; padding: 18px; display: flex; flex-direction: column; gap: 16px; will-change: transform; }
.bk-zoom { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bk-card.full .bk-scroll { overflow: visible; padding-bottom: 0; max-width: none; }
.bk-card.full .bk-sec, .bk-card.full .bk-rounds { max-width: none; }
.bk-card.full .bk-round { flex: 0 0 190px; min-width: 190px; }
.bk-card.full .bk-champ { align-self: flex-start; min-width: 300px; }
.bk-card.full .bk-pay, .bk-card.full > .bk-note { display: none; }
.bk-card.full .bk-zoom { display: grid; grid-template-columns: auto auto; grid-template-areas: "c c" "w f" "l l"; justify-content: start; gap: 18px 28px; }
.bk-card.full .bk-zoom > * { grid-column: 1 / -1; }
.bk-card.full .bk-champ { grid-area: c; justify-self: start; }
.bk-card.full .bk-w { grid-area: w; }
.bk-card.full .bk-l { grid-area: l; }
.bk-card.full .bk-final { grid-area: f; border-top: 0; padding-top: 0; border-left: 1px solid var(--line); padding-left: 28px; justify-content: center; }
.bk-card.full .bk-final .bk-round { flex: 0 0 210px; min-width: 210px; }
@media (max-width: 1040px) { .bk-list { max-height: 286px; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; } }
html.bk-lock, html.bk-lock body { overflow: hidden; }
@media (max-width: 560px) { .bk-card.full .bk-ttl span { display: none; } }

/* ===== Accounts, My pool, connections, Pro and donations (account.js) ===== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.btn:disabled, .btn[disabled] { opacity: .55; cursor: default; filter: none; }
.btn.danger-solid { background: var(--c-money); border-color: var(--c-money); color: #1A0805; }
.ibtn.sm { width: 36px; height: 36px; margin-left: -8px; flex: none; box-shadow: none; }
.sheet-h span { flex: 1; min-width: 0; }
.sheet-h:has([data-back]) { padding-left: 20px; }
.fine { font-size: 12.5px; line-height: 1.5; color: var(--ink-3); margin: 10px 2px 0; text-wrap: pretty; }
.fine a, .foot-fine a, .check a { color: var(--ink-2); text-underline-offset: 2px; }
.fine a:hover, .check a:hover { color: var(--lamp); }
.note.pad { padding: 12px 0; }
.d-sub.tight { margin-top: 0; font-size: 14.5px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack:empty { display: none; }

/* header account button: "Sign in" pill, or your initials on a cue ball */
.acct { height: 42px; padding: 0 15px 0 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; position: relative;
  border: 1px solid var(--line-2); background: var(--panel); -webkit-backdrop-filter: blur(12px) saturate(1.15); backdrop-filter: blur(12px) saturate(1.15); box-shadow: 0 10px 22px -16px rgba(0,18,10,.7);
  transition: border-color .18s var(--ease), transform .18s var(--ease); }
.acct:hover { border-color: var(--lamp); }
.acct:active { transform: scale(.97); }
.acct.in { width: 42px; padding: 0; justify-content: center; border-color: rgba(255,255,255,.4);
  background: radial-gradient(circle at 34% 28%, #FFFFFF 0 22%, #EEF3F0 62%, #C9D6CF 100%); color: #0F211A; }
.acct .ini { font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.acct .dot { position: absolute; top: -1px; right: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--neon); border: 2px solid var(--felt-base); }
.ibtn.is-locked { position: relative; }
.ibtn.is-locked::after { content: ""; position: absolute; right: -3px; top: -3px; width: 17px; height: 17px; border-radius: 50%; background: var(--brass) center / 11px 11px no-repeat
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.5' fill='%230F211A'/%3E%3Cpath d='M8.5 10.5V8a3.5 3.5 0 0 1 7 0v2.5' fill='none' stroke='%230F211A' stroke-width='2.4'/%3E%3C/svg%3E"); box-shadow: 0 2px 5px rgba(0,0,0,.4); }
.lock { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 7px; border-radius: 50%; background: var(--lamp-soft); color: var(--lamp); vertical-align: -4px; }
.lbl .lock { vertical-align: -5px; }
.badge { display: inline-block; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--neon); color: #1A0805; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; flex: none; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); vertical-align: 1px; margin-left: 4px; }
.pill.pro { background: var(--brass); border-color: var(--brass); color: #0F211A; }

/* who's playing tonight */
.who-card { padding: 0; }
.who-note { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; padding: 14px 16px; color: var(--ink-2); font-size: 14.5px; }
.who-note > span { flex: 1 1 220px; min-width: 0; }
.who-note .btn { flex: none; }
.who-p { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px 12px 16px; border-top: 1px solid var(--line); color: var(--ink-3); transition: background-color .18s var(--ease); }
.who-p:first-child { border-top: 0; }
.who-p:hover { background: rgba(243,204,126,.08); }
.who-p .m { flex: 1; min-width: 0; }
.who-p .m b { display: block; font-size: 15.5px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-p .m b i { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--lamp); margin-left: 4px; }
.who-p .m > span { display: block; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.group-h button .badge { margin-left: 2px; }
.avatar.sm { width: 38px; height: 38px; box-shadow: inset -3px -4px 6px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.14); }
.avatar.sm span { width: 23px; height: 23px; font-size: 11px; }
.avatar { box-shadow: inset -4px -5px 8px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.16); }

/* sheet rows */
.sw-row .k { min-width: 0; }
.sw-row .k b { display: block; color: var(--ink); font-weight: 600; font-size: 15px; }
.sw-row .k small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 1px; }
.switch { transition: background-color .18s var(--ease); cursor: pointer; }
.tlinks { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-top: 12px; }
.tlink { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--lamp); padding: 4px 0; }
.tlink:hover { text-decoration: underline; text-underline-offset: 3px; }
.tlink.quiet { color: var(--ink-3); font-weight: 500; }
.tlink.center { align-self: center; }
.tlink.inline { display: inline; padding: 0; font-size: inherit; }
.seg.wide { display: flex; align-self: stretch; box-shadow: none; }
.seg.wide button { flex: 1; justify-content: center; height: 38px; min-width: 0; }
.me-b { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.me-b b { overflow-wrap: anywhere; }
.li.nav { color: var(--ink-3); }
.li .ni { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); border: 1px solid var(--line); color: var(--lamp); flex: none; }
.li .m b { color: var(--ink); }
.pro-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(243,204,126,.42); background: linear-gradient(135deg, rgba(243,204,126,.16), rgba(243,204,126,.04)); }
.pro-card .m { flex: 1; min-width: 0; }
.pro-card .m b { display: flex; align-items: center; gap: 6px; font-size: 15.5px; font-weight: 600; color: var(--brass); }
.pro-card .m span { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.pro-card .btn:not(.line) { background: var(--brass); border-color: var(--brass); color: #0F211A; }
.dev { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-2); background: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 10px, transparent 10px 20px); font-size: 13.5px; color: var(--ink-2); }
.dev b { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--neon); }
.dev .btn { margin-top: 4px; white-space: normal; height: auto; min-height: 36px; padding-block: 6px; text-align: center; }
.perks { list-style: none; margin: 0; padding: 4px 16px; border-radius: 14px; background: var(--sunk); border: 1px solid var(--line); }
.perks li { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-top: 1px solid var(--line); color: var(--lamp); }
.perks li:first-child { border-top: 0; }
.perks li .ico { margin-top: 2px; }
.perks li b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.perks li small { display: block; font-size: 13.5px; color: var(--ink-2); margin-top: 1px; }
.perks li.hot b { color: var(--brass); }
.price { font-family: var(--display); font-size: 26px; text-align: center; }

/* forms */
.f .three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.f .pre { position: relative; display: block; }
.f .pre i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-style: normal; font-family: var(--sans); font-size: 16px; color: var(--ink-3); pointer-events: none; }
.f .pre input { padding-left: 31px; }
.f label.check, label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-family: var(--sans); font-size: 14.5px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); cursor: pointer; display: flex; }
.f .check input { width: 20px; height: 20px; min-width: 20px; padding: 0; margin: 1px 0 0; accent-color: var(--lamp); flex: none; }
.f .radios { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.f .radios legend { padding: 0; margin-bottom: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.f input[type="date"], .f input[type="time"] { min-height: 46px; -webkit-appearance: none; appearance: none; }
.f input::placeholder, .f textarea::placeholder, .search input::placeholder { color: var(--ink-3); opacity: .8; }
.fz { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--sunk); }
.fz-h b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.fz-h span { display: block; font-size: 13px; color: var(--ink-3); margin-top: 1px; }
.fz .card { background: rgba(0,0,0,.14); }
.fz .muted { padding: 2px 0; }
.muted.ok { color: var(--good); display: flex; align-items: center; gap: 6px; }
.search { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 48px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--sunk); color: var(--ink-3); position: relative; }
.search:focus-within { border-color: var(--lamp); }
.search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; color: var(--ink); padding: 0; -webkit-appearance: none; appearance: none; }
.search input:focus-visible { box-shadow: none; }
#cn-r .muted, #fz-r .muted { padding: 10px 4px 0; }

/* people */
.urow { gap: 10px; }
.uwho { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-align: left; }
.uacts { display: flex; align-items: center; gap: 6px; flex: none; color: var(--ink-3); }
.uacts .btn.sm { height: 34px; padding: 0 12px; font-size: 13.5px; }
.rel { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--good); }
button.uwho:hover .m b { color: var(--lamp); }

/* support the developer */
.tips { display: flex; flex-direction: column; gap: 10px; }
.tip { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--sunk); }
.tip .qr { width: 116px; height: 116px; flex: none; padding: 9px; border-radius: 12px; background: #FFFFFF; display: block; }
.tip .qr svg { display: block; width: 100%; height: 100%; }
.tip-b { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.tip-b b { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.1; }
.tip-b small { font-size: 13px; color: var(--ink-3); }
.tip-b .btn { margin: 8px 0 4px; }
@media (max-width: 380px) { .tip { gap: 12px; padding: 12px; } .tip .qr { width: 96px; height: 96px; padding: 7px; } }

/* footer */
.site-foot { margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; }
.foot-links a, .foot-links button { font-size: 14px; font-weight: 600; color: var(--on-felt-2); text-decoration: none; padding: 6px 2px; }
.foot-links a:hover, .foot-links button:hover { color: var(--brass); }
.foot-fine { margin: 0; max-width: 62ch; font-size: 12.5px; line-height: 1.5; color: var(--on-felt-3); text-wrap: balance; }
.foot-fine a { color: var(--on-felt-2); }

/* plain pages: privacy, terms, support */
.shell.page { max-width: 780px; }
.page .top { padding-bottom: 18px; }
.page a.brand { display: flex; flex-direction: column; text-decoration: none; }
.page .back { font-size: 14px; font-weight: 600; color: var(--on-felt-2); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.page .back:hover { border-color: var(--lamp); color: var(--ink); }
.prose { gap: 0; padding: clamp(20px, 5vw, 36px); }
.prose h1 { font-family: var(--display); font-weight: 300; font-size: clamp(34px, 7vw, 48px); line-height: 1.04; letter-spacing: -.025em; margin: 0 0 6px; }
.prose .upd { font-size: 13px; color: var(--ink-3); margin: 0 0 8px; }
.prose h2 { margin: 26px 0 8px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--lamp); font-weight: 700; }
.prose p, .prose li { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); margin: 0 0 10px; text-wrap: pretty; }
.prose ul { margin: 0 0 10px; padding-left: 20px; }
.prose b { color: var(--ink); font-weight: 600; }
.prose a { color: var(--lamp); text-underline-offset: 3px; }
.prose .todo { display: inline-block; padding: 1px 8px; border-radius: 8px; border: 1px dashed var(--neon); color: var(--neon); font-size: 14px; font-weight: 600; }
.prose .tips { margin-top: 16px; }

/* fixes after looking at it on a phone */
@media (max-width: 560px) {
  /* row 1: name and account button; row 2: the two tabs with the add button beside them */
  .top-actions { display: contents; }
  #btnAcct { order: 2; margin-left: auto; }
  .tabs { order: 3; flex: 1 1 62%; min-width: 0; }   /* too wide to sit beside the name, so it always takes row 2 */
  #btnAdd { order: 4; }
}
.fz-h span.lock { display: inline-grid; margin-top: 0; }
.li.nav .m span { white-space: normal; }
.stat b { white-space: nowrap; }
.stat b.long { font-size: 22px; line-height: 1.5; letter-spacing: -.02em; }
.prose a.btn { color: var(--on-solid); }
.tip-b { flex: 1; }
.tip-b .btn { white-space: normal; height: auto; min-height: 36px; padding-block: 7px; text-align: center; }
.sheet-b > * { flex-shrink: 0; }   /* tall sheets scroll; they never squash their buttons */
