/* Website embed — per the design handoff (high-fidelity: colors, type, spacing, animation are final).
   Light banner: #FBFAF8, red top rule, white cards with a 3px left accent, no radius, no shadows. */
:root {
  --red: #B3001B; --red-dark: #7A0012; --gold: #D4A64A; --ink: #1A1717;
  --bg: #FBFAF8; --card: #fff; --card-border: #E8E3DE;
  --muted: #6B6462; --muted-2: #8A8280; --live: #1E8A4C; --flash: #FFF3C4;
  --ui: 'Barlow', Helvetica, Arial, sans-serif;
  --cond: 'Barlow Condensed', Impact, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: transparent; }
body { font-family: var(--ui); -webkit-font-smoothing: antialiased; color: var(--ink); }

.root { width: 100%; background: var(--bg); color: var(--ink); border-top: 4px solid var(--red); padding: 20px 24px 16px; }

/* Plain spec header — no artwork on the embed (the bingo page already carries the artwork). */
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.head-left { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.title { font-family: var(--cond); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
.status { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--live); }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: rh-pulse 1.6s ease-in-out infinite; }
body.offline .status { color: var(--red); }
body.offline .status .dot { animation: none; }
.updated { font-size: 13px; color: var(--muted); }

.strip { background: var(--red); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 12px; margin-bottom: 12px; letter-spacing: .02em; }
.strip[hidden] { display: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
/* section labels (Regular / Specials / Hotball) span the grid; Hotball's card spans it too */
.section { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 6px 0 -2px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.section::after { content: ""; flex: 1; height: 1px; background: var(--card-border); }
.section .section-cap { display: none; }          /* the embed says the cap on each card instead */
/* Hotball: full-width, warm-tinted, ember-red top edge, red amount, H ball with a breathing heat glow */
.card.hotball {
  grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 18px;
  border-top: 4px solid var(--red);
  background: linear-gradient(90deg, #FFF4F1 0%, #FFFBF9 45%, var(--card) 100%);
}
.card.hotball .ball { width: 34px; height: 34px; font-size: 14px; animation: rh-heat 2.4s ease-in-out infinite; }
.card.hotball .name { font-size: 24px; color: var(--red); letter-spacing: .12em; }
.card.hotball .amount { color: var(--red); font-size: clamp(32px, 4vw, 48px); }
.card.hotball .note { margin-left: auto; }
@keyframes rh-heat {
  0%, 100% { box-shadow: inset -2px -3px 5px rgba(0,0,0,.3), 0 0 0 0 rgba(179,0,27,0), 0 1px 2px rgba(0,0,0,.25); }
  50%      { box-shadow: inset -2px -3px 5px rgba(0,0,0,.3), 0 0 0 7px rgba(179,0,27,.14), 0 0 16px 4px rgba(179,0,27,.35); }
}
.card { background: var(--card); border: 1px solid var(--card-border); padding: 14px 16px 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; position: relative; overflow: hidden; }
.card .accent { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.card .name-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.card .name { font-family: var(--cond); font-size: 22px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1; }
/* a small bingo ball next to each jackpot name (CSS-drawn, B-I-N-G-O colors, numbered) */
.ball {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  font-family: var(--cond); font-weight: 800; font-size: 11px; color: #111; line-height: 1;
  background: radial-gradient(circle at 35% 30%, #fff 0, #fff 16%, transparent 18%),
              radial-gradient(circle at 50% 50%, #fff 0 46%, var(--ball) 48%);
  box-shadow: inset -2px -3px 5px rgba(0,0,0,.3), 0 1px 2px rgba(0,0,0,.25);
}
.card .amount { font-family: var(--cond); font-weight: 700; font-size: clamp(28px, 3.2vw, 40px); line-height: 1; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.card .amount.flash { animation: rh-flash 1.2s ease-out; }
.card .note { font-size: 12px; color: var(--muted-2); min-height: 1em; }
.card .note strong { color: var(--ink); font-weight: 600; }

.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; font-size: 11px; color: var(--muted-2); letter-spacing: .02em; }

@keyframes rh-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
@keyframes rh-flash { 0% { background: var(--flash); } 100% { background: transparent; } }

/* ── Phones (must stay LAST in this file: same-specificity rules above would override it) ──
   2 columns from ~320px of content width, tighter padding, title shrinks so title + LIVE never clip.
   Tablets/desktop fall out of the auto-fill grid naturally (768 -> 3 cols, 1024 -> 5 cols). The
   iframe's height follows the content via postMessage (board.js). */
/* Tablets / landscape phones (641-900px): keep the grid, let the numbers breathe a little more. */
@media (max-width: 900px) {
  .card .amount { font-size: clamp(28px, 4.2vw, 40px); }
}

/* Phones (<= 640px): a native-feeling LIST — one full-width row per jackpot, ball + name left, big amount
   right; "Must go" said once in the section label. Everything is sized in vw (= the iframe's own width
   inside the page), so it scales smoothly from a 320px iPhone SE to a 430px Pro Max. */
@media (max-width: 640px) {
  .root { padding: 4vw 4vw 3vw; border-top-width: 3px; }
  .head { margin-bottom: 3vw; gap: 2vw 3vw; }
  .head .title { font-size: clamp(20px, 6.6vw, 28px); }
  .status { font-size: clamp(10px, 3.2vw, 12px); }
  .updated { font-size: clamp(11px, 3.4vw, 13px); }
  .strip { font-size: clamp(12px, 3.6vw, 14px); }

  .grid { display: flex; flex-direction: column; gap: 2vw; }
  .section { margin: 2.5vw 0 0; font-size: clamp(11px, 3.4vw, 13px); letter-spacing: .14em; gap: 2.5vw; }
  .section .section-cap { display: inline; font-size: clamp(10px, 3.1vw, 12px); font-weight: 700; letter-spacing: .06em; color: var(--red); text-transform: none; }

  .card { flex-direction: row; align-items: center; gap: 3vw; padding: 2.6vw 3.5vw 2.6vw 4vw; min-height: 15vw; }
  .card .accent { width: 4px; }
  .card .name-row { flex: 1 1 auto; gap: 2.5vw; min-width: 0; }
  .ball { width: clamp(26px, 8.5vw, 36px); height: clamp(26px, 8.5vw, 36px); font-size: clamp(11px, 3.6vw, 15px); }
  .card .name { font-size: clamp(16px, 5.4vw, 22px); letter-spacing: .04em; }
  .card .amount { margin-left: auto; font-size: clamp(24px, 8.4vw, 36px); white-space: nowrap; }
  .card .note { display: none; }                  /* said once per section on phones */

  .card.hotball { gap: 3vw; min-height: 18vw; border-top-width: 4px; }
  .card.hotball .ball { width: clamp(30px, 10vw, 42px); height: clamp(30px, 10vw, 42px); font-size: clamp(12px, 4vw, 17px); }
  .card.hotball .name { font-size: clamp(18px, 6.2vw, 26px); letter-spacing: .08em; }
  .card.hotball .amount { font-size: clamp(28px, 9.6vw, 42px); }

  .foot { font-size: clamp(9px, 2.9vw, 11px); margin-top: 3vw; }
}
