/* Beat the Creators standings, scoped for embedding on maverickmasterminds.net. Generated from styles.css. */

/* Theme isolation for the Weebly page. */
html body #btc-app { container: btc / inline-size; display: block; margin: 0 -16px; border-radius: 6px; overflow: hidden; line-height: 1.4; text-align: left; }
html body #btc-app h1, html body #btc-app h2, html body #btc-app h3, html body #btc-app p, html body #btc-app ul, html body #btc-app ol, html body #btc-app li, html body #btc-app a, html body #btc-app span, html body #btc-app b, html body #btc-app i, html body #btc-app strong, html body #btc-app button, html body #btc-app img, html body #btc-app div, html body #btc-app section, html body #btc-app header, html body #btc-app footer, html body #btc-app nav, html body #btc-app main, html body #btc-app aside {
  font-family: inherit; font-style: normal; font-weight: inherit; letter-spacing: inherit; text-transform: inherit; line-height: inherit; text-shadow: none; text-indent: 0; }
html body #btc-app h1, html body #btc-app h2, html body #btc-app h3, html body #btc-app p { margin: 0; color: inherit; font-size: inherit; }
html body #btc-app ul, html body #btc-app ol { margin: 0; padding: 0; }
html body #btc-app li { list-style: none; background-image: none; margin-left: 0; padding-left: 0; }
html body #btc-app li::before { content: none; }
html body #btc-app img { max-width: none; border: 0; box-shadow: none; padding: 0; background: none; }
html body #btc-app .store__qr img, html body #btc-app .mini-qr img { background: #fff; }
html body #btc-app a { text-decoration: none; }
html body #btc-app .hero { min-height: 0; }
html body #btc-app .hero__body { padding-top: 40px; }
html body #btc-app .rules__more { margin: 8px 0 14px; }
html body #btc-app .footer__links { flex-wrap: wrap; justify-content: center; }
body.btc-locked { overflow: hidden; }
/* Beat the Creators — styled after the in-app rulebook. */
html body #btc-app {
  --bg: #070f14;
  --panel-1: #0c1c25;
  --panel-2: #0a161d;
  --panel-3: #091319;
  --card-1: #15272f;
  --card-2: #101e25;
  --gold: #c8a24a;
  --gold-hi: #e6cd86;
  --gold-mid: #d8be7e;
  --gold-btn-1: #d8b85a;
  --gold-btn-2: #bf9a3c;
  --ink-dark: #1a1206;
  --text: #ece3d0;
  --text-2: #cfc6b0;
  --muted: #8f968c;
  --cyan: #6fd0e0;
  --good: #a9c9a0;
  --bad: #e0937a;
  --loss: #a9b0a6;
  --serif: 'Vollkorn', Georgia, serif;
  --sans: 'Roboto Condensed', system-ui, sans-serif;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --line-gold: rgba(200, 162, 74, 0.18);
}

html body #btc-app *, html body #btc-app *::before, html body #btc-app *::after { box-sizing: border-box; }
html body #btc-app { -webkit-text-size-adjust: 100%; }
html body #btc-app {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html body #btc-app.is-locked { overflow: hidden; }
html body #btc-app img { display: block; max-width: 100%; }
html body #btc-app a { color: var(--gold-hi); }
html body #btc-app a:hover { color: #f2dfa6; }
html body #btc-app button { font-family: inherit; }
html body #btc-app ::selection { background: rgba(200, 162, 74, 0.3); }
html body #btc-app a:focus-visible, html body #btc-app button:focus-visible, html body #btc-app [tabindex]:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
html body #btc-app [hidden] { display: none !important; }
html body #btc-app .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html body #btc-app .wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
html body #btc-app .gold { color: var(--gold); }
html body #btc-app .muted { color: var(--muted); }
html body #btc-app .small { font-size: 13px; }
html body #btc-app .d-only { display: none; }

html body #btc-app .card {
  background: linear-gradient(180deg, var(--card-1), var(--card-2));
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px var(--line-gold), var(--shadow);
}
html body #btc-app .rule-line { height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
html body #btc-app .eyebrow { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.4em; text-transform: uppercase; color: var(--gold-mid); }

