:root {
  --bg: #060a12;
  --bg-glow: #0c1a32;
  --elev: #121a28;
  --elev-2: #182233;
  --text: #eef3f8;
  --text-soft: #b8c5d4;
  --muted: #7a8a9c;
  --accent: #c9a27a;
  --accent-hi: #ecd4b5;
  --accent-line: rgba(201, 162, 122, 0.40);
  --signal: #3ecfbe;
  --signal-hi: #8af0e3;
  --signal-dim: rgba(62, 207, 190, 0.18);
  --signal-line: rgba(62, 207, 190, 0.45);
  --border: #243044;
  --ok: #5dde9a;
  --warn: #e8c07a;
  --danger: #e8a0a8;
  --mast-bg: rgba(7, 11, 18, 0.78);
  --input-bg: #0a1018;
  --radius: 12px;
  --stage-max: 980px;
  --page-gutter: 16px;
  --shadow-glow: 0 0 40px rgba(62, 207, 190, 0.08);
  --font-brand: "Iowan Old Style", "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  --font-body: "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  color-scheme: dark;
  font-family: "Segoe UI", "Noto Sans TC", "PingFang TC", sans-serif;
  -webkit-text-size-adjust: 100%;
}
.desk-shell { min-height: 100dvh; display: flex; flex-direction: column; }
.mast {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  width: 100%;
  padding: 10px max(var(--page-gutter), calc(50% - (var(--stage-max) / 2) + var(--page-gutter)));
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid var(--accent-line);
  background: var(--elev);
  position: sticky;
  top: 0;
  z-index: 40;
}
.mast-brand { display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; }
.mast-mark {
  font-size: clamp(1.12rem, 3.4vw, 1.48rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.mast-sub { font-size: 0.68rem; letter-spacing: 0.08em; color: var(--muted); }
.mast-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-left: auto;
  font-size: 0.95rem;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}
.view-as {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent-hi);
  white-space: nowrap;
}
.view-as select {
  min-height: 36px;
  max-width: 9.5rem;
  background: var(--input-bg);
  color: var(--accent-hi);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 0 8px;
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0;
  cursor: pointer;
}
#mastAuth { display: contents; }
.mast-auth-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  min-width: 0;
}
.mast-who { color: var(--text-soft); font-size: 0.88rem; }
.auth-card {
  max-width: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.auth-card label { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; color: var(--text-soft); }
.auth-card form:not([hidden]) { display: flex; flex-direction: column; gap: 14px; }
.auth-card form[hidden], .auth-msg[hidden],
#adminLogin[hidden], #adminBoard[hidden] { display: none !important; }
.pw-field {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.pw-field input { flex: 1 1 auto; min-width: 0; width: auto; }
.pw-field [data-pw-toggle] {
  flex: 0 0 auto;
  min-width: 64px;
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--accent-line);
  border-radius: 8px;
  background: transparent;
  color: var(--accent-hi);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.auth-card input, .admin-table select {
  width: 100%;
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  min-height: 48px;
}
.btn, .admin-actions button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--elev);
  font-weight: 700;
  cursor: pointer;
}
.auth-alt { margin: 4px 0 0; text-align: center; }
.auth-alt a {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.auth-card .btn {
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  font-size: 1.08rem;
  letter-spacing: 0.08em;
}
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: var(--text);
}
.btn-google.off { opacity: 0.7; }
.auth-split { text-align: center; color: var(--muted); font-size: 0.8rem; }
.auth-tabs { display: flex; gap: 8px; }
.auth-tabs button {
  flex: 1;
  min-height: 40px;
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.auth-tabs button.on { border-color: var(--accent); color: var(--accent-hi); }
.auth-hint, .auth-msg { margin: 0; font-size: 0.88rem; color: var(--text-soft); }
.auth-msg { color: var(--accent-hi); }
.admin-tabs { display: flex; gap: 8px; margin: 0 0 14px; }
.admin-tabs button {
  min-height: 36px;
  padding: 0 14px;
  background: transparent;
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
}
.admin-tabs button.on { border-color: var(--accent); color: var(--accent-hi); }
.admin-empty { margin: 0 0 12px; color: var(--text-soft); font-size: 0.92rem; }
.admin-empty[hidden] { display: none !important; }
#queueWrap[hidden], #rosterWrap[hidden], #ledgerWrap[hidden] { display: none !important; }
.ms-pill {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--accent-hi);
  white-space: nowrap;
}
.ms-pill.is-pending, .ms-pill.is-expiring, .ms-pill.is-expired { color: var(--danger); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th, .admin-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
body[data-admin-gate="1"] { --stage-max: 1240px; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-actions button { min-height: 36px; padding: 0 12px; font-size: 0.82rem; }
.admin-save[hidden] { display: none !important; }
.admin-table tr.is-dirty td:first-child { border-left: 3px solid var(--accent); }
.admin-table select {
  width: auto;
  min-width: 5.2rem;
  min-height: 36px;
  padding: 4px 8px;
}
.admin-table input[type="date"],
.admin-table input[data-field="password"] {
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 8px;
  font: inherit;
  min-height: 36px;
  color-scheme: dark;
}
.admin-table input[type="date"] { width: 10.6rem; flex: 0 0 auto; }
.admin-table input[type="date"]:disabled { opacity: 0.45; }
.admin-table input[data-field="password"] {
  width: 8.2rem;
  letter-spacing: 0.12em;
}
.admin-until,
.admin-login {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.admin-until label,
.admin-login .login-kind {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-soft);
  margin: 0;
}
.admin-until .until-note { font-size: 0.75rem; color: var(--text-soft); }
.admin-until.is-expired .until-note { color: var(--danger); }
.admin-until button[data-renew],
.admin-pw [data-pw-toggle] {
  min-height: 36px;
  padding: 0 10px;
  font-size: 0.75rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.admin-until button[data-renew] {
  border: 0;
  background: var(--accent);
  color: var(--elev);
}
.admin-pw {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.admin-pw [data-pw-toggle] {
  border: 1px solid var(--accent-line);
  background: transparent;
  color: var(--accent-hi);
  min-width: 44px;
}
.mast-nav a {
  color: var(--accent);
  font-weight: 650;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.stage,
.stage-wide {
  padding: var(--page-gutter) var(--page-gutter) calc(48px + env(safe-area-inset-bottom, 0px));
  max-width: var(--stage-max);
  margin: 0 auto;
  width: 100%;
}
.status-hero { padding: 4px 0 18px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.status-kicker { margin: 0; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.status-title { margin: 8px 0 6px; font-size: 1.45rem; font-weight: 700; }
.status-kicker { text-transform: none; letter-spacing: 0.06em; }
.status-lede { margin: 0; font-size: 0.92rem; color: var(--text-soft); line-height: 1.5; }
.ratio { color: var(--accent-hi); font-weight: 700; }
.panel { background: transparent; width: 100%; }
.board-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; width: 100%; }
.board-list[hidden],
body.vip-tab-crs #boardList { display: none !important; }
.board-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--elev);
  width: 100%;
  box-sizing: border-box;
}
.board-vs { margin: 0; font-size: 1.02rem; font-weight: 650; }
.board-meta { margin: 4px 0 0; font-size: 0.82rem; color: var(--muted); }
.board-pick {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--accent-hi);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.win-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.6rem;
  padding: 0.28rem 0.7rem;
  font-size: clamp(1.05rem, 4.4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--ok);
  border: 2px solid var(--ok);
  border-radius: 8px;
  background: rgba(93, 222, 154, 0.14);
  box-shadow: 0 0 16px rgba(93, 222, 154, 0.28);
  vertical-align: middle;
  flex-shrink: 0;
}
.board-pick .win-badge,
.board-flag .win-badge {
  font-size: clamp(1.28rem, 5.2vw, 1.9rem);
  min-width: 4.4rem;
  padding: 0.38rem 0.85rem;
}
.vip-stars {
  display: inline-block;
  margin-left: 0.28rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  vertical-align: 0.05em;
}
.board-extra { margin: 4px 0 0; font-size: 0.86rem; color: var(--text-soft); }
.board-tag {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.board-score {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  text-align: right;
}
.board-score small { display: block; margin-top: 4px; font-size: 0.72rem; font-weight: 500; color: var(--muted); }
.board-flag {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--accent-hi);
  line-height: 1;
  text-align: right;
  align-self: center;
}
.board-list li.hit {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--signal-dim), var(--elev));
  box-shadow: 0 0 0 1px var(--accent-line);
}
.board-list li.hit .board-vs { font-size: 1.08rem; }
.board-list li.hit .board-pick { color: var(--accent-hi); font-weight: 650; }
.board-list li.miss {
  padding: 8px 12px;
  gap: 2px 10px;
  opacity: 0.78;
  border-color: var(--border);
  background: var(--elev-2);
}
.board-list li.miss .board-vs { font-size: 0.82rem; font-weight: 500; }
.board-list li.miss .board-meta { font-size: 0.7rem; margin-top: 2px; }
.board-list li.miss .board-pick { margin-top: 2px; font-size: 0.76rem; color: var(--muted); font-weight: 400; }
.board-list li.miss .board-flag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}
.board-list li.void { opacity: 0.34; }
.mast-nav a[aria-current="page"] { color: var(--accent-hi); }
.legal { margin: 28px 2px 0; font-size: 0.72rem; color: var(--muted); line-height: 1.45; }
.login-cta { margin: 18px 2px 0; font-size: 0.88rem; color: var(--muted); }
.login-cta a { color: var(--accent); font-weight: 650; text-decoration: none; }
#heroCta { margin: 0 2px 14px; }
.cta-sub { display: block; margin-top: 6px; font-size: 0.8rem; color: var(--muted); }
.board-lock { margin: 6px 0 0; font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
#guestLock { margin: 16px 0 0; }
#guestLock[hidden] { display: none !important; }
.tier-guide {
  margin: 0 0 8px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--elev);
  list-style: none;
}
.tier-guide li {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.45;
}
.tier-guide li:last-child { margin-bottom: 0; }
.tier-guide strong { color: var(--accent-hi); font-weight: 650; margin-right: 8px; }
.guest-convert {
  margin: 12px 2px 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}
