/* Fraunces (SIL OFL, fonts/FRAUNCES-OFL.txt; latin, 700 + 700 italic): the v3 Christmas titles. */
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-bolditalic.ttf') format('truetype'); font-weight: 700; font-style: italic; font-display: swap; }
/* ── Oh Tannenbaum (party game 8) — SPEC-party-tannenbaum v2.1, CONTRACT-tannenbaum-state ────────────────────────
 * Canvas agents/cto/design/tannenbaum/project (TV-Home, Main, the station boards, TV-Cat, TV-Star, TV-Winner, Share).
 * The living room at night: warm tungsten, deep green, bauble reds, gold for the star. No confetti, no falling snow.
 * Everything that moves stops under prefers-reduced-motion (the states still switch). */
.game--tannenbaum {
  --tb-gold: #ffc93c;
  --tb-warm: #ffb347;
  --tb-green: #0c1a14;
  --tb-red: #e0262f;
  --tb-grey: #b9ad9a;
  --dy-gold: #ffc93c;
  --dy-blue: #429bfc;
  --dy-grey: #8e98a0;
  --dy-green: #2fd47a;
  color: #e9e2d6;
  font-family: 'Outfit', 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.tb-bg { position: absolute; inset: 0; background: linear-gradient(180deg, #07061a 0%, #0a1512 60%, #0c1a14 100%); }
.tb-bg::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--tb-warm); }
.tb-scene { position: absolute; inset: 0; z-index: 7; }
.tb-eye { font-family: var(--dh-font-display); font-size: 20px; letter-spacing: .16em; text-transform: uppercase; color: var(--tb-grey); }
.tb-eye--accent { color: var(--tb-warm) !important; }

.tb-head { position: absolute; left: 60px; right: 60px; top: 30px; z-index: 8; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.game--tannenbaum[data-scene="lobby"] .tb-head { left: 72px; right: 72px; top: 40px; }
.tb-head__l { display: flex; align-items: baseline; gap: 28px; min-width: 0; }
.tb-title { font-family: var(--dh-font-display); font-size: 52px; line-height: 1; color: #fff; letter-spacing: .04em; text-transform: uppercase; }
.tb-head__eye { white-space: nowrap; }
.tb-pill i.tb-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; background: #2fd47a; box-shadow: 0 0 0 5px rgba(47, 212, 122, .18); }
.game--tannenbaum[data-scene="final"] .tb-head { display: none; }

/* ── Lobby: the locked join layout over the living room ─────────────────── */
.tb-hero { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 6, 26, .92) 0%, rgba(7, 6, 26, .55) 30%, rgba(7, 6, 26, .1) 55%),
    linear-gradient(180deg, #07061a 0%, rgba(7, 6, 26, .7) 18%, rgba(7, 6, 26, .2) 40%, rgba(7, 6, 26, .25) 70%, rgba(7, 6, 26, .92) 88%),
    url("img/tannenbaum/room.webp") 200px 120px / 2100px auto no-repeat; }
.tb-qr svg { width: 380px; height: 380px; display: block; }
.tb-cloth { border-radius: 20px; width: 276px; }
.tb-how__img { width: 84px; height: 72px; object-fit: contain; flex: none; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5)); }
/* The three how-to cards (QA 838 ca97c450 "better lettering"): an opaque card so the room photo never shows through the
   words, the line in sentence case at a reading size, the art in its own column, never under the words. */
.game--tannenbaum .dy-how { gap: 18px; }
.game--tannenbaum .dy-how__c { align-items: center; gap: 18px; padding: 20px 22px 20px 18px; background: rgba(7, 6, 26, .93);
  box-shadow: inset 0 0 0 1px rgba(255, 201, 60, .28), 0 16px 40px rgba(0, 0, 0, .45); }