/* ---------- Buttons ---------- */
html body #btc-app .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 3px;
  font-weight: 600; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
}
html body #btc-app .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
html body #btc-app .btn--gold { background: linear-gradient(180deg, var(--gold-btn-1), var(--gold-btn-2)); color: var(--ink-dark); box-shadow: var(--shadow); }
html body #btc-app .btn--gold:hover { background: linear-gradient(180deg, #e2c46a, #c9a446); color: var(--ink-dark); }
html body #btc-app .btn--ghost { background: transparent; color: var(--gold-hi); box-shadow: inset 0 0 0 1px rgba(200, 162, 74, 0.5); }
html body #btc-app .btn--ghost:hover { background: rgba(200, 162, 74, 0.1); }
html body #btc-app .btn--sm { min-height: 40px; padding: 0 14px; }
html body #btc-app .btn--lg { min-height: 56px; padding: 0 24px; font-size: 14px; letter-spacing: 0.16em; }

/* ---------- Hero ---------- */
html body #btc-app .hero { position: relative; min-height: 360px; background: var(--panel-1); overflow: hidden; display: flex; flex-direction: column; }
html body #btc-app .hero__art { position: absolute; inset: 0; background: url("https://beat-the-creators.netlify.app/assets/hero-1280.jpg") center 22% / cover no-repeat; }
@container btc (min-width: 700px) { html body #btc-app .hero__art { background-image: url("https://beat-the-creators.netlify.app/assets/hero-2560.jpg"); } }
html body #btc-app .hero__fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 15, 20, 0.75) 0%, rgba(7, 15, 20, 0.2) 25%, rgba(7, 15, 20, 0.6) 58%, var(--bg) 100%);
}
html body #btc-app .topbar { position: relative; z-index: 1; min-height: 64px; display: flex; align-items: center; gap: 16px; }
html body #btc-app .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
html body #btc-app .brand__logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(200, 162, 74, 0.5); flex-shrink: 0; }
html body #btc-app .brand__wordmark { width: auto; height: 34px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6)); }
html body #btc-app .topbar__social { display: none; gap: 24px; }
html body #btc-app .topbar__social a, html body #btc-app .footer__links a {
  min-height: 44px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 16px; font-weight: 600; color: var(--cyan);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
html body #btc-app .topbar__social a::after, html body #btc-app .footer__links a::after { content: "↗"; font-size: 0.85em; }
html body #btc-app .topbar__social a:hover, html body #btc-app .footer__links a:hover { color: #a6e6f0; text-decoration-thickness: 2px; }

html body #btc-app .hero__body { position: relative; z-index: 1; flex-grow: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 14px; padding-top: 48px; padding-bottom: 18px; text-align: center; }
html body #btc-app .hero__text { display: flex; flex-direction: column; align-items: center; gap: 8px; }
html body #btc-app .hero h1 {
  margin: 0; font-family: var(--serif); font-weight: 800; font-size: 40px; line-height: 1;
  letter-spacing: 0.05em; text-transform: uppercase; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}
html body #btc-app .tagline { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 16px; line-height: 1.35; color: var(--text-2); }
html body #btc-app .hero__side { display: flex; flex-direction: column; align-items: center; gap: 12px; }
html body #btc-app .hero__qr { display: none; }

html body #btc-app .countdown { padding: 10px 14px; background: rgba(12, 28, 37, 0.72); }
html body #btc-app .countdown__open { display: flex; align-items: center; gap: 10px; }
html body #btc-app .countdown__label { margin: 0; max-width: 80px; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); text-align: right; line-height: 1.2; }
html body #btc-app .countdown__cells { display: flex; gap: 6px; }
html body #btc-app .cd { display: flex; flex-direction: column; align-items: center; min-width: 42px; }
html body #btc-app .cd b { font-family: var(--serif); font-weight: 800; font-size: 24px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; color: var(--gold-hi); }
html body #btc-app .cd i { font-style: normal; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
html body #btc-app .countdown__closed-title { margin: 0; font-family: var(--serif); font-weight: 800; font-size: 18px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-hi); }
html body #btc-app .countdown__closed-sub { margin: 2px 0 0; font-size: 14px; color: var(--text-2); }