.guest-convert a { color: var(--accent); font-weight: 650; text-decoration: none; }
.vip-lock {
  padding: 20px 16px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--elev);
}
.vip-lock-title { margin: 0 0 8px; font-size: 1.1rem; font-weight: 700; color: var(--accent-hi); }
.vip-lock p { margin: 0 0 10px; color: var(--text-soft); font-size: 0.9rem; line-height: 1.45; }
.vip-lock label { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; color: var(--text-soft); }
.vip-lock input {
  background: var(--input-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
  min-height: 48px;
}
.vip-lock .btn { width: 100%; margin-top: 8px; }
.login-cta .vip-lock { margin-top: 4px; }
.empty { color: var(--muted); padding: 20px 4px; }
.empty a { color: var(--accent); font-weight: 650; text-decoration: none; }
.board-list li.vip-race,
.board-list li.vip-tickets {
  grid-template-columns: 1fr;
  gap: 6px;
}
.vip-tickets .board-pick { font-weight: 650; }
.board-meta .vip-badge { margin-right: 6px; }
.vip-badge {
  display: inline-block;
  margin: 0 6px 4px 0;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.vip-badge.bet { border-color: var(--accent); color: var(--accent-hi); }
.vip-badge.t5 { border-color: var(--accent-line); color: var(--accent); }
.vip-hits { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.vip-hit {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.vip-hit.on {
  color: var(--ok);
  font-weight: 800;
  border: 1px solid var(--ok);
  box-shadow: 0 0 8px rgba(93, 222, 154, 0.35);
  text-shadow: 0 0 6px rgba(93, 222, 154, 0.25);
}
.board-list li.vip-section-head {
  display: block;
  padding: 18px 4px 4px;
  border: 0;
  background: transparent;
}
.board-list li.vip-section-head .board-vs {
  font-size: 1.2rem;
  color: var(--accent-hi);
}
.vip-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  width: 100%;
}
.vip-tabs[hidden] { display: none !important; }
.vip-tabs button {
  flex: 1;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--elev);
  color: var(--text-soft);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.vip-tabs button.on {
  border-color: var(--accent);
  color: var(--accent-hi);
  background: var(--signal-dim);
}
.crs-board { display: flex; flex-direction: column; gap: 18px; width: 100%; }
.crs-board[hidden],
body.vip-tab-picks #crsBoard { display: none !important; }
.crs-card {
  padding: 16px 14px 12px;
  border: 1px solid var(--border);
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  background: var(--elev);
  overflow: hidden;
}
.crs-head { text-align: center; margin-bottom: 12px; }
.crs-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}
.match-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.match-tag-ended {
  background: rgba(232, 192, 122, 0.12);
  color: var(--warn);
  border: 1px solid rgba(232, 192, 122, 0.35);
}
.match-tag-pending {
  background: var(--signal-dim);
  color: var(--signal-hi);
  border: 1px solid rgba(52, 152, 219, 0.3);
}
.match-tag-locked {
  background: rgba(52, 152, 219, 0.14);
  color: var(--signal-hi);
  border: 1px solid rgba(52, 152, 219, 0.35);
}
.crs-teams {
  margin: 0;
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.crs-teams .vs { color: var(--muted); font-weight: 600; }
.crs-meta { margin: 6px 0 0; font-size: 0.82rem; color: var(--muted); }
.hero-predictions-row {
  display: grid;
  gap: 10px;
  align-items: stretch;
}
.hero-predictions-row.cols-2 { grid-template-columns: minmax(0, 2.2fr) minmax(9.5rem, 1fr); }
.hero-predictions-row.cols-1 { grid-template-columns: 1fr; }
.hero-ft-panel {
  padding: 12px 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(46, 204, 113, 0.28);
  background: rgba(46, 204, 113, 0.06);
  text-align: center;
  width: 100%;
  min-width: 0;
}
.hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 4px;
}
.hero-ft-star {
  color: #1abc9c;
  font-size: 0.95rem;
  line-height: 1;
}
.hero-score-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.12em;
}
.hero-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: clamp(2.6rem, 9vw, 4.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--accent);
}
.hero-score .win-badge,
.hero-hil-pick .win-badge {
  font-size: clamp(1.15rem, 4.6vw, 1.7rem);
  min-width: 4rem;
  padding: 0.38rem 0.78rem;
}
.hero-score-sep { display: inline-block; margin: 0 0.08em; opacity: 0.75; }
.hero-chip-row {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}
.hero-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-chip-k { font-size: 0.66rem; color: var(--muted); }
.hero-alt-picks { margin-top: 12px; }
.hero-alt-label {
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  opacity: 0.88;
}
.hero-alt-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.hero-alt-card {
  position: relative;
  padding: 8px 4px 7px;
  border-radius: 8px;
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.28);
}
.hero-alt-card.is-hit {
  border: 2px solid var(--warn);
  background: rgba(241, 196, 15, 0.14);
}
.hero-alt-hit-tag {
  position: absolute;
  top: -0.4rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.06rem 0.32rem;
  font-size: 0.58rem;
  font-weight: 800;
  color: #1a1a0a;
  background: var(--warn);
  border-radius: 4px;
  white-space: nowrap;
}
.hero-alt-rank { font-size: 0.62rem; color: var(--muted); margin-bottom: 2px; }
.hero-alt-score {
  font-size: clamp(1.05rem, 3.6vw, 1.45rem);
  font-weight: 800;
  color: var(--accent);
}
.hero-alt-odds { margin-top: 4px; font-size: 0.68rem; color: var(--muted); }
.hero-alt-stats {
  margin-top: 4px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.18rem;
  font-size: 0.62rem;
  color: var(--text);
}
.hero-alt-stat-k {
  font-size: 0.58rem;
  letter-spacing: 0.04em;
}
.hero-hil-block {
  padding: 12px 10px 10px;
  border-radius: 12px;
  border: 2px solid rgba(241, 196, 15, 0.45);
  background: linear-gradient(165deg, rgba(232, 192, 122, 0.12) 0%, rgba(243, 156, 18, 0.06) 100%);
  text-align: center;
  width: 100%;
  min-width: 0;
}
.hero-hil-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--warn);
  margin-bottom: 6px;
}
.hero-hil-pick {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: clamp(1.45rem, 5vw, 2.1rem);
  font-weight: 800;
  color: #f39c12;
  line-height: 1.1;
  white-space: normal;
  word-break: keep-all;
  min-width: 0;
}
.hero-hil-result {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}
.hero-hil-hit-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.42rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(241, 196, 15, 0.2);
  border: 1px solid rgba(241, 196, 15, 0.5);
  color: var(--warn);
  vertical-align: middle;
}
.hero-hil-hit-tag.is-miss {
  background: var(--warn);
  border-color: var(--warn);
  color: #c0392b;
}
.match-result-banner {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  text-align: center;
}
.match-result-banner.lost {
  background: rgba(140, 40, 40, 0.45);
  border: 1px solid rgba(231, 76, 60, 0.35);
}
.match-result-banner.won {
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid rgba(46, 204, 113, 0.35);
}
.match-result-banner.alt-won {
  background: rgba(232, 192, 122, 0.12);
  border: 1px solid rgba(241, 196, 15, 0.4);
}
.result-actual-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  font-size: clamp(1.02rem, 3.6vw, 1.28rem);
  font-weight: 700;
  color: #f5b7b1;
}
.match-result-banner .win-badge {
  font-size: clamp(1.15rem, 4.6vw, 1.7rem);
}
.match-result-banner.won .result-actual-line { color: #7dcea0; }
.match-result-banner.alt-won .result-actual-line { color: #f7dc6f; }
.match-analysis { margin-top: 14px; padding-top: 6px; }
.analysis-title {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent);
}
.analysis-body p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
}
.analysis-body strong { color: var(--accent-hi); }
.analysis-bullets {
  margin: 8px 0 0;
  padding-left: 1.15rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 720px) {
  :root { --page-gutter: 12px; }
  .mast {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-bottom: 12px;
  }
  .mast-brand { align-self: flex-start; }
  .mast-nav {
    width: 100%;
    margin-left: 0;
    gap: 8px 10px;
    font-size: 0.86rem;
    justify-content: flex-start;
  }
  .mast-nav a {
    min-height: 40px;
    padding: 0 2px;
  }
  .view-as {
    flex: 1 1 100%;
    width: 100%;
    white-space: normal;
    letter-spacing: 0.04em;
  }
  .view-as select {
    max-width: none;
    flex: 1;
    min-width: 0;
  }
  .mast-auth-group {
    flex: 1 1 auto;
    gap: 8px 10px;
  }
  .mast-who {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .status-hero { padding: 2px 0 12px; margin-bottom: 12px; }
  .status-title { font-size: 1.2rem; margin: 6px 0 4px; }
  .status-lede { font-size: 0.86rem; }
  .crs-card {
    padding: 14px 12px 12px;
  }
  .crs-teams {
    font-size: clamp(1.12rem, 5.2vw, 1.4rem);
    line-height: 1.25;
  }
  .crs-meta { font-size: 0.78rem; }
  /* 手機：波膽同入球大細直向堆疊，禁止再 3fr/1fr 擠爆 */
  .hero-predictions-row.cols-2 {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hero-ft-panel,
  .hero-hil-block {
    padding: 14px 12px 12px;
  }
  .hero-score {
    font-size: clamp(2.05rem, 11vw, 3rem);
    gap: 0.4rem;
    flex-wrap: wrap;
  }
  .hero-score .win-badge,
  .hero-hil-pick .win-badge {
    font-size: 0.95rem;
    min-width: 3.1rem;
    padding: 0.28rem 0.55rem;
  }
  .hero-hil-pick {
    font-size: clamp(1.35rem, 7vw, 1.85rem);
  }
  .hero-chip {
    font-size: 0.74rem;
  }
  .hero-alt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-result-banner {
    padding: 10px;
  }
  .result-actual-line {
    font-size: 0.95rem;
    flex-wrap: wrap;
    justify-content: center;
  }
}
.match-ended-group {
  margin: 14px 0 0;
  padding: 0 12px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--elev);
}
.match-ended-group > summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 4px;
  font-size: 0.95rem;
  font-weight: 650;
  color: var(--accent-hi);
}
.match-ended-group > summary::before { content: "▸ "; color: var(--accent); }
.match-ended-group[open] > summary::before { content: "▾ "; }
.match-ended-group > summary::-webkit-details-marker { display: none; }
.match-ended-list {
  display: grid;
  gap: 12px;
}
.board-list > li.match-ended-wrap {
  display: block;
  list-style: none;
  padding: 0;
  border: 0;
  background: transparent;
}
.crs-board .match-ended-group { margin-top: 16px; }
.match-analysis-fold {
  margin-top: 12px;
  padding: 0 4px 8px;
  border-top: 1px solid var(--border);
}
.match-analysis-fold > summary {
  cursor: pointer;
  list-style: none;
  padding: 10px 0;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--accent-hi);
}
.match-analysis-fold > summary::-webkit-details-marker { display: none; }

