/* Bingo Card With Friends — Warm Tabletop Party Print & Confetti Ink */
:root {
  --bg: #fcf9f3;
  --surface: #ffffff;
  --surface-alt: #f4ede0;
  --ink: #14192e;
  --ink-soft: #4a5168;
  --border: #dfd5c3;
  --primary: #be2d24;
  --primary-dark: #991f17;
  --primary-tint: #fce8e6;
  --gold: #f5b93b;
  --gold-tint: #fef4d6;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --teal-tint: #e0f2f1;
  --navy-mid: #232c52;
  --crimson: #7a1c2b;
  --cobalt: #1e3a8a;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(20, 25, 46, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 25, 46, 0.09);
  --font-display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.bc-body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--primary); }
button, input, textarea, select { font: inherit; color: inherit; }

.bc-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--surface);
  padding: 0.65rem 1rem;
  z-index: 100;
}
.bc-skip:focus { left: 1rem; top: 1rem; border-radius: 8px; }

.bc-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.15rem;
}

/* Header */
.bc-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.bc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.bc-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.bc-brand-mark { display: inline-flex; width: 32px; height: 32px; border-radius: 8px; overflow: hidden; }
.bc-brand-mark img { width: 32px; height: 32px; display: block; }
.bc-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.bc-nav-link {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.bc-nav-link:hover { background: var(--surface-alt); color: var(--ink); }
.bc-nav-link.is-featured {
  background: var(--ink);
  color: var(--bg);
}
.bc-nav-link.is-featured:hover { background: var(--navy-mid); color: var(--gold); }

.bc-nav-toggle {
  display: none;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.42rem 0.9rem;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

/* Hero */
.bc-hero {
  padding: 2rem 0 1.25rem;
  background: var(--bg);
}
.bc-hero-compact { padding: 2.25rem 0 1.75rem; border-bottom: 1px solid var(--border); }
.bc-crumbs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
}
.bc-crumbs a { color: var(--ink-soft); text-decoration: none; }
.bc-crumbs a:hover { color: var(--ink); text-decoration: underline; }

.bc-hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
  gap: 1.5rem;
  align-items: end;
}
.bc-eyebrow {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.28rem 0.78rem;
  border-radius: 999px;
  background: var(--primary-tint);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bc-hero h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.bc-lede {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.04rem;
}

/* 6-char Lookup Box */
.bc-lookup-box {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem;
  box-shadow: var(--shadow-sm);
}
.bc-lookup-label {
  display: block;
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 0.45rem;
  color: var(--ink);
}
.bc-lookup-form {
  display: flex;
  gap: 0.5rem;
}
.bc-code-input {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.58rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.bc-code-input:focus { outline: 2px solid var(--primary); outline-offset: 1px; background: var(--surface); }
.bc-lookup-msg {
  margin: 0.42rem 0 0;
  min-height: 1.2em;
  font-size: 0.84rem;
  color: var(--ink-soft);
}
.bc-lookup-msg.is-error { color: var(--primary-dark); font-weight: 600; }
.bc-lookup-msg.is-ok { color: var(--teal-dark); font-weight: 600; }

/* Countdown bar */
.bc-countdown-bar {
  margin-top: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--bg);
}
.bc-countdown-badge {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold);
}
.bc-countdown-clock { display: flex; gap: 0.65rem; }
.bc-cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 54px;
  padding: 0.32rem 0.55rem;
  border-radius: 10px;
  background: var(--navy-mid);
}
.bc-cd-unit strong {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  line-height: 1.15;
  color: var(--surface);
}
.bc-cd-unit span {
  font-size: 0.72rem;
  color: var(--surface-alt);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Template quick switcher */
.bc-template-strip {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.15rem;
}
.bc-tpl-pill {
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.bc-tpl-pill:hover { border-color: var(--ink); color: var(--ink); }
.bc-tpl-pill.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* Buttons */
.bc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.62rem 1.05rem;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
  min-height: 44px;
}
.bc-btn:active { transform: translateY(1px); }
.bc-btn-lg { padding: 0.78rem 1.3rem; font-size: 0.98rem; }
.bc-btn-sm { padding: 0.44rem 0.78rem; font-size: 0.84rem; min-height: 36px; }
.bc-btn-primary { background: var(--primary); color: var(--surface); }
.bc-btn-primary:hover { background: var(--primary-dark); color: var(--surface); }
.bc-btn-ink { background: var(--ink); color: var(--surface); }
.bc-btn-ink:hover { background: var(--navy-mid); color: var(--surface); }
.bc-btn-gold { background: var(--gold); color: var(--ink); }
.bc-btn-gold:hover { background: var(--gold-tint); color: var(--ink); }
.bc-btn-accent { background: var(--teal); color: var(--surface); }
.bc-btn-accent:hover { background: var(--teal-dark); color: var(--surface); }
.bc-btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
.bc-btn-ghost:hover { border-color: var(--ink); background: var(--surface-alt); }
.bc-link-btn {
  background: none;
  border: none;
  padding: 0.2rem 0.3rem;
  color: var(--cobalt);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.bc-link-btn:hover { color: var(--primary); }

/* Studio Workspace */
.bc-workspace-section { padding: 0.5rem 0 2.5rem; }
.bc-studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 415px) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
}
.bc-panel {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-md);
}

