/* 💰 Wagers — the phone's bet card (wager-player.js) and the TV's bets / results card (wager-display.js).
   Owner 2026-10-05; docs/redesign/GAME_NIGHT_ONE_PLACE_PLAN_2026-10-05.md §3. Loaded by player.html and
   host_display.html. Below the celebration popups (99999 / 100001), above the question screen. */

.wgr-phone, .wgr-tv {
  --wgr-gold: #f5c542;
  --wgr-gold-deep: #c98a00;
  --wgr-ink: #fff8e6;
  --wgr-muted: #d8c9a3;
  --wgr-card: #1d1608;
  --wgr-up: #3ddc84;
  --wgr-down: #ff6b6b;
}

/* ── phone ─────────────────────────────────────────────────────────────── */
.wgr-phone {
  position: fixed; inset: 0; z-index: 99990;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  background: radial-gradient(circle at 50% 30%, rgba(60, 40, 0, .92), rgba(8, 6, 2, .97));
  color: var(--wgr-ink);
  font-family: inherit;
}
.wgr-phone[hidden] { display: none; }
.wgr-phone .wgr-card {
  width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--wgr-card);
  border: 2px solid var(--wgr-gold-deep);
  border-radius: 18px;
  padding: 20px 18px 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(245, 197, 66, .15);
  text-align: center;
}
.wgr-kicker { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--wgr-gold); }
.wgr-phone .wgr-title { margin: 6px 0 10px; font-size: 26px; font-weight: 900; color: var(--wgr-ink); }
.wgr-sub { margin: 0 0 14px; font-size: 16px; line-height: 1.4; color: var(--wgr-muted); }
.wgr-sub b, .wgr-status b { color: var(--wgr-gold); }
.wgr-entry { display: flex; gap: 8px; margin: 0 0 10px; }
.wgr-input {
  flex: 1 1 auto; min-width: 0;
  font-size: 28px; font-weight: 800; text-align: center;
  padding: 10px 8px; border-radius: 12px;
  border: 2px solid var(--wgr-gold-deep); background: #0d0a03; color: var(--wgr-ink);
}
.wgr-input:focus { outline: 3px solid rgba(245, 197, 66, .45); outline-offset: 1px; }
/* the bet types on THE shared number pad (player/numpad.js) into this read-only box (2026-10-18) */
.wgr-display { display: block; min-height: 58px; line-height: 36px; margin: 0 0 10px; }
.wgr-pad { margin: 0 0 10px; }
.wgr-go, .wgr-quick button {
  border: 0; border-radius: 12px; font-weight: 800; cursor: pointer;
  background: linear-gradient(180deg, var(--wgr-gold), var(--wgr-gold-deep)); color: #1a1205;
}
.wgr-go { flex: none; font-size: 20px; padding: 0 20px; min-height: 56px; }
.wgr-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 12px; }
.wgr-quick button { min-height: 48px; font-size: 17px; background: #3a2a08; color: var(--wgr-gold); border: 1px solid var(--wgr-gold-deep); }
.wgr-status { margin: 0; font-size: 15px; color: var(--wgr-ink); min-height: 1.4em; }
.wgr-locked { font-size: 22px; font-weight: 900; color: var(--wgr-gold); margin: 6px 0 8px; }
.wgr-mine { margin: 0 0 14px; padding: 12px; border-radius: 14px; background: #0d0a03; border: 2px solid #4a3a14; }
.wgr-mine.is-up { border-color: var(--wgr-up); }
.wgr-mine.is-down { border-color: var(--wgr-down); }
.wgr-verdict { font-size: 26px; font-weight: 900; }
.wgr-mine.is-up .wgr-verdict { color: var(--wgr-up); }
.wgr-mine.is-down .wgr-verdict { color: var(--wgr-down); }
.wgr-line { font-size: 17px; margin-top: 4px; }
.wgr-score { font-size: 15px; color: var(--wgr-muted); margin-top: 2px; }
.wgr-list { list-style: none; margin: 0; padding: 0; text-align: left; font-size: 15px; }
.wgr-list li { display: grid; grid-template-columns: 26px 1fr auto auto; gap: 8px; padding: 6px 4px; border-bottom: 1px solid #2c220c; }
.wgr-list li.is-me { background: rgba(245, 197, 66, .12); border-radius: 8px; }
.wgr-list .wgr-rk { color: var(--wgr-muted); text-align: right; }
.wgr-list .wgr-tm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wgr-list .wgr-sc { color: var(--wgr-muted); min-width: 52px; text-align: right; }
.wgr-dl.is-up, .wgr-vd.is-up { color: var(--wgr-up); }
.wgr-dl.is-down, .wgr-vd.is-down { color: var(--wgr-down); }

/* ── TV ────────────────────────────────────────────────────────────────── */
.wgr-tv {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 3vh 4vw;
  background: radial-gradient(circle at 50% 35%, rgba(70, 48, 0, .94), rgba(6, 4, 1, .98));
  color: var(--wgr-ink);
}
.wgr-tv[hidden] { display: none; }
.wgr-tv-card { width: min(1500px, 100%); text-align: center; }
.wgr-tv-kicker { font-size: clamp(16px, 2vw, 28px); font-weight: 900; letter-spacing: .2em; color: var(--wgr-gold); }
.wgr-tv-title { margin: .2em 0 .25em; font-size: clamp(40px, 7vw, 110px); font-weight: 900; line-height: 1.02;
  color: var(--wgr-ink); text-shadow: 0 6px 30px rgba(245, 197, 66, .35); }
.wgr-tv-sub { font-size: clamp(20px, 2.6vw, 40px); color: var(--wgr-muted); margin-bottom: .6em; }
.wgr-tv-count { font-size: clamp(22px, 3vw, 46px); font-weight: 900; color: var(--wgr-gold); margin-bottom: .6em; }
.wgr-chips { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 1400px; }
.wgr-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px; border-radius: 999px;
  font-size: clamp(18px, 2vw, 30px); font-weight: 800;
  background: #241b07; border: 2px solid #4a3a14; color: var(--wgr-muted);
  transition: background .3s, border-color .3s, color .3s, transform .3s;
}
.wgr-chip.is-in { background: #3a2a08; border-color: var(--wgr-gold); color: var(--wgr-ink); transform: scale(1.04); }
.wgr-chip-mark { color: var(--wgr-gold); }
.wgr-table { margin: .4em auto 0; border-collapse: collapse; width: min(1300px, 100%);
  font-size: clamp(20px, 2.3vw, 38px); }
.wgr-table th { font-size: .6em; letter-spacing: .12em; text-transform: uppercase; color: var(--wgr-muted);
  padding: 0 .5em .4em; text-align: left; }
.wgr-table td { padding: .28em .5em; border-top: 1px solid #3a2c10; text-align: left; }
.wgr-table .wgr-rk { color: var(--wgr-muted); width: 2.2em; }
.wgr-table .wgr-tm { font-weight: 800; }
.wgr-table .wgr-bt, .wgr-table .wgr-dl, .wgr-table .wgr-sc { text-align: right; font-variant-numeric: tabular-nums; }
.wgr-table .wgr-sc { font-weight: 900; color: var(--wgr-gold); }
.wgr-table .wgr-vd { text-align: center; font-weight: 900; }
.wgr-row { opacity: 0; transform: translateY(18px); transition: opacity .45s ease, transform .45s ease; }
.wgr-row.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .wgr-row { transition: none; }
  .wgr-chip { transition: none; }
}