/* —— VIP 賣會籍（Marketing） —— */
.sell-stage { max-width: 980px; }
.sell-hero { margin: 8px 0 22px; }
.sell-kicker {
  margin: 0 0 8px;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.sell-title {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 4.2vw, 2.1rem);
  font-weight: 750;
  letter-spacing: 0.02em;
  line-height: 1.25;
}
.sell-lede {
  margin: 0 0 10px;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 36em;
}
.sell-trust {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.sell-compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}
.cmp-card {
  background: var(--elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px;
}
.cmp-card h2 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--text);
}
.cmp-card p { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.cmp-card.on {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(62, 207, 190, 0.22);
}
.cmp-card.on h2 { color: var(--accent-hi); }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 28px;
}
.plan-loading { color: var(--muted); margin: 12px 0; }
.plan-card {
  position: relative;
  background: linear-gradient(165deg, #1c1c1c 0%, var(--elev-2) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
}
.plan-card.featured {
  border-color: var(--accent);
  background: linear-gradient(165deg, #1e3740 0%, var(--elev) 100%);
}
.plan-tag {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent-hi);
  font-weight: 650;
}
.plan-tag.ghost { color: var(--muted); font-weight: 500; }
.plan-name { margin: 0; font-size: 1.15rem; font-weight: 700; }
.plan-price {
  margin: 4px 0 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--accent-hi);
}
.plan-price .ccy { font-size: 0.85rem; }
.plan-price .num { font-size: 1.85rem; font-weight: 750; letter-spacing: 0.02em; }
.plan-per { margin: 0; font-size: 0.8rem; color: var(--muted); }
.plan-perks {
  margin: 8px 0 12px;
  padding: 0 0 0 1.1em;
  color: var(--text-soft);
  font-size: 0.86rem;
  line-height: 1.5;
  flex: 1;
}
.plan-perks li { margin: 0 0 4px; }
.plan-cta { display: inline-flex; justify-content: center; text-decoration: none; margin-top: auto; }
.sell-howto {
  background: var(--elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 20px;
}
.sell-howto h2 { margin: 0 0 10px; font-size: 1.05rem; color: var(--accent-hi); }
.sell-howto ol {
  margin: 0 0 10px;
  padding-left: 1.2em;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}
.sell-howto-note { margin: 0; font-size: 0.8rem; color: var(--muted); }
.sell-mini {
  margin: 0 0 16px;
  padding: 14px 14px 12px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--elev);
}
.sell-mini-title {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.sell-mini .tier-guide { margin: 0 0 10px; }
.sell-mini-price {
  margin: 0 0 6px;
  font-size: 0.84rem;
  color: var(--accent-hi);
  line-height: 1.45;
}
.sell-mini-cta { margin: 0; font-size: 0.86rem; }
.sell-mini-cta a { color: var(--accent); font-weight: 650; text-decoration: none; }
.mast-sell {
  color: var(--accent-hi) !important;
  font-weight: 650;
}
.plan-pick {
  margin: 0 0 12px;
  padding: 0;
  border: none;
}
.plan-pick legend {
  padding: 0;
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--accent-hi);
  font-weight: 650;
}
.plan-pick-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 10px;
  padding: 10px 12px;
  margin: 0 0 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--elev-2);
  cursor: pointer;
}
.plan-pick-row.featured { border-color: var(--accent-line); }
.plan-pick-row:has(input:checked) {
  border-color: var(--accent);
  background: rgba(62, 207, 190, 0.08);
}
.plan-pick-label { font-size: 0.92rem; color: var(--text); }
.plan-pick-fee { font-size: 0.9rem; color: var(--accent-hi); font-weight: 650; }
.plan-mini-tag {
  margin-left: 6px;
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.upgrade-note { margin-top: 4px; }
.upgrade-pending { color: var(--accent-hi); font-weight: 650; }
.login-cta .cta-sub { display: inline; margin-left: 6px; }
.login-cta .cta-sub a { color: var(--accent-hi); }
@media (max-width: 720px) {
  .sell-compare { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  .plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.pay-box, .pay-blurb {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px dashed var(--accent-line);
  background: #141210;
}
.pay-box p, .pay-blurb p { margin: 0 0 6px; font-size: 0.86rem; color: var(--text-soft); line-height: 1.45; }
.pay-box p:last-child, .pay-blurb p:last-child { margin-bottom: 0; }
.pay-title { color: var(--accent-hi) !important; font-weight: 650; }
.pay-blurb { margin: 0 0 12px; }

/* —— Marketing tone · 夜場會所 atmosphere —— */
html, body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(62, 207, 190, 0.10), transparent 55%),
    radial-gradient(900px 500px at 92% 8%, rgba(201, 162, 122, 0.10), transparent 50%),
    radial-gradient(800px 700px at 50% 120%, rgba(30, 60, 100, 0.35), transparent 60%),
    linear-gradient(180deg, var(--bg-glow) 0%, var(--bg) 38%, #05080e 100%);
  background-attachment: fixed;
  min-height: 100%;
}
.desk-shell {
  background: transparent;
}
.mast {
  background: var(--mast-bg);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--accent-line);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.mast-mark {
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(120deg, var(--accent-hi), var(--accent), var(--signal-hi));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mast-sub {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.62rem;
}
.mast-nav a {
  color: var(--text-soft);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.18s ease;
}
.mast-nav a:hover { color: var(--accent-hi); }
.mast-nav a[aria-current="page"] {
  color: var(--signal-hi);
}
.mast-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--signal), var(--accent));
}
.mast-sell {
  color: var(--signal-hi) !important;
  font-weight: 700;
}