/* ---------- Layout ---------- */
html body #btc-app .layout { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; padding-left: 12px; padding-right: 12px; }

html body #btc-app .steps__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
html body #btc-app .step {
  display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 3px;
  background: linear-gradient(180deg, var(--card-1), var(--card-2));
  box-shadow: inset 0 0 0 1px var(--line-gold), var(--shadow);
}
html body #btc-app .step__num {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-btn-1), var(--gold-btn-2)); color: var(--ink-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 800; font-size: 18px; font-variant-numeric: lining-nums;
}
html body #btc-app .step__title { margin: 0 0 3px; font-family: var(--serif); font-weight: 800; font-size: 17px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-hi); }
html body #btc-app .step__text { margin: 0; font-size: 15px; line-height: 1.4; color: var(--text-2); }

html body #btc-app .guest {
  display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 3px;
  background: rgba(200, 162, 74, 0.1); box-shadow: inset 0 0 0 1px rgba(200, 162, 74, 0.55);
}
html body #btc-app .guest svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--gold-hi); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html body #btc-app .guest p { margin: 0; font-size: 15px; line-height: 1.35; }
html body #btc-app .guest strong { color: var(--gold-hi); }

html body #btc-app .tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid rgba(200, 162, 74, 0.2); }
html body #btc-app .tabs button {
  min-height: 48px; border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font-weight: 600; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase;
  box-shadow: inset 0 -2px 0 transparent;
}
html body #btc-app .tabs button:hover { color: var(--text); }
html body #btc-app .tabs button[aria-selected="true"] { color: var(--gold-hi); box-shadow: inset 0 -2px 0 var(--gold); }

html body #btc-app .panel { animation: kdfade 0.3s ease-out both; }
html body #btc-app .card-title { margin: 0 0 6px; font-family: var(--serif); font-weight: 800; font-size: 17px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-hi); }

/* ---------- Standings ---------- */
html body #btc-app .standings { padding: 14px 0 8px; }
html body #btc-app .standings__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px 12px; }
html body #btc-app .standings__title { min-width: 0; }
html body #btc-app .standings__sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
html body #btc-app .standings h2 { margin: 0; font-family: var(--serif); font-weight: 800; font-size: 20px; letter-spacing: 0.12em; text-transform: uppercase; }
html body #btc-app .standings__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; font-size: 13px; color: var(--text-2); text-align: right; }
html body #btc-app .pill {
  --pill: var(--cyan);
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--pill); color: var(--pill);
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
}
html body #btc-app .pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pill); }
html body #btc-app .pill[data-tone="pre"] { --pill: var(--text-2); }
html body #btc-app .pill[data-tone="final"] { --pill: var(--gold-hi); }
html body #btc-app .pill[data-tone="error"] { --pill: var(--bad); }

html body #btc-app .notice { margin: 12px 14px 4px; padding: 12px 14px; border-radius: 3px; font-size: 15px; line-height: 1.4; }
html body #btc-app .notice--gold { background: rgba(200, 162, 74, 0.08); box-shadow: inset 0 0 0 1px rgba(200, 162, 74, 0.45); }
html body #btc-app .notice--gold strong { color: var(--gold-hi); }
html body #btc-app .notice--cyan { margin: 0; background: rgba(111, 208, 224, 0.07); box-shadow: inset 0 0 0 1px rgba(111, 208, 224, 0.35); }