/* Mode tabs */
.bc-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 1.1rem;
}
.bc-mode-tab {
  text-align: left;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.68rem 0.78rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  transition: border-color 0.15s, background 0.15s;
}
.bc-mode-tab.is-active {
  background: var(--gold-tint);
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.bc-mode-title { font-weight: 700; font-size: 0.88rem; color: var(--ink); line-height: 1.2; }
.bc-mode-sub { font-size: 0.76rem; color: var(--ink-soft); line-height: 1.3; }

/* Form fields */
.bc-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.bc-field { margin-bottom: 0.95rem; }
.bc-field label, .bc-field-label {
  display: block;
  font-weight: 700;
  font-size: 0.86rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}
.bc-sublabel { font-size: 0.8rem !important; color: var(--ink-soft) !important; margin-top: 0.45rem; }
.bc-field input[type="text"],
.bc-field input[type="datetime-local"],
.bc-field textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  background: var(--bg);
  font-size: 0.94rem;
}
.bc-field input:focus, .bc-field textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  background: var(--surface);
}
.bc-pool-head, .bc-label-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.bc-pool-head label, .bc-label-split label { margin-bottom: 0; }
.bc-help-line { margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--ink-soft); }

/* Theme chips */
.bc-theme-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}
.bc-theme-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.4rem;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.bc-theme-chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--surface);
  box-shadow: 0 0 0 2px rgba(20, 25, 46, 0.14);
}
.bc-swatch {
  width: 34px;
  height: 18px;
  border-radius: 999px;
  display: inline-block;
  border: 1px solid var(--border);
}
.bc-swatch-midnight { background: linear-gradient(90deg, var(--ink) 55%, var(--gold) 55%); }
.bc-swatch-crimson { background: linear-gradient(90deg, var(--crimson) 55%, var(--primary-tint) 55%); }
.bc-swatch-studio { background: linear-gradient(90deg, var(--cobalt) 55%, var(--teal) 55%); }

.bc-lock-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.bc-radio-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.72rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-weight: 600 !important;
  font-size: 0.84rem !important;
  cursor: pointer;
  margin-bottom: 0 !important;
}
.bc-create-actions { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.bc-form-error {
  margin: 0.45rem 0 0;
  min-height: 1.2em;
  color: var(--primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
}

/* My Bingo Cards */
.bc-my-cards {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}
.bc-my-cards-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
}
.bc-my-cards-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
}
.bc-count-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--ink-soft);
}
.bc-my-cards-list { display: flex; flex-direction: column; gap: 0.45rem; }
.bc-empty-note { margin: 0; font-size: 0.84rem; color: var(--ink-soft); }
.bc-saved-card-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  padding: 0.58rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  cursor: pointer;
}
.bc-saved-card-btn:hover { border-color: var(--ink); background: var(--surface); }
.bc-saved-card-title { font-weight: 700; font-size: 0.88rem; display: block; color: var(--ink); }
.bc-saved-card-sub { font-size: 0.76rem; color: var(--ink-soft); }
.bc-saved-card-code {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.84rem;
  background: var(--ink);
  color: var(--gold);
  padding: 0.22rem 0.52rem;
  border-radius: 6px;
  flex-shrink: 0;
}