/* CTA 用 signal（水藍），品牌字用銅金 */
.btn,
.plan-cta,
.auth-card .btn {
  background: linear-gradient(135deg, var(--signal), #2aa899);
  color: #041018 !important;
  border: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 20px rgba(62, 207, 190, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover,
.plan-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(62, 207, 190, 0.36);
}
.btn:active { transform: translateY(0); }

.status-hero,
.sell-hero {
  position: relative;
  padding-left: 16px;
}
.status-hero::before,
.sell-hero::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35em; bottom: 0.35em;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--signal), var(--accent));
}
.sell-kicker,
.status-kicker {
  color: var(--signal-hi);
  letter-spacing: 0.16em;
}
.sell-title,
.status-title {
  letter-spacing: 0.02em;
  text-shadow: 0 2px 24px rgba(62, 207, 190, 0.12);
}

.panel,
.auth-card,
.sell-howto,
.cmp-card,
.plan-card,
.vip-lock,
.sell-mini {
  border-color: var(--border);
  background: linear-gradient(165deg, rgba(24, 34, 51, 0.92), rgba(12, 18, 28, 0.95));
  box-shadow: var(--shadow-glow);
}
.cmp-card.on {
  border-color: var(--signal-line);
  box-shadow: inset 0 0 0 1px rgba(62, 207, 190, 0.2), var(--shadow-glow);
}
.cmp-card.on h2 { color: var(--signal-hi); }

