:root {
  color-scheme: light;
  --pine-950: #142722;
  --pine-900: #1d342d;
  --pine-800: #29473c;
  --pine-700: #39604e;
  --pine-100: #e5ece5;
  --paper: #e9efea;
  --paper-deep: #dfe8e1;
  --white: #fffdf8;
  --ink: #202925;
  --muted: #59665f;
  --line: #d4cbbb;
  --red: #9f3d35;
  --red-dark: #742e2a;
  --gold: #bd8a36;
  --gold-pale: #f2dfb4;
  --blue: #456e91;
  --shadow: 0 12px 28px rgb(20 39 34 / 10%);
  --radius: 12px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

.auth-gate {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--paper);
}
.auth-card {
  width: min(100%, 440px);
  display: grid;
  gap: 12px;
  padding: clamp(24px, 6vw, 40px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.auth-card > img { border-radius: 12px; }
.auth-eyebrow {
  margin: 8px 0 0;
  color: var(--pine-800);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.auth-card h1 { margin: 0; color: var(--pine-950); font: 700 clamp(2rem, 8vw, 2.7rem)/1.05 Georgia, serif; }
.auth-copy { margin: 0 0 8px; color: var(--muted); }
.auth-card label { margin-top: 4px; color: var(--ink); font-weight: 700; }
.auth-card input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  font: inherit;
}
.auth-card input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.auth-submit { min-height: 52px; margin-top: 8px; }
.auth-status { min-height: 1.5em; margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.player-access-note {
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--gold-pale);
  color: var(--pine-950);
  font-weight: 700;
}
.app[hidden], .welcome-screen[hidden] { display: none !important; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--paper); }
body { min-width: 320px; max-width: 100%; margin: 0; color: var(--ink); background: var(--paper); overflow-x: clip; }
body, button, input, select, textarea { font: inherit; }
button, input, select, textarea { color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .52; }
img, svg, canvas { max-width: 100%; }
svg { display: block; }
[hidden] { display: none !important; }
a { color: var(--pine-800); }
:focus-visible { outline: 3px solid #cf9c43; outline-offset: 3px; }
::selection { color: var(--white); background: var(--pine-700); }

.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; z-index: 300; top: 8px; left: 8px; padding: 10px 14px; color: white; background: var(--pine-950); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.app { width: 100%; min-height: 100vh; }

/* Shared event shell */
.sidebar {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  min-height: 88px;
  align-items: center;
  gap: 18px;
  padding: 16px clamp(20px, 3vw, 52px);
  color: #f9f5ea;
  background: var(--pine-950);
  border-bottom: 1px solid #456052;
}
.header-lights { position: absolute; inset: 0 0 auto; height: 13px; overflow: hidden; pointer-events: none; }
.header-lights svg { width: 100%; height: 15px; }
.header-lights path { fill: none; stroke: #8e6930; stroke-width: 2; }
.header-lights span { position: absolute; top: var(--y); left: var(--x); width: 6px; height: 6px; border-radius: 50%; background: #dfc47c; }
.header-lights span:nth-of-type(3n) { background: #c75043; }
.header-lights span:nth-of-type(3n + 1) { background: #739b6d; }
.brand { display: flex; min-width: 190px; align-items: center; gap: 12px; margin-right: auto; color: #fffaf0; text-decoration: none; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand strong { display: block; font: 700 21px/1.05 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.brand small { display: block; margin-top: 4px; color: #d5bd83; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.nav-label { display: none; }
.nav { display: flex; min-width: 0; align-items: center; gap: 2px; }
.nav button { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; padding: 9px 11px; color: #d5ddd6; background: transparent; border: 0; border-radius: 7px; font-size: 13px; font-weight: 650; white-space: nowrap; }
.nav button:hover, .nav button.active { color: #fff9ec; background: #2a4037; }
.nav button.active { box-shadow: inset 0 -3px #d7a645; }
.ico { display: inline-grid; width: 18px; height: 18px; place-items: center; }
.ico svg, .button-icon, .mobile-tab svg, .mobile-more-links svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side-bottom { display: flex; align-items: center; }
.season-card { display: none; }
.season-card .tiny { color: #d5ddd6; }
.profile-actions { display: flex; align-items: center; gap: 8px; }
.userbtn { display: flex; min-height: 48px; align-items: center; gap: 9px; padding: 5px 10px 5px 5px; color: #fffaf0; text-align: left; background: #243b32; border: 1px solid #4c6357; border-radius: 9px; }
.userbtn b, .userbtn small { display: block; }
.userbtn b { max-width: 130px; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.userbtn small { color: #d5ddd6; font-size: 12px; }
.avatar { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; color: var(--pine-950); background: #e7ca8d; border-radius: 50%; font-size: 12px; font-weight: 800; }
.avatar-img { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }
.account-chevron { width: 14px; height: 14px; fill: none; stroke: #cdd7cf; stroke-width: 2; }

.main { width: min(100% - 56px, 1440px); min-width: 0; margin-inline: auto; padding: 28px 0 64px; }
.topbar { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.topbar h1 { margin: 0; color: var(--pine-950); font: 700 clamp(26px, 3vw, 38px)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.topbar p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.top-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.live { display: inline-flex; min-height: 38px; align-items: center; gap: 8px; padding: 0 12px; color: var(--pine-800); background: var(--pine-100); border: 1px solid #c4d3c8; border-radius: 6px; font-size: 12px; font-weight: 800; letter-spacing: .07em; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #438a55; }
.btn { display: inline-flex; min-height: 44px; max-width: 100%; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; color: var(--pine-900); background: var(--white); border: 1px solid #b9c6bc; border-radius: 7px; font-size: 14px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; }
.btn:hover { background: var(--pine-100); }
.btn.primary { color: #fffaf2; background: var(--red); border-color: var(--red); }
.btn.primary:hover { background: var(--red-dark); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 38px; padding: 7px 11px; font-size: 12px; }
.knockout-shortcut { color: #fff9ef; background: var(--red-dark); border-color: #a85349; }
.knockout-shortcut:hover { background: #843832; }
.button-icon { flex: 0 0 auto; }

/* Breaking development and event state */
.hand-ticker { display: grid; min-width: 0; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 0 0 16px; padding: 9px 10px 9px 14px; color: #fffaf2; background: var(--pine-900); border: 1px solid #304a3e; border-radius: 9px; }
.hand-ticker > strong { color: #f0d08a; font-size: 12px; letter-spacing: .12em; white-space: nowrap; }
.ticker-window { min-width: 0; overflow: hidden; }
.ticker-track { display: flex; width: max-content; align-items: center; gap: 44px; color: #f8f4e9; font-size: 13px; white-space: nowrap; animation: tickerTravel 42s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-story { display: inline-flex; align-items: center; gap: 6px; }
.ticker-story b { color: #f1d28e; }
.ticker-elimination b:first-child { color: #fff; }
.ticker-milestone { color: #f3d48f; }
@keyframes tickerTravel { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.stats { display: grid; min-width: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 16px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--white); }
.stat { position: relative; display: grid; min-width: 0; grid-template-columns: 32px minmax(0, 1fr); align-content: center; column-gap: 10px; min-height: 90px; padding: 14px 18px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .mark { grid-row: 1 / span 3; display: grid; width: 30px; height: 30px; place-items: center; color: var(--pine-800); background: var(--pine-100); border-radius: 50%; }
.stat .mark svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.stat label { color: var(--muted); font-size: 12px; font-weight: 650; }
.stat strong { display: block; margin-top: 2px; color: var(--pine-950); font-size: 21px; font-variant-numeric: tabular-nums; line-height: 1.18; }
.stat > small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.stat strong small { color: var(--muted) !important; font-size: 12px !important; }

.card { min-width: 0; margin: 0 0 16px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.card > h2 { margin: 0 0 14px; color: var(--pine-950); font: 700 20px/1.2 Georgia, "Times New Roman", serif; }
.card-head { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.card-head h2 { margin: 0; color: var(--pine-950); font: 700 21px/1.18 Georgia, "Times New Roman", serif; letter-spacing: -.02em; }
.card-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.page-title { display: flex; min-width: 0; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 2px 0 20px; }
.page-title h2 { margin: 0; color: var(--pine-950); font: 700 clamp(26px, 3vw, 36px)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.page-title .subtle { display: block; margin-top: 5px; }
.subtle { color: var(--muted); font-size: 12px; }
.tiny { color: var(--muted); font-size: 12px; }
.pill { display: inline-flex; min-height: 28px; align-items: center; gap: 5px; padding: 4px 9px; color: var(--pine-800); background: var(--pine-100); border: 1px solid #cedacf; border-radius: 5px; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.empty { padding: 18px 12px; color: var(--muted); text-align: center; }

.page { display: none; min-width: 0; }
.page.active { display: block; }
.grid { display: grid; min-width: 0; grid-template-columns: minmax(0, 1.45fr) minmax(320px, .9fr); align-items: start; gap: 16px; }
.grid > *, .rightcol { min-width: 0; }
.rightcol { display: grid; gap: 0; }
.from-felt-card { margin-top: 2px; }
.from-felt-card .feed { max-height: 380px; overflow-y: auto; }
.high-hand { color: #f7f4e9; background: var(--pine-900); border-color: var(--pine-900); }
.high-hand .hand-label { color: #e8c879; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.high-hand .hand-title { margin-top: 8px; color: white; font: 700 26px/1.15 Georgia, "Times New Roman", serif; }
.high-hand .hand-winner { margin-top: 4px; color: #d5ded6; font-size: 12px; }
.high-hand .btn { margin-top: 16px; }
.high-hand-proof { display: grid; gap: 11px; margin-top: 14px; }
.high-hand-proof-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: #e9eee8; font-size: 12px; }
.hand-proof-label { width: 100%; color: #d8c28e; font-size: 12px; font-weight: 750; }
.hand-cards, .best-hand-row, .hole-card-row, .mini-card-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.playing-card { display: grid; width: 39px; height: 54px; flex: 0 0 auto; place-items: center; color: #19251e; background: #fffdf8; border: 1px solid #d7d0c0; border-radius: 5px; box-shadow: 0 2px 4px rgb(0 0 0 / 14%); font: 700 15px/1 Georgia, "Times New Roman", serif; }
.playing-card.red, .mini-card.red, .red { color: #b33332; }
.best-hand-card { width: 48px; height: 66px; font-size: 17px; }
.mini-card { display: inline-grid; min-width: 29px; height: 36px; place-items: center; padding: 2px 4px; color: #1c2b23; background: #fffdf8; border: 1px solid #d7d0c0; border-radius: 4px; box-shadow: 0 1px 3px rgb(0 0 0 / 13%); font: 700 12px/1 Georgia, "Times New Roman", serif; }
.high-hand .playing-card, .high-hand .mini-card { color: var(--ink); }
.high-hand .playing-card.red, .high-hand .mini-card.red { color: #b33332; }

/* Live tournament path */
.progress-card { padding: 18px 20px 15px; overflow: hidden; }
.progress-card .card-head { align-items: center; margin-bottom: 2px; }
.progress-card .card-head h2 { font-size: 17px; }
.progress-card .card-head > strong { color: var(--pine-800); font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress-track { position: relative; height: 110px; margin: 0 0 32px; }
.candy-cane-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cane-shadow, .cane-track, .cane-progress { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cane-shadow { stroke: #e2c7bd; stroke-width: 32; }
.cane-track { stroke: url(#caneTrackPattern); stroke-width: 24; }
.cane-progress { stroke: url(#caneProgressPattern); stroke-width: 24; }
.progress-marker { position: absolute; z-index: 2; top: 37%; display: grid; justify-items: center; gap: 0; transform: translate(-50%, -50%); transition: opacity .3s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.progress-marker .bauble { display: block; width: 44px; height: 52px; filter: drop-shadow(0 2px 2px rgb(34 24 13 / 25%)); }
.progress-marker b { position: absolute; top: calc(100% + 2px); width: max-content; max-width: 116px; color: var(--ink); font-size: 12px; font-weight: 750; text-align: center; line-height: 1.2; }
.progress-marker.final-table .bauble { width: 51px; height: 61px; }
.progress-marker.money-bubble .bauble { width: 57px; height: 67px; }
.progress-marker.champion .bauble { width: 66px; height: 78px; }
.progress-marker.reached { opacity: 0; transform: translate(-50%, 55px) rotate(48deg) scale(.68); }
.progress-legend { display: none; }

/* Tables and chip history */
.table-wrap { width: 100%; min-width: 0; overflow: hidden; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; table-layout: auto; }
th, td { padding: 11px 10px; border-bottom: 1px solid #e3ded3; text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
th { color: var(--muted); background: #f1eee6; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
td { color: var(--ink); font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr[onclick] { cursor: pointer; }
tbody tr[onclick]:hover { background: #f4f0e7; }
.leaderboard-section td { padding-top: 15px; color: var(--pine-800); background: #f1eee6; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.chips { font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.player-cell { display: flex; min-width: 0; align-items: center; gap: 8px; }
.player-avatar { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; object-fit: cover; }
.player-name { min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.player-tag { color: var(--muted); font-size: 12px; }
.leaderboard-table-name { width: 1%; white-space: nowrap; font-variant-numeric: tabular-nums; }
#leaderboard th:nth-child(4), #leaderboard td:nth-child(4) { white-space: nowrap; }
.trend { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; }
.trend-role { color: var(--muted); }
.stack-tag { display: inline-block; padding: 3px 5px; border-radius: 4px; font-size: 12px; font-style: normal; font-weight: 750; line-height: 1.2; white-space: nowrap; }
.stack-bully { color: #1c5630; background: #d4e9d3; }
.stack-short { color: #852e2b; background: #f0d8d2; }
.table-grid { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tablebox { position: relative; min-width: 0; padding: 13px; background: #faf8f1; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.tablebox > strong { display: block; min-width: 0; margin-bottom: 7px; color: var(--pine-950); font-size: 13px; overflow-wrap: anywhere; }
.mini-felt, .detail-felt { position: relative; overflow: hidden; aspect-ratio: 1.8 / 1; border: 8px solid #69452f; border-radius: 50%; background: #24734e; box-shadow: inset 0 0 0 3px #52936c; }
.table-style-1 { background-color: #176c49; }
.table-style-2 { background-color: #226d54; }
.table-style-3 { background-color: #145d43; }
.table-style-4 { background-color: #1b704f; }
.table-style-5 { background-color: #25684a; }
.mini-table-brand { position: absolute; top: 50%; left: 50%; color: rgb(255 247 220 / 28%); font-size: 12px; font-weight: 850; letter-spacing: .12em; transform: translate(-50%, -50%); }
.table-seats { position: absolute; inset: 0; min-width: 0; }
.table-seat { position: absolute; display: flex; width: clamp(76px, 25%, 116px); min-width: 0; align-items: center; gap: 4px; transform: translate(-50%, -50%); color: white; text-shadow: 0 1px 2px #14251b; }
.seat-avatar { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; overflow: hidden; color: var(--pine-950); background: #e9d7aa; border: 1px solid #fff3d8; border-radius: 50%; font-size: 12px; font-weight: 800; text-shadow: none; }
.seat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mini-seat-copy { display: grid; min-width: 0; gap: 1px; }
.mini-seat-copy b { overflow: hidden; font-size: 12px; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.mini-seat-copy small { color: #f2ecdc; font-size: 12px; line-height: 1.15; overflow-wrap: anywhere; }
.table-seat-eliminated { filter: grayscale(1); opacity: .65; }
.eliminated-avatar { outline: 2px solid #b8433b; }
.table-foot { display: flex; min-width: 0; justify-content: space-between; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.table-foot span:last-child { white-space: nowrap; }
.table-seat-list { display: grid; margin-top: 8px; }
.table-list-row { display: grid; min-width: 0; grid-template-columns: 25px minmax(72px, .8fr) minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 6px 3px; border-top: 1px solid var(--line); color: var(--pine-900); font-size: 12px; }
.table-list-seat, .table-list-stack { font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-list-position { min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.table-list-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-list-stack { font-weight: 750; }
.table-list-row.is-eliminated { color: var(--muted); opacity: .7; text-decoration: line-through; }
.table-choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.table-choice { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; padding: 8px 11px; color: var(--pine-900); background: #f1eee6; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; font-weight: 700; }
.table-choice input { width: 18px; height: 18px; accent-color: var(--pine-700); }
.detail-felt { width: 100%; min-height: 370px; aspect-ratio: 2.1 / 1; margin: 0 0 18px; border-width: 18px; box-shadow: inset 0 0 0 4px #5d9c72, 0 8px 18px rgb(25 39 31 / 14%); overflow: visible; }
.detail-seats { position: absolute; inset: 0; }
.detail-seat { position: absolute; z-index: 1; display: grid; width: clamp(106px, 17vw, 190px); justify-items: center; gap: 2px; transform: translate(-50%, -50%); color: white; text-align: center; text-shadow: 0 1px 3px #13271d; }
.seat-index { position: absolute; top: -8px; left: calc(50% - 37px); display: grid; width: 22px; height: 22px; place-items: center; color: var(--pine-950); background: #efd38c; border: 2px solid #fff3d4; border-radius: 50%; font-size: 12px; font-weight: 800; }
.table-face { display: grid; width: 40px; height: 40px; place-items: center; overflow: hidden; background: #e6d3a7; border: 2px solid #f2dfb4; border-radius: 50%; font-size: 12px; font-weight: 800; text-shadow: none; }
.table-face img { width: 100%; height: 100%; object-fit: cover; }
.seat-copy { display: grid; min-width: 0; justify-items: center; gap: 2px; padding: 3px 5px; background: rgb(20 39 34 / 84%); border-radius: 5px; }
.seat-copy small { color: #e4eade; font-size: 12px; }
.seat-name-row { display: flex; max-width: 100%; align-items: center; gap: 4px; }
.seat-name-row b { max-width: 145px; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.role-chip-group { display: inline-flex; flex: 0 0 auto; gap: 2px; }
.role-chip { display: inline-grid; min-width: 26px; min-height: 18px; place-items: center; padding: 1px 4px; color: #142721; background: #e7e2d5; border: 1px solid white; border-radius: 12px 12px 3px 3px; font-size: 12px; font-weight: 850; line-height: 1; }
.role-chip.sb { background: #8cc9e5; }
.role-chip.bb { background: #f1d36b; }
.role-chip.dealer { background: #f7f3e8; }
.detail-seats .is-eliminated { opacity: .55; filter: grayscale(1); }
.detail-seat .stack-tag { text-shadow: none; }

.chart-controls { display: grid; min-width: 0; grid-template-columns: auto minmax(150px, 1fr); align-items: center; gap: 8px 12px; margin-bottom: 12px; }
.chart-search-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.chart-controls input[type="search"] { width: 100%; min-width: 0; min-height: 42px; padding: 8px 11px; background: #fbfaf6; border: 1px solid #c9c2b4; border-radius: 6px; }
.chart-players { display: flex; min-width: 0; grid-column: 1 / -1; flex-wrap: wrap; gap: 6px; }
.chart-players label { display: inline-flex; min-height: 36px; align-items: center; gap: 5px; padding: 4px 8px; color: var(--pine-900); background: #f1eee6; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; }
.chart-players input { accent-color: var(--pine-700); }
.chart-area { width: 100%; min-width: 0; overflow: hidden; }
.chart-area svg { display: block; width: 100%; height: auto; }
.chart-area svg text { fill: var(--muted); font-family: inherit; }
.chart-axis-label, .chart-axis-title, .history-labels { fill: var(--muted); font-size: 12px; }
.chart-dot { stroke: var(--white); stroke-width: 2; }

/* Schedule, activity, cards and forms */
.schedule-list { display: grid; min-width: 0; }
.schedule-item { display: grid; min-width: 0; grid-template-columns: minmax(58px, .55fr) minmax(0, 1.6fr) minmax(48px, .5fr); align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #e2ddd2; }
.schedule-item:last-child { border-bottom: 0; }
.schedule-time { color: var(--pine-700); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.schedule-item b, .schedule-item small { display: block; min-width: 0; }
.schedule-item b { font-size: 14px; overflow-wrap: anywhere; }
.schedule-item small { margin-top: 2px; color: var(--muted); font-size: 12px; }
.schedule-state { color: var(--pine-800); font-size: 12px; font-weight: 750; text-align: right; }
.feed { display: grid; min-width: 0; }
.feeditem { display: grid; min-width: 0; grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 10px; padding: 12px 0; border-bottom: 1px solid #e4dfd5; }
.feeditem:last-child { border-bottom: 0; }
.feeditem p { margin: 0; color: var(--ink); font-size: 14px; overflow-wrap: anywhere; }
.feeditem small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.feedicon { display: grid; width: 30px; height: 30px; place-items: center; color: var(--pine-800); background: var(--pine-100); border-radius: 50%; font-size: 12px; }
.field { display: grid; min-width: 0; gap: 6px; margin: 0 0 14px; color: var(--pine-950); font-size: 12px; font-weight: 700; }
.field input, .field select, .field textarea, input[type="text"], input[type="number"], select, textarea { width: 100%; min-width: 0; min-height: 44px; padding: 9px 11px; color: var(--ink); background: var(--white); border: 1px solid #bdb7a9; border-radius: 6px; }
.field textarea, textarea { min-height: 96px; resize: vertical; }
.field input[type="file"] { height: auto; padding: 9px; }
.form-two, .card-entry-grid { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card-picker-field { min-width: 0; }
.card-picker-field > span { color: var(--muted); font-size: 12px; }
.card-picker-button { display: grid; min-height: 82px; place-items: center; padding: 8px; background: #f2efe6; border: 1px solid var(--line); border-radius: 7px; }
.card-picker-button.has-card { padding: 5px; background: #e9e4d9; }
.card-picker-placeholder { color: var(--muted); font-size: 12px; }
.selected-card-face { display: flex; width: 48px; height: 68px; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 7px; font-size: 12px; }
.card-picker-backdrop { position: fixed; z-index: 160; inset: 0; display: grid; place-items: center; padding: 16px; background: rgb(9 19 15 / 72%); }
.card-picker-dialog { width: min(100%, 560px); max-height: min(88dvh, 740px); overflow: auto; padding: 18px; background: var(--paper); border: 1px solid #d7cdb9; border-radius: 12px; box-shadow: var(--shadow); }
.card-picker-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-picker-heading b { color: var(--pine-950); font: 700 20px Georgia, serif; }
.visual-deck-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.card-choice { display: grid; min-width: 0; min-height: 58px; place-items: center; padding: 3px; background: transparent; border: 0; border-radius: 5px; }
.card-choice:disabled { opacity: .25; }
.card-choice.selected { background: var(--gold-pale); }
.modal-back { position: fixed; z-index: 150; inset: 0; display: none; place-items: center; padding: 16px; background: rgb(9 19 15 / 66%); }
.modal-back.show { display: grid; }
.modal { width: min(100%, 620px); max-height: min(90dvh, 820px); overflow: auto; padding: clamp(18px, 4vw, 28px); background: var(--paper); border: 1px solid #d4cbbb; border-radius: 13px; box-shadow: var(--shadow); }
.modal h2 { margin: 0 0 6px; color: var(--pine-950); font: 700 24px/1.15 Georgia, serif; }
.modal > p { margin: 4px 0 18px; color: var(--muted); font-size: 12px; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.owner-note, .owner-only-note { padding: 11px 13px; color: var(--pine-800); background: var(--pine-100); border-radius: 6px; font-size: 12px; }

.gulag-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gulag-slot { display: grid; min-width: 0; min-height: 74px; align-content: center; justify-items: center; gap: 4px; padding: 8px; background: #f2efe6; border: 1px dashed #b5aa95; border-radius: 7px; text-align: center; }
.gulag-slot.filled { background: #e8eee5; border-style: solid; }
.gulag-slot strong { font-size: 12px; }
.gulag-slot small { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.reentry-controls { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(100px, .7fr) auto; align-items: end; gap: 10px; }
.reentry-controls .field { margin: 0; }
.reentry-controls .btn { margin-bottom: 0; }
.elimination-note { color: var(--red-dark); background: #f5e5df; }

.vote-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.vote-controls label { display: inline-flex; align-items: center; gap: 9px; color: var(--pine-900); font-size: 12px; font-weight: 700; }
.vote-controls select { width: auto; min-width: 150px; }
.vote-grid { min-width: 0; }
.vote-card { max-width: 860px; padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.vote-card h3 { margin: 0 0 7px; color: var(--pine-950); font: 700 22px/1.2 Georgia, serif; }
.vote-card p { margin: 0 0 15px; color: var(--muted); font-size: 12px; }
.rank-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ballot-saved { margin: 12px 0; padding: 13px; color: var(--pine-900); background: var(--pine-100); border-radius: 7px; font-size: 12px; }
.vote-results { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.result-chip { display: inline-flex; min-height: 34px; align-items: center; padding: 6px 10px; color: var(--pine-800); background: #e8eee5; border: 1px solid #c9d8ca; border-radius: 6px; font-size: 12px; font-weight: 700; }

.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.photo { position: relative; min-width: 0; min-height: 170px; display: flex; align-items: flex-end; padding: 13px; overflow: hidden; color: white; background: #355a48; border-radius: 8px; background-size: cover; background-position: center; }
.photo:nth-child(4n + 2) { background-color: #6e4b39; }
.photo:nth-child(4n + 3) { background-color: #7d493e; }
.photo:nth-child(4n) { background-color: #456a79; }
.photo span { position: relative; z-index: 1; max-width: 100%; padding: 5px 7px; color: #fff; background: rgb(18 30 25 / 76%); border-radius: 3px; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.photo:has(span)::before { position: absolute; inset: 40% 0 0; content: ""; background: linear-gradient(transparent, rgb(9 18 14 / 52%)); pointer-events: none; }

.raffle-layout { display: grid; min-width: 0; grid-template-columns: minmax(250px, .9fr) minmax(0, 1fr); align-items: center; gap: 22px; }
.wheel-wrap { position: relative; width: min(100%, 420px); justify-self: center; aspect-ratio: 1; }
#raffleWheel { display: block; width: 100%; height: auto; border-radius: 50%; border: 2px solid #d5c69f; }
.wheel-pointer { position: absolute; z-index: 2; top: -5px; left: 50%; color: var(--red); font-size: 12px; line-height: 1; transform: translateX(-50%); }
.wheel-center-spin { position: absolute; top: 50%; left: 50%; display: grid; width: 84px; height: 84px; place-items: center; padding: 8px; color: var(--pine-950); background: #f5e9ca; border: 4px solid var(--gold); border-radius: 50%; transform: translate(-50%, -50%); }
.wheel-center-spin img { width: 40px; height: 40px; object-fit: contain; }
.wheel-center-spin span { margin-top: -5px; font-size: 12px; font-weight: 850; letter-spacing: .1em; }
.raffle-result { min-width: 0; margin: 0 0 12px; padding: 13px; background: #f3efe5; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; overflow-wrap: anywhere; }
.raffle-winner { display: grid; gap: 8px; }
.raffle-winner strong { color: var(--pine-900); font: 700 20px/1.15 Georgia, serif; }
.raffle-winner small { color: var(--muted); }
.odds-table { min-width: 0; }
.prize-grid { display: grid; min-width: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.prize { min-width: 0; padding: 15px; background: #f5f1e8; border: 1px solid var(--line); border-radius: 8px; }
.prize-unavailable { color: #69716b; background: #e8e5dd; opacity: .72; }
.prize-art { display: grid; width: 48px; height: 48px; place-items: center; background: #e8d9b6; border-radius: 50%; font-size: 24px; }
.prize h3 { margin: 12px 0 7px; color: var(--pine-950); font: 700 17px/1.2 Georgia, serif; overflow-wrap: anywhere; }
.prize .subtle { display: block; margin-top: 8px; }
.raffle-fireworks { position: fixed; z-index: 180; inset: 0; overflow: hidden; pointer-events: none; }
.firework-burst { position: absolute; top: var(--y); left: var(--x); }
.firework-burst i { position: absolute; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--color); opacity: 0; }
.fireworks-active .firework-burst i { animation: fireworks 1.35s ease-out var(--delay) both; }
@keyframes fireworks { 0% { opacity: 0; transform: rotate(var(--angle)) translateY(0) scale(.35); } 18% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--angle)) translateY(calc(var(--distance) * -1)) scale(0); } }

/* Welcome room */
.welcome-screen { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; overflow: auto; padding: max(18px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom)); background: #2f221c url("christmas-room-background.png") center center / cover no-repeat; }
.welcome-inner { display: grid; width: min(100%, 920px); min-height: min(100%, 720px); grid-template-rows: auto minmax(250px, 1fr) auto auto; justify-items: center; align-items: center; text-align: center; }
.welcome-kicker { max-width: 100%; margin: 0; color: #fff3d7; font: 700 clamp(29px, 5vw, 55px)/1.03 Georgia, "Times New Roman", serif; letter-spacing: -.04em; text-wrap: balance; text-shadow: 0 2px 12px rgb(25 19 13 / 75%); }
.tree-stage { position: relative; width: min(100%, 760px); height: clamp(300px, 58vh, 570px); align-self: end; }
.tree-spin { position: absolute; z-index: 2; bottom: 0; left: 50%; height: 100%; transform: translateX(-50%); }
.tree-art { display: block; width: auto; height: 100%; object-fit: contain; }
.tree-logo { position: absolute; top: 4%; left: 50%; width: clamp(54px, 8vw, 92px); height: auto; object-fit: contain; transform: translateX(-50%); }
.welcome-elves { position: absolute; z-index: 3; inset: 0 0 1%; pointer-events: none; }
.welcome-elf { position: absolute; bottom: 0; width: clamp(76px, 12vw, 132px); height: clamp(150px, 33vh, 280px); background-image: var(--welcome-elf-sheet); background-repeat: no-repeat; background-size: 500% 100%; }
.welcome-elf-1 { left: 2%; background-position: 0 50%; }
.welcome-elf-2 { left: 19%; height: clamp(138px, 29vh, 250px); background-position: 25% 50%; }
.welcome-elf-3 { left: 34%; height: clamp(144px, 31vh, 265px); background-position: 50% 50%; }
.welcome-elf-4 { right: 17%; height: clamp(138px, 29vh, 250px); background-position: 75% 50%; }
.welcome-elf-5 { right: 1%; background-position: 100% 50%; }
.welcome-subtitle { max-width: 100%; margin: 2px 0 13px; color: #fff4dc; font: 700 clamp(18px, 2.8vw, 31px)/1.14 Georgia, "Times New Roman", serif; text-wrap: balance; text-shadow: 0 2px 10px rgb(25 19 13 / 80%); }
.welcome-enter { display: inline-flex; min-width: 220px; min-height: 50px; align-items: center; justify-content: center; margin: 0 auto; padding: 12px 22px; color: #fff8eb; background: var(--red); border: 1px solid #f0c982; border-radius: 7px; box-shadow: 0 5px 18px rgb(20 16 12 / 32%); font-size: 15px; font-weight: 800; }
.welcome-enter:hover { background: var(--red-dark); }
.tree-spin, .tree-stage, .welcome-elf, .welcome-kicker, .welcome-subtitle, .welcome-enter { animation: none !important; transition: none !important; }

/* Phone navigation: three frequent pages plus one compact destination sheet */
.mobile-tabs, .mobile-more-layer { display: none; }
.mobile-tabs { display: none; position: fixed; z-index: 80; right: 0; bottom: 0; left: 0; min-height: calc(62px + var(--safe-bottom)); grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 5px 7px calc(5px + var(--safe-bottom)); background: var(--pine-950); border-top: 1px solid #516358; }
.mobile-tab { display: grid; min-width: 0; min-height: 48px; align-content: center; justify-items: center; gap: 2px; padding: 4px 2px; color: #d4ddd6; background: transparent; border: 0; border-radius: 6px; font-size: 12px; font-weight: 650; }
.mobile-tab svg { width: 19px; height: 19px; }
.mobile-tab.active { color: #ffe6aa; background: #2d463a; }
.mobile-more-layer { position: fixed; z-index: 79; inset: 0; align-items: end; }
.mobile-more-layer:not([hidden]) { display: grid; }
.mobile-more-scrim { position: absolute; inset: 0; width: 100%; height: 100%; background: rgb(10 19 15 / 60%); border: 0; }
.mobile-more-sheet { position: relative; width: 100%; padding: 18px 18px calc(82px + var(--safe-bottom)); background: var(--paper); border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 28px rgb(0 0 0 / 18%); }
.mobile-more-sheet > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mobile-more-sheet h2 { margin: 0; color: var(--pine-950); font: 700 23px Georgia, serif; }
.mobile-more-close { display: grid; width: 44px; height: 44px; place-items: center; color: var(--pine-900); background: #e9e4d8; border: 0; border-radius: 50%; font-size: 18px; }
.mobile-more-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mobile-more-links button { display: flex; min-width: 0; min-height: 52px; align-items: center; gap: 10px; padding: 9px 12px; color: var(--pine-900); background: var(--white); border: 1px solid var(--line); border-radius: 7px; text-align: left; font-size: 14px; font-weight: 700; }

.toast { position: fixed; z-index: 220; right: max(18px, env(safe-area-inset-right)); bottom: calc(22px + var(--safe-bottom)); max-width: min(420px, calc(100vw - 36px)); padding: 12px 16px; color: white; background: var(--pine-950); border: 1px solid #678171; border-radius: 7px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }
.toast.show { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .sidebar { flex-wrap: wrap; gap: 10px 14px; padding-inline: 22px; }
  .brand { margin-right: auto; }
  .sidebar > .nav-label { display: none; }
  .sidebar > .nav { order: 3; }
  .sidebar > .nav:nth-of-type(2) { margin-left: auto; }
  .side-bottom { margin-left: 0; }
  .main { width: min(100% - 40px, 1440px); }
  .grid { grid-template-columns: minmax(0, 1.2fr) minmax(290px, .8fr); }
}

@media (max-width: 860px) {
  body { padding-bottom: calc(68px + var(--safe-bottom)); }
  .mobile-tabs { display: grid; }
  .sidebar { position: relative; min-height: 72px; flex-wrap: nowrap; padding: 13px 20px; }
  .brand { min-width: 0; }
  .sidebar > .nav { display: none; }
  .side-bottom { margin-left: auto; }
  .knockout-shortcut { min-height: 42px; }
  .main { width: min(100% - 36px, 720px); padding-top: 22px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rightcol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 0 12px; }
  .rightcol .high-hand { grid-column: 1 / -1; }
  .rightcol > .card:nth-child(2), .rightcol > .card:nth-child(3) { height: 100%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .detail-felt { min-height: 330px; }
}

@media (max-width: 640px) {
  html { scroll-behavior: auto; }
  body { padding-bottom: calc(68px + var(--safe-bottom)); }
  .sidebar { min-height: 64px; gap: 8px; padding: 10px 13px; }
  .header-lights { height: 9px; }
  .header-lights svg { height: 10px; }
  .header-lights span { width: 4px; height: 4px; }
  .brand { gap: 8px; }
  .brand img { width: 38px; height: 38px; }
  .brand strong { font-size: 18px; }
  .brand small { font-size: 12px; letter-spacing: .1em; }
  .side-bottom { min-width: 0; }
  .profile-actions { gap: 5px; }
  .side-bottom .season-card { display: none; }
  .side-bottom .userbtn { display: none; }
  .side-bottom .knockout-shortcut { display: none; }
  .top-actions .knockout-shortcut { display: inline-flex; }
  .main { width: auto; max-width: 100%; padding: 17px 13px 28px; }
  .topbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 13px; }
  .topbar h1 { font-size: 27px; }
  .topbar p { max-width: 35ch; margin-top: 3px; font-size: 12px; }
  .top-actions { width: 100%; justify-content: space-between; }
  .top-actions .live { min-height: 36px; padding-inline: 9px; font-size: 12px; }
  .top-actions .btn { min-height: 42px; padding: 7px 10px; font-size: 12px; }
  .hand-ticker { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; margin-bottom: 12px; padding: 9px; }
  .hand-ticker > strong { grid-column: 1; grid-row: 1; font-size: 12px; }
  .ticker-window { grid-column: 1; grid-row: 2; width: 100%; }
  .ticker-track { gap: 24px; font-size: 12px; animation-duration: 48s; }
  .ticker-story .mini-card { min-width: 24px; height: 29px; font-size: 12px; }
  .hand-ticker > .btn { grid-column: 2; grid-row: 1 / span 2; min-height: 44px; padding: 7px 10px; font-size: 12px; }
  .stats { margin-bottom: 12px; }
  .stat { min-height: 80px; grid-template-columns: 26px minmax(0, 1fr); column-gap: 8px; padding: 11px 9px; }
  .stat .mark { width: 25px; height: 25px; }
  .stat .mark svg { width: 15px; height: 15px; }
  .stat label { font-size: 12px; line-height: 1.2; }
  .stat strong { font-size: 16px; }
  .stat > small { font-size: 12px; line-height: 1.2; }
  .card { margin-bottom: 12px; padding: 15px 13px; border-radius: 9px; }
  .card-head { align-items: flex-start; gap: 8px; margin-bottom: 12px; }
  .card-head h2 { font-size: 19px; }
  .card-head p { font-size: 12px; }
  .card-head .btn { flex: 0 0 auto; }
  .page-title { align-items: flex-start; gap: 9px; margin-bottom: 14px; }
  .page-title h2 { font-size: 29px; }
  .page-title > .btn, .page-title > label.btn { min-height: 42px; padding: 8px 10px; font-size: 12px; }
  .page-title > .pill { flex: 0 0 auto; max-width: 45%; text-align: center; white-space: normal; }
  .progress-card { padding: 14px 12px 11px; }
  .progress-card .card-head h2 { font-size: 17px; }
  .progress-card .card-head p { font-size: 12px; }
  .progress-track { height: 76px; margin-bottom: 8px; }
  .cane-shadow { stroke-width: 25; }
  .cane-track, .cane-progress { stroke-width: 18; }
  .progress-marker { top: 45%; }
  .progress-marker .bauble { width: 33px; height: 40px; }
  .progress-marker.final-table .bauble { width: 38px; height: 46px; }
  .progress-marker.money-bubble .bauble { width: 43px; height: 51px; }
  .progress-marker.champion .bauble { width: 49px; height: 58px; }
  .progress-marker b { display: none; }
  .progress-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-top: 7px; border-top: 1px solid #e4dfd4; }
  .progress-legend-item { display: flex; min-width: 0; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; line-height: 1.2; }
  .progress-legend-item strong { color: var(--pine-900); font-size: 12px; }
  .progress-legend-item i { width: 12px; height: 12px; flex: 0 0 auto; border: 2px solid var(--gold); border-radius: 50%; }
  .progress-legend-item.money i { border-color: #aab1b0; }
  .progress-legend-item.final i { border-color: #aa7447; }
  .progress-legend-item.done { opacity: .48; text-decoration: line-through; }
  .grid { display: block; }
  .rightcol { display: block; }
  .rightcol > .card:nth-child(2), .rightcol > .card:nth-child(3) { height: auto; }
  .high-hand .hand-title { font-size: 23px; }
  .hand-cards { gap: 4px; }
  .playing-card { width: 35px; height: 48px; font-size: 13px; }
  .best-hand-card { width: 39px; height: 55px; font-size: 14px; }
  .mini-card { min-width: 26px; height: 31px; font-size: 12px; }
  .table-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .tablebox { padding: 10px; }
  .mini-felt { aspect-ratio: 1.85 / 1; border-width: 7px; }
  .table-seat { width: 26%; }
  .seat-avatar { width: 21px; height: 21px; font-size: 12px; }
  .mini-seat-copy b { max-width: 55px; font-size: 12px; }
  .mini-seat-copy small { font-size: 12px; }
  .stack-tag { padding: 2px 4px; font-size: 12px; }
  .table-foot { font-size: 12px; }
  .detail-felt { min-height: 290px; aspect-ratio: 1.08 / 1; border-width: 11px; }
  .detail-seat { width: clamp(92px, 27vw, 118px); }
  .table-face { width: 30px; height: 30px; }
  .seat-index { left: calc(50% - 27px); top: -6px; width: 18px; height: 18px; font-size: 12px; }
  .seat-name-row b { max-width: 86px; font-size: 12px; }
  .seat-copy { gap: 1px; padding: 2px 3px; }
  .seat-copy small { font-size: 12px; }
  .seat-copy .stack-tag { display: none; }
  .role-chip { min-width: 24px; min-height: 18px; font-size: 12px; }
  .table-wrap { border-radius: 6px; }
  th, td { padding: 9px 6px; font-size: 12px; }
  th { font-size: 12px; }
  #leaderboard th:nth-child(1), #leaderboard td:nth-child(1), #leaderboard th:nth-child(4), #leaderboard td:nth-child(4) { display: none; }
  #playersTable th:nth-child(4), #playersTable td:nth-child(4) { display: none; }
  #executedTable th:nth-child(2), #executedTable td:nth-child(2) { display: none; }
  #detailRoster th:nth-child(1), #detailRoster td:nth-child(1), #detailRoster th:nth-child(5), #detailRoster td:nth-child(5) { display: none; }
  .player-avatar { width: 26px; height: 26px; }
  .player-cell { gap: 5px; }
  .player-name { font-size: 12px; }
  .table-choices { gap: 6px; }
  .table-choice { flex: 1 0 29%; justify-content: center; padding: 7px; font-size: 12px; }
  .chart-controls { grid-template-columns: minmax(0, 1fr); gap: 7px; }
  .chart-search-label { grid-row: 1; }
  .chart-controls input[type="search"] { grid-row: 2; }
  .chart-players { grid-row: 3; max-height: 100px; overflow-y: auto; }
  .chart-players label { min-height: 32px; font-size: 12px; }
  .chart-area svg { max-height: 240px; }
  .schedule-item { grid-template-columns: 48px minmax(0, 1fr) 40px; gap: 6px; padding: 10px 0; }
  .schedule-time, .schedule-state { font-size: 12px; }
  .schedule-item b { font-size: 12px; }
  .schedule-item small { font-size: 12px; }
  .feeditem { grid-template-columns: 28px minmax(0, 1fr); gap: 8px; }
  .feedicon { width: 27px; height: 27px; }
  .feeditem p { font-size: 12px; }
  .vote-card { padding: 16px 13px; }
  .vote-card h3 { font-size: 20px; }
  .rank-fields { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .vote-controls select { min-width: 0; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .photo { min-height: 140px; padding: 8px; }
  .photo span { font-size: 12px; }
  .raffle-layout { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .wheel-wrap { width: min(100%, 330px); }
  .wheel-center-spin { width: 70px; height: 70px; }
  .wheel-center-spin img { width: 32px; height: 32px; }
  .prize-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .prize { padding: 12px; }
  .prize-art { width: 40px; height: 40px; font-size: 21px; }
  .prize h3 { font-size: 15px; }
  .gulag-slots { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .gulag-slot { min-height: 62px; padding: 5px 3px; }
  .gulag-slot strong { font-size: 12px; }
  .gulag-slot small { font-size: 12px; }
  .reentry-controls { grid-template-columns: minmax(0, 1fr) minmax(86px, .6fr); }
  .reentry-controls .btn { grid-column: 1 / -1; width: 100%; }
  .form-two, .card-entry-grid { gap: 7px; }
  .card-picker-button { min-height: 66px; padding: 5px; }
  .visual-deck-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .modal-back { padding: 8px; }
  .modal { max-height: calc(100dvh - 16px - var(--safe-bottom)); padding: 17px 14px; border-radius: 10px; }
  .modal-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal-actions .btn { width: 100%; }
  .mobile-tabs { display: grid; }
  .toast { right: 12px; bottom: calc(74px + var(--safe-bottom)); left: 12px; max-width: none; text-align: center; }
  .welcome-screen { align-items: center; padding: max(15px, env(safe-area-inset-top)) 12px max(15px, env(safe-area-inset-bottom)); background-position: center; }
  .welcome-inner { min-height: min(100%, 780px); grid-template-rows: auto minmax(260px, 1fr) auto auto; }
  .welcome-kicker { max-width: 12ch; font-size: clamp(31px, 9vw, 42px); line-height: 1; }
  .tree-stage { width: 100%; height: clamp(280px, 48vh, 430px); }
  .tree-spin { height: 100%; }
  .tree-logo { top: 4%; width: 62px; }
  .welcome-elf { width: clamp(69px, 19vw, 94px); height: clamp(136px, 26vh, 195px); }
  .welcome-elf-1 { left: -1%; }
  .welcome-elf-2 { left: 15%; height: clamp(128px, 23vh, 174px); }
  .welcome-elf-3 { left: 31%; height: clamp(132px, 24vh, 180px); }
  .welcome-elf-4 { right: 15%; height: clamp(128px, 23vh, 174px); }
  .welcome-elf-5 { right: -1%; }
  .welcome-subtitle { max-width: 19ch; margin: 3px auto 11px; font-size: clamp(17px, 5vw, 22px); }
  .welcome-enter { min-width: min(250px, 86vw); min-height: 50px; }
}

@media (max-width: 380px) {
  .main { padding-inline: 10px; }
  .brand img { width: 34px; height: 34px; }
  .brand strong { font-size: 16px; }
  .topbar h1 { font-size: 24px; }
  .top-actions .btn { padding-inline: 8px; }
  .stats .stat { padding-inline: 7px; }
  .stat strong { font-size: 16px; }
  .card-head .btn.small { padding-inline: 7px; font-size: 12px; }
  .welcome-kicker { font-size: clamp(29px, 8.5vw, 36px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker-track { width: 100%; animation: none; white-space: normal; }
}

/* Phone data tables: keep the three useful columns legible. */
#leaderboardTable { width: 100%; }
.table-end-logo { position: absolute; z-index: 0; top: 50%; left: 50%; width: clamp(42px, 9%, 68px); aspect-ratio: 1; object-fit: contain; opacity: .32; pointer-events: none; transform: translate(-50%, -50%); }
.detail-felt .table-end-logo { opacity: .48; }

/* Gulag figures are compact measures, so stack each value over its label. */
.gulag-stats .stat { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 12px 8px; text-align: center; }
.gulag-stats .stat strong { order: -1; margin: 0; font-size: 24px; line-height: 1.05; }
.gulag-stats .stat label { font-size: 12px; line-height: 1.2; overflow-wrap: normal; }
.gulag-stats .stat > small { margin: 0; font-size: 11px; line-height: 1.2; overflow-wrap: normal; }

/* An empty raffle is an invitation to wait, not a disabled blank wheel. */
.wheel-wrap.is-empty { width: min(100%, 260px); }
.wheel-wrap.is-empty #raffleWheel { border-style: dashed; }
.wheel-wrap.is-empty .wheel-pointer,
.wheel-wrap.is-empty .wheel-center-spin { display: none; }

/* Welcome artwork: the tree fills its own row (never spills into the heading),
   and the logo sits on the tip as a round, glowing tree-topper. */
.tree-stage { height: clamp(320px, 62vh, 640px); margin-top: clamp(12px, 2.5vh, 28px); }
.tree-spin { left: 0; right: 0; height: 100%; transform: none; }
.tree-art { margin: 0 auto; }
.tree-logo { top: 0; width: clamp(58px, 7.5vw, 88px); aspect-ratio: 1; border-radius: 50%; border: 3px solid #f0c982; box-shadow: 0 0 0 3px rgb(255 236 180 / 35%), 0 0 22px 6px rgb(255 214 110 / 55%); }
.welcome-elf { transform: scale(1.16); transform-origin: center bottom; }

@media (max-width: 860px) {
  .gulag-stats .stat:nth-child(2) { border-right: 1px solid var(--line); }
  .gulag-stats .stat:nth-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 640px) {
  #leaderboardTable { table-layout: fixed; }
  #leaderboardTable th:nth-child(1), #leaderboardTable td:nth-child(1),
  #leaderboardTable th:nth-child(4), #leaderboardTable td:nth-child(4) { display: none; }
  #leaderboardTable th:nth-child(2), #leaderboardTable td:nth-child(2) { width: 45%; }
  #leaderboardTable th:nth-child(3), #leaderboardTable td:nth-child(3) { width: 29%; }
  #leaderboardTable th:nth-child(5), #leaderboardTable td:nth-child(5) { width: 26%; }
  #leaderboardTable th, #leaderboardTable td { padding: 9px 5px; overflow-wrap: normal; word-break: normal; }
  #leaderboardTable th { font-size: 11px; letter-spacing: .025em; line-height: 1.2; }
  #leaderboardTable .player-cell { gap: 5px; }
  #leaderboardTable .player-name { font-size: 12px; overflow-wrap: normal; word-break: normal; }
  #leaderboardTable td:nth-child(3) .chips { font-size: 13px; }
  #leaderboardTable .trend { display: grid; min-width: 0; grid-template-columns: 18px minmax(0, 1fr); gap: 2px 4px; overflow-wrap: normal; word-break: normal; }
  #leaderboardTable .trend-role { grid-column: 2; }
  .wheel-wrap.is-empty { width: min(100%, 230px); }
  .tree-stage { height: clamp(280px, 50vh, 440px); }
  .welcome-elf { transform: scale(1.16); }
  .tree-logo { width: 60px; }
}

/* Keep the action row compact; the knockout action now leads the dashboard. */
.topbar-compact { display: flex; justify-content: flex-start; margin-bottom: 10px; }
.topbar-compact .top-actions { width: 100%; justify-content: flex-start; }
.topbar-compact .live { margin-left: auto; }

/* Player rows stay readable on a phone without a fifth data column. */
#mainPlayersTable { width: 100%; table-layout: fixed; }
#mainPlayersTable th, #mainPlayersTable td { padding: 9px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#mainPlayersTable th:nth-child(1), #mainPlayersTable td:nth-child(1) { width: 42%; }
#mainPlayersTable th:nth-child(2), #mainPlayersTable td:nth-child(2) { width: 25%; }
#mainPlayersTable th:nth-child(3), #mainPlayersTable td:nth-child(3) { width: 13%; text-align: center; }
#mainPlayersTable th:nth-child(4), #mainPlayersTable td:nth-child(4) { width: 20%; }
#mainPlayersTable th { font-size: 11px; letter-spacing: .025em; }
#mainPlayersTable .player-cell { gap: 5px; }
#mainPlayersTable .player-cell > div { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#gulagRosterTable { width: 100%; table-layout: fixed; }
#gulagRosterTable th:first-child, #gulagRosterTable td:first-child { width: 62%; }
#gulagRosterTable th:last-child, #gulagRosterTable td:last-child { width: 38%; }
#gulagRosterTable .player-cell { gap: 8px; }
#gulagRosterTable .player-name { overflow-wrap: anywhere; }

/* The wheel title and its action take separate rows on narrow screens. */
@media (max-width: 640px) {
  .topbar-compact { display: block; margin-bottom: 10px; }
  .topbar-compact .top-actions { justify-content: flex-start; gap: 8px; }
  .topbar-compact .top-actions .live { display: none; }
  .raffle-wheel-card .card-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .raffle-wheel-card .card-head > div { min-width: 0; }
  .raffle-wheel-card .card-head > button { width: 100%; min-height: 48px; white-space: normal; }
  #mainPlayersTable th, #mainPlayersTable td { padding-inline: 4px; }
  #mainPlayersTable th { font-size: 11px; }
}

/* Fixed checkpoint labels replace the crowded timestamp strip. */
.chart-area svg { height: clamp(260px, 80vw, 340px); max-height: none; }
.chart-block-tick { stroke: #ded9cd; stroke-width: 1; stroke-dasharray: 2 5; }
.chart-event-marker { fill: #152720; font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 14px; paint-order: stroke; stroke: #fffdf8; stroke-width: 2px; stroke-linejoin: round; }
.chart-blocks { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0; margin: 2px 0 0; padding-left: 7.3%; color: var(--muted); }
.chart-blocks span { min-width: 0; overflow: hidden; font-size: 11px; line-height: 1.2; text-align: center; text-overflow: clip; white-space: nowrap; }

/* Keep the card tables recognisable at a glance in both seating views. */
.mini-felt.table-style-3 { width: min(100%, 330px); aspect-ratio: 1; margin: 8px auto; border: 9px solid #a28346; border-radius: 50%; background: #111312; box-shadow: inset 0 0 0 3px #d0b568; }
.detail-felt.table-style-3 { width: min(100%, 560px); min-height: 0; aspect-ratio: 1; margin-inline: auto; border: 14px solid #a28346; border-radius: 50%; background: #111312; box-shadow: inset 0 0 0 4px #d0b568, 0 8px 18px rgb(25 39 31 / 14%); }
.poker-deluxe-brand { position: absolute; z-index: 0; top: 50%; left: 50%; display: grid; width: 78px; height: 78px; align-content: center; justify-items: center; color: #e3c36d; background: radial-gradient(circle, #24221b, #111312 72%); border: 2px solid #c09b4d; border-radius: 50%; box-shadow: inset 0 0 0 3px rgb(210 176 93 / 30%); transform: translate(-50%, -50%); pointer-events: none; }
.poker-deluxe-brand::before { content: "PD"; font: 700 24px/1 Georgia, serif; letter-spacing: -.06em; }
.poker-deluxe-brand::after { content: "POKER DELUXE"; margin-top: 3px; font-size: 11px; font-weight: 900; letter-spacing: .04em; }
.mini-felt.table-style-3 .poker-deluxe-brand { width: 96px; height: 96px; }
.detail-felt.table-style-3 .poker-deluxe-brand { width: 130px; height: 130px; }
.detail-felt.table-style-3 .poker-deluxe-brand::before { font-size: 46px; }
.detail-felt.table-style-3 .poker-deluxe-brand::after { font-size: 11px; }
.mini-felt.table-style-4, .mini-felt.table-style-5, .detail-felt.table-style-4, .detail-felt.table-style-5 { aspect-ratio: 2 / 1; border: 0; border-radius: 14px; background: #176b47; box-shadow: none; }
.detail-felt.table-style-4, .detail-felt.table-style-5 { width: 100%; min-height: 0; margin-bottom: 18px; }
.table-seat-eliminated .seat-avatar { position: relative; filter: grayscale(.35); }
.table-seat-eliminated .seat-avatar::after { position: absolute; inset: 3px; content: ""; background: linear-gradient(45deg, transparent 43%, #b93632 46%, #b93632 54%, transparent 57%), linear-gradient(-45deg, transparent 43%, #b93632 46%, #b93632 54%, transparent 57%); }
.detail-seat.is-eliminated .table-face { position: relative; filter: grayscale(.35); }
.detail-seat.is-eliminated .table-face::after { position: absolute; inset: 4px; content: ""; background: linear-gradient(45deg, transparent 43%, #b93632 46%, #b93632 54%, transparent 57%), linear-gradient(-45deg, transparent 43%, #b93632 46%, #b93632 54%, transparent 57%); }

/* Owner review controls stay with the item they affect. */
.profile-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.profile-stats .stat { display: flex; min-width: 0; min-height: 82px; flex-direction: column; justify-content: center; gap: 4px; padding: 12px; }
.profile-stats .stat + .stat { border-left: 1px solid var(--line); }
.profile-stats .stat strong { order: -1; margin: 0; font-size: 21px; line-height: 1.1; }
.profile-stats .stat label { overflow-wrap: normal; }
.photo-sync-note { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.photo-delete { position: absolute; top: 8px; right: 8px; z-index: 2; min-width: 44px; min-height: 44px; padding: 7px 10px; color: #fff; background: #761f1d; border: 1px solid rgb(255 255 255 / 55%); border-radius: 5px; font: inherit; font-size: 12px; font-weight: 750; }
.photo-profile-delete { margin: -4px 0 12px; }
.prize .btn { margin-top: 10px; }

.raffle-win-banner { position: fixed; top: 42%; left: 50%; z-index: 1; width: min(90vw, 520px); padding: 18px 24px; color: #fff8e8; background: #18352b; border: 2px solid #e7c66f; border-radius: 12px; box-shadow: 0 14px 50px rgb(0 0 0 / 35%); font: 700 clamp(22px, 5vw, 36px)/1.15 Georgia, serif; text-align: center; opacity: 0; transform: translate(-50%, -50%) scale(.72); }
.fireworks-active .raffle-win-banner { animation: raffle-winner-pop 2.5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes raffle-winner-pop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.72); } 14%, 76% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(.94); } }
@media (max-width: 640px) {
  .mini-felt.table-style-3 { width: min(100%, 300px); }
  .detail-felt.table-style-4, .detail-felt.table-style-5 { aspect-ratio: 1.8 / 1; }
  
}

/* Keep the table silhouette identical between the overview and its detail view. */
.mini-felt.table-style-1, .mini-felt.table-style-2, .detail-felt.table-style-1, .detail-felt.table-style-2 { aspect-ratio: 1.85 / 1; }
.detail-felt.table-style-1, .detail-felt.table-style-2 { width: 100%; min-height: 0; }
.mini-felt.table-style-4, .mini-felt.table-style-5, .detail-felt.table-style-4, .detail-felt.table-style-5 { aspect-ratio: 2 / 1; }
.detail-felt.table-style-4, .detail-felt.table-style-5 { width: 100%; min-height: 0; }
.chart-days, .chart-blocks { display: grid; margin: 3px 1.6% 0 7.3%; grid-template-columns: repeat(8, minmax(0, 1fr)); text-align: center; }
.chart-days { grid-template-columns: repeat(2, minmax(0, 1fr)); color: var(--pine-800); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.chart-blocks { margin-top: 1px; padding: 0; }
.chart-blocks span { font-size: 11px; letter-spacing: 0; }

@media (max-width: 640px) {
  .detail-felt.table-style-3 { width: min(100%, 420px); }
  .mini-felt.table-style-4, .mini-felt.table-style-5, .detail-felt.table-style-4, .detail-felt.table-style-5 { aspect-ratio: 2 / 1; }
  
}

.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-empty { grid-column: 1 / -1; margin: 0; padding: 30px 16px; color: var(--muted); background: #f1eee6; border: 1px dashed var(--line); border-radius: 8px; text-align: center; }

@media (max-width: 640px) {  }

/* ===== 2026-11-27 refinements ===================================== */

/* Table 1: the official WSONP felt. A stadium-shaped frame crops the artwork's
   ends at narrower ratios, so the logos and board boxes stay centred. */
.mini-felt.table-style-1:not(.table-kind-gulag),
.detail-felt.table-style-1:not(.table-kind-gulag) {
  aspect-ratio: 2.25 / 1; border: 0; border-radius: 9999px;
  background: #050505 url("wsonp-table-felt.webp") center / cover no-repeat;
  box-shadow: 0 0 0 3px #1c1c1c, 0 6px 16px rgb(10 14 12 / 28%);
}
.detail-felt.table-style-1:not(.table-kind-gulag) { aspect-ratio: 2.5 / 1; }
.table-style-1:not(.table-kind-gulag) .table-end-logo,
.table-style-1:not(.table-kind-gulag) .mini-table-brand { display: none; }

/* Table 2 and the Gulag tables: a squarer poker-table oval with a padded rail. */
.mini-felt.table-style-2, .detail-felt.table-style-2,
.mini-felt.table-kind-gulag, .detail-felt.table-kind-gulag {
  aspect-ratio: 1.55 / 1; border-radius: 36% / 50%;
  border: 9px solid #5a3b27; box-shadow: inset 0 0 0 3px #4f8f69, inset 0 0 28px rgb(0 0 0 / 28%);
}
.detail-felt.table-style-2, .detail-felt.table-kind-gulag { border-width: 16px; }
.mini-felt.table-kind-gulag, .detail-felt.table-kind-gulag {
  background: radial-gradient(ellipse at center, #3c4441 0%, #262c2a 70%);
  border-color: #3a3a3a; box-shadow: inset 0 0 0 3px #7d2f2b, inset 0 0 28px rgb(0 0 0 / 40%);
}
.table-kind-gulag .table-end-logo, .table-kind-gulag .mini-table-brand { display: none; }

/* Card picker: one row per suit, ranks 2 → A. */
.deck-suit-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: center; gap: 6px; margin-bottom: 8px; }
.deck-suit-label { color: var(--pine-950); font-size: 20px; line-height: 1; text-align: center; }
.deck-suit-label.red { color: #b33332; }
.deck-suit-row .visual-deck-grid { grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 4px; }
.deck-suit-row .card-choice { min-height: 50px; padding: 2px; font-size: 13px; }
.card-picker-dialog { width: min(100%, 720px); }

@media (max-width: 640px) {
  /* Seat avatars only on the small table previews; names are in the list underneath. */
  .mini-felt .mini-seat-copy { display: none; }
  .mini-felt .table-seat { width: auto; }
  .mini-felt.table-style-1:not(.table-kind-gulag) { aspect-ratio: 2 / 1; }
  .detail-felt.table-style-1:not(.table-kind-gulag) { min-height: 0; aspect-ratio: 1.15 / 1; }
  .mini-felt.table-style-2, .mini-felt.table-kind-gulag { aspect-ratio: 1.6 / 1; border-width: 6px; }
  .detail-felt.table-style-2, .detail-felt.table-kind-gulag { min-height: 0; aspect-ratio: 1.1 / 1; border-width: 10px; }
  #page-tableDetail th:nth-child(1), #page-tableDetail td:nth-child(1),
  #page-tableDetail th:nth-child(5), #page-tableDetail td:nth-child(5) { display: none; }
  #page-tableDetail th { white-space: nowrap; }

  /* Tighter phone layout: less padding, same text sizes. */
  .main { padding: 10px 8px 22px; }
  .card { margin-bottom: 8px; padding: 10px 9px; }
  .card > h2 { margin-bottom: 8px; font-size: 18px; }
  .card-head { margin-bottom: 8px; }
  .card-head h2 { font-size: 17px; }
  .card-head p { margin-top: 2px; }
  .page-title { margin-bottom: 8px; }
  .page-title h2 { font-size: 25px; }
  .page-title .subtle { margin-top: 2px; }
  .topbar { gap: 6px; margin-bottom: 8px; }
  .top-actions .btn { min-height: 38px; }
  .hand-ticker { margin-bottom: 8px; padding: 7px 8px; }
  .stats { margin-bottom: 8px; }
  .stat { min-height: 62px; padding: 7px 8px; }
  .tablebox { padding: 7px; }
  .tablebox > strong { margin-bottom: 5px; }
  .table-grid { gap: 7px; }
  .table-seat-list { margin-top: 5px; }
  .table-list-row { padding: 4px 2px; gap: 5px; }
  th, td { padding: 7px 5px; }
  .feeditem { padding: 8px 0; }
  .schedule-item { padding: 7px 0; }
  .field { margin-bottom: 10px; }
  .modal { padding: 14px 11px; }
  .card-picker-dialog { padding: 12px 10px; }
  .deck-suit-row { grid-template-columns: 16px minmax(0, 1fr); gap: 4px; margin-bottom: 6px; }
  .deck-suit-label { font-size: 16px; }
  .deck-suit-row .visual-deck-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
  .deck-suit-row .card-choice { min-height: 42px; font-size: 12px; }
}