/* Stage Panel */
.bc-stage-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.bc-stage-badges { display: flex; gap: 0.45rem; flex-wrap: wrap; margin-bottom: 0.35rem; }
.bc-status-badge, .bc-lock-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bc-status-badge { background: var(--teal-tint); color: var(--teal-dark); }
.bc-lock-badge { background: var(--gold-tint); color: var(--ink); }
.bc-lock-badge.is-unlocked { background: var(--teal-tint); color: var(--teal-dark); }
.bc-stage-title {
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.18;
}
.bc-stage-meta { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }

.bc-code-pill-card {
  background: var(--ink);
  color: var(--surface);
  border-radius: 14px;
  padding: 0.5rem 0.85rem;
  text-align: center;
  flex-shrink: 0;
}
.bc-code-pill-label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--surface-alt);
}
.bc-code-pill-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  color: var(--gold);
}

/* Progress bar */
.bc-progress-wrap {
  margin-bottom: 0.9rem;
  padding: 0.72rem 0.88rem;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.bc-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}
.bc-progress-text { font-weight: 700; font-size: 0.88rem; color: var(--ink); }
.bc-progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-alt);
  overflow: hidden;
}
.bc-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transition: width 0.25s ease;
}

.bc-bingo-banner {
  margin-bottom: 0.85rem;
  padding: 0.72rem 1rem;
  border-radius: 12px;
  background: var(--teal-dark);
  color: var(--surface);
  font-weight: 700;
  font-size: 0.94rem;
}

/* 5x5 Bingo Card Themes */
.bc-card-frame {
  border-radius: 18px;
  padding: 0.9rem;
  border: 2px solid var(--card-border);
  background: var(--card-bg);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.bc-theme-midnight-gold {
  --card-bg: var(--ink);
  --card-border: var(--gold);
  --letter-bg: var(--gold);
  --letter-fg: var(--ink);
  --cell-bg: var(--navy-mid);
  --cell-border: var(--ink-soft);
  --cell-fg: var(--surface);
  --cell-muted: var(--surface-alt);
  --cell-filled-bg: var(--cobalt);
  --cell-filled-border: var(--gold);
  --cell-free-bg: var(--gold);
  --cell-free-fg: var(--ink);
  --cell-daub-bg: var(--primary);
  --cell-daub-fg: var(--surface);
  --cell-win-ring: var(--gold);
  --foot-fg: var(--surface-alt);
}
.bc-theme-cozy-crimson {
  --card-bg: var(--crimson);
  --card-border: var(--primary-tint);
  --letter-bg: var(--bg);
  --letter-fg: var(--crimson);
  --cell-bg: var(--surface);
  --cell-border: var(--border);
  --cell-fg: var(--ink);
  --cell-muted: var(--ink-soft);
  --cell-filled-bg: var(--primary-tint);
  --cell-filled-border: var(--crimson);
  --cell-free-bg: var(--gold-tint);
  --cell-free-fg: var(--ink);
  --cell-daub-bg: var(--crimson);
  --cell-daub-fg: var(--surface);
  --cell-win-ring: var(--gold);
  --foot-fg: var(--primary-tint);
}
.bc-theme-crisp-studio {
  --card-bg: var(--surface);
  --card-border: var(--cobalt);
  --letter-bg: var(--cobalt);
  --letter-fg: var(--surface);
  --cell-bg: var(--bg);
  --cell-border: var(--border);
  --cell-fg: var(--ink);
  --cell-muted: var(--ink-soft);
  --cell-filled-bg: var(--teal-tint);
  --cell-filled-border: var(--cobalt);
  --cell-free-bg: var(--teal);
  --cell-free-fg: var(--surface);
  --cell-daub-bg: var(--teal-dark);
  --cell-daub-fg: var(--surface);
  --cell-win-ring: var(--gold);
  --foot-fg: var(--ink-soft);
}

.bc-bingo-letters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.42rem;
  margin-bottom: 0.45rem;
}
.bc-bingo-letters span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 9px;
  background: var(--letter-bg);
  color: var(--letter-fg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
}

