/* House of Cards — shared styles for the player app, staff console, TV clock and setup. */
:root {
  --bg: #0D0D0F;
  --surface: #17171A;
  --surface-2: #1E1E22;
  --nav: #121214;
  --line: #2A2A2E;
  --line-2: #3A3A40;
  --text: #F1F1F3;
  --text-2: #C9C9CF;
  --muted: #9A9AA2;
  --silver: #D4D7DC;
  --on-silver: #111113;
  --tint: #26262A;
  --open: #5CC8B0;
  --open-tint: #13332D;
  --warn: #F2A65A;
  --danger: #F07A7A;
  --radius: 14px;
  --display: 'Cinzel', Georgia, serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 15px; line-height: 1.45; }
a { color: var(--silver); }
a:hover { color: #fff; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 2px; }
.display { font-family: var(--display); font-weight: 700; letter-spacing: 1px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.open { color: var(--open); font-weight: 600; }
.warn { color: var(--warn); font-weight: 600; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 10px; border: 0; background: var(--silver); color: var(--on-silver); font-weight: 700; font-size: 14px;
  text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #fff; color: var(--on-silver); }
.btn.big { min-height: 54px; font-size: 16px; border-radius: 12px; width: 100%; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn.ghost:hover { border-color: var(--silver); color: #fff; }
.btn.outline { background: transparent; color: var(--silver); border: 1px solid var(--silver); }
.btn.danger { background: transparent; color: var(--danger); border: 1px solid #5a3236; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: default; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.input, .field input, .field select, .field textarea {
  min-height: 46px; width: 100%; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface);
  color: var(--text); padding: 0 14px; font-size: 16px; }
.field textarea { padding: 12px 14px; min-height: 120px; line-height: 1.5; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--silver); outline: none; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--silver); margin: 0; flex-shrink: 0; }
.seg { padding: 4px; background: var(--surface); border-radius: 12px; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.seg button { min-height: 44px; border-radius: 9px; border: 0; background: transparent; color: var(--text-2); font-weight: 600; font-size: 14px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--silver); color: var(--on-silver); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line-2); background: transparent;
  color: var(--text-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.notice.err { border-color: #5a3236; color: #F6B1B1; }
.notice.ok { border-color: #1f5248; color: #A6E6D6; }

/* ---------- cards & rows ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.card.hl { background: var(--surface-2); border-color: var(--silver); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card-head h2, .card-head h3 { margin: 0; font-family: var(--display); font-size: 19px; letter-spacing: 1px; }
.rows > .row + .row { border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.row .grow { flex: 1; min-width: 0; }
.stakes { min-width: 56px; height: 44px; padding: 0 6px; border-radius: 8px; border: 1px solid var(--line-2); display: flex;
  align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--silver); flex-shrink: 0; }
.stakes.dashed { border-style: dashed; color: var(--muted); }
.gname { font-weight: 600; font-size: 15px; }
.meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12px; font-weight: 700;
  background: var(--tint); color: var(--silver); white-space: nowrap; }
.badge.live { background: var(--open-tint); color: var(--open); }
.badge.plain { background: transparent; border: 1px solid var(--line-2); color: var(--muted); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 4px; background: var(--open); display: inline-block; flex-shrink: 0; }
.empty { padding: 18px 0; color: var(--muted); font-size: 14px; text-align: center; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 24px; font-weight: 700; margin-top: 4px; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 18px;
  border-radius: 12px; font-weight: 600; font-size: 14px; z-index: 50; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.toast.err { background: #F6B1B1; color: #2a0b0b; }

/* ---------- player app ---------- */
.app { max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.app-main { flex: 1; padding: 16px 20px 110px; display: flex; flex-direction: column; gap: 14px; }
.app-head { padding: calc(16px + env(safe-area-inset-top)) 20px 0; display: flex; align-items: center; gap: 12px; }
.app-head h1 { margin: 0; font-family: var(--display); font-size: 28px; letter-spacing: 1px; flex: 1; }
.head-logo { width: 104px; height: 73px; object-fit: contain; }
.icon-btn { width: 44px; height: 44px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; text-decoration: none; }
.back { min-height: 44px; display: inline-flex; align-items: center; gap: 4px; padding: 0 8px; text-decoration: none; font-weight: 600; font-size: 14px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--line); background: var(--nav); z-index: 20;
  padding: 8px 8px calc(10px + env(safe-area-inset-bottom)); }
.tabbar nav { max-width: 520px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tabbar a { min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  text-decoration: none; color: #8A8A92; font-size: 11px; font-weight: 600; }
.tabbar a[aria-current="page"] { color: var(--text); font-weight: 700; }
.spot { width: 60px; height: 60px; border-radius: 30px; background: var(--silver); color: var(--on-silver); display: flex; flex-direction: column;
  align-items: center; justify-content: center; flex-shrink: 0; }
.spot small { font-size: 10px; font-weight: 700; letter-spacing: .8px; }
.spot b { font-family: var(--display); font-size: 22px; line-height: 1; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.days button { min-height: 56px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; cursor: pointer; }
.days button span { font-size: 11px; font-weight: 600; }
.days button b { font-size: 17px; }
.days button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.clock-card { text-align: center; padding: 20px; }
.clock-level { font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: 3px; color: var(--silver); }
.clock-time { font-weight: 700; font-size: 92px; line-height: 1; margin-top: 8px; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.bar { height: 6px; border-radius: 3px; background: var(--line); margin-top: 16px; overflow: hidden; }
.bar > div { height: 6px; background: var(--silver); border-radius: 3px; transition: width 1s linear; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.agreement { overflow-y: auto; max-height: 46vh; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 16px;
  font-size: 14px; line-height: 1.55; color: var(--text-2); }
.agreement h3 { margin: 14px 0 4px; font-size: 14px; color: var(--text); font-family: var(--body); }
.agreement p { margin: 0 0 10px; }
.steps-bar { height: 4px; border-radius: 2px; background: var(--line); }
.steps-bar > div { height: 4px; border-radius: 2px; background: var(--silver); }
.welcome { padding: calc(56px + env(safe-area-inset-top)) 24px 32px; display: flex; flex-direction: column; gap: 14px; }
.welcome .logo { display: block; width: 240px; margin: 0 auto 16px; }
.welcome h1 { margin: 8px 0 0; text-align: center; font-family: var(--display); font-size: 24px; letter-spacing: 1px; }
.center { text-align: center; }
.install-tip { display: flex; gap: 12px; align-items: flex-start; }

/* ---------- staff console ---------- */
.staff { min-height: 100vh; display: flex; flex-direction: column; }
.staff-top { background: var(--nav); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.staff-top .in { max-width: 1280px; margin: 0 auto; padding: 10px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.staff-top img { width: 58px; height: 41px; object-fit: contain; }
.staff-tabs { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 360px; }
.staff-tabs a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 8px; text-decoration: none;
  color: var(--text-2); font-weight: 600; font-size: 14px; }
.staff-tabs a[aria-current="page"] { background: var(--tint); color: #fff; }
.staff-main { width: 100%; max-width: 1280px; margin: 0 auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar h1 { margin: 0; font-family: var(--display); font-size: 24px; letter-spacing: 1px; flex: 1 1 auto; }
.floor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; align-items: start; }
.game-card .controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.num { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.num button { width: 40px; min-height: 40px; border: 0; background: var(--surface-2); cursor: pointer; font-size: 18px; color: var(--text); }
.num span { min-width: 40px; text-align: center; font-weight: 700; padding: 0 6px; }
.num-wrap { display: flex; flex-direction: column; gap: 4px; }
.entry { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.entry .grow { flex: 1 1 150px; }
.entry .acts { margin-left: auto; }
.entry .pos { width: 30px; height: 30px; border-radius: 15px; background: var(--tint); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0; }
.entry.called .pos { background: var(--silver); color: var(--on-silver); }
.entry .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mini { min-height: 34px; min-width: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent;
  color: var(--text); font-size: 12px; font-weight: 600; cursor: pointer; }
.mini.primary { background: var(--silver); color: var(--on-silver); border-color: var(--silver); }
.mini:hover { border-color: var(--silver); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
table.data { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr.click { cursor: pointer; }
table.data tr.click:hover td { background: var(--surface-2); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.two-col { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.two-col > .main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.two-col > .side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.levels { width: 100%; border-collapse: collapse; font-size: 14px; }
.levels th { text-align: left; font-size: 12px; color: var(--muted); padding: 6px; }
.levels td { padding: 4px 6px; }
.levels input { width: 100%; min-height: 38px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); padding: 0 8px; }
.levels tr.brk td { background: var(--tint); }
.clock-ctl { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.modal-back { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 40; display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.modal { width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.modal h2 { margin: 0; font-family: var(--display); font-size: 20px; letter-spacing: 1px; }
@media (min-width: 700px) { .modal-back { align-items: center; } }
.login-box { max-width: 380px; margin: 8vh auto; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.login-box img { width: 200px; margin: 0 auto 8px; display: block; }

/* ---------- TV display ---------- */
.tv { min-height: 100vh; padding: 3vh 4vw; display: flex; flex-direction: column; gap: 3vh; }
.tv-top { display: flex; align-items: center; gap: 2vw; }
.tv-top img { height: 9vh; width: auto; }
.tv-top h1 { margin: 0; font-family: var(--display); font-size: 5vh; letter-spacing: .3vh; flex: 1; }
.tv-mid { flex: 1; display: grid; grid-template-columns: 2fr 1fr; gap: 3vw; align-items: stretch; }
.tv-clock { background: var(--surface); border: 1px solid var(--line); border-radius: 3vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 3vh; text-align: center; }
.tv-clock .lvl { font-family: var(--display); font-size: 5vh; letter-spacing: .6vh; color: var(--silver); font-weight: 700; }
.tv-clock .time { font-size: 26vh; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.5vh; }
.tv-clock .blinds { font-size: 9vh; font-weight: 700; }
.tv-clock .sub { font-size: 3.4vh; color: var(--muted); }
.tv-clock .bar { width: 80%; height: 1.2vh; border-radius: 1vh; }
.tv-clock .bar > div { height: 1.2vh; }
.tv-side { display: grid; grid-template-rows: repeat(4, 1fr); gap: 2vh; }
.tv-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 2vh; padding: 2vh 2vw; display: flex; flex-direction: column; justify-content: center; }
.tv-stat .k { font-size: 2.6vh; color: var(--muted); }
.tv-stat .v { font-size: 6vh; font-weight: 700; }
.tv-paused { color: var(--warn); font-size: 4vh; font-weight: 700; letter-spacing: .4vh; }
@media (max-aspect-ratio: 1/1) { .tv-mid { grid-template-columns: 1fr; } .tv-side { grid-template-rows: none; grid-template-columns: repeat(2, 1fr); } }

/* ---------- setup page ---------- */
.page-plain .setup { max-width: 560px; margin: 0 auto; padding: 32px 20px 64px; display: flex; flex-direction: column; gap: 16px; }
.setup-logo { width: 200px; margin: 0 auto; display: block; }
.setup h1 { text-align: center; margin: 0; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; margin: 0; }
.form legend { padding: 0 6px; font-weight: 700; color: var(--text-2); font-size: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.form input { min-height: 46px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); padding: 0 14px; font-size: 16px; }
.steps { line-height: 1.8; }
.form label.check { flex-direction: row; align-items: center; font-size: 14px; font-weight: 400; color: var(--text); }
.form legend.label { padding: 0; }

/* optional "who's waiting" list on the player app */
.names summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--silver); min-height: 32px; display: flex; align-items: center; }
.names ol { margin: 4px 0 2px; padding-left: 22px; font-size: 14px; color: var(--text-2); }
.names li { padding: 2px 0; }
.names li.me { color: var(--text); font-weight: 700; }

/* =====================================================================
   Premium look (v1.3): metallic silver to match the logo, chip-style
   stakes, glass tab bar, soft depth and motion.
   ===================================================================== */
:root {
  --metal: linear-gradient(180deg, #FFFFFF 0%, #E3E5E9 38%, #B8BCC3 62%, #EDEFF2 100%);
  --metal-text: linear-gradient(180deg, #FFFFFF 10%, #D9DCE1 45%, #9EA2AA 70%, #E6E8EC 100%);
  --edge: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.03) 40%, rgba(255,255,255,.06));
  --glow: 0 18px 40px rgba(0,0,0,.45);
  --on-metal: #121214;
  --card-a: #1A1A1E; --card-b: #141417;
  --halo: rgba(212,215,220,.13);
  --halo-2: rgba(92,200,176,.05);
  --chip-a: #D4D7DC; --chip-b: #2A2A2E; --chip-face: #1B1B1F;
  --hl-edge: linear-gradient(180deg, #F1F2F4, #8D9199 60%, #D4D7DC);
}
body {
  background:
    radial-gradient(1200px 600px at 50% -220px, var(--halo), transparent 70%),
    radial-gradient(800px 500px at 110% 30%, var(--halo-2), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
@media (prefers-reduced-motion: no-preference) {
  .fade-in > * { animation: rise .45s cubic-bezier(.2,.7,.2,1) both; }
  .fade-in > *:nth-child(2) { animation-delay: .05s; }
  .fade-in > *:nth-child(3) { animation-delay: .1s; }
  .fade-in > *:nth-child(4) { animation-delay: .15s; }
  .fade-in > *:nth-child(n+5) { animation-delay: .2s; }
  .dot { animation: pulse 2s ease-out infinite; }
  .btn:not([disabled]):active { transform: scale(.98); }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(92,200,176,.55); } 70% { box-shadow: 0 0 0 7px rgba(92,200,176,0); } 100% { box-shadow: 0 0 0 0 rgba(92,200,176,0); } }

/* metallic headings */
.display, .app-head h1, .card-head h2, .card-head h3, .toolbar h1 {
  background: var(--metal-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.badge, .badge * { -webkit-text-fill-color: currentColor; }

/* metallic primary buttons */
.btn { background: var(--metal); color: var(--on-metal); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(0,0,0,.18), 0 6px 18px rgba(0,0,0,.35);
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease; }
.btn:hover { background: var(--metal); filter: brightness(1.06); color: var(--on-metal); }
.btn.ghost, .btn.outline, .btn.danger { box-shadow: none; }
.btn.ghost { background: rgba(255,255,255,.03); }
.btn.ghost:hover { background: rgba(255,255,255,.07); filter: none; }
.btn.outline { background: transparent; }
.seg button[aria-pressed="true"] { background: var(--metal); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 4px 12px rgba(0,0,0,.35); }
.chip[aria-pressed="true"] { background: var(--metal); border-color: transparent; color: var(--on-metal); }
.seg button[aria-pressed="true"], .mini.primary { color: var(--on-metal); }
.spot { color: #121214; }
.mini.primary { background: var(--metal); }

/* cards with a fine silver edge */
.card, .stat, .modal, .table-wrap {
  border: 1px solid transparent;
  background: linear-gradient(180deg, var(--card-a), var(--card-b)) padding-box, var(--edge) border-box;
  box-shadow: var(--glow);
}
.card.hl { background: linear-gradient(180deg, var(--surface-2), var(--card-b)) padding-box, var(--hl-edge) border-box; }
.seg { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }

/* stakes as poker chips */
.stakes {
  width: 58px; min-width: 58px; height: 58px; padding: 0; border-radius: 50%; border: 0; position: relative; color: #F1F1F3; font-size: 15px;
  background:
    radial-gradient(circle at 50% 50%, var(--chip-face) 0 52%, transparent 53%),
    repeating-conic-gradient(var(--chip-a) 0 12deg, var(--chip-b) 12deg 30deg);
  box-shadow: 0 0 0 2px #0D0D0F, 0 0 0 3px rgba(212,215,220,.35), 0 6px 14px rgba(0,0,0,.5);
}
.stakes::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; border: 1px dashed rgba(212,215,220,.45); pointer-events: none; }
.stakes.dashed { background: radial-gradient(circle at 50% 50%, #151518 0 52%, transparent 53%), repeating-conic-gradient(#55555C 0 12deg, #1D1D21 12deg 30deg); color: var(--muted); }
.spot { background: radial-gradient(circle at 50% 50%, #F4F5F7 0 54%, transparent 55%), repeating-conic-gradient(#F4F5F7 0 12deg, #9EA2AA 12deg 30deg);
  box-shadow: 0 0 0 2px #0D0D0F, 0 0 0 3px rgba(212,215,220,.5), 0 8px 18px rgba(0,0,0,.5); width: 64px; height: 64px; border-radius: 50%; }

/* home hero */
.hero { position: relative; padding: calc(18px + env(safe-area-inset-top)) 20px 0; text-align: center; }
.hero-actions { position: absolute; right: 16px; top: calc(14px + env(safe-area-inset-top)); display: flex; gap: 8px; }
.hero-logo { width: 190px; margin: 16px auto 0; display: block; filter: drop-shadow(0 10px 30px rgba(212,215,220,.18)); }
.hero-hello { margin-top: 6px; color: var(--muted); font-size: 14px; }
.hero-hello b { color: var(--text); }
.hero-stats { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 16px; overflow: hidden;
  border: 1px solid transparent; background: linear-gradient(180deg, var(--card-a), var(--card-b)) padding-box, var(--edge) border-box; box-shadow: var(--glow); }
.hero-stats > div { padding: 12px 6px; display: flex; flex-direction: column; gap: 2px; }
.hero-stats > div + div { border-left: 1px solid var(--line); }
.hero-stats b { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }

/* glass tab bar */
.tabbar { background: rgba(14,14,16,.78); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); }
.tabbar a[aria-current="page"] { position: relative; }
.tabbar a[aria-current="page"]::before { content: ''; position: absolute; top: -9px; width: 28px; height: 3px; border-radius: 2px; background: var(--metal); }

/* clocks */
.clock-time, .tv-clock .time { background: var(--metal-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bar > div { background: var(--metal); }

/* news with flyers */
.news-card { padding: 0; overflow: hidden; }
.news-img { display: block; width: 100%; max-height: 420px; object-fit: cover; background: #0D0D0F; }
.news-in { padding: 14px 16px 16px; }
.kicker { font-size: 11px; font-weight: 800; letter-spacing: 1.6px; color: var(--silver); }

/* must-see announcement screen */
.must { min-height: 100vh; min-height: 100dvh; max-width: 560px; margin: 0 auto; padding: calc(28px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 16px; }
.must-top { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.must-emblem { width: 64px; height: 64px; filter: drop-shadow(0 8px 24px rgba(212,215,220,.25)); }
.must-kicker { font-size: 12px; font-weight: 800; letter-spacing: 2px; color: var(--silver); margin-top: 6px; }
.must-img { width: 100%; border-radius: 16px; box-shadow: var(--glow); border: 1px solid rgba(255,255,255,.08); }
.must-title { margin: 4px 0 0; font-size: 30px; text-align: center; line-height: 1.15; }
.must-body { font-size: 17px; line-height: 1.6; color: var(--text-2); white-space: pre-line; text-align: center; flex: 1; }

/* staff console touches */
.staff-top { background: rgba(14,14,16,.85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.staff-tabs a[aria-current="page"] { background: rgba(255,255,255,.08); box-shadow: inset 0 -2px 0 #D4D7DC; }
.game-card .stakes { width: 52px; min-width: 52px; height: 52px; font-size: 14px; }

/* =====================================================================
   Color themes (Settings → Look & feel). Silver is the default above.
   ===================================================================== */
html[data-theme="gold"] {
  --silver: #E9C46A; --on-silver: #1A1406; --tint: #2A2416;
  --metal: linear-gradient(180deg, #FFF4CC 0%, #F0CF74 38%, #B8862B 64%, #F6DD8E 100%);
  --metal-text: linear-gradient(180deg, #FFF6D6 8%, #F0CF74 42%, #B8862B 72%, #F3D98A 100%);
  --on-metal: #1A1406; --halo: rgba(233,196,106,.16); --halo-2: rgba(233,196,106,.05);
  --chip-a: #E9C46A; --chip-b: #3A2E14; --chip-face: #1C1810;
  --hl-edge: linear-gradient(180deg, #FFF0B8, #B8862B 60%, #E9C46A);
}
html[data-theme="red"] {
  --silver: #F2F2F4; --tint: #3A1418; --line: #33282A; --line-2: #4A3135;
  --metal: linear-gradient(180deg, #FF5A5F 0%, #D7262E 45%, #9E1219 70%, #E2343B 100%);
  --metal-text: linear-gradient(180deg, #FFFFFF 10%, #F3D9DA 45%, #C9A0A3 72%, #FFFFFF 100%);
  --on-metal: #FFFFFF; --halo: rgba(215,38,46,.22); --halo-2: rgba(215,38,46,.07);
  --card-a: #1E1416; --card-b: #160F10; --surface: #1A1213; --surface-2: #241718; --nav: #140D0E;
  --chip-a: #E0262F; --chip-b: #F4F4F4; --chip-face: #1A0E10;
  --hl-edge: linear-gradient(180deg, #FF7A7F, #9E1219 60%, #E2343B);
}
html[data-theme="red"] .btn.ghost, html[data-theme="red"] .btn.outline { color: #F1F1F3; }
html[data-theme="felt"] {
  --bg: #071A13; --surface: #0D241B; --surface-2: #123024; --nav: #06150F; --line: #1D3B2E; --line-2: #2A5040;
  --silver: #E9C46A; --tint: #1C3328; --muted: #9DB3A8; --text-2: #CFDDD5;
  --metal: linear-gradient(180deg, #FFF4CC 0%, #F0CF74 38%, #B8862B 64%, #F6DD8E 100%);
  --metal-text: linear-gradient(180deg, #FFF6D6 8%, #F0CF74 42%, #B8862B 72%, #F3D98A 100%);
  --on-metal: #1A1406; --halo: rgba(46,160,110,.28); --halo-2: rgba(233,196,106,.06);
  --card-a: #0F2A20; --card-b: #0A2018;
  --chip-a: #E9C46A; --chip-b: #0B3A28; --chip-face: #0A2018;
  --hl-edge: linear-gradient(180deg, #FFF0B8, #B8862B 60%, #E9C46A);
}
html[data-theme="royal"] {
  --bg: #0B0A1A; --surface: #15132B; --surface-2: #1D1A3A; --nav: #0A0918; --line: #2A2650; --line-2: #3A356A;
  --silver: #C9B8FF; --tint: #231F45; --muted: #A39FC4; --text-2: #D6D3EE;
  --metal: linear-gradient(180deg, #F1EAFF 0%, #C9B8FF 38%, #7E64E0 66%, #DCD0FF 100%);
  --metal-text: linear-gradient(180deg, #FFFFFF 8%, #DCD0FF 44%, #9A86EC 72%, #EEE8FF 100%);
  --on-metal: #120E2A; --halo: rgba(126,100,224,.26); --halo-2: rgba(233,196,106,.05);
  --card-a: #17153A; --card-b: #110F2B;
  --chip-a: #C9B8FF; --chip-b: #2A2160; --chip-face: #110F2B;
  --hl-edge: linear-gradient(180deg, #F1EAFF, #7E64E0 60%, #C9B8FF);
}
/* club photo behind the home logo (Settings → Look & feel) */
.hero.has-photo { margin: 0; padding-bottom: 4px; }
.hero-photo { position: absolute; inset: 0 0 auto 0; height: 300px; background-size: cover; background-position: center; z-index: -1;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 30%, transparent 100%); opacity: .55; }
.hero { isolation: isolate; }
.theme-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.theme-swatches button { border: 2px solid transparent; border-radius: 12px; padding: 8px; background: rgba(255,255,255,.04); color: var(--text); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.theme-swatches button[aria-pressed="true"] { border-color: var(--silver); }
.theme-swatches .sw { width: 100%; height: 38px; border-radius: 8px; }

/* privacy protection (agreement + online club pages) */
#wm { position: fixed; inset: 0; z-index: 35; pointer-events: none; background-repeat: repeat; }
body.protect #app, body.protect #app *:not(input):not(textarea):not(select) { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.privacy-blur #app { filter: blur(22px); }
body.privacy-blur #wm { background-color: rgba(0,0,0,.6); }

/* ---------- 1.6: suggestion board, owner messages ---------- */
.tabbar a span { position: relative; }
.tabbar a { font-size: 11px; }
.tab-dot { position: absolute; top: -3px; right: -9px; width: 8px; height: 8px; border-radius: 4px; background: #F2A65A; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 11px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-2); }
.pill.st-planned { border-color: #2b6a57; color: #A6E6D6; }
.pill.st-done { background: #1f5248; border-color: #1f5248; color: #DFF7EF; }
.pill.st-review { border-color: #6d5a2a; color: #F2D79A; }
.pill.st-declined { color: var(--muted); }
.owner-card { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--text); }
.idea { padding: 14px 16px 10px; }
.idea-link { display: block; text-decoration: none; color: var(--text); }
.idea-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.idea h2 { margin: 6px 0 2px; font-size: 17px; line-height: 1.3; }
.idea-body { margin: 2px 0 8px; color: var(--text-2); font-size: 14px; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.idea.open .idea-body { -webkit-line-clamp: unset; display: block; }
.staff-reply { margin: 6px 0 8px; padding: 10px 12px; border-radius: 10px; background: var(--tint); font-size: 14px; }
.idea-actions { display: flex; gap: 6px; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.like { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 20px; border: 0; background: transparent; color: var(--text-2); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.like[aria-pressed="true"] { color: #FF6B78; }
.like[aria-pressed="true"] svg { fill: #FF6B78; stroke: #FF6B78; }
.comment { padding: 10px 0; border-bottom: 1px solid var(--line); }
.comment:last-of-type { border-bottom: 0; }
.thread { display: flex; flex-direction: column; gap: 10px; margin: 6px 0; }
.bubble { max-width: 86%; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.bubble.me { align-self: flex-end; background: var(--tint); border-color: transparent; }
.bubble.them { align-self: flex-start; }
.inbox-tabs { display: flex; gap: 6px; flex-wrap: wrap; }

/* Staff header on phones: logo + name on one row, sections in one swipeable row underneath. */
@media (max-width: 760px) {
  .staff-top .in { padding: 8px 12px; gap: 6px 10px; flex-wrap: wrap; }
  .staff-top img { width: 44px; height: 31px; }
  .staff-top .in > .small { margin-left: auto; font-size: 12px; }
  .staff-top .in > .btn.sm { min-height: 34px; padding: 0 10px; }
  .staff-tabs { order: 3; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -12px; padding: 0 12px 2px; }
  .staff-tabs::-webkit-scrollbar { display: none; }
  .staff-tabs a { flex-shrink: 0; min-height: 38px; padding: 0 12px; white-space: nowrap; }
}

/* ---------- 1.7: online game banner ---------- */
.promo-banner { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px; border-radius: 20px; overflow: hidden; isolation: isolate;
  text-decoration: none; color: #fff; border: 1.5px solid color-mix(in srgb, var(--pb, var(--chip-a, #D4D7DC)) 75%, #fff);
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--pb, var(--chip-a, #D4D7DC)) 55%, transparent), transparent 60%),
    linear-gradient(140deg, color-mix(in srgb, var(--pb, var(--chip-a, #D4D7DC)) 42%, #0b0b0d) 0%, #0b0b0d 62%, color-mix(in srgb, var(--pb, var(--chip-a, #D4D7DC)) 25%, #0b0b0d) 100%);
  box-shadow: 0 10px 34px -8px color-mix(in srgb, var(--pb, var(--chip-a, #D4D7DC)) 55%, transparent), inset 0 1px 0 rgba(255,255,255,.18); }
.promo-banner.has-photo { background: #0b0b0d; }
.pb-photo { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; opacity: .55; }
.promo-banner.has-photo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.82)); }
.pb-shine { position: absolute; inset: -40% auto -40% -60%; width: 45%; z-index: -1; transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent); animation: pbShine 4.8s ease-in-out infinite; }
@keyframes pbShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.pb-suits { position: absolute; right: -6px; bottom: -14px; z-index: -1; font-size: 64px; letter-spacing: -6px; color: rgba(255,255,255,.07); white-space: nowrap; }
.pb-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pb-logos { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pb-logos img { height: 40px; width: auto; max-width: 110px; object-fit: contain; }
.pb-logos .pb-partner { height: 34px; max-width: 120px; }
.pb-x { font-size: 18px; opacity: .7; }
.pb-kicker { font-size: 11px; font-weight: 800; letter-spacing: 1.8px; color: rgba(255,255,255,.85); }
.pb-live { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; background: #E5383B; font-size: 11px; font-weight: 800; letter-spacing: 1px; flex-shrink: 0; }
.pb-live i { width: 8px; height: 8px; border-radius: 4px; background: #fff; animation: pbPulse 1.2s ease-in-out infinite; }
@keyframes pbPulse { 50% { opacity: .25; transform: scale(.7); } }
.pb-title { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: .5px; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.pb-text { font-size: 14px; color: rgba(255,255,255,.86); line-height: 1.4; }
.pb-idbox { align-self: flex-start; display: flex; flex-direction: column; padding: 8px 14px; border-radius: 12px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); }
.pb-idbox span { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,.75); }
.pb-idbox b { font-size: 30px; font-weight: 800; letter-spacing: 3px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.pb-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.pb-btn { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 22px; background: #fff; color: #111; font-weight: 800; font-size: 15px; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.pb-id { font-size: 13px; color: rgba(255,255,255,.8); text-align: right; }
@media (prefers-reduced-motion: reduce) { .pb-shine, .pb-live i { animation: none; } }

/* ---------- 1.7: special events ---------- */
.ev-section { display: flex; flex-direction: column; gap: 10px; }
.ev-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 2px 20px 6px; scrollbar-width: none; }
.ev-row::-webkit-scrollbar { display: none; }
.ev-card { flex: 0 0 76%; max-width: 300px; scroll-snap-align: start; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--text);
  background: linear-gradient(180deg, var(--card-a), var(--card-b)); border: 1px solid var(--line); }
.ev-row .ev-card:only-child { flex-basis: 100%; max-width: none; }
.ev-img { display: block; height: 130px; background-size: cover; background-position: center; background-color: var(--surface-2); }
.ev-glyph { display: flex; align-items: center; justify-content: center; font-size: 56px; color: var(--silver);
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--chip-a, #D4D7DC) 35%, transparent), transparent 70%), var(--surface-2); }
.ev-in { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.ev-title { font-weight: 800; font-size: 17px; line-height: 1.25; }
.ev-spots { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--open); }
.ev-spots.full { color: var(--warn); }
.ev-mine { margin-top: 4px; align-self: flex-start; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 10px; background: var(--open-tint, rgba(46,204,113,.15)); color: var(--open); }
.ev-mine.wait { background: rgba(242,166,90,.15); color: #F2A65A; }
.ev-flyer { width: 100%; border-radius: 16px; display: block; }
.ev-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ev-facts > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.ev-facts span { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.ev-facts b { font-size: 16px; } .ev-facts small { font-weight: 500; color: var(--muted); }

.pb-logos .pb-lockup { height: 92px; max-width: 100%; width: auto; filter: drop-shadow(0 4px 14px rgba(0,0,0,.45)); }
.pb-top:has(.pb-lockup) { align-items: flex-start; }

/* Neon "Live Now" sign on the online banner while the game is running. */
.pb-stamp { position: absolute; top: 18px; right: 10px; z-index: 1; display: flex; flex-direction: column; align-items: center; line-height: .82;
  transform: rotate(-14deg); font-family: 'Kaushan Script', 'Brush Script MT', cursive; font-size: 46px; color: #fff; pointer-events: none;
  text-shadow: 0 0 4px #fff, 0 0 10px var(--n1, #FF2E4D), 0 0 20px var(--n1, #FF2E4D), 0 0 36px var(--n1, #FF2E4D), 0 0 60px var(--n1, #FF2E4D); animation: pbNeon 3.2s infinite; }
.pb-stamp span:last-child { margin-left: 34px; color: color-mix(in srgb, var(--n2, #FFB300) 45%, #fff); text-shadow: 0 0 4px #fff, 0 0 10px var(--n2, #FFB300), 0 0 22px var(--n2, #FFB300), 0 0 40px var(--n2, #FFB300); }
@keyframes pbNeon { 0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; } 20%, 24%, 55% { opacity: .45; } }
@media (max-width: 380px) { .pb-stamp { font-size: 38px; right: 4px; } }
@media (prefers-reduced-motion: reduce) { .pb-stamp { animation: none; } }

/* TV clock: entries, average stack, payouts strip */
.tv-side { grid-template-rows: repeat(4, auto) !important; align-content: stretch; }
.tv-entries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1vw; margin-top: .8vh; }
.tv-entries span { line-height: 1.15; }
.tv-entries span { display: flex; flex-direction: column; font-size: 2.2vh; color: var(--muted); }
.tv-entries b { font-size: 5.2vh; color: var(--text); line-height: 1.05; font-variant-numeric: tabular-nums; }
.tv-pair { flex-direction: row !important; justify-content: space-between !important; gap: 2vw; }
.tv-pay { display: flex; gap: 1.2vw; flex-wrap: wrap; justify-content: center; padding: 1.4vh 1vw; background: var(--surface); border: 1px solid var(--line); border-radius: 2vh; }
.tv-pay span { display: flex; align-items: baseline; gap: .6vw; font-size: 3vh; font-weight: 700; font-variant-numeric: tabular-nums; }
.tv-pay i { font-style: normal; font-size: 2.2vh; color: var(--muted); }
.tv-pay em { font-style: normal; font-size: 2vh; color: var(--open); font-weight: 600; }

/* TV: registration countdown, color-up banner, sound button */
.tv-reg { display: flex; flex-direction: column; align-items: flex-end; padding: 1vh 1.4vw; border-radius: 1.6vh; background: rgba(46,204,113,.12); border: 1px solid rgba(46,204,113,.35); }
.tv-reg span { font-size: 1.9vh; color: var(--muted); letter-spacing: .2vh; text-transform: uppercase; }
.tv-reg b { font-size: 4.6vh; color: var(--open); font-variant-numeric: tabular-nums; line-height: 1.05; }
.tv-reg.closed { background: rgba(229,56,59,.12); border-color: rgba(229,56,59,.4); }
.tv-reg.closed b { color: #ff8a8f; font-size: 3.2vh; }
.tv-snd { border: 1px solid var(--line-2); background: transparent; color: var(--muted); border-radius: 1.4vh; padding: 1vh 1vw; font-size: 2vh; cursor: pointer; }
.tv-note { display: flex; align-items: center; justify-content: center; gap: 2vw; padding: 1.6vh 2vw; border-radius: 2vh; font-size: 4.6vh; font-weight: 800; color: #1A1006;
  background: linear-gradient(90deg, #F2C94C, #F2A65A); box-shadow: 0 0 4vh rgba(242,166,90,.35); animation: tvNote 2.4s ease-in-out infinite; }
.tv-note span { font-size: 2vh; letter-spacing: .4vh; padding: .6vh 1vw; border-radius: 1vh; background: rgba(0,0,0,.18); }
.tv-note.soon { font-size: 3vh; font-weight: 700; background: var(--surface); color: #F2C94C; border: 1px solid #6d5a2a; box-shadow: none; animation: none; }
.tv-note.soon span { background: rgba(242,201,76,.12); }
@keyframes tvNote { 50% { box-shadow: 0 0 7vh rgba(242,166,90,.6); } }
@media (prefers-reduced-motion: reduce) { .tv-note { animation: none; } }

/* Settings: TV clock color preview */
.tvprev { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.tp-clock { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px; border-radius: 10px; background: var(--surface); }
.tp-lvl { font-family: var(--display); font-size: 11px; letter-spacing: 2px; color: var(--silver); font-weight: 700; }
.tp-time { font-size: 38px; font-weight: 800; line-height: 1; background: var(--metal-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.tp-bar { width: 80%; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; } .tp-bar i { display: block; width: 45%; height: 4px; background: var(--silver); }
.tp-bl { font-size: 15px; font-weight: 700; }
.tp-side { display: grid; gap: 8px; } .tp-box { padding: 8px; border-radius: 10px; background: var(--surface); font-weight: 700; font-size: 14px; } .tp-box small { display: block; font-size: 10px; color: var(--muted); font-weight: 500; }
.tp-pool { color: var(--silver); }
/* Level editor: keep the blind boxes wide enough to type in on a phone (the table scrolls sideways instead). */
#lv input[name=sb], #lv input[name=bb], #lv input[name=ante] { min-width: 92px; font-size: 16px; }
#lv input[name=min] { min-width: 64px; font-size: 16px; }
#lv input[name=note] { min-width: 170px; font-size: 16px; }
#lv td:first-child { min-width: 24px; }
/* Payout percentages & ICM */
.payauto { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--tint); }
.payauto .grid2, #iprz .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#iprz .grid2 { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
.tier { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 8px; }
.tier .field:first-child { width: 110px; flex: none; }
.tier .grow { flex: 1; min-width: 0; }
.tier [data-sum] { min-width: 44px; padding-bottom: 12px; font-weight: 700; }
table.icm input[data-c] { min-width: 110px; font-size: 16px; }
table.icm input[data-n] { min-width: 140px; font-size: 16px; }
.icm-res td, .icm-res th { white-space: nowrap; }
/* Player list (cash sheet) */
.plist { width: 100%; border-collapse: collapse; font-size: 14px; }
.plist th { text-align: left; font-size: 12px; color: var(--muted); padding: 8px 10px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.plist td { padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.plist tr.out td { opacity: .75; }
.plist tr.tot td { font-weight: 800; border-top: 2px solid var(--line-2); }
@media print {
  .staff-top, .noprint { display: none !important; }
  body, .staff-main { background: #fff !important; color: #000 !important; }
  .table-wrap { border: 0; overflow: visible; background: #fff; }
  .plist, .plist th, .plist td { color: #000 !important; font-size: 11px; }
}
.chipt input[data-cr] { min-width: 120px; font-size: 16px; }
.chipt td { vertical-align: middle; }
.icm-total { text-align: center; padding: 12px; margin: 6px 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--tint); }
.icm-total .k { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.icm-total .v { font-size: 34px; font-weight: 800; color: #E8C46A; line-height: 1.15; }
.icm-main { font-size: 16px; }
.icm-main td, .icm-main th { white-space: nowrap; padding: 8px 6px; }
.icm-main .icm-v { font-weight: 800; color: #E8C46A; font-size: 18px; text-align: right; }
.icm-main th:last-child { text-align: right; }
.icm-main tr.tot td { font-weight: 800; border-top: 2px solid var(--line-2); }

.ot-chip { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 8px; cursor: pointer; white-space: nowrap; }
.ot-chip input { width: 18px !important; height: 18px !important; min-height: 0 !important; flex: none; margin: 0; padding: 0; accent-color: #1A1006; }
.ot-chip:has(input:checked) { background: #E8C46A; color: #1A1006; border-color: #E8C46A; }

.role-badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .6px; white-space: nowrap; }
.role-key { display: grid; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.role-key > div { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.role-key .role-badge { flex: none; margin-top: 1px; }
/* Shared tablet: PIN pad + lock screen */
.lock-screen { position: fixed; inset: 0; z-index: 1000; background: #08080A; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; outline: none; }
.pin-box { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; max-width: 320px; }
.pin-box img { width: 150px; height: auto; }
.pin-login { display: flex; flex-direction: column; align-items: center; outline: none; }
.pin-dots { display: flex; gap: 14px; min-height: 22px; margin: 6px 0; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); display: block; }
.pin-dots i.on { background: #E8C46A; border-color: #E8C46A; }
.pin-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.pin-key { height: 66px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface-2, #1c1c20); color: var(--text); font-size: 26px; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.pin-key:active { transform: scale(.96); }
.pin-key.ok { background: #E8C46A; color: #1A1006; border-color: #E8C46A; }
.shake { animation: pinshake .35s; }
@keyframes pinshake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pin-show { font-size: 44px; font-weight: 800; letter-spacing: 10px; text-align: center; color: #E8C46A; margin: 8px 0; font-variant-numeric: tabular-nums; }

/* Flyer pop-up (player app) */
.flyer-back { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.78); display: flex; align-items: center; justify-content: center; padding: 16px; }
.flyer-card { position: relative; width: 100%; max-width: 460px; max-height: 92vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.flyer-img { width: 100%; height: auto; border-radius: 12px; display: block; }
.flyer-txt { padding: 0 4px; }
.flyer-x { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 18px; cursor: pointer; z-index: 1; }

/* Player tournaments: month calendar */
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 8px 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 8px; }
.cal-head h2 { margin: 0; font-size: 20px; }
.cal-nav { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font-size: 24px; cursor: pointer; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-w { text-align: center; font-size: 10px; font-weight: 700; letter-spacing: .5px; color: var(--muted); padding: 2px 0 4px; }
.cal-d { min-height: 58px; border-radius: 8px; padding: 2px; display: flex; flex-direction: column; gap: 2px; min-width: 0; background: rgba(255,255,255,.02); }
.cal-d.blank { background: transparent; }
.cal-d.past { opacity: .55; }
.cal-d.has { background: rgba(232,196,106,.13); box-shadow: inset 0 0 0 1px rgba(232,196,106,.55); }
.cal-d.today .cal-n { background: var(--text); color: var(--bg); }
.cal-d.sel { box-shadow: inset 0 0 0 2px #E8C46A; }
.cal-n { align-self: center; width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; padding: 0; }
.cal-ev { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; width: 100%; border: 0; border-radius: 4px; background: #E8C46A; color: #1A1006; font-size: 9px; font-weight: 700; line-height: 1.2; padding: 2px 3px 0; max-height: calc(2.4em + 2px); border-bottom: 2px solid transparent; text-align: left; overflow: hidden; overflow-wrap: break-word; hyphens: auto; cursor: pointer; text-decoration: none; font-family: inherit; }
.cal-ev.ev { background: #4C8DF6; color: #fff; }
.cal-more { border: 0; background: transparent; color: var(--muted); font-size: 9px; font-weight: 700; padding: 0; cursor: pointer; text-align: left; }
.day-title { margin: 0 0 4px; font-size: 15px; color: var(--text-2); }
.ev-day { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text); border-color: rgba(76,141,246,.6); }
.card.flash { box-shadow: 0 0 0 2px #E8C46A; transition: box-shadow .4s; }
/* Live clock on a phone (same page as the TV, portrait screens) */
@media (max-aspect-ratio: 1/1) {
  .tv { padding: 16px 14px 24px; gap: 12px; min-height: 100vh; }
  .tv-top { flex-wrap: wrap; gap: 8px 12px; }
  .tv-top img { height: 44px; }
  .tv-top h1 { font-size: 20px; letter-spacing: 0; flex: 1 1 60%; }
  .tv-reg { padding: 6px 10px; border-radius: 10px; }
  .tv-reg span { font-size: 10px; } .tv-reg b { font-size: 20px; } .tv-reg.closed b { font-size: 14px; }
  .tv-snd { font-size: 12px; padding: 6px 10px; border-radius: 10px; }
  .tv-paused { font-size: 16px; letter-spacing: 1px; }
  .tv-note { font-size: 17px; padding: 10px 12px; border-radius: 12px; gap: 10px; }
  .tv-note span { font-size: 10px; letter-spacing: 1px; padding: 3px 6px; }
  .tv-note.soon { font-size: 14px; }
  .tv-mid { gap: 12px; grid-template-columns: minmax(0, 1fr) !important; }
  .tv-side { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .tv-side > *, .tv-clock { min-width: 0; }
  .tv-pair { gap: 8px; } .tv-stat.tv-pair .v { font-size: 19px !important; }
  .tv-clock { border-radius: 18px; padding: 18px 12px; }
  .tv-clock .lvl { font-size: 18px; letter-spacing: 3px; }
  .tv-clock .time { font-size: 27vw; letter-spacing: -2px; }
  .tv-clock .blinds { font-size: 11vw; }
  .tv-clock .sub { font-size: 15px; }
  .tv-clock .bar, .tv-clock .bar > div { height: 6px; }
  .tv-side { gap: 10px; }
  .tv-stat { border-radius: 14px; padding: 12px 14px; }
  .tv-stat .k { font-size: 12px; }
  .tv-stat .v { font-size: 26px !important; }
  .tv-entries span { font-size: 11px; } .tv-entries b { font-size: 22px; }
  .tv-pay { gap: 8px 14px; padding: 10px; border-radius: 14px; }
  .tv-pay span { font-size: 15px; gap: 5px; } .tv-pay i { font-size: 11px; } .tv-pay em { font-size: 11px; }
}

/* Chips in play with the average stack underneath */
.tv-stack { justify-content: center !important; gap: 1.2vh; }
.tv-stack > div + div { padding-top: 1.2vh; border-top: 1px solid var(--line); }
@media (max-aspect-ratio: 1/1) { .tv-stack { gap: 8px; } .tv-stack > div + div { padding-top: 8px; } .tv-stat.tv-stack .v { font-size: 22px !important; } }

.btn.going { background: #2E9E6A; border-color: #2E9E6A; color: #fff; }
.coming-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.coming-row:last-child { border-bottom: 0; }

.late-reg { margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(46,204,113,.12); border: 1px solid rgba(46,204,113,.45); color: var(--open, #2ECC71); font-size: 14px; font-weight: 600; }
.late-reg b { font-variant-numeric: tabular-nums; font-size: 17px; }
.late-reg.closed { background: rgba(229,56,59,.1); border-color: rgba(229,56,59,.4); color: #ff8a8f; }

/* Late registration countdown inside the clock (TV + phone live clock) */
.tv-regbig { margin-top: 1.4vh; display: inline-flex; align-items: center; gap: 1.4vw; padding: .8vh 2vw; border-radius: 1.6vh; background: rgba(46,204,113,.14); border: 1px solid rgba(46,204,113,.5); }
.tv-regbig span { font-size: 2.4vh; font-weight: 700; letter-spacing: .3vh; color: var(--open); }
.tv-regbig b { font-size: 4.8vh; color: var(--open); font-variant-numeric: tabular-nums; line-height: 1; }
.tv-regbig.closed { background: rgba(229,56,59,.12); border-color: rgba(229,56,59,.45); }
.tv-regbig.closed span, .tv-regbig.closed b { color: #ff8a8f; }
@media (max-aspect-ratio: 1/1) { .tv-regbig { margin-top: 12px; padding: 8px 12px; border-radius: 12px; gap: 10px; flex-wrap: wrap; justify-content: center; } .tv-regbig span { font-size: 11px; letter-spacing: 1px; } .tv-regbig b { font-size: 26px; } }

.tv-clock:has(.tv-regbig) .time { font-size: 23vh; }
@media (max-aspect-ratio: 1/1) { .tv-clock:has(.tv-regbig) .time { font-size: 27vw; } }
/* TV: keep the side column inside one 16:9 screen */
@media (min-aspect-ratio: 1001/1000) {
  .tv { padding: 2.4vh 4vw; gap: 2.2vh; }
  .tv-side { gap: 1.6vh; }
  .tv-stat { padding: 1.5vh 2vw; }
  .tv-stat .v { font-size: 5.4vh; }
  .tv-stack { gap: .8vh; } .tv-stack > div + div { padding-top: .8vh; }
  .tv-stat.tv-stack .v { font-size: 4.4vh !important; }
}

.tv-change { position: fixed; right: 12px; bottom: 10px; z-index: 5; font-size: 13px; color: var(--muted); opacity: .45; text-decoration: none; padding: 6px 10px; border-radius: 8px; }
.tv-change:hover, .tv-change:focus { opacity: 1; background: rgba(255,255,255,.08); }

/* Live clock tabs (phones): Clock / Chip counts / Payouts. A TV always shows the clock. */
.tv-tabs, .tv-stacks, .tv-nopay { display: none; }
@media (max-aspect-ratio: 1/1) {
  .tv-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: rgba(255,255,255,.05); padding: 4px; border-radius: 12px; }
  .tv-tabs button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; padding: 10px 4px; border-radius: 9px; cursor: pointer; }
  .tv-tabs button[aria-selected="true"] { background: #E8C46A; color: #1A1006; }
  .tv[data-tab="chips"] .tv-stacks { display: block; }
  .tv[data-tab="chips"] .tv-note, .tv[data-tab="chips"] .tv-mid, .tv[data-tab="chips"] .tv-pay { display: none; }
  .tv[data-tab="pay"] .tv-note, .tv[data-tab="pay"] .tv-mid { display: none; }
  .tv[data-tab="pay"] .tv-nopay { display: block; text-align: center; }
  .tv[data-tab="pay"] .tv-pay { flex-direction: column; align-items: stretch; }
  .tv[data-tab="pay"] .tv-pay span { justify-content: space-between; font-size: 20px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
  .tv-stacks { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
  .tv-stacks-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .tv-stacks-head b { font-size: 18px; } .tv-stacks-head span { font-size: 12px; color: var(--muted); }
  .tv-stacks table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 16px; font-variant-numeric: tabular-nums; }
  .tv-stacks th { text-align: left; font-size: 11px; color: var(--muted); letter-spacing: .5px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
  .tv-stacks td { padding: 9px 4px; border-bottom: 1px solid var(--line); }
  .tv-stacks td:nth-child(3), .tv-stacks th:nth-child(3), .tv-stacks td:nth-child(4), .tv-stacks th:nth-child(4) { text-align: right; }
  .tv-stacks tr:first-child td { color: #E8C46A; font-weight: 800; }
}
@media (max-aspect-ratio: 1/1) { .tv-change { display: none; } }
