/* AlleyPots 1.1 - "neon lanes": dark, phone-first, thumb-friendly. CSS/SVG effects only.
   1.9.0: AlleyPots ("AP" neon text mark, placeholder logo): Audiowide wordmark, accents tuned toward the logo pink / blue. */
@font-face { font-family: "Audiowide"; src: url("/fonts/audiowide.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  --bg: #0b0b12; --bg2: #0d1222; --card: #121829; --card2: #182036; --raise: #1d2640;
  --ink: #eef2ff; --muted: #97a3bf; --faint: #5d6886; --line: rgba(255,255,255,.075); --line2: rgba(255,255,255,.14);
  --accent: #ff3c9a; --accent2: #ff7a3d; --cyan: #2cbcff; --logo-pink: #fd66b4; --logo-blue: #22aaf7; --violet: #8b5cf6; --gold: #ffc940; --lime: #a3e635;
  --ok: #34d399; --okbg: rgba(52,211,153,.12); --warn: #fbbf24; --warnbg: rgba(251,191,36,.12);
  --err: #fb7185; --errbg: rgba(251,113,133,.12); --chip: rgba(255,255,255,.06);
  --m: #60a5fa; --mbg: rgba(96,165,250,.14); --f: #f472b6; --fbg: rgba(244,114,182,.14);
  --pot-mystery: #a78bfa; --pot-love: #f472b6; --pot-ladies: #fb923c; --pot-elim: #a3e635;
  --glow: 0 0 0 1px rgba(255,60,154,.35), 0 8px 28px rgba(255,60,154,.28);
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 12px 32px rgba(0,0,0,.42);
  --radius: 20px; --safe-b: env(safe-area-inset-bottom, 0px); --tabbar: 66px;
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; color: var(--ink); min-height: 100vh;
  background:
    radial-gradient(900px 420px at 85% -120px, rgba(255,60,154,.16), transparent 60%),
    radial-gradient(700px 380px at -10% 10%, rgba(34,170,247,.11), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  font: 17px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: calc(var(--tabbar) + 30px + var(--safe-b));
  -webkit-tap-highlight-color: transparent;
}
body.locked { padding-bottom: 24px; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h3 { font-size: 17px; }
a { color: var(--cyan); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ------------------------------------------------ top bar */
.topbar {
  display: flex; align-items: center; gap: 12px;
  background: rgba(8,11,20,.72); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 12px;
  position: sticky; top: 0; z-index: 25;
}
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), var(--cyan), transparent); opacity: .7; }
.topbar .logo { flex: none; width: auto; height: 26px; filter: drop-shadow(0 0 5px rgba(253,102,180,.55)) drop-shadow(0 0 9px rgba(34,170,247,.35)); }
.wordmark { font-family: "Audiowide", -apple-system, "Segoe UI", sans-serif; font-weight: 400; letter-spacing: .3px; }
.topbar h1 { font-size: 21px; white-space: nowrap; }
.wordmark .w-true { color: #ff3c96; text-shadow: 0 0 10px rgba(255,60,150,.55); }
.wordmark .w-scores { color: #f5f7ff; text-shadow: 0 0 8px rgba(30,160,255,.8), 0 0 18px rgba(30,160,255,.45); }
.topbar .brand { min-width: 0; }
.topbar .sub { margin: 1px 0 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 1.3 league switcher (the subtitle is a button) */
.league-list { display: grid; gap: 8px; margin-top: 10px; }
.league-opt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); color: inherit; font: inherit; cursor: pointer; }
.league-opt[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 0 18px rgba(255,60,154,.18); }
.league-opt .lo-main { display: grid; gap: 2px; flex: 1; min-width: 0; }
.league-opt .lo-check { font-size: 20px; color: var(--accent); width: 22px; text-align: center; }
.pot-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 4px; }
.pot-opt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 10px; }
.pot-opt input { width: 20px; height: 20px; accent-color: var(--accent); }

