/* ==========================================================================
   The Brooklyn Project: games.css
   Loaded only on the game pages, after styles.css. The board, the screen,
   the buttons and the confetti come from styles.css (section 13); this file
   adds what each game needs on top.

   1. Game page        3. Brain Builder        5. Lifeline
   2. Calm Corner      4. Friendship Fix-It    6. Print
   ========================================================================== */

/* 1. Game page ------------------------------------------------------------- */
.game-hero { padding: 116px 0 clamp(34px, 4vw, 52px); }
.game-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin-bottom: .2em; }
.game-hero .crumbs { margin-bottom: 10px; }
.game-hero .tags { margin: 0; }
.game-stage { padding-top: clamp(40px, 5vw, 64px); }
.game-board.b-pink { --pc: var(--pink); }
.game-board.b-sky { --pc: var(--sky); }
.game-board.b-tomato { --pc: var(--tomato); }
.game-board.b-ink { --pc: var(--ink); }
.game-board.b-ink .board-title { color: #F1EDE3; }
.screen { scroll-margin-top: 96px; }
.screen [data-autofocus]:focus { outline: none; }
.screen .ask { text-wrap: balance; }
h2.ask { font-weight: 400; line-height: 1.2; letter-spacing: 0; }
.screen .checklist { margin-bottom: 0; }

/* a dark screen for the oldest players */
.screen.dark { background: var(--grain), #182C46; color: #E9E6DD; }
.screen.dark .game-title, .screen.dark h2 { color: #F7F5EE; }
.screen.dark .game-title em { color: var(--sun); }
.screen.dark .lede { color: rgba(233,230,221,.86); }
.screen.dark .eyebrow, .screen.dark .hud .deck-name { color: rgba(233,230,221,.74); }
.screen.dark .how { color: rgba(233,230,221,.62); }
.screen.dark .pips i { background: rgba(233,230,221,.2); }
.screen.dark .pips i.done { background: var(--grass-light); }
.screen.dark .pips i.now { background: var(--sun); }
.screen.dark :focus-visible { outline-color: var(--sun); }

/* the other games, under the one being played */
.more-games .games { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.more-games .game-art { aspect-ratio: 4 / 3; }
.more-games .game h3 { font-size: 1.3rem; }
.more-games .game p { font-size: .95rem; }
@media (max-width: 960px) { .more-games .games { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .more-games .games { grid-template-columns: 1fr; } }

/* 2. Calm Corner ----------------------------------------------------------- */
.cc-start-art { display: flex; align-items: flex-end; gap: 14px; height: 92px; margin-bottom: 18px; }
.cc-start-art svg { height: 100%; width: auto; overflow: visible; }
.cc-start-art svg:nth-child(2) { height: 70%; }
.cc-stage, .cc-final { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(18px, 3vw, 36px); align-items: start; flex: 1; }
.cc-room { border-radius: 6px; overflow: hidden; box-shadow: 0 2px 2px rgba(19,36,58,.12), 0 10px 18px rgba(19,36,58,.14); background: #DDEFF8; }
.corner-svg { display: block; width: 100%; height: auto; }
.cc-opts { display: grid; gap: 10px; }
.cc-opt {
  position: relative; isolation: isolate; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  font: inherit; font-family: var(--font-display); font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.15; color: var(--ink);
  background: none; border: 0; padding: 10px 16px 10px 10px; transition: transform .12s ease;
}
.cc-opt::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain), var(--white); border: 2.5px solid rgba(19,36,58,.2); border-radius: 4px; transition: border-color .15s, background-color .15s; }
.cc-opt:hover { transform: translateY(-2px); }
.cc-opt:hover::before { border-color: var(--ink); }
.cc-opt.is-on::before { background: var(--grain), var(--grass-pale); border-color: var(--grass-deep); }
.cc-ico { flex: none; width: 62px; height: 54px; display: grid; place-items: center; }
.cc-ico svg { display: block; width: 62px; height: 54px; overflow: hidden; }
#cc-fb .btn { margin-top: 2px; }
.cc-side .ask { margin-bottom: 12px; }

/* pieces drop into the room; a few of them move a little once they're there */
.corner-svg .drop { animation: cc-drop .7s cubic-bezier(.3, 1.5, .5, 1) both; transform-box: fill-box; transform-origin: 50% 100%; }
@keyframes cc-drop { from { transform: translateY(-46px) rotate(-5deg); opacity: 0; } 60% { opacity: 1; } }
.tw circle { animation: cc-twinkle 2.4s ease-in-out infinite; }
.tw circle:nth-child(2n) { animation-delay: -.8s; }
.tw circle:nth-child(3n) { animation-delay: -1.5s; }
@keyframes cc-twinkle { 50% { opacity: .35; } }
.drift { animation: cc-drift 9s ease-in-out infinite alternate; }
@keyframes cc-drift { to { transform: translateX(14px); } }
.float { animation: cc-float 3.2s ease-in-out infinite; }
.float.f2 { animation-delay: -1.4s; }
@keyframes cc-float { 50% { transform: translateY(-7px); } }
.glow { animation: cc-glow 3.6s ease-in-out infinite; }
@keyframes cc-glow { 50% { opacity: .34; } }

.breath { display: grid; place-items: center; height: 190px; margin: 6px 0 4px; }
.breath-ball { width: 150px; height: 150px; border-radius: 50%; background: var(--grain), var(--sky); box-shadow: 0 0 0 14px rgba(143,203,234,.28), 0 0 0 30px rgba(143,203,234,.14); transform: scale(.5); transition: transform 4s ease-in-out; }
.breath-ball.is-in { transform: scale(1); }
.breath-word { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 1.9rem); text-align: center; margin: 0 0 16px; min-height: 1.3em; }
.cc-breathe .btn-row { justify-content: center; }
.cc-breathe .say-again { margin-top: 0; }
.cc-final { margin: 6px 0 22px; }
.cc-list, .cc-when { margin: 0 0 18px; padding: 0; list-style: none; }
.cc-list { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-list li { background: var(--sun-pale); border-radius: 3px; padding: 5px 11px; font-weight: 700; font-size: .98rem; }
.cc-when li { position: relative; padding-left: 22px; margin-bottom: 5px; }
.cc-when li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--pink); transform: rotate(-8deg); }
@media (max-width: 760px) {
  .cc-stage, .cc-final { grid-template-columns: 1fr; }
  .cc-ico, .cc-ico svg { width: 52px; height: 46px; }
  .breath { height: 150px; }
  .breath-ball { width: 120px; height: 120px; }
}

/* 3. Brain Builder --------------------------------------------------------- */
.bb-start .peek svg { width: clamp(44px, 8vw, 64px); }
.bb-hub, .bb-end { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(18px, 4vw, 44px); align-items: center; flex: 1; }
.bb-end { align-items: center; margin-bottom: 22px; }
.bb-picks { display: grid; gap: 12px; margin-top: 16px; }
.bb-pick {
  position: relative; isolation: isolate; display: flex; align-items: center; gap: 16px; text-align: left; cursor: pointer;
  font: inherit; color: var(--ink); background: none; border: 0; padding: 12px 18px 12px 12px; transition: transform .12s ease;
}
.bb-pick::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain), var(--white); border: 2.5px solid rgba(19,36,58,.2); border-radius: 4px; transition: border-color .15s; }
.bb-pick:hover { transform: translateY(-2px); }
.bb-pick:hover::before { border-color: var(--ink); }
.bb-pick b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.15; }
.bb-pick small { display: block; font-size: .95rem; font-weight: 700; color: var(--ink-2); margin-top: 2px; }
.bb-pick.is-done::before { background: var(--grain), var(--grass-pale); border-color: var(--grass-deep); }
.bb-letter { flex: none; width: 54px; height: 54px; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.7rem; line-height: 1; border-radius: 4px; transform: rotate(-3deg); box-shadow: 0 3px 5px rgba(19,36,58,.2); }
.bb-a { background: var(--grain), var(--sky); }
.bb-b { background: var(--grain), var(--sun); }
.bb-c { background: var(--grain), var(--tomato); color: var(--white); }
.bb-sizes { max-width: 440px; }
.bb-tower-wrap { justify-self: center; width: min(100%, 260px); }
.bb-tower { display: block; width: 100%; height: auto; overflow: visible; }