.plan-card.featured {
  border-color: var(--signal-line);
  background:
    linear-gradient(165deg, rgba(30, 55, 60, 0.55), rgba(18, 26, 40, 0.95)),
    linear-gradient(145deg, rgba(201, 162, 122, 0.12), transparent 55%);
  box-shadow: 0 0 0 1px rgba(62, 207, 190, 0.25), 0 16px 40px rgba(0, 0, 0, 0.35);
}
.plan-tag { color: var(--signal-hi); }
.plan-price { color: var(--accent-hi); }
.plan-name { font-family: var(--font-brand); }

.board-list li {
  background: var(--elev);
  border-color: var(--border);
}
.board-list li.hit {
  border-color: var(--signal-line);
  background: linear-gradient(180deg, rgba(62, 207, 190, 0.14), var(--elev));
  box-shadow: 0 0 0 1px rgba(62, 207, 190, 0.18);
}
.board-list li.hit .board-pick { color: var(--signal-hi); }

.vip-badge.bet {
  border-color: var(--signal);
  color: var(--signal-hi);
  background: var(--signal-dim);
}
.vip-hit.on {
  color: var(--ok);
  border-color: var(--ok);
  box-shadow: 0 0 10px rgba(93, 222, 154, 0.35);
  text-shadow: none;
}