main { max-width: 640px; margin: 0 auto; padding: 16px 14px 0; }
.view { animation: viewin .34s var(--ease) both; }
@keyframes viewin { from { opacity: 0; transform: translateY(12px) scale(.992); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
.screen-head { margin: 2px 4px 14px; }
.screen-head h2 { font-size: 28px; font-weight: 850; letter-spacing: -.3px; display: flex; align-items: center; }
.screen-head p { margin: 5px 0 0; color: var(--muted); font-size: 15px; }

.card {
  position: relative; background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow);
  animation: cardin .4s var(--ease) both;
}
.view .card:nth-of-type(2) { animation-delay: .04s; } .view .card:nth-of-type(3) { animation-delay: .08s; } .view .card:nth-of-type(4) { animation-delay: .12s; }
@keyframes cardin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.card h3 { margin-bottom: 10px; display: flex; align-items: center; gap: 8px; font-weight: 800; }
.card h3 .tag { margin-left: auto; }
.tag { font-size: 12px; font-weight: 750; color: var(--muted); background: var(--chip); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tag.ok { background: var(--okbg); color: var(--ok); border-color: rgba(52,211,153,.25); }
.tag.warn { background: var(--warnbg); color: var(--warn); border-color: rgba(251,191,36,.25); }

/* ------------------------------------------------ buttons + fields */
.btn {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 52px; padding: 12px 18px; border-radius: 15px; border: 1px solid var(--line2);
  background: var(--raise); color: var(--ink); font-weight: 750; cursor: pointer; text-align: center; text-decoration: none;
  transition: transform .12s var(--ease), box-shadow .2s, filter .2s, background .2s;
  -webkit-user-select: none; user-select: none;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.965); filter: brightness(.95); }
.btn:disabled { opacity: .45; cursor: default; transform: none; filter: grayscale(.4); box-shadow: none; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: transparent; color: #fff; box-shadow: var(--glow); text-shadow: 0 1px 0 rgba(0,0,0,.2); }
.btn.primary:active { box-shadow: 0 0 0 1px rgba(255,60,154,.5), 0 2px 10px rgba(255,60,154,.35); }
.btn.accent { background: linear-gradient(135deg, var(--violet), var(--cyan)); border-color: transparent; color: #fff; box-shadow: 0 0 0 1px rgba(44,188,255,.35), 0 8px 28px rgba(139,92,246,.35); text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.btn.okb { background: linear-gradient(135deg, #10b981, #34d399); border-color: transparent; color: #04130c; }
.btn.big { min-height: 58px; font-size: 18px; }
.btn.huge { min-height: 66px; font-size: 20px; border-radius: 18px; }
.btn.primary::after, .btn.accent::after { /* sheen */
  content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .7s var(--ease); pointer-events: none;
}
.btn.primary:hover::after, .btn.accent:hover::after, .btn.primary:focus-visible::after { transform: translateX(120%); }
.btn.ghost { border-color: var(--line2); color: var(--ink); background: transparent; }
.btn.danger { border-color: rgba(251,113,133,.5); color: var(--err); background: transparent; }
.btn.small { min-height: 44px; font-size: 15px; padding: 8px 12px; border-radius: 12px; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.linkbtn { background: none; border: 0; color: var(--cyan); font-size: 15px; padding: 10px; min-height: 44px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.cta { margin: 6px 0 16px; }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; font-weight: 650; }
.field input, .field textarea, .field select, .search input, .fixed-row input {
  width: 100%; min-height: 52px; font: inherit; font-size: 18px; padding: 10px 14px;
  border: 1px solid var(--line2); border-radius: 13px; background: #0b1020; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 170px; font-size: 16px; line-height: 1.45; resize: vertical; }
.field input:focus, .field textarea:focus, .search input:focus, .miss input:focus, .fixed-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,60,154,.2); }
.search { position: sticky; top: 66px; z-index: 5; margin: 0 0 10px; }
.search input { min-height: 48px; font-size: 16px; padding-left: 42px; background: rgba(11,16,32,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2397a3bf' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px center / 20px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
::placeholder { color: var(--faint); }

.seg { display: flex; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 15px; padding: 4px; gap: 4px; margin-bottom: 10px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 11px; min-height: 44px; font-weight: 750; font-size: 15px; color: var(--muted); cursor: pointer; padding: 6px 4px; line-height: 1.15; transition: background .2s, color .2s, box-shadow .2s; }
.seg button[aria-pressed="true"] { background: var(--raise); color: #fff; box-shadow: 0 0 0 1px rgba(255,60,154,.45), 0 4px 16px rgba(255,60,154,.2); }
.seg button small { display: block; font-size: 11.5px; font-weight: 700; opacity: .8; }
.seg.games button { min-height: 60px; font-size: 16px; }
.seg.games button .st { display: block; font-size: 12px; font-weight: 750; margin-top: 2px; }
.seg.games button .st.ok { color: var(--ok); }
.seg.games button .st.warn { color: var(--warn); }

.msg { border-radius: 13px; padding: 10px 12px; margin: 10px 0 0; font-size: 15px; border: 1px solid transparent; }
.msg:first-child { margin-top: 0; }
.msg.error { background: var(--errbg); color: #fecdd3; border-color: rgba(251,113,133,.25); }
.msg.warn { background: var(--warnbg); color: #fde68a; border-color: rgba(251,191,36,.25); }
.msg.ok { background: var(--okbg); color: #a7f3d0; border-color: rgba(52,211,153,.25); }
.msg.info { background: rgba(44,188,255,.08); color: #c9f5ff; border-color: rgba(44,188,255,.2); }
.msg b { font-weight: 850; }
.hint { color: var(--muted); font-size: 14px; margin: 8px 2px 0; }

/* ------------------------------------------------ tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(10,13,24,.86); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-top: 1px solid var(--line);
  padding: 6px 6px calc(6px + var(--safe-b));
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
}
.tabbar button {
  position: relative; border: 0; background: none; min-height: var(--tabbar); border-radius: 15px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: #7c87a3; font-size: 11.5px; font-weight: 750; padding: 4px 2px; transition: color .2s, background .2s, transform .12s;
}
.tabbar button:active { transform: scale(.94); }
.tabbar button svg { width: 26px; height: 26px; transition: filter .2s; }
.tabbar button[aria-current="page"] { color: #fff; background: rgba(255,60,154,.12); }
.tabbar button[aria-current="page"] svg { color: var(--accent); filter: drop-shadow(0 0 6px rgba(255,60,154,.8)); }
.tabbar button[aria-current="page"]::before { content: ""; position: absolute; top: -7px; left: 30%; right: 30%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--cyan)); box-shadow: 0 0 12px var(--accent); }
.tabbar .badge {
  position: absolute; top: 4px; left: calc(50% + 8px); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: #33406a; color: #fff; font-size: 11px; font-weight: 850; display: grid; place-items: center; line-height: 1; border: 1px solid rgba(255,255,255,.15);
}
.tabbar .badge.ok { background: #0f8a5f; box-shadow: 0 0 10px rgba(52,211,153,.5); }
.tabbar .badge.warn { background: var(--gold); color: #3a2a00; }

/* ------------------------------------------------ lists */
.list { list-style: none; margin: 0; padding: 0; }
.team-head { font-size: 12.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); font-weight: 850; margin: 16px 6px 6px; }
.team-head:first-child { margin-top: 4px; }
.rows { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 12px; }
.row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; min-height: 60px; border-top: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; color: inherit; }
.row:first-child { border-top: 0; }
button.row { cursor: pointer; transition: background .15s; }
button.row:active, button.row:hover { background: rgba(255,255,255,.04); }
.row .who { flex: 1; min-width: 0; }
.row .who .n { font-weight: 750; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .who .s { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .chev { color: var(--faint); font-size: 22px; flex: none; }
.gpill { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 7px; border-radius: 8px; font-size: 13px; font-weight: 850; flex: none; }
.gpill.M { background: var(--mbg); color: var(--m); }
.gpill.F { background: var(--fbg); color: var(--f); }
.gpill.x { background: var(--warnbg); color: var(--warn); }
.hpill { font-size: 13px; font-weight: 750; color: var(--muted); background: var(--chip); border-radius: 8px; padding: 4px 8px; flex: none; font-variant-numeric: tabular-nums; }
.hpill.none { background: none; color: var(--faint); font-weight: 600; }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.empty .art { font-size: 54px; line-height: 1; margin-bottom: 8px; filter: drop-shadow(0 0 18px rgba(255,60,154,.35)); }
.empty h3 { color: var(--ink); font-size: 20px; margin-bottom: 6px; display: block; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.stat { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 13px; padding: 8px 4px; text-align: center; }
.stat b { display: block; font-size: 22px; font-weight: 850; color: #fff; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); font-weight: 700; }

/* ------------------------------------------------ calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head h3 { margin: 0; font-size: 19px; }
.cal-nav { width: 48px; height: 48px; border-radius: 14px; border: 1px solid var(--line2); background: var(--raise); color: #fff; font-size: 24px; font-weight: 800; cursor: pointer; transition: transform .12s; }
.cal-nav:active { transform: scale(.92); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { text-align: center; font-size: 12px; font-weight: 850; color: var(--faint); padding: 4px 0; }
.cal .dow.tue { color: var(--accent); text-shadow: 0 0 10px rgba(255,60,154,.6); }
.cal button {
  position: relative; aspect-ratio: 1 / 1; min-height: 44px; border: 0; border-radius: 13px; background: none;
  font-size: 16px; font-weight: 650; color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; transition: transform .12s, background .2s;
}
.cal button:active { transform: scale(.9); }
.cal button.out { color: #3e4763; }
.cal button.tue { background: rgba(255,60,154,.14); color: #ff9fd0; font-weight: 850; box-shadow: inset 0 0 0 1px rgba(255,60,154,.35); }
.cal button.tue.out { background: rgba(255,60,154,.05); color: #6d4260; box-shadow: none; }
.cal button.today { box-shadow: inset 0 0 0 2px var(--cyan); }
.cal button.sel { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; box-shadow: 0 0 18px rgba(255,60,154,.55); }
.cal button .dot { position: absolute; left: 50%; bottom: 5px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); }
.cal button.sel .dot { background: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 5px; }
.legend i.l-tue { background: rgba(255,60,154,.18); box-shadow: inset 0 0 0 1px rgba(255,60,154,.5); }
.legend i.l-today { box-shadow: inset 0 0 0 2px var(--cyan); }
.legend i.l-saved { background: var(--ok); border-radius: 50%; width: 8px; height: 8px; vertical-align: 1px; box-shadow: 0 0 6px var(--ok); }
.quick { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; }
.quick button { flex: none; border: 1px solid var(--line2); background: var(--raise); border-radius: 999px; padding: 8px 14px; min-height: 44px; font-weight: 750; font-size: 14.5px; color: var(--ink); cursor: pointer; transition: transform .12s; }
.quick button:active { transform: scale(.95); }
.quick button.on { border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; box-shadow: 0 0 14px rgba(255,60,154,.4); }
.day-title { font-size: 20px; font-weight: 850; }
.window { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; border-radius: 14px; padding: 12px; border: 1px solid transparent; }
.window .ic { font-size: 22px; line-height: 1.1; }
.window b { display: block; }
.window.ok, .window.tonight { background: var(--okbg); color: #bbf7d0; border-color: rgba(52,211,153,.25); }
.window.future { background: rgba(44,188,255,.08); color: #c9f5ff; border-color: rgba(44,188,255,.2); }
.window.edge { background: var(--warnbg); color: #fde68a; border-color: rgba(251,191,36,.25); }
.window.gone { background: var(--errbg); color: #fecdd3; border-color: rgba(251,113,133,.25); }

/* ------------------------------------------------ entries */
.pot-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 12px; }
.pot-tile { position: relative; border: 1px solid var(--line); background: linear-gradient(180deg, var(--card2), var(--card)); border-radius: 16px; padding: 10px 4px 8px; text-align: center; cursor: pointer; transition: transform .12s, border-color .2s, box-shadow .2s; color: var(--ink); }
.pot-tile:active { transform: scale(.95); }
.pot-tile b { display: block; font-size: 28px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pot-tile span { font-size: 12px; font-weight: 750; color: var(--ink); line-height: 1.15; display: block; }
.pot-tile small { display: block; font-size: 11px; color: var(--muted); font-weight: 650; }
.pot-tile.mystery b { color: var(--pot-mystery); text-shadow: 0 0 14px rgba(167,139,250,.55); }
.pot-tile.love b { color: var(--pot-love); text-shadow: 0 0 14px rgba(244,114,182,.55); }
.pot-tile.ladies b { color: var(--pot-ladies); text-shadow: 0 0 14px rgba(251,146,60,.55); }
.pot-tile.elim b { color: var(--pot-elim); text-shadow: 0 0 14px rgba(163,230,53,.5); }
.pot-tile[aria-pressed="true"] { border-color: rgba(255,255,255,.5); box-shadow: 0 0 0 1px rgba(255,255,255,.25), 0 6px 20px rgba(0,0,0,.4); }
.toggles { display: flex; gap: 5px; flex: none; }
.tog {
  min-width: 46px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255,255,255,.03);
  font-size: 11.5px; font-weight: 850; color: #6f7a97; cursor: pointer; padding: 0 5px; letter-spacing: .02em;
  transition: background .18s, color .18s, box-shadow .18s, transform .12s;
}
.tog:active { transform: scale(.9); }
.tog[aria-pressed="true"] { color: #0a0d18; border-color: transparent; }
.tog[aria-pressed="true"].mystery { background: var(--pot-mystery); box-shadow: 0 0 14px rgba(167,139,250,.55); }
.tog[aria-pressed="true"].love { background: var(--pot-love); box-shadow: 0 0 14px rgba(244,114,182,.55); }
.tog[aria-pressed="true"].ladies { background: var(--pot-ladies); box-shadow: 0 0 14px rgba(251,146,60,.55); }
.tog[aria-pressed="true"].elim { background: var(--pot-elim); box-shadow: 0 0 14px rgba(163,230,53,.5); }
.tog.na { border-style: dashed; color: #3a4360; background: transparent; cursor: not-allowed; }
.switch { width: 64px; height: 38px; border-radius: 999px; border: 1px solid var(--line2); background: #252d47; position: relative; cursor: pointer; flex: none; transition: background .2s, box-shadow .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 4px; width: 30px; height: 30px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .22s var(--ease); }
.switch[aria-pressed="true"] { background: var(--ok); box-shadow: 0 0 14px rgba(52,211,153,.5); }
.switch[aria-pressed="true"]::after { transform: translateX(25px); }
.locked-rows .tog, .locked-rows .switch { opacity: .5; }
.bottom-action {
  position: sticky; bottom: calc(var(--tabbar) + 18px + var(--safe-b)); z-index: 6; margin-top: 8px;
  background: var(--bg); padding: 8px 0 6px; box-shadow: 0 -14px 14px -6px var(--bg);
}
.closed-banner { display: flex; align-items: center; gap: 10px; }
.closed-banner .btn { width: auto; flex: none; }

/* ------------------------------------------------ scores */
.progress-wrap { margin: 2px 0 14px; }
.progress-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 750; margin-bottom: 8px; }
.progress-label .big { font-size: 19px; }
.bar { position: relative; height: 16px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line); overflow: hidden; }
.bar > i {
  display: block; height: 100%; border-radius: 999px; position: relative;
  background: linear-gradient(90deg, var(--violet), var(--cyan)); box-shadow: 0 0 14px rgba(44,188,255,.55);
  transition: width .9s var(--ease); animation: barin 1s var(--ease) both;
}
.bar > i::after { /* moving stripes */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.18) 0 8px, transparent 8px 16px);
  background-size: 22.6px 22.6px; animation: stripes .8s linear infinite;
}
.bar.done > i { background: linear-gradient(90deg, #10b981, #6ee7b7); box-shadow: 0 0 16px rgba(52,211,153,.6); }
.bar.done > i::after { background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 2.2s ease-in-out infinite; }
@keyframes barin { from { width: 0 !important; } }
@keyframes stripes { to { background-position: 22.6px 0; } }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.pulling { display: flex; gap: 12px; align-items: center; margin-top: 12px; font-size: 15px; color: var(--muted); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255,255,255,.1); border-top-color: var(--accent); border-right-color: var(--cyan); animation: spin .8s linear infinite; flex: none; box-shadow: 0 0 12px rgba(255,60,154,.35); }
@keyframes spin { to { transform: rotate(360deg); } }
.lastpull { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.miss { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.miss:first-of-type { border-top: 0; padding-top: 2px; }
.miss .who { flex: 1 1 150px; min-width: 0; }
.miss .who .n { font-weight: 750; }
.miss .who .s { font-size: 13.5px; color: var(--muted); }
.miss form { display: flex; gap: 6px; flex: none; }
.miss input { width: 84px; min-height: 48px; font: inherit; font-size: 20px; font-weight: 800; text-align: center; border: 1px solid var(--line2); border-radius: 12px; font-variant-numeric: tabular-nums; background: #0b1020; color: #fff; }
.miss .btn { width: auto; min-width: 72px; }
.suggest { flex-basis: 100%; display: flex; align-items: center; gap: 10px; background: var(--warnbg); color: #fde68a; border-radius: 12px; padding: 8px 10px; font-size: 14px; }
.suggest span { flex: 1; }
.suggest .btn { border-color: rgba(251,191,36,.5); color: var(--warn); background: transparent; min-height: 40px; }
.scorelist .row { min-height: 52px; }
.score { font-size: 20px; font-weight: 850; font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.score.none { color: var(--faint); font-weight: 600; }
.srcmark { font-size: 11px; font-weight: 850; border-radius: 6px; padding: 2px 6px; background: var(--chip); color: var(--muted); }
.srcmark.manual { background: rgba(167,139,250,.16); color: var(--pot-mystery); }
.tally-done { display: flex; align-items: center; gap: 12px; }
.tally-done .check { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #6ee7b7, #059669); color: #fff; font-size: 24px; font-weight: 900; flex: none; box-shadow: 0 0 0 4px rgba(52,211,153,.15), 0 0 22px rgba(52,211,153,.55); animation: pop .5s var(--ease) both; }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.tally-done b { font-size: 18px; display: block; }
#tally-card { border-color: rgba(52,211,153,.28); box-shadow: var(--shadow), 0 0 30px rgba(52,211,153,.08); }

/* bowling balls */
.balls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ballbox { text-align: center; position: relative; }
.ballbox::before { content: ""; position: absolute; left: 50%; top: 46%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; filter: blur(26px); opacity: .55; pointer-events: none; }
.ballbox.high::before { background: #3b5bff; } .ballbox.low::before { background: #ff5a2a; }
.ballbox .lbl { position: relative; font-size: 13px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.ballbox.high .lbl { color: #93a8ff; text-shadow: 0 0 10px rgba(99,125,255,.7); }
.ballbox.low .lbl { color: #ffab8a; text-shadow: 0 0 10px rgba(255,110,60,.7); }
.ballbox .rng { position: relative; font-size: 12px; color: var(--muted); font-weight: 650; }
svg.ball { position: relative; width: 100%; max-width: 168px; height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 14px 18px rgba(0,0,0,.55)); overflow: visible; }
svg.ball.sm { max-width: 76px; filter: drop-shadow(0 5px 8px rgba(0,0,0,.5)); }
svg.ball .num { font: 900 70px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; letter-spacing: -2px; }
svg.ball.ghost { filter: drop-shadow(0 10px 14px rgba(0,0,0,.5)); opacity: .55; }
svg.ball.ghost .spin { animation: idle 5s ease-in-out infinite; transform-origin: 100px 100px; transform-box: view-box; }
@keyframes idle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
svg.ball.reveal { animation: ballin 1.25s cubic-bezier(.25,.9,.3,1) both; }
svg.ball.reveal .spin { animation: ballspin 1.25s cubic-bezier(.2,.75,.25,1) both; transform-origin: 100px 100px; transform-box: view-box; }
svg.ball.reveal .num { animation: numpop .55s 1.1s cubic-bezier(.3,1.7,.5,1) both; transform-origin: 100px 118px; transform-box: view-box; }
svg.ball.reveal .flash { animation: flash .9s 1.05s ease-out both; transform-origin: 100px 100px; transform-box: view-box; }
.ballbox.low svg.ball.reveal, .ballbox.low svg.ball.reveal .spin { animation-delay: .25s; }
.ballbox.low svg.ball.reveal .num { animation-delay: 1.35s; } .ballbox.low svg.ball.reveal .flash { animation-delay: 1.3s; }
@keyframes ballin { 0% { transform: translateX(-120%) translateY(-6px); opacity: 0; } 20% { opacity: 1; } 70% { transform: translateX(6%); } 85% { transform: translateX(-2%); } 100% { transform: none; } }
@keyframes ballspin { 0% { transform: rotate(-720deg); } 100% { transform: rotate(0); } }
@keyframes numpop { 0% { transform: scale(.1); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes flash { 0% { opacity: 0; transform: scale(.6); } 25% { opacity: .95; } 100% { opacity: 0; transform: scale(1.35); } }
svg.ball .flash { opacity: 0; }
.drawn-at { text-align: center; font-size: 13px; color: var(--muted); margin-top: 8px; }
#mystery-card { overflow: hidden; }

/* eliminator */
.elim-card { border-color: rgba(163,230,53,.18); }
.cutline { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 4px 10px; background: rgba(163,230,53,.07); border: 1px solid rgba(163,230,53,.22); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; }
.cutlbl { font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--pot-elim); }
.cutval { font-size: 30px; font-weight: 900; color: #fff; text-shadow: 0 0 16px rgba(163,230,53,.6); font-variant-numeric: tabular-nums; }
.cutsub { font-size: 13px; color: var(--muted); }
.elist { margin-top: 8px; }
.elist-h { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 850; margin: 6px 0 4px; }
.elist-h b { color: var(--muted); }
.erow { display: grid; grid-template-columns: 1fr auto 58px; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.erow .nm { font-weight: 750; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.erow .sc { font-size: 14px; color: var(--muted); } .erow .sc b { color: var(--ink); font-size: 16px; }
.erow .st { font-size: 11.5px; font-weight: 900; text-transform: uppercase; text-align: center; border-radius: 999px; padding: 3px 0; }
.erow.in .st { background: rgba(163,230,53,.14); color: var(--pot-elim); }
.erow.out .nm { text-decoration: line-through; text-decoration-color: var(--err); text-decoration-thickness: 2px; color: var(--muted); }
.erow.out .st { background: var(--errbg); color: var(--err); }
.elim-win { display: flex; gap: 12px; align-items: center; background: linear-gradient(135deg, rgba(255,201,64,.16), rgba(163,230,53,.1)); border: 1px solid rgba(255,201,64,.35); border-radius: 14px; padding: 10px 12px; margin: 4px 0 10px; box-shadow: 0 0 24px rgba(255,201,64,.12); }
.elim-win b { display: block; font-size: 17px; }
.elim-win .s { color: var(--muted); font-size: 14px; }
.eround { padding: 9px 0; border-top: 1px solid var(--line); }
.eround-h { display: flex; justify-content: space-between; gap: 8px; font-size: 15px; } .eround-h span { color: var(--muted); font-size: 14px; } .eround-h span b { color: var(--pot-elim); }
.eouts { margin-top: 4px; font-size: 14px; } .eouts s { text-decoration-color: var(--err); text-decoration-thickness: 2px; color: var(--muted); }
.radios { display: grid; gap: 8px; }
.radio { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line2); border-radius: 14px; cursor: pointer; }
.radio:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(255,60,154,.4); background: rgba(255,60,154,.06); }
.radio input { width: 22px; height: 22px; accent-color: var(--accent); margin-top: 2px; flex: none; }
.radio small { display: block; color: var(--muted); font-size: 13.5px; }
.fixed-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fixed-row label { font-size: 13px; color: var(--muted); font-weight: 750; }
.fixed-row input { min-height: 48px; text-align: center; margin-top: 4px; }

/* ------------------------------------------------ results */
.win { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.win:first-of-type { border-top: 0; }
.win .k { font-size: 12.5px; font-weight: 850; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; text-align: center; }
.win .v b { font-weight: 850; font-size: 17px; display: block; }
.win .v .s { color: var(--muted); font-size: 14px; display: block; }
.win .v .none { color: var(--faint); }
.potname { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 850; margin: 12px 0 2px; }
.potname:first-of-type { margin-top: 0; }
.trophy { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: rgba(255,201,64,.12); box-shadow: inset 0 0 0 1px rgba(255,201,64,.3), 0 0 16px rgba(255,201,64,.2); margin: 0 auto; flex: none; }
.flag { font-size: 14px; background: var(--warnbg); color: #fde68a; border-radius: 10px; padding: 7px 10px; margin-top: 8px; }
.pair { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.pair:first-of-type { border-top: 0; }
.place { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #1a1300; background: #8b98ab; }
.place.p1 { background: radial-gradient(circle at 35% 30%, #ffe28a, #d4a017); box-shadow: 0 0 14px rgba(255,201,64,.55); }
.place.p2 { background: radial-gradient(circle at 35% 30%, #f1f5f9, #94a3b8); }
.place.p3 { background: radial-gradient(circle at 35% 30%, #f5c49a, #b0703f); }
.pair .who div { font-weight: 750; }
.pair .who .s { font-weight: 400; color: var(--muted); font-size: 13.5px; display: block; }
.pair .tot { font-size: 22px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.complete-banner { position: relative; overflow: hidden; background: linear-gradient(135deg, #0e7a52, #10b981 55%, #22d3ee); color: #fff; border-radius: var(--radius); padding: 18px; margin-bottom: 14px; display: flex; gap: 14px; align-items: center; box-shadow: 0 0 0 1px rgba(52,211,153,.4), 0 10px 34px rgba(16,185,129,.35); animation: cardin .45s var(--ease) both; }
.complete-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.3) 50%, transparent 65%); background-size: 250% 100%; animation: shimmer 3s ease-in-out infinite; pointer-events: none; }
.complete-banner .art { font-size: 40px; }
.complete-banner b { font-size: 20px; display: block; }
.summary li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.summary li:first-child { border-top: 0; }
.summary li b { font-weight: 850; }
.summary li span { color: var(--muted); font-size: 14px; text-align: right; }
.payout { text-align: center; font-size: 14px; color: var(--muted); margin: 4px 0 18px; }
pre.log { white-space: pre-wrap; font-size: 12px; background: #050810; color: #d7e2f5; border-radius: 10px; padding: 10px; max-height: 320px; overflow: auto; }
details.card > summary { list-style: none; cursor: pointer; font-weight: 750; min-height: 30px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: "Show"; font-size: 14px; color: var(--cyan); font-weight: 650; }
details.card[open] > summary::after { content: "Hide"; }
details.card[open] > summary { margin-bottom: 10px; }

/* ------------------------------------------------ sheets, footer, toast */
.footer { text-align: center; padding: 8px 0 0; display: flex; flex-direction: column; align-items: center; color: var(--muted); }
.update-banner { position: sticky; top: 0; z-index: 40; }
.update-banner button { width: 100%; border: 0; background: linear-gradient(90deg, var(--accent), var(--accent2)); color: #fff; font-weight: 750; min-height: 52px; padding: 12px; cursor: pointer; }
dialog.sheet {
  border: 1px solid var(--line2); border-bottom: 0; padding: 0; width: 100%; max-width: 560px; max-height: 92vh; margin: auto auto 0; border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, #1a2238, #111726); color: var(--ink);
  box-shadow: 0 -10px 50px rgba(0,0,0,.6), 0 -1px 0 rgba(255,60,154,.3);
}
@media (min-width: 600px) { dialog.sheet { margin: auto; border-radius: 24px; border-bottom: 1px solid var(--line2); } }
dialog.sheet[open] { animation: sheetup .3s var(--ease); }
@keyframes sheetup { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
dialog.sheet::backdrop { background: rgba(3,5,12,.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
dialog.sheet .sheet-body { padding: 10px 18px calc(18px + var(--safe-b)); overflow: auto; max-height: 92vh; }
dialog.sheet .grab { width: 44px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.2); margin: 8px auto 10px; }
dialog.sheet h2 { font-size: 22px; margin-bottom: 12px; }
dialog.sheet ul { padding-left: 20px; }
dialog.sheet li { margin-bottom: 6px; }
.sheet-actions { display: grid; gap: 8px; margin-top: 16px; }
.gender-seg button { min-height: 52px; font-size: 17px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar) + 28px + var(--safe-b)); z-index: 50; background: rgba(24,32,54,.95); border: 1px solid var(--line2); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: 15px; font-weight: 650; box-shadow: 0 10px 30px rgba(0,0,0,.5); max-width: calc(100vw - 32px); text-align: center; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: toastin .3s var(--ease) both; }
.toast.big { background: linear-gradient(135deg, #059669, #10b981); border-color: rgba(110,231,183,.5); font-size: 16px; box-shadow: 0 0 26px rgba(16,185,129,.5); }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 14px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0); } }
.gate { margin-top: 18px; }
.gate-logo { display: block; width: min(100%, 340px); height: auto; margin: 4px auto 18px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0; }

/* ------------------------------------------------ celebration (fx.js) */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.fx-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.55), rgba(255,60,154,.25) 35%, transparent 65%); animation: strike .7s ease-out both; }
.fx-strike { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); font: 900 64px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; letter-spacing: 4px; color: #fff; text-shadow: 0 0 18px var(--accent), 0 0 42px var(--accent); animation: strikeword 1.1s var(--ease) both; }
.fx-bit { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; opacity: 0; animation: fall var(--d, 1.6s) var(--delay, 0s) cubic-bezier(.25,.6,.4,1) forwards; }
@keyframes strike { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }
@keyframes strikeword { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 30% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 70% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1.02); } }
@keyframes fall { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x, 0), 105vh) rotate(var(--r, 540deg)); } }

/* wide screens (the Windows copy in a desktop browser): keep the tabs under the content column */
@media (min-width: 760px) {
  .tabbar { padding-left: calc(50% - 320px); padding-right: calc(50% - 320px); }
}

/* motion: keep it calm for people who ask for that */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .bar > i::after { animation: none !important; background: none !important; }
  .fx-layer { display: none !important; }
}

/* 1.2: LeagueSecretary handicap update */
.ls-card-line { font-size: 13.5px; color: var(--muted); margin: 10px 2px 0; }
.lsrow .tick { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line2); display: grid; place-items: center; font-weight: 900; font-size: 15px; flex: none; color: #06281c; }
.lsrow[aria-pressed="true"] .tick { background: var(--ok); border-color: var(--ok); box-shadow: 0 0 10px rgba(52,211,153,.45); }
.lsrow[disabled] { opacity: .7; }
.lsrow[disabled] .tick { color: var(--faint); border-style: dashed; }
.lsrow.review .who .s, .lsrow.ambiguous .who .s { color: #fde68a; white-space: normal; }
.lsrow .who .s { white-space: normal; }
.lsrow .hpill i { font-style: normal; font-weight: 850; margin-left: 2px; }
.lsrow .hpill i.up { color: var(--warn); }
.lsrow .hpill i.down { color: var(--cyan); }
.lsrow .hpill b { color: #fff; }
.ls-new i { color: var(--ok); font-style: normal; font-weight: 800; }
.ls-bulk { display: flex; justify-content: space-between; margin: -4px 0 4px; }
.ls-bulk .linkbtn { padding: 6px 4px; min-height: 36px; font-size: 14px; }
.ls-unmatched { margin: 4px 2px 0; color: var(--muted); }
.ls-unmatched summary { cursor: pointer; padding: 10px 0; font-weight: 750; color: var(--ink); }
.ls-actions { position: sticky; bottom: calc(-18px - var(--safe-b)); background: linear-gradient(180deg, rgba(17,23,38,0), #111726 28%); padding: 18px 0 calc(8px + var(--safe-b)); margin-bottom: calc(-18px - var(--safe-b)); }
.ls-spin { width: 44px; height: 44px; margin: 22px auto; border-radius: 50%; border: 4px solid var(--line2); border-top-color: var(--accent); animation: lsspin .9s linear infinite; }
@keyframes lsspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ls-spin { animation: none; } }

/* 1.4 Eliminator payouts */
.potline { margin: 10px 0 12px; }
.potline-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.potline-h b { font-size: 15px; }
.potamt { color: var(--gold); font-size: 22px; font-weight: 850; margin-left: 6px; text-shadow: 0 0 14px rgba(255,201,64,.35); }
.org-line { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.org-line b { color: var(--cyan); }
.pay-places { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.pay-places .pp { display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255,255,255,.04); font-weight: 800; font-size: 14px; }
.pay-places .pp i { font-style: normal; font-weight: 700; font-size: 11px; color: var(--muted); }
.pay-places .pp.first { border-color: rgba(255,201,64,.55); color: var(--gold); box-shadow: 0 0 12px rgba(255,201,64,.2); }
.paybox { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 6px 0 10px; background: rgba(255,255,255,.02); }
.standings { display: grid; gap: 4px; margin: 6px 0; }
.srow { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: rgba(255,255,255,.03); }
.srow .pl { font-weight: 850; color: var(--muted); text-align: center; }
.srow .nm { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow .nm small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.srow .amt { font-weight: 850; color: var(--faint); }
.srow.paid .amt { color: var(--lime); }
.srow.first { background: linear-gradient(90deg, rgba(255,201,64,.16), rgba(255,60,154,.08)); border: 1px solid rgba(255,201,64,.4); }
.srow.first .pl, .srow.first .amt { color: var(--gold); }
.payform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
.payform label { display: grid; gap: 4px; font-size: 12.5px; line-height: 1.25; color: var(--muted); align-content: end; min-width: 0; }
.payform label.wide, .payform .wide, .payform .sheet-actions { grid-column: 1 / -1; }
.payform input { width: 100%; box-sizing: border-box; min-width: 0; font: inherit; font-size: 16px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line2); background: rgba(255,255,255,.05); color: var(--ink); }

/* 1.4.2 declutter: (i) details button, details list, tighter one-line notices */
.info-btn { margin-left: auto; flex: none; width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid var(--line2); background: rgba(255,255,255,.04); color: var(--muted); font: 700 italic 16px/1 Georgia, "Times New Roman", serif; cursor: pointer; display: inline-grid; place-items: center; }
.info-btn:active { transform: scale(.94); }
.info-list { margin: 4px 0 6px; display: grid; gap: 0; }
.info-list > div { display: grid; grid-template-columns: 38% 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.info-list > div:last-child { border-bottom: 0; }
.info-list dt { color: var(--muted); font-size: 13.5px; }
.info-list dd { margin: 0; font-size: 14.5px; overflow-wrap: anywhere; }
.msg.one { padding: 8px 12px; font-size: 14px; }
.window { align-items: center; padding: 9px 12px; font-size: 14.5px; }
.window .ic { font-size: 17px; }
.window b { display: inline; font-weight: 600; font-size: 14px; }
body.locked .topbar { display: none; }
.gate h2 { text-align: center; margin-bottom: 14px; }
.drawn-at { margin-top: 4px; }
.potline .pot-sub { margin: 2px 0 8px; font-size: 13.5px; color: var(--muted); }
.potline .pot-sub b { color: var(--cyan); }
.league-opt .lo-main > span { display: block; margin-top: 2px; }
.game-mini { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.game-mini h3 { margin: 0; }
.elim-set { margin: 2px 0 10px; font-size: 13px; color: var(--muted, #8a94a6); display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; }
.elim-set .linkbtn { padding: 2px 4px; min-height: 0; font-size: 13px; }
.view > .msg.one { margin: 0 0 12px; }

/* 1.4.3: Select League / Select Date below the header divider; "Step N · Name" titles; step numbers on the tabs */
.selectors { margin: 0 0 16px; border: 1px solid var(--line2); border-radius: 18px; background: rgba(255,255,255,.035); overflow: hidden; }
.sel-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 10px 14px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background .15s; }
.sel-row + .sel-row { border-top: 1px solid var(--line); }
.sel-row:active { background: rgba(255,255,255,.05); }
.sel-ic { flex: none; width: 20px; height: 20px; color: var(--accent); }
.sel-k { flex: none; color: var(--muted); font-size: 14.5px; font-weight: 650; }
.sel-v { margin-left: auto; min-width: 0; color: #fff; font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sel-chev { flex: none; width: 16px; height: 16px; color: var(--muted); }
.step-k { color: var(--accent); text-shadow: 0 0 14px rgba(255,60,154,.35); }
.step-sep { color: var(--faint); margin: 0 9px; font-weight: 700; }
.tabbar button { gap: 2px; }
.tabbar button svg { width: 23px; height: 23px; }
.tabbar .tab-step { font-size: 9.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; line-height: 1; color: var(--faint); margin-top: 1px; }
.tabbar button[aria-current="page"] .tab-step { color: var(--accent); }
.night-note { margin: 0 0 12px; }
.night-note:empty { display: none; }
.night-note .window, .night-note .msg { margin: 0 0 8px; }
#date-sheet .quick { margin-top: 4px; }
#date-sheet .cal-card { margin-bottom: 10px; }

/* ---------- 1.5 money: High Game / High Series pots, Pots & payouts sheet, paid list, payouts ---------- */
:root { --pot-hgame: #22d3ee; --pot-hseries: #facc15; }
.pot-tiles.n6 { grid-template-columns: repeat(3, 1fr); }
.pot-tile.hgame b { color: var(--pot-hgame); text-shadow: 0 0 14px rgba(34,211,238,.5); }
.pot-tile.hseries b { color: var(--pot-hseries); text-shadow: 0 0 14px rgba(250,204,21,.45); }
.tog[aria-pressed="true"].hgame { background: var(--pot-hgame); box-shadow: 0 0 14px rgba(34,211,238,.5); }
.tog[aria-pressed="true"].hseries { background: var(--pot-hseries); box-shadow: 0 0 14px rgba(250,204,21,.45); }
.toggles.many { display: grid; grid-template-columns: repeat(3, 44px); gap: 4px; }
.toggles.many .tog { min-width: 0; height: 34px; border-radius: 10px; font-size: 11px; padding: 0 2px; }
.money-on { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 14px; margin: 0 0 12px; cursor: pointer; }
.money-on small { display: block; color: var(--muted); font-size: 13px; }
.money-on input { width: 46px; height: 26px; accent-color: var(--ok); flex: none; }
.pot-tabs { flex-wrap: wrap; }
.pot-tabs button { flex: 1 1 30%; min-height: 40px; font-size: 14px; }
.payform select { width: 100%; font: inherit; font-size: 16px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line2); background: #151a2c; color: var(--ink); }
.paylinks-set { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.warn-t { color: var(--warn); font-weight: 750; }
.ok-t { color: var(--ok); font-weight: 750; }
.money-card { margin: 0 0 12px; padding: 12px 14px; }
.money-card .pot-sub { margin: 4px 0 0; font-size: 13.5px; color: var(--muted); }
.money-card .pot-sub b { color: var(--cyan); }
.ledger { display: grid; gap: 6px; }
.ledger-row, .po-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.ledger-row label { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; cursor: pointer; }
.ledger-row input, .po-paid input { width: 22px; height: 22px; accent-color: var(--ok); flex: none; }
.ledger-row .nm, .po-row .nm { flex: 1; min-width: 0; font-weight: 750; overflow-wrap: anywhere; }
.ledger-row .nm small, .po-row .nm small { display: block; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.ledger-row b, .po-row b { font-variant-numeric: tabular-nums; color: var(--cyan); }
.ledger-row.paid, .po-row.paid { opacity: .6; }
.ledger-row.paid b, .po-row.paid b { color: var(--ok); }
.po-row + .po-row { margin-top: 6px; }
.po-paid { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); cursor: pointer; }
.ledger-row .btn, .po-row .btn { width: auto; flex: none; min-height: 36px; padding: 4px 10px; font-size: 13px; text-decoration: none; }
.win-amt { color: var(--gold); font-weight: 850; margin-left: 4px; font-variant-numeric: tabular-nums; }
#print-root { display: none; }

@media print {
  @page { margin: 12mm; }
  html.printing { background: #fff !important; color-scheme: light !important; }
  html.printing body, html.printing #print-root { color-scheme: light; }
  body.printing { background: #fff !important; color: #000 !important; padding: 0 !important; margin: 0 !important; }
  body.printing > *:not(#print-root) { display: none !important; }
  body.printing #print-root { display: block !important; }
}
#print-root { font: 12pt/1.35 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #000; background: #fff; }
#print-root h1 { font-size: 18pt; margin: 0 0 2pt; }
#print-root h2 { font-size: 13pt; margin: 14pt 0 4pt; border-bottom: 1.5pt solid #000; padding-bottom: 2pt; }
#print-root .sub { color: #333; margin: 0 0 8pt; }
#print-root table { width: 100%; border-collapse: collapse; margin: 0 0 6pt; }
#print-root th, #print-root td { text-align: left; padding: 3pt 4pt; border-bottom: .5pt solid #999; vertical-align: top; }
#print-root th { font-size: 10pt; text-transform: uppercase; letter-spacing: .04em; color: #333; }
#print-root td.r, #print-root th.r { text-align: right; font-variant-numeric: tabular-nums; }
#print-root tr.tot td { font-weight: 700; border-top: 1pt solid #000; }
#print-root .box { display: inline-block; width: 10pt; height: 10pt; border: 1pt solid #000; vertical-align: middle; }
#print-root .slip { page-break-inside: avoid; break-inside: avoid; border: 1.5pt dashed #000; padding: 14pt 16pt; margin: 0 0 18pt; }
#print-root .slips-start { page-break-before: always; break-before: page; }
#print-root .slip .amt { font-size: 30pt; font-weight: 800; margin: 6pt 0; }
#print-root .sign { margin-top: 26pt; display: flex; gap: 20pt; }
#print-root .sign span { flex: 1; border-top: 1pt solid #000; padding-top: 3pt; font-size: 10pt; }
#print-root .foot { margin-top: 12pt; font-size: 9pt; color: #555; }

/* ---------- 1.6 brackets ---------- */
.br-list { max-height: 46vh; overflow-y: auto; margin-bottom: 0; }
.br-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); }
.br-row:first-child { border-top: 0; }
.br-row .nm { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.br-row .nm small { display: block; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.br-row.on .nm { color: #fff; }
.stepper { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.stepper button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255,255,255,.05); color: var(--ink); font-size: 22px; font-weight: 800; cursor: pointer; line-height: 1; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper b { min-width: 26px; text-align: center; font-size: 18px; font-variant-numeric: tabular-nums; }
.br-row.on .stepper b { color: var(--cyan); }
.br-round { margin-bottom: 8px; }
.br-m { border: 1px solid var(--line); border-radius: 12px; padding: 4px 10px; margin: 6px 0; background: rgba(255,255,255,.02); }
.br-m.tie { border-color: rgba(251,191,36,.5); }
.br-p { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 15px; }
.br-p + .br-p { border-top: 1px dashed var(--line); }
.br-p .n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-p b { font-variant-numeric: tabular-nums; }
.br-p.win .n, .br-p.win b { color: var(--gold); font-weight: 850; }
.br-p.out { color: var(--muted); }
.br-p.out .n { text-decoration: line-through; }
.br-ro { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 0 4px; font-size: 13px; color: var(--warn); }
.br-ro span { flex-basis: 100%; }
.br-ro .btn { width: auto; min-height: 34px; padding: 4px 10px; font-size: 13px; }
.br-note { font-size: 12.5px; color: var(--muted); padding: 0 0 4px; }
.br-note .linkbtn { min-height: 0; padding: 0 4px; font-size: 12.5px; }
.br-champ { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,201,64,.08); border: 1px solid rgba(255,201,64,.35); color: var(--gold); font-weight: 750; }

/* 1.7 bowler live page: one-line card (Entries, Scores) + QR sheet */
.live-line { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; cursor: pointer; border: 1px solid var(--line); }
.live-line .ll-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.live-line .ll-t small { color: var(--muted); font-size: 13.5px; }
.live-line.bad .ll-t small { color: var(--err); }
.live-line .chev { color: var(--faint); font-size: 22px; }
.qr-ico { flex: none; width: 30px; height: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 8px; background: rgba(44,188,255,.14); }
.qr-ico i { border: 2.5px solid var(--cyan); border-radius: 2px; }
.qr-ico i:nth-child(4) { border: 0; background: repeating-linear-gradient(90deg, var(--cyan) 0 2px, transparent 2px 4px); }
.qr-box { width: min(270px, 78vw); margin: 4px auto 10px; background: #fff; border-radius: 18px; padding: 8px; }
.qr-box svg { display: block; width: 100%; height: auto; }
.lv-url { text-align: center; margin: 0 0 4px; word-break: break-all; }
.err-text { color: var(--err); }
.linkbtn.danger-text { color: var(--err); }

/* 1.7.2 typed scores: inline boxes + one Save (sticky above the tab bar) */
.sc-box { display: inline-flex; flex-direction: column; align-items: flex-end; flex: none; }
.sc-in { width: 76px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: var(--bg2); color: var(--ink); font-family: inherit; font-size: 19px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; text-align: center; padding: 0 6px; }
.sc-in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,60,154,.2); }
.sc-in.bad { border-color: var(--err); background: var(--errbg); box-shadow: 0 0 0 3px rgba(251,113,133,.18); }
.sc-err { color: var(--err); font-size: 12px; font-weight: 700; margin-top: 3px; white-space: nowrap; }
.miss .sc-box { margin-left: auto; }
.sc-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.sc-row .who { flex: 1; min-width: 0; }
.savebar { position: fixed; left: 10px; right: 10px; bottom: calc(var(--tabbar) + 10px + var(--safe-b)); z-index: 40; display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 16px; border-radius: 18px; background: rgba(24,32,54,.97); border: 1px solid rgba(255,60,154,.45); box-shadow: 0 12px 32px rgba(0,0,0,.55), 0 0 0 1px rgba(255,60,154,.2); backdrop-filter: blur(8px); max-width: 620px; margin: 0 auto; }
.savebar.bad { border-color: rgba(251,113,133,.7); }
.savebar .sb-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.savebar .sb-t small { color: var(--muted); font-size: 12.5px; }
.savebar.bad .sb-t small { color: var(--err); }
.savebar .btn { width: auto; padding: 0 18px; min-height: 46px; }
.savebar .linkbtn { padding: 6px; }
body.has-savebar { padding-bottom: calc(var(--tabbar) + 110px + var(--safe-b)); }

/* 1.7.3: "Get the app" links (passcode screen, footer, What's new) */
.gate-get { text-align: center; margin: 16px 0 2px; font-size: 15px; }
.gate-get a { color: var(--cyan); text-underline-offset: 3px; }
a.linkbtn { display: inline-flex; align-items: center; }
.footer .get-link { font-size: 14px; padding-top: 0; }
.locked .footer .get-link { display: none; } /* the passcode screen has its own link */

/* ---------- 1.7.4 Results: a tab per pot + All Results ---------- */
.rtabs-wrap { position: sticky; top: calc(66px + env(safe-area-inset-top, 0px)); z-index: 6; margin: 0 -14px 12px; padding: 6px 0 8px; background: linear-gradient(180deg, rgba(11,11,18,.94) 70%, rgba(11,11,18,0)); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.rtabs { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 2px 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rtabs::-webkit-scrollbar { display: none; }
.rtab { --acc: var(--accent); flex: none; scroll-snap-align: center; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255,255,255,.035); color: var(--muted); font: inherit; font-size: 14px; font-weight: 750; white-space: nowrap; cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease); }
.rtab .ri { display: inline-flex; color: var(--acc); opacity: .85; }
.rtab:hover { color: var(--ink); border-color: color-mix(in srgb, var(--acc) 45%, transparent); }
.rtab.on { color: #0b0b12; background: var(--acc); border-color: var(--acc); box-shadow: 0 0 16px color-mix(in srgb, var(--acc) 45%, transparent); }
.rtab.on .ri { color: #0b0b12; opacity: 1; }
.rmark { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-style: normal; font-size: 10.5px; font-weight: 900; line-height: 1; flex: none; }
.rmark.done { background: var(--ok); color: #06251a; }
.rmark.live { width: 8px; height: 8px; background: var(--warn); box-shadow: 0 0 8px rgba(251,191,36,.7); margin: 0 4px; }
.rmark.wait { width: 8px; height: 8px; border: 1.5px solid var(--faint); margin: 0 4px; }
.rmark.none { width: 8px; height: 8px; background: transparent; border: 1.5px dashed var(--faint); opacity: .6; margin: 0 4px; }
.rtab.on .rmark.done { background: #0b0b12; color: var(--ok); }
.rtab.on .rmark.live { background: #0b0b12; box-shadow: none; }
.rtab.on .rmark.wait, .rtab.on .rmark.none { border-color: #0b0b12; }
.pot-panel { --acc: var(--accent); }
.pot-hero { border-color: color-mix(in srgb, var(--acc) 35%, transparent); background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--acc) 16%, transparent), transparent 60%), linear-gradient(180deg, var(--card2), var(--card)); }
.ph-top { display: flex; align-items: center; gap: 12px; }
.ph-ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--acc); background: color-mix(in srgb, var(--acc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--acc) 40%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--acc) 25%, transparent); }
.ph-ico svg { width: 24px; height: 24px; }
.ph-t { min-width: 0; flex: 1; }
.ph-t h3 { margin: 0; font-size: 20px; color: var(--acc); }
.ph-t p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.st-pill { flex: none; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--chip); color: var(--muted); border: 1px solid var(--line); }
.st-pill.done { background: var(--okbg); color: var(--ok); border-color: rgba(52,211,153,.3); }
.st-pill.live { background: var(--warnbg); color: var(--warn); border-color: rgba(251,191,36,.3); }
.ph-status { margin: 10px 0 0; font-size: 14px; color: var(--ink); }
.ph-money { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ph-money span { font-size: 14px; font-weight: 800; padding: 5px 10px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.ph-money span i { display: block; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ph-money span.pot { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 40%, transparent); }
.pot-game { border-left: 3px solid var(--acc); }
.pot-game h3 { display: flex; align-items: center; gap: 8px; }
.gno { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 6px; border-radius: 8px; font-size: 12px; font-weight: 900; color: #0b0b12; background: var(--acc); }
.pot-prize { margin: -4px 0 8px; }
.prize-chip { display: inline-block; font-size: 12.5px; font-weight: 800; color: var(--acc); background: color-mix(in srgb, var(--acc) 12%, transparent); border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent); padding: 2px 9px; border-radius: 999px; }
.pot-wait { margin: 0 0 4px; font-weight: 750; color: var(--ink); }
.pot-wait .hour { filter: grayscale(.2); }
.stand-h { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 850; margin: 12px 0 4px; }
.stand-2 { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 620px) { .stand-2 { grid-template-columns: 1fr 1fr; } }
.pot-panel .srow.first { background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 18%, transparent), rgba(255,255,255,.02)); border-color: color-mix(in srgb, var(--acc) 45%, transparent); }
.pot-panel .srow.first .pl, .pot-panel .srow.first .amt { color: var(--acc); }
.pot-actions { margin: 4px 0 14px; }
.pot-panel .standings .srow { padding: 5px 10px; }
.rtabs.more-l { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px); mask-image: linear-gradient(90deg, transparent 0, #000 22px); }
.rtabs.more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent 100%); }
.rtabs.more-l.more-r { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); }
.pot-actions .btn { width: 100%; border-color: color-mix(in srgb, var(--acc) 40%, transparent); }

/* 1.8.0 practice mode (tester login) */
.practice-bar { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 8px 12px; background: linear-gradient(90deg, rgba(250, 204, 21, .18), rgba(255, 60, 154, .14)); border-bottom: 1px solid rgba(250, 204, 21, .45); font-size: 13px; background-color: #17131f; }
.practice-bar .pb-badge { font-weight: 800; color: #facc15; flex: 1 1 100%; }
.practice-bar .pb-user { color: var(--muted, #9aa3b2); margin-right: auto; }
.practice-bar .btn.small { padding: 5px 10px; font-size: 12.5px; }
.gate-alt { text-align: center; margin: 12px 0 0; }
.tester-list { display: grid; gap: 8px; margin: 10px 0; }
.tester-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 10px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; }
.tester-row.revoked { opacity: .6; }
.tester-row .tr-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.tester-row .tr-pass code { font-size: 14px; color: #facc15; user-select: all; }
.tester-add { display: flex; gap: 8px; margin: 6px 0 14px; }
.tester-add input { flex: 1; min-width: 0; }
.fb-list { display: grid; gap: 8px; max-height: 40vh; overflow: auto; }
.fb-item { padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.fb-item .fb-meta { display: flex; gap: 6px; align-items: center; font-size: 12.5px; }
.fb-item .fb-meta .btn { margin-left: auto; }
.fb-item .fb-text { white-space: pre-wrap; margin-top: 4px; }
.practice-bar .btn, .tester-row .btn, .fb-item .btn, .tester-add .btn { width: auto; margin: 0; min-height: 0; }
.practice-bar .btn.small { padding: 6px 10px; }
.tester-row .tr-main { flex: 1 1 100%; }
.fb-item .fb-meta .btn { padding: 2px 8px; }
#fb-text { background: rgba(255, 255, 255, .06); color: inherit; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 10px; font: inherit; box-sizing: border-box; }

/* 1.8.1 Pots tonight (Step 2) */
.tonight-card { margin-top: 12px; }
.tonight-card .tn-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; }
.tonight-card .tn-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tn-opt { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 9px 8px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .03); cursor: pointer; min-height: 44px; }
.tn-opt.on { border-color: rgba(255, 60, 154, .55); background: rgba(255, 60, 154, .10); }
.tn-opt input { width: 18px; height: 18px; accent-color: #ff3c9a; margin: 0; flex: none; }
.tn-opt .tn-nm { flex: 1; min-width: 0; font-weight: 600; font-size: 13.5px; line-height: 1.2; }
.tn-opt .tn-n { flex: none; white-space: nowrap; font-size: 11px; padding: 1px 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.tn-opt .tn-n.hid { background: rgba(250, 204, 21, .18); color: #facc15; }

/* 1.9.2: subs */
.subtag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .04em; line-height: 17px; vertical-align: 1px; text-transform: uppercase; color: #1a1300; background: var(--gold); }
.team-head.subs-head { color: var(--gold); }
.sub-chk { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; }
.sub-chk input { width: 20px; height: 20px; accent-color: var(--gold); }
.ls-subs { margin: 12px 0 4px; padding: 10px 12px; border: 1px solid rgba(255,201,64,.35); border-radius: 12px; background: rgba(255,201,64,.07); }
.ls-subs label { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.ls-subs input { width: 20px; height: 20px; accent-color: var(--gold); }
.ls-subs ul { margin: 8px 0 0; padding-left: 18px; max-height: 180px; overflow: auto; }
.sub-n { display: flex; align-items: center; min-width: 0; max-width: 100%; }
.sub-n .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sub-n .subtag { flex: none; }