html body #btc-app .rows { list-style: none; margin: 0; padding: 4px 0 0; }
html body #btc-app .row {
  width: 100%; min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 8px 14px;
  border: 0; border-bottom: 1px solid rgba(200, 162, 74, 0.08); background: transparent;
  color: var(--text); text-align: left; cursor: pointer; font-size: 16px; font-variant-numeric: tabular-nums;
}
html body #btc-app .row:hover { background: rgba(200, 162, 74, 0.08); }
html body #btc-app .row.is-top { background: rgba(200, 162, 74, 0.05); }
html body #btc-app .row.is-top:hover { background: rgba(200, 162, 74, 0.1); }
html body #btc-app .badge {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(200, 162, 74, 0.35); color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 800; font-size: 15px; font-variant-numeric: lining-nums;
}
html body #btc-app .badge.is-top { background: linear-gradient(180deg, var(--gold-btn-1), var(--gold-btn-2)); color: var(--ink-dark); }
html body #btc-app .row__who { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
html body #btc-app .row__name { font-weight: 600; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body #btc-app .row__sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body #btc-app .row__total { flex-shrink: 0; font-family: var(--serif); font-weight: 800; font-size: 18px; font-variant-numeric: lining-nums tabular-nums; }
html body #btc-app .row.is-top .row__total { color: var(--gold-hi); }
html body #btc-app .row__col { display: none; }
html body #btc-app .row__chev { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

html body #btc-app .cutoff { display: flex; align-items: center; gap: 8px; padding: 6px 14px; }
html body #btc-app .cutoff::before, html body #btc-app .cutoff::after { content: ""; flex-grow: 1; height: 2px; }
html body #btc-app .cutoff::before { background: linear-gradient(90deg, transparent, var(--gold)); }
html body #btc-app .cutoff::after { background: linear-gradient(90deg, var(--gold), transparent); }
html body #btc-app .cutoff span { font-size: 11px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-hi); white-space: nowrap; }

html body #btc-app .table-head { display: none; }

html body #btc-app .state { padding: 8px 14px; text-align: center; color: var(--text-2); }
html body #btc-app .state--empty, html body #btc-app .state--error { padding: 32px 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
html body #btc-app .state p { margin: 0; }
html body #btc-app .state__title { font-family: var(--serif); font-weight: 800; font-size: 19px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-hi); }
html body #btc-app .state--error .state__title { font-family: var(--sans); font-weight: 600; font-size: 17px; letter-spacing: 0; text-transform: none; color: var(--text); }
html body #btc-app .skel { height: 46px; margin: 6px 0; border-radius: 2px; background: rgba(236, 227, 208, 0.07); animation: kdpulse 1.4s ease-in-out infinite; }
html body #btc-app .skel--tall { height: 104px; margin: 0 0 8px; border-radius: 3px; background: linear-gradient(180deg, var(--card-1), var(--card-2)); box-shadow: inset 0 0 0 1px rgba(200, 162, 74, 0.12); }
html body #btc-app .foot-note { margin: 10px 14px 6px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Rules & final ---------- */
html body #btc-app .rules { padding: 14px 16px 6px; }
html body #btc-app .list { list-style: none; margin: 0; padding: 0; font-size: 16px; line-height: 1.4; color: var(--text-2); }
html body #btc-app .list li { padding: 12px 0; border-bottom: 1px solid rgba(200, 162, 74, 0.12); }
html body #btc-app .list li:last-child { border-bottom: 0; }
html body #btc-app .list strong { color: var(--text); }

html body #btc-app .final { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
html body #btc-app .final__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
html body #btc-app .final__head .card-title { margin: 0; }
html body #btc-app .final__head .muted { font-size: 13px; white-space: nowrap; }
html body #btc-app .final__sub { margin: 0; font-size: 15px; color: var(--text-2); }
html body #btc-app .final .small { margin: -6px 0 0; }
html body #btc-app .times { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; text-align: center; }
html body #btc-app .times li { padding: 8px 0; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(200, 162, 74, 0.2); font-weight: 600; font-size: 15px; }
html body #btc-app .rewards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
html body #btc-app .rewards li { padding: 12px; border-radius: 3px; background: rgba(7, 15, 20, 0.45); box-shadow: inset 0 0 0 1px rgba(200, 162, 74, 0.14); text-align: center; display: flex; flex-direction: column; }
html body #btc-app .rewards b { font-family: var(--serif); font-weight: 800; font-size: 26px; color: var(--gold-hi); }
html body #btc-app .rewards span { font-size: 14px; color: var(--text-2); }