.game--tannenbaum .dy-how__tx { min-width: 0; gap: 8px; }
.game--tannenbaum .dy-how__tx b { font-size: 22px; line-height: 1.1; color: #fff; letter-spacing: .03em; }
.game--tannenbaum .dy-how__tx span { text-transform: none; letter-spacing: 0; font-size: 21px; line-height: 1.3; color: #f1f3f6; }
.game--tannenbaum .dy-lseat .dy-av80 { width: 80px; height: 80px; font-size: 28px; }

/* ── The tree scene (canvas Main) ───────────────────────────────────────── */
.tb-board { position: absolute; left: 60px; top: 122px; width: 460px; height: 460px; }
.tb-board__svg { display: block; }
.tb-num { font-family: var(--dh-font-display); font-size: 20px; fill: #6f7f76; }
.tb-num.is-hook { fill: #fff; }
.tb-num.is-cat { fill: var(--tb-warm); }
.tb-dart.is-last circle { animation: tb-land .45s cubic-bezier(.2, 1.4, .4, 1); transform-box: fill-box; transform-origin: center; }
@keyframes tb-land { 0% { transform: scale(2.2); opacity: 0 } 100% { transform: scale(1); opacity: 1 } }
.tb-bullring { animation: tb-pulse 1.4s ease-in-out infinite; }
@keyframes tb-pulse { 0%, 100% { opacity: 1 } 50% { opacity: .4 } }

.tb-thrower { position: absolute; left: 60px; top: 604px; width: 460px; display: flex; flex-direction: column; gap: 14px; }
.tb-thrower__who { display: flex; align-items: center; gap: 14px; }
.tb-thrower__name { font-family: var(--dh-font-display); font-size: 30px; color: #fff; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }
.tb-visitpts { font-family: var(--dh-font-display); font-size: 34px; color: var(--tb-gold); }
.tb-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.tb-tile { height: 92px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 2px solid rgba(255, 255, 255, .08); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.tb-tile b { font-family: var(--dh-font-display); font-size: 30px; color: #fff; }
.tb-tile i { font-style: normal; font-size: 20px; color: var(--tb-grey); }
.tb-tile.is-hit { border-color: var(--tb-gold); background: rgba(255, 201, 60, .1); }
.tb-tile.is-hit i { color: var(--tb-gold); }
.tb-tile.is-cat { border-color: var(--tb-warm); background: rgba(255, 179, 71, .12); }
.tb-tile.is-next { border-color: rgba(255, 179, 71, .6); animation: tb-pulse 1.2s ease-in-out infinite; }
.tb-forming { font-size: 22px; color: var(--tb-gold); }
.tb-av48 { width: 48px; height: 48px; font-size: 18px; }
.tb-av64 { width: 64px; height: 64px; font-size: 24px; }
.tb-av96 { width: 96px; height: 96px; font-size: 34px; }
.tb-av128 { width: 128px; height: 128px; font-size: 44px; }

/* The living room (the photo 1600 × 833 → 1300 × 677) */
.tb-room { position: absolute; left: 540px; top: 110px; width: 1320px; height: 690px; border-radius: 24px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .55); }
.tb-room__photo { position: absolute; inset: 0; background: url("img/tannenbaum/room.webp") center / cover no-repeat; filter: brightness(.72) saturate(.9); }
/* The lit tree (the star is on, the winner): the needles a touch brighter, warm light at the star and a soft rim around the
   tree; no gold drop-shadow on the cut-out (QA 838 0ea73211: it shone through every gap in the needles as yellow blotches). */
.tb-room__photo { transition: filter 1.2s ease; }
.is-lit > .tb-room__photo { filter: brightness(.8) saturate(.92); }
.tb-room__lit { position: absolute; inset: 0; background: url("img/tannenbaum/tree-lit.webp") center / cover no-repeat; opacity: 0; transition: opacity 1.2s ease; filter: brightness(.92) saturate(1.04); }
.tb-room__lit.is-on { opacity: 1; }
.tb-room__glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; mix-blend-mode: screen;
  background:
    radial-gradient(circle at 50% 11%, rgba(255, 214, 140, .42) 0, rgba(255, 196, 110, .16) 6%, transparent 14%),
    radial-gradient(ellipse 19% 44% at 50% 47%, transparent 74%, rgba(255, 186, 96, .13) 87%, transparent 100%),
    radial-gradient(ellipse 30% 14% at 50% 82%, rgba(255, 186, 96, .1) 0, transparent 70%); }
.is-lit > .tb-room__glow { opacity: 1; }
/* the share card's square crop: the tree is wider in the frame */
.tb-share__tree .tb-room__glow { background:
    radial-gradient(circle at 50% 11%, rgba(255, 214, 140, .42) 0, rgba(255, 196, 110, .16) 9%, transparent 20%),
    radial-gradient(ellipse 36% 44% at 50% 47%, transparent 74%, rgba(255, 186, 96, .13) 87%, transparent 100%),
    radial-gradient(ellipse 50% 14% at 50% 82%, rgba(255, 186, 96, .1) 0, transparent 70%); }
.tb-tier { position: absolute; left: 30%; right: 30%; height: 12%; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--tb-c) 38%, transparent) 0%, transparent 70%); animation: tb-pulse 2.6s ease-in-out infinite; }
.tb-orns { position: absolute; inset: 0; }
/* The cat (design Tree): the tabby at the side of the station's tier, facing the tree; pounces on a knock-off, flinches on a hiss */
.tb-catl { position: absolute; inset: 0; pointer-events: none; }
.tb-cat { position: absolute; width: 132px; --d: 1; transform: translate(-96%, -82%); }
.tb-cat.is-r { --d: -1; transform: translate(-4%, -82%); }
.tb-cat__j { display: block; transform-origin: 50% 100%; }
.tb-cat img { display: block; width: 100%; height: auto; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .55)) brightness(.88) saturate(.95); }
.tb-cat.is-r img { transform: scaleX(-1); }
.tb-cat.is-leap .tb-cat__j { animation: tb-leap 1.5s ease-out both; }
.tb-cat.is-hiss .tb-cat__j { animation: tb-hiss .45s ease-in-out 2; }
@keyframes tb-leap { 0% { transform: none } 18% { transform: translate(calc(var(--d) * -8px), 6px) scaleY(.9) }
  42% { transform: translate(calc(var(--d) * 46px), -56px) rotate(calc(var(--d) * -14deg)) } 70%, 100% { transform: translate(calc(var(--d) * 84px), 4px) } }