.bb-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 22px; padding: 14px; background: var(--paper-2); border-radius: 6px; }
.bb-tile { flex: 0 1 76px; min-width: 40px; aspect-ratio: 1; display: grid; place-items: center; }
.bb-tile svg { width: 100%; height: 100%; overflow: visible; }
.bb-q { font-family: var(--font-display); font-size: 2rem; color: var(--ink-3); border: 3px dashed rgba(19,36,58,.35); border-radius: 6px; }
.bb-landed svg { animation: bb-land .5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes bb-land { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }
.bb-opts { display: flex; flex-wrap: wrap; gap: 12px; }
.bb-odd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 640px; margin-top: 4px; }
.bb-opt {
  position: relative; isolation: isolate; width: 104px; aspect-ratio: 1; padding: 12px; cursor: pointer; background: none; border: 0; transition: transform .12s ease;
}
.bb-opt.bb-big { width: auto; }
.bb-opt::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain), var(--white); border: 2.5px solid rgba(19,36,58,.2); border-radius: 6px; transition: border-color .15s; }
.bb-opt svg { width: 100%; height: 100%; display: block; overflow: visible; }
.bb-opt:hover:not(:disabled) { transform: translateY(-3px); }
.bb-opt:hover:not(:disabled)::before { border-color: var(--ink); }
.bb-opt:disabled { cursor: default; }
.bb-opt.is-nope { opacity: .35; animation: shake .35s ease; }
.bb-opt.is-yes::before { background: var(--grain), var(--grass-pale); border-color: var(--grass-deep); }
#bb-fb .btn { margin-top: 2px; }
.bb-turns { margin: 14px 0 0; font-weight: 700; color: var(--ink-2); }

