/* badlucy.com. Look per 10b-badlucy-style-guide.md (Brand owns it). Dark only (10b §5). Built to the approved canvas v6 (D-73) and 10b §14. */
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Syne"; src: url("fonts/syne-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2-variations"), url("fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg-canvas: #090A0F;
  --bg-surface: #12151E;
  --bg-surface-elevated: #1B1F2D;
  --border-solid: #1B1F2D;
  --border-focus: #EF4444;
  --text-primary: #F3F4F6;
  --text-secondary: #9CA3AF;
  --text-muted: #8B929E;
  --brand-heart: #EF4444;
  --brand-heart-glow: rgba(239, 68, 68, 0.25);
  --brand-heart-hover: #F87171;
  --brand-on-heart: #090A0F;
  --metric-surge: #F59E0B;
  --bg-row-stripe: #0E1119;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg-canvas); }
body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font: 400 16px/1.5 "Inter", system-ui, sans-serif;
}
a { color: var(--brand-heart); text-underline-offset: 3px; }
a:hover { color: var(--brand-heart-hover); }
:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
[hidden] { display: none !important; }

.page { position: relative; isolation: isolate; min-height: 100vh; overflow-x: hidden; }
.lattice { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.wrap { max-width: 560px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* Type */
.label { margin: 0; font: 600 12px/16px "Inter", sans-serif; letter-spacing: 0.04em; color: var(--text-secondary); }
.label.caps { text-transform: uppercase; }
.label.amber { color: var(--metric-surge); }
.label.muted { color: var(--text-muted); }
.display { margin: 0; font: 800 38px/1.1 "Syne", sans-serif; }
h2 { margin: 0; font: 700 22px/1.2 "Bricolage Grotesque", "Inter", sans-serif; }
.lede { margin: 0; color: var(--text-secondary); }
.strap { margin: 0; font: 700 18px/1.3 "Bricolage Grotesque", "Inter", sans-serif; color: var(--text-primary); }
.sub { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.kicker { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.tagline { margin: 0; font: 700 22px/1.2 "Bricolage Grotesque", "Inter", sans-serif; color: var(--brand-heart); }
.small-link { font-size: 14px; margin: 0; }

/* Header */
.top { background: var(--bg-canvas); border-bottom: 1px solid var(--border-solid); position: relative; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; position: relative; }
.logo { white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; color: var(--text-primary); text-decoration: none; }
.logo:hover { color: var(--text-primary); }
.logo svg { filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.25)); }
.logo-text { display: flex; flex-direction: column; gap: 3px; }
.logo span { font: 800 22px/1 "Syne", sans-serif; }
.logo .logo-tag { font: 600 11px/1 "Inter", sans-serif; letter-spacing: 0.04em; color: var(--brand-heart); }
.play-btn { margin-left: auto; min-height: 48px; padding: 0 12px; background: transparent; border: 0; color: var(--text-primary); font: 600 14px/20px "Inter", system-ui, sans-serif; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
/* The canvas is drawn at 390 px; on narrower phones the header tightens. */
@media (max-width: 400px) { .top .wrap { gap: 4px; } .play-btn { padding: 0 8px; } }
@media (max-width: 370px) { .logo span { font-size: 19px; } }
.play-menu { position: absolute; top: 100%; right: 16px; z-index: 6; width: 240px; background: var(--bg-surface-elevated); border: 1px solid var(--border-solid); border-radius: 12px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.7); padding: 8px; display: flex; flex-direction: column; }
.play-menu a, .play-menu .soon { min-height: 48px; display: flex; align-items: center; padding: 0 12px; }
.play-menu a { color: var(--text-primary); text-decoration: none; font-weight: 600; border-radius: 8px; }
.play-menu a:hover { background: var(--bg-surface); }
.play-menu .soon { justify-content: space-between; color: var(--text-secondary); }
.play-menu .soon span { font: 600 12px/16px "Inter", sans-serif; letter-spacing: 0.04em; }

/* Ad spaces (10b §14.7): reserved so nothing jumps; no ad code until a network approves the site */
.ad-top { padding-top: 12px; }
.ad { border: 1px dashed var(--border-solid); border-radius: 8px; background: var(--bg-row-stripe); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font: 600 12px/16px "Inter", sans-serif; letter-spacing: 0.04em; }
.ad-100 { height: 100px; }
.ad-250 { height: 250px; }
/* Image house ad (BLY-05): fills the 100 px slot; the image carries its own Sponsored label. */
.ad:has(.bp-img-ad) { border-style: solid; overflow: hidden; background: #0b0b0a; }
.bp-img-ad, .bp-img-ad picture { display: block; width: 100%; height: 100%; }
.bp-img-ad img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.bp-img-ad:focus-visible { outline: 2px solid #D9662B; outline-offset: -2px; }
/* Bearproof house ad. Add to site.css after the .ad rules. Colors are Bearproof's (bone on charcoal) so it reads as an ad, not part of Bad Lucy. */
.ad:has(.bp-ad) { border-style: solid; padding: 0; overflow: hidden; }
.bp-ad { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; height: 100%; padding: 0 20px; background: #1C1B19; color: #E8E3D7; text-decoration: none; font-family: "Barlow Condensed", "Arial Narrow", "Inter", sans-serif; letter-spacing: 0; }
.bp-ad:focus-visible { outline: 2px solid #D9662B; outline-offset: -2px; }
.bp-ad__tag { position: absolute; top: 6px; right: 8px; font: 600 10px/12px "Inter", sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: #B3AC9C; }
.bp-ad__mark { flex: none; width: 56px; height: 56px; }
.bp-ad__text { display: flex; flex-direction: column; min-width: 0; }
.bp-ad__name { font-weight: 700; font-size: 26px; line-height: 28px; letter-spacing: 0.08em; }
.bp-ad__line { font: 400 14px/18px "Inter", sans-serif; color: #D6C6A5; }
.bp-ad__cta { margin-left: auto; flex: none; padding: 8px 14px; border-radius: 6px; background: #D9662B; color: #1C1B19; font-weight: 700; font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase; }
.ad-250 .bp-ad { flex-direction: column; justify-content: center; text-align: center; gap: 10px; }
.ad-250 .bp-ad__mark { width: 80px; height: 80px; }
.ad-250 .bp-ad__text { align-items: center; }
.ad-250 .bp-ad__cta { margin-left: 0; }
@media (max-width: 480px) {
  .ad-100 .bp-ad { gap: 10px; padding: 0 12px; }
  .ad-100 .bp-ad__mark { width: 40px; height: 40px; }
  .ad-100 .bp-ad__name { font-size: 20px; line-height: 22px; }
  .ad-100 .bp-ad__line { font-size: 12px; line-height: 15px; }
  .ad-100 .bp-ad__cta { padding: 6px 10px; font-size: 13px; }
}

/* Main column */
main { padding-top: 28px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 28px; }
.intro { display: flex; flex-direction: column; gap: 10px; }
.intro.tight { gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.prose { display: flex; flex-direction: column; gap: 14px; }
.prose p { margin: 0; }
.prose h2 { margin-top: 0; }
.info h2 { margin-top: 12px; }
.info ul { margin: 0; padding-left: 20px; }
.crumbs { margin-bottom: -4px; }

/* Buttons (10b §14.1) */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; padding: 0 24px; border-radius: 8px; font: 600 16px/1 "Inter", system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.btn.pri { background: var(--brand-heart); color: var(--brand-on-heart); border: 2px solid var(--brand-heart); }
.btn.pri:hover { background: var(--brand-heart-hover); border-color: var(--brand-heart-hover); color: var(--brand-on-heart); }
.btn.again { background: transparent; color: var(--brand-heart); border: 2px solid var(--brand-heart); }
.btn.again:hover { border-color: var(--brand-heart-hover); color: var(--brand-heart-hover); }
.btn.ghost { background: transparent; color: var(--text-primary); border: 2px solid var(--text-muted); }
.btn.ghost:hover { border-color: var(--text-primary); color: var(--text-primary); }

/* Form */
.play { display: flex; flex-direction: column; gap: 12px; }
.field { width: 100%; min-height: 56px; padding: 0 16px; border-radius: 8px; border: 2px solid var(--border-solid); background: var(--bg-surface); color: var(--text-primary); font: 400 18px/1 "Inter", system-ui, sans-serif; }
.field::placeholder { color: var(--text-muted); }
.field:focus { outline: none; border-color: var(--brand-heart); }
.help { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.help.err { color: var(--text-primary); }

/* Game cards (home) */
.game { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 12px; background: var(--bg-surface); border: 1px solid var(--border-solid); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.7), 0 4px 6px -4px rgba(239, 68, 68, 0.1); text-decoration: none; color: var(--text-primary); }
.game.featured { padding: 24px; gap: 12px; border-color: var(--brand-heart); box-shadow: 0 0 12px var(--brand-heart-glow); }
a.game:hover { color: var(--text-primary); box-shadow: 0 0 16px rgba(239, 68, 68, 0.35); }
.game.featured .btn { margin-top: 4px; }
.game.small { padding: 16px; }
.game-title { font: 700 28px/1.15 "Bricolage Grotesque", "Inter", sans-serif; }
.game-title.sm { font-size: 18px; line-height: 1.25; }

/* Lists */
.grid2 { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.grid2 li { min-width: 0; }
.list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tile { display: flex; align-items: center; min-height: 56px; height: 100%; padding: 8px 12px; border-radius: 12px; background: var(--bg-surface); border: 1px solid var(--border-solid); color: var(--text-primary); text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 600; }
.tile:hover { color: var(--text-primary); border-color: var(--brand-heart); }
.tile.two { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 48px; padding: 12px 16px; font-size: 16px; line-height: 1.5; }
.tile.two .sub { font-weight: 400; }
.openings { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 9999px; border: 1px solid var(--border-solid); background: var(--bg-surface); color: var(--text-primary); text-decoration: none; font-size: 14px; }
a.chip:hover { color: var(--text-primary); border-color: var(--brand-heart); }
.card .chip { padding: 0 14px; background: transparent; }
.chip.off { color: var(--text-secondary); }

/* Casting card (10b §14.5) */
.result { display: flex; flex-direction: column; gap: 16px; }
.card { position: relative; background: var(--bg-surface); border: 1px solid var(--border-solid); border-radius: 12px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.7), 0 4px 6px -4px rgba(239, 68, 68, 0.1); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.card.glow { border-color: var(--brand-heart); box-shadow: 0 0 12px var(--brand-heart-glow), 0 10px 15px -3px rgba(0, 0, 0, 0.7); }
.card p { margin: 0; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pill { font: 600 12px/16px "Inter", sans-serif; letter-spacing: 0.04em; color: var(--metric-surge); border: 1px solid var(--metric-surge); border-radius: 9999px; padding: 2px 10px; }
.card-head { display: flex; flex-direction: column; gap: 4px; }
.card-head.tight { gap: 2px; }
.who { font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.role { margin: 0; font: 800 34px/1.05 "Syne", sans-serif; }
.series { font: 700 18px/1.25 "Bricolage Grotesque", "Inter", sans-serif; }
dl.cast { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: 14px; line-height: 20px; }
dl.cast dt { color: var(--text-secondary); font: 600 12px/20px "Inter", sans-serif; letter-spacing: 0.04em; }
dl.cast dd { margin: 0; }
.next { border-top: 1px solid var(--border-solid); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.hook { margin: 0; font: 700 18px/1.3 "Bricolage Grotesque", "Inter", sans-serif; color: var(--brand-heart); }
.role-link { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; }
.beat { margin: 0; padding: 16px; border-radius: 12px; background: var(--bg-surface); border: 1px solid var(--border-solid); }
.beat .label { display: block; color: var(--metric-surge); margin-bottom: 4px; }
.reveal { animation: zoomcut 200ms ease-out; }
@keyframes zoomcut { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } }

/* Disclaimer block */
.notes { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--border-solid); }
.notes p { margin: 0; }

/* Footer */
footer { border-top: 1px solid var(--border-solid); background: var(--bg-canvas); }
footer .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 14px; }
footer .copy { color: var(--text-muted); }
footer nav { display: flex; gap: 16px; }
footer a { min-height: 44px; display: inline-flex; align-items: center; }

/* ---- games-v2: the cast and the five games ---- */
svg.pt { display: block; width: 100%; height: auto; border-radius: 12px; }
img.pt { display: block; width: 100%; height: auto; aspect-ratio: 120 / 150; object-fit: cover; border-radius: 12px; background: #090a0f; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.center { text-align: center; }
.btn.sm { min-height: 48px; padding: 0 12px; font-size: 14px; }
.btn:disabled { opacity: 0.45; cursor: default; }

/* Intros with a portrait */
.intro.with-face { flex-direction: row; align-items: center; gap: 16px; }
.intro-face { flex: 0 0 96px; }
.intro-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.intro-text .display { font-size: 34px; overflow-wrap: anywhere; }
@media (max-width: 380px) {
  .display { font-size: 32px; }
  .intro-face { flex-basis: 64px; }
  .intro-text .display { font-size: 25px; }
  .intro.with-face.long { flex-direction: column; align-items: flex-start; gap: 10px; }
  .intro.with-face.long .intro-face { flex: 0 0 auto; width: 72px; }
}

/* Cast tiles */
.tile.cast-tile { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; text-align: center; }
.tile-face { display: block; }
.role-pick { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 8px 12px 8px 8px; border-radius: 12px; background: var(--bg-surface); border: 1px solid var(--border-solid); color: var(--text-primary); text-decoration: none; }
.role-pick:hover { color: var(--text-primary); border-color: var(--brand-heart); }
.role-pick .tile-face { flex: 0 0 56px; }
.rp-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rp-role { font-weight: 600; }
.tile.locked { color: var(--text-muted); border-style: dashed; }

/* Home game cards */
.game.with-art { gap: 6px; }
.game-art { display: block; width: 72px; }
.featured-art { display: flex; justify-content: center; align-items: flex-end; gap: 0; margin-bottom: 4px; }
.fa { display: block; width: 92px; }
.fa0, .fa2 { width: 76px; opacity: 0.85; }
.fa0 { transform: rotate(-6deg) translateX(10px); }
.fa2 { transform: rotate(6deg) translateX(-10px); }
.fa1 { position: relative; z-index: 1; width: 112px; }

/* Plot Twist */
.stage { display: flex; flex-direction: column; gap: 14px; }
.pt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.meters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.meter { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--text-secondary); }
.m-icon { font: 700 18px/1 "Bricolage Grotesque", sans-serif; color: var(--text-primary); }
.bar { width: 100%; height: 8px; border-radius: 9999px; background: var(--bg-surface-elevated); overflow: hidden; }
.bar i { display: block; height: 100%; width: 50%; background: var(--text-primary); border-radius: 9999px; transition: width 250ms ease-out; }
.meter.warn .bar i { background: var(--brand-heart); }
.meter.warn .m-icon { color: var(--brand-heart); }
.pt-goal { margin: 0; font-size: 13px; color: var(--text-secondary); text-align: center; }
.pt-recap { text-align: left; border: 1px solid var(--border-solid); background: var(--bg-surface); border-radius: 12px; padding: 12px 14px; }
.pt-recap ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; }
.ch-side { display: flex; flex-direction: column; gap: 6px; }
.ch-chips { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ch-chips.gained { justify-content: flex-start; margin-top: 8px; }
.ch-chip { padding: 4px 10px; border-radius: 9999px; border: 1px solid var(--border-solid); background: var(--bg-surface-elevated); font-size: 13px; color: var(--text-primary); }
.ch-chip b { font-weight: 700; }
.ch-chip.ally b, .ch-chip.lead b { color: var(--metric-surge); }
.ch-chip.enemy { border-color: var(--brand-heart); }
.ch-chip.enemy b { color: var(--brand-heart); }
.scene { touch-action: pan-y; user-select: none; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px; border-radius: 16px; background: var(--bg-surface); border: 1px solid var(--brand-heart); box-shadow: 0 0 12px var(--brand-heart-glow); text-align: center; transition: transform 120ms ease-out; cursor: grab; }
.scene:focus { outline: none; }
.scene-face { width: 140px; }
.scene-text { margin: 0; font: 700 20px/1.3 "Bricolage Grotesque", "Inter", sans-serif; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.choice { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 88px; padding: 12px; border-radius: 12px; background: var(--bg-surface-elevated); border: 2px solid var(--border-solid); color: var(--text-primary); font: 600 15px/1.3 "Inter", system-ui, sans-serif; text-align: left; cursor: pointer; }
.choice.right { align-items: flex-end; text-align: right; }
.choice:hover { border-color: var(--brand-heart); }
.choice-text { flex: 1; }
.dots { display: flex; gap: 4px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--text-muted); }
.dots i.on { background: var(--metric-surge); border-color: var(--metric-surge); }
.poster-wrap { display: flex; justify-content: center; }
.poster { position: relative; width: 200px; margin: 0 auto; }
.poster-face .pt { border: 3px solid var(--brand-heart); border-radius: 16px; box-sizing: content-box; width: calc(100% - 6px); }
.poster.renew .poster-face .pt { border-color: var(--metric-surge); }
.stamp { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%) rotate(-8deg); padding: 4px 12px; border: 3px solid var(--brand-heart); border-radius: 6px; background: rgba(9, 10, 15, 0.85); color: var(--brand-heart); font: 800 22px/1.1 "Syne", sans-serif; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.poster.renew .stamp { border-color: var(--metric-surge); color: var(--metric-surge); }
.result.end { text-align: center; align-items: stretch; }
.verdict { font: 800 30px/1.1 "Syne", sans-serif; overflow-wrap: anywhere; }
.pt-cause { margin: 0; font-weight: 700; color: var(--brand-heart); }
.found { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.found i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--text-muted); }
.found i.got { background: var(--brand-heart); border-color: var(--brand-heart); }
.found i.got.renew { background: var(--metric-surge); border-color: var(--metric-surge); }

/* Bad Lucy's reaction */
.lucy-says { margin: 0; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--bg-surface); border: 1px solid var(--border-solid); text-align: left; }
.lucy-face { flex: 0 0 56px; }
.lucy-says figcaption { display: flex; flex-direction: column; gap: 2px; }
.lucy-line { font: 700 17px/1.3 "Bricolage Grotesque", "Inter", sans-serif; color: var(--brand-heart); }

/* Trope Connections */
.daily { display: flex; flex-direction: column; gap: 12px; }
.cx-lives { display: inline-flex; gap: 4px; vertical-align: middle; margin-left: 4px; }
.cx-lives i { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-surface-elevated); }
.cx-lives i.on { background: var(--brand-heart); }
.cx-solved { display: flex; flex-direction: column; gap: 6px; }
.cx-solved:empty { display: none; }
.cx-group { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; color: #090A0F; text-align: center; }
.cx-group.lv1 { background: #F5D061; }
.cx-group.lv2 { background: #7ED38C; }
.cx-group.lv3 { background: #7FB2F0; }
.cx-group.lv4 { background: #C59AF0; }
.cx-group-name { color: #090A0F; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 13px; min-height: 28px; display: inline-flex; align-items: center; justify-content: center; }
.cx-group-name:hover { color: #090A0F; }
.cx-group-items { font-size: 13px; line-height: 18px; }
.cx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.cx-tile { min-height: 72px; padding: 6px 4px; border-radius: 8px; background: var(--bg-surface-elevated); border: 2px solid var(--border-solid); color: var(--text-primary); font: 600 12px/1.25 "Inter", system-ui, sans-serif; overflow-wrap: anywhere; hyphens: auto; cursor: pointer; }
.cx-tile[aria-pressed="true"] { background: var(--text-primary); color: var(--bg-canvas); border-color: var(--text-primary); }
.cx-controls { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.cx-msg { margin: 0; min-height: 20px; text-align: center; font-weight: 600; color: var(--metric-surge); }
.cx-share { margin: 0; font: 22px/1.25 system-ui, sans-serif; letter-spacing: 2px; white-space: pre; }

/* Guess the Twist */
.gt-title { display: flex; align-items: center; gap: 12px; }
.gt-cast { display: flex; flex: 0 0 auto; }
.gt-face { width: 52px; }
.gt-face + .gt-face { margin-left: -12px; }
.gt-title .series { margin: 0; }
.gt-lines { margin: 0; padding: 0 0 0 22px; display: flex; flex-direction: column; gap: 10px; }
.gt-lines li { padding: 10px 12px; border-radius: 10px; background: var(--bg-surface); border: 1px solid var(--border-solid); }
.gt-lines li.new { border-color: var(--brand-heart); }
.gt-options { display: flex; flex-direction: column; gap: 8px; }
.gt-opt { min-height: 52px; padding: 10px 14px; border-radius: 10px; background: var(--bg-surface-elevated); border: 2px solid var(--border-solid); color: var(--text-primary); font: 600 15px/1.3 "Inter", system-ui, sans-serif; text-align: left; cursor: pointer; }
.gt-opt:hover:not(:disabled) { border-color: var(--brand-heart); }
.gt-opt.struck { text-decoration: line-through; color: var(--text-muted); }
.gt-opt.right { border-color: #7ED38C; color: var(--text-primary); opacity: 1; }

/* Drama Alchemy */
.alchemy { display: flex; flex-direction: column; gap: 12px; }
.al-result { min-height: 96px; padding: 14px; border-radius: 12px; background: var(--bg-surface); border: 1px solid var(--border-solid); display: flex; flex-direction: column; gap: 8px; }
.al-mix { display: flex; flex-direction: column; gap: 8px; }
.al-mix p { margin: 0; }
.al-out { font: 700 22px/1.2 "Bricolage Grotesque", "Inter", sans-serif; }
.al-plot { display: flex; gap: 12px; align-items: center; }
.al-face { flex: 0 0 72px; }
.al-plot .series { margin: 0; }
.al-tray { display: flex; flex-wrap: wrap; gap: 8px; }
.al-item { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px; border-radius: 9999px; background: var(--bg-surface-elevated); border: 2px solid var(--border-solid); color: var(--text-primary); font: 600 14px/1.2 "Inter", system-ui, sans-serif; cursor: pointer; }
.al-item.plot { border-color: rgba(245, 158, 11, 0.5); }
.al-item[aria-pressed="true"] { border-color: var(--brand-heart); background: rgba(239, 68, 68, 0.15); }
.al-emoji { font-size: 18px; }
.al-reset { align-self: flex-start; width: auto; }

/* Cast Your Group Chat */
.gc-names { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gc-poster { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 14px; border-radius: 16px; background: var(--bg-surface); border: 1px solid var(--brand-heart); box-shadow: 0 0 12px var(--brand-heart-glow); text-align: center; }
.gc-title { font: 800 28px/1.1 "Syne", sans-serif; overflow-wrap: anywhere; }
.gc-cast { margin: 10px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; width: 100%; }
.gc-cast li { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.gc-face { width: 96px; margin-bottom: 4px; }
.gc-name { font-weight: 700; overflow-wrap: anywhere; }
.gc-role { font: 700 15px/1.2 "Bricolage Grotesque", "Inter", sans-serif; color: var(--brand-heart); }
.gc-line { font-size: 13px; line-height: 18px; color: var(--text-secondary); }

@media (prefers-reduced-motion: reduce) {
  .scene, .bar i { transition: none; }
}

/* BLY-04: Cast Yourself audition in Plot Twist. Hook first, then the name box. */
.audition-hook { display: flex; flex-direction: column; gap: 16px; padding: 20px 16px; border-radius: 16px; background: var(--bg-surface); border: 2px solid var(--brand-heart); }
.hook-line { margin: 0; font: 700 20px/1.35 "Bricolage Grotesque", "Inter", sans-serif; color: var(--text-primary); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: step; }
.steps li { display: flex; flex-direction: column; gap: 2px; padding-left: 36px; position: relative; font-size: 15px; line-height: 1.4; color: var(--text-secondary); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 9999px; background: var(--brand-heart); color: var(--text-primary); font: 700 14px/26px "Inter", sans-serif; text-align: center; }
.audition-hook .play { margin: 0; }
.audition .q { margin: 0; font: 800 24px/1.2 "Syne", sans-serif; overflow-wrap: anywhere; }
.options { display: grid; gap: 10px; }
.option { min-height: 56px; padding: 14px 16px; border-radius: 12px; background: var(--bg-surface-elevated); border: 2px solid var(--border-solid); color: var(--text-primary); font: 600 16px/1.35 "Inter", system-ui, sans-serif; text-align: left; cursor: pointer; }
.option:hover { border-color: var(--brand-heart); }
.result.got-part { text-align: center; align-items: stretch; }
.got-part .hook { text-align: center; }
.got-part .lede { text-align: left; }
.note-reveal { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--bg-surface-elevated); border-left: 4px solid var(--brand-heart); text-align: left; }
.note-reveal.hit { border-left-color: var(--metric-surge); }
.note-reveal.hit .label { color: var(--metric-surge); }
.note-text { margin: 0; font: 600 16px/1.4 "Inter", sans-serif; color: var(--text-primary); }
.audition .pill { align-self: flex-start; }

/* ---- quizzes: The Top Ten and Know Your Microdramas (existing 10b tokens only; Brand to review) ---- */
.qz-card { display: flex; flex-direction: column; gap: 14px; }
.qz-bar { height: 4px; border-radius: 9999px; background: var(--bg-surface-elevated); overflow: hidden; }
.qz-bar span { display: block; height: 100%; background: var(--brand-heart); transition: width 0.3s ease; }
.qz-q { margin: 0; font: 700 22px/1.25 "Bricolage Grotesque", "Inter", sans-serif; color: var(--text-primary); }
.gt-opt.wrong { border-color: var(--brand-heart); color: var(--text-muted); text-decoration: line-through; }
.gt-opt:disabled { cursor: default; }
.qz-head { margin: 0; font: 700 16px/1.35 "Inter", sans-serif; color: var(--text-primary); }
.note-reveal p { margin: 0; }
.qz-src a { color: var(--text-secondary); }
.qz-src a:hover { color: var(--text-primary); }
.qz-score { margin: 0; }
.qz-break { align-items: flex-start; padding: 20px; border-radius: 12px; background: var(--bg-surface); border: 1px solid var(--metric-surge); }
.qz-sources summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.qz-sources ol { margin: 8px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
@media (prefers-reduced-motion: reduce) { .qz-bar span { transition: none; } }
.pt-quick { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .pt-quick { display: grid; grid-template-columns: 1fr 1fr; } .pt-quick .sub { grid-column: 1 / -1; } }

/* Explainer pages (/what-is-a-microdrama/, /microdrama-statistics/): fact list, FAQ, numbered sources. */
sup { font-size: 11px; line-height: 0; margin-left: 2px; }
sup a { text-decoration: none; }
.facts, .faq { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.facts > div, .faq > div { padding: 14px 16px; border-radius: 12px; background: var(--bg-surface); border: 1px solid var(--border-solid); display: flex; flex-direction: column; gap: 4px; }
.facts dd, .faq dd { margin: 0; }
.faq dt { font-weight: 600; }
.faq dd { color: var(--text-secondary); }
.guide-sources ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 20px; color: var(--text-secondary); }
.guide-sources li:target { color: var(--text-primary); }