@keyframes tb-hiss { 0%, 100% { transform: none } 35% { transform: translateX(calc(var(--d) * -12px)) scaleY(1.07) } 65% { transform: translateX(calc(var(--d) * -4px)) } }
.tb-orn.tb-orn--fall { animation: tb-fall 1.3s cubic-bezier(.45, 0, .9, .55) .45s both; }
@keyframes tb-fall { 0% { transform: translate(-50%, -30%) rotate(0); opacity: 1 } 85% { opacity: 1 } 100% { transform: translate(-50%, 520%) rotate(150deg); opacity: 0 } }
.tb-orn { position: absolute; width: 36px; height: 36px; transform: translate(-50%, -30%); border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 3px var(--c), 0 0 12px color-mix(in srgb, var(--c) 70%, transparent); background: rgba(7, 6, 26, .35); animation: tb-swing .7s cubic-bezier(.2, 1.4, .4, 1); }
.tb-orn img { width: 31px; height: 31px; object-fit: contain; }
.tb-orn.is-gold img, .tb-stamp__art.is-gold { filter: sepia(1) saturate(4) hue-rotate(5deg) brightness(1.15); }
.tb-orn.is-forming { opacity: .7; box-shadow: 0 0 0 3px var(--c), 0 0 0 7px rgba(255, 255, 255, .25); }
@keyframes tb-swing { 0% { transform: translate(-50%, -140%) rotate(-25deg); opacity: 0 } 60% { transform: translate(-50%, -20%) rotate(8deg); opacity: 1 } 100% { transform: translate(-50%, -30%) rotate(0) } }
.tb-star { position: absolute; left: 50%; top: 4%; width: 110px; height: 110px; transform: translateX(-50%); }
.tb-star__in { position: absolute; inset: 0; }
.tb-star__in img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(.85) brightness(.55); transition: filter 1s ease; }
.tb-star__in.is-on img { filter: drop-shadow(0 0 30px rgba(255, 201, 60, .95)) brightness(1.2); }
.tb-star__pt { position: absolute; left: 50%; top: 42%; width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: rgba(255, 255, 255, .18);
  transform: rotate(var(--a)) translate(66px) rotate(calc(-1 * var(--a))); }