.bc-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.42rem;
}
.bc-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 92px;
  padding: 0.38rem 0.28rem;
  border-radius: 11px;
  border: 1.5px solid var(--cell-border);
  background: var(--cell-bg);
  color: var(--cell-fg);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.1s ease, border-color 0.15s ease, background 0.15s ease;
  word-break: break-word;
}
.bc-cell:hover { transform: translateY(-1px); border-color: var(--letter-bg); }
.bc-cell.is-filled {
  background: var(--cell-filled-bg);
  border-color: var(--cell-filled-border);
}
.bc-cell.is-free {
  background: var(--cell-free-bg);
  color: var(--cell-free-fg);
  border-color: var(--cell-free-bg);
  font-weight: 800;
}
.bc-cell.is-daubed {
  background: var(--cell-daub-bg);
  color: var(--cell-daub-fg);
  border-color: var(--cell-daub-bg);
}
.bc-cell.is-win { box-shadow: 0 0 0 3px var(--cell-win-ring); }
.bc-cell-sticker {
  width: 24px;
  height: 24px;
  margin-bottom: 0.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bc-cell.is-daubed .bc-cell-sticker {
  background: var(--surface);
  border-radius: 999px;
  width: 26px;
  height: 26px;
  padding: 3px;
}
.bc-cell-text {
  font-size: 0.74rem;
  line-height: 1.24;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bc-cell-author {
  margin-top: 0.22rem;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--cell-muted);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bc-cell.is-daubed .bc-cell-author,
.bc-cell.is-free .bc-cell-author { color: inherit; opacity: 0.92; }
.bc-cell-lock-pill {
  font-size: 0.64rem;
  font-weight: 700;
  padding: 0.12rem 0.36rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--gold);
  margin-top: 0.14rem;
}
.bc-cell-empty-plus { font-size: 1.15rem; font-weight: 700; opacity: 0.65; line-height: 1; }
.bc-cell-empty-num { font-size: 0.66rem; color: var(--cell-muted); margin-top: 0.18rem; }
.bc-cell-check-mark {
  position: absolute;
  top: 4px;
  right: 5px;
  font-size: 0.72rem;
  font-weight: 800;
}
.bc-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--foot-fg);
}

.bc-board-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
}
.bc-report-btn { margin-left: auto; color: var(--ink-soft); }

/* Friend Fill Drawer */
.bc-fill-drawer {
  margin-top: 1rem;
  padding: 1.05rem;
  border-radius: 14px;
  border: 2px solid var(--primary);
  background: var(--bg);
}
.bc-fill-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.bc-eyebrow-sm {
  margin: 0 0 0.15rem;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-dark);
}
.bc-fill-drawer-head h3 { margin: 0; font-family: var(--font-display); font-size: 1.12rem; }
.bc-icon-close {
  border: 1px solid var(--border);
  background: var(--surface);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.bc-sticker-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.42rem;
}
.bc-sticker-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.16rem;
  padding: 0.42rem 0.25rem;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  min-height: 54px;
}
.bc-sticker-btn[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary-tint);
}
.bc-sticker-name { font-size: 0.65rem; font-weight: 700; color: var(--ink-soft); }
.bc-char-count { font-size: 0.78rem; font-family: var(--font-mono); color: var(--ink-soft); }
.bc-prompt-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}
.bc-prompt-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.26rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}
.bc-prompt-chip:hover { border-color: var(--ink); color: var(--ink); }
.bc-fill-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.bc-limit-hint { font-size: 0.8rem; color: var(--ink-soft); font-weight: 600; }