.auth-tabs button.on,
.vip-tabs button.on {
  border-color: var(--signal);
  color: var(--signal-hi);
  background: var(--signal-dim);
}
.auth-card input,
.vip-lock input,
.plan-pick-row {
  background: var(--input-bg);
  border-color: var(--border);
  color: var(--text);
}
.plan-pick-row:has(input:checked),
.plan-pick-row.featured:has(input:checked) {
  border-color: var(--signal);
  background: rgba(62, 207, 190, 0.08);
}
.pay-box, .pay-blurb {
  border-color: var(--signal-line);
  background: rgba(62, 207, 190, 0.06);
}
.pay-title { color: var(--signal-hi) !important; }
.login-cta a,
.sell-mini-cta a,
.empty a,
.guest-convert a {
  color: var(--signal-hi);
}
.tier-guide strong { color: var(--accent-hi); }
.sell-mini {
  border-color: var(--accent-line);
  background: linear-gradient(160deg, rgba(24, 34, 51, 0.9), rgba(10, 16, 24, 0.95));
}
.sell-mini-price { color: var(--accent-hi); }
.legal { color: var(--muted); opacity: 0.9; }

/* 微動：計劃卡入場感 */
@keyframes rd-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.plan-card {
  animation: rd-rise 0.45s ease both;
}
.plan-card:nth-child(1) { animation-delay: 0.04s; }
.plan-card:nth-child(2) { animation-delay: 0.10s; }
.plan-card:nth-child(3) { animation-delay: 0.16s; }
.plan-card:nth-child(4) { animation-delay: 0.22s; }
.sell-compare .cmp-card {
  animation: rd-rise 0.4s ease both;
}
.sell-compare .cmp-card:nth-child(1) { animation-delay: 0.02s; }
.sell-compare .cmp-card:nth-child(2) { animation-delay: 0.08s; }
.sell-compare .cmp-card:nth-child(3) { animation-delay: 0.14s; }