.bb-mem { display: grid; gap: 10px; margin-top: 4px; max-width: 560px; }
.bb-mem.n6 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 400px; }
.bb-mem.n12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bb-card { aspect-ratio: 1; padding: 0; border: 0; background: none; cursor: pointer; perspective: 600px; }
.bb-card-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.3, 1.2, .5, 1); }
.bb-card.is-up .bb-card-in { transform: rotateY(180deg); }
.bb-back, .bb-face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 6px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 2px 3px rgba(19,36,58,.16), 0 6px 10px rgba(19,36,58,.12); }
.bb-back { background: var(--grain), var(--sky); font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 2rem); color: rgba(19,36,58,.5); }
.bb-face { background: var(--grain), var(--white); transform: rotateY(180deg); padding: 14%; }
.bb-face svg { width: 100%; height: 100%; overflow: visible; }
.bb-card:hover:not(.is-up) .bb-back { background: var(--grain), var(--sky-deep); color: #fff; }
.bb-card.is-found .bb-face { background: var(--grain), var(--grass-pale); box-shadow: 0 0 0 3px var(--grass-deep); }
.bb-card.is-found { cursor: default; }
@media (max-width: 760px) {
  .bb-hub, .bb-end { grid-template-columns: 1fr; }
  .bb-tower-wrap { width: min(60%, 200px); order: -1; }
  .bb-opt { width: 88px; padding: 10px; }
  .bb-odd { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 320px; }
  .bb-tile { flex-basis: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .bb-card-in { transform: none !important; }
  .bb-card.is-up .bb-back { visibility: hidden; }
  .bb-card:not(.is-up) .bb-face { visibility: hidden; }
  .bb-face { transform: none; }
}

/* 4. Friendship Fix-It ----------------------------------------------------- */
.fx-start-art { display: grid; gap: 8px; max-width: 250px; margin-bottom: 20px; }
.fx-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0; padding: 0; counter-reset: fx; }
.fx-steps li { counter-increment: fx; display: flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 700; color: var(--ink-3); padding: 4px 10px 4px 5px; border-radius: 99px; background: var(--paper-2); }
.fx-steps li::before { content: counter(fx); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(19,36,58,.14); font-size: .8rem; color: var(--ink-2); }
.fx-steps li.now { background: var(--sun); color: var(--ink); }
.fx-steps li.now::before { background: var(--ink); color: #fff; }
.fx-steps li.done { color: var(--grass-dark); background: var(--grass-pale); }
.fx-steps li.done::before { content: "\2713"; background: var(--grass-deep); color: #fff; }

.fx-stage { display: grid; grid-template-columns: minmax(0, 310px) minmax(0, 1fr); gap: clamp(18px, 3.4vw, 40px); align-items: start; flex: 1; }
.phone { background: #0B1524; border-radius: 26px; padding: 9px; box-shadow: 0 3px 4px rgba(19,36,58,.2), 0 16px 26px rgba(19,36,58,.22); }
.phone-bar { display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; text-align: center; color: #F1EDE3; font-size: .92rem; padding: 6px 8px 9px; }
.phone-bar span { font-size: 1.4rem; line-height: 1; opacity: .7; }
.chat { background: #F2F4F7; border-radius: 18px; padding: 14px 12px; display: flex; flex-direction: column; gap: 7px; min-height: 250px; max-height: 460px; overflow-y: auto; scroll-behavior: smooth; }
.phone.is-small .chat { min-height: 0; max-height: 250px; }
.chat-sys { margin: 4px auto; max-width: 28ch; text-align: center; font-size: .86rem; line-height: 1.35; color: var(--ink-3); font-style: italic; text-wrap: balance; }
.msg { display: grid; gap: 2px; max-width: 86%; font-size: 1rem; line-height: 1.3; }
.msg > span { display: block; padding: 8px 12px 9px; border-radius: 17px; overflow-wrap: anywhere; }
.msg.in { justify-self: start; align-self: flex-start; }
.msg.in > span { background: #fff; border-bottom-left-radius: 5px; box-shadow: 0 1px 1px rgba(19,36,58,.08); }
.msg.out { justify-self: end; align-self: flex-end; }
.msg.out > span { background: var(--sky-deep); color: #fff; border-bottom-right-radius: 5px; }
.msg small { display: flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 700; color: var(--ink-3); padding-left: 4px; }
.msg small i { width: 8px; height: 8px; border-radius: 50%; }
.msg .shot { display: grid; gap: 5px; width: 170px; padding: 12px; background: #fff; border: 2px solid #D4DAE2; border-radius: 12px; }
.msg .shot i { display: block; height: 9px; border-radius: 5px; background: #C5D9E8; width: 82%; margin-left: auto; }
.msg .shot i:nth-child(2) { width: 58%; }
.msg .shot i:nth-child(3) { width: 70%; }
.msg .shot em { font-size: .78rem; font-style: normal; font-weight: 700; color: var(--ink-3); margin-top: 3px; }
.chat > * { animation: fx-in .28s ease-out both; }
.chat > .pending { display: none; }
.chat > [data-old] { animation: none; opacity: .72; }
@keyframes fx-in { from { transform: translateY(8px) scale(.96); opacity: 0; } }

.fx-hint { color: var(--ink-2); margin: -4px 0 16px; }
.fx-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 14px 0 22px; }
.fx-pick {
  position: relative; isolation: isolate; display: grid; align-content: start; gap: 4px; text-align: left; cursor: pointer;
  font: inherit; color: var(--ink); background: none; border: 0; padding: 18px 18px 20px; min-height: 150px; transition: transform .12s ease;
}
.fx-pick::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain), var(--sun-pale); filter: url(#rough) var(--shadow); }
.fx-pick:nth-child(2)::before { background: var(--grain), var(--tomato-pale); transform: rotate(.8deg); }
.fx-pick:nth-child(3)::before { background: var(--grain), var(--sky-pale); transform: rotate(-.6deg); }
.fx-pick:hover { transform: translateY(-3px); }
.fx-pick:hover::before { filter: url(#rough) var(--shadow-lift); }
.fx-pick small { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.fx-pick b { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.fx-pick span { font-size: 1rem; color: var(--ink-2); }
.fx-pick.is-done small { color: var(--grass-dark); }

.fx-sort { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.fx-q { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; padding: 11px 14px; border-radius: 6px; background: var(--paper-2); border-left: 5px solid rgba(19,36,58,.18); }
.fx-q > p:first-child { margin: 0; font-weight: 700; }
.fx-q-btns { display: flex; gap: 6px; }
.fx-q-btns button { font: inherit; font-size: .92rem; font-weight: 700; color: var(--ink); cursor: pointer; background: var(--white); border: 2px solid rgba(19,36,58,.25); border-radius: 99px; padding: 6px 13px; white-space: nowrap; }
.fx-q-btns button:hover:not(:disabled) { border-color: var(--ink); }
.fx-q-btns button.is-nope { opacity: .35; animation: shake .35s ease; cursor: default; }
.fx-q-why { grid-column: 1 / -1; margin: 0; font-size: .95rem; color: var(--ink-2); }
.fx-q-why:empty { display: none; }
.fx-q.is-fact { border-left-color: var(--grass-deep); background: var(--grass-pale); }
.fx-q.is-guess { border-left-color: var(--sun-deep); background: var(--sun-pale); }
.fx-chip { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--white); }
.is-fact .fx-chip { color: var(--grass-dark); }
.is-guess .fx-chip { color: #8A5A00; }

.fx-moves { display: grid; gap: 10px; margin-bottom: 18px; }
.fx-move {
  position: relative; isolation: isolate; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  font: inherit; font-weight: 700; line-height: 1.35; color: var(--ink); background: none; border: 0; padding: 13px 16px; transition: transform .12s ease;
}
.fx-move::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grain), var(--white); border: 2.5px solid rgba(19,36,58,.2); border-radius: 6px; transition: border-color .15s; }
.fx-move:hover { transform: translateY(-2px); }
.fx-move:hover::before { border-color: var(--ink); }
.fx-move small { flex: none; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.fx-move.was-tried::before { background: var(--paper-2); border-style: dashed; }
.fx-chosen { font-weight: 700; padding: 10px 14px; border-left: 5px solid var(--sky-deep); background: var(--sky-pale); border-radius: 0 6px 6px 0; margin: 0 0 16px; }
.fx-land { animation: pop .25s ease-out; }
.fx-note { display: grid; gap: 3px; padding: 14px 18px; border-radius: 6px; margin-bottom: 18px; }
.fx-note b { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; }
.fx-note.k-fix { background: var(--grass-pale); }
.fx-note.k-stall { background: var(--sun-pale); }
.fx-note.k-worse { background: var(--tomato-pale); }
.fx-then { margin-bottom: 4px; }
.fx-then .ask { margin-bottom: 10px; }
.fx-wrap .lede, [data-state="end"] .lede { max-width: 54ch; }
.fx-help { max-width: 60ch; padding: 12px 16px; background: var(--sky-pale); border-radius: 6px; font-size: 1rem; }
.fx-takes { list-style: none; counter-reset: tk; margin: 6px 0 22px; padding: 0; display: grid; gap: 10px; max-width: 620px; }
.fx-takes li { counter-increment: tk; display: grid; grid-template-columns: 40px 1fr; align-items: center; column-gap: 12px; padding: 12px 16px; background: var(--paper-2); border-radius: 6px; }
.fx-takes li::before { content: counter(tk); grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 4px; background: var(--grain), var(--tomato); font-family: var(--font-display); font-size: 1.4rem; transform: rotate(-4deg); }
.fx-takes b { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; line-height: 1.15; }
.fx-takes span { font-size: .9rem; font-weight: 700; color: var(--ink-3); }
@media (max-width: 820px) {
  .fx-stage { grid-template-columns: 1fr; }
  .phone { max-width: 360px; width: 100%; justify-self: center; }
  .phone.is-small .chat { max-height: 170px; }
  .fx-picks { grid-template-columns: 1fr; }
  .fx-pick { min-height: 0; }
}
@media (max-width: 520px) {
  .fx-q { grid-template-columns: 1fr; }
  .fx-steps li:not(.now) { padding-right: 5px; font-size: 0; gap: 0; }
}

/* 5. Lifeline -------------------------------------------------------------- */
.ll-start-art { width: 150px; margin-bottom: 8px; }
.ll-start-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.ll-hud { display: grid; grid-template-columns: minmax(150px, auto) 1fr 1fr; gap: 12px 26px; align-items: center; padding: 14px 18px; margin-bottom: 26px; border-radius: 6px; background: rgba(255,255,255,.07); border: 1.5px solid rgba(233,230,221,.16); }
.ll-money { display: grid; }
.ll-money span, .ll-meter span { font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(233,230,221,.7); }
.ll-money b { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 4vw, 2.5rem); line-height: 1.05; color: var(--sun); }
.ll-money small { font-size: .88rem; color: #F9B7A3; }
.ll-meter { display: grid; gap: 6px; }
.ll-bar { height: 12px; border-radius: 6px; background: rgba(233,230,221,.16); overflow: hidden; }
.ll-bar i { display: block; height: 100%; border-radius: 6px; background: var(--sky); transition: width .7s cubic-bezier(.3, 1, .4, 1); }
.ll-meter.p .ll-bar i { background: var(--tomato); }
.ll-beat { display: grid; gap: clamp(18px, 3vw, 36px); margin-bottom: 22px; }
.ll-beat.has-stub { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: start; }
.ll-title { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: .4em; }
.ll-beat p, .ll-result p { font-size: clamp(1.1rem, 1.7vw, 1.22rem); line-height: 1.55; max-width: 56ch; color: #E9E6DD; }
.ll-beat p.ll-fact, .ll-fact { font-size: .98rem; line-height: 1.5; color: rgba(233,230,221,.78); border-left: 4px solid var(--sun); padding-left: 14px; margin-top: 1.1em; }
.ll-stub { --pc: var(--white); display: grid; gap: 5px; padding: 18px 20px 20px; color: var(--ink); font-size: .98rem; max-width: 330px; justify-self: center; width: 100%; }
.ll-stub b { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; border-bottom: 2px dashed rgba(19,36,58,.25); padding-bottom: 6px; margin-bottom: 4px; }
.ll-stub span { display: flex; justify-content: space-between; gap: 14px; font-variant-numeric: tabular-nums; }
.ll-stub i { font-style: normal; color: var(--ink-2); }
.ll-stub em { font-style: normal; white-space: nowrap; }
.ll-stub .net { font-weight: 800; border-top: 2px solid var(--ink); padding-top: 6px; margin-top: 4px; }
.ll-stub .net i { color: var(--ink); }
.ll-choices { display: grid; gap: 10px; }
.ll-choice {
  font: inherit; font-weight: 700; font-size: 1.08rem; line-height: 1.35; text-align: left; cursor: pointer; color: #F7F5EE;
  background: rgba(255,255,255,.06); border: 2px solid rgba(233,230,221,.3); border-radius: 6px; padding: 14px 18px;
  transition: transform .12s ease, border-color .15s, background-color .15s;
}
.ll-choice:hover { transform: translateY(-2px); border-color: var(--sun); background: rgba(255,203,61,.1); }
.ll-result { animation: pop .25s ease-out; }
.ll-picked { font-weight: 700; color: var(--sun) !important; border-left: 4px solid var(--sun); padding-left: 14px; margin-bottom: 1em; }
.ll-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 26px; }
.ll-chip { font-size: .92rem; font-weight: 800; padding: 6px 13px; border-radius: 99px; background: rgba(233,230,221,.14); color: #E9E6DD; }
.ll-chip.up { background: #23604A; color: #D9F2DF; }
.ll-chip.down { background: #7A2F1E; color: #FFD9CF; }
.ll-notes { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 8px; max-width: 62ch; }
.ll-notes li { position: relative; padding-left: 24px; color: #E9E6DD; }
.ll-notes li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 11px; height: 11px; border-radius: 3px; background: var(--sun); transform: rotate(-8deg); }
[data-state="end"] .ll-hud { margin: 6px 0 22px; }
@media (max-width: 700px) {
  .ll-hud { grid-template-columns: 1fr 1fr; padding: 12px 14px; }
  .ll-money { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; }
  .ll-money small { grid-column: 1 / -1; }
  .ll-beat.has-stub { grid-template-columns: 1fr; }
}

/* 6. Print: the calm corner prints as a one-page plan ------------------------ */
@media print {
  .game-hero, .grown-ups, .more-games, .board-title, .btn-row, .confetti, .hud { display: none !important; }
  .game-stage { padding: 0; }
  .game-board { padding: 0; max-width: none; }
  .game-board::before { display: none; }
  .screen { min-height: 0; padding: 0; background: #fff; overflow: visible; }
  .cc-room { box-shadow: none; border: 1.5px solid #999; }
  .cc-final { grid-template-columns: 1fr 1fr; }
}