/* ---------- Get the game (flyer QR cards) ---------- */
html body #btc-app .get { padding-top: 6px; }
html body #btc-app .get .card-title { text-align: center; margin-bottom: 10px; }
html body #btc-app .get__cards { display: grid; gap: 10px; }
html body #btc-app .store {
  display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 12px; text-decoration: none; color: var(--text);
  background: linear-gradient(180deg, rgba(21, 39, 47, 0.7), rgba(16, 30, 37, 0.7));
  box-shadow: inset 0 0 0 1px rgba(200, 162, 74, 0.55), var(--shadow);
}
html body #btc-app .store:hover { background: linear-gradient(180deg, rgba(200, 162, 74, 0.12), rgba(16, 30, 37, 0.7)); color: var(--text); }
html body #btc-app .store__qr { flex-shrink: 0; padding: 6px; border-radius: 4px; background: #fff; line-height: 0; }
html body #btc-app .store__qr img { width: 96px; height: 96px; }
html body #btc-app .store__text { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 10px; min-width: 0; }
html body #btc-app .store__icon { grid-row: 1; width: 26px; height: 26px; fill: var(--text); }
html body #btc-app .store__icon--play { fill: var(--gold-hi); }
html body #btc-app .store__name { grid-row: 1; font-family: var(--serif); font-weight: 600; font-size: 20px; }
html body #btc-app .store__store { grid-column: 2; font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--gold-hi); }
html body #btc-app .store__hint { grid-column: 1 / -1; margin-top: 6px; font-size: 14px; color: var(--text-2); }
html body #btc-app .store__hint::before { content: "↵ "; color: var(--gold-hi); }
html body #btc-app .hint-tap { display: none; }
/* On a phone you can't scan your own screen, so the cards become tap targets. */
@media (hover: none) and (pointer: coarse) {
  html body #btc-app .hint-scan { display: none; }
  html body #btc-app .hint-tap { display: inline; }
}

/* ---------- Footer ---------- */
html body #btc-app .footer { padding-top: 22px; padding-bottom: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
html body #btc-app .footer > .rule-line { width: 220px; }
html body #btc-app .footer__links { display: flex; gap: 18px; }
html body #btc-app .footer__legal { margin: 0; max-width: 640px; font-size: 12px; line-height: 1.5; color: var(--muted); }

/* ---------- History sheet ---------- */
html body #btc-app .sheet {
  padding: 0; border: 0; margin: auto 0 0; width: 100%; max-width: 100%; height: min(86vh, 844px); max-height: none;
  background: transparent; color: var(--text); overflow: visible;
}
html body #btc-app .sheet::backdrop { background: rgba(3, 7, 10, 0.78); animation: kdscrim 0.2s ease-out both; }
html body #btc-app .sheet[open] .sheet__inner { animation: kdsheet 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
html body #btc-app .sheet__inner {
  height: 100%; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, var(--panel-1) 0%, var(--panel-2) 55%, var(--panel-3) 100%);
  border-radius: 12px 12px 0 0;
  box-shadow: inset 0 0 0 1px rgba(200, 162, 74, 0.25), 0 -8px 30px rgba(0, 0, 0, 0.5);
}
html body #btc-app .sheet__grab { display: flex; justify-content: center; padding: 10px 0 4px; }
html body #btc-app .sheet__grab::before { content: ""; width: 44px; height: 4px; border-radius: 2px; background: rgba(200, 162, 74, 0.4); }
html body #btc-app .sheet__head { padding: 8px 16px 14px 20px; display: flex; align-items: center; gap: 14px; }
html body #btc-app .sheet__head .badge { width: 46px; height: 46px; font-size: 19px; box-shadow: inset 0 0 0 1px rgba(200, 162, 74, 0.45); }
html body #btc-app .sheet__title { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
html body #btc-app .sheet__title .eyebrow { letter-spacing: 0.32em; }
html body #btc-app .sheet__title h2 { margin: 0; font-family: var(--serif); font-weight: 800; font-size: 25px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body #btc-app .icon-btn {
  width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(200, 162, 74, 0.35); color: var(--gold-hi); display: flex; align-items: center; justify-content: center;
}
html body #btc-app .icon-btn:hover { background: rgba(200, 162, 74, 0.12); }
html body #btc-app .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
html body #btc-app .stats { padding: 14px 16px 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
html body #btc-app .stat { padding: 10px 6px; border-radius: 3px; background: rgba(7, 15, 20, 0.5); box-shadow: inset 0 0 0 1px rgba(200, 162, 74, 0.12); display: flex; flex-direction: column; align-items: center; gap: 2px; }
html body #btc-app .stat--gold { background: rgba(200, 162, 74, 0.08); box-shadow: inset 0 0 0 1px rgba(200, 162, 74, 0.3); }
html body #btc-app .stat b { font-family: var(--serif); font-weight: 800; font-size: 20px; font-variant-numeric: lining-nums tabular-nums; }
html body #btc-app .stat--gold b { color: var(--gold-hi); }
html body #btc-app .stat span { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2); }
html body #btc-app .sheet__meta { padding: 0 20px 10px; display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
html body #btc-app .sheet__body { flex-grow: 1; min-height: 0; overflow-y: auto; padding: 4px 12px 24px; -webkit-overflow-scrolling: touch; }
html body #btc-app .sheet__body .state { padding: 8px 0; }
html body #btc-app .sheet__body #h-empty { padding: 32px 12px; font-size: 16px; }

