/* Breakout Games & District Color Matcher — 100% :root CSS token compliant (WCAG AA) */

.bt-shell {
  max-width: 1020px;
  margin: 0 auto;
  padding: 20px 16px 56px;
}

.bt-hero {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  padding: 28px 22px;
  margin-bottom: 24px;
}

.bt-hero--d5 { border-left-color: var(--goldenrod); }
.bt-hero--d6 { border-left-color: var(--copper); }

.bt-eyebrow {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--gold-dim);
  background: var(--bg-card);
  color: var(--gold-bright);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.bt-hero h1 {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 10px;
}

.bt-hero-lead {
  color: var(--text-body);
  font-size: 1.02rem;
  max-width: 760px;
  margin-bottom: 14px;
}

.bt-lang-switch {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.bt-pill-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--gold-bright);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 600;
}

.bt-pill-link:hover,
.bt-pill-link:focus-visible {
  border-color: var(--gold);
  color: var(--text);
}

.bt-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px;
  margin-bottom: 24px;
}

.bt-card h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.55rem);
  color: var(--gold-bright);
  margin-bottom: 10px;
}

.bt-card h3 {
  font-size: 1.08rem;
  color: var(--gold);
  margin: 16px 0 8px;
}

.bt-card p {
  color: var(--text-body);
  margin-bottom: 12px;
}

.bt-hud {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.bt-stat {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
}

.bt-stat-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bt-stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--gold-bright);
  margin-top: 2px;
}

/* Foxface Memory Grid */
.bt-memory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.bt-tile {
  min-height: 76px;
  border-radius: 10px;
  border: 1px solid var(--gold-dim);
  background: var(--bg-alt);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  transition: transform 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.bt-tile:hover {
  border-color: var(--gold-bright);
}

.bt-tile.is-open {
  background: var(--blue);
  border-color: var(--blue-bright);
  color: var(--text);
}

.bt-tile.is-matched {
  background: var(--forest-dark);
  border-color: var(--green);
  color: var(--gold-cream);
  cursor: default;
}

.bt-tile-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.bt-tile-label {
  font-size: 0.74rem;
  line-height: 1.2;
}

/* Scenario / Choice Buttons */
.bt-choice-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0;
}

.bt-choice-btn {
  width: 100%;
  min-height: 48px;
  text-align: left;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.45;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.bt-choice-btn:hover,
.bt-choice-btn:focus-visible {
  border-color: var(--gold);
  background: var(--near-black);
}

.bt-choice-btn.is-selected {
  border-color: var(--gold-bright);
  background: var(--bg-footer);
  color: var(--gold-cream);
}

/* Dual Meters for Titus Simulator */
.bt-meters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.bt-meter-box {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}

.bt-meter-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text);
  margin-bottom: 8px;
}

.bt-meter-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--near-black);
  border: 1px solid var(--line);
  overflow: hidden;
}

.bt-meter-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.bt-meter-fill--approval { background: var(--teal-bright); }
.bt-meter-fill--risk { background: var(--ember); }

/* Action Row & Primary/Secondary Buttons */
.bt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.bt-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

.bt-btn-primary:hover,
.bt-btn-primary:focus-visible {
  background: var(--gold-bright);
  color: var(--bg);
}

.bt-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--gold-dim);
  background: var(--bg-alt);
  color: var(--gold-bright);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.bt-btn-secondary:hover,
.bt-btn-secondary:focus-visible {
  border-color: var(--gold-bright);
  color: var(--text);
}

.bt-status {
  min-height: 22px;
  margin-top: 10px;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--gold-bright);
}

.bt-result-panel {
  margin-top: 16px;
  padding: 20px;
  border-radius: 12px;
  border: 1.5px solid var(--gold);
  background: var(--bg-alt);
}

.bt-result-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--gold-dim);
  color: var(--gold-bright);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.bt-result-title {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--text);
  margin-bottom: 8px;
}

/* Comparison Table (Horizontal scroll safe on 390px) */
.bt-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 14px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.bt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.bt-table th,
.bt-table td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.bt-table th {
  background: var(--bg-alt);
  color: var(--gold-bright);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bt-table td {
  color: var(--text-body);
}

/* District Color Matcher Widget (embedded in /hunger-games-district-colors) */
.dcm-widget {
  background: var(--bg-card);
  border: 1px solid var(--gold-dim);
  border-radius: 14px;
  padding: 22px 20px;
  margin: 20px auto 0;
  max-width: 1020px;
}

.dcm-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 12px 0 14px;
}

.dcm-search {
  flex: 1 1 240px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--gold-dim);
  background: var(--bg-alt);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.94rem;
}

.dcm-search::placeholder {
  color: var(--muted);
}

.dcm-trending-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.dcm-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.dcm-chip:hover,
.dcm-chip.is-active {
  border-color: var(--gold-bright);
  background: var(--near-black);
  color: var(--gold-bright);
}

.dcm-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--text);
  flex-shrink: 0;
}

.dcm-dot--electric-blue { background: var(--blue-bright); }
.dcm-dot--seafoam { background: var(--teal-bright); }
.dcm-dot--deep-teal { background: var(--teal-dark); }
.dcm-dot--coal-amber { background: var(--gold-dim); }
.dcm-dot--luxury-gold { background: var(--gold); }
.dcm-dot--power-amber { background: var(--goldenrod); }

.dcm-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 16px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.dcm-swatch-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.dcm-swatch-btn {
  min-height: 68px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--text);
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  text-align: left;
}

.dcm-swatch-btn:hover,
.dcm-swatch-btn:focus-visible {
  border-color: var(--gold-bright);
}

.dcm-swatch-bar {
  width: 100%;
  height: 22px;
  border-radius: 6px;
  margin-bottom: 6px;
  border: 1px solid var(--line);
}

.dcm-match-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.dcm-district-btn {
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--text-body);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.dcm-district-btn.is-active,
.dcm-district-btn:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

/* FAQ Details */
.bt-faq-list {
  display: grid;
  gap: 10px;
}

.bt-faq-item {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}

.bt-faq-item summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--gold-bright);
  list-style: none;
}

.bt-faq-item p {
  margin-top: 10px;
  margin-bottom: 0;
  color: var(--text-body);
  font-size: 0.94rem;
}

/* Related Cards Grid */
.bt-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.bt-related-card {
  display: block;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  color: var(--text-body);
}

.bt-related-card:hover {
  border-color: var(--gold);
  color: var(--text);
}

.bt-related-card strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.bt-related-card span {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
}

.bt-hidden { display: none !important; }

@media (max-width: 720px) {
  .bt-hud { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .bt-memory-grid { gap: 7px; }
  .bt-tile { min-height: 68px; padding: 6px 4px; }
  .bt-meters { grid-template-columns: 1fr; }
  .dcm-preview { grid-template-columns: 1fr; }
  .dcm-swatch-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .bt-tile,
  .bt-choice-btn,
  .bt-meter-fill { transition: none; }
}