.tb-star__pt.is-lit { background: var(--tb-gold); box-shadow: 0 0 14px var(--tb-gold); }
.tb-card { position: absolute; left: 24px; top: 24px; }
.tb-card__in { display: flex; gap: 16px; align-items: center; padding: 16px 22px 16px 16px; border-radius: 20px; background: rgba(7, 6, 26, .82); border: 2px solid var(--tb-c, var(--tb-gold)); max-width: 420px; }
.tb-card__in img { width: 72px; height: 72px; object-fit: contain; flex: none; }
.tb-card__in div { display: flex; flex-direction: column; gap: 4px; }
.tb-card__in b { font-family: var(--dh-font-display); font-size: 28px; color: #fff; text-transform: uppercase; }
.tb-card__in span { font-size: 19px; color: #e4e8ec; }
.tb-card__rows { display: flex; gap: 14px; flex-wrap: wrap; }
.tb-card__rows span { display: flex; gap: 6px; align-items: baseline; }
.tb-card__rows em { font-style: normal; color: var(--tb-grey); font-size: 17px; }
.tb-card__rows b { font-size: 22px; color: var(--tb-gold); }
.tb-card__pts { color: var(--tb-gold) !important; }

/* Stamps, one per moment, in the ornament's look */
.tb-stamp { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.tb-stamp.is-aside-l { justify-content: flex-start; padding-left: 60px; }
.tb-stamp.is-aside-r { justify-content: flex-end; padding-right: 60px; }
.tb-stamp__in { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 46px; border-radius: 28px; background: rgba(7, 6, 26, .78); border: 4px solid var(--tb-gold); }
.tb-stamp__in.is-fresh { animation: tb-slam .6s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes tb-slam { 0% { transform: scale(2.2); opacity: 0 } 60% { transform: scale(.94); opacity: 1 } 100% { transform: scale(1) } }
.tb-stamp__art { width: var(--sz); height: var(--sz); object-fit: contain; }
.tb-stamp__w { font-family: var(--dh-font-display); font-size: 64px; line-height: 1; color: #fff; text-transform: uppercase; letter-spacing: .04em; }
.tb-stamp__pts { font-family: var(--dh-font-display); font-size: 44px; color: var(--tb-gold); }
.tb-stamp__who { font-size: 24px; color: #fff; padding: 2px 14px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--c); }
.tb-stamp__sub { font-size: 22px; color: #ffd0d0; }
.tb-tone--red { border-color: var(--tb-red); }
.tb-tone--silver { border-color: #c8d6e5; }
.tb-tone--warm { border-color: var(--tb-warm); }
.tb-tone--brown { border-color: #b5733a; }
.tb-tone--red .tb-stamp__w { color: #ff8a8f; }
.game--tannenbaum[data-moment="star"] .tb-board, .game--tannenbaum[data-moment="star"] .tb-room { box-shadow: 0 0 0 4px var(--tb-gold), 0 0 60px rgba(255, 201, 60, .6); border-radius: 24px; }

/* Station / star intro: the card big in the middle */
.tb-intro { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.tb-intro__card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 64px; border-radius: 32px; background: rgba(7, 6, 26, .9); border: 4px solid var(--tb-c, var(--tb-gold)); text-align: center; animation: tb-slam .7s cubic-bezier(.2, 1.4, .4, 1); }
.tb-intro__card img { width: 150px; height: 150px; object-fit: contain; }
.tb-intro__card h2 { margin: 0; font-family: var(--dh-font-display); font-weight: 400; font-size: 72px; color: #fff; text-transform: uppercase; }
.tb-intro__card p { margin: 0; font-size: 28px; color: #e4e8ec; max-width: 760px; }
.tb-intro__single { font-family: var(--dh-font-display); font-size: 26px; color: var(--tb-gold); }

/* Scoreboard along the bottom */
.tb-scores { position: absolute; left: 60px; right: 60px; top: 826px; height: 210px; display: grid; gap: 14px; grid-auto-flow: column; grid-auto-columns: 1fr; }
.tb-sc { position: relative; border-radius: 18px; background: rgba(255, 255, 255, .04); border: 2px solid rgba(255, 255, 255, .06); padding: 14px 16px; display: grid;
  grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 12px; row-gap: 6px; align-content: start; box-shadow: inset 4px 0 0 var(--c); }
.tb-sc.is-up { border-color: var(--tb-warm); background: rgba(255, 179, 71, .08); }
.tb-sc.is-lead .tb-sc__total { color: var(--tb-gold); }
.tb-sc .hx-av { grid-row: 1 / 3; }
.tb-sc__name { font-size: 22px; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-sc__total { font-family: var(--dh-font-display); font-size: 40px; line-height: 1; color: #fff; }
.tb-sc__orns { grid-column: 1 / 3; display: flex; gap: 4px; height: 34px; }
.tb-sc__orns img { width: 30px; height: 30px; object-fit: contain; }
.tb-sc__marks { grid-column: 1 / 3; color: var(--tb-gold); font-size: 20px; letter-spacing: 2px; }
.tb-sc__last { position: absolute; right: 14px; top: 14px; font-size: 20px; color: var(--tb-grey); }
.tb-scores--eight .tb-sc__total { font-size: 32px; }
.tb-scores--eight .tb-sc__name { font-size: 18px; }

/* Bull-off */
.tb-bull { position: absolute; left: 560px; top: 118px; width: 1300px; height: 677px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: rgba(7, 6, 26, .78); border-radius: 24px; }
.tb-bull__up { display: flex; align-items: center; gap: 16px; font-size: 30px; color: #fff; }

/* Won: the band over the lit tree */
.tb-band { position: absolute; left: 0; right: 0; top: 380px; display: flex; justify-content: center; pointer-events: none; }
.tb-band__in { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto auto; column-gap: 28px; align-items: center; min-width: 1100px; padding: 30px 56px;
  background: linear-gradient(90deg, rgba(7, 6, 26, .95), rgba(40, 28, 6, .95)); border-top: 4px solid var(--tb-gold); border-bottom: 4px solid var(--tb-gold); animation: tb-slam .7s ease-out; }
.tb-band__in .hx-av { grid-row: 1 / 4; }
.tb-band__eye { font-family: var(--dh-font-display); letter-spacing: .16em; font-size: 22px; color: var(--tb-gold); text-transform: uppercase; }
.tb-band__name { font-family: var(--dh-font-display); font-size: 72px; color: #fff; text-transform: uppercase; }
.tb-band__pts { grid-column: 3; grid-row: 1 / 4; font-family: var(--dh-font-display); font-size: 88px; color: var(--tb-gold); }
.tb-band__tag { font-size: 24px; color: #ffe08a; }

/* Final: the share card (4:5 in the share export; here the TV's 16:9 version) */
.tb-share { position: absolute; inset: 0; display: grid; grid-template-columns: 1100px 1fr; gap: 40px; padding: 60px; }
.tb-share__tree { position: relative; border-radius: 28px; overflow: hidden; box-shadow: 0 0 0 4px var(--tb-gold), 0 0 80px rgba(255, 201, 60, .3); }
.tb-share__side { display: flex; flex-direction: column; gap: 22px; justify-content: center; }
.tb-share__win { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.tb-share__win b { font-family: var(--dh-font-display); font-weight: 400; font-size: 64px; color: #fff; text-transform: uppercase; }
.tb-share__win span { font-family: var(--dh-font-display); font-size: 56px; color: var(--tb-gold); }
.tb-share__win em, .tb-share__rest em { font-style: normal; font-size: 20px; color: #07061a; background: var(--tb-gold); border-radius: 999px; padding: 3px 12px; }
.tb-share__rest { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tb-share__rest li { display: flex; align-items: center; gap: 14px; font-size: 26px; color: #fff; box-shadow: inset 4px 0 0 var(--c); padding-left: 12px; }
.tb-share__rest b { margin-left: auto; font-family: var(--dh-font-display); color: var(--tb-gold); }
.tb-share__brand { font-family: var(--dh-font-display); letter-spacing: .16em; color: var(--tb-grey); text-transform: uppercase; }

/* Pause */
.tb-pause { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: rgba(7, 6, 26, .6); }
.tb-pause[hidden] { display: none; }
.tb-pause__card { display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 40px 80px; border-radius: 28px; background: #07061a; border: 3px solid var(--tb-warm); }
.tb-pause__h { font-family: var(--dh-font-display); font-size: 64px; color: #fff; }
.tb-pause__p, .tb-pause__q { font-size: 26px; color: var(--tb-grey); }

/* ── v3 (canvas v39): the room is the cat video; the cat sleeps under the tree, wakes on the 5th paw ─────────────── */
.tb-room__photo--v3 { left: -20px; right: auto; width: 1360px; height: 765px; background-size: 1360px 765px; background-position: 0 0; filter: none; }
.tb-room__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-room__jump { opacity: 0; transition: opacity .25s ease; }
.tb-room__jump.is-on { opacity: 1; }
/* The lit tree overlay was the old photo's; the v3 room glows instead. */
.game--tannenbaum .tb-room__lit, .game--tannenbaum .tb-room__glow { display: none; }
/* The tree's lights (v3): bulbs over the video, screen-blended, every 3rd twinkling; the star: all on and sparkling. */
.tb-lights { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; }
.tb-lights__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tb-bulb3.is-twk { animation: tb-bulbtwk 2.8s ease-in-out infinite; }
.is-sparkle .tb-bulb3.is-twk { animation-duration: 1.15s; }
.tb-bulb3.is-glint { animation: tb-glint 1.6s ease-in-out infinite; }
@keyframes tb-bulbtwk { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }
@keyframes tb-glint { 0%, 100% { transform: scale(.6); opacity: .7 } 50% { transform: scale(1.5); opacity: 1 } }
/* The share card's tree: the in-game room (1320 × 690) scaled to the card's width. */
.tb-share__tree { align-self: center; width: 1100px; height: 575px; }
.tb-stage { position: absolute; left: 0; top: 0; width: 1320px; height: 690px; transform: scale(.8333); transform-origin: 0 0; overflow: hidden; }
.is-lit > .tb-room__photo--v3 { filter: brightness(1.08) saturate(1.05); }
.tb-orns .tb-orn { transition: opacity .4s ease; }
.tb-room.is-striking .tb-orns .tb-orn { opacity: 0; }
.tb-orn.tb-orn--fall3 { animation: tb-fall3 1.6s cubic-bezier(.45, 0, .9, .55) var(--swat, 4800ms) both; }
@keyframes tb-fall3 { 0% { transform: translate(-50%, -30%) rotate(0); opacity: 0 } 2% { opacity: 1 } 8% { transform: translate(-40%, -45%) rotate(-30deg) }
  85% { opacity: 1 } 100% { transform: translate(60%, 640%) rotate(-280deg); opacity: 0 } }
.tb-zz { position: absolute; left: 478px; top: 470px; width: 50px; height: 70px; pointer-events: none; font-family: Georgia, serif; font-style: italic; color: #f7ecd9; }
.tb-zz i { position: absolute; opacity: 0; animation: tb-zz 4.5s ease-in-out infinite; }
.tb-zz i:nth-child(1) { left: 0; top: 34px; font-size: 22px; }
.tb-zz i:nth-child(2) { left: 12px; top: 24px; font-size: 28px; animation-delay: 1.5s; }
.tb-zz i:nth-child(3) { left: 26px; top: 12px; font-size: 36px; animation-delay: 3s; }
@keyframes tb-zz { 0% { transform: translate(0, 0) scale(.7); opacity: 0 } 20% { opacity: .9 } 80% { opacity: .6 } 100% { transform: translate(20px, -46px) scale(1.15); opacity: 0 } }
.tb-meter { position: absolute; left: 24px; top: 624px; pointer-events: none; }
.tb-meter__in { display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 10px; border-radius: 999px; background: rgba(11, 10, 18, .8);
  box-shadow: inset 0 0 0 1px rgba(255, 154, 60, .6); }
.tb-meter__in.is-hot { box-shadow: inset 0 0 0 1px #ff9a3c; }
.tb-meter__in.is-star { box-shadow: inset 0 0 0 1px rgba(242, 196, 109, .6); }
.tb-paw { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255, 154, 60, .35);
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 2px rgba(255, 154, 60, .45); }
.tb-paw.is-on { background: #ff9a3c; color: #2a1608; box-shadow: inset 0 0 0 2px rgba(11, 10, 18, .5); }
.tb-paw.is-hot { animation: tb-pawhot 1.1s ease-in-out infinite; }
.is-star .tb-paw { color: rgba(242, 196, 109, .25); box-shadow: inset 0 0 0 2px rgba(242, 196, 109, .4); }
.is-star .tb-paw.is-mark { background: var(--c); color: rgba(11, 10, 18, .75); box-shadow: inset 0 0 0 2px rgba(11, 10, 18, .6); }
@keyframes tb-pawhot { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 154, 60, 0) } 50% { box-shadow: 0 0 0 4px rgba(255, 154, 60, .35), 0 0 18px rgba(255, 154, 60, .7) } }
.tb-meter__tx { display: flex; flex-direction: column; gap: 1px; margin-left: 4px; text-transform: none; letter-spacing: 0; white-space: nowrap; }
/* Never over the cat (room x 468+): the pill stays left of her. */
.tb-meter__in { max-width: 430px; box-sizing: border-box; }
.tb-meter__tx b { font-size: 18px; font-weight: 700; color: #f7ecd9; }
.tb-meter__tx span { font-size: 14px; color: #c9b9a3; }
.is-hot .tb-meter__tx span { color: #ffb057; }
.tb-board__svg.is-cathot .tb-catf { animation: tb-catpulse 1.2s ease-in-out infinite; }
@keyframes tb-catpulse { 0%, 100% { opacity: 1 } 50% { opacity: .55 } }

/* ── v3 skin (canvas v39 "v3 · in game"): Christmas Eve. Fraunces titles, cream gift tags, gold foil ──────────────── */
.game--tannenbaum { --tb-cream: #f7ecd9; --tb-foil: #f2c46d; --tb-serif: 'Fraunces', Georgia, serif; color: var(--tb-cream); }
.game--tannenbaum .tb-bg { background: radial-gradient(ellipse 70% 60% at 62% 40%, #1b1a14 0%, #0e0d12 60%, #0b0a12 100%); }
.game--tannenbaum .tb-bg::before { display: none; }
.tb-garland { position: absolute; left: 0; top: 0; width: 1920px; height: 60px; z-index: 6; pointer-events: none; }
.tb-garland .tb-bulb { animation: tb-twinkle 3.2s ease-in-out infinite; }
@keyframes tb-twinkle { 0%, 100% { opacity: .95 } 45% { opacity: .35 } 60% { opacity: 1 } }
.game--tannenbaum .tb-title { font-family: var(--tb-serif); font-style: italic; font-weight: 700; text-transform: none; letter-spacing: 0;
  background: linear-gradient(180deg, #fff3d6 0%, #f2c46d 46%, #c9922f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.game--tannenbaum .tb-head { top: 44px; }
.game--tannenbaum .tb-eye { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .2em; color: #c9b9a3; }
/* The board in a fir wreath. */
.game--tannenbaum .tb-board { border-radius: 50%; box-shadow: 0 0 0 10px #11291c, 0 0 0 14px #1d4630, 0 18px 50px rgba(0, 0, 0, .55); }
/* The thrower and the dart tiles. */
.game--tannenbaum .tb-thrower__name { font-family: var(--tb-serif); font-weight: 700; font-size: 34px; text-transform: none; }
.game--tannenbaum .tb-visitpts { font-family: var(--tb-serif); font-weight: 700; font-size: 40px; color: var(--tb-foil); }
.game--tannenbaum .tb-tile { border-radius: 16px; background: rgba(255, 255, 255, .04); border: 0; box-shadow: inset 0 0 0 2px rgba(242, 196, 109, .2); }
.game--tannenbaum .tb-tile b { font-family: var(--tb-serif); font-weight: 700; font-size: 28px; }
.game--tannenbaum .tb-tile.is-hit { background: linear-gradient(180deg, rgba(242, 196, 109, .22), rgba(201, 146, 47, .12)); box-shadow: inset 0 0 0 2px var(--tb-foil); }
.game--tannenbaum .tb-tile.is-cat { background: rgba(255, 154, 60, .14); box-shadow: inset 0 0 0 2px #ff9a3c; }
.game--tannenbaum .tb-tile.is-cat i { color: #ffb057; }
.game--tannenbaum .tb-tile.is-next { animation: tb-next 1.4s ease-in-out infinite; }
@keyframes tb-next { 0%, 100% { box-shadow: inset 0 0 0 2px rgba(242, 196, 109, .5) } 50% { box-shadow: inset 0 0 0 2px #f2c46d, 0 0 26px rgba(242, 196, 109, .55) } }
.game--tannenbaum .tb-room { box-shadow: 0 24px 70px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(242, 196, 109, .25); border-radius: 26px; }
/* The station card: a cream gift tag hanging on a red string, swinging. */
.game--tannenbaum .tb-card { left: 30px; top: -6px; width: 390px; transform-origin: 50% 0; animation: tb-tagswing 3.4s ease-in-out infinite; }
.game--tannenbaum .tb-card::before { content: ''; display: block; margin: 0 auto; width: 3px; height: 30px; background: #b5202e; }
.game--tannenbaum .tb-card__in { max-width: none; border: 0; border-radius: 20px; background: var(--tb-cream); padding: 16px 18px; gap: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(201, 146, 47, .5); }
.game--tannenbaum .tb-card__in img { width: 64px; height: 64px; }
.game--tannenbaum .tb-card__in b { font-family: var(--tb-serif); font-weight: 700; font-size: 26px; line-height: 1; color: #7a1620; text-transform: none; }
.game--tannenbaum .tb-card__in span { font-size: 15px; line-height: 1.3; color: #4a3c2e; text-transform: none; letter-spacing: 0; }
.game--tannenbaum .tb-card__rows em { color: #6a5a48; font-size: 14px; }
.game--tannenbaum .tb-card__rows b { font-size: 18px; color: #9a5a10; }
.game--tannenbaum .tb-card__pts { color: #9a5a10 !important; }
@keyframes tb-tagswing { 0%, 100% { transform: rotate(-4deg) } 50% { transform: rotate(4deg) } }
/* The moment's stamp: a dark card with a gold rim, tilted, Fraunces words, the points in foil. */
.game--tannenbaum .tb-stamp__in { border: 0; border-radius: 22px; padding: 18px 30px 20px; gap: 6px; transform: rotate(-3deg);
  background: linear-gradient(180deg, rgba(20, 30, 24, .95), rgba(11, 10, 18, .96)); box-shadow: inset 0 0 0 2px var(--tb-foil), 0 24px 60px rgba(0, 0, 0, .6); }
.game--tannenbaum .tb-stamp__in.is-fresh { animation: tb-stamp3 .9s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes tb-stamp3 { 0% { opacity: 0; transform: scale(.6) rotate(-8deg) } 100% { opacity: 1; transform: scale(1) rotate(-3deg) } }
.game--tannenbaum .tb-stamp__w { font-family: var(--tb-serif); font-weight: 700; font-size: 54px; text-transform: none; letter-spacing: 0; color: #fff; }
.game--tannenbaum .tb-stamp__pts { font-family: var(--tb-serif); font-weight: 700; font-size: 52px;
  background: linear-gradient(180deg, #fff3d6 0%, #f2c46d 46%, #c9922f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.game--tannenbaum .tb-tone--red { background: linear-gradient(180deg, rgba(120, 24, 30, .95), rgba(70, 12, 18, .96)); }
.game--tannenbaum .tb-tone--red .tb-stamp__w { color: #fff; }
/* The station / star intro: the same card language, bigger. */
.game--tannenbaum .tb-intro__card { border: 0; background: rgba(11, 10, 18, .92); box-shadow: inset 0 0 0 2px var(--tb-foil), 0 30px 80px rgba(0, 0, 0, .6); }
.game--tannenbaum .tb-intro__card h2 { font-family: var(--tb-serif); font-weight: 700; font-style: italic; text-transform: none;
  background: linear-gradient(180deg, #fff3d6 0%, #f2c46d 46%, #c9922f 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.game--tannenbaum .tb-intro__single { font-family: var(--tb-serif); font-weight: 700; color: var(--tb-foil); }
/* The scores: gift tags with a red tab, Fraunces names and totals. */
.game--tannenbaum .tb-scores { top: 836px; gap: 20px; }
.game--tannenbaum .tb-sc { border: 0; border-radius: 20px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(242, 196, 109, .25); overflow: visible; }
.game--tannenbaum .tb-sc::before { content: ''; position: absolute; left: 22px; top: -7px; width: 44px; height: 14px; border-radius: 4px; background: #b5202e; }
.game--tannenbaum .tb-sc.is-up { background: linear-gradient(180deg, rgba(242, 196, 109, .16), rgba(242, 196, 109, .05)); box-shadow: inset 0 0 0 2px var(--tb-foil), 0 0 30px rgba(242, 196, 109, .25); }
.game--tannenbaum .tb-sc__name { font-family: var(--tb-serif); font-weight: 700; text-transform: none; color: #fff; }
.game--tannenbaum .tb-sc__total { font-family: var(--tb-serif); font-weight: 700; }
.game--tannenbaum .tb-sc.is-lead .tb-sc__total { color: var(--tb-foil); }
/* Winner band and share card in the same type. */
.game--tannenbaum .tb-band__name, .game--tannenbaum .tb-share__win b { font-family: var(--tb-serif); font-weight: 700; text-transform: none; }
.game--tannenbaum .tb-band__pts, .game--tannenbaum .tb-share__win span { font-family: var(--tb-serif); font-weight: 700; color: var(--tb-foil); }

@media (prefers-reduced-motion: reduce) {
  .game--tannenbaum *, .game--tannenbaum *::before { animation: none !important; transition: none !important; }
  .game--tannenbaum .tb-stamp__in { transform: rotate(-3deg); }
}