html body #btc-app .matches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; animation: kdfade 0.35s ease-out both; }
html body #btc-app .match {
  --edge: rgba(200, 162, 74, 0.18);
  padding: 12px 14px; border-radius: 3px; display: flex; flex-direction: column; gap: 7px;
  background: linear-gradient(180deg, var(--card-1), var(--card-2));
  box-shadow: inset 0 0 0 1px var(--edge), var(--shadow);
}
html body #btc-app .match.is-out { --edge: rgba(224, 147, 122, 0.28); opacity: 0.92; }
html body #btc-app .match__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
html body #btc-app .match__when { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
html body #btc-app .match__credit { font-family: var(--serif); font-weight: 800; font-size: 18px; font-variant-numeric: lining-nums tabular-nums; color: var(--gold-hi); }
html body #btc-app .match.is-out .match__credit { color: var(--muted); }
html body #btc-app .match__vs { display: flex; align-items: center; gap: 10px; min-width: 0; }
html body #btc-app .mode {
  --mode: var(--text); --mode-edge: rgba(236, 227, 208, 0.35);
  flex-shrink: 0; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--mode); box-shadow: inset 0 0 0 1px var(--mode-edge);
}
html body #btc-app .mode--quickplay { --mode: var(--gold-hi); --mode-edge: rgba(200, 162, 74, 0.5); }
html body #btc-app .mode--practice { --mode: var(--cyan); --mode-edge: rgba(111, 208, 224, 0.45); }
html body #btc-app .match__opp { font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body #btc-app .match__facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--text-2); }
html body #btc-app .match__result { font-weight: 600; color: var(--loss); }
html body #btc-app .match__result.is-win { color: var(--gold-hi); }
html body #btc-app .match__status { --status: var(--good); display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--status); }
html body #btc-app .match__status.is-capped { --status: var(--gold-mid); }
html body #btc-app .match__status.is-out { --status: var(--bad); }
html body #btc-app .match__status i { width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--status); display: flex; align-items: center; justify-content: center; }
html body #btc-app .match__status svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
html body #btc-app .match__status strong { font-weight: 600; }

/* ---------- Motion ---------- */
@keyframes kdfade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes kdpulse { 0% { opacity: 0.45; } 50% { opacity: 0.9; } 100% { opacity: 0.45; } }
@keyframes kdscrim { from { opacity: 0; } to { opacity: 1; } }
@keyframes kdsheet { from { transform: translateY(100%); } to { transform: none; } }
@keyframes kdslide { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html body #btc-app *, html body #btc-app *::before, html body #btc-app *::after, html body #btc-app .sheet::backdrop { animation: none !important; }
}