@media (prefers-reduced-motion: reduce) {
  .plan-card, .sell-compare .cmp-card { animation: none; }
  .btn:hover, .plan-cta:hover { transform: none; }
}

/* === P0 UX 20260927uxp0 === */
.stage-auth { max-width: 440px; }
.status-hero-auth { padding-bottom: 12px; margin-bottom: 12px; }
.status-hero-auth .status-lede { font-size: 0.92rem; color: var(--text-soft); }
.auth-card-narrow {
  max-width: 440px;
  margin: 0 auto;
  gap: 14px;
}
.auth-adv {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--elev);
  padding: 0;
}
.auth-adv > summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--accent-hi);
  font-weight: 650;
}
.auth-adv > summary::-webkit-details-marker { display: none; }
.auth-adv[open] > summary { border-bottom: 1px solid var(--border); }
.auth-adv .sell-mini {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.auth-alt { text-align: center; font-size: 0.9rem; color: var(--text-soft); }
.auth-alt a { color: var(--accent); font-weight: 650; text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }

.status-kicker.is-loading {
  opacity: 0.7;
  letter-spacing: 0.06em;
}
body.is-board-loading .panel {
  min-height: 120px;
}
.board-list[data-loading="1"] .board-skel {
  display: block;
  height: 72px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(90deg, var(--elev) 0%, rgba(255,255,255,0.04) 50%, var(--elev) 100%);
  background-size: 200% 100%;
  animation: rdSkel 1.1s ease-in-out infinite;
  grid-column: 1 / -1;
}
.board-list:not([data-loading="1"]) .board-skel { display: none !important; }
@keyframes rdSkel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.panel { width: 100%; }
@media (max-width: 720px) {
  .stage-auth, .auth-card-narrow { max-width: none; }
}