/* Fill One Back Fork Card */
.bc-fork-card {
  margin-top: 1rem;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
}
.bc-fork-top {
  padding: 0.85rem 1.05rem;
  background: var(--navy-mid);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.bc-fork-badge {
  background: var(--teal);
  color: var(--surface);
  font-weight: 800;
  font-size: 0.76rem;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.bc-fork-top p { margin: 0; font-size: 0.9rem; color: var(--surface-alt); }
.bc-fork-cta-box { padding: 1.05rem; }
.bc-fork-cta-box h3 {
  margin: 0 0 0.28rem;
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--gold);
}
.bc-fork-cta-box p { margin: 0 0 0.8rem; font-size: 0.88rem; color: var(--surface-alt); }
.bc-fork-form { display: flex; gap: 0.55rem; flex-wrap: wrap; }
.bc-fork-form input {
  flex: 1 1 170px;
  min-width: 0;
  border: 1.5px solid var(--ink-soft);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.78rem;
  background: var(--navy-mid);
  color: var(--surface);
}
.bc-fork-form input::placeholder { color: var(--surface-alt); }

/* Share & Export Bar */
.bc-share-bar {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
}
.bc-share-head h3 { margin: 0 0 0.25rem; font-family: var(--font-display); font-size: 1.04rem; }
.bc-share-url-line {
  margin: 0 0 0.75rem;
  font-size: 0.83rem;
  color: var(--ink-soft);
  word-break: break-all;
}
.bc-share-url-line code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--surface);
  padding: 0.14rem 0.42rem;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.bc-share-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.bc-share-feedback {
  margin: 0.55rem 0 0;
  min-height: 1.2em;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--teal-dark);
}
.bc-story-preview-wrap {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--border);
}
.bc-story-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.84rem;
  font-weight: 700;
}
.bc-story-preview-wrap img {
  display: block;
  width: 220px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Steps strip */
.bc-steps-section {
  padding: 1.8rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-alt);
}
.bc-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.bc-step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.15rem;
}
.bc-step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--primary-dark);
  background: var(--primary-tint);
  padding: 0.16rem 0.5rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}
.bc-step-card h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.08rem;
}
.bc-step-card p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* Below-the-fold Editorial */
.bc-editorial-section { padding: 2.6rem 0; }
.bc-editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  gap: 2.2rem;
  align-items: start;
}
.bc-aside-card {
  position: sticky;
  top: 84px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}
.bc-aside-card h2 { margin: 0 0 0.5rem; font-family: var(--font-display); font-size: 1.12rem; }
.bc-aside-card p { margin: 0 0 0.8rem; font-size: 0.92rem; color: var(--ink-soft); }
.bc-aside-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}

.bc-prose { max-width: 72ch; }
.bc-prose-narrow { max-width: 76ch; }
.bc-prose h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.48rem;
  line-height: 1.22;
  letter-spacing: -0.02em;
}
.bc-prose h2:first-child { margin-top: 0; }
.bc-prose h3 { margin: 1.45rem 0 0.45rem; font-family: var(--font-display); font-size: 1.14rem; }
.bc-prose p { margin: 0 0 1rem; color: var(--ink); }
.bc-prose ul, .bc-prose ol { margin: 0 0 1.1rem; padding-left: 1.3rem; }
.bc-prose li { margin-bottom: 0.42rem; color: var(--ink); }
.bc-prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.92rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.bc-prose th, .bc-prose td {
  padding: 0.62rem 0.78rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.bc-prose th { background: var(--surface-alt); font-weight: 700; }

/* FAQ */
.bc-faq-section {
  padding: 2.3rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.bc-faq-section h2 { margin: 0 0 1.1rem; font-family: var(--font-display); font-size: 1.55rem; }
.bc-faq-list { display: grid; gap: 0.7rem; max-width: 82ch; }
.bc-faq-item {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1.05rem;
  background: var(--bg);
}
.bc-faq-item summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.bc-faq-item summary::-webkit-details-marker { display: none; }
.bc-faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--primary);
  flex-shrink: 0;
}
.bc-faq-item[open] summary::after { content: '−'; }
.bc-faq-item p { margin: 0.65rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }

/* Related */
.bc-related-section { padding: 2.2rem 0; border-top: 1px solid var(--border); }
.bc-related-section h2 { margin: 0 0 1rem; font-family: var(--font-display); font-size: 1.4rem; }
.bc-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.bc-related-card {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, transform 0.15s;
}
.bc-related-card:hover { border-color: var(--primary); transform: translateY(-2px); color: var(--ink); }
.bc-related-card strong { font-family: var(--font-display); font-size: 1.02rem; }
.bc-related-card span { font-size: 0.88rem; color: var(--ink-soft); }

/* Footer */
.bc-footer {
  background: var(--ink);
  color: var(--surface-alt);
  padding: 2.4rem 0 1.6rem;
}
.bc-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
  gap: 1.8rem;
}
.bc-footer-brand {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--surface);
}
.bc-footer-tagline { margin: 0 0 0.6rem; font-size: 0.9rem; color: var(--surface-alt); max-width: 40ch; }
.bc-footer-meta { margin: 0; font-size: 0.82rem; color: var(--gold); font-weight: 600; }
.bc-footer-heading {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  font-weight: 700;
}
.bc-footer-col { display: flex; flex-direction: column; gap: 0.42rem; }
.bc-footer-col a { color: var(--surface); text-decoration: none; font-size: 0.9rem; }
.bc-footer-col a:hover { color: var(--gold); text-decoration: underline; }
.bc-footer-bottom {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--navy-mid);
  font-size: 0.82rem;
  color: var(--surface-alt);
}
.bc-footer-bottom p { margin: 0; }
.bc-legal-meta { margin: 0.4rem 0 0; font-size: 0.88rem; color: var(--ink-soft); }

/* Responsive */
@media (max-width: 980px) {
  .bc-hero-top, .bc-studio-grid, .bc-editorial-layout,
  .bc-steps-grid, .bc-related-grid, .bc-footer-grid { grid-template-columns: 1fr; }
  .bc-aside-card { position: static; }
}

@media (max-width: 760px) {
  .bc-nav-toggle { display: inline-flex; }
  .bc-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: var(--surface);
    border-bottom: 1.5px solid var(--border);
    padding: 0.75rem 1.15rem 1rem;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow-md);
  }
  .bc-nav.is-open { display: flex; }
  .bc-nav-link { padding: 0.62rem 0.85rem; }
  .bc-field-row { grid-template-columns: 1fr; }
  .bc-panel { padding: 0.95rem; }
  .bc-card-frame { padding: 0.55rem; }
  .bc-bingo-letters { gap: 0.25rem; }
  .bc-bingo-letters span { height: 28px; font-size: 0.9rem; }
  .bc-grid { gap: 0.25rem; }
  .bc-cell { min-height: 70px; padding: 0.26rem 0.16rem; border-radius: 8px; }
  .bc-cell-sticker { width: 18px; height: 18px; margin-bottom: 0.12rem; }
  .bc-cell-text { font-size: 0.62rem; line-height: 1.16; -webkit-line-clamp: 3; }
  .bc-cell-author { font-size: 0.58rem; }
  .bc-cell-lock-pill { font-size: 0.56rem; padding: 0.08rem 0.24rem; }
  .bc-sticker-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bc-stage-header { flex-direction: column; }
  .bc-lookup-form { flex-direction: row; }
  .bc-share-actions { flex-direction: column; }
  .bc-share-actions .bc-btn { width: 100%; }
}

@media print {
  .bc-header, .bc-lookup-box, .bc-template-strip, .bc-controls-panel,
  .bc-board-tools, .bc-fill-drawer, .bc-fork-card, .bc-share-bar,
  .bc-steps-section, .bc-editorial-section, .bc-faq-section,
  .bc-related-section, .bc-footer { display: none !important; }
  .bc-panel { box-shadow: none; border: none; padding: 0; }
}