/* ---------- Small phones ---------- */
@container btc (max-width: 380px) {
  html body #btc-app .brand__wordmark { height: 28px; }
  html body #btc-app .hero h1 { font-size: 34px; }
  html body #btc-app .countdown__label { display: none; }
}

/* ---------- Tablet ---------- */
@container btc (min-width: 640px) {
  html body #btc-app .hero { min-height: 400px; }
  html body #btc-app .hero h1 { font-size: 56px; }
  html body #btc-app .tagline { font-size: 19px; }
  html body #btc-app .topbar__social { display: flex; }
  html body #btc-app .brand__wordmark { height: 42px; }
}

/* ---------- Desktop ---------- */
@container btc (min-width: 1024px) {
  html body #btc-app .wrap { padding-left: 48px; padding-right: 48px; }
  html body #btc-app .m-only { display: none; }
  html body #btc-app .d-only { display: inline; }

  html body #btc-app .hero { min-height: 380px; }
  html body #btc-app .topbar { min-height: 80px; }
  html body #btc-app .brand__logo { width: 44px; height: 44px; }
  html body #btc-app .brand__wordmark { height: 48px; }
  html body #btc-app .hero__body { flex-direction: row; justify-content: space-between; align-items: flex-end; text-align: left; padding-bottom: 32px; gap: 40px; }
  html body #btc-app .hero__text { align-items: flex-start; gap: 10px; }
  html body #btc-app .hero .eyebrow { font-size: 13px; }
  html body #btc-app .hero h1 { font-size: 72px; line-height: 0.95; text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6); }
  html body #btc-app .tagline { font-size: 20px; }
  html body #btc-app .hero__side { flex-direction: row; align-items: center; gap: 18px; padding: 16px 18px; border-radius: 3px; background: linear-gradient(180deg, var(--card-1), var(--card-2)); box-shadow: inset 0 0 0 1px var(--line-gold), var(--shadow); flex-shrink: 0; }
  html body #btc-app .countdown { padding: 0; background: none; box-shadow: none; }
  html body #btc-app .countdown__open { flex-direction: column; align-items: flex-start; gap: 8px; }
  html body #btc-app .countdown__label { max-width: none; text-align: left; color: var(--gold-mid); letter-spacing: 0.3em; }
  html body #btc-app .countdown__cells { gap: 8px; }
  html body #btc-app .cd { width: 62px; padding: 6px 0 4px; border-radius: 3px; background: rgba(7, 15, 20, 0.55); box-shadow: inset 0 0 0 1px rgba(200, 162, 74, 0.14); }
  html body #btc-app .cd b { font-size: 28px; line-height: 1.05; }
  html body #btc-app .countdown__closed-title { font-size: 24px; }
  html body #btc-app .hero__qr { display: flex; gap: 10px; padding-left: 18px; border-left: 1px solid rgba(200, 162, 74, 0.2); }
  html body #btc-app .mini-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-hi); }
  html body #btc-app .mini-qr img { width: 84px; height: 84px; padding: 4px; border-radius: 3px; background: #fff; }

  html body #btc-app .layout {
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px 24px; align-items: start;
    padding-top: 24px; padding-left: 48px; padding-right: 48px;
    grid-template-areas: "steps steps" "standings guest" "standings rules" "standings final" "standings ." "get get";
  }
  html body #btc-app .tabs { display: none; }
  html body #btc-app .steps { grid-area: steps; }
  html body #btc-app .steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  html body #btc-app .step { padding: 18px 20px; }
  html body #btc-app .guest { grid-area: guest; align-items: flex-start; padding: 16px 18px; }
  html body #btc-app .guest svg { margin-top: 2px; }
  html body #btc-app .panel[hidden] { display: block !important; }
  html body #btc-app .final[hidden] { display: flex !important; }
  html body #btc-app .panel { animation: none; }
  html body #btc-app .standings { grid-area: standings; padding: 20px 0 8px; }
  html body #btc-app .rules { grid-area: rules; padding: 18px 20px; }
  html body #btc-app .final { grid-area: final; padding: 18px 20px; }
  html body #btc-app .rules .list { font-size: 15px; }
  html body #btc-app .rules .list li { padding: 8px 0; }
  html body #btc-app .final__sub { font-size: 14px; }
  html body #btc-app .rewards li { padding: 10px; }
  html body #btc-app .rewards b { font-size: 22px; }

  html body #btc-app .standings__head { padding: 0 24px 14px; }
  html body #btc-app .standings h2 { font-size: 26px; }
  html body #btc-app .standings__meta { font-size: 14px; gap: 14px; }
  html body #btc-app .notice { margin: 14px 24px 4px; font-size: 16px; }
  html body #btc-app .final .notice--cyan { margin: 0; font-size: 14px; }

  html body #btc-app .table-head, html body #btc-app .row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 92px 72px 76px 64px 124px 14px;
    align-items: center; gap: 0 8px;
  }
  html body #btc-app .table-head { padding: 12px 24px 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
  html body #btc-app .table-head .num { text-align: right; }
  html body #btc-app .row { min-height: 50px; padding: 0 24px; border-bottom: 0; border-top: 1px solid rgba(200, 162, 74, 0.08); }
  html body #btc-app .row__sub { display: none; }
  html body #btc-app .row__total { text-align: right; }
  html body #btc-app .row__col { display: block; text-align: right; color: var(--text-2); }
  html body #btc-app .row__col--last { font-size: 14px; color: var(--muted); }
  html body #btc-app .row__chev { justify-self: end; }
  html body #btc-app .cutoff { padding: 6px 24px; gap: 12px; }
  html body #btc-app .cutoff span { letter-spacing: 0.28em; }
  html body #btc-app .state { padding: 12px 24px; }
  html body #btc-app .state--empty, html body #btc-app .state--error { padding: 72px 24px; }
  html body #btc-app .skel { height: 38px; margin: 10px 0; }
  html body #btc-app .foot-note { margin: 10px 24px 6px; text-align: left; }

  html body #btc-app .footer { flex-direction: row; flex-wrap: wrap; justify-content: space-between; text-align: left; }
  html body #btc-app .footer > .rule-line { width: 100%; }
  html body #btc-app .get { grid-area: get; padding-top: 16px; }
  html body #btc-app .get__cards { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 24px; }
  html body #btc-app .store__qr img { width: 120px; height: 120px; }
  html body #btc-app .footer__legal { flex-basis: 100%; max-width: none; }

  /* History becomes a right-side drawer */
  html body #btc-app .sheet { margin: 0 48px 0 auto; top: 0; bottom: 0; width: 520px; height: min(820px, calc(100vh - 80px)); margin-top: auto; margin-bottom: auto; }
  html body #btc-app .sheet__inner { border-radius: 3px; }
  html body #btc-app .sheet[open] .sheet__inner { animation: kdslide 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  html body #btc-app .sheet__grab { display: none; }
  html body #btc-app .sheet__head { padding-top: 18px; }
}

@container btc (min-width: 640px) {
  html body #btc-app .steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  html body #btc-app .hero__qr { display: flex; gap: 10px; }
  html body #btc-app .mini-qr { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-hi); }
  html body #btc-app .mini-qr img { width: 72px; height: 72px; padding: 4px; border-radius: 3px; background: #fff; }
  html body #btc-app .hero__side { flex-direction: row; align-items: center; gap: 16px; }
}
@media (min-width: 1024px) {
  html body #btc-app .sheet { margin: 0 48px 0 auto; top: 0; bottom: 0; width: 520px; height: min(820px, calc(100vh - 80px)); margin-top: auto; margin-bottom: auto; }
  html body #btc-app .sheet__inner { border-radius: 3px; }
  html body #btc-app .sheet[open] .sheet__inner { animation: kdslide 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  html body #btc-app .sheet__grab { display: none; }
  html body #btc-app .sheet__head { padding-top: 18px; }
}