/* Part 2, the gift game's scenes (docs/christmas-game/gift/DIRECTORS-SCRIPT.md), on core.css. It starts as the tree
   game's stylesheet (the same room, tree, cast, panel, board and answers drawer; tree.css itself stays as it is) and
   adds the gift game's own pieces at the end: the wish list on the desk, the market, the presents, the morning. */

/* ── the cast ───────────────────────────────────────────────────────────────────────────────────────────────── */
.xm-char { position: relative; flex: none; }
.xm-char img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0,0,0,.28)); -webkit-user-drag: none; user-select: none; }
.xm-char img.is-art { object-position: 50% 100%; transform-origin: 50% 100%; animation: xm-breathe 2.8s ease-in-out infinite; }
.xm-elf { transform-origin: 50% 100%; animation: xm-breathe 2.4s ease-in-out infinite; }
.xm-char { transform-origin: 50% 100%; }
.xm-char.is-mirrored { scale: -1 1; }                /* a pose turned to face the other way (tree.js) */
@keyframes xm-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.018, .982); } }
@media (prefers-reduced-motion: reduce) { .xm-char img.is-art, .xm-elf { animation: none; } }
.xm-hat { position: absolute; z-index: 1; height: auto; pointer-events: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.xm-art { display: block; max-width: none; -webkit-user-drag: none; user-select: none; }
.xm-elf { display: block; height: auto; filter: drop-shadow(0 5px 5px rgba(0,0,0,.3)); }
.xm-puppy { display: block; height: auto; filter: drop-shadow(0 4px 4px rgba(0,0,0,.3)); }

/* ── the creator's screens: a painted scene on top, the cream panel below (as the friend's stage) ───────────── */
.xm-scene.is-staged { padding: 0; gap: 0; }
/* below the painted stage everything is the cream panel's colour (the ad slot, the page's end) */
.xm-scene.is-staged, .xm-scene.is-result, .xm-scene.is-reveal { background: #FBE7C6; }
.xm-play .xm-actions .xm-btn { font-size: clamp(16px, 4.8vw, 19px); }
.xm-play.is-page { display: flex; flex-direction: column; gap: 14px; padding-top: 26px; }
.xm-play .xm-sub, .xm-play .xm-small { color: #6B5A4E; }
.xm-play .xm-label, .xm-play .xm-h2 { color: var(--ink); }
.xm-play .xm-step { background: #fff; border-color: #F1E2C8; color: #6B5A4E; box-shadow: 0 3px 0 #EEDCBC; }
.xm-play .xm-step strong { color: var(--ink); }
.xm-play .xm-chip { border-color: #E3CFAD; background: #fff; color: var(--ink); }
.xm-play .xm-who-card { background: #fff; border-color: #F1E2C8; color: var(--ink); box-shadow: 0 4px 0 #EEDCBC; }
.xm-play .xm-who-card.is-picked { background: #FFF6D8; border-color: var(--gold); }
.xm-play .xm-input { border: 3px solid #EBD9BA; }
/* on the cream panel the error is dark red (the night theme's pink can't be read on paper); no gap while there is none */
.xm-play .xm-error { color: var(--red-d); }
.xm-play.is-page .xm-error:empty { min-height: 0; margin-top: -14px; }
.xm-hero { position: relative; flex: none; height: 58vh; height: 58dvh; min-height: 380px; overflow: hidden; }
.xm-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.xm-hero-glow { position: absolute; left: 50%; top: 46%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,217,160,.5), rgba(255,217,160,0) 62%); animation: xm-star 2.6s ease-in-out infinite alternate; }
.xm-hero-top { position: absolute; z-index: 5; left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top)); }
/* over painted scenes the brand in letters sits on a dark glass pill, so it reads on snow and roofs alike (the logo
   has its own white one) */
.xm-hero-top .xm-site:not(.is-logo) { padding: 5px 11px; border-radius: 99px; background: rgba(28,20,44,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.xm-hero .xm-landing-title { position: absolute; z-index: 4; left: 16px; right: 16px; top: calc(58px + env(safe-area-inset-top)); margin: 0;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
.xm-hero .xm-logo-top { font-size: clamp(17px, 5.6vw, 24px); max-width: 100%; }
/* the big line keeps the 16 px gutter: it wraps at a space, and a word too long alone is shrunk (fitText, landing) */
.xm-hero .xm-logo-main { font-size: clamp(34px, 11.4vw, 52px); max-width: 100%; }
.xm-hero-host { position: absolute !important; z-index: 4; right: 6%; bottom: 34px; }
.xm-hero-box { position: absolute; z-index: 3; left: 8%; bottom: 40px; width: 26%; height: auto; filter: drop-shadow(0 6px 6px rgba(0,0,0,.35)); }
.xm-hero .xm-snow { z-index: 2; }
/* the mantel: the painting is full width and placed so its hooks (49% down the picture) sit 240px from the top,
   clear of the top bar; the stockings hang on the hooks, the Elf sits on the shelf (33% down) */
.is-staged .xm-mantel { flex: none; height: 350px; margin: 0; border: 0; border-radius: 0; overflow: hidden; container-type: inline-size; background: #6B3A2A; }
.xm-mantel-art { position: absolute; left: 0; width: 100%; aspect-ratio: 768 / 1376; top: calc(240px - var(--cq, 1cqw) * 87.8); }
.xm-mantel-art .xm-mantel-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; border-radius: 0; }
.xm-mantel-art .xm-stockings { position: absolute; inset: 0; width: auto; display: block; }
/* each stocking on a painted hook (the hooks: 18%, 34%, 50%, 66%, 81% across, 38% down) */
.xm-mantel-art .xm-stocking { position: absolute; top: 37%; width: 17%; transform: translateX(-50%); }
.xm-mantel-art .xm-stocking:nth-child(1) { left: 18%; width: 27%; }
.xm-mantel-art .xm-stocking:nth-child(2) { left: 50%; }
.xm-mantel-art .xm-stocking:nth-child(3) { left: 81%; }
/* the Elf sits on the shelf (31% down the picture = 240px − 32.3cqw from the top), left of the sound button, and is
   only as tall as the room under the top bar allows (it ends 51px down), so he never sits under the bar's pills */
.xm-mantel-art .xm-mantel-elf { top: auto; bottom: 69%; right: 17%; width: auto; height: min(84px, calc(182px - var(--cq, 1cqw) * 32.3)); }
/* the name on the white fluffy cuff (11–73% across, 13–38% down the stocking picture) */
/* the name across the cuff, as wide as the stocking (a long one takes two lines and may reach onto the red: the white
   edge keeps it readable there); tree.js shrinks it only down to a size that can still be read */
.xm-mantel-art .xm-stocking-name { left: 3%; right: 10%; top: 13%; height: auto; min-height: 24%; rotate: 0deg; -webkit-text-stroke-width: 2.5px; color: var(--red-d); -webkit-text-stroke-color: #fff; display: flex; align-items: center; justify-content: center; white-space: normal;
  overflow: visible; overflow-wrap: normal; word-break: keep-all; line-height: .95; font-size: calc(clamp(13px, 4vw, 16px) * var(--fs, 1)); text-overflow: clip; }
.is-staged .xm-moodhost { flex: none; height: clamp(300px, 42vh, 340px); border: 0; border-radius: 0; }
.xm-moods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.xm-mood { min-width: 0; }
.xm-mood > span { min-width: 0; overflow-wrap: normal; hyphens: manual; }
/* Japanese phrases / Korean words are kept whole (core.css): one wider than the card ("クリスマスソング無限ループ") breaks */
:lang(ja) .xm-mood > span, :lang(ko) .xm-mood > span { overflow-wrap: anywhere; }
/* narrow phones: the picture above the words, so a word never breaks */
@media (max-width: 374px) {
  .xm-mood { flex-direction: column; justify-content: center; gap: 4px; padding: 8px 6px; text-align: center; font-size: 14px; }
  .xm-mood-pic { width: 56px; height: 56px; }
  .xm-mood > span { text-align: center; }          /* a two-line label centred like the one-line ones */
}
.xm-scene.is-staged > .xm-play.is-page { flex: 1 0 auto; }
.is-staged .xm-moodhost-bg { border-radius: 0; }
.is-staged .xm-moodhost .xm-char { margin-bottom: 30px; }
.xm-play .xm-mood { border-color: #F1E2C8; box-shadow: 0 4px 0 #EEDCBC; }
/* ── 1.1 the landing: the window ──────────────────────────────────────────────────────────────────────────── */
.is-landing { gap: 14px; }
.xm-window { position: relative; height: clamp(190px, 33vh, 270px); margin: 4px 6px 12px; border: 10px solid #6A3E2A; border-radius: 16px 16px 8px 8px;
  overflow: hidden; background: #2A1A22; box-shadow: 0 0 0 3px #3B2A26, 0 0 46px rgba(255,217,160,.42); }
.xm-window-room { position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, #FFE7BE 0, #FFD9A0 30%, #E9A86A 75%, #C9814A 100%); }
.xm-window-tree { position: absolute; left: 8%; bottom: -2%; height: 104%; width: auto; }
.xm-window-host { position: absolute; right: 6%; bottom: 0; }
.xm-window-box { position: absolute; right: 34%; bottom: -4px; width: 64px; }
.xm-window-boxsvg { display: block; width: 100%; height: auto; }
.xm-window-bars::before, .xm-window-bars::after { content: ''; position: absolute; z-index: 2; background: #6A3E2A; box-shadow: 0 0 0 2px #3B2A26; }
.xm-window-bars::before { left: 50%; top: 0; bottom: 0; width: 8px; transform: translateX(-50%); }
.xm-window-bars::after { top: 46%; left: 0; right: 0; height: 8px; }
.xm-window-frost { position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(circle at 0 0, rgba(255,255,255,.75) 0, rgba(255,255,255,0) 24%), radial-gradient(circle at 100% 0, rgba(255,255,255,.6) 0, rgba(255,255,255,0) 20%),
    radial-gradient(circle at 0 100%, rgba(255,255,255,.55) 0, rgba(255,255,255,0) 18%), radial-gradient(circle at 100% 100%, rgba(255,255,255,.7) 0, rgba(255,255,255,0) 22%); }
.xm-window-sill { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; height: 12px; background: var(--snow); border-radius: 10px 10px 0 0; }
.xm-landing-title { margin-top: 10px; }
.xm-landing-title .xm-logo-main { padding-top: 14px; }
.xm-title-lights { position: absolute; left: 50%; top: -6px; width: 88%; height: auto; transform: translateX(-50%); overflow: visible; }
.xm-steps { margin: 6px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.xm-step { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.12);
  font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--soft); }
.xm-step strong { color: #fff; }
.xm-step-n { flex: none; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--red);
  color: #fff; font: 800 16px/1 var(--title); box-shadow: 0 3px 0 var(--red-d); }

/* the lights (tree and title): dark until their string switches on, then they glow and twinkle */
.xm-bulb { fill: #4E5566; stroke: #23222B; stroke-width: 1.2; transition: fill .35s; }
.xm-glow { opacity: 0; transition: opacity .45s; }
.is-on .xm-bulb, .is-on.xm-bulb { fill: var(--c); }
.is-on .xm-glow { opacity: .55; animation: xm-bulb 1.6s ease-in-out infinite alternate; }
@keyframes xm-bulb { from { opacity: .25; } to { opacity: .7; } }
/* a low-end phone (core.js LITE): steady glows — eighty twinkling SVG circles repaint the whole tree every frame */
.xm-lite .is-on .xm-glow { animation: none; opacity: .5; }
/* a low-end phone (core.js LITE): the same film, lighter on a budget GPU — the market's background lights stand still
   and unblended, the world doesn't float, an unopened present keeps its glow but not its bob and repainting halo,
   the spotlit present pops without an animated shadow */
.xm-lite .xm-bokeh { animation: none; mix-blend-mode: normal; filter: none; opacity: .28; }
.xm-lite .xm-market-world { animation: none; }
.xm-lite .xm-present.is-new .xm-present-swing { animation: none; }
.xm-lite .xm-present.is-new .xm-present-pic { filter: drop-shadow(0 5px 4px rgba(0,0,0,.3)); }
.xm-lite .xm-present.is-spot { animation: none; transform: translate(-50%, -100%) scale(1.25); }   /* still the big one */
.xm-bulb.is-fizzle { animation: xm-fizzle .9s ease-out; }
@keyframes xm-fizzle { 0% { fill: #fff; } 20% { fill: #FFD34D; } 35% { fill: #4E5566; } 50% { fill: #FFF3B0; } 100% { fill: #4E5566; } }

/* ── 1.2 the stocking ─────────────────────────────────────────────────────────────────────────────────────── */
.xm-mantel { position: relative; height: 200px; margin-top: 30px; border-radius: 16px; border: 3px solid #3B2A26; background: #7E3326; overflow: visible; }
.xm-mantel-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 37%; border-radius: 13px; }
.xm-fire { position: absolute; left: 50%; bottom: 0; width: 44%; height: 44%; transform: translateX(-50%); border-radius: 46% 46% 0 0 / 40% 40% 0 0;
  background: radial-gradient(circle at 50% 100%, #6B2A14 0, #2A1410 70%); border: 3px solid #3B2A26; border-bottom: 0; overflow: hidden; }
.xm-flame { position: absolute; left: 50%; bottom: -6px; width: 36%; height: 78%; margin-left: -18%; border-radius: 50% 50% 46% 46% / 64% 64% 36% 36%;
  background: radial-gradient(circle at 50% 76%, #FFF3B0 0, #FFD34D 30%, #FF8A3D 62%, rgba(232,66,63,0) 76%); animation: xm-flame 1.1s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.xm-flame.is-2 { margin-left: -42%; width: 28%; height: 56%; animation-duration: .9s; animation-delay: -.3s; }
.xm-flame.is-3 { margin-left: 12%; width: 28%; height: 62%; animation-duration: 1.3s; animation-delay: -.6s; }
@keyframes xm-flame { from { transform: scale(1, 1) rotate(-3deg); } to { transform: scale(.9, 1.12) rotate(3deg); } }
.xm-mantel-shelf { position: absolute; left: -8px; right: -8px; top: 30%; height: 16px; border-radius: 6px; background: linear-gradient(#8A5A33, #6A3E2A); border: 3px solid #3B2A26; }
.xm-stockings { position: absolute; left: 7%; top: calc(30% + 10px); display: flex; align-items: flex-start; gap: 5%; width: 62%; }
.xm-stocking { position: relative; width: 23%; transform-origin: 50% 0; }
.xm-stocking.is-mine { width: 36%; }
.xm-stocking-svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 3px rgba(0,0,0,.3)); }
.xm-stocking-svg.is-1 { filter: hue-rotate(135deg) saturate(.8) drop-shadow(0 4px 3px rgba(0,0,0,.3)); }
.xm-stocking-svg.is-2 { filter: hue-rotate(45deg) saturate(1.2) brightness(1.15) drop-shadow(0 4px 3px rgba(0,0,0,.3)); }
.xm-stocking-name { position: absolute; left: 14%; right: 18%; top: 34%; overflow: hidden; color: #fff; text-align: center; white-space: nowrap; text-overflow: ellipsis;
  font: 800 clamp(12px, 3.6vw, 15px)/1.1 var(--hand); -webkit-text-stroke: 3px rgba(80,10,10,.55); paint-order: stroke fill; rotate: -6deg; }
.xm-stocking-name.is-paint { animation: xm-paint .35s ease-out; }
@keyframes xm-paint { from { filter: brightness(1.8); transform: scale(1.12); } }
.xm-stocking.is-swing { animation: xm-swing 1.1s ease-in-out; }
@keyframes xm-swing { 20% { rotate: 12deg; } 45% { rotate: -9deg; } 70% { rotate: 5deg; } 100% { rotate: 0deg; } }
.xm-mantel-elf { position: absolute; right: 5%; top: calc(30% - 70px); width: 62px; }
.xm-mantel .xm-say { z-index: 7; }
.xm-who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.xm-who-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 10px; border: 3px solid rgba(255,255,255,.2); border-radius: 20px;
  background: rgba(255,255,255,.08); color: #fff; font: 800 18px/1 var(--title); cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.xm-who-card .xm-char { margin: 8px 0 8px; }            /* the cheer sticker reaches ~11px past the still's floor */
.xm-who-card > span { position: relative; }               /* the label paints over the art, never under it */
.xm-who-card.is-picked { border-color: var(--gold); background: rgba(255,211,77,.16); box-shadow: 0 0 0 3px rgba(255,211,77,.25), 0 10px 24px rgba(0,0,0,.25); }
.xm-who-card:active { transform: scale(.97); }

/* ── 1.3 the mood ─────────────────────────────────────────────────────────────────────────────────────────── */
.xm-moodhost { position: relative; height: 150px; display: flex; justify-content: center; align-items: flex-end; border-radius: 18px; border: 3px solid rgba(255,255,255,.22); }
.xm-moodhost-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; border-radius: 15px; }
.xm-moodhost .xm-char { margin-bottom: 4px; }
.xm-moods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.xm-mood { display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 6px 10px 6px 6px; border: 3px solid #fff; border-radius: 16px; background: var(--paper); color: var(--ink);
  font: 800 15px/1.2 'Nunito', sans-serif; text-align: left; cursor: pointer; box-shadow: 0 5px 0 rgba(0,0,0,.2); transition: transform .15s, box-shadow .15s; }
.xm-mood-pic { flex: none; width: 52px; height: 52px; object-fit: contain; }
.xm-mood:nth-child(odd) { rotate: -1.2deg; } .xm-mood:nth-child(even) { rotate: 1deg; }
.xm-mood.is-picked { position: relative; background: #FFF1C2; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold), 0 6px 0 var(--gold-d); }
/* the picked vibe's star is drawn (a ★ character sat ~2.5 px high and every phone's font placed it differently):
   dead centre in its gold circle (owner's team, 2026-11-03) */
.xm-mood.is-picked::after { content: ''; position: absolute; top: -12px; right: -8px; width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--outline);
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.2l2.6 5.5 6 .7-4.45 4.1 1.2 5.95L12 16.5l-5.35 2.95 1.2-5.95L3.4 9.4l6-.7z' fill='%233B2A26'/%3E%3C/svg%3E") center / 17px 17px no-repeat; }
.xm-chips { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.xm-chip { min-height: 42px; padding: 0 16px; border: 2px solid rgba(255,255,255,.35); border-radius: 99px; background: rgba(255,255,255,.08); color: #fff;
  font: 800 15px/1 'Nunito', sans-serif; cursor: pointer; white-space: nowrap; }
.xm-chip.is-red { background: var(--red); border-color: var(--red); }

/* ── the camera on the tree (one tall layer: TILT = translateY, WIDE = scale) ──────────────────────────────── */
.xm-cam { position: relative; flex: none; height: clamp(230px, 43vh, 400px); border-radius: 22px; overflow: hidden; background: #3A2742;
  border: 3px solid rgba(255,255,255,.22); box-shadow: 0 14px 30px rgba(0,0,0,.35); isolation: isolate; }
.xm-shot { position: absolute; inset: 0; transform-origin: 50% 62%; }
.xm-cam-backdrop { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); object-fit: cover; filter: blur(8px) brightness(.62) saturate(.9); }
.xm-cam.is-full { height: auto; aspect-ratio: 1 / 2; width: min(100%, 48vh); margin: 0 auto; }
.xm-layer { position: absolute; left: 0; top: 0; width: 100%; aspect-ratio: 1 / 2; transform-origin: 50% 0; container-type: inline-size;
  transition: transform .95s cubic-bezier(.45,0,.2,1); will-change: transform; }
/* the tree: room picture, painted tree, the SVG of lights and glow, the star (all in 320 × 640 units) */
.xm-tree-art { position: absolute; aspect-ratio: 1 / 2; overflow: hidden; pointer-events: none; }
.xm-layer > .xm-tree-art { inset: 0; width: 100%; height: 100%; }
.xm-room-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.xm-tree-pic { position: absolute; height: auto; filter: drop-shadow(0 6px 8px rgba(0,0,0,.3)); }
.xm-star-pic { position: absolute; left: 50%; top: 4.1%; width: 16%; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.xm-tree-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.xm-dimmer { opacity: 0; transition: opacity .8s; pointer-events: none; }
.xm-cam.is-dim .xm-dimmer { opacity: .62; }
.xm-star-glow { opacity: .12; transition: opacity .8s; transform-box: fill-box; transform-origin: center; }
.is-star .xm-star-glow { opacity: 1; animation: xm-star 2.4s ease-in-out infinite alternate; }
@keyframes xm-star { from { transform: scale(.9); } to { transform: scale(1.12); } }
.xm-box-front, .xm-box-lid { position: absolute; display: block; height: auto; transform: translateX(-50%); pointer-events: none; filter: drop-shadow(0 4px 4px rgba(0,0,0,.3)); }
.xm-box-front { width: 25%; z-index: 5; }
.xm-box-lid { width: 27%; z-index: 6; transform-origin: 0 100%; transition: transform .45s cubic-bezier(.3,1.4,.5,1); }
.xm-box-lid.is-up { transform: translateX(-50%) translate(-14%, -120%) rotate(-24deg); }
.xm-deco { position: absolute; z-index: 2; width: calc(var(--cq, 1cqw) * 8.5); height: auto; transform: translate(-50%, 0); filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.xm-hook { position: absolute; z-index: 2; transform: translate(-50%, 0); display: flex; flex-direction: column; align-items: center; }
.xm-hook::before { content: ''; width: calc(var(--cq, 1cqw) * 2.2); height: calc(var(--cq, 1cqw) * 3); border: calc(var(--cq, 1cqw) * .7) solid var(--gold); border-bottom: 0; border-radius: 99px 99px 0 0; }
.xm-hook i { display: block; min-width: calc(var(--cq, 1cqw) * 5.2); padding: calc(var(--cq, 1cqw) * .4) var(--cq, 1cqw); border-radius: calc(var(--cq, 1cqw) * 1.2);
  background: var(--paper); border: calc(var(--cq, 1cqw) * .5) solid var(--outline);
  color: var(--red-d); font: 800 calc(var(--cq, 1cqw) * 3.6)/1 var(--title); font-style: normal; text-align: center; }

/* ── the friend's stage: the room fills the screen, the answers on a cream panel, the cast standing on its edge ── */
/* the stage takes what the answers leave of the screen, but never less than a real view of the tree (where the
   ornament lands and the lights come on); a question with many answers makes the page grow and scroll instead */
.xm-scene.is-climb { height: auto; min-height: 100vh; min-height: 100dvh; padding: 0; gap: 0; }
.xm-small.is-dark, .xm-link.is-dark { color: #7A665A; }
.xm-play .xm-opts.is-many .xm-opt-text { font-size: 13px; }
.xm-cam.is-stage { border: 0; border-radius: 0; box-shadow: none; --elf-h: 150px; }
.is-climb .xm-cam.is-stage { flex: 1 0 auto; height: auto; min-height: clamp(210px, 38vh, 340px); min-height: clamp(210px, 38dvh, 340px); }
/* the garland of progress: unlit bulbs are dimmed glass, a lit one glows and twinkles */
/* along the stage's top edge (no top bar on this stage, only the sound button), so it leaves the tree its room */
.xm-garland { position: absolute; z-index: 10; left: -4%; right: -4%; top: calc(-2px + env(safe-area-inset-top)); pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.xm-garland { transition: opacity .5s, translate .5s; }
.xm-cam.is-wide .xm-garland { opacity: 0; translate: 0 -60%; }
.xm-garland-pic { width: 100%; height: auto; }
.xm-garland i { position: absolute; top: 54%; width: 4.2%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: rgba(34,30,48,.72);
  transition: background .4s, box-shadow .4s; }
.xm-garland i.is-on { background: rgba(255,255,255,.18); box-shadow: 0 0 10px 4px rgba(255,236,160,.85), 0 0 22px 8px rgba(255,211,77,.45); animation: xm-twinkle 1.4s ease-in-out infinite alternate; }
@keyframes xm-twinkle { from { opacity: .75; } to { opacity: 1; } }
.is-stage .xm-cam-elf { top: auto; bottom: 30px; left: 6px; width: auto; height: var(--elf-h); }
.is-stage .xm-cam-host { bottom: 28px; right: 4px; }
/* the answer panel: warm paper, snow resting on its edge, a red ribbon with the question number */
.xm-play { position: relative; z-index: 12; flex: none; margin-top: -30px; padding: 30px 14px calc(16px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0;
  background: radial-gradient(120% 60% at 50% 0, #FFFDF7 0, #FFF4E2 60%, #FBE7C6 100%); color: var(--ink); box-shadow: 0 -10px 26px rgba(0,0,0,.32); }
.xm-play { transition: transform .55s cubic-bezier(.2,1.2,.4,1), margin-top .55s; }
.xm-play.is-hidden { position: absolute; left: 0; right: 0; bottom: 0; transform: translateY(calc(100% + 40px)); }
/* (core.css makes every scene child position: relative: on the stage a hidden panel must leave the flow, or its empty
   place stays at the foot of the screen during the films, the lights and the endings) */
.xm-scene.is-climb > .xm-play.is-hidden { position: absolute; }
/* the result: the same stage, the ending on a big ribbon over the tree, the score and next steps on the panel */
.xm-scene.is-result { padding: 0; gap: 0; }
.is-result .xm-cam.is-stage { flex: none; height: 64vh; height: 64dvh; min-height: 380px; }
.xm-ribbon.is-title { top: calc(16px + env(safe-area-inset-top)); width: 88%; max-width: 400px; z-index: 11; }
/* the title sits on the band itself (26–74% down the picture), up to two lines; tree.js shrinks a long one to fit */
.xm-ribbon.is-title .xm-ribbon-text { margin: 0; inset: 24% 13% 25%; font-size: clamp(15px, 4.6vw, 21px); letter-spacing: .5px; text-transform: none; white-space: normal; text-align: center; line-height: 1.05; }
/* Chinese breaks between any two characters ("…的树 / 上？"): on a title ribbon only at the spaces around a name */
:lang(zh) .xm-ribbon.is-title .xm-ribbon-text { word-break: keep-all; }
/* the tree reveal: the stage fills the phone; the panel slides up after the film */
.xm-scene.is-reveal { padding: 0; gap: 0; }
.is-reveal .xm-cam.is-stage { flex: none; height: 82vh; height: 82dvh; min-height: 460px; }
/* during the film the panel's snowy edge already waits at the foot of the screen (never an empty block); its
   contents come in as it rises */
.is-reveal .xm-play.is-hidden { position: relative; transform: translateY(40px); pointer-events: none; }
.is-reveal .xm-play > :not(.xm-play-snow) { transition: opacity .4s .15s; }
.is-reveal .xm-play.is-hidden > :not(.xm-play-snow) { opacity: 0; }
.is-reveal .xm-play { transition: transform .6s cubic-bezier(.2,1.2,.4,1), opacity .4s; }
.is-reveal .xm-bauble:not(.is-back) { --bw: calc(var(--cq, 1cqw) * 18); }
.xm-share-block { display: flex; flex-direction: column; gap: 10px; }
.xm-share-block .xm-sub { color: #6B5A4E; }
.is-result-panel .xm-board-heading, .is-result-panel .xm-small { color: #6B5A4E; }
/* the reveal: the cast steps to the edges, a little smaller, so the box and every bauble stay in view */
.is-reveal-cast .xm-cam-host { scale: .8; transform-origin: 100% 100%; right: 0; }
.is-reveal-cast .xm-cam-elf { scale: .78; transform-origin: 0 100%; left: 0; }
.is-swap .xm-cam-host { right: auto; left: 4px; }
/* "still in the box": the host kneels a step away, so the bauble peeking from the box is seen */
.is-swap.is-box-end .xm-cam-host { left: -7%; }
.is-swap .xm-cam-elf { left: auto; right: 6px; }
.is-result-panel { margin-top: -30px; padding-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.xm-endcard-text { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.xm-endcard-line { margin: 0; font: 700 15px/1.35 'Nunito', sans-serif; color: #6B5A4E; }
.is-result-panel .xm-endcard-score { color: var(--ink); }
.is-result-panel .xm-name { color: var(--red-d); }
/* the intro: outside the warm window on the snowy street, before the camera pushes in through the glass */
.xm-outside { position: absolute; inset: 0; z-index: 20; overflow: hidden; transform-origin: 50% 52%; }
.xm-outside-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xm-outside-glow { position: absolute; left: 50%; top: 52%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,217,160,.55), rgba(255,217,160,0) 65%); animation: xm-star 2.4s ease-in-out infinite alternate; }
.xm-play-snow { position: absolute; left: -2%; right: -2%; top: -22px; width: 104%; height: 44px; object-fit: fill; pointer-events: none; }
.xm-ribbon { position: absolute; left: 50%; top: -24px; width: 62%; max-width: 260px; transform: translateX(-50%); z-index: 2; filter: drop-shadow(0 4px 4px rgba(0,0,0,.28)); }
.xm-ribbon-pic { width: 100%; height: auto; }
/* on the answer panel the ribbon takes its own room, so its tails never cover the question's first line */
.xm-play > .xm-ribbon { position: relative; left: auto; top: auto; transform: none; margin: -54px auto 0; }
.xm-ribbon-text { position: absolute; inset: 0 18% 8%; display: flex; align-items: center; justify-content: center; color: #fff; white-space: nowrap;
  font: 800 15px/1 var(--title); letter-spacing: 1px; text-transform: uppercase; text-shadow: 0 2px 0 rgba(120,20,20,.6); }
.xm-play .xm-qbox { gap: 12px; padding-top: 6px; }
.xm-play .xm-name { color: var(--red-d); }
.xm-play .xm-q { padding: 2px 4px 0; text-align: center; }
.xm-play .xm-opt { border-color: #fff; box-shadow: 0 6px 0 #E6D3B4, 0 10px 18px rgba(120,80,30,.16); }
.xm-play .xm-opt::before { content: ''; position: absolute; z-index: 1; left: -10px; top: -10px; width: 38px; height: 33px; pointer-events: none;
  background: var(--holly) center / contain no-repeat; rotate: -12deg; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.xm-opt img.xm-ans-pic { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

/* the cast inside the camera: the Elf announces (top left), the host stands by the tree (bottom right) */
.xm-cam-elf { position: absolute !important; z-index: 6; left: 6px; top: 8px; width: 70px; }
.xm-cam-host, .xm-board-host { position: absolute !important; z-index: 6; right: 4px; bottom: 2px; }
.xm-cam .xm-say { z-index: 11; }
.xm-say.is-puppy { font-family: var(--title); font-size: 18px; }
.xm-meter { position: absolute; z-index: 6; left: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 3px; padding: 4px; border-radius: 8px; background: rgba(0,0,0,.25); }
.xm-meter i { display: block; width: 14px; height: 9px; border-radius: 3px; background: rgba(255,255,255,.16); transition: background .3s, box-shadow .3s; }
.xm-meter i.is-on { background: var(--gold); box-shadow: 0 0 8px rgba(255,211,77,.9); }
.xm-puppy { position: absolute; z-index: 7; bottom: 6px; left: -110px; width: 92px; }
.xm-puppy.is-trot { animation: xm-trot-in .9s cubic-bezier(.3,.8,.4,1) forwards; }
.xm-puppy.is-leave { animation: xm-trot-out .7s ease-in forwards; }
@keyframes xm-trot-in { 0% { transform: translateX(0) translateY(0); } 25% { transform: translateX(45px) translateY(-6px); } 50% { transform: translateX(90px) translateY(0); }
  75% { transform: translateX(118px) translateY(-5px); } 100% { transform: translateX(126px) translateY(0); } }
@keyframes xm-trot-out { from { transform: translateX(126px) scaleX(-1); } to { transform: translateX(-30px) scaleX(-1); } }
.xm-flash { position: absolute; inset: 0; z-index: 30; background: #fff; pointer-events: none; animation: xm-flash .7s ease-out forwards; }
@keyframes xm-flash { from { opacity: .95; } to { opacity: 0; } }

/* ── the baubles (a name painted on glass; on the tree they're sized by the tree's width) ───────────────────── */
.xm-bauble { --bw: calc(var(--cq, 1cqw) * 15); position: absolute; z-index: 3; width: var(--bw); display: flex; flex-direction: column; align-items: center; transform: translateX(-50%);
  transition: left .85s cubic-bezier(.34,1.25,.5,1), top .85s cubic-bezier(.34,1.25,.5,1), scale .4s, opacity .3s; }
/* what swings from the hook: the wire, the cap and the glass (and a long name's tag) */
.xm-bauble-swing { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; }
.xm-bauble-swing::before { content: ''; width: max(1.5px, calc(var(--bw) * .035)); height: calc(var(--bw) * .2); border-radius: 99px; background: linear-gradient(90deg, #8A6410, #FFE07A 50%, #8A6410); }
.xm-bauble-cap { width: 28%; height: calc(var(--bw) * .1); border-radius: 3px 3px 1px 1px; background: linear-gradient(90deg, #C99A12, #FFE07A, #C99A12); border: 1.5px solid var(--outline); margin-bottom: -2px; position: relative; z-index: 1; }
/* the glass catches its surroundings: the tree's green on its lower curve, a warm glint of the lights */
.xm-bauble-glass { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; container-type: inline-size; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 30% 26%, rgba(255,255,255,.95) 0, rgba(255,255,255,.4) 9%, rgba(255,255,255,0) 18%),
    radial-gradient(circle at 74% 34%, rgba(255,240,190,.85) 0, rgba(255,240,190,0) 5%),
    radial-gradient(ellipse 70% 34% at 50% 100%, var(--env, rgba(84,190,120,.55)) 0, rgba(84,190,120,0) 100%),
    radial-gradient(circle at 50% 50%, var(--b1) 0, var(--b1) 45%, var(--b2) 100%);
  border: 2px solid var(--outline); box-shadow: inset -4px -6px 0 rgba(0,0,0,.14), inset 0 0 0 1px rgba(255,255,255,.22), 0 4px 8px rgba(0,0,0,.3); }
/* its shadow on the needles behind it, down and to the right (the room's light is up on the left) */
.xm-bauble-shadow { position: absolute; z-index: -1; left: 16%; top: calc(var(--bw) * .44); width: 104%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(8,40,22,.7) 0, rgba(8,40,22,.42) 42%, rgba(8,40,22,0) 70%); pointer-events: none; transition: opacity .3s; }
/* the branch tip in front of the hook: the wire comes out from under it */
.xm-bauble-twig { position: absolute; z-index: 2; left: 50%; top: calc(var(--bw) * -.2); width: calc(var(--bw) * var(--twig, .95)); height: auto; transform: translateX(-50%); overflow: visible;
  transform-origin: 50% 0; pointer-events: none; transition: opacity .25s;
  -webkit-mask-image: radial-gradient(ellipse 62% 80% at 50% 72%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 62% 80% at 50% 72%, #000 58%, transparent 100%); }
/* not on a branch (in the box, flying up, at the tree's very edge, off the tree): no branch tip, no shadow */
.xm-bauble.is-boxed .xm-bauble-twig, .xm-bauble.is-flying .xm-bauble-twig, .xm-bauble.is-edge .xm-bauble-twig,
.xm-bauble.is-big .xm-bauble-twig, .xm-bauble.is-sheet .xm-bauble-twig { opacity: 0; }
.xm-bauble.is-boxed .xm-bauble-shadow, .xm-bauble.is-flying .xm-bauble-shadow, .xm-bauble.is-big .xm-bauble-shadow, .xm-bauble.is-sheet .xm-bauble-shadow { opacity: 0; }
/* it lands: the branch dips under the weight, the bauble swings and settles */
.xm-bauble.is-landed .xm-bauble-swing { animation: xm-land 1.5s cubic-bezier(.3,.6,.4,1); }
.xm-bauble.is-landed .xm-bauble-twig { animation: xm-dip .7s cubic-bezier(.3,1.5,.5,1); }
@keyframes xm-land { 0% { rotate: 16deg; } 22% { rotate: -11deg; } 44% { rotate: 6deg; } 66% { rotate: -3deg; } 84% { rotate: 1deg; } 100% { rotate: 0deg; } }
@keyframes xm-dip { 0% { transform: translateX(-50%); } 30% { transform: translateX(-50%) translateY(7%) scaleY(1.1); } 100% { transform: translateX(-50%); } }
.xm-bauble-name { max-width: 90%; white-space: nowrap; overflow: hidden; color: #fff; font: 800 calc(var(--cq, 1cqw) * 30 * var(--fs)) / 1.1 var(--hand);
  -webkit-text-stroke: max(2px, calc(var(--cq, 1cqw) * 5 * var(--fs))) rgba(40,20,20,.55); paint-order: stroke fill; letter-spacing: .01em; }
.xm-bauble-name.is-paint { animation: xm-paint .35s ease-out; }
/* a monogrammed bauble (long names): a big letter on the glass, the full name on a tag hanging below */
.xm-bauble.is-mono .xm-bauble-name { font-size: calc(var(--cq, 1cqw) * 46 * var(--fs)); line-height: 1; }
.xm-bauble-tag { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 3px); max-width: calc(var(--cq, 1cqw) * 38);
  padding: calc(var(--cq, 1cqw) * .5) calc(var(--cq, 1cqw) * 1.8); border-radius: calc(var(--cq, 1cqw) * 1.2);
  background: #FFF8EC; border: calc(var(--cq, 1cqw) * .45) solid var(--outline); color: var(--ink); font: 800 calc(var(--cq, 1cqw) * 3.9)/1.15 var(--title);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 calc(var(--cq, 1cqw) * .6) var(--cq, 1cqw) rgba(0,0,0,.3); pointer-events: none; }
/* the friend's own bauble keeps a gentle sway in the warm air (after a landing's swing has settled) */
.xm-bauble.is-friend { --bw: calc(var(--cq, 1cqw) * 20); z-index: 4; }   /* the hero: big enough for a whole name */
.xm-bauble.is-friend .xm-bauble-swing { animation: xm-sway 3.4s ease-in-out infinite alternate; }
.xm-bauble.is-friend.is-landed .xm-bauble-swing { animation: xm-land 1.5s cubic-bezier(.3,.6,.4,1), xm-sway 3.4s ease-in-out 1.5s infinite alternate; }
@keyframes xm-sway { from { rotate: -2.5deg; } to { rotate: 2.5deg; } }
.xm-bauble.is-friend .xm-bauble-glass { box-shadow: inset -4px -6px 0 rgba(0,0,0,.14), 0 0 0 3px rgba(255,255,255,.75), 0 0 18px rgba(255,243,176,.8); }
.xm-bauble.is-back { --bw: calc(var(--cq, 1cqw) * 11); z-index: 2; opacity: .85; filter: saturate(.85) brightness(.9); }
/* a crowded tree's friends (tree.js crowdLayout): bright little baubles spread over the whole tree */
.xm-bauble.is-back.is-crowd { --bw: calc(var(--cq, 1cqw) * 9.5); opacity: 1; filter: none; }
.xm-bauble.is-gold .xm-bauble-glass { --b1: #FFE07A; --b2: #C99A12; box-shadow: inset -4px -6px 0 rgba(0,0,0,.1), 0 0 22px rgba(255,211,77,.95); }
.xm-bauble.is-gold .xm-bauble-name { color: #fff; -webkit-text-stroke-color: rgba(120,70,0,.75); }
/* phase 7: the other friends' baubles during the climb (quieter than the friend's own), and the top hook's crown */
.xm-bauble.is-rival { --bw: calc(var(--cq, 1cqw) * 10); opacity: .78; }
/* the top hook's crown, worn at a tilt on the glass's shoulder (never under the star) */
.xm-bauble.is-hook .xm-bauble-glass::after { content: '👑'; position: absolute; right: -14%; top: -8%; rotate: 22deg;
  font-size: calc(var(--cq, 1cqw) * 46); line-height: 1; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); z-index: 3; }   /* (cqw of the glass) */
/* a name tag that would cover another bauble on a crowded tree stays off (the list below names everyone) */
.xm-bauble.is-untagged .xm-bauble-tag { display: none; }
/* the tag worn above the bauble, where it would have hung behind a character (tree.js frameBall) */
.xm-bauble.is-tag-up .xm-bauble-tag { top: auto; bottom: calc(100% + var(--bw) * .06); transform: translate(-50%, 0); }
.xm-bauble.is-boxed:not(.is-spot) .xm-bauble-tag { display: none; }   /* in the box the tag would poke out of the cardboard */
.xm-bauble.is-you .xm-bauble-glass { box-shadow: 0 0 0 3px #fff, 0 0 16px rgba(255,255,255,.8); }
/* the spotlight on the friend's own bauble (tree.js spotlight): the others fall into the dark, theirs grows and glows */
.xm-layer .xm-bauble { transition: left .85s cubic-bezier(.34,1.25,.5,1), top .85s cubic-bezier(.34,1.25,.5,1), scale .5s cubic-bezier(.3,1.4,.5,1), opacity .3s, filter .5s; }
.xm-layer.is-spotlight .xm-bauble:not(.is-you) { filter: brightness(.38) saturate(.6); }
.xm-bauble.is-you.is-spot { scale: 1.35; z-index: 8; opacity: 1; filter: none; }
.xm-bauble.is-you.is-spot.is-peek { translate: 22% -44%; }     /* risen out of the box, clear of the Elf beside it */
.xm-bauble.is-you.is-spot .xm-bauble-glass { animation: xm-spot 1s ease-in-out infinite alternate; }
.xm-bauble.is-you.is-spot.is-untagged .xm-bauble-tag { display: block; }
@keyframes xm-spot { from { box-shadow: 0 0 0 3px #fff, 0 0 18px 6px rgba(255,236,160,.75); } to { box-shadow: 0 0 0 4px #fff, 0 0 40px 16px rgba(255,236,160,1); } }
.xm-bauble.is-front { scale: 1.25; }
.xm-bauble.is-spin .xm-bauble-glass { animation: xm-spin 1.2s ease-in-out 2; }
@keyframes xm-spin { 50% { transform: rotateY(180deg) rotate(8deg); } }
.xm-bauble.is-peek { translate: 0 -34%; transition: translate .5s cubic-bezier(.3,1.4,.5,1); }
.xm-bauble[role="button"] { cursor: pointer; }
/* outside the tree: a big bauble (the invitation, the result, the answers sheet) */
.xm-bauble.is-big, .xm-bauble.is-sheet { position: relative; transform: none; z-index: 1; }
.xm-bauble.is-big { --bw: 116px; }
/* off the tree there is no green to reflect */
.xm-bauble.is-big, .xm-bauble.is-sheet { --env: rgba(84,190,120,0); }
/* the big bauble carries the whole name: on two lines at its spaces, sized by the longest word (tree.js) */
.xm-bauble.is-big .xm-bauble-name, .xm-bauble.is-wrap .xm-bauble-name { white-space: normal; text-align: center; line-height: 1; overflow-wrap: normal; word-break: keep-all; }
.xm-bauble.is-sheet { --bw: 64px; flex: none; }
.xm-bauble.is-big .xm-bauble-swing::before, .xm-bauble.is-sheet .xm-bauble-swing::before { height: 14px; }
.xm-bauble.is-blank .xm-bauble-name { visibility: hidden; }   /* no "?" on a bauble waiting for a name: plain glass (owner, 2026-10-26) */
/* the friend's invite: what they'll do, before they type their name */
.xm-invite-rule { margin: 2px 4px 10px; font-size: 15px; line-height: 1.35; color: var(--ink); }
.xm-ballrow { display: flex; justify-content: center; margin-top: -4px; }
/* the invite: the envelope on the snowy street; the bauble hangs from the panel's top edge */
.xm-hero.is-invite { height: auto; min-height: 0; padding: calc(64px + env(safe-area-inset-top)) 14px 34px; }
.xm-hero.is-invite .xm-envelope { position: relative; z-index: 3; }
.xm-hero.is-invite .xm-hero-glow { top: 38%; }
.is-invite .xm-play .xm-ballrow { margin-top: -66px; position: relative; z-index: 3; }
.is-invite .xm-play .xm-label { color: var(--ink); }

/* ── questions (the creator's gift tags, the friend's cards) ──────────────────────────────────────────────── */
.xm-progress { flex: 1; max-width: 160px; height: 10px; border-radius: 99px; background: rgba(255,255,255,.16); overflow: hidden; }
.xm-progress i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--red), var(--gold)); transition: width .4s; }
.xm-qbox { display: flex; flex-direction: column; gap: 12px; }
.xm-gifttag { padding: 16px 16px 16px 40px; rotate: -1deg; border-radius: 10px 22px 22px 10px; }
.xm-gifttag-hole { position: absolute; left: 13px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--night); border: 2.5px solid var(--gold); }
.xm-qcard { padding: 14px 16px; }
.xm-q { font: 800 clamp(18px, 5.2vw, 21px)/1.25 var(--title); text-wrap: balance; }
/* minmax(0, …): a long word (Tamil "நடுத்தரமானவை") can't widen its column off the screen; it overflows its own
   card instead, where fitText sees it and shrinks it */
.xm-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.xm-opts.is-many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xm-opt { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 6px 6px 10px; border: 3px solid #fff; border-radius: 18px; background: #fff; color: var(--ink);
  cursor: pointer; text-align: center; box-shadow: 0 5px 0 #C9BFAF, 0 10px 18px rgba(0,0,0,.2); transition: transform .18s, box-shadow .18s, border-color .2s; }
.xm-opt img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: #F1EADF; }
.xm-opts.is-many .xm-opt img { aspect-ratio: 1; }
/* four answers on a short phone: a little less picture, so the tree keeps its room above them */
@media (max-height: 760px) { .xm-opts.is-grid .xm-opt img { aspect-ratio: 16 / 10; } }
.xm-opt-text { font: 800 15px/1.2 'Nunito', sans-serif; overflow-wrap: anywhere; }
.xm-opts.is-many .xm-opt-text { font-size: 13px; }
.xm-opt:active { transform: translateY(3px); box-shadow: 0 2px 0 #C9BFAF; }
.xm-opt.is-picked { transform: translateY(-6px) scale(1.03); border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold), 0 0 26px rgba(255,211,77,.75); }
.xm-opt.is-right { border-color: #3FA66B; box-shadow: 0 0 0 4px #3FA66B, 0 0 26px rgba(63,166,107,.8); }
/* the tick and the cross are drawn (not ✓/✗ characters, which every phone's symbol font set at its own height):
   dead centre in the circle on every device (owner, 2026-11-03) */
.xm-opt.is-right::after, .xm-opt.is-answer::after, .xm-opt.is-wrong::after { content: ''; position: absolute; top: -12px; right: -10px; width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.3); background-position: center; background-repeat: no-repeat; background-size: 20px 20px; }
.xm-opt.is-right::after, .xm-opt.is-answer::after { background-color: #3FA66B;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.xm-opt.is-wrong { border-color: var(--red); box-shadow: 0 0 0 4px var(--red); animation: xm-shake .4s; transform: none; }
.xm-opt.is-wrong::after { background-color: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7l10 10M17 7L7 17' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round'/%3E%3C/svg%3E"); }
.xm-opt.is-answer { border-color: #3FA66B; animation: xm-answer .9s ease-in-out 2; }
@keyframes xm-answer { 50% { box-shadow: 0 0 0 4px #3FA66B, 0 0 30px rgba(63,166,107,.9); } }
.xm-saving { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }

/* ── the creator's tree, the scoreboard ───────────────────────────────────────────────────────────────────── */
.xm-board-heading { margin-top: 12px; }
.xm-board { display: flex; flex-direction: column; gap: 8px; }
.xm-empty { padding: 8px 12px; }
.xm-row-friend { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 10px; border-radius: 16px; background: var(--paper); color: var(--ink);
  box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.xm-row-friend.is-you { box-shadow: 0 0 0 3px var(--gold), 0 4px 0 rgba(0,0,0,.18); }
.xm-rank { flex: none; width: 24px; text-align: center; font: 800 16px/1 var(--title); color: var(--muted); }
.xm-mini-bauble { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--outline);
  background: radial-gradient(circle at 30% 26%, rgba(255,255,255,.9) 0, rgba(255,255,255,0) 22%), radial-gradient(circle, var(--b1) 45%, var(--b2)); }
.xm-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.xm-row-main strong { font: 800 17px/1.3 var(--title); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xm-zone { align-self: flex-start; padding: 3px 8px; border-radius: 99px; font: 800 12px/1.1 'Nunito', sans-serif; color: #fff; background: #8D7A6B; white-space: nowrap; }
/* a friend's row: the name on top; the zone and the score below; compact buttons that never squeeze the name */
.xm-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; min-width: 0; }   /* a long zone pill: the score goes under it, never under the buttons */
.xm-row-meta .xm-score { font-size: 15px; }
.xm-row-friend { gap: 8px; }
.xm-row-friend.is-tap { cursor: pointer; transition: transform .12s; }
.xm-row-friend.is-tap:active { transform: scale(.98); }
.xm-row-go { flex: none; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #FFE7A0;
  color: var(--ink); font: 800 22px/1 var(--title); }
@media (max-width: 374px) {
  .xm-row-friend { padding: 8px 6px 8px 8px; gap: 6px; }
  .xm-rank { width: 16px; font-size: 14px; }
  .xm-mini-bauble { width: 22px; height: 22px; }
  .xm-row-go { width: 26px; height: 26px; font-size: 19px; }
  .xm-row-remove { width: 24px; }
}
.xm-zone.is-top { background: #C99A12; } .xm-zone.is-front { background: #2E8B57; } .xm-zone.is-bottom { background: #2B5AA6; }
.xm-score { flex: none; font: 800 17px/1 var(--title); color: var(--red-d); }
.xm-row-see { flex: none; min-height: 38px; padding: 0 10px; border: 0; border-radius: 12px; background: #FFE7A0; color: var(--ink); font: 800 13px/1 'Nunito', sans-serif; cursor: pointer; }
.xm-row-remove { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font: 800 22px/1 var(--title); cursor: pointer; }
.xm-row-confirm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 14px; background: rgba(0,0,0,.3); font-weight: 800; }
.xm-row-confirm span { flex: 1 1 100%; }
/* on the cream panel: the confirm is warm paper with a gold edge (the night theme's dark glass looked muddy here) */
.xm-play .xm-row-confirm { background: #FFF1D6; border: 2px solid #F1D9AE; color: var(--ink); box-shadow: 0 3px 0 #EEDCBC; }
.xm-row { display: flex; gap: 10px; }
.xm-row > .xm-btn { flex: 1; font-size: 18px; min-height: 52px; }
.xm-delete { margin-top: 10px; display: flex; flex-direction: column; gap: 10px; }
.xm-delete .xm-link { color: #8F9BC0; font-size: 14px; }
.xm-play .xm-delete .xm-link { color: #8A7466; }      /* readable on the cream panel, still quiet */
/* the two answers share the whole width, so "Take it down" / "Stehen lassen" stay on one line on a 320 px phone */
.xm-delete .xm-row { align-self: stretch; }
.xm-delete .xm-row > .xm-btn { flex: 1 1 0; min-width: 0; padding-inline: 10px; font-size: 16px; }

/* the answers sheet (the creator only) */
.xm-sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; background: rgba(10,14,32,.6); }
.xm-sheet-panel { width: 100%; max-width: 480px; max-height: 88vh; overflow: auto; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0;
  background: var(--paper); color: var(--ink); }
.xm-sheet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.xm-sheet-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.xm-sheet-head .xm-h2 { font-size: clamp(19px, 5.6vw, 24px); overflow-wrap: anywhere; }
.xm-sheet-head .xm-name { white-space: normal; display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; }   /* wrapped: a scribble per line, no gap before "'s" */
.xm-sheet .xm-name { color: var(--red-d); }
.xm-sheet-close { flex: none; align-self: flex-start; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #EFE6D6; color: var(--ink); font: 800 24px/1 var(--title); cursor: pointer; }
/* the landing's language switch (Bail Me Out's / Don't Block Me's): globe · this language · round arrow; a tap opens the
   drawer with every language in its own name */
.xm-langfield { display: flex; align-items: center; gap: 10px; width: 100%; height: 50px; margin: 0; padding: 0 6px 0 14px; border-radius: 18px;
  background: #fff; border: 2.5px solid var(--ink); box-shadow: 0 3px 0 rgba(35,34,43,.3); color: var(--ink); cursor: pointer; text-align: start;
  font: 800 17px/1.1 var(--title); -webkit-tap-highlight-color: transparent; }
.xm-langfield:active { translate: 0 2px; box-shadow: 0 1px 0 rgba(35,34,43,.3); }
.xm-langfield:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.xm-langfield-globe { flex: none; font-size: 22px; line-height: 1; }
/* a line tall enough for नेपाली and 日本語 (the ellipsis needs the clipping box) */
.xm-langfield b { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.6; padding-top: 1px; }
.xm-langfield-arrow { flex: none; position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--red); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); }
.xm-langfield-arrow::after { content: ''; position: absolute; left: 50%; top: 44%; width: 9px; height: 9px; border: solid #fff; border-width: 0 3px 3px 0; border-radius: 1px;
  translate: -50% -50%; rotate: 45deg; }
.xm-sheet-panel.is-langs .xm-sheet-head { align-items: center; }
.xm-langlist { display: flex; flex-direction: column; }
.xm-langlist a { display: block; padding: 13px 12px; border-bottom: 1px solid #EFE6D6; border-radius: 12px; text-align: center; text-decoration: none; color: var(--ink);
  font: 800 18px/1.25 var(--title); }
.xm-langlist a:last-child { border-bottom: 0; }
.xm-langlist a:is(:lang(ar), :lang(th)) { font-size: 21px; }   /* the phone's own font for these runs small */
.xm-langlist a:active, .xm-langlist a:focus-visible { background: #F4EEE3; outline: none; }
.xm-langlist a.is-now { background: #FFE3E1; color: var(--red-d); }
.xm-langlist a.is-now::after { content: ' ✓'; }
/* a drawer's grab handle, as a phone's own sheets */
.xm-sheet-panel::before { content: ''; display: block; width: 44px; height: 5px; margin: -6px auto 12px; border-radius: 3px; background: #DCCFB8; }
.xm-answers { display: flex; flex-direction: column; gap: 14px; }
/* each answer a card: the question, then the pictures (the creator's own cat or bear) with who chose them */
.xm-answer { padding: 12px 12px 14px; border-radius: 20px; background: #fff; border: 2px solid #F1E2C8; box-shadow: 0 4px 0 #EEDCBC, 0 8px 16px rgba(120,80,30,.1);
  display: flex; flex-direction: column; gap: 12px; }
.xm-answer-q { display: flex; align-items: flex-start; gap: 9px; font: 800 16px/1.25 var(--title); }
.xm-answer-q > span:last-child { min-width: 0; padding-top: 2px; }
.xm-answer-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--ink); text-align: center; font: 800 14px/26px var(--title);
  box-shadow: inset 0 -2px 0 rgba(0,0,0,.15); }
.xm-answer-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.xm-pick { position: relative; margin: 0; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.xm-pick-pic { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #F4EEE3; border: 3px solid #fff;
  box-shadow: 0 0 0 2.5px var(--pick), 0 5px 12px rgba(120,80,30,.16); }
.xm-pick-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.xm-pick.is-right { --pick: #3FA66B; } .xm-pick.is-wrong { --pick: var(--red); }
.xm-pick.is-wrong .xm-pick-pic img { filter: saturate(.75); }
.xm-pick-mark { position: absolute; top: -8px; inset-inline-end: -8px; width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid #fff; background: var(--pick);
  color: #fff; text-align: center; font: 800 17px/25px var(--title); box-shadow: 0 3px 8px rgba(0,0,0,.2); }
.xm-pick figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.xm-pick-text { font-weight: 800; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.xm-answer-who { max-width: 100%; padding: 3px 9px; border-radius: 99px; background: #F4EEE3; font-size: 12px; font-weight: 800; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: plaintext; }   /* a Latin name in Arabic: "QA Bartho…", not "…artholomew" */
.xm-pick.is-right .xm-answer-who { background: #E3F4EA; color: #23704A; }
/* the same answer: its picture once, both of them beside it */
.xm-answer.is-right { border-color: #BFE5CD; background: linear-gradient(180deg, #fff 60%, #F1FAF4); }
.xm-match { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; align-self: center; }
.xm-match-who { display: flex; flex-wrap: wrap; gap: 5px; }
.xm-match .xm-answer-who { background: #E3F4EA; color: #23704A; }
.xm-match .xm-pick-text { font-size: 15px; }
.xm-dots.xm-center { justify-content: center; padding: 14px 0; }

/* ── 2.1 the invitation: the envelope and the card ────────────────────────────────────────────────────────── */
.xm-envelope { position: relative; padding: 0 12px 74px; overflow: hidden; border-radius: 0 0 18px 18px; }
.xm-envelope-back { position: absolute; left: 0; right: 0; bottom: 0; height: 130px; border-radius: 14px; background: linear-gradient(#B42B29, #8E1F1D); border: 3px solid #3B2A26; }
.xm-envelope-front { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 92px; border-radius: 0 0 14px 14px; background: linear-gradient(#EF5450, #D23430);
  clip-path: polygon(0 0, 50% 52%, 100% 0, 100% 100%, 0 100%); border: 3px solid #3B2A26; }
.xm-envelope-seal { position: absolute; z-index: 3; left: 50%; bottom: 30px; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFE7A0, #C99A12); border: 3px solid #3B2A26; transition: transform .4s cubic-bezier(.5,-0.6,.7,1), opacity .4s; }
.xm-envelope-seal::after { content: '✦'; position: absolute; inset: 0; color: #8A5A10; font-size: 22px; line-height: 40px; text-align: center; }
.xm-xcard { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 14px 18px; border-radius: 18px;
  background: var(--paper); color: var(--ink); border: 3px solid #fff; box-shadow: 0 8px 20px rgba(0,0,0,.25); transition: transform .9s cubic-bezier(.2,1.1,.3,1); }
.xm-xcard .xm-h2 { font-size: 24px; }
.xm-xcard .xm-name { color: var(--red-d); }
.xm-envelope.is-sealed .xm-xcard { transform: translateY(72%); }
.xm-envelope.is-open .xm-envelope-seal { transform: scale(0) rotate(120deg); opacity: 0; }
.xm-polaroid { padding: 8px 8px 0; background: #fff; border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.25); rotate: -3deg; text-align: center; }
.xm-polaroid-pic { position: relative; width: 190px; height: 128px; overflow: hidden; border-radius: 3px; background: radial-gradient(circle at 70% 30%, #FFE7BE, #E9A86A); }
.xm-polaroid-tree { position: absolute; left: 6px; bottom: -4px; height: 132px; width: auto; }
.xm-polaroid-host { position: absolute !important; right: 4px; bottom: 0; }
.xm-polaroid-name { display: block; padding: 6px 4px 8px; font: 800 17px/1 var(--hand); color: var(--ink); }
.xm-sticker { padding: 7px 14px; border-radius: 12px; background: var(--gold); color: var(--ink); font: 800 15px/1.25 'Nunito', sans-serif; text-align: center;
  rotate: 2deg; border: 2.5px solid var(--outline); box-shadow: 0 3px 0 rgba(0,0,0,.2); }
/* who is on the tree already (phase 7), under the mood sticker; the room under it keeps it clear of the snow strip
   that overlaps the bottom of the tag (it hid the second line on short phones) */
.xm-proof { margin: 8px 0 26px; font: 800 14px/1.3 'Nunito', sans-serif; color: var(--ink); text-align: center; text-wrap: balance; }
.xm-proof-line { display: block; }

/* ── the endings' result card (on the night window) ───────────────────────────────────────────────────────── */
.xm-endcard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 8px; padding: 22px 16px 20px; border-radius: 22px;
  border: 8px solid #6A3E2A; background: radial-gradient(circle at 50% 0, #34508A, #1F2B4D 70%); box-shadow: 0 0 0 3px #3B2A26, 0 16px 34px rgba(0,0,0,.4); }
.xm-endcard.is-top { box-shadow: 0 0 0 3px #3B2A26, 0 0 40px rgba(255,211,77,.55); }
.xm-endcard .xm-h1 { color: var(--gold); font-size: clamp(32px, 9.5vw, 42px); -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; }
.xm-endcard-ball { display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin-top: -8px; }
.xm-endcard-ball .xm-bauble.is-big { --bw: 104px; align-self: flex-start; }
.xm-endcard-side { width: 84px; height: auto; filter: drop-shadow(0 5px 5px rgba(0,0,0,.3)); }
.xm-endcard-side.is-box { width: 92px; }
.xm-endcard-score { margin: 0; font: 800 18px/1.35 'Nunito', sans-serif; text-align: center; }
.xm-perfect { padding: 6px 14px; border-radius: 99px; background: var(--gold); color: var(--ink); font: 800 16px/1 var(--title); box-shadow: 0 0 18px rgba(255,211,77,.8); }
.xm-perfect.is-hook { background: #C8262C; color: #fff; box-shadow: 0 0 18px rgba(200,38,44,.55); }
/* the named comeback over the "decorate your own tree" button (phase 7) */
.xm-comeback { margin: 4px 0 -4px; font: 800 16px/1.3 'Nunito', sans-serif; color: var(--ink); text-align: center; text-wrap: balance; }
.xm-zone.is-hook { background: #C8262C; }
.xm-actions { display: flex; flex-direction: column; gap: 12px; }
.xm-actions > .xm-btn.is-ghost { margin-top: 2px; }

/* ── a tree taken down ────────────────────────────────────────────────────────────────────────────────────── */
.xm-closed-scene { position: relative; height: clamp(240px, 42vh, 340px); margin-top: 20px; }
.xm-closed-tree { position: absolute; left: 50%; bottom: 0; height: 100%; width: auto; transform: translateX(-56%); opacity: .85; filter: saturate(.6); }
.xm-closed-elf { position: absolute; right: 8%; bottom: 0; width: 84px; }
.is-closed .xm-btn { font-size: clamp(15px, 4.8vw, 19px); white-space: nowrap; }   /* one line on a 320 px phone */

@media (prefers-reduced-motion: reduce) {
  .xm-layer, .xm-bauble, .xm-box-lid { transition: none; }
  .xm-bauble .xm-bauble-swing, .xm-bauble .xm-bauble-twig { animation: none !important; }
  .is-on .xm-glow, .is-star .xm-star-glow, .xm-flame { animation: none; }
  .xm-puppy.is-trot { animation: none; transform: translateX(126px); }
  .xm-bauble.is-you.is-spot .xm-bauble-glass { animation: none; box-shadow: 0 0 0 4px #fff, 0 0 30px 12px rgba(255,236,160,.9); }
}

/* ══ the gift game's own pieces ════════════════════════════════════════════════════════════════════════════ */

/* ── 1.1 the landing: the title's bow, the parcel in the snow ──────────────────────────────────────────────── */
.xm-logo-main { position: relative; }
.xm-title-bow { position: absolute; right: -6px; top: -10px; width: 34px; height: 34px; opacity: 0; transform: scale(.2) rotate(-40deg);
  transition: opacity .35s, transform .55s cubic-bezier(.2,1.5,.4,1); }
.xm-title-bow::before { content: '\1F380'; font-size: 30px; line-height: 34px; -webkit-text-stroke: 0; }
.xm-title-bow.is-tied { opacity: 1; transform: none; }
.xm-hero-parcel { position: absolute; z-index: 3; left: 8%; bottom: 40px; width: 24%; height: auto; filter: drop-shadow(0 6px 6px rgba(0,0,0,.35)); rotate: -6deg; }

/* ── 1.2 / 1.4 the wish list on the desk ───────────────────────────────────────────────────────────────────── */
.xm-desk { position: relative; flex: none; height: 46vh; height: 46dvh; min-height: 300px; overflow: hidden; }
.xm-desk-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
/* sized by the desk's height (a short phone keeps the whole paper, its name at the top, in view) */
.xm-list-paper { position: absolute; z-index: 3; left: 50%; bottom: 6%; height: 78%; max-width: 60%; aspect-ratio: 285 / 480; transform: translateX(-50%) rotate(-3deg); }
.xm-list-pic { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.35)); }
.xm-list-name { position: absolute; left: 13%; right: 13%; top: 9%; overflow: hidden; color: var(--red-d); text-align: center; white-space: nowrap;
  font: 800 calc(clamp(15px, 4.8vw, 21px) * var(--fs, 1))/1.15 var(--hand); padding-bottom: .2em; }   /* the handwriting's tails (y, g, j) were clipped by the box */
.xm-list-name.is-paint { animation: xm-paint .35s ease-out; }
.xm-desk-elf { position: absolute !important; z-index: 4; right: 6%; bottom: 10%; }
.xm-desk .xm-say { z-index: 7; }
/* the wish list while answering: the paper big on the desk, each answer pinned on it as a sticker with a tick */
.xm-cam.is-desk-stage { background: #3A2742; }
.is-climb .xm-cam.is-desk-stage { min-height: clamp(230px, 40vh, 360px); min-height: clamp(230px, 40dvh, 360px); }
.xm-cam.is-desk-stage .xm-desk-bg { object-position: 50% 70%; }
.xm-list-paper.is-desk { bottom: 5%; height: 88%; left: 42%; }
.xm-list-stickers { position: absolute; left: 15%; right: 15%; top: 20%; bottom: 10%; display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 18%; gap: 2% 8%; }
.xm-list-sticker { position: relative; display: block; border: 3px solid #fff; border-radius: 6px; rotate: var(--r, 0deg); box-shadow: 0 3px 6px rgba(0,0,0,.25); background: #fff; }
.xm-list-sticker img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 3px; }
.xm-list-tick { position: absolute; right: -8px; top: -8px; width: 20px; height: 20px; border-radius: 50%; background: #3FA66B; border: 2px solid #fff; color: #fff;
  font: 900 12px/16px 'Nunito', sans-serif; font-style: normal; text-align: center; box-shadow: 0 2px 3px rgba(0,0,0,.3); }
.xm-desk-host { position: absolute !important; z-index: 5; right: 2%; bottom: 26px; }

/* ── 1.5 the empty spot: golden "From: ?" tags on the rug under the tree ───────────────────────────────────── */
.xm-floor-tag { position: absolute; z-index: 3; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--cq, 1cqw) * .8) calc(var(--cq, 1cqw) * 1.4); border-radius: calc(var(--cq, 1cqw) * 1.6);
  background: linear-gradient(#FFE7A0, #F2BF26); border: calc(var(--cq, 1cqw) * .5) solid var(--outline); box-shadow: 0 3px 4px rgba(0,0,0,.3); rotate: -8deg; }
.xm-floor-tag:nth-child(even) { rotate: 7deg; }
.xm-floor-tag i { font: 800 calc(var(--cq, 1cqw) * 2.6)/1 var(--hand); font-style: normal; color: #7A4A08; }
.xm-floor-tag b { font: 800 calc(var(--cq, 1cqw) * 4.4)/1 var(--title); color: var(--red-d); }

/* ── the presents (a friend's gift: its paper is their ending; their name on a little tag) ─────────────────── */
.xm-present { position: absolute; z-index: 4; width: calc(var(--cq, 1cqw) * 21); transform: translate(-50%, -100%); transform-origin: 50% 100%; }
.xm-present.is-row1 { z-index: 3; width: calc(var(--cq, 1cqw) * 17); }
.xm-present.is-row2 { z-index: 2; width: calc(var(--cq, 1cqw) * 14); }
.xm-present.is-best { z-index: 5; width: calc(var(--cq, 1cqw) * 27); }
.xm-present-swing { position: relative; display: block; transform-origin: 50% 100%; }
.xm-present-pic { display: block; width: 100%; height: auto; filter: drop-shadow(0 5px 4px rgba(0,0,0,.35)); }
/* a long name wraps onto a second line inside the tag's width (it used to end in "…": "QA Christ…") */
.xm-present-tag { position: absolute; left: 50%; bottom: -2%; transform: translateX(-50%) rotate(-4deg); width: max-content; max-width: 130%; min-width: min-content; padding: 1px 6px 2px; border-radius: 5px;
  background: var(--paper); border: 2px solid var(--outline); color: var(--ink); text-align: center;
  font: 800 calc(var(--cq, 1cqw) * 3.4)/1.15 var(--hand); box-shadow: 0 2px 2px rgba(0,0,0,.25); }
.xm-present.is-row2 .xm-present-tag { display: none; }
/* the pile under the tree: the rows behind show no tag (except your own; the list has every name), the front row's
   tags fit the gap between presents and the best gift's keeps its full width */
.xm-present.is-row1:not(.is-you) .xm-present-tag { display: none; }
.xm-present.is-row0:not(.is-best) .xm-present-tag { max-width: 112%; font-size: calc(var(--cq, 1cqw) * 3); }
.xm-present.is-low-tag .xm-present-tag { bottom: -20%; }   /* staggered: neighbouring names never overlap */
.xm-present.is-row0:not(.is-low-tag):not(.is-best) .xm-present-tag { bottom: 14%; }   /* …and the others hang a step higher, on the box */
.xm-present.is-row0.is-best:not(.is-low-tag) .xm-present-tag { bottom: 30%; }   /* the best one too: it overlapped both low names */
.xm-present.is-row0:not(.is-low-tag) { z-index: 5; }   /* a name on the box: that box in front of its neighbours (their names hang below) */
.xm-present.is-best .xm-present-swing::before { content: '\1F451'; position: absolute; z-index: 1; left: 58%; top: -22%; transform: translateX(-50%) rotate(14deg);
  font-size: calc(var(--cq, 1cqw) * 11); line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.xm-present.is-gold .xm-present-pic, .xm-present.is-perfect .xm-present-pic { filter: drop-shadow(0 0 10px rgba(255,211,77,.9)) drop-shadow(0 5px 4px rgba(0,0,0,.3)); }
.xm-present.is-arrive { animation: xm-present-in .6s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes xm-present-in { from { opacity: 0; transform: translate(-50%, -100%) translateY(-60%) scale(.4) rotate(-20deg); } }
.xm-layer.is-spotlight .xm-present:not(.is-spot) { opacity: .35; filter: brightness(.6); transition: opacity .5s, filter .5s; }
.xm-present.is-spot { z-index: 9; animation: xm-present-spot 1.1s ease-in-out infinite alternate; }
@keyframes xm-present-spot { from { transform: translate(-50%, -100%) scale(1.25); filter: drop-shadow(0 0 0 rgba(255,236,160,0)); }
  to { transform: translate(-50%, -100%) scale(1.35); filter: drop-shadow(0 0 16px rgba(255,236,160,.95)); } }
.xm-present.is-you .xm-present-tag { background: var(--gold); }
.xm-mini-present { flex: none; width: 34px; height: auto; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.xm-sheet-present { flex: none; width: 56px; height: auto; filter: drop-shadow(0 3px 3px rgba(0,0,0,.25)); }
.is-reveal .xm-cam.is-stage { background: #3A2742; }

/* ── 2.1 the invitation: a big gift tag, "To: {creator}" on the front, "From: ___" on the back ──────────────── */
.xm-bigtag { position: relative; z-index: 3; margin: 0 auto; width: min(100%, 360px); perspective: 900px; }
.xm-bigtag-string { position: absolute; left: 50%; top: -40px; width: 3px; height: 50px; margin-left: -1.5px; background: #B42B29; border-radius: 2px; }
.xm-bigtag-inner { position: relative; display: grid; transition: transform .7s cubic-bezier(.3,1.2,.4,1); transform-style: preserve-3d; }
.xm-bigtag.is-flipped .xm-bigtag-inner { transform: rotateY(180deg); }
.xm-tag-face { grid-area: 1 / 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 14px 18px; border-radius: 22px 22px 18px 18px;
  background: var(--paper); color: var(--ink); border: 3px solid #fff; box-shadow: 0 8px 20px rgba(0,0,0,.25); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.xm-tag-face::before { content: ''; position: absolute; left: 50%; top: 8px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #3A2742; box-shadow: inset 0 0 0 3px #C99A12; }
.xm-tag-face.is-back { transform: rotateY(180deg); justify-content: center; background: linear-gradient(#FFF4D2, #FFE7A0); }
.xm-tag-face .xm-h2 { font-size: 24px; }
.xm-tag-face .xm-name { color: var(--red-d); }
.xm-tag-to { font: 800 22px/1.1 var(--hand); color: var(--red-d); }
.xm-tag-from { font: 800 26px/1 var(--hand); color: #7A4A08; }
.xm-tag-from-name { min-height: 1.2em; font: 800 clamp(30px, 10vw, 44px)/1.1 var(--hand); color: var(--red-d); text-align: center; overflow-wrap: anywhere; }
.xm-tag-from-name.is-paint { animation: xm-paint .35s ease-out; }
.xm-hero.is-invite .xm-bigtag { margin-top: 18px; }
@media (prefers-reduced-motion: reduce) { .xm-bigtag-inner { transition: none; } }

/* ── 2.2–2.3 the market: the painting pans, the Elf behind the counter, the box on the snow ────────────────── */
.xm-cam.is-market { background: #1F2B4D; container-type: size; }
.is-climb .xm-cam.is-market { min-height: clamp(260px, 44vh, 400px); min-height: clamp(260px, 44dvh, 400px); }
.xm-market-pan { position: absolute; inset: 0; }
.xm-market-pic { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 0 50%; transition: object-position 1.1s cubic-bezier(.45,0,.2,1); }
.xm-market-dim { position: absolute; inset: 0; z-index: 1; background: #0B0F24; opacity: 0; transition: opacity .8s; pointer-events: none; }
.xm-cam.is-market.is-dim .xm-market-dim { opacity: .55; }
/* the counter is 74% of the stage wide (its picture 480 × 244): its top is 22px + 37.6cqw up; the Elf stands behind
   it, his upper half above it */
.xm-market-counter { position: absolute; z-index: 4; right: -6%; bottom: 22px; width: 74%; height: auto; filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); }
.xm-market-elf { position: absolute !important; z-index: 3; right: 18%; bottom: calc(22px + 24cqw); }
.xm-present.is-shop { left: 20%; top: auto; bottom: 26px; width: 30%; max-width: 140px; transform: translateX(-50%); z-index: 5; }
.xm-present.is-shop.is-whirl .xm-present-swing { animation: xm-whirl .7s cubic-bezier(.3,1.2,.4,1); }
@keyframes xm-whirl { 0% { transform: none; } 35% { transform: rotate(-200deg) scale(.6); filter: brightness(1.8); } 70% { transform: rotate(20deg) scale(1.15); } 100% { transform: none; } }
.xm-drop { position: absolute; z-index: 6; width: 64px; height: auto; transform: translate(-50%, -50%); pointer-events: none; animation: xm-drop .7s cubic-bezier(.5,0,.8,.6) forwards;
  filter: drop-shadow(0 4px 4px rgba(0,0,0,.35)); }
.xm-drop.is-silly { width: 70px; animation-name: xm-drop-silly; }
@keyframes xm-drop { 0% { opacity: 0; transform: translate(-50%, -260%) scale(.6) rotate(-30deg); } 25% { opacity: 1; } 80% { opacity: 1; transform: translate(-50%, -40%) scale(.8); }
  100% { opacity: 0; transform: translate(-50%, 0) scale(.3); } }
@keyframes xm-drop-silly { 0% { opacity: 0; transform: translate(180%, -320%) scale(.7) rotate(60deg); } 20% { opacity: 1; } 75% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-15deg); }
  100% { opacity: 0; transform: translate(-50%, -10%) scale(.4) rotate(10deg); } }
.xm-badge { position: absolute; z-index: 8; left: 10px; top: calc(54px + env(safe-area-inset-top)); width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, #FFE7BE, #E9A86A); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--outline), 0 6px 12px rgba(0,0,0,.35); }
.xm-badge-pic { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); }
.xm-badge-host img.is-art { animation: none; }
.xm-tagbar { position: absolute; z-index: 8; left: 86px; right: 10px; top: calc(62px + env(safe-area-inset-top)); display: flex; gap: 4px; pointer-events: none; }
.xm-tagbar i { position: relative; flex: 1; max-width: 26px; aspect-ratio: 3 / 4; border-radius: 4px 4px 6px 6px; background: rgba(255,248,236,.25); border: 2px solid rgba(255,255,255,.55);
  transition: background .35s, border-color .35s, transform .35s; }
.xm-tagbar i::after { content: ''; position: absolute; left: 50%; top: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: rgba(0,0,0,.35); }
.xm-tagbar i.is-right { background: linear-gradient(#FFE7A0, #F2BF26); border-color: #fff; box-shadow: 0 0 8px rgba(255,211,77,.8); transform: rotate(-6deg); }
.xm-tagbar i.is-wrong { background: #8D7A6B; border-color: rgba(255,255,255,.6); }
.xm-tagbar i.is-wrong::before { content: '\1F9E6'; position: absolute; inset: 0; font-size: 12px; line-height: 2.2; text-align: center; }
.xm-market-host { position: absolute !important; z-index: 6; left: 36%; bottom: 26px; }
.xm-cam.is-market .xm-say { z-index: 11; }

/* ── 3 Christmas morning: the room in sunrise light, the gift on the rug ───────────────────────────────────── */
.xm-scene.is-morning-film { padding: 0; gap: 0; background: #F3D7A8; }
.is-morning-film .xm-cam.is-morning { flex: none; height: 100vh; height: 100dvh; min-height: 460px; }
.is-result .xm-cam.is-morning { flex: none; height: 64vh; height: 64dvh; min-height: 400px; }
.xm-cam.is-morning { background: #F3D7A8; }
.xm-morning-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 100%; }
/* the wall's garland and framed photo hang at a height of the painting (768 × 1376, covering the stage from its
   bottom): a point y of the painting sits (1 − y) × max(179.2cqw, 100cqh) above the stage's bottom */
.xm-cam.is-morning { container-type: size; }
.xm-morning-wall { position: absolute; z-index: 1; left: 0; right: 0; height: 0; bottom: calc(.66 * max(179.2cqw, 100cqh)); pointer-events: none; }
.xm-morning-garland { position: absolute; top: 0; width: 56%; height: auto; filter: drop-shadow(0 4px 4px rgba(0,0,0,.2)); }
.xm-morning-garland.is-left { left: -3%; transform: rotate(9deg); transform-origin: 0 50%; }
.xm-morning-garland.is-right { left: auto; right: -3%; transform: rotate(-9deg) translateX(-100%) scaleX(-1); transform-origin: 100% 50%; }   /* mirrored in place, then swung down from its outer end */
.xm-morning-frame { position: absolute; left: 50%; top: calc(16cqw + 10px); width: 30cqw; max-width: 150px; aspect-ratio: 4 / 5; overflow: hidden;
  transform: translateX(-50%) rotate(-3deg); border-radius: 4px; border: 6px solid #B9783A; outline: 2px solid #6B3F1C;
  background: radial-gradient(circle at 50% 35%, #FFF3D6, #E9B97A); box-shadow: 0 8px 14px rgba(0,0,0,.28), inset 0 0 0 3px #F6E2B8; }
/* the film's full-height stage shows more wall: everything hangs a little higher and the photo a little bigger */
.is-morning-film .xm-morning-wall { bottom: calc(.7 * max(179.2cqw, 100cqh)); }
.is-morning-film .xm-morning-frame { width: 34cqw; max-width: 170px; }
/* the result's stage is shorter and its title ribbon hangs over the wall: the photo smaller, always under the ribbon
   (at least 165px from the stage's top) */
.is-final .xm-morning-frame { width: 24cqw; top: max(16cqw + 44px, 165px - (100cqh - .66 * max(179.2cqw, 100cqh))); }
.xm-morning-photo { position: absolute !important; left: 50%; top: 10%; transform: translateX(-50%); }
.xm-morning-photo img.is-art { animation: none; filter: none; }
.xm-morning-sun { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(80% 50% at 25% 30%, rgba(255,236,170,.45), rgba(255,236,170,0) 70%); mix-blend-mode: screen; }
/* the gift between the Elf (left) and the host (right), a little in front of both */
.xm-morning-gift, .xm-morning-light { position: absolute; z-index: 6; left: 44%; bottom: 30px; width: 30%; max-width: 150px; transform: translateX(-50%); }
/* the box's light: the gift's twin spot behind the cast (over the room and its wall only), so the rays frame the
   characters and the gift instead of washing over them (owner, 2026-11-03); its invisible box copy gives the height */
.xm-morning-light { z-index: 2; pointer-events: none; }
.xm-morning-light-box { display: block; width: 100%; height: auto; visibility: hidden; }
.xm-morning-light.is-on .xm-reveal-rays { opacity: 1; transform: scale(1); }
/* behind the cast they fall on the cream wall: a warmer, stronger gold so the burst still reads */
.xm-morning-light .xm-reveal-rays { background: repeating-conic-gradient(rgba(255,196,80,.62) 0 9deg, rgba(255,196,80,0) 9deg 22deg); }
.xm-present.is-morning { position: relative; left: auto; top: auto; width: 100%; transform: none; }
.xm-present.is-morning.is-open .xm-present-pic { opacity: 0; transition: opacity .25s .1s; }
.xm-morning-thing { position: absolute; left: 50%; bottom: 0; width: 78%; height: auto; transform: translateX(-50%); filter: drop-shadow(0 6px 6px rgba(0,0,0,.3)); }
.xm-morning-thing.is-glow { width: 115%; filter: drop-shadow(0 0 18px rgba(255,211,77,.9)); }
/* the scarf or the sweater flies from the box onto the host (who now wears it) */
.xm-morning-thing.is-worn { opacity: 0; transform: translate(60%, -90%) scale(.5) rotate(20deg); transition: opacity .45s, transform .45s ease-in; }
/* the coal (and the candy it turns into) is a small lump, held up in the host's paw in the art */
.xm-morning-thing[data-art^="gf-gift-c"] { width: 46%; }
.xm-present-tag.is-from { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%) rotate(-3deg); font-size: 14px; max-width: 190px; z-index: 2; }
/* on the morning rug: "From:" small on top, the name under it, so the tag is only a name wide (a long name used to run
   under the host's name tag beside the gift) */
.xm-present-tag.is-stacked { font-size: 13px; line-height: 1.05; max-width: min(136px, 40vw); padding: 2px 7px 3px; overflow-wrap: anywhere; }
.xm-from-word { display: block; font-size: .78em; opacity: .75; }
.xm-from-name { display: block; }
/* the smallest phones: the host's name tag comes closer, so the tag leans toward the Elf's side (he has no name tag) */
@media (max-width: 340px) { .xm-present-tag.is-stacked { transform: translateX(-66%) rotate(-3deg); } }
.xm-morning-host { position: absolute !important; z-index: 5; right: -2%; bottom: 26px; }
.xm-morning-elf { position: absolute !important; z-index: 3; left: -3%; bottom: 30px; }
.xm-cam.is-morning .xm-say { z-index: 11; }
.xm-cam.is-morning .xm-ribbon.is-title { top: calc(58px + env(safe-area-inset-top)); }
.xm-cam.is-morning.is-final .xm-morning-gift, .xm-cam.is-morning.is-final .xm-morning-light { bottom: 64px; }   /* its "From:" tag clear of the panel's snowy edge */

/* ── the film pass: bars, title cards, whips, a living market, Christmas morning at dawn ───────────────────── */
/* the black bars close in for the beats nobody taps (the opening shot, the cocoa break, the last question, the morning) */
.xm-cam.is-stage::before, .xm-cam.is-stage::after { content: ''; position: absolute; z-index: 9; left: 0; right: 0; height: min(8%, 54px); background: #05060C;
  pointer-events: none; transition: transform .7s cubic-bezier(.3,0,.2,1); }
.xm-cam.is-stage::before { top: 0; transform: translateY(-101%); }
.xm-cam.is-stage::after { bottom: 0; transform: translateY(101%); }
.xm-cam.is-stage.is-bars::before, .xm-cam.is-stage.is-bars::after { transform: none; }
/* a title card in the lower bar, film-subtitle style */
.xm-film-card { position: absolute; z-index: 12; left: 0; right: 0; bottom: min(8%, 54px); padding: 40px 18px 14px; text-align: center; pointer-events: none;
  background: linear-gradient(rgba(5,6,12,0), rgba(5,6,12,.72) 55%, rgba(5,6,12,.85));   /* a soft dark band rising from the bar */
  font-family: var(--title, inherit); font-size: 21px; font-weight: 800; line-height: 1.2; letter-spacing: .02em; color: #FFF6E2; text-shadow: 0 2px 10px rgba(0,0,0,.8), 0 0 2px #000;
  opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .6s cubic-bezier(.2,.8,.3,1); }
.xm-film-card.is-in { opacity: 1; transform: none; }
/* the whip between the acts: a bright blurred sweep across the phone */
.xm-whip { position: fixed; z-index: 9999; inset: 0 -60%; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,0) 0 9px, rgba(255,255,255,.35) 9px 11px),
    linear-gradient(90deg, rgba(255,246,226,0), rgba(255,246,226,.97) 32%, #FFF1D6 50%, rgba(255,246,226,.97) 68%, rgba(255,246,226,0));
  filter: blur(6px); animation: xm-whip .58s cubic-bezier(.6,0,.4,1) forwards; }
@keyframes xm-whip { from { transform: translateX(-100%) skewX(-12deg); } to { transform: translateX(100%) skewX(-12deg); } }
/* the market's world (the camera pushes into it); its air: snow and out-of-focus string lights close to the lens */
.xm-market-world { position: absolute; inset: 0; transition: scale .55s cubic-bezier(.3,0,.2,1); }
.xm-market-air { position: absolute; inset: 0; z-index: 7; pointer-events: none; overflow: hidden; }
.xm-market-air .xm-snow { z-index: 0; }
.xm-bokeh { position: absolute; width: var(--size); height: var(--size); border-radius: 50%; background: radial-gradient(circle, var(--hue), rgba(255,255,255,0) 70%);
  filter: blur(2px); mix-blend-mode: screen; opacity: .25; animation: xm-bokeh-twinkle 3.4s ease-in-out infinite alternate; }
/* its own name: as "xm-twinkle" it replaced the garland's and the night sky's twinkle (core.css) on this page */
@keyframes xm-bokeh-twinkle { 0% { opacity: .12; transform: scale(.85); } 60% { opacity: .55; } 100% { opacity: .3; transform: scale(1.1) translateY(-6px); } }
/* three right in a row: the stall's lights flash */
.xm-cam.is-market.is-flash .xm-market-pan { animation: xm-stall-flash .9s ease-out; }
@keyframes xm-stall-flash { 0%, 100% { filter: none; } 20%, 60% { filter: brightness(1.45) saturate(1.3); } 40% { filter: brightness(1.05); } }
/* the picked card lifts and glows over the drum roll; then it flies into the box (a fixed copy) */
.xm-opt.is-lift { animation: xm-lift .56s ease-in-out; }
@keyframes xm-lift { 0% { transform: translateY(-6px) scale(1.03); } 50% { transform: translateY(-12px) scale(1.07); box-shadow: 0 0 0 4px var(--gold), 0 0 40px rgba(255,211,77,.95); } 100% { transform: translateY(-8px) scale(1.04); } }
.xm-fly { position: fixed; z-index: 60; object-fit: cover; pointer-events: none; box-shadow: 0 8px 18px rgba(0,0,0,.35); }
@media (prefers-reduced-motion: reduce) { .xm-bokeh { animation: none; } .xm-opt.is-lift { animation: none; } }
/* Christmas morning at dawn: the room starts in blue darkness and the sun comes up */
.xm-cam.is-morning::before, .xm-cam.is-morning::after { z-index: 13; }
.xm-morning-sun { transition: opacity 1.8s ease-out; }
.xm-cam.is-morning > .xm-morning-bg { transition: filter 1.8s ease-out; }
.xm-cam.is-morning.is-dawn > .xm-morning-bg { filter: brightness(.35) saturate(.6) hue-rotate(-12deg); }
.xm-cam.is-morning.is-dawn .xm-morning-sun { opacity: 0; }
.xm-cam.is-morning.is-dawn .xm-morning-wall, .xm-cam.is-morning.is-dawn .xm-morning-elf { filter: brightness(.4); }
.xm-morning-wall, .xm-morning-elf { transition: filter 1.8s ease-out; }
/* the perfect gift: a gold haze over the room, the right answers floating up in an arc */
.xm-cam.is-morning.is-golden .xm-morning-sun { background: radial-gradient(70% 55% at 45% 75%, rgba(255,214,110,.6), rgba(255,214,110,0) 70%); }
.xm-morning-answer { position: absolute; z-index: 8; transform: translate(-50%, -50%); border-radius: 12px; border: 3px solid #fff; object-fit: cover;
  box-shadow: 0 0 0 2px #F2BF26, 0 0 18px rgba(255,211,77,.9); opacity: 0; animation: xm-answer-up 2.6s cubic-bezier(.2,.8,.3,1) forwards; }
@keyframes xm-answer-up { 0% { opacity: 0; transform: translate(-50%, 60%) scale(.3); } 18% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
  30% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; transform: translate(-50%, -62%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -80%) scale(.9); } }
/* the hug: the pair stands where the host stood */
.xm-morning-hug { position: absolute; z-index: 5; right: -4%; bottom: 26px; width: auto; filter: drop-shadow(0 6px 6px rgba(0,0,0,.28)); }
/* the morning film is letterboxed all through: the gift, the cast and the hug stand just above the lower bar */
.is-morning-film .xm-cam.is-bars .xm-morning-gift, .is-morning-film .xm-cam.is-bars .xm-morning-light { bottom: calc(min(8%, 54px) + 22px); }
.is-morning-film .xm-cam.is-bars .xm-morning-host, .is-morning-film .xm-cam.is-bars .xm-morning-hug { bottom: calc(min(8%, 54px) + 14px); }
.is-morning-film .xm-cam.is-bars .xm-morning-elf { bottom: calc(min(8%, 54px) + 18px); }
/* the vibe step: on a short phone "That's me" stays in reach at the bottom of the screen once the cards push it down */
.xm-scene.is-mood .xm-play > .xm-btn.is-green { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 5; }
/* the creator's rug shot (pushed in on the ten golden tags): the host and the Elf at the frame's edges, clear of them */
.xm-cam.is-rug .xm-cam-host { scale: .8; transform-origin: 100% 100%; right: -3%; transition: scale .5s, right .5s; }
.xm-cam.is-rug .xm-cam-elf { scale: .76; transform-origin: 0 100%; left: -2%; transition: scale .5s, left .5s; }
.xm-cam.is-rug .xm-floor-tag { scale: .74; transform-origin: 50% 100%; }   /* pushed in: smaller, so the ten lie side by side */
/* a short or narrow phone: the invitation tag a little more compact, so "Let's go shopping" is on the first screen,
   and the name field's placeholder fits on one line */
@media (max-height: 700px) {
  .xm-hero.is-invite { padding-top: calc(54px + env(safe-area-inset-top)); padding-bottom: 24px; }
  .xm-hero.is-invite .xm-bigtag { margin-top: 8px; }
  .xm-hero.is-invite .xm-tag-face { gap: 6px; padding: 22px 12px 14px; }
  .xm-hero.is-invite .xm-polaroid-pic { width: 150px; height: 100px; }
  .xm-hero.is-invite .xm-polaroid-tree { height: 104px; }
  .xm-hero.is-invite .xm-polaroid-host { scale: .8; transform-origin: 100% 100%; }
  .xm-hero.is-invite .xm-tag-face .xm-h2 { font-size: 21px; }
  /* with the "who is on the tree" lines the tag is two lines taller: a smaller Polaroid pays for them */
  .xm-hero.is-invite .xm-proof { margin: 2px 0 18px; font-size: 13px; }
  .xm-hero.is-invite:has(.xm-proof:not([hidden])) .xm-polaroid-pic { width: 126px; height: 82px; }
  .xm-hero.is-invite:has(.xm-proof:not([hidden])) .xm-polaroid-tree { height: 86px; }
  .xm-hero.is-invite:has(.xm-proof:not([hidden])) .xm-polaroid-host { scale: .66; }
}
@media (max-width: 340px) { .is-invite ~ .xm-play .xm-input, .xm-scene .xm-play .xm-input { font-size: 19px; padding: 0 14px; } }
.xm-morning-thing.is-empty-box { width: 100%; }   /* the opened box, left on the rug after the unwrap */
/* the landing's window: the lit tree inside, nothing under it yet */
.xm-hero-pane { position: absolute; z-index: 1; overflow: hidden; pointer-events: none;
  background: radial-gradient(90% 80% at 50% 70%, #FFE2A8, #F6B867 70%, #E99A4B); box-shadow: inset 0 0 18px rgba(120,60,10,.35); }
.xm-hero-pane .xm-hero-wintree { left: 50%; bottom: -3%; height: 104%; transform: translateX(-50%); }

/* ── larger than life (Bail Me Out's toolkit): the friend on stage, emotion stickers, talking, a floating stage, the
   climax's gift tag ────────────────────────────────────────────────────────────────────────────────────────────── */
/* the friend stands front left, behind the box they fill; the box sits between them and the counter */
.xm-market-friend { position: absolute !important; z-index: 6; left: 3%; bottom: 8px; }   /* fully in the frame (at -3% a third of their face was off the edge on small phones), and in front of the box: they are the closest to the camera */
.xm-present.is-shop { left: 47%; }
.xm-say.is-friend { background: #FFF1D2; } .xm-say.is-friend::after { background: #FFF1D2; }
/* an emotion sticker over a head: DBM's spring (scale .35 → 1.12 → .96 → 1), a little float, then gone */
.xm-emote { position: absolute; z-index: 13; font-size: 30px; line-height: 1; pointer-events: none; transform: translate(-50%, -100%);
  filter: drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 0 1px #fff) drop-shadow(0 3px 3px rgba(0,0,0,.3));
  animation: xm-emote 1.5s cubic-bezier(.34,1.56,.64,1) forwards; }
@keyframes xm-emote { 0% { opacity: 0; scale: .35; translate: 0 6px; } 18% { opacity: 1; scale: 1.12; } 28% { scale: .96; } 36% { scale: 1; translate: 0 0; }
  80% { opacity: 1; translate: 0 -12px; } 100% { opacity: 0; translate: 0 -22px; } }
/* who is talking: a small bob and sway while their line is up (stacks with the breathing and the pose pops) */
.xm-char.is-talking { animation: xm-talk .34s ease-in-out infinite alternate; }
@keyframes xm-talk { from { translate: 0 0; rotate: -1.4deg; } to { translate: 0 -3px; rotate: 1.4deg; } }
/* the stage floats a little (DBM's scene float), so the set is never dead still */
.xm-market-world { animation: xm-float 2.9s ease-in-out infinite alternate; }
@keyframes xm-float { from { translate: 0 0; } to { translate: 0 -4px; } }
/* the climax: the gift tag swings down on its string, the score counts up, the gift is stamped across it */
.xm-scoretag { position: absolute; z-index: 12; left: 50%; top: calc(64px + env(safe-area-inset-top)); width: min(250px, 68%); padding: 26px 14px 30px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; transform-origin: 50% -60px;
  background: linear-gradient(#FFF8E6, #F5E2B4); border: 3px solid var(--outline); border-radius: 20px 20px 16px 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,.45), inset 0 0 0 3px #fff; translate: -50% 0;
  animation: xm-tag-swing 1.1s cubic-bezier(.34,1.56,.64,1) both; }
.xm-scoretag::before { content: ''; position: absolute; top: 9px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #3A2742; box-shadow: inset 0 0 0 3px #C99A12; }
.xm-scoretag-string { position: absolute; left: 50%; bottom: 100%; width: 3px; height: 70px; margin-left: -1.5px; background: #B42B29; }
@keyframes xm-tag-swing { 0% { opacity: 0; transform: translateY(-160%) rotate(-14deg); } 45% { opacity: 1; transform: translateY(0) rotate(9deg); }
  70% { transform: rotate(-4deg); } 88% { transform: rotate(2deg); } 100% { transform: none; } }
.xm-scoretag.is-out { transition: opacity .4s, translate .5s ease-in, visibility 0s .5s; opacity: 0; translate: -50% -40px; visibility: hidden; pointer-events: none; }   /* gone, not just clear: it lay over the shop's stage */
.xm-scoretag-to { font: 800 15px/1.2 var(--hand); color: var(--ink); max-width: 100%; overflow-wrap: anywhere; }
.xm-scoretag-score { font: 900 64px/1 var(--title); color: var(--red-d); text-shadow: 0 3px 0 #fff; }
.xm-scoretag-score small { font-size: 26px; color: var(--ink); opacity: .7; margin-left: 2px; }
.xm-scoretag-n { display: inline-block; }
.xm-scoretag-n.is-pop { animation: xm-num-pop .28s cubic-bezier(.34,1.56,.64,1); }
@keyframes xm-num-pop { from { scale: 1.45; } to { scale: 1; } }
.xm-scoretag-stamp { margin-top: 6px; padding: 5px 12px; border: 3px solid currentColor; border-radius: 10px; font: 900 18px/1.1 var(--title); text-transform: uppercase;
  letter-spacing: .03em; rotate: -7deg; opacity: 0; scale: 2.6; background: rgba(255,255,255,.55); }
.xm-scoretag-stamp.is-in { opacity: 1; scale: 1; transition: scale .35s cubic-bezier(.3,1.5,.5,1), opacity .2s; }
.xm-scoretag-stamp.is-top { color: #B8860B; } .xm-scoretag-stamp.is-front { color: #C8312E; }
.xm-scoretag-stamp.is-bottom { color: #2E7D4F; } .xm-scoretag-stamp.is-box { color: #5A3A22; }
@media (prefers-reduced-motion: reduce) { .xm-char.is-talking, .xm-market-world, .xm-scoretag { animation: none; } }
.xm-market-friend { transition: bottom .7s cubic-bezier(.3,0,.2,1); }
.xm-cam.is-market.is-bars .xm-market-friend { bottom: calc(min(8%, 54px) + 2px); }   /* never under the film's lower bar */
.is-shelving .xm-cam.is-market .xm-market-friend { bottom: 26px; }   /* the shop's ribbon rises over the stage: their name stays above it */
.xm-scoretag-to .xm-name { color: var(--red-d); }   /* the names read clearly on the cream tag */
.xm-morning-friend { position: absolute !important; z-index: 6; left: 2%; bottom: 26px; }
.is-morning-film .xm-cam.is-bars .xm-morning-friend { bottom: calc(min(8%, 54px) + 14px); }
/* the result's last shot: the friend on the left (in front of the Elf), the gift between them and the host */
.xm-morning-friend.is-final-friend { left: -4%; bottom: 22px; z-index: 5; }   /* just behind the gift and its tag */
.xm-cam.is-morning.is-final .xm-morning-elf { opacity: 0; }   /* the Elf has slipped away; the two of them and the gift */
/* the rug's tags lie neatly: a small alternating tilt instead of the scattered one */
.xm-cam.is-rug .xm-floor-tag { rotate: -3deg; }
.xm-cam.is-rug .xm-floor-tag:nth-child(even) { rotate: 3deg; }

/* ── the gift shop: the shelf the score opened, six gifts at a time (gift.js shelf) ────────────────────────────── */
.xm-play.is-shelf .xm-qbox { gap: 8px; }
.xm-shelf-head { font: 800 clamp(19px, 5.6vw, 23px)/1.15 var(--title); color: var(--ink); }
.xm-shelf-why { margin: -4px 0 0; text-align: center; font: 700 13px/1.3 'Nunito', sans-serif; color: #6B5A4E; }
.xm-shelf { --shelf: #8A5A33; --shelf-d: #5E3A1E; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 8px; padding: 10px 8px 12px; border-radius: 18px; background: linear-gradient(#FFF6E4, #F6E3C3);
  box-shadow: inset 0 0 0 3px #EBD3AC, 0 6px 18px rgba(120,80,30,.14); }
.xm-shelf.is-top { --shelf: #E2B53A; --shelf-d: #A87A10; background: radial-gradient(120% 80% at 50% 0%, #FFF7D6, #FBE6A6); box-shadow: inset 0 0 0 3px #F2CF63, 0 0 26px rgba(255,211,77,.55); }
.xm-shelf.is-front { --shelf: #C8312E; --shelf-d: #8E1E1C; }
.xm-shelf.is-bottom { --shelf: #4E7FC4; --shelf-d: #2B5AA6; background: repeating-linear-gradient(45deg, #FFF6E4 0 10px, #F8ECD6 10px 20px); }
.xm-shelf.is-box { --shelf: #6B4A2E; --shelf-d: #4A321F; background: linear-gradient(#EFE2CC, #E0CBA8); }
.xm-gift-card { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; padding: 4px 2px 12px;
  border: 0; background: none; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .18s; }
.xm-gift-stage { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: 16px; }
.xm-gift-stage::before { content: ''; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,255,255,0) 70%); }
/* the shelf's plank under each gift, reaching into the gaps so a row reads as one plank */
.xm-gift-stage::after { content: ''; position: absolute; left: -7%; right: -7%; bottom: -3px; height: 7px; border-radius: 4px; pointer-events: none;
  background: linear-gradient(var(--shelf), var(--shelf-d)); box-shadow: 0 3px 4px rgba(0,0,0,.18); }
.xm-gift-card.is-picked .xm-gift-stage::after { opacity: 0; }
.xm-gift-pic { position: absolute; left: 4%; top: 2%; width: 92%; height: 92%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 5px 4px rgba(80,40,10,.3)); }
.xm-gift-stage > .xm-gift-emoji { position: absolute; inset: 4%; }
.xm-gift-emoji { position: relative; display: grid; place-items: center; width: 92%; height: 92%; font-size: clamp(34px, 11vw, 50px); line-height: 1;
  filter: drop-shadow(0 4px 3px rgba(80,40,10,.3)); }
.xm-gift-name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;   /* 3: the joke is often the last words */ overflow: hidden; width: 100%; min-height: 2.3em;
  font: 800 clamp(11.5px, 3.4vw, 13.5px)/1.15 'Nunito', sans-serif; text-align: center; overflow-wrap: anywhere; }
.xm-gift-why { position: absolute; z-index: 2; left: 50%; top: -6px; transform: translateX(-50%) rotate(-3deg); max-width: 122%; padding: 2px 6px; border-radius: 99px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font: 800 10px/1.3 'Nunito', sans-serif; letter-spacing: -.2px; color: #fff; box-shadow: 0 2px 3px rgba(0,0,0,.2); }
.xm-gift-why.is-local { background: var(--red); } .xm-gift-why.is-vibe { background: var(--pine-d); }
@media (hover: hover) { .xm-gift-card:hover .xm-gift-stage { background: rgba(255,255,255,.55); } }
.xm-gift-card.is-picked { transform: translateY(-5px) scale(1.06); }
.xm-gift-card.is-picked .xm-gift-stage { background: radial-gradient(circle, #FFF3B8, #FFD34D 75%); box-shadow: 0 0 0 3px var(--gold), 0 0 22px rgba(255,211,77,.9); }
.xm-gift-card.is-picked .xm-gift-pic, .xm-gift-card.is-picked .xm-gift-emoji { animation: xm-gift-wiggle .5s ease-in-out; }
@keyframes xm-gift-wiggle { 0%, 100% { rotate: 0deg; } 30% { rotate: -8deg; scale: 1.12; } 65% { rotate: 6deg; } }
.xm-shelf.is-locked .xm-gift-card:not(.is-picked) { opacity: .35; filter: grayscale(.5); transition: opacity .3s, filter .3s; }
/* one row: "Show me others" small on the left, "Wrap it" taking the rest */
.xm-shelf-actions { display: flex; align-items: center; gap: 8px; }
.xm-shelf-actions .xm-btn.xm-shelf-wrap { flex: 1 1 0; width: auto; min-width: 0; min-height: 54px; padding: 6px 12px; font-size: clamp(16px, 4.6vw, 19px); }
.xm-shelf-wrap:disabled { opacity: .55; filter: grayscale(.4); }
.xm-shelf-more { flex: none; min-height: 48px; padding: 0 12px; font-size: 14px; white-space: nowrap; }
/* while the shelf is up the market gives it a little room (the cast is refitted to the smaller stage) */
.is-shelving .xm-cam.is-market { min-height: clamp(262px, 37vh, 340px); min-height: clamp(262px, 37dvh, 340px); }
.xm-cam.is-market .xm-tagbar, .xm-cam.is-market .xm-badge { transition: opacity .4s; }
.is-shelving .xm-cam.is-market .xm-tagbar, .is-shelving .xm-cam.is-market .xm-badge { opacity: 0; pointer-events: none; }   /* the score is told: the shop has the stage */
@media (max-width: 340px) { .xm-shelf { gap: 12px 4px; padding: 8px 4px 12px; } .xm-shelf-more { padding: 0 9px; font-size: 13px; }
  .xm-gift-name { -webkit-line-clamp: 3; font-size: 11.5px; min-height: 3.45em; } }   /* a narrow phone: the whole name, on three lines */

/* ── THE REVEAL (gift.js revealGift), on both sides: the box cut along its seam into a lid and a base, the light
   between them, the gift rising from behind the base's front wall ───────────────────────────────────────────── */
.xm-present.is-revealing .xm-present-swing { position: relative; }
.xm-reveal-lid, .xm-reveal-body { position: absolute; left: 0; top: 0; width: 100%; height: auto; filter: drop-shadow(0 5px 4px rgba(0,0,0,.35)); }
.xm-reveal-body { z-index: 2; }
.xm-reveal-lid { z-index: 4; transform-origin: 50% 60%; }
.is-revealed .xm-reveal-lid { visibility: hidden; }
/* the light inside: a thin glow along the seam that flickers while it trembles, then pours out */
.xm-reveal-glow { position: absolute; z-index: 3; left: 50%; width: 112%; height: 30%; transform: translate(-50%, -50%) scale(.7); border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse, rgba(255,250,220,.95), rgba(255,214,120,.6) 38%, rgba(255,200,80,0) 70%); mix-blend-mode: screen; opacity: 0;
  transition: opacity .8s, transform .5s cubic-bezier(.2,.9,.3,1); }
.is-leak .xm-reveal-glow { opacity: .8; animation: xm-leak .18s ease-in-out infinite alternate; }
.is-burst .xm-reveal-glow { opacity: 1; transform: translate(-50%, -50%) scale(1.5); animation: none; }
.is-revealed .xm-reveal-glow { opacity: .75; transform: translate(-50%, -50%) scale(1.3); }
@keyframes xm-leak { from { filter: brightness(.8); } to { filter: brightness(1.3); } }
/* centred with `translate` (applied before the spin's `rotate`): inside `transform` the centring turned with the spin
   and the whole burst circled round the box, over the cast's faces (owner, 2026-11-03) */
.xm-reveal-rays { position: absolute; z-index: 0; left: 50%; width: 300%; aspect-ratio: 1; translate: -50% -50%; transform: scale(.25); border-radius: 50%; pointer-events: none; opacity: 0;
  background: repeating-conic-gradient(rgba(255,236,170,.55) 0 9deg, rgba(255,236,170,0) 9deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 16%, transparent 66%); mask: radial-gradient(circle, #000 16%, transparent 66%);
  transition: opacity .5s, transform 1.4s cubic-bezier(.2,.8,.3,1); animation: xm-ray-spin 16s linear infinite; }
.is-burst .xm-reveal-rays, .is-revealed .xm-reveal-rays { opacity: 1; transform: scale(1); }
.xm-cam.is-morning .xm-reveal-rays { width: 210%; }   /* in the room the light frames the gift, never washes over the cast's faces */
/* the gift: anchored on the opening, it starts small inside the box and rises out */
.xm-reveal-gift { position: absolute; z-index: 1; left: 50%; width: 118%; display: flex; flex-direction: column; align-items: center; gap: 2px; pointer-events: none;
  transform: translate(-50%, 34%) scale(.42); transform-origin: 50% 100%; opacity: 0; }
.is-revealed .xm-reveal-gift { transform: translate(-50%, -8%) scale(1); opacity: 1; }
.xm-reveal-pic { display: block; width: 100%; height: auto; max-height: 24vh; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 0 14px rgba(255,236,170,.9)) drop-shadow(0 6px 6px rgba(0,0,0,.3)); }
.xm-reveal-gift .xm-gift-emoji { width: 100%; height: auto; aspect-ratio: 1; font-size: min(64px, 15vw); }
.xm-cam.is-morning .xm-reveal-pic { max-height: 19vh; max-height: 19dvh; }   /* a tall gift (a sock, a guitar) stays under the wall photo */
.is-named .xm-reveal-pic, .is-named .xm-reveal-gift .xm-gift-emoji { animation: xm-gift-float 2.6s ease-in-out infinite; }
@keyframes xm-gift-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes xm-ray-spin { to { rotate: 360deg; } }
.xm-reveal-name { position: relative; width: max-content; max-width: min(230px, 64vw); padding: 3px 10px; border-radius: 10px; background: var(--paper); border: 2px solid var(--outline);
  font: 800 13px/1.2 var(--hand); color: var(--ink); text-align: center; text-wrap: balance; box-shadow: 0 3px 4px rgba(0,0,0,.25);
  rotate: -2deg; opacity: 0; scale: .6; transition: opacity .35s, scale .45s cubic-bezier(.3,1.6,.5,1); }
.is-named .xm-reveal-name { opacity: 1; scale: 1; }
/* who it is from, handwritten under the gift's name */
.xm-reveal-from { display: block; margin-top: 1px; font: 700 .82em/1.15 var(--hand); color: #8A5A33; }
/* held in the host's arms: the card has said its piece */
.xm-reveal-gift.is-held { z-index: 7; }
.is-held .xm-reveal-name { opacity: 0; scale: .6; }
.is-held .xm-reveal-pic, .is-held .xm-gift-emoji { animation: none; }
/* the sparkle ring as a wearable goes on */
.xm-poof { position: absolute; z-index: 12; width: 20px; height: 20px; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
  border: 4px solid rgba(255,236,160,.95); box-shadow: 0 0 18px 6px rgba(255,220,120,.7), inset 0 0 14px rgba(255,255,255,.8); animation: xm-poof .8s ease-out forwards; }
@keyframes xm-poof { 0% { width: 20px; height: 20px; opacity: 1; } 100% { width: 230px; height: 230px; opacity: 0; border-width: 1px; } }
.xm-sheet-again { margin: 2px 0 6px; min-height: 36px; padding: 0 14px; font-size: 14px; border-color: #E3CFAD; background: #FFF6E4; color: var(--ink); }
/* the scarf and the sweater fly onto the host, the coal into their paw */
.xm-reveal-gift.is-worn { opacity: 0 !important; transform: translate(40%, -80%) scale(.4) rotate(20deg) !important; transition: opacity .45s, transform .45s ease-in; }
/* the burst of light over the whole shot */
.xm-reveal-flash { position: absolute; z-index: 9; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(circle, #fff, rgba(255,244,200,.85) 30%, rgba(255,220,140,0) 70%); animation: xm-flash-burst .9s ease-out forwards; }
@keyframes xm-flash-burst { 0% { width: 10px; height: 10px; opacity: 1; } 35% { width: 460px; height: 460px; opacity: .9; } 100% { width: 680px; height: 680px; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .xm-reveal-rays, .is-named .xm-reveal-pic, .xm-reveal-glow { animation: none; } }
.xm-endcard-tier { align-self: center; padding: 4px 12px; border: 3px solid currentColor; border-radius: 10px; font: 900 15px/1.1 var(--title); text-transform: uppercase; rotate: -3deg; background: #fff; }
.xm-endcard-tier.is-top { color: #B8860B; } .xm-endcard-tier.is-front { color: #C8312E; } .xm-endcard-tier.is-bottom { color: #2B5AA6; } .xm-endcard-tier.is-box { color: #5A3A22; }

/* ── the creator's tree: presents still wrapped glow and bob; the list says "New" until opened ─────────────────── */
.xm-present.is-new .xm-present-swing { animation: xm-new-bob 1.6s ease-in-out infinite; }
.xm-present.is-new .xm-present-pic { filter: drop-shadow(0 0 9px rgba(255,236,160,.95)) drop-shadow(0 5px 4px rgba(0,0,0,.3)); }
.xm-present.is-new .xm-present-swing::after { content: '\2728'; position: absolute; right: -10%; top: -14%; font-size: calc(var(--cq, 1cqw) * 6); line-height: 1; animation: xm-new-twinkle 1.2s ease-in-out infinite alternate; }
@keyframes xm-new-bob { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(-4deg) translateY(-2px); } 75% { transform: rotate(4deg) translateY(-2px); } }
@keyframes xm-new-twinkle { from { opacity: .35; scale: .8; } to { opacity: 1; scale: 1.15; } }
@media (prefers-reduced-motion: reduce) { .xm-present.is-new .xm-present-swing, .xm-present.is-new .xm-present-swing::after { animation: none; } }
.xm-row-gift { display: block; margin-top: 2px; font: 700 13px/1.25 'Nunito', sans-serif; color: #6B5A4E; }   /* the whole gift name (two lines if it must) */
.xm-row-gift.is-new { display: inline-block; align-self: flex-start; padding: 1px 8px; border-radius: 99px; background: var(--red); color: #fff; font-weight: 800; animation: xm-new-twinkle 1.2s ease-in-out infinite alternate; }
.xm-to-open { color: var(--red-d); }
.xm-sheet-present.is-gift { width: 64px; height: 64px; object-fit: contain; }
.xm-sheet-present.xm-gift-emoji { font-size: 44px; }
.xm-sheet-gift { margin: 2px 0 4px; font: 800 15px/1.25 'Nunito', sans-serif; color: var(--ink); }

/* ── the unboxing: the creator opens a friend's present (gift.js unbox) ──────────────────────────────────────── */
.xm-unbox { position: fixed; inset: 0; z-index: 60; overflow: hidden; overscroll-behavior: contain; color: #fff;
  background: radial-gradient(80% 55% at 50% 48%, #3B2B52 0%, #1C1530 60%, #0E0A1A 100%); animation: xm-unbox-in .35s ease-out; }
@keyframes xm-unbox-in { from { opacity: 0; } }
.xm-unbox::before, .xm-unbox::after { content: ''; position: absolute; left: 0; right: 0; height: 5vh; z-index: 6; background: #000; pointer-events: none; }
.xm-unbox::before { top: 0; } .xm-unbox::after { bottom: 0; }
.xm-unbox-stage { position: absolute; inset: 0; }
.xm-unbox-title { position: absolute; left: 16px; right: 56px; top: calc(5vh + 18px + env(safe-area-inset-top)); margin: 0 auto; max-width: 440px;
  font: 800 clamp(24px, 7.4vw, 32px)/1.1 var(--title); text-align: center; color: var(--gold); -webkit-text-stroke: 5px #2A1838; paint-order: stroke fill;
  transition: opacity .4s; }
/* the floor line: the creator on the left, the present on the right; it steps up once the results come in */
.xm-unbox-floor { position: absolute; left: 0; right: 0; bottom: 30%; display: flex; align-items: flex-end; justify-content: center; gap: 2vw;
  transition: bottom .6s cubic-bezier(.3,.8,.3,1); }
.xm-unbox-floor::before { content: ''; position: absolute; left: 12%; right: 12%; bottom: -4%; height: 40px; border-radius: 50%; z-index: -1;
  background: radial-gradient(rgba(255,226,150,.32), rgba(255,226,150,0) 70%); }
.xm-unbox-host { position: relative !important; flex: none; z-index: 1; }   /* over the box's rays (owner, 2026-11-03: never light over a face), under the gift */
.xm-unbox-spot { position: relative; flex: none; width: min(42vw, 200px); cursor: pointer; }
.xm-present.is-unbox { position: relative; left: auto; top: auto; width: 100%; transform: none; z-index: 2; }
.xm-present.is-unbox .xm-present-swing { animation: xm-new-bob 1.6s ease-in-out infinite; }
.is-lit .xm-present.is-unbox .xm-present-swing { animation: none; }
.xm-unbox-spot .xm-present-tag.is-from { bottom: -12px; font-size: 15px; }
.xm-unbox-hint { position: absolute; left: 0; right: 0; top: calc(100% + 30px); margin: 0; text-align: center; font: 800 18px/1.2 var(--title); color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.6); animation: xm-new-twinkle .9s ease-in-out infinite alternate; cursor: pointer; }
.xm-unbox-rays { position: absolute; z-index: 0; left: 50%; top: 40%; width: 320%; aspect-ratio: 1; translate: -50% -50%; transform: scale(.2); border-radius: 50%; pointer-events: none; opacity: 0;
  background: repeating-conic-gradient(rgba(255,226,150,.6) 0 8deg, rgba(255,226,150,0) 8deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 66%); mask: radial-gradient(circle, #000 18%, transparent 66%); transition: opacity .4s, transform 1.6s cubic-bezier(.15,.85,.25,1); animation: xm-ray-spin 16s linear infinite; }
.is-lit .xm-unbox-rays { opacity: 1; transform: scale(1); }   /* they burst out of the opening */
.xm-unbox.is-box .xm-unbox-rays { background: repeating-conic-gradient(rgba(200,190,170,.25) 0 9deg, rgba(200,190,170,0) 9deg 22deg); }
/* the reveal, bigger on its own stage; the name may take two lines */
.xm-unbox .xm-reveal-gift { width: 128%; }
.xm-unbox .xm-reveal-pic { max-height: 28vh; transition: max-height .6s cubic-bezier(.3,.8,.3,1); }
.xm-unbox.is-done .xm-reveal-pic { max-height: min(20vh, calc(100vh - 5vh - 250px - 290px)); }   /* room for the close button above it */
.xm-unbox .xm-reveal-name { max-width: 44vw; padding: 5px 14px; border-width: 3px; font-size: clamp(16px, 4.8vw, 20px); }
.xm-unbox.is-done .xm-reveal-name { max-width: 84vw; }   /* off-centre beside the creator it stays narrow; centred it may widen */
.xm-present.is-unbox.is-revealing .xm-present-swing { animation: none; }
.xm-unbox .xm-say { z-index: 4; }
/* the results: a panel up from the bottom; the title gives its room to the gift */
.xm-unbox-after { position: absolute; z-index: 5; left: 0; right: 0; bottom: calc(5vh + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 0 16px 14px; }
.xm-unbox-after:empty { display: none; }
.xm-unbox-after .xm-actions { width: 100%; max-width: 420px; }
.xm-unbox.is-done .xm-unbox-floor { bottom: calc(5vh + 250px); }
.xm-unbox.is-done .xm-unbox-title { opacity: 0; }
.xm-unbox.is-done .xm-unbox-floor .xm-unbox-host { display: none; }   /* the gift has the screen (centred); the panel says the rest */
.xm-unbox-stamp { padding: 5px 14px; border: 3px solid currentColor; border-radius: 10px; background: rgba(255,255,255,.95); font: 900 clamp(16px, 4.8vw, 19px)/1.1 var(--title);
  text-transform: uppercase; text-align: center; rotate: -4deg; box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.xm-unbox-stamp.is-top { color: #B8860B; } .xm-unbox-stamp.is-front { color: #C8312E; } .xm-unbox-stamp.is-bottom { color: #2B5AA6; } .xm-unbox-stamp.is-box { color: #5A3A22; }
.xm-unbox-score { margin: 0; font: 800 17px/1.3 'Nunito', sans-serif; text-align: center; color: #F4ECFF; }
.xm-unbox-close { position: absolute; z-index: 7; top: calc(5vh + 10px + env(safe-area-inset-top)); right: 10px; color: #fff; background: rgba(255,255,255,.14); }
@media (prefers-reduced-motion: reduce) { .xm-unbox-rays, .xm-present.is-unbox .xm-present-swing { animation: none; } }

/* ── who is who: a name label at each character's feet (gift.js nameTag) ──────────────────────────────────────── */
.xm-cast-name { position: absolute; z-index: 3; left: 50%; bottom: -6px; transform: translateX(-50%); max-width: 150%; padding: 2px 9px 3px; border-radius: 99px;
  background: rgba(255,255,255,.96); border: 2px solid var(--red); color: var(--ink); font: 800 12px/1.15 var(--title); white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; box-shadow: 0 2px 5px rgba(0,0,0,.28); pointer-events: none; animation: xm-name-in .4s .25s cubic-bezier(.3,1.5,.5,1) both; }
.xm-cast-name.is-friend { border-color: var(--pine-d); }
.xm-cast-name.is-pinned { bottom: auto; transform: translate(-50%, -100%); z-index: 9; }
@keyframes xm-name-in { from { opacity: 0; scale: .6; } }
/* a mirrored character (walking left) keeps its name readable */
.xm-char.is-mirrored .xm-cast-name { scale: -1 1; }
/* small characters (the market's Polaroid) and the busy result: a smaller label */
.xm-badge-host .xm-cast-name { display: none; }
.xm-market-friend .xm-cast-name { bottom: 30%; left: 58%; }   /* the question panel covers their feet: the name on their chest */
.xm-cam.is-market .xm-market-host .xm-cast-name { bottom: 12%; }
.xm-cam.is-morning.is-final .xm-cast-name { bottom: 22%; }   /* the result: clear of the panel's snowy edge */
.xm-cam.is-reveal-cast .xm-cam-host .xm-cast-name { bottom: 22%; }
.xm-cam.is-desk-stage .xm-cast-name { bottom: 22%; }   /* writing the wish list: the question panel covers their feet */   /* the board and the rug too: the panel's snow hid the creator's name */
.xm-cam.is-morning .xm-morning-friend .xm-cast-name { left: 58%; }
@media (prefers-reduced-motion: reduce) { .xm-cast-name { animation: none; } }

/* "Tap to speed up ⏩": small, in the film's lower letterbox bar (gift.js tapHint) */
.xm-taphint { position: absolute; z-index: 14; left: 50%; bottom: max(6px, calc(min(8%, 54px) / 2 - 10px)); transform: translateX(-50%); padding: 3px 10px 4px;
  border-radius: 99px; background: rgba(0,0,0,.42); color: rgba(255,255,255,.92); font: 800 12px/1.2 'Nunito', sans-serif; white-space: nowrap; pointer-events: none;
  animation: xm-taphint-in .5s ease-out both, xm-taphint-pulse 2.4s ease-in-out .5s infinite; }
@keyframes xm-taphint-in { from { opacity: 0; transform: translate(-50%, 6px); } }
@keyframes xm-taphint-pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .xm-taphint { animation: none; } }

/* the friend's result: one big "write your own" button, the rest small links under it (gift.js result) */
.xm-result-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 18px; margin-top: 2px; }
.xm-result-links .xm-link { padding: 8px 6px; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.xm-btn.xm-own { animation: xm-own-pulse 2.4s ease-in-out 1.6s infinite; }
.xm-btn.xm-own:active { animation: none; }   /* the pulse's transform would win over the press: it sinks when tapped */
@keyframes xm-own-pulse { 0%, 100% { transform: none; } 50% { transform: scale(1.035); } }
@media (prefers-reduced-motion: reduce) { .xm-btn.xm-own { animation: none; } }

/* ══════════════ the New Year game's own pieces (docs/new-year-game): the airport at night, the departure board,
   the stamps, the boarding pass, the plane, the year crossing. Everything above is the gift game's, reused. ═══════ */
:root { --ny-navy: #141A3A; --ny-board: #10131F; --ny-amber: #FFC94A; --ny-first: #E9B21E; --ny-econ: #3E8FD8;
  --ny-cargo: #C8792E; --ny-left: #8A8FA8; --ny-ok: #2FA35E; --ny-no: #D8403B; }
.xm-scene.is-staged, .xm-scene.is-result, .xm-scene.is-reveal { background: #F4ECDD; }
.xm-play { background: radial-gradient(120% 60% at 50% 0, #FFFFFF 0, #F8F2E7 60%, #F1E6D2 100%); }
.ny-set-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.ny-set-dim { position: absolute; inset: 0; z-index: 1; background: #070A18; opacity: 0; transition: opacity .8s; pointer-events: none; }
.ny-set-dim.is-on, .xm-cam.is-dim .ny-set-dim { opacity: .5; }

/* the departure board: split-flap tiles, amber letters on near-black, one gold line for the flight that boards */
.ny-board { position: absolute; z-index: 4; left: 12px; right: 12px; display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: 10px;
  background: linear-gradient(180deg, #1A1F31, var(--ny-board)); border: 2px solid #2E3550; box-shadow: 0 10px 24px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08); }
.ny-board.is-hero { top: calc(150px + env(safe-area-inset-top)); }
.ny-board.is-gate, .ny-board.is-film { top: calc(60px + env(safe-area-inset-top)); }
.ny-board-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 2px; min-height: 26px; }
.ny-word { display: inline-flex; gap: 2px; }
.ny-flap { position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: .78em; padding: 2px 1px; border-radius: 3px;
  background: linear-gradient(180deg, #262C44 0 49%, #1B2034 51% 100%); color: var(--ny-amber); font: 800 var(--flap, clamp(13px, 4.1vw, 18px))/1.1 'Courier New', ui-monospace, monospace; text-transform: uppercase; }
.ny-flap::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.6); }
.ny-flap.is-space { background: none; min-width: .4em; }
.ny-flap.is-space::after { display: none; }
.ny-flap.is-rolling { color: #9AA0B8; }
.ny-board-line.is-red .ny-flap { color: #FF7A6E; }
.ny-board-line.is-gold .ny-flap { color: #FFE27F; }
.ny-board-line.is-lit .ny-flap { text-shadow: 0 0 8px rgba(255,211,77,.9); }
.ny-board-line.is-small .ny-flap { font-size: var(--flap, clamp(11px, 3.4vw, 14px)); }

/* 1.1 the landing: the title over the board, the cast at the foot of the terminal */
.ny-hero { height: 62vh; height: 62dvh; min-height: 420px; }
.ny-hero .xm-hero-bg { object-position: 50% 70%; }
.ny-hero .ny-title { top: calc(58px + env(safe-area-inset-top)); }
.ny-hero .xm-logo-main { color: #FFE27F; }
.ny-hero-cat, .ny-hero-bear, .ny-hero-penguin { position: absolute !important; z-index: 5; bottom: 18px; }
.ny-hero-cat { right: 3%; }
.ny-hero-bear { left: 2%; }
.ny-hero-penguin { left: 50%; translate: -50% 0; bottom: 26px; z-index: 4; }

/* 1.2 the passport on the check-in desk */
.ny-desk { height: 44vh; height: 44dvh; min-height: 300px; display: flex; align-items: center; justify-content: center; }
.ny-desk .xm-desk-bg { object-position: 50% 60%; }
.ny-passport { position: relative; z-index: 3; width: min(70%, 290px); margin: 40px 24% 0 0; border-radius: 14px; overflow: hidden; color: var(--ink);
  background: linear-gradient(180deg, #FFFDF6, #F4ECDA); border: 3px solid var(--outline); box-shadow: 0 12px 26px rgba(0,0,0,.4); }
.ny-passport-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--ny-navy); color: #FFE27F;
  font: 800 15px/1 var(--title); letter-spacing: 2px; }
.ny-passport-body { display: flex; gap: 10px; padding: 12px; align-items: center; }
.ny-passport-photo { flex: none; width: 84px; height: 100px; border-radius: 8px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center;
  background: linear-gradient(180deg, #CFE3F7, #A9C8EA); border: 2px solid #8BA5C6; }
.ny-passport-photo .xm-char { height: 96px !important; }
.ny-passport-photo .xm-char img.is-art { animation: none; filter: none; }
.ny-passport-photo.is-flash { animation: ny-flash .5s ease-out; }
@keyframes ny-flash { 0% { filter: brightness(2.4); } 100% { filter: none; } }
.ny-passport-lines { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ny-passport-lines small { font: 800 11px/1.2 'Nunito', sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #7A7488; }
.ny-passport-lines b { font: 800 20px/1.15 var(--hand); color: var(--ink); white-space: nowrap; overflow: hidden; min-height: 1.15em; }
.ny-passport-stamp { position: absolute; right: 10px; bottom: 10px; padding: 4px 10px; border: 3px solid var(--ny-ok); border-radius: 10px; color: var(--ny-ok);
  font: 800 20px/1 var(--title); transform: rotate(-14deg) scale(2.4); opacity: 0; pointer-events: none; }
.ny-passport-stamp.is-in { animation: ny-stamp-in .35s cubic-bezier(.3,1.6,.5,1) forwards; }
@keyframes ny-stamp-in { to { opacity: .92; transform: rotate(-14deg) scale(1); } }
.ny-desk-penguin { position: absolute !important; z-index: 4; right: 1%; bottom: 8px; z-index: 2; }

/* 1.3 the old year's bin */
.ny-bin { position: absolute; z-index: 3; left: 6%; bottom: 26px; width: 26%; max-width: 120px; }
.ny-bin-pic { width: 100%; height: auto; filter: drop-shadow(0 6px 6px rgba(0,0,0,.35)); }
.ny-bin-year { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%) rotate(-4deg); padding: 1px 6px; border-radius: 6px; background: #fff;
  border: 2px solid var(--outline); color: var(--ink); font: 800 14px/1.1 var(--title); }
.ny-bin-host { position: absolute !important; z-index: 4; right: 22%; bottom: 0; }
.is-staged .ny-binstage .ny-bin-host { margin-bottom: 26px; }
.ny-bin-penguin { position: absolute !important; z-index: 3; right: 2%; bottom: 26px; }
.is-staged .ny-binstage .ny-bin-penguin { margin-bottom: 0; }
.ny-leavetag { position: absolute; z-index: 8; left: 50%; top: 42%; transform: translateX(-50%) rotate(-5deg); display: flex; flex-direction: column; align-items: center;
  gap: 2px; padding: 8px 16px 10px 26px; border-radius: 8px 14px 14px 8px; background: #FFF4D6; border: 3px solid var(--outline); color: var(--ink);
  box-shadow: 0 8px 18px rgba(0,0,0,.35); max-width: 88%; text-align: center; }
.ny-leavetag::before { content: ''; position: absolute; left: 8px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #fff; border: 2px solid var(--outline); }
.ny-leavetag small { font: 800 11px/1 'Nunito', sans-serif; letter-spacing: 1px; color: var(--red-d); }
.ny-leavetag b { font: 800 17px/1.15 var(--title); }

/* the question ribbon: a boarding-pass strip instead of the red ribbon */
.xm-play > .xm-ribbon.ny-ribbon { width: auto; max-width: 92%; display: table; margin: -44px auto 0; padding: 7px 18px; border-radius: 99px; background: var(--ny-navy);
  border: 2px solid #FFE27F; box-shadow: 0 6px 12px rgba(0,0,0,.3); }
.ny-ribbon .xm-ribbon-text { position: static; color: #FFE27F; text-shadow: none; font-size: 14px; letter-spacing: 1.5px; }
.xm-play .xm-opt::before { display: none; }

/* 1.4 packing: the open suitcase */
.is-climb .xm-cam.ny-packstage { min-height: clamp(230px, 38vh, 340px); min-height: clamp(230px, 38dvh, 340px); background: #1B2140; }
.ny-packstage .ny-set-dim { opacity: .35; }
.ny-bag { position: absolute; z-index: 4; left: 36%; bottom: 40px; width: 42%; max-width: 190px; transform: translateX(-50%); }
.ny-bag-pic { width: 100%; height: auto; filter: drop-shadow(0 8px 8px rgba(0,0,0,.4)); }
.ny-bag-items { position: absolute; left: 12%; right: 12%; top: 34%; bottom: 14%; display: flex; flex-wrap: wrap; align-content: flex-end; justify-content: center; gap: 2px; pointer-events: none; }
.ny-bag-items.is-full { opacity: 0; transition: opacity .3s; }
.ny-bag-item { width: 22%; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 2px solid #fff; rotate: var(--r, 0deg); box-shadow: 0 2px 4px rgba(0,0,0,.35); background: #fff; }
.ny-bag-item img { width: 100%; height: 100%; object-fit: cover; }
.ny-pack-host { position: absolute !important; z-index: 5; right: 2%; bottom: 30px; }
.ny-packstage .xm-cast-name, .ny-binstage .xm-cast-name { bottom: 18%; }
.ny-invite-host .xm-cast-name { bottom: 30%; }
/* the bag is full: the host sits on it (the sit-suitcase pose draws the bulging bag under them, in the bag's place) */
.ny-bag, .ny-pack-host { transition: opacity .3s, right .45s cubic-bezier(.3,1.3,.5,1), translate .45s cubic-bezier(.3,1.3,.5,1); }
.ny-packstage.is-full .ny-bag { opacity: 0; }
.ny-packstage.is-full .ny-pack-host { right: 64%; translate: 50% 0; }

/* 1.5 the gate and the creator's plane */
.ny-gatestage, .ny-planestage { background: #141A3A; }
.ny-gate-host { position: absolute !important; z-index: 5; left: 2%; bottom: 40px; }
.ny-gate-penguin { position: absolute !important; z-index: 4; right: 3%; bottom: 44px; }
/* while the film's bars are in: the top bar hides under the upper one, the cast stands clear of the lower one */
.xm-cam.is-bars > .xm-hero-top { opacity: 0; pointer-events: none; }
.xm-hero-top { transition: opacity .3s; }
.ny-gatestage.is-bars .ny-gate-host, .ny-gatestage.is-bars .ny-gate-penguin { bottom: calc(min(8%, 54px) + 30px); }
.ny-planestage .ny-set-dim { opacity: .3; }
.ny-printer { position: absolute; z-index: 6; left: 50%; top: 40%; width: min(86%, 340px); transform: translateX(-50%); }
.ny-pass.is-printing { animation: ny-print 1.1s cubic-bezier(.2,1,.3,1) both; }
@keyframes ny-print { from { clip-path: inset(0 0 100% 0); transform: translateY(-30px); } to { clip-path: inset(0 0 0 0); transform: none; } }
.ny-frontrow { position: absolute; z-index: 5; left: 50%; top: 40%; transform: translateX(-50%); display: flex; gap: 6px; width: min(92%, 380px); }
.ny-seat { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px 12px; border-radius: 16px 16px 10px 10px;
  background: linear-gradient(180deg, #3A4472, #262E55); border: 2px solid #56609A; color: #fff; box-shadow: 0 8px 16px rgba(0,0,0,.4); }
.ny-seat small { font: 800 12px/1 'Courier New', monospace; color: #B9C2EA; }
.ny-seat b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 15px/1.2 var(--title); }
.ny-seat.is-1a { background: linear-gradient(180deg, #FFE27F, #E9B21E); border-color: #FFF3C2; color: var(--ink); }
.ny-seat.is-1a small { color: #6B4C00; }
.ny-seat.is-1b { background: linear-gradient(180deg, #FF7EB0, #E2457E); border-color: #FFD1E3; }
.ny-seat.is-1b small { color: #FFE3EE; }
.ny-seat.is-free b { opacity: .75; font-weight: 700; }
.ny-class-head { display: flex; justify-content: space-between; align-items: center; margin: 10px 2px 2px; font: 800 17px/1.2 var(--title); color: var(--ink); }
.ny-class-head span { font-size: 13px; color: #7A7488; }
.ny-row-seat { flex: none; min-width: 52px; padding: 6px 4px; border-radius: 10px; text-align: center; font: 800 13px/1 'Courier New', monospace; color: #fff; background: var(--ny-left); }
.ny-row-seat.is-top { background: var(--ny-first); color: var(--ink); }
.ny-row-seat.is-front { background: var(--ny-econ); }
.ny-row-seat.is-bottom { background: var(--ny-cargo); }
.xm-zone.is-top { background: #FFF1C2; color: #7A5600; }
.xm-zone.is-front { background: #DDEBFA; color: #1D5C99; }
.xm-zone.is-bottom { background: #FBE6D2; color: #8A4C12; }
.xm-zone.is-box { background: #E8E9F0; color: #5A5E74; }

/* the boarding pass */
.ny-pass { position: relative; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #FFFDF8; color: var(--ink);
  border: 2px solid #E6DCC8; box-shadow: 0 10px 22px rgba(60,40,10,.18); text-align: start; }
.ny-pass-main { position: relative; padding-bottom: 10px; }
.ny-pass-band { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: var(--ny-navy); color: #fff;
  font: 800 12px/1.2 'Nunito', sans-serif; letter-spacing: 1.2px; }
.ny-pass.is-top .ny-pass-band, .ny-pass.is-creator .ny-pass-band { background: linear-gradient(90deg, #C99A12, #FFD34D); color: var(--ink); }
.ny-pass.is-front .ny-pass-band, .ny-pass.is-close .ny-pass-band { background: var(--ny-econ); }
.ny-pass.is-bottom .ny-pass-band { background: var(--ny-cargo); }
.ny-pass.is-box .ny-pass-band { background: var(--ny-left); }
.ny-pass-plane { font-size: 16px; }
.ny-pass-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 10px; padding: 10px 14px 0; }
.ny-pass-field { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ny-pass-field small { font: 800 10px/1.1 'Nunito', sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #8A8296; }
.ny-pass-field b { font: 800 16px/1.15 var(--title); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ny-pass-field.is-name, .ny-pass-field.is-with { grid-column: 1 / -1; }
.ny-pass-field.is-name b { font: 800 22px/1.15 var(--hand); }
.ny-pass-leaving { margin: 8px 14px 0; padding: 4px 8px; border-radius: 8px; background: #FFF1D6; font: 800 13px/1.25 'Nunito', sans-serif; color: var(--red-d); }
.ny-pass-class { padding: 10px 14px 0; font: 800 clamp(22px, 7vw, 28px)/1.05 var(--title); }
/* The stamp has its own spot under the class, at the end side: stamps run 8–14 letters across the languages, so one
   tucked beside the class name would print over its last word. */
.ny-pass-stamp { position: relative; display: table; margin: 12px 0 0; margin-inline: auto 14px; padding: 3px 9px; border: 3px solid currentColor; border-radius: 8px; transform: rotate(-12deg);
  font: 800 14px/1 var(--title); letter-spacing: 1px; opacity: .85; color: var(--ny-ok); }
.ny-pass-stamp.is-top { color: #B58600; }
.ny-pass-stamp.is-bottom { color: var(--ny-cargo); }
.ny-pass-stamp.is-close { color: #B58600; }
.ny-pass-stamp.is-box { color: var(--ny-no); }
.ny-pass-stub { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 14px 12px; border-top: 2px dashed #D9CDB6; background: #FBF5EA; }
.ny-pass-stub::before, .ny-pass-stub::after { content: ''; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: #F4ECDD; }
.ny-pass-stub::before { left: -9px; }
.ny-pass-stub::after { right: -9px; }
.ny-pass-code { flex: none; width: 54px; height: 26px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px); opacity: .8; }
.ny-pass-stub p { margin: 0; font: 700 14px/1.3 'Nunito', sans-serif; color: #5E5568; }
.is-invite .xm-play .ny-pass { margin-top: -50px; z-index: 3; }

/* 2.1 final call */
.xm-hero.ny-hero.is-invite { height: 46vh; height: 46dvh; min-height: 340px; padding: 0; }
.ny-hero.is-invite .ny-board.is-hero { top: calc(62px + env(safe-area-inset-top)); }
.ny-pa { position: absolute; z-index: 6; left: 14px; right: 14px; top: calc(150px + env(safe-area-inset-top)); display: flex; gap: 8px; align-items: center;
  max-width: none; background: #FFFDF6; color: var(--ink); text-align: start; }
.ny-pa::after { display: none; }
.ny-pa-icon { font-size: 22px; }
.ny-proof { position: absolute; z-index: 6; left: 14px; right: 40%; bottom: 70px; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.ny-proof-line { align-self: flex-start; padding: 4px 10px; border-radius: 99px; background: rgba(16,19,31,.78); color: #fff; font: 800 13px/1.25 'Nunito', sans-serif; }
.ny-proof-line.is-1a { background: linear-gradient(90deg, #C99A12, #FFD34D); color: var(--ink); }
.ny-invite-host { position: absolute !important; z-index: 5; right: 3%; bottom: 48px; }

/* 2.2–2.4 the airport */
.ny-airport { background: #141A3A; }
.ny-airport .ny-world { animation: none; }
.ny-air-friend { position: absolute !important; z-index: 6; left: 2%; bottom: 26px; }
.ny-air-penguin { position: absolute !important; z-index: 4; right: 2%; bottom: 30px; }
.ny-air-bag { position: absolute; z-index: 5; left: 58%; bottom: 22px; width: 24%; max-width: 120px; transform: translateX(-50%); }
.ny-air-friend .xm-cast-name { bottom: 30%; left: 58%; }
.ny-call { left: 10px; overflow: hidden; background: radial-gradient(circle at 50% 30%, #CFE3F7, #7EA6D6); }
.ny-call::after { content: 'LIVE'; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%); padding: 0 4px; border-radius: 4px; background: var(--ny-no);
  color: #fff; font: 800 8px/1.4 'Nunito', sans-serif; letter-spacing: .5px; }
.ny-strip { position: absolute; z-index: 8; left: 86px; right: 58px; top: calc(56px + env(safe-area-inset-top)); display: flex; align-items: center; gap: 6px;
  padding: 4px 6px; border-radius: 8px; background: rgba(16,19,31,.86); border: 1px solid #2E3550; color: var(--ny-amber); transition: opacity .4s; }
.ny-strip-time { flex: none; font: 800 clamp(11px, 3.6vw, 13px)/1 'Courier New', monospace; }
.ny-strip-stop { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 800 clamp(10px, 3.3vw, 12px)/1.1 'Courier New', monospace; text-transform: uppercase; }
.ny-classchip { flex: none; display: flex; flex-direction: column; align-items: flex-end; padding: 2px 6px; border-radius: 6px; background: #3A3F55; color: #fff; transition: background .4s; }
.ny-classchip small { font: 800 8px/1 'Nunito', sans-serif; letter-spacing: 1px; text-transform: uppercase; opacity: .8; }
.ny-classchip b { font: 800 11px/1.2 'Nunito', sans-serif; white-space: nowrap; }
.ny-classchip[data-zone="bottom"] { background: var(--ny-cargo); }
.ny-classchip[data-zone="front"] { background: var(--ny-econ); }
.ny-classchip[data-zone="top"] { background: linear-gradient(90deg, #C99A12, #FFD34D); color: var(--ink); }
.ny-classchip.is-up { animation: ny-chip-up .7s cubic-bezier(.3,1.5,.5,1); }
@keyframes ny-chip-up { 0% { transform: rotateX(0); } 45% { transform: rotateX(90deg) scale(1.2); } 100% { transform: none; box-shadow: 0 0 14px rgba(255,211,77,.9); } }
.xm-tagbar.ny-tagbar { top: calc(92px + env(safe-area-inset-top)); right: 58px; transition: opacity .4s; }
.ny-tagbar i.is-wrong::before { content: '\2717'; color: #fff; font-weight: 800; }
.ny-airport.is-call .ny-call { box-shadow: 0 0 0 3px #7FD1AE, 0 6px 12px rgba(0,0,0,.35); scale: 1.7; }
.ny-call { transform-origin: 0 0; transition: scale .5s cubic-bezier(.3,1.3,.5,1); }
.ny-airport.is-ringing .ny-call { animation: ny-ring .25s ease-in-out infinite alternate; }
@keyframes ny-ring { from { rotate: -8deg; } to { rotate: 8deg; } }
.ny-airport.is-call .ny-strip, .ny-airport.is-call .ny-tagbar { opacity: 0; }
.ny-airport.is-flash::after { content: ''; position: absolute; inset: 0; z-index: 9; pointer-events: none; background: radial-gradient(circle, rgba(255,211,77,.55), rgba(255,211,77,0) 70%);
  animation: xm-flash .8s ease-out forwards; }
.xm-fly.is-gold { box-shadow: 0 0 18px 6px rgba(255,211,77,.8); }
.ny-air-prop { position: absolute; z-index: 5; height: auto; filter: drop-shadow(0 6px 6px rgba(0,0,0,.35)); transition: opacity .4s, transform .4s; pointer-events: none; }
.ny-air-prop.is-mid { left: 40%; bottom: 24px; width: 30%; max-width: 140px; }
.ny-air-prop.is-spill { left: 52%; bottom: 46px; width: 22%; max-width: 100px; }
.ny-air-prop.is-floor { left: 10%; bottom: 8px; width: 80%; }
.ny-air-prop.is-out { opacity: 0; transform: translateY(14px) scale(.9); }
.ny-air-bin { position: absolute; z-index: 4; left: 36%; bottom: 24px; width: 18%; max-width: 86px; }
.ny-air-bin .ny-bin-card { position: absolute; left: 20%; top: -34%; width: 60%; height: auto; rotate: -10deg; transition: transform .6s cubic-bezier(.3,1.4,.5,1); }
.ny-air-bin.is-climb .ny-bin-card { transform: translateY(-60%) rotate(14deg) scale(1.2); }
.ny-air-bin.is-toss .ny-bin-card { transform: translateY(30%) scale(.8); }
.ny-air-bin .ny-bin-year { font-size: 11px; }
.ny-stamp { position: absolute; z-index: 15; left: 50%; top: 46%; padding: 6px 18px; border: 5px solid currentColor; border-radius: 12px; pointer-events: none;
  transform: translate(-50%, -50%) rotate(var(--rot)); font: 800 clamp(30px, 11vw, 46px)/1 var(--title); letter-spacing: 2px; background: rgba(255,255,255,.85);
  animation: ny-slam .38s cubic-bezier(.3,1.6,.5,1) both; }
.ny-stamp.is-ok { color: var(--ny-ok); --rot: -10deg; }
.ny-stamp.is-no { color: var(--ny-no); --rot: 8deg; }
.ny-stamp.is-out { opacity: 0; transition: opacity .4s; }
@keyframes ny-slam { from { opacity: 0; transform: translate(-50%, -50%) rotate(var(--rot)) scale(3); } to { opacity: 1; transform: translate(-50%, -50%) rotate(var(--rot)) scale(1); } }
.ny-bigstamp { position: absolute; z-index: 14; left: 50%; top: 38%; transform: translate(-50%, -50%) rotate(-8deg); font: 800 clamp(64px, 24vw, 110px)/1 var(--title);
  color: #F2BF26; text-shadow: 0 0 20px rgba(255,211,77,.8), 0 4px 0 #8A6400; pointer-events: none; animation: ny-big 1.1s cubic-bezier(.2,1,.3,1) both; }
.ny-bigstamp.is-faint { color: rgba(80,70,100,.35); text-shadow: none; font-size: clamp(44px, 16vw, 72px); }
.ny-bigstamp.is-out { opacity: 0; transition: opacity .5s; }
@keyframes ny-big { from { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(2.6); } to { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(1); } }
.ny-sign { position: absolute; z-index: 12; padding: 6px 10px; border-radius: 8px; background: #fff; border: 3px solid var(--outline); color: var(--ink); white-space: nowrap;
  font: 800 15px/1.1 var(--title); box-shadow: 0 6px 12px rgba(0,0,0,.35); transition: opacity .35s; pointer-events: none; }
.ny-sign::after { content: ''; position: absolute; left: 50%; top: 100%; width: 4px; height: 14px; margin-left: -2px; background: #8A6A4A; }
.ny-sign.is-out { opacity: 0; }
.ny-count { position: absolute; z-index: 9; right: 14px; top: calc(118px + env(safe-area-inset-top)); font: 800 52px/1 var(--title); color: #FFE27F;
  text-shadow: 0 0 18px rgba(255,211,77,.9), 0 3px 0 #8A6400; pointer-events: none; }
.ny-count.is-tick { animation: ny-tick .8s ease-out; }
@keyframes ny-tick { from { opacity: 0; transform: scale(1.8); } 30% { opacity: 1; transform: scale(1); } to { opacity: .85; } }
.ny-passfly { position: absolute; z-index: 16; left: 50%; top: 50%; width: min(86%, 340px); transform: translate(-50%, -50%); animation: ny-passfly .9s cubic-bezier(.2,1.2,.4,1) both; }
.ny-passfly.is-out { opacity: 0; transition: opacity .3s; }
@keyframes ny-passfly { 0% { opacity: 0; transform: translate(-50%, 60%) rotate(-540deg) scale(.3); } 100% { opacity: 1; transform: translate(-50%, -50%) rotate(-3deg) scale(1); } }
.xm-qbox.is-leaving { opacity: .3; transition: opacity .2s; }

/* 3.0 THE YEAR CROSSING: the old year in letters of light over the city; the plane climbs; a digit falls, a new one flips in */
.ny-sky { position: absolute; inset: 0; z-index: 20; overflow: hidden; background: #070A1C; animation: ny-sky-in .5s ease-out both; }
.ny-sky .ny-set-bg { object-position: 50% 100%; }
.ny-sky.is-out { opacity: 0; transition: opacity .4s; }
@keyframes ny-sky-in { from { opacity: 0; } }
.ny-year { position: absolute; z-index: 2; left: 0; right: 0; top: 22%; display: flex; justify-content: center; gap: 2vw; perspective: 600px; }
.ny-digit { display: inline-block; font: 800 clamp(70px, 24vw, 120px)/1 var(--title); color: #FFF4CF; text-shadow: 0 0 12px #FFD34D, 0 0 34px rgba(255,211,77,.8), 0 0 70px rgba(255,160,60,.5); }
.ny-digit.is-falling { animation: ny-fall 1s cubic-bezier(.6,0,.9,.6) forwards; }
@keyframes ny-fall { 0% { transform: none; } 20% { transform: rotate(18deg); } 100% { transform: translate(-30vw, 70vh) rotate(160deg) scale(.4); opacity: .2; filter: blur(2px); } }
.ny-digit.is-new { color: #FFE27F; animation: ny-flipin .55s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes ny-flipin { from { transform: rotateX(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
.ny-sky.is-bursting .ny-digit { animation: ny-burst 1.2s ease-out; }
@keyframes ny-burst { 40% { text-shadow: 0 0 20px #fff, 0 0 60px #FFD34D, 0 0 120px #FF4F8B; transform: scale(1.12); } }
.ny-sky-plane { position: absolute; z-index: 3; left: 50%; bottom: -30%; width: 46%; max-width: 220px; height: auto; transform: translateX(-50%); }
.ny-sky-plane.is-climbing { animation: ny-climb 2.4s cubic-bezier(.3,0,.4,1) forwards; }
@keyframes ny-climb { to { bottom: 64%; width: 18%; opacity: .6; } }
.ny-count.is-sky { top: auto; bottom: 22%; left: 0; right: 0; text-align: center; font-size: 90px; }
.ny-hny { position: absolute; z-index: 4; left: 12px; right: 12px; top: 52%; text-align: center; font: 800 clamp(30px, 10vw, 46px)/1.05 var(--title); color: #fff;
  text-shadow: 0 3px 0 #B42B29, 0 0 22px rgba(255,79,139,.7); }

/* 3.1–3.4 the take-off films and the result's stage */
.ny-film { background: #141A3A; }
/* the endings' title card hangs at the top of the frame, clear of the cast standing at its foot */
.ny-film .xm-film-card { top: calc(min(8%, 54px) + 6px); bottom: auto; padding: 12px 18px 30px; background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,0)); }
.ny-film-char { position: absolute !important; z-index: 5; bottom: calc(min(8%, 54px) + 14px); }
.ny-film-char.is-left { left: 4%; }
.ny-film-char.is-right { right: 4%; }
.ny-film-char.is-mid { left: 50%; translate: -50% 0; }
.ny-film-pic { position: absolute; z-index: 4; height: auto; filter: drop-shadow(0 8px 8px rgba(0,0,0,.35)); }
.ny-film-pic.is-pair { left: 50%; bottom: calc(min(8%, 54px) + 10px); width: 92%; max-width: 420px; transform: translateX(-50%); z-index: 5; }
.ny-film-pic.is-carpet { left: 0; bottom: 0; width: 100%; }
.ny-film-pic.is-walrus { left: -6%; bottom: calc(min(8%, 54px) + 6px); width: 40%; max-width: 190px; }
.ny-film-pic.is-kid { right: -4%; bottom: calc(min(8%, 54px) + 6px); width: 36%; max-width: 170px; }
.ny-film-pic.is-balloon { left: 42%; bottom: 46%; width: 18%; max-width: 80px; }
/* in the luggage: the sky seen through the gap of a zip (dark all round, the light in a slit) */
.ny-film.is-muffled .ny-sky::after { content: ''; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: radial-gradient(ellipse 70% 32% at 50% 40%, rgba(0,0,0,0) 60%, rgba(20,10,30,.92) 100%); }
.ny-namecard { position: absolute; z-index: 6; left: 50%; top: 32%; transform: translateX(-50%) rotate(-3deg); display: flex; flex-direction: column; align-items: center;
  padding: 6px 14px 8px; border-radius: 8px; background: linear-gradient(180deg, #FFE27F, #E9B21E); border: 3px solid var(--outline); color: var(--ink); max-width: 80%; }
.ny-namecard small { font: 800 12px/1 'Courier New', monospace; }
.ny-namecard b { font: 800 20px/1.1 var(--hand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ny-partysign { position: absolute; z-index: 6; left: 50%; top: 30%; transform: translateX(-50%) rotate(-4deg); padding: 8px 16px; border-radius: 10px; background: #FF4F8B;
  border: 3px solid var(--outline); color: #fff; font: 800 22px/1.1 var(--title); white-space: nowrap; box-shadow: 0 8px 16px rgba(0,0,0,.35); }
.is-result .xm-cam.ny-film { height: 46vh; height: 46dvh; min-height: 300px; }
.is-result .ny-film .ny-film-pic.is-pair, .is-result .ny-film .ny-film-char { bottom: 34px; }
.is-result .ny-film .ny-film-pic.is-pair { width: 78%; max-width: 330px; }
.ny-result-badge { position: absolute; z-index: 7; right: 12px; top: calc(60px + env(safe-area-inset-top)); width: 26%; max-width: 110px; height: auto; filter: drop-shadow(0 6px 8px rgba(0,0,0,.4)); }
.ny-status { margin: 0; padding: 8px 12px; border-radius: 12px; text-align: center; font: 800 15px/1.3 'Nunito', sans-serif; background: #F0EBF6; color: #4A4060; }
.ny-status.is-1a { background: linear-gradient(90deg, #FFF1C2, #FFE27F); color: #5A4100; }
.ny-closed { position: relative; height: 340px; border-radius: 18px; overflow: hidden; }
.ny-closed-penguin { position: absolute !important; z-index: 4; left: 50%; translate: -50% 0; bottom: 14px; }
@media (prefers-reduced-motion: reduce) { .ny-digit, .ny-sky-plane, .ny-stamp, .ny-bigstamp, .ny-passfly, .ny-pass.is-printing { animation: none !important; } }

/* ══════════════ v2 (2026-11-04): the friend walks up the aisle to the seat next to the creator ══════════════ */
/* the invitation: the seat next to the creator, glowing, who sits in it now */
.ny-seatnow { position: absolute; z-index: 6; left: 12px; right: 34%; bottom: 40px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px;
  background: linear-gradient(90deg, #C99A12, #FFD34D); color: var(--ink); box-shadow: 0 0 0 3px rgba(255,255,255,.6), 0 8px 18px rgba(0,0,0,.4); }
.ny-seatnow b { font: 800 14px/1.25 'Nunito', sans-serif; }
.ny-seatnow-crown { font-size: 24px; }
.ny-seatnow:not(.is-taken) { animation: ny-glow 1.6s ease-in-out infinite alternate; }
@keyframes ny-glow { from { box-shadow: 0 0 0 3px rgba(255,255,255,.5), 0 0 10px rgba(255,211,77,.5); } to { box-shadow: 0 0 0 3px #fff, 0 0 26px rgba(255,211,77,.95); } }
.ny-hero.is-invite .ny-proof { bottom: auto; top: calc(150px + env(safe-area-inset-top)); right: 14px; }
.xm-play .ny-invite-head { font-size: clamp(22px, 6.6vw, 27px); }

/* the aisle: the cabin from the back, the creator in their seat where the aisle meets the front */
.is-climb .xm-cam.ny-aisle { min-height: clamp(300px, 50vh, 440px); min-height: clamp(300px, 50dvh, 440px); background: #1B2140; overflow: hidden; }
.ny-aisle-world { position: absolute; inset: 0; transform-origin: 50% 40%; transition: transform 1s cubic-bezier(.3,0,.2,1); }
.ny-set-bg.is-aisle { object-position: 50% 22%; }
.ny-aisle-creator { position: absolute !important; z-index: 2; left: 50%; bottom: 40%; translate: -50% 0; }
.ny-aisle-creator .xm-cast-name { bottom: -12px; font-size: 11px; }
.ny-aisle-friend { position: absolute !important; z-index: 6; left: 4%; bottom: 22px; }
.ny-aisle-friend .xm-cast-name { bottom: 28%; left: 58%; }
.ny-aisle.is-dim .ny-set-dim { opacity: .55; }
/* the clock (top left, under nothing: this stage has only the sound button at the top right) */
.ny-clock { position: absolute; z-index: 8; left: 10px; top: calc(12px + env(safe-area-inset-top)); display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px;
  background: rgba(16,19,31,.86); border: 2px solid rgba(255,227,127,.6); color: #FFE27F; font: 800 14px/1 'Nunito', sans-serif; box-shadow: 0 4px 10px rgba(0,0,0,.35); }
.ny-clock.is-tick { animation: ny-tick-clock .6s cubic-bezier(.3,1.5,.5,1); }
@keyframes ny-tick-clock { 40% { transform: scale(1.12); } }
/* the track: four places left to right (left behind → next to the creator), the friend's face on the one they have made
   sure of; a line between the steps shows the way */
.ny-meter { position: absolute; z-index: 8; left: 8px; right: 8px; top: calc(54px + env(safe-area-inset-top)); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ny-meter-step { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 38px; padding: 3px 4px; border-radius: 10px;
  background: rgba(16,19,31,.74); color: rgba(255,255,255,.72); font: 800 clamp(9px, 2.9vw, 11px)/1.1 'Nunito', sans-serif; text-align: center; border: 2px solid transparent;
  transition: background .35s, color .35s, border-color .35s; }
.ny-meter-step + .ny-meter-step::before { content: '›'; position: absolute; left: -6px; top: 50%; transform: translate(-50%, -50%); color: rgba(255,255,255,.8); font: 800 14px/1 sans-serif; }
.ny-meter-emoji { font-size: 15px; line-height: 1; }
.ny-meter-label { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.ny-meter-step.is-on { color: var(--ink); border-color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.ny-meter-step.is-on.is-top { background: linear-gradient(180deg, #FFE9A0, #FFD34D); }
.ny-meter-step.is-on.is-front { background: #BFE0FF; }
.ny-meter-step.is-on.is-bottom { background: #FFC7D9; }
.ny-meter-step.is-on.is-box { background: #E3E4EE; }
.ny-meter-step.is-top:not(.is-on) { border-color: rgba(255,211,77,.7); }
.ny-meter-step.is-up { animation: ny-step-up .7s cubic-bezier(.3,1.5,.5,1); }
@keyframes ny-step-up { 0% { transform: scale(.9); } 45% { transform: scale(1.15); box-shadow: 0 0 18px rgba(255,211,77,.95); } 100% { transform: none; } }
.ny-meter-face { position: absolute; right: -6px; top: -10px; width: 24px; height: 24px; border-radius: 50%; overflow: hidden; background: #fff; border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.45); z-index: 1; }
.ny-meter-pic { width: 100%; height: auto; margin-top: 1px; }
/* a new place reached: said big over the aisle */
.ny-banner { position: absolute; z-index: 14; left: 10px; right: 10px; top: 42%; text-align: center; pointer-events: none; animation: ny-banner-in .5s cubic-bezier(.2,1.4,.4,1) both; }
.ny-banner span { display: inline-block; padding: 10px 18px; border-radius: 16px; background: #fff; color: var(--ink); border: 3px solid var(--outline);
  font: 800 clamp(18px, 5.6vw, 24px)/1.15 var(--title); box-shadow: 0 10px 24px rgba(0,0,0,.4); }
.ny-banner.is-top span { background: linear-gradient(180deg, #FFE27F, #F2BF26); }
.ny-banner.is-front span { background: #DDEBFA; }
.ny-banner.is-bottom span { background: #FFE3C7; }
.ny-banner.is-out { opacity: 0; transition: opacity .35s; }
@keyframes ny-banner-in { from { opacity: 0; transform: scale(.4) rotate(-6deg); } to { opacity: 1; transform: none; } }
/* the end of the walk: where they made it to, said big */
.ny-reveal { position: absolute; z-index: 16; left: 16px; right: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 16px; border-radius: 22px; background: #fff; color: var(--ink); text-align: center; border: 4px solid var(--outline); box-shadow: 0 16px 34px rgba(0,0,0,.5);
  animation: ny-banner-in .6s cubic-bezier(.2,1.4,.4,1) both; }
.ny-reveal.is-top { background: linear-gradient(180deg, #FFF4CC, #FFD34D); }
.ny-reveal.is-front { background: #DDEBFA; }
.ny-reveal.is-bottom { background: #FFE3C7; }
.ny-reveal.is-box { background: #ECEDF3; }
.ny-reveal-emoji { font-size: 52px; line-height: 1; }
.ny-reveal b { font: 800 clamp(22px, 7vw, 30px)/1.1 var(--title); }
.ny-reveal small { font: 800 15px/1.2 'Nunito', sans-serif; color: #5E5568; }
.ny-reveal.is-out { opacity: 0; transition: opacity .3s; }
/* the phone call (the friend at home; the creator in a big round video window) */
.ny-callscene { position: absolute; inset: 0; z-index: 5; }
.ny-aisle.is-calling .ny-aisle-friend { z-index: 7; }
.ny-aisle.is-calling .ny-clock, .ny-aisle.is-calling .ny-meter { opacity: 0; }
.ny-clock, .ny-meter { transition: opacity .4s; }
.ny-callwin { position: absolute; z-index: 6; left: 50%; top: calc(56px + env(safe-area-inset-top)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ny-callwin-pic { position: relative; width: 120px; height: 120px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 30%, #CFE3F7, #7EA6D6);
  border: 4px solid #fff; box-shadow: 0 0 0 4px #7FD1AE, 0 10px 20px rgba(0,0,0,.4); }
.ny-callwin-pic .xm-char { position: absolute !important; left: 50%; top: 8px; translate: -50% 0; }
.ny-callwin-pic .xm-char img.is-art { animation: none; }
.ny-callwin-name { padding: 2px 10px; border-radius: 99px; background: rgba(16,19,31,.8); color: #fff; font: 800 13px/1.3 'Nunito', sans-serif; }
.ny-callwin.is-ringing .ny-callwin-pic { animation: ny-ring .22s ease-in-out infinite alternate; }
/* the creator's front row: two seats, theirs and the one next to it */
.ny-frontrow { width: min(80%, 300px); }

.xm-say.is-gone { opacity: 0; transition: opacity .3s; }

/* v3 (2026-11-05): three friendship classes — Best Friend 👑 / Good Friend 😊 / Fake Friend 🤡 */
.ny-meter-step { font-size: clamp(10px, 3.1vw, 12px); }
.ny-namecard.is-good { background: linear-gradient(180deg, #DDEBFA, #9FCBF5); }
.ny-namecard.is-fake { background: linear-gradient(180deg, #FFE0EA, #FF9EBE); transform: translateX(-50%) rotate(4deg); }
.ny-namecard small { font-size: 18px; line-height: 1.1; }
.ny-film-char.is-peek { right: -6%; bottom: auto; top: 26%; z-index: 4; }
.ny-reveal.is-bottom { background: #FFE0EA; }
.ny-reveal-kicker { text-transform: uppercase; letter-spacing: 1.5px; }
.ny-reveal-crown { padding: 4px 10px; border-radius: 99px; background: #fff; border: 2px solid #E9B21E; font: 800 14px/1.25 'Nunito', sans-serif; }
.ny-sheet-emoji { flex: none; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: #FFF4D6; font-size: 32px; }
.ny-pass.is-bottom .ny-pass-band { background: #E2457E; }
.ny-pass-stamp.is-bottom { color: #E2457E; }
.ny-row-seat { font-size: 20px; min-width: 40px; padding: 4px; background: none !important; }

/* ══════════════ v4 (2026-11-05): the light, cute look (Don't Block Me's pace): sky, clouds, white cards, big
   stickers, one thing per screen ══════════════ */
:root { --sky1: #9ED8FF; --sky2: #DDF1FF; --sky3: #F4FBFF; --card: #FFFFFF; --ink4: #20304F; --pink4: #FF5C93; --gold4: #FFC93C; }
.xm-scene.is-sky { min-height: 100vh; min-height: 100dvh; padding: 0 14px calc(24px + env(safe-area-inset-bottom)); gap: 14px; color: var(--ink4); align-items: stretch;
  background: radial-gradient(120% 40% at 50% 0%, var(--sky1) 0%, var(--sky2) 55%, var(--sky3) 100%); overflow-x: hidden; }
.xm-scene.is-sky::before, .xm-scene.is-sky::after { content: ''; position: absolute; z-index: 0; pointer-events: none; border-radius: 99px; background: #fff; opacity: .85;
  box-shadow: 40px -14px 0 6px #fff, 86px 2px 0 -2px #fff; }
.xm-scene.is-sky::before { width: 90px; height: 34px; left: 6%; top: 120px; animation: ny4-drift 14s ease-in-out infinite alternate; }
.xm-scene.is-sky::after { width: 70px; height: 28px; right: 26%; top: 260px; opacity: .7; animation: ny4-drift 18s ease-in-out infinite alternate-reverse; }
@keyframes ny4-drift { to { translate: 30px 0; } }
.xm-scene.is-sky > * { position: relative; z-index: 1; }
.ny4-top { padding-top: calc(12px + env(safe-area-inset-top)); }
.ny4-top .xm-top { padding-right: 48px; }
/* the landing */
.ny4-hero { height: 190px; margin-top: -8px; }
.ny4-hero-plane { position: absolute; left: 50%; top: 4px; width: 62%; max-width: 260px; height: auto; transform: translateX(-50%); animation: ny4-fly 3s ease-in-out infinite alternate; filter: drop-shadow(0 8px 10px rgba(32,48,79,.18)); }
@keyframes ny4-fly { to { transform: translate(-46%, -8px) rotate(-3deg); } }
.ny4-hero-bear { position: absolute !important; left: 8%; bottom: 0; }
.ny4-hero-cat { position: absolute !important; right: 8%; bottom: 0; }
.ny4-title { margin: 0; text-align: center; font-family: var(--title); font-weight: 800; line-height: 1; text-wrap: balance; }
.ny4-title span { display: block; font-size: clamp(24px, 7.4vw, 32px); color: var(--ink4); }
.ny4-title b { display: block; font-size: clamp(34px, 11vw, 50px); color: var(--pink4); text-shadow: 0 3px 0 #fff, 0 6px 14px rgba(255,92,147,.25); }
.ny4-ribbon { align-self: center; padding: 8px 18px; border-radius: 12px; background: #fff; color: var(--ink4); font: 800 15px/1.2 var(--title); box-shadow: 0 6px 16px rgba(32,48,79,.12);
  transform: rotate(-1.5deg); text-align: center; }
.ny4-card { background: var(--card); border-radius: 26px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 10px 30px rgba(32,48,79,.12); }
.ny4-lead { margin: 0; text-align: center; font: 700 16px/1.4 'Nunito', sans-serif; color: #50607E; }
.ny4-meta { margin: -4px 0 0; text-align: center; font: 700 13px/1.3 'Nunito', sans-serif; color: #8A97B0; }
.ny4-classes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ny4-chip { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 16px; text-align: center; font: 800 12px/1.15 'Nunito', sans-serif; color: var(--ink4); }
.ny4-chip span { font-size: 26px; line-height: 1; }
.ny4-chip.is-top { background: #FFF1C2; } .ny4-chip.is-front { background: #DDF0FF; } .ny4-chip.is-bottom { background: #FFE0EA; }
.ny4-steps { margin: 0; }
.xm-scene.is-sky .xm-step { background: #fff; color: #50607E; border-color: #E4EEF8; }
.xm-scene.is-sky .xm-step strong { color: var(--ink4); }
.xm-scene.is-sky .xm-langfield { align-self: center; }
/* stickers and bubbles */
.ny4-sticker { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ny4-sticker-disc { width: 132px; height: 132px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #fff, #E3F3FF); display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden; box-shadow: 0 8px 20px rgba(32,48,79,.15), inset 0 0 0 4px #fff; }
.ny4-sticker.is-small .ny4-sticker-disc { width: 104px; height: 104px; }
.ny4-sticker.is-host .ny4-sticker-disc { width: 150px; height: 150px; }
.ny4-sticker .xm-char { margin-bottom: -6px; }
.ny4-bubble { position: relative; max-width: 300px; padding: 9px 14px; border-radius: 18px; background: #FFE3EE; color: var(--ink4); font: 800 15px/1.3 var(--title); text-align: center; }
.ny4-bubble::after { content: ''; position: absolute; left: 50%; bottom: -8px; margin-left: -8px; border: 8px solid transparent; border-bottom: 0; border-top-color: #FFE3EE; }
.ny4-bubble.is-pop { animation: ny4-pop .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes ny4-pop { from { transform: scale(.7); opacity: .4; } }
.ny4-input { text-align: center; font-size: 20px !important; border: 3px solid #D7E8F7 !important; }
.ny4-label { text-align: center; font: 800 15px/1.2 var(--title); color: var(--ink4); }
.ny4-who .xm-who-card { background: #F6FAFF; border-color: #E4EEF8; color: var(--ink4); }
.ny4-who .xm-who-card.is-picked { background: #FFF6D8; border-color: var(--gold4); }
.xm-scene.is-sky .xm-error { color: #D6304F; text-align: center; }
/* questions */
.ny4-progress { display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.ny4-progress b { text-align: center; font: 800 14px/1 var(--title); color: var(--ink4); letter-spacing: .5px; }
.ny4-bar { height: 10px; border-radius: 99px; background: #fff; overflow: hidden; box-shadow: inset 0 1px 3px rgba(32,48,79,.15); }
.ny4-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--pink4), var(--gold4)); transition: width .4s ease; }
.ny4-qcard .xm-q { font: 800 clamp(19px, 5.6vw, 23px)/1.2 var(--title); color: var(--ink4); text-align: center; }
.ny4-qcard .xm-opt { background: #F6FAFF; border: 3px solid #E4EEF8; box-shadow: 0 5px 0 #E4EEF8; color: var(--ink4); }
.ny4-qcard .xm-opt::before { display: none; }
.ny4-now { align-self: center; display: flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 99px; background: #fff; box-shadow: 0 4px 12px rgba(32,48,79,.12); font: 800 14px/1.2 'Nunito', sans-serif; }
.ny4-now small { font-size: 12px; color: #8A97B0; }
.ny4-now.is-top { background: #FFF1C2; } .ny4-now.is-front { background: #DDF0FF; } .ny4-now.is-bottom { background: #FFE0EA; }
.ny4-now.is-up { animation: ny4-up .7s cubic-bezier(.3,1.6,.5,1); }
@keyframes ny4-up { 40% { transform: scale(1.25); box-shadow: 0 0 22px rgba(255,201,60,.9); } }
.ny4-last { align-self: center; padding: 4px 12px; border-radius: 99px; background: #FFE0EA; color: #D6304F; font: 800 13px/1.2 'Nunito', sans-serif; }
.ny4-overlay { position: fixed; inset: 0; z-index: 9000; max-width: 480px; margin: 0 auto; }
/* the creator's flight page */
.ny4-flighthead { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.ny4-flight-plane { width: 46%; max-width: 190px; height: auto; animation: ny4-fly 3s ease-in-out infinite alternate; }
.ny4-h1 { margin: 0; font: 800 clamp(24px, 7vw, 30px)/1.1 var(--title); color: var(--ink4); text-wrap: balance; text-align: center; }
.ny4-flightrow { display: flex; align-items: flex-end; justify-content: center; gap: 12px; }
.ny4-flight-host { position: relative !important; }
.ny4-crown { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 120px; max-width: 170px; padding: 10px 14px; border-radius: 18px;
  background: linear-gradient(180deg, #FFF1C2, #FFD966); box-shadow: 0 6px 16px rgba(201,154,18,.3); margin-bottom: 20px; }
.ny4-crown small { font: 800 12px/1.2 'Nunito', sans-serif; color: #7A5600; }
.ny4-crown b { font: 800 18px/1.15 var(--title); color: var(--ink4); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ny4-crown.is-free b { opacity: .7; }
.ny4-panel.xm-play { margin-top: 0; border-radius: 26px; box-shadow: 0 10px 30px rgba(32,48,79,.12); }
.ny4-proof { margin: 0; text-align: center; font: 800 13px/1.3 'Nunito', sans-serif; color: #50607E; }
/* the result: the class, big, with its picture */
.ny4-scene { height: 230px; border-radius: 26px; overflow: hidden; box-shadow: 0 10px 30px rgba(32,48,79,.15); }
.ny4-scene-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.ny4-pair { position: absolute; left: 50%; bottom: 0; width: 92%; max-width: 380px; height: auto; transform: translateX(-50%); }
.ny4-walrus { position: absolute; left: -4%; bottom: 0; width: 40%; height: auto; }
.ny4-kid { position: absolute; right: -2%; bottom: 0; width: 36%; height: auto; }
.ny4-wedged { position: absolute !important; left: 50%; bottom: 0; translate: -50% 0; }
.ny4-resultcard { align-items: center; text-align: center; margin-top: -40px; gap: 6px; border: 4px solid #fff; }
.ny4-resultcard.is-top { background: linear-gradient(180deg, #FFF8DE, #FFE48A); }
.ny4-resultcard.is-front { background: linear-gradient(180deg, #F1F8FF, #CDE7FF); }
.ny4-resultcard.is-bottom { background: linear-gradient(180deg, #FFF2F6, #FFC9DA); }
.ny4-kicker { font: 800 13px/1.3 'Nunito', sans-serif; color: #50607E; }
.ny4-class { display: flex; flex-direction: column; align-items: center; }
.ny4-class span { font-size: 54px; line-height: 1; }
.ny4-class b { font: 800 clamp(30px, 9.4vw, 40px)/1.02 var(--title); color: var(--ink4); }
.ny4-line { margin: 0; font: 700 15px/1.35 'Nunito', sans-serif; color: #50607E; }
.ny4-crownline { margin: 0; padding: 4px 12px; border-radius: 99px; background: #fff; font: 800 14px/1.3 'Nunito', sans-serif; }
.ny4-score { margin: 0; font: 800 14px/1.2 'Nunito', sans-serif; color: var(--ink4); }
.ny4-comeback { margin: 0; text-align: center; font: 800 15px/1.35 'Nunito', sans-serif; color: var(--ink4); }
@media (prefers-reduced-motion: reduce) { .ny4-hero-plane, .ny4-flight-plane, .xm-scene.is-sky::before, .xm-scene.is-sky::after { animation: none; } }
.xm-scene.is-sky .xm-error:empty { display: none; }
@media (max-width: 340px) { .ny4-sticker.is-host .ny4-sticker-disc { width: 112px; height: 112px; } .ny4-sticker-disc { width: 108px; height: 108px; } .ny4-chip { padding: 8px 2px; } }

/* ══════════════ v5 (2026-11-05): the cinema layer — short full-screen moments: the opening, the gold ticket, the
   last question, the class-ups, the award. Night sky, stars, film bars, huge type, gold. ══════════════ */
.ny5-cinema { position: fixed; inset: 0; z-index: 9500; max-width: 480px; margin: 0 auto; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 70px 22px; text-align: center; color: #fff;
  background: radial-gradient(120% 70% at 50% 100%, #3B2F7A 0%, #1A1F4F 45%, #080B22 100%); opacity: 0; transition: opacity .3s ease; }
.ny5-cinema.is-in { opacity: 1; }
.ny5-cinema.is-out { opacity: 0; }
.ny5-stars { position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background-image: radial-gradient(1.6px 1.6px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 31% 8%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 74% 14%, #FFE7A8 50%, transparent 51%), radial-gradient(1.2px 1.2px at 58% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 88% 36%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 7% 44%, #fff 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 44% 52%, #FFE7A8 50%, transparent 51%), radial-gradient(1.2px 1.2px at 22% 64%, #fff 50%, transparent 51%);
  animation: ny5-twinkle 3s ease-in-out infinite alternate; }
@keyframes ny5-twinkle { to { opacity: .5; } }
.ny5-bar { position: absolute; left: 0; right: 0; height: 7%; background: #000; z-index: 3; transition: transform .45s cubic-bezier(.2,1,.3,1); }
.ny5-bar.is-top { top: 0; transform: translateY(-100%); }
.ny5-bar.is-bottom { bottom: 0; transform: translateY(100%); }
.ny5-cinema.is-in .ny5-bar { transform: none; }
.ny5-skip { position: absolute; z-index: 4; bottom: max(1.6%, 8px); left: 0; right: 0; font: 800 12px/1 'Nunito', sans-serif; color: rgba(255,255,255,.55); }
.ny5-cast { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.ny5-plane { width: 70%; max-width: 280px; height: auto; animation: ny5-glide 4.5s cubic-bezier(.3,0,.3,1) both; filter: drop-shadow(0 0 24px rgba(255,211,77,.35)); }
@keyframes ny5-glide { from { transform: translate(-120%, 40px) rotate(-8deg); } 60% { transform: translate(0, -6px) rotate(-3deg); } to { transform: translate(8%, -12px) rotate(-2deg); } }
.ny5-hero { animation: ny5-rise .8s .3s cubic-bezier(.2,1.3,.4,1) both; filter: drop-shadow(0 0 30px rgba(255,211,77,.35)); }
@keyframes ny5-rise { from { opacity: 0; transform: translateY(60px) scale(.7); } }
.ny5-lines { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.ny5-line { margin: 0; font: 800 clamp(24px, 7.6vw, 34px)/1.12 var(--title); color: #fff; text-wrap: balance; text-shadow: 0 4px 18px rgba(0,0,0,.5);
  animation: ny5-line .55s cubic-bezier(.2,1.2,.4,1) both; }
.ny5-line.is-last { color: #FFE27F; }
@keyframes ny5-line { from { opacity: 0; transform: translateY(18px) scale(.94); filter: blur(4px); } }
.ny5-cinema.is-short .ny5-line { font-size: clamp(30px, 10vw, 44px); }
.ny5-ticket { width: min(86vw, 340px); }
.ny5-ticket .ny-pass { box-shadow: 0 0 0 3px rgba(255,211,77,.6), 0 20px 50px rgba(255,211,77,.35); }
/* a big reaction over the screen */
.ny5-pop { position: fixed; z-index: 9400; left: 50%; top: 44%; font-size: 96px; line-height: 1; pointer-events: none; transform: translate(-50%, -50%);
  animation: ny5-pop .9s cubic-bezier(.2,1.5,.4,1) forwards; filter: drop-shadow(0 10px 20px rgba(32,48,79,.3)); }
@keyframes ny5-pop { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.2) rotate(-20deg); } 35% { opacity: 1; transform: translate(-50%, -50%) scale(1.25) rotate(6deg); }
  60% { transform: translate(-50%, -50%) scale(1) rotate(0); } 100% { opacity: 0; transform: translate(-50%, -80%) scale(.9); } }
.ny5-pop.is-no { animation-name: ny5-pop-no; }
@keyframes ny5-pop-no { 0% { opacity: 0; transform: translate(-50%, -50%) scale(2.2); } 30% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-8deg); }
  50% { transform: translate(-46%, -50%) rotate(8deg); } 70% { transform: translate(-54%, -50%) rotate(-6deg); } 100% { opacity: 0; transform: translate(-50%, -40%) scale(.9); } }
/* a class-up: the whole screen wins */
.ny5-burst { position: fixed; inset: 0; z-index: 9450; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 24px; text-align: center; pointer-events: none; animation: ny5-burst-in .45s cubic-bezier(.2,1.3,.4,1) both; }
.ny5-burst.is-front { background: radial-gradient(circle, rgba(143,211,255,.96), rgba(70,140,230,.96)); }
.ny5-burst.is-top { background: radial-gradient(circle, rgba(255,233,160,.97), rgba(242,180,30,.97)); }
.ny5-burst.is-out { opacity: 0; transition: opacity .3s; }
.ny5-burst span { font-size: 110px; line-height: 1; animation: ny5-bounce .8s cubic-bezier(.2,1.6,.4,1) both; }
.ny5-burst b { font: 800 clamp(28px, 9vw, 40px)/1.08 var(--title); color: #20304F; text-wrap: balance; text-shadow: 0 3px 0 rgba(255,255,255,.7); }
@keyframes ny5-burst-in { from { opacity: 0; transform: scale(1.15); } }
@keyframes ny5-bounce { from { transform: scale(.2) rotate(-30deg); } }
/* the award: a spotlight, a drum roll, the card flips */
.ny5-cinema.is-award { gap: 22px; perspective: 900px; }
.ny5-spot { position: absolute; left: 50%; top: -10%; width: 140%; height: 90%; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse 30% 70% at 50% 0%, rgba(255,240,190,.35), rgba(255,240,190,0) 70%); animation: ny5-sweep 1.7s ease-in-out both; }
@keyframes ny5-sweep { 0% { transform: translateX(-80%) rotate(18deg); } 50% { transform: translateX(-20%) rotate(-14deg); } 100% { transform: translateX(-50%) rotate(0); } }
.ny5-award-q { position: relative; z-index: 2; margin: 0; font: 800 clamp(20px, 6vw, 26px)/1.2 var(--title); color: #fff; order: -1; }
.ny5-award-card { position: relative; z-index: 2; width: min(78vw, 300px); aspect-ratio: 3 / 3.4; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3,1.3,.4,1);
  animation: ny5-shake .5s ease-in-out .9s 2; }
@keyframes ny5-shake { 25% { rotate: -4deg; } 75% { rotate: 4deg; } }
.ny5-award-card.is-flipped { transform: rotateY(180deg) scale(1.04); animation: none; }
.ny5-award-back, .ny5-award-face { position: absolute; inset: 0; border-radius: 28px; backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 18px; }
.ny5-award-back { background: linear-gradient(160deg, #FFE27F, #E9A912); color: #20304F; font: 800 120px/1 var(--title); box-shadow: 0 0 0 4px #fff, 0 20px 50px rgba(255,211,77,.45); }
.ny5-award-face { transform: rotateY(180deg); background: #fff; color: #20304F; box-shadow: 0 0 0 4px #fff, 0 20px 60px rgba(255,211,77,.55); }
.ny5-cinema.is-top .ny5-award-face { background: linear-gradient(180deg, #FFF8DE, #FFD966); }
.ny5-cinema.is-front .ny5-award-face { background: linear-gradient(180deg, #F1F8FF, #BFE0FF); }
.ny5-cinema.is-bottom .ny5-award-face { background: linear-gradient(180deg, #FFF2F6, #FFB8CE); }
.ny5-award-face span { font-size: 90px; line-height: 1; }
.ny5-award-face small { font: 800 13px/1.2 'Nunito', sans-serif; color: #50607E; }
.ny5-award-face b { font: 800 clamp(30px, 9vw, 40px)/1.02 var(--title); text-wrap: balance; }
.ny5-award-face em { font-style: normal; padding: 4px 10px; border-radius: 99px; background: #fff; font: 800 13px/1.25 'Nunito', sans-serif; }
@media (prefers-reduced-motion: reduce) { .ny5-plane, .ny5-hero, .ny5-line, .ny5-pop, .ny5-burst, .ny5-burst span, .ny5-spot, .ny5-award-card, .ny5-stars { animation: none !important; } }

/* ══════════════ v6 (2026-11-05): THE GATE — Bail Me Out's station at the boarding gate: one painted stage stays on
   screen the whole round, the cast acting every beat; the question card and the answers under it ══════════════ */
.xm-scene.is-station6 { padding-top: calc(10px + env(safe-area-inset-top)); gap: 10px; }
.ny6-goal { background: #20304F; color: #fff; border-radius: 18px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; border: 3px solid #fff; box-shadow: 0 8px 20px rgba(32,48,79,.2);
  margin-right: 46px; }
/* right-to-left (Arabic): the mute button is on the left, so the goal bar keeps clear of it there */
[dir="rtl"] .ny6-goal { margin-right: 0; margin-left: 46px; }
.ny6-goal-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ny6-goal-top b { font: 800 13px/1.2 var(--title); letter-spacing: 1px; text-transform: uppercase; color: #FFE27F; min-width: 0; }
.ny6-place { flex: none; padding: 3px 8px; border-radius: 99px; font: 800 12px/1.2 'Nunito', sans-serif; color: #20304F; background: #FFE0EA; white-space: nowrap; }
.ny6-place.is-front { background: #DDF0FF; } .ny6-place.is-top { background: #FFE27F; }
.ny6-place.is-up { animation: ny4-up .7s cubic-bezier(.3,1.6,.5,1); }
.ny6-tiles { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.ny6-tiles i { height: 22px; border-radius: 7px; background: rgba(255,255,255,.14); color: rgba(255,255,255,.7); font: 800 11px/22px 'Nunito', sans-serif; font-style: normal; text-align: center; }
.ny6-tiles i.is-now { background: rgba(255,255,255,.3); color: #fff; box-shadow: inset 0 -3px 0 #FFE27F; }
.ny6-tiles i.is-right { background: #34C77B; color: #fff; font-size: 0; }
.ny6-tiles i.is-right::before { content: '✓'; font-size: 13px; }
.ny6-tiles i.is-wrong { background: #FF5C93; color: #fff; font-size: 0; }
.ny6-tiles i.is-wrong::before { content: '✕'; font-size: 13px; }
.ny6-set { position: relative; border-radius: 24px; overflow: hidden; border: 4px solid #20304F; background: #1D2350; box-shadow: 0 10px 26px rgba(32,48,79,.25); container-type: inline-size; }
.ny6-lens { position: absolute; inset: 0; transform-origin: 50% 60%; }
.ny6-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
/* the gate's blank signs, filled with the destination (placed by pinSigns in newyear.js) */
.ny6-sign { position: absolute; display: flex; align-items: center; justify-content: center; overflow: hidden; pointer-events: none;
  color: #20304F; font-family: var(--title); font-weight: 800; line-height: 1; letter-spacing: .06em; white-space: nowrap; }
.ny6-sign.is-board { color: #E2457E; letter-spacing: .1em; }
.ny6-creator { position: absolute !important; z-index: 2; left: 2%; bottom: -4px; }
.ny6-penguin { position: absolute !important; z-index: 2; right: 1%; bottom: -4px; }
.ny6-friend { position: absolute !important; z-index: 3; left: 38%; bottom: -6px; }
.ny6-set .xm-cast-name { bottom: 8%; }
.ny6-set .xm-say { z-index: 6; }
.ny6-stamp { position: absolute; z-index: 7; left: 50%; top: 42%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 5px solid #34C77B; color: #34C77B; background: rgba(241,255,246,.92); font: 800 44px/1 var(--title); transform: rotate(-12deg); animation: ny6-slam .35s cubic-bezier(.3,1.6,.5,1) both; }
.ny6-stamp.is-no { border-color: #FF5C93; color: #FF5C93; background: rgba(255,240,245,.92); transform: rotate(10deg); }
.ny6-stamp.is-out { opacity: 0; transition: opacity .35s; }
@keyframes ny6-slam { from { opacity: 0; scale: 2.6; } }
.ny6-qcard { background: #FFF8EC; color: #20304F; border-radius: 20px; padding: 12px 14px 14px; border: 3px solid #20304F; display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; }
.ny6-qtag { padding: 2px 10px; border-radius: 99px; background: #20304F; color: #FFE27F; font: 800 11px/1.5 'Nunito', sans-serif; letter-spacing: 1px; text-transform: uppercase; margin-top: -24px; }
.ny6-qtext { font: 800 clamp(18px, 5.4vw, 22px)/1.2 var(--title); }
.ny6-picks .xm-opt { background: #fff; border: 3px solid #20304F; box-shadow: 0 5px 0 #20304F; color: #20304F; }
.ny6-picks .xm-opt::before { display: none; }
.ny6-picks .xm-opt.is-right { border-color: #34C77B; box-shadow: 0 5px 0 #34C77B; background: #EFFFF5; }
.ny6-picks .xm-opt.is-wrong { border-color: #FF5C93; box-shadow: 0 5px 0 #FF5C93; background: #FFF0F5; }
.ny6-qcard[hidden] { display: none; }
.ny6-goal-top { flex-wrap: wrap; }
.ny6-goal-top b { flex: 1 1 auto; }
@media (max-width: 340px) { .ny6-goal-top b { font-size: 12px; letter-spacing: .5px; } .ny6-tiles i { height: 20px; font-size: 10px; } }
.ny6-carpet { position: absolute; z-index: 1; left: -4%; bottom: 0; width: 70%; height: auto; }

/* ══════════════ v7 (2026-11-05): THE FILM — the climax as a letterboxed cartoon film: shots that cross-cut with a slow
   camera push, a vignette, lower-third title cards; runway at 23:59 → take-off → the year turns → the class's cabin ══════════════ */
.ny7-film { position: fixed; inset: 0; z-index: 9500; max-width: 480px; margin: 0 auto; overflow: hidden; background: #05071A; opacity: 0; transition: opacity .35s ease; }
.ny7-film.is-in { opacity: 1; }
.ny7-film.is-out { opacity: 0; transition-duration: .45s; }
.ny7-shot { position: absolute; inset: 0; overflow: hidden; opacity: 0; transition: opacity .55s ease; }
.ny7-shot.is-in { opacity: 1; }
.ny7-bg { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; object-position: 50% 70%; animation: ny7-push 7s ease-out both; }
.ny7-shot.is-push .ny7-bg { animation-name: ny7-push-in; }
@keyframes ny7-push { from { transform: scale(1.0) translateX(2%); } to { transform: scale(1.1) translateX(-2%); } }
@keyframes ny7-push-in { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.ny7-vignette { position: absolute; inset: 0; z-index: 30; pointer-events: none; background: radial-gradient(ellipse 85% 70% at 50% 50%, transparent 55%, rgba(0,0,0,.55) 100%); }
.ny7-bar { position: absolute; left: 0; right: 0; height: 9%; background: #000; z-index: 31; transition: transform .5s cubic-bezier(.2,1,.3,1); }
.ny7-bar.is-top { top: 0; transform: translateY(-100%); }
.ny7-bar.is-bottom { bottom: 0; transform: translateY(100%); }
.ny7-film.is-in .ny7-bar { transform: none; }
.ny7-film .ny5-skip { z-index: 32; }
.ny7-film .ny-sky { z-index: 20; }
.ny7-title { position: absolute; z-index: 33; left: 16px; right: 16px; bottom: calc(9% + 22px); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  animation: ny7-title .6s cubic-bezier(.2,1.2,.4,1) both; }
.ny7-title b { font: 800 clamp(26px, 8vw, 36px)/1.08 var(--title); color: #fff; text-wrap: balance; text-shadow: 0 3px 0 rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.6); }
.ny7-title span { font: 800 15px/1.3 'Nunito', sans-serif; color: #FFE27F; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
@keyframes ny7-title { from { opacity: 0; transform: translateY(16px); filter: blur(5px); letter-spacing: 2px; } }
.ny7-clock { position: absolute; z-index: 5; top: calc(9% + 18px); left: 50%; transform: translateX(-50%); padding: 6px 16px; border-radius: 12px; background: rgba(5,7,26,.75);
  border: 2px solid #FF4F6D; color: #FF4F6D; font: 800 34px/1 'Courier New', monospace; letter-spacing: 3px; text-shadow: 0 0 12px rgba(255,79,109,.8); animation: ny7-blink 1s steps(2) infinite; }
@keyframes ny7-blink { 50% { opacity: .55; } }
.ny7-taxi { position: absolute; z-index: 4; left: 50%; bottom: 16%; width: 88%; max-width: 400px; height: auto; transform: translateX(-120%); animation: ny7-roll 1.6s cubic-bezier(.3,.8,.3,1) forwards;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); }
@keyframes ny7-roll { to { transform: translateX(-50%); } }
.ny7-taxi.is-takeoff { animation: ny7-lift 1.6s cubic-bezier(.5,0,.6,1) forwards; }
@keyframes ny7-lift { from { transform: translateX(-50%); } 35% { transform: translateX(-30%) rotate(-2deg); } to { transform: translate(60%, -140%) rotate(-16deg) scale(.7); } }
.ny7-pair { position: absolute; z-index: 4; left: 50%; bottom: 9%; width: 96%; max-width: 420px; height: auto; transform: translateX(-50%); filter: drop-shadow(0 10px 20px rgba(0,0,0,.35)); }
.ny7-namecard { top: calc(9% + 14px); }
.ny7-char { position: absolute !important; z-index: 5; bottom: 9%; }
.ny7-char.is-right { right: 4%; }
.ny7-char.is-mid { left: 50%; translate: -50% 0; }
.ny7-char.is-peek { right: -4%; bottom: 22%; }
.ny7-walrus { position: absolute; z-index: 4; left: -6%; bottom: 9%; width: 46%; height: auto; }
.ny7-kid { position: absolute; z-index: 4; right: -4%; bottom: 9%; width: 40%; height: auto; }
.ny7-film .xm-say { z-index: 34; }
@media (prefers-reduced-motion: reduce) { .ny7-bg, .ny7-taxi, .ny7-title, .ny7-clock { animation: none !important; } .ny7-taxi { transform: translateX(-50%); } }
/* v7: the gate camera — a slow push on whoever talks, a punch-in on a class-up.
   fix 2026-11-10 (owner: "on zoom the scene shows a solid colour on the empty space"): the push used to slide further
   than it zoomed (scale 1.12 about 20% + translate 6% left a 4% strip of the frame's dark blue), each speaker had its
   own transform-origin (which jumps, it can't be animated), and the wrong-answer shake replaced the zoom with a 3° tilt
   at 100% (dark corners). Now ONE origin; the camera never stands at 100% (a 1.06 wide shot keeps a 3% margin all
   round); a push zooms to 1.14 and slides at most 5% — less than the 7% its zoom adds on that side — so the picture
   always covers the frame; the shake is a small sideways jolt on the separate `translate` property, added on top of
   whatever the camera is doing, smaller than the margin left. */
.ny6-set:not(.ny9-set) > .ny6-lens { transform: scale(1.06); transform-origin: 50% 85%; transition: transform .9s cubic-bezier(.45,.05,.2,1); }
.ny6-set:not(.ny9-set) > .ny6-lens.cam-creator { transform: translateX(5%) scale(1.14); }
.ny6-set:not(.ny9-set) > .ny6-lens.cam-penguin { transform: translateX(-5%) scale(1.14); }
.ny6-set:not(.ny9-set) > .ny6-lens.cam-friend { transform: scale(1.13); }
.ny6-lens.cam-punch { animation: ny7-punch .7s cubic-bezier(.2,1.4,.4,1); }
@keyframes ny7-punch { 30% { scale: 1.08; filter: brightness(1.25) saturate(1.2); } }
.ny6-lens.cam-jolt { animation: ny6-jolt .42s cubic-bezier(.3,.6,.4,1); }
@keyframes ny6-jolt { 18% { translate: -1.6% 0; } 42% { translate: 1.4% .4%; } 66% { translate: -.8% 0; } 84% { translate: .4% 0; } }
@media (prefers-reduced-motion: reduce) { .ny6-lens { transition: none; transform: scale(1.06) !important; animation: none !important; } }
.ny7-shot { z-index: 1; isolation: isolate; }
.ny7-film .ny5-skip { text-align: center; }
.ny7-taxi { bottom: 27%; }
.ny7-char.is-peek { right: auto; left: 50%; translate: -50% 0; bottom: 40%; z-index: 3; }

/* v8 (2026-11-05): the ticket on the stage + the boarding film */
.ny8-ticket { position: absolute; z-index: 5; left: 50%; top: 50%; width: 330px; transform: translate(-50%, -46%) scale(.62); transform-origin: 50% 50%; pointer-events: none;
  filter: drop-shadow(0 12px 22px rgba(0,0,0,.4)); }
.ny8-ticket .ny-pass-stamp { opacity: 0; transform: scale(2.4) rotate(-14deg); transition: opacity .2s, transform .3s cubic-bezier(.3,1.6,.5,1); }
.ny8-ticket.is-stamped .ny-pass-stamp { opacity: 1; transform: rotate(-14deg); }
.ny7-char.is-left { left: 4%; }
.ny8-pass { position: absolute; z-index: 6; left: 30%; bottom: 30%; width: 26%; height: auto; transform: rotate(-10deg); filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.ny8-ticket.is-handed { transform: translate(-30%, 30%) scale(.12) rotate(-20deg); opacity: 0; transition: transform .6s cubic-bezier(.5,0,.7,.4), opacity .6s ease-in; }
/* fix 2026-11-11 (owner: "the empty gate stage"): the last question and its answered cards STAY during the climax (the
   phone no longer stands half empty while the Penguin counts); only taps are off */
.xm-scene.is-station6.is-ending .ny6-qcard, .xm-scene.is-station6.is-ending .ny6-picks { pointer-events: none; }
.ny8-pass { left: 24%; bottom: 14%; width: 24%; }
.ny8-ticket.is-handed { transform: translate(-70%, 20%) scale(.1) rotate(-20deg); }
.ny7-title { top: calc(9% + 18px); bottom: auto; }
.ny7-clock { top: calc(9% + 96px); }
.ny7-pair { width: 118%; max-width: 520px; }

/* ══════════════ v9 (2026-11-07, owner: "match Bail Me Out's creator side"; "the answer pictures are cut and hiding"):
   the check-in desk, "Who's flying?" sticker cards, the old-year bin, the ticket-card questions, the check-in film ══ */
/* answer pictures are cut-outs of every shape (0.6–1.7 wide per tall): always the whole picture, standing on its floor */
.xm-opt img, .xm-opt img.xm-ans-pic, .xm-pick-pic img { object-fit: contain; object-position: 50% 100%; }
.xm-opt img { padding: 4px 4px 0; box-sizing: border-box; }
.ny9-set { flex: none; }
.ny9-set.is-checkin .ny6-bg, .ny9-set.is-film .ny6-bg { object-position: 50% 42%; }
.ny9-set.is-belt .ny6-bg { object-position: 50% 62%; }
.ny9-penguin { position: absolute !important; z-index: 2; right: 7%; bottom: -4px; }
.ny9-bin { position: absolute; z-index: 2; left: 5%; bottom: 6px; width: 24%; max-width: 104px; }
.ny9-bin-host { position: absolute !important; z-index: 3; left: 32%; bottom: -4px; }
.ny9-bin-penguin { position: absolute !important; z-index: 2; right: 3%; bottom: -4px; }
.ny9-film-host { position: absolute !important; z-index: 3; left: 1%; bottom: -4px; }
.ny9-film-penguin { position: absolute !important; z-index: 2; right: 1%; bottom: -4px; }
.ny9-set .xm-cast-name { bottom: 6%; }
.ny9-card { gap: 10px; }
.ny9-h1 { margin: 0; text-align: center; font: 800 clamp(30px, 9vw, 40px)/1.05 var(--title); color: var(--ink4); }
.ny9-h2 { margin: 0; text-align: center; font: 800 clamp(20px, 6vw, 24px)/1.15 var(--title); color: var(--ink4); text-wrap: balance; }
.ny9-hi { text-align: center; font: 800 20px/1.2 var(--title); color: var(--ink4); margin-top: 8vh; }
.ny9-sub { margin: -6px 0 0; text-align: center; font: 700 14px/1.35 'Nunito', sans-serif; color: #50607E; text-wrap: balance; }
/* "Who's flying?": two tilted sticker cards (Bail Me Out's); the picked one jumps and glows, the other steps back */
.ny9-back { position: absolute !important; left: 14px; top: calc(66px + env(safe-area-inset-top)); width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff;
  color: var(--ink4); font: 800 26px/1 var(--title); box-shadow: 0 4px 12px rgba(32,48,79,.15); cursor: pointer; }
.ny9-gcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 10px 6px 0; }
.ny9-gcard { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px 12px; border: 4px solid #20304F; border-radius: 22px; background: #FFF8EC;
  color: var(--ink4); font: 800 20px/1 var(--title); box-shadow: 0 7px 0 #20304F, 0 16px 26px rgba(32,48,79,.18); cursor: pointer; transition: transform .25s, opacity .25s, filter .25s; }
.ny9-gcard:nth-child(1) { rotate: -4deg; } .ny9-gcard:nth-child(2) { rotate: 4deg; }
.ny9-gcard-pic { display: flex; align-items: flex-end; justify-content: center; height: 170px; width: 100%; border-radius: 16px; background: radial-gradient(circle at 50% 60%, #fff, #DDF1FF); overflow: hidden; }
.ny9-gcard.is-cat .ny9-gcard-pic { background: radial-gradient(circle at 50% 60%, #fff, #FFE3EE); }
.ny9-gcard.is-picked { background: #FFE3EE; border-color: var(--pink4); box-shadow: 0 7px 0 #D6306F, 0 0 0 5px rgba(255,92,147,.25), 0 16px 30px rgba(255,92,147,.35); transform: translateY(-8px) scale(1.04); }
.ny9-gcard.is-other { opacity: .55; filter: saturate(.6); transform: scale(.94); }
@media (max-width: 350px) { .ny9-gcard-pic { height: 140px; } .ny9-gcards { gap: 10px; } }
/* the old year's bin: the cards on a sheet under a "LEAVING IN 2026" tape */
.ny9-sheet { position: relative; padding: 24px 12px 12px; border: 3px solid #20304F; border-radius: 20px; background: #FFF8EC; display: flex; flex-direction: column; gap: 12px; }
.ny9-tape { position: absolute; left: 50%; top: -15px; transform: translateX(-50%) rotate(-2deg); padding: 5px 16px; white-space: nowrap; border: 2px solid #20304F; border-radius: 6px;
  background: repeating-linear-gradient(-45deg, #FFC93C 0 12px, #FFD86B 12px 24px); color: #20304F; font: 800 13px/1.2 var(--title); letter-spacing: 1px; text-transform: uppercase; }
.ny9-moods .xm-mood { background: #fff; border-color: #20304F; border-width: 2.5px; box-shadow: 0 4px 0 #20304F; color: var(--ink4); }
.ny9-moods .xm-mood.is-picked { background: #FFE3EE; border-color: var(--pink4); box-shadow: 0 4px 0 #D6306F; }
.ny9-sheet .xm-chip { background: #fff; color: var(--ink4); border: 2px solid #20304F; font: 800 14px/1 'Nunito', sans-serif; }
.is-leave9 .ny-leavetag { top: 30%; }
/* the questions: a ticket card, the creator peeking over its corner */
.ny9-qticket { position: relative; min-height: 118px; padding: 26px 104px 16px 14px; border: 3px solid #20304F; border-radius: 20px; background: #FFF8EC;
  box-shadow: 0 6px 0 #20304F; display: flex; flex-direction: column; justify-content: center; margin-top: 10px; }
.ny9-qticket::before, .ny9-qticket::after { content: ''; position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--sky2); border: 3px solid #20304F; }
.ny9-qticket::before { left: -10px; clip-path: inset(0 0 0 50%); } .ny9-qticket::after { right: -10px; clip-path: inset(0 50% 0 0); }
.ny9-qtag { position: absolute; left: 12px; top: -14px; padding: 4px 12px; border: 2px solid #20304F; border-radius: 8px; transform: rotate(-3deg);
  background: repeating-linear-gradient(-45deg, #FFC93C 0 10px, #FFD86B 10px 20px); color: #20304F; font: 800 12px/1.2 var(--title); letter-spacing: .5px; text-transform: uppercase; }
.ny9-q { text-align: start !important; font: 800 clamp(19px, 5.6vw, 23px)/1.2 var(--title) !important; color: var(--ink4); }
.ny9-peek { position: absolute !important; z-index: 2; right: -4px; bottom: -6px; }
.ny9-say { position: absolute; z-index: 3; right: 6px; bottom: calc(100% + 4px); max-width: 58%; padding: 7px 12px; border-radius: 16px; background: #FF5C93; color: #fff; font: 800 14px/1.25 var(--title); text-align: center;
  box-shadow: 0 6px 14px rgba(255,92,147,.35); }
.ny9-say::after { content: ''; position: absolute; right: 34px; bottom: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: #FF5C93; }
.ny9-say[hidden] { display: none; }
/* while the creator talks the bubble takes the tag's place on the ticket's top edge (never over the bar or the sound
   button on a short phone); the tag steps aside for that moment */
.ny9-say { bottom: calc(100% - 18px); max-width: min(78%, 300px); }
.ny9-qtag { transition: opacity .2s, translate .2s; }
.ny9-qticket.is-talking .ny9-qtag { opacity: 0; translate: 0 -6px; transition: none; }
.ny9-say.is-pop { animation: ny4-pop .35s cubic-bezier(.3,1.6,.5,1); }
.ny9-opts { display: flex; flex-direction: column; gap: 10px; }
.ny9-opts .xm-opt { background: #fff; border: 3px solid #20304F; box-shadow: 0 5px 0 #20304F; color: var(--ink4); }
.ny9-opts .xm-opt::before { display: none; }
.ny9-opts .xm-opt.is-picked { background: #FFE3EE; border-color: var(--pink4); box-shadow: 0 5px 0 #D6306F, 0 0 22px rgba(255,92,147,.4); }
.ny9-optpic { display: block; border-radius: 12px; background: #F1EADF; overflow: hidden; }
.ny9-optpic img { display: block; width: 100% !important; height: 100% !important; aspect-ratio: auto !important; border-radius: 0; background: none; }
.ny9-opts .xm-opt { gap: 6px; padding: 6px 6px 10px; }
.ny9-opts .ny9-optpic { width: 100%; aspect-ratio: 1; }
.ny9-opts .xm-opts.is-two .ny9-optpic { aspect-ratio: 5 / 4; }
.ny9-opts .xm-opt-text { text-align: center; }
/* the progress count is on the ticket's tape: the bar alone above it */
.is-quiz9 .ny4-progress b { display: none; }
/* the check-in film: the night desk, the ticket under it, CHECKED IN slams on */
.xm-scene.is-checkfilm9 { min-height: 100vh; min-height: 100dvh; padding: calc(16px + env(safe-area-inset-top)) 14px 24px; gap: 0; justify-content: center;
  background: radial-gradient(120% 60% at 50% 20%, #33407A 0%, #1D2350 55%, #12163A 100%); }
.ny9-filmpass { position: relative; z-index: 4; width: min(320px, 88%); margin: -26px auto 0; rotate: -3deg; }
.ny9-stamp { position: absolute; z-index: 5; right: 8px; top: 30%; padding: 6px 12px; border: 4px solid #34C77B; border-radius: 10px; color: #34C77B; background: rgba(241,255,246,.94);
  font: 800 22px/1 var(--title); letter-spacing: 1.5px; text-transform: uppercase; white-space: nowrap; transform: rotate(-14deg); animation: ny6-slam .35s cubic-bezier(.3,1.6,.5,1) both; }
/* what they left in the old year, as a luggage tag (the invite, the plane) */
.ny9-lefttag { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 16px 7px 26px; position: relative; border: 2.5px solid #20304F;
  border-radius: 10px 18px 18px 10px; background: #FFF8EC; color: var(--ink4); rotate: -3deg; box-shadow: 0 4px 0 #20304F; max-width: 100%; }
.ny9-lefttag::before { content: ''; position: absolute; left: 8px; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-radius: 50%; background: var(--sky2); border: 2px solid #20304F; }
.ny9-lefttag small { font: 800 10px/1 'Nunito', sans-serif; letter-spacing: 1px; color: #D6306F; text-transform: uppercase; }
.ny9-lefttag b { font: 800 15px/1.2 var(--title); text-align: center; }
@media (prefers-reduced-motion: reduce) { .ny9-gcard { transition: none; } }

/* ══════════════ v10 (2026-11-07, owner: "the yellow user name is not clearly visible, not a premium look"; minor polish) ══ */
/* the names on the light sky and cream cards: Bail Me Out's pink with its pink scribble (gold stays on the night scenes) */
.xm-scene.is-sky .xm-name, .ny9-qticket .xm-name, .ny4-card .xm-name, .ny6-qcard .xm-name, .ny4-panel .xm-name {
  color: #E0457B;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M3 6 C30 2 60 9 117 4' fill='none' stroke='%23FFB3CC' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}
.xm-scene .ny6-goal .xm-name, .ny5-cinema .xm-name, .xm-scene .ny7-title .xm-name, .xm-scene .ny-board .xm-name { color: #FFE27F; }
/* three answers (2026-11-11, owner: "the option images are not correctly displayed"): three across made each picture
   ~80 px and broke the words ("A big / hug"); now full-size cards like two and four answers: two on top, the third
   centred under them at the same width (a 2x2's height, which fits with the question on every phone like four do) */
.xm-opts.is-three { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.xm-opts.is-three > * { grid-column: span 2; }
.xm-opts.is-three > :nth-child(3) { grid-column: 2 / span 2; }
/* the film's small line under a title: a dark glass strip so it reads on any painted cabin */
.ny7-title span { padding: 4px 12px; border-radius: 99px; background: rgba(16,19,40,.62); color: #FFF1C2; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
/* the boarding film's push-in moves the whole shot (the set and the cast standing in it together), so a character
   placed on a seat or walking into a door stays exactly there while the camera moves */
.ny7-shot.is-push .ny7-bg { animation: none; }
.ny7-shot.is-push { animation: ny7-push-in 7s ease-out both; transform-origin: 50% 60%; }
@media (prefers-reduced-motion: reduce) { .ny7-shot.is-push { animation: none; } }
/* the crowned seat's name card sits under the title, never on it; the Penguin brings the cake from the aisle behind
   the two of them (over the seat backs), never in front of the friend */
.ny7-namecard { top: calc(9% + 150px); }
.ny7-char.is-behind { left: 50%; right: auto; translate: -50% 0; bottom: 34%; z-index: 3; }
/* the leaving-behind belt: a shorter line box so a line sits over the set, above the faces */
.ny9-set.is-belt .xm-say { font-size: 13px; max-width: min(200px, 54%) !important; }

/* ══════════════ v11 (2026-11-09, owner: "top and bottom black strip, the scene is not covering the full screen";
   "the questions go to a new line even if there is enough space on the right") ══════════════ */
/* the climax film fills the whole phone: no letterbox bars; titles and lines sit at the top of the picture itself */
.ny7-bar { display: none; }
.ny7-title { top: calc(env(safe-area-inset-top, 0px) + 22px); }
.ny7-clock { top: calc(env(safe-area-inset-top, 0px) + 100px); }
.ny7-namecard { top: calc(env(safe-area-inset-top, 0px) + 140px); }
.ny7-film > .xm-say { z-index: 34; }
.ny7-film .ny5-skip { left: 50%; right: auto; translate: -50% 0; bottom: max(14px, env(safe-area-inset-bottom, 0px)); padding: 5px 12px; border-radius: 99px;
  background: rgba(10,12,30,.55); color: rgba(255,255,255,.85); white-space: nowrap; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
/* the questions fill each line (not "balanced" short lines), the name can wrap like any words, and the text runs
   right up to the creator peeking in the ticket's corner */
.xm-q, .ny9-q, .ny4-qcard .xm-q, .ny6-qcard .xm-q { text-wrap: pretty; }
.xm-q .xm-name { white-space: normal; display: inline; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ny9-qticket { padding-right: 92px; }

/* ══════════════ v11 climax (CLIMAX-V11.md): the class sign over the cabin, the cartoon clips ══════════════ */
.ny7-video { z-index: 1; background: transparent; }
.ny7-shot.is-clip .ny7-bg { inset: 0; width: 100%; height: 100%; object-position: 50% 70%; animation: none; }
/* the cabin's class sign: a lit panel that switches on (two flickers), its colour the class's */
.ny11-sign { position: absolute; z-index: 33; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 16px); translate: -50% 0; min-width: 62%; max-width: 92%;
  padding: 8px 18px 10px; border-radius: 16px; text-align: center; background: linear-gradient(#1C2240, #10142A); border: 2px solid var(--sign, #FFD34D);
  box-shadow: 0 0 0 4px rgba(0,0,0,.35), 0 0 26px var(--glow, rgba(255,211,77,.55)), inset 0 0 18px var(--glow, rgba(255,211,77,.35));
  animation: ny11-sign-on 1.1s steps(1, end) both; }
.ny11-sign small { display: block; font: 800 11px/1.2 'Nunito', sans-serif; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.7); }
.ny11-sign b { display: block; font: 800 clamp(20px, 6.4vw, 27px)/1.1 var(--title); letter-spacing: .5px; color: var(--sign, #FFD34D);
  text-shadow: 0 0 10px var(--glow, rgba(255,211,77,.8)), 0 0 24px var(--glow, rgba(255,211,77,.5)); }
.ny11-sign.is-top { --sign: #FFD34D; --glow: rgba(255,211,77,.6); }
.ny11-sign.is-front { --sign: #7FF0C8; --glow: rgba(127,240,200,.55); }
.ny11-sign.is-bottom { --sign: #C9CED8; --glow: rgba(201,206,216,.35); animation: ny11-sign-on 1.1s steps(1, end) both, ny11-flicker 3.2s 1.2s infinite; }
@keyframes ny11-sign-on { 0% { opacity: 0; } 18% { opacity: 1; } 26% { opacity: .15; } 40% { opacity: 1; } 48% { opacity: .3; } 60%, 100% { opacity: 1; } }
@keyframes ny11-flicker { 0%, 86%, 92%, 100% { opacity: 1; } 88% { opacity: .35; } 90% { opacity: .8; } 95% { opacity: .5; } }
.ny7-film.has-sign .ny7-title { top: calc(env(safe-area-inset-top, 0px) + 96px); }
.ny7-film.has-sign .ny7-namecard { top: calc(env(safe-area-inset-top, 0px) + 200px); }
@media (prefers-reduced-motion: reduce) { .ny11-sign { animation: none !important; } }
/* fireworks: 16 sparks fly out from a point and fall away, the colour the class's */
.ny11-fw { position: absolute; z-index: 32; width: 0; height: 0; pointer-events: none; scale: var(--s, 1); }
.ny11-fw::before { content: ''; position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0, transparent 65%); opacity: 0; animation: ny11-fw-core .7s ease-out; }
.ny11-fw i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px 2px var(--c);
  rotate: var(--a); animation: ny11-spark 1.5s cubic-bezier(.15,.7,.3,1) forwards; }
@keyframes ny11-spark { 0% { transform: translateY(0) scale(1.4); opacity: 1; } 60% { opacity: 1; } 100% { transform: translateY(-110px) translateX(0) scale(.3); opacity: 0; } }
@keyframes ny11-fw-core { 0% { opacity: 1; transform: scale(.2); } 100% { opacity: 0; transform: scale(1.6); } }
/* the big beat: a full-screen flash and a short shake */
.ny11-flash { position: absolute; inset: 0; z-index: 40; pointer-events: none; background: var(--c, #FFE9A0); mix-blend-mode: screen; animation: ny11-flash .8s ease-out forwards; }
@keyframes ny11-flash { 0% { opacity: .95; } 100% { opacity: 0; } }
.ny7-film.is-shake { animation: ny11-shake .5s cubic-bezier(.36,.07,.19,.97); }
@keyframes ny11-shake { 10%, 90% { translate: -2px 1px; } 20%, 80% { translate: 4px -2px; } 30%, 50%, 70% { translate: -6px 2px; } 40%, 60% { translate: 6px -1px; } }
/* after midnight: their seated picture, the camera slowly coming in on them */
.ny7-shot.is-midnight { animation: ny11-midnight 9s ease-out both; transform-origin: 50% 62%; }
@keyframes ny11-midnight { from { transform: scale(1.18); filter: brightness(1.5) saturate(1.2); } 12% { filter: none; } to { transform: scale(1.04); } }
/* the award title: lower third, big gold, a light sweeping across it */
.ny7-title.ny11-award { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 58px); gap: 8px; animation: ny11-award-in .8s cubic-bezier(.2,1.3,.4,1) both; }
.ny11-award b { font-size: clamp(32px, 10vw, 44px); background: linear-gradient(100deg, #FFE27F 0 38%, #FFFFFF 46%, #FFE27F 54% 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 0; filter: drop-shadow(0 3px 0 rgba(0,0,0,.45)) drop-shadow(0 8px 18px rgba(0,0,0,.6));
  text-shadow: none; animation: ny11-sweep 2.2s .5s ease-in-out infinite; }
.ny11-award.is-front b { background-image: linear-gradient(100deg, #9FF5D6 0 38%, #FFFFFF 46%, #9FF5D6 54% 100%); }
.ny11-award.is-bottom b { background-image: linear-gradient(100deg, #DDE1EA 0 38%, #FFFFFF 46%, #DDE1EA 54% 100%); }
.ny11-award span { font-size: 16px; }
@keyframes ny11-sweep { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0 0; } }
@keyframes ny11-award-in { from { opacity: 0; transform: translateY(30px) scale(.7); filter: blur(6px); } }
.ny7-namecard.is-low, .ny7-film.has-sign .ny7-namecard.is-low { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 190px); }
/* the sign: one line, as wide as it needs (it was held to half the screen by its centring) */
.ny11-sign { left: 0; right: 0; margin: 0 auto; translate: none; width: max-content; min-width: 0; max-width: calc(100% - 28px); }
.ny11-sign b { white-space: nowrap; font-size: clamp(18px, 6vw, 26px); }
.ny7-film.has-sign .ny7-title { top: calc(env(safe-area-inset-top, 0px) + 84px); }
.ny7-film.has-sign .ny7-namecard { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 64px); }
@media (prefers-reduced-motion: reduce) { .ny7-film.is-shake, .ny7-shot.is-midnight, .ny11-award b { animation: none !important; } }
.ny7-shot.is-now { opacity: 1; transition: none; }
/* the award title, readable on any picture: a dark glass plate, solid class colour, a light sweeping across */
.ny7-title.ny11-award { left: 14px; right: 14px; padding: 14px 16px 16px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(12,14,34,.55), rgba(12,14,34,.82)); border: 2px solid var(--award, #FFD34D);
  box-shadow: 0 0 0 3px rgba(0,0,0,.25), 0 0 34px var(--awardGlow, rgba(255,211,77,.45)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ny11-award.is-top { --award: #FFD34D; --awardGlow: rgba(255,211,77,.5); }
.ny11-award.is-front { --award: #7FF0C8; --awardGlow: rgba(127,240,200,.45); }
.ny11-award.is-bottom { --award: #C9CED8; --awardGlow: rgba(201,206,216,.3); }
.ny11-award b, .ny11-award.is-front b, .ny11-award.is-bottom b { background: none; color: var(--award); -webkit-background-clip: border-box; background-clip: border-box;
  filter: none; text-shadow: 0 3px 0 rgba(0,0,0,.45), 0 0 18px var(--awardGlow); animation: none; }
.ny11-award span { background: none; padding: 0; color: #FFF; }
.ny11-award::after { content: ''; position: absolute; inset: -20% auto -20% -40%; width: 30%; rotate: 18deg; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: ny11-shine 2.6s .6s ease-in-out infinite; }
@keyframes ny11-shine { 0% { left: -40%; } 55%, 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .ny11-award::after { display: none; } }
/* ══ v11 result: the class's own scene, alive ══ */
.ny4-scene.ny11-hero { position: relative; height: min(400px, 56vh); background: #10142A; box-shadow: 0 14px 36px rgba(16,20,42,.35); }
.ny11-hero .ny4-scene-bg { object-position: 50% 62%; animation: ny11-kenburns 14s ease-in-out infinite alternate; transform-origin: 50% 60%; }
@keyframes ny11-kenburns { from { transform: scale(1.04); } to { transform: scale(1.14) translateY(-2%); } }
.ny11-hero .ny11-sign { top: 10px; padding: 5px 14px 7px; border-radius: 12px; animation: ny11-sign-on 1.1s .3s steps(1, end) both; }
.ny11-hero .ny11-sign.is-bottom { animation: ny11-sign-on 1.1s .3s steps(1, end) both, ny11-flicker 3.2s 1.5s infinite; }
.ny11-hero .ny11-sign small { font-size: 9px; }
.ny11-hero .ny11-sign b { font-size: clamp(15px, 4.8vw, 20px); }
.ny11-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 90% 75% at 50% 55%, transparent 60%, rgba(0,0,0,.4)); }
.ny11-hero.is-bottom::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: rgba(10,12,30,.0); animation: ny11-dim 4s 2s infinite; }
@keyframes ny11-dim { 0%, 88%, 100% { background: rgba(10,12,30,0); } 90% { background: rgba(10,12,30,.35); } 93% { background: rgba(10,12,30,.05); } 96% { background: rgba(10,12,30,.3); } }
/* the friend's name tag over their head (the crown bobbing above it on the crowned seat) */
.ny11-tag { position: absolute; z-index: 3; translate: -50% -100%; display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.ny11-tag b { padding: 4px 12px; border-radius: 99px; background: #fff; color: #E0457B; border: 2px solid #20304F; font: 800 14px/1.2 var(--title); white-space: nowrap;
  max-width: 44vw; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 4px 0 #20304F; }
.ny11-tag b::after { content: ''; position: absolute; left: 50%; bottom: -7px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: #20304F; }
.ny11-tag i { font-style: normal; font-size: 30px; line-height: 1; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); animation: ny11-bob 1.6s ease-in-out infinite; }
@keyframes ny11-bob { 50% { transform: translateY(-5px) rotate(-6deg); } }
/* the walrus's snores */
.ny11-zzz { position: absolute; z-index: 3; top: 34%; font: 800 22px/1 var(--title); color: #DDE6FF; text-shadow: 0 2px 6px rgba(0,0,0,.6); pointer-events: none;
  animation: ny11-zzz 2.4s ease-out forwards; }
@keyframes ny11-zzz { from { opacity: 0; transform: translate(0, 0) scale(.6); } 20% { opacity: 1; } to { opacity: 0; transform: translate(30px, -70px) scale(1.4) rotate(14deg); } }
/* the class stamp slammed on the result card */
.ny4-resultcard { position: relative; }
.ny11-stamp { position: absolute; right: 12px; top: 12px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 30px;
  border: 4px double var(--stampc, #D6306F); color: var(--stampc); background: rgba(255,255,255,.55); rotate: -14deg; opacity: 0; scale: 2.6; }
.ny11-stamp.is-top { --stampc: #C99A00; } .ny11-stamp.is-front { --stampc: #1F9E78; } .ny11-stamp.is-bottom { --stampc: #8A93A6; }
.ny4-resultcard.is-stamped .ny11-stamp { opacity: 1; scale: 1; transition: scale .28s cubic-bezier(.3,1.6,.5,1), opacity .1s; }
.ny4-score.is-done { animation: ny4-pop .35s cubic-bezier(.3,1.6,.5,1); }
@media (prefers-reduced-motion: reduce) { .ny11-hero .ny4-scene-bg, .ny11-tag i, .ny11-hero.is-bottom::before { animation: none !important; } }
/* the result's looping scene: fades in over the picture once it plays; the picture stays under it */
.ny11-hero .ny11-loop { z-index: 1; opacity: 0; transition: opacity .4s; animation: none; }
.ny11-hero .ny11-loop.is-on { opacity: 1; }
.ny11-hero.has-loop .ny4-scene-bg { animation-duration: 20s; }
/* the crowned name card after midnight: at the top of the picture, the award title holds the bottom */
.ny7-namecard.is-low, .ny7-film.has-sign .ny7-namecard.is-low { top: calc(env(safe-area-inset-top, 0px) + 20px); bottom: auto; }
/* ══ v11 end-to-end QA pass (2026-11-09, checked in Chrome at 390 px) ══ */
/* the check-in film: the ticket comes up under the stage, not over the creator's name tag */
.ny9-filmpass { margin-top: 10px; }
/* fix 2026-11-12 (team: "CHECKED IN … overlapping and hiding the 2027 text"): the stamp sat over the name / From-To
   rows (TO 2027 hidden at 320–360 px, long names cut). It now lands on the stub, beside the barcode, like a real gate
   stamp: inked double ring, a tick, pressed slightly over the tear line — never over the name, the years or the tag. */
.ny9-stamp { top: auto; bottom: 8px; right: 18px; white-space: nowrap; display: flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px;
  border: 3px solid #1FA463; border-radius: 9px; color: #1FA463; background: rgba(236,252,243,.9);
  box-shadow: inset 0 0 0 2px rgba(236,252,243,.9), inset 0 0 0 3.5px #1FA463, 0 2px 8px rgba(18,90,52,.18);
  font: 800 19px/1 var(--title); letter-spacing: 1.6px; transform: rotate(-7deg); }
.ny9-stamp::before { content: '✓'; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #1FA463; color: #fff;
  font: 900 13px/1 'Nunito', sans-serif; letter-spacing: 0; }
/* the ticket reveal at the gate: a little lower, so the Penguin's line above it never covers its corner */
.ny8-ticket { top: calc(50% + 32px); transform: translate(-50%, -46%) scale(.54); }
/* the class stamp on the result card: on the card's top edge, half over the scene, clear of the kicker line */
.ny4-resultcard .ny11-stamp { top: -34px; right: 14px; width: 60px; height: 60px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.18); z-index: 4; }
.ny4-resultcard { padding-top: 26px; }
/* small phones: the stage is shorter, so the ticket sits lower and smaller under the Penguin's line */
@media (max-width: 340px) { .ny8-ticket { top: calc(50% + 40px); transform: translate(-50%, -46%) scale(.46); } }

/* ══ v11 the year turning, larger than life ══ */
.ny11-sky .ny-set-bg, .ny11-skyvideo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.ny11-sky .ny-set-bg:not(video) { animation: ny11-skypush 8s ease-out both; }
@keyframes ny11-skypush { from { transform: scale(1.15); } to { transform: scale(1.02); } }
/* a warm halo behind the year so the gold reads on any frame of the film */
.ny11-glow { position: absolute; z-index: 2; left: 50%; top: 27%; width: 140%; height: 46%; translate: -50% -50%; pointer-events: none;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(20,14,40,.62), rgba(20,14,40,.25) 55%, transparent 72%); opacity: 0; transition: opacity .5s; }
.ny11-sky:has(.ny11-year.is-in) .ny11-glow { opacity: 1; }
/* 3 · 2 · 1 */
.ny11-count { position: absolute; z-index: 5; inset: 0; display: grid; place-items: center; pointer-events: none; }
.ny11-count b { grid-area: 1 / 1; font: 800 clamp(150px, 52vw, 240px)/1 var(--title); color: transparent;
  background: linear-gradient(180deg, #FFFBE6 0%, #FFE27F 35%, #F2B118 62%, #B46F00 100%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 3px rgba(80,40,0,.55); filter: drop-shadow(0 8px 0 rgba(90,45,0,.55)) drop-shadow(0 0 30px rgba(255,200,80,.75));
  animation: ny11-punch .7s cubic-bezier(.2,1.4,.4,1) both; }
.ny11-count i { grid-area: 1 / 1; width: 60vw; max-width: 300px; aspect-ratio: 1; border-radius: 50%; border: 6px solid rgba(255,226,127,.9);
  box-shadow: 0 0 30px rgba(255,211,77,.8), inset 0 0 30px rgba(255,211,77,.5); animation: ny11-ring .7s ease-out both; }
@keyframes ny11-punch { 0% { transform: scale(2.6); opacity: 0; filter: blur(8px); } 35% { transform: scale(.92); opacity: 1; filter: none; } 55% { transform: scale(1.04); } 80% { transform: scale(1); opacity: 1; } 100% { transform: scale(.9); opacity: 0; } }
@keyframes ny11-ring { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
/* the year: big metallic 3D gold, each digit a flap that can flip */
.ny11-year { position: absolute; z-index: 4; left: 0; right: 0; top: 17%; display: flex; justify-content: center; gap: 1.5vw; perspective: 700px;
  opacity: 0; transform: translateY(40px) scale(.7); transition: opacity .45s, transform .6s cubic-bezier(.2,1.3,.4,1); }
.ny11-year.is-in { opacity: 1; transform: none; }
.ny11-digit { display: inline-block; transform-style: preserve-3d; }
.ny11-digit b { display: block; font: 800 clamp(84px, 26vw, 128px)/1 var(--title); color: transparent;
  background: linear-gradient(180deg, #FFFDF0 0%, #FFE68A 30%, #F5B820 58%, #C47A00 80%, #FFD86A 100%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-stroke: 2px rgba(110,55,0,.6);
  filter: drop-shadow(0 2px 0 #C07400) drop-shadow(0 4px 0 #9A5A00) drop-shadow(0 7px 0 #6E3E00) drop-shadow(0 12px 14px rgba(0,0,0,.55)) drop-shadow(0 0 26px rgba(255,200,80,.55)); }
.ny11-digit.is-flip { animation: ny11-flip .55s cubic-bezier(.4,0,.2,1) both; }
@keyframes ny11-flip { 0% { transform: rotateX(0); } 47% { transform: rotateX(90deg); } 53% { transform: rotateX(-90deg); } 100% { transform: rotateX(0); } }
.ny11-digit.is-new b { background-image: linear-gradient(180deg, #FFFFFF 0%, #FFF0A8 25%, #FFC93C 55%, #E08A00 80%, #FFE27F 100%); }
.ny11-sky.is-bursting .ny11-year { animation: ny11-yearpop 1.1s cubic-bezier(.2,1.4,.4,1); }
@keyframes ny11-yearpop { 30% { transform: scale(1.16); filter: brightness(1.5); } 100% { transform: none; } }
/* HAPPY NEW YEAR: a dark glass title plate with gold letters and a light sweeping across */
.ny11-hny { position: absolute; z-index: 6; left: 14px; right: 14px; top: 44%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 16px; border-radius: 22px; overflow: hidden; text-align: center;
  background: linear-gradient(180deg, rgba(40,18,60,.72), rgba(16,10,34,.88)); border: 2px solid #FFD34D;
  box-shadow: 0 0 0 4px rgba(255,211,77,.18), 0 0 40px rgba(255,180,60,.55), 0 14px 30px rgba(0,0,0,.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: ny11-hny-in .8s cubic-bezier(.2,1.4,.4,1) both; }
.ny11-hny b { font: 800 clamp(30px, 10.5vw, 48px)/1.04 var(--title); letter-spacing: 1px; color: transparent;
  background: linear-gradient(180deg, #FFFDF0 0%, #FFE27F 40%, #F2B118 75%, #FFD86A 100%); -webkit-background-clip: text; background-clip: text;
  filter: drop-shadow(0 3px 0 #8A4E00) drop-shadow(0 0 16px rgba(255,200,80,.6)); text-wrap: balance; }
.ny11-hny-star { flex: none; font-size: 22px; color: #FFE27F; text-shadow: 0 0 12px #FFD34D; animation: ny11-twinkle 1.2s ease-in-out infinite alternate; }
.ny11-hny::after { content: ''; position: absolute; inset: -30% auto -30% -40%; width: 26%; rotate: 18deg; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation: ny11-shine 2.2s .5s ease-in-out infinite; }
@keyframes ny11-hny-in { 0% { opacity: 0; transform: scale(.4) rotate(-6deg); filter: blur(6px); } 60% { opacity: 1; transform: scale(1.06) rotate(1deg); filter: none; } 100% { transform: none; } }
@keyframes ny11-twinkle { from { transform: scale(.8) rotate(0); opacity: .7; } to { transform: scale(1.2) rotate(20deg); opacity: 1; } }
.ny11-sky.is-out { opacity: 0; transition: opacity .45s; }
@media (prefers-reduced-motion: reduce) { .ny11-count b, .ny11-count i, .ny11-digit.is-flip, .ny11-hny, .ny11-hny::after, .ny11-hny-star, .ny11-sky .ny-set-bg { animation: none !important; } }
.ny11-hny { top: 42%; padding: 16px 14px 18px; }
.ny11-hny b { font-size: clamp(38px, 12.5vw, 58px); line-height: 1; }
.ny11-count b { font-size: clamp(180px, 60vw, 280px); }
/* the stars sit in the plate's corners, so the title keeps the whole width (2 lines even at 320 px) */
.ny11-hny { padding-left: 22px; padding-right: 22px; }
.ny11-hny-star { position: absolute; font-size: 18px; }
.ny11-hny-star:first-child { left: 8px; top: 8px; }
.ny11-hny-star:last-child { right: 8px; bottom: 8px; }
@media (max-width: 340px) { .ny11-hny b { font-size: 36px; } }
@keyframes ny11-hny-in2 { 0% { opacity: 0; transform: scale(.5); filter: blur(6px); } 65% { opacity: 1; transform: scale(1.02); filter: none; } 100% { transform: none; } }
.ny11-hny { animation-name: ny11-hny-in2; }
/* the year always reads 2026 → 2027, also on right-to-left pages (Arabic showed "7202") */
.ny11-year, .ny-year, .ny7-clock, .ny11-count { direction: ltr; unicode-bidi: isolate; }

/* ══════════════ v12 (2026-11-09, owner: "is every moment matching DBM and Bail Me Out… result screen, leaderboard?")
   the result screen gets their viral pieces: a big 3D score, a shareable picture, "now, it's your turn" with rays, a
   pointing finger and the wiggling button, the passengers right on the result, the make-your-own invitation ══ */
.ny4-resultcard .ny4-score { display: none; }
.ny12-score { display: flex; align-items: baseline; justify-content: center; gap: 2px; margin: 2px 0 2px; direction: ltr; }
.ny12-score b { font: 800 76px/1 var(--title); color: transparent; background: linear-gradient(180deg, #FFFFFF 0%, var(--s1) 30%, var(--s2) 70%, var(--s3) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 2px rgba(32,48,79,.35);
  filter: drop-shadow(0 3px 0 var(--s3)) drop-shadow(0 6px 0 rgba(32,48,79,.55)) drop-shadow(0 10px 14px rgba(0,0,0,.18)); }
.ny12-score span { font: 800 30px/1 var(--title); color: #50607E; }
.ny12-score.is-top { --s1: #FFE27F; --s2: #F2B118; --s3: #B46F00; }
.ny12-score.is-front { --s1: #9FF5D6; --s2: #2BB98C; --s3: #157A5B; }
.ny12-score.is-bottom { --s1: #FFC2D6; --s2: #E0457B; --s3: #A11E50; }
.ny12-score.is-done b { animation: ny12-scorepop .5s cubic-bezier(.2,1.6,.4,1); }
@keyframes ny12-scorepop { 40% { transform: scale(1.25) rotate(-4deg); } }
/* "now, it's your turn" */
.ny12-turn { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; margin-top: 6px; }
.ny12-turn-title { display: flex; align-items: center; justify-content: center; gap: 10px; }
.ny12-turn-title b { font: 800 clamp(24px, 7.4vw, 32px)/1.05 var(--title); color: #20304F; text-transform: lowercase; }
.ny12-turn-title b::first-letter { text-transform: uppercase; }
.ny12-rays { flex: none; width: 26px; height: 34px; background:
  linear-gradient(-60deg, transparent 44%, #FF4F8B 44% 56%, transparent 56%) 0 0 / 100% 33% no-repeat,
  linear-gradient(-90deg, transparent 0, transparent 40%, #FFC93C 40% 60%, transparent 60%) 0 50% / 100% 30% no-repeat,
  linear-gradient(-120deg, transparent 44%, #2BB3A3 44% 56%, transparent 56%) 0 100% / 100% 33% no-repeat; animation: ny12-rays 1.2s ease-in-out infinite alternate; }
.ny12-rays.is-right { scale: -1 1; }
@keyframes ny12-rays { to { transform: scale(1.18); } }
.ny12-turn .ny4-comeback { margin: 0; }
.ny12-finger { font-size: 34px; line-height: 1; animation: ny12-finger .9s ease-in-out infinite; }
@keyframes ny12-finger { 50% { transform: translateY(8px); } }
.ny12-tada { animation: ny12-tada 2.4s ease-in-out 1s infinite; }
@keyframes ny12-tada { 0%, 60%, 100% { transform: none; } 64% { transform: scale(.94) rotate(-3deg); } 70%, 78%, 86% { transform: scale(1.08) rotate(3deg); } 74%, 82% { transform: scale(1.08) rotate(-3deg); } 92% { transform: scale(1); } }
/* the passengers right on the result */
.ny12-wall { margin-top: 14px; gap: 8px; }
.ny12-wall-title { font: 800 22px/1.15 var(--title); color: #20304F; text-align: center; margin: 0; }
/* the invitation */
.ny12-invite { position: fixed; inset: 0; z-index: 9800; display: grid; place-items: center; padding: 18px; background: rgba(12,14,34,.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: ny-sky-in .3s ease-out both; }
.ny12-invite.is-out { opacity: 0; transition: opacity .3s; }
.ny12-invite-card { position: relative; width: min(360px, 100%); max-height: calc(100vh - 36px); overflow: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 16px 20px;
  border-radius: 26px; background: linear-gradient(180deg, #FFF8EC, #FFE9C2); border: 4px solid #fff; box-shadow: 0 20px 50px rgba(0,0,0,.4); text-align: center; }
.ny12-invite-card p { margin: 0; font: 700 15px/1.35 'Nunito', sans-serif; color: #50607E; }
.ny12-invite-card .xm-name { color: #E0457B; font-weight: 900; }   /* fix 2026-11-13 (owner): the gold name faded into the cream card — the game's pink name, as on every light scene */
.ny12-invite-pic { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; object-position: 50% 60%; border-radius: 18px; }
.ny12-invite-close { position: absolute; right: 10px; top: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(32,48,79,.75); color: #fff; font: 800 16px/1 sans-serif; }
.ny12-invite-card .xm-btn { width: 100%; }
@media (prefers-reduced-motion: reduce) { .ny12-rays, .ny12-finger, .ny12-tada, .ny12-score.is-done b { animation: none !important; } }

/* ══════════════ v13 THE TICKET REVEAL (owner 2026-11-09: "the ticket showing scene is not attractive, dramatic…") ══ */
.ny13-reveal { position: fixed; inset: 0; z-index: 9400; max-width: 480px; margin: 0 auto; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 24px 18px 60px; background: radial-gradient(ellipse 80% 60% at 50% 42%, #2A2350 0%, #120E2A 60%, #07051A 100%); opacity: 0; transition: opacity .45s ease; text-align: center; }
.ny13-reveal.is-in { opacity: 1; }
.ny13-reveal.is-out { opacity: 0; transition: opacity .5s ease; }
.ny13-reveal.is-out .ny13-ticket { transform: translateY(70vh) scale(.3) rotate(-18deg); transition: transform .55s cubic-bezier(.5,0,.7,.4); }
/* a slow turning light behind the ticket, in the class's colour once it is stamped */
.ny13-rays { position: absolute; left: 50%; top: 42%; width: 190vmax; height: 190vmax; translate: -50% -50%; pointer-events: none; opacity: .18;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.55) 0 6deg, transparent 6deg 18deg); animation: ny13-spin 26s linear infinite;
  -webkit-mask: radial-gradient(circle, #000 0 20%, transparent 55%); mask: radial-gradient(circle, #000 0 20%, transparent 55%); transition: opacity .4s, filter .4s; }
@keyframes ny13-spin { to { rotate: 360deg; } }
.ny13-spot { position: absolute; left: 50%; top: -10%; width: 120%; height: 70%; translate: -50% 0; pointer-events: none;
  background: radial-gradient(ellipse 40% 60% at 50% 0%, rgba(255,240,200,.35), transparent 70%); }
.ny13-kicker { position: relative; z-index: 2; margin: 0; font: 800 16px/1.3 'Nunito', sans-serif; color: #D8DCF5; opacity: 0; transform: translateY(-10px); transition: .5s .2s; }
.ny13-reveal.is-in .ny13-kicker { opacity: 1; transform: none; }
.ny13-kicker .xm-name { color: #FFE27F; }
/* the boarding pass: flies in big, trembles, gets slammed */
.ny13-ticket { position: relative; z-index: 2; width: min(330px, 88vw); transform: translateY(-80vh) rotate(-14deg) scale(.6); opacity: 0;
  transition: transform .7s cubic-bezier(.2,1.3,.4,1), opacity .3s; filter: drop-shadow(0 18px 30px rgba(0,0,0,.55)); }
.ny13-ticket.is-in { transform: rotate(-3deg); opacity: 1; }
.ny13-ticket .ny-pass-stamp { display: none; }              /* our own big stamp lands instead */
.ny13-ticket.is-suspense { animation: ny13-tremble .12s linear infinite; }
@keyframes ny13-tremble { 0%, 100% { translate: 0 0; } 25% { translate: -2px 1px; } 50% { translate: 2px -1px; } 75% { translate: -1px -2px; } }
.ny13-stamp { position: absolute; z-index: 3; right: 6%; top: 34%; display: flex; flex-direction: column; align-items: center; padding: 8px 14px 6px; border: 5px double currentColor; border-radius: 14px;
  background: rgba(255,255,255,.75); rotate: -14deg; opacity: 0; transform: scale(3.4); pointer-events: none; }
.ny13-stamp span { font-size: 30px; line-height: 1; }
.ny13-stamp b { font: 800 18px/1.1 var(--title); letter-spacing: 1px; white-space: nowrap; }
.ny13-stamp.is-top { color: #C99A00; } .ny13-stamp.is-front { color: #1F9E78; } .ny13-stamp.is-bottom { color: #D6306F; }
.ny13-stamp.is-down { opacity: 1; transform: none; transition: transform .22s cubic-bezier(.5,0,.7,1.6), opacity .08s; }
/* the hit: flash + shake + the rays in the class colour */
.ny13-reveal.is-hit { animation: ny11-shake .45s cubic-bezier(.36,.07,.19,.97); }
.ny13-reveal.is-hit::after { content: ''; position: absolute; inset: 0; z-index: 5; pointer-events: none; background: #fff; animation: ny11-flash .55s ease-out forwards; }
.ny13-reveal.is-top .ny13-stamp.is-down ~ *, .ny13-reveal:has(.ny13-stamp.is-down) .ny13-rays { opacity: .55; }
.ny13-reveal.is-top:has(.ny13-stamp.is-down) .ny13-rays { filter: sepia(1) saturate(6) hue-rotate(5deg) brightness(1.2); }
.ny13-reveal.is-front:has(.ny13-stamp.is-down) .ny13-rays { filter: sepia(1) saturate(5) hue-rotate(110deg); }
.ny13-reveal.is-bottom:has(.ny13-stamp.is-down) .ny13-rays { opacity: .25; }
/* the class, big */
.ny13-class { position: relative; z-index: 2; opacity: 0; transform: scale(.5); }
.ny13-class.is-in { opacity: 1; transform: none; transition: transform .55s cubic-bezier(.2,1.5,.4,1), opacity .2s; }
.ny13-class b { font: 800 clamp(30px, 9.6vw, 44px)/1.05 var(--title); color: transparent; background: linear-gradient(180deg, #FFFFFF 0%, var(--c1) 35%, var(--c2) 75%, var(--c3) 100%);
  -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 3px 0 var(--c3)) drop-shadow(0 0 22px var(--glow)); text-wrap: balance; }
.ny13-class.is-top { --c1: #FFE27F; --c2: #F2B118; --c3: #9A5A00; --glow: rgba(255,200,80,.6); }
.ny13-class.is-front { --c1: #9FF5D6; --c2: #2BB98C; --c3: #126B50; --glow: rgba(127,240,200,.5); }
.ny13-class.is-bottom { --c1: #FFD0E0; --c2: #E0457B; --c3: #8E1A47; --glow: rgba(224,69,123,.45); }
.ny13-crown { position: relative; z-index: 2; padding: 6px 16px; border-radius: 99px; background: linear-gradient(180deg, #FFE27F, #F2B118); color: #3A2600; font: 800 16px/1.2 var(--title);
  box-shadow: 0 0 22px rgba(255,200,80,.6); opacity: 0; transform: translateY(10px) scale(.8); }
.ny13-crown.is-in { opacity: 1; transform: none; transition: .45s cubic-bezier(.2,1.5,.4,1); }
.ny13-verdict { position: relative; z-index: 2; margin: 0; max-width: 330px; padding: 10px 16px; border-radius: 18px; background: rgba(255,255,255,.1); border: 1.5px solid rgba(255,255,255,.22);
  color: #fff; font: 800 18px/1.3 var(--title); opacity: 0; transform: translateY(12px); }
.ny13-verdict.is-in { opacity: 1; transform: none; transition: .4s ease; }
.ny13-verdict:empty { display: none; }
.ny13-reveal .ny5-skip { position: absolute; bottom: max(14px, env(safe-area-inset-bottom, 0px)); left: 50%; translate: -50% 0; padding: 5px 12px; border-radius: 99px; background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .ny13-rays, .ny13-ticket.is-suspense, .ny13-reveal.is-hit { animation: none !important; } }
/* no spoiler: the ticket's class line appears only with the stamp; the stamp sits in the empty corner */
.ny13-ticket .ny-pass-class { opacity: 0; transform: scale(.6); }
.ny13-ticket.is-stamped .ny-pass-class { opacity: 1; transform: none; transition: .4s .15s cubic-bezier(.2,1.5,.4,1); }
/* fix 2026-11-10 (Chrome sweep, es/fil): beside the name the stamp covered it whenever the class or the name was long;
   it now lands in the ticket's empty right half beside FROM → TO, and a long class wraps instead of growing wider */
.ny13-stamp { right: 3%; top: 37%; max-width: 38%; padding: 5px 9px 4px; }
.ny13-stamp span { font-size: 21px; } .ny13-stamp b { font-size: 14px; white-space: normal; text-align: center; overflow-wrap: normal; }
.ny13-class { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ny13-class-emoji { font-size: clamp(30px, 9vw, 42px); line-height: 1; filter: drop-shadow(0 3px 6px rgba(0,0,0,.4)); }
/* the moment of truth: the score counts up over the ticket while the drum rolls */
.ny13-score { position: relative; z-index: 2; display: flex; align-items: baseline; gap: 2px; direction: ltr; opacity: 0; transform: scale(.6); }
.ny13-score.is-in { opacity: 1; transform: none; transition: .35s cubic-bezier(.2,1.5,.4,1); }
.ny13-score b { font: 800 64px/1 var(--title); color: #fff; text-shadow: 0 4px 0 rgba(0,0,0,.35), 0 0 24px rgba(255,255,255,.35); min-width: 1.2ch; text-align: right; }
.ny13-score span { font: 800 26px/1 var(--title); color: rgba(255,255,255,.7); }
.ny13-score.is-done b { animation: ny12-scorepop .5s cubic-bezier(.2,1.6,.4,1); }
.ny13-reveal.is-top .ny13-score.is-done b { color: #FFE27F; } .ny13-reveal.is-front .ny13-score.is-done b { color: #9FF5D6; } .ny13-reveal.is-bottom .ny13-score.is-done b { color: #FF9BBF; }
.ny13-reveal { gap: 10px; }
.ny13-class b { font-size: clamp(26px, 8.2vw, 40px); white-space: nowrap; }
/* fix 2026-11-10 (Chrome sweep, Tamil "நல்ல ஃப்ரெண்ட் கிளாஸ்" ran off a 360 px screen): a class name too long for one
   line wraps into two balanced lines inside the screen; short ones stay on one line as before */
.ny13-class { max-width: calc(100vw - 28px); margin-inline: auto; }
.ny13-class b { white-space: normal; text-wrap: balance; text-align: center; max-width: 100%; overflow-wrap: anywhere; }

/* ══════════════ v14 THE SCOREBOARD (owner 2026-11-09: "DBM's scoreboard is awesome and premium… ours is cheap") ══ */
.ny14-ribbon { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px auto 4px; padding: 10px 26px; width: max-content; max-width: 100%;
  background: linear-gradient(180deg, #FFE27F, #FFC93C); border: 3px solid #20304F; border-radius: 14px; box-shadow: 0 5px 0 #20304F; rotate: -2deg; }
.ny14-ribbon b { font: 800 26px/1 var(--title); color: #20304F; }
.ny14-ribbon span { font-size: 26px; line-height: 1; }
.ny14-ribbon::before, .ny14-ribbon::after { content: ''; position: absolute; top: 10px; width: 18px; height: 70%; background: #FF8FB8; border: 3px solid #20304F; z-index: -1; }
.ny14-ribbon::before { left: -14px; border-right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 40% 50%); border-radius: 4px 0 0 4px; }
.ny14-ribbon::after { right: -14px; border-left: 0; clip-path: polygon(0 0, 100% 0, 60% 50%, 100% 100%, 0 100%); border-radius: 0 4px 4px 0; }
.ny14-count { display: table; margin: 6px auto 12px !important; padding: 5px 14px; border-radius: 99px; background: #fff; border: 2px solid #E3E8F5; font: 800 13px/1.2 'Nunito', sans-serif; color: #50607E; }
.ny14-list { display: flex; flex-direction: column; gap: 14px; padding: 8px 2px 4px; }
.ny-class-head { display: none !important; }
.ny14-card { position: relative; display: flex !important; align-items: center; gap: 12px; padding: 12px 14px 12px 12px !important; border-radius: 18px !important; background: #fff !important;
  border: 2.5px solid #E3E8F5 !important; box-shadow: 0 5px 0 #D6DDEE !important; text-align: start; overflow: visible !important; }
.ny14-card.is-top { border-color: #FFD34D !important; box-shadow: 0 5px 0 #F2B118 !important; }
.ny14-card.is-1a { background: linear-gradient(180deg, #FFFBEA, #FFF1C2) !important; border-color: #F2B118 !important; box-shadow: 0 5px 0 #C99A00, 0 0 18px rgba(255,200,80,.45) !important; }
.ny14-card.is-you { border-color: #2D7FF9 !important; box-shadow: 0 5px 0 #1B5FC4, 0 0 0 4px rgba(45,127,249,.18) !important; background: #F2F7FF !important; }
.ny14-rank { position: absolute; left: -8px; top: -12px; z-index: 2; min-width: 28px; height: 28px; padding: 0 6px; display: grid; place-items: center; border-radius: 10px;
  background: #EEF1F8; border: 2.5px solid #20304F; font: 800 14px/1 var(--title); color: #20304F; box-shadow: 0 3px 0 #20304F; rotate: -6deg; }
.ny14-rank.is-1 { background: linear-gradient(180deg, #FFE27F, #F2B118); }
.ny14-rank.is-2 { background: linear-gradient(180deg, #F4F6FA, #C3CAD8); }
.ny14-rank.is-3 { background: linear-gradient(180deg, #F7C99A, #D98A4A); }
.ny14-you { position: absolute; right: 12px; top: -13px; z-index: 2; padding: 3px 10px; border-radius: 99px; background: #2D7FF9; color: #fff; font: 800 12px/1.3 var(--title); box-shadow: 0 3px 0 #1B5FC4; }
.ny14-face { flex: none; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; border: 2.5px solid #20304F; background: #FFE9F1; }
.ny14-face.is-top { background: #FFF1C2; } .ny14-face.is-front { background: #DFF7EE; } .ny14-face.is-bottom { background: #FFE3EC; }
.ny14-face-pic { width: 100%; height: 160%; object-fit: cover; object-position: 50% 4%; }
.ny14-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ny14-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ny14-name { font: 800 17px/1.15 var(--title); color: #20304F; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ny14-score { flex: none; font: 800 14px/1 var(--title); color: #8A93A6; direction: ltr; }
.ny14-score b { font-size: 24px; color: #E0457B; }
.ny14-card.is-top .ny14-score b { color: #D08A00; } .ny14-card.is-front .ny14-score b { color: #1F9E78; } .ny14-card.is-bottom .ny14-score b { color: #E0457B; }
.ny14-bar { display: block; height: 8px; border-radius: 99px; background: #EEF1F8; overflow: hidden; }
.ny14-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #FF8FB8, #E0457B); }
.ny14-card.is-top .ny14-bar i { background: linear-gradient(90deg, #FFE27F, #F2B118); }
.ny14-card.is-front .ny14-bar i { background: linear-gradient(90deg, #9FF5D6, #2BB98C); }
.ny14-chip { align-self: flex-start; padding: 3px 10px; border-radius: 99px; font: 800 12px/1.3 'Nunito', sans-serif; background: #FFE3EC; color: #B4245A; }
.ny14-chip.is-top { background: #FFF1C2; color: #8A5A00; } .ny14-chip.is-front { background: #DFF7EE; color: #12704F; }
.ny14-chip.is-crown { background: linear-gradient(180deg, #FFE27F, #F2B118); color: #3A2600; }
.ny14-card .xm-row-go { flex: none; font-size: 26px; color: #A7B0C4; }
.ny14-card .xm-row-remove { position: absolute; right: -8px; bottom: -10px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #20304F; background: #fff; color: #20304F; font: 800 16px/1 sans-serif; }
/* v14 the friend's answers (Bail Me Out's screen) */
.ny14-ahead { display: flex !important; align-items: center; gap: 12px; padding: 14px !important; border-radius: 20px; background: #fff; border: 2.5px solid #E3E8F5; box-shadow: 0 5px 0 #D6DDEE; }
.ny14-ahead.is-top { border-color: #FFD34D; box-shadow: 0 5px 0 #F2B118; background: #FFFBEA; }
.ny14-ahead.is-front { border-color: #9FE6CC; box-shadow: 0 5px 0 #2BB98C; background: #F2FCF8; }
.ny14-ahead.is-bottom { border-color: #FFB3CC; box-shadow: 0 5px 0 #E0457B; background: #FFF4F8; }
.ny14-ahead .ny14-face { width: 64px; height: 64px; }
.ny14-ahead-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ny14-ahead-who .xm-h2 { margin: 0; font-size: 21px; line-height: 1.15; }
.ny14-ahead-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ny14-ahead-line .ny14-score b { font-size: 28px; }
.ny14-judge { display: flex; align-items: flex-end; gap: 6px; margin: 10px 0 6px; }
.ny14-judge-penguin { flex: none; position: relative !important; }
.ny14-judge-say { position: relative; flex: 1; margin-bottom: 30px; padding: 10px 14px; border-radius: 18px; background: #fff; border: 2.5px solid #20304F; box-shadow: 0 4px 0 #20304F;
  font: 800 15px/1.3 var(--title); color: #20304F; }
.ny14-judge-say::before { content: ''; position: absolute; left: -11px; bottom: 14px; border: 8px solid transparent; border-right-color: #20304F; border-left: 0; }
.ny14-same { align-self: flex-start; padding: 3px 10px; border-radius: 99px; background: #DFF7EE; color: #12704F; font: 800 12px/1.3 'Nunito', sans-serif; }
/* fix 2026-11-10 (Chrome sweep, Japanese "ジェットコースタ / ー"): CJK text never breaks before a long-vowel mark, small
   kana or closing punctuation (kinsoku), anywhere in the game */
:lang(ja) body, :lang(zh) body, :lang(ko) body { line-break: strict; }
/* fix 2026-11-10 (Chrome sweep, Polish "KLASA DOBRYCH ZNAJOMYCH 😊" ran off a 360 px screen): a class sign too long for
   one line becomes a two-line neon sign inside the screen (film and result) instead of overflowing its frame */
.ny11-sign b { white-space: normal; text-wrap: balance; overflow-wrap: anywhere; }
/* the caption sits under the sign's real bottom (set by reel.sign in newyear.js; 84px is the one-line sign) */
.ny7-film.has-sign .ny7-title { top: max(calc(env(safe-area-inset-top, 0px) + 84px), calc(var(--sign-end, 0px) + 10px)); }
/* in the reveal the stamp IS the ticket's class (the big title under it says it again): the printed class line steps
   aside so the stamp always has a clear place, in every language (the line stays on every other ticket) */
.ny13-ticket .ny-pass-class { display: none; }
/* ── readability pass 2026-11-10 (owner: "font size perfect so users can clearly read on mobile"). Measured every
   visible text on every screen at 320 px; anything a player must read is now ≥ 12 px (small caps labels) / ≥ 14 px (owner: 14, not 13),
   the big lines were already 15–44 px. One step up each, so the layouts fixed in the 30-language sweep still hold. */
.xm-cast-name { font-size: 14px; }
.ny-leavetag small { font-size: 12px; }
.ny-pass-field small { font-size: 11px; letter-spacing: .6px; }
.ny5-skip { font-size: 14px; }
.ny6-place { font-size: 14px; }
.ny6-tiles i { font-size: 12px; }
.ny6-qtag { font-size: 12px; }
.ny9-lefttag small { font-size: 11px; letter-spacing: .6px; }
.ny11-sign small { font-size: 12px; letter-spacing: 1.5px; }
.ny11-hero .ny11-sign small { font-size: 11px; letter-spacing: 1px; }
.ny4-chip { font-size: 14px; }
/* a class name on two lines splits evenly ("うわべ友 / クラス", never one letter alone on a line: Japanese at 320 px) */
.ny4-chip b { text-wrap: balance; word-break: normal; max-width: 100%; overflow-wrap: anywhere; }   /* a word longer than its chip at 320 px breaks inside it instead of spilling (no automatic hyphens for all: German split "Fast-Bes-tie") */
.ny4-chip b:lang(nl), .ny4-chip b:lang(nb), .ny4-chip b:lang(pl), .ny4-chip b:lang(ru), .ny4-chip b:lang(uk) { hyphens: auto; }   /* their class names are single long words (nl "Nepvriendenklas", nb "Bestisklasse", pl "Fałszywych", ru/uk "«Фейковый»"): split at a syllable with a hyphen, not at any letter */
.ny4-chip b:lang(ko) { word-break: keep-all; }   /* Korean broke chips mid-word ("찐친 클 / 래스"): lines break only at spaces */
.ny4-classes:lang(ta) { grid-template-columns: repeat(3, minmax(min-content, 1fr)); }   /* Tamil words are wider than a third of the row ("ஆல்மோஸ்ட்" 96 px at 14 px): each chip takes the width its words need, never splitting one */
.ny4-classes:lang(ta) .ny4-chip b { overflow-wrap: normal; }   /* (break-anywhere would shrink that width to one letter) */
@media (max-width: 340px) { .ny4-classes:lang(ta) { gap: 4px; } .ny4-classes:lang(ta) .ny4-chip { font-size: 13px; } }   /* 320 px: the three Tamil chips fit only at 13 px (Tamil letters stand taller than Latin ones at the same size) */@media (max-width: 340px) { .ny4-classes:lang(ta) { gap: 4px; } .ny4-classes:lang(ta) .ny4-chip { font-size: 13px; } }   /* 320 px: the three Tamil chips fit only at 13 px (Tamil letters stand taller than Latin ones at the same size) */
@media (max-width: 340px) { .ny6-goal-top b { font-size: 12.5px; letter-spacing: .3px; } .ny6-tiles i { font-size: 11.5px; } }
/* (owner: 14 px, not 13) the lines a player reads at 13 px move to 14: hints under the name / character cards,
   "friends already on board", the result kicker, the ticket's LEAVING line, the bubbles on the bin set */
.ny4-meta, .ny4-proof, .ny4-kicker { font-size: 14px; }
.ny-pass-leaving { font-size: 14px; }
.ny9-set.is-belt .xm-say { font-size: 14px; }
/* fix 2026-11-10 (Chrome sweep, Japanese "スコアボー / ド"): CJK words in titles never break mid-word; Latin titles
   still wrap at spaces (Swahili "Jedwali la alama") */
.ny14-ribbon b, .ny11-sign b, .ny13-class b, .ny7-title b, .ny11-award b, .ny9-h1, .ny9-h2 { word-break: keep-all; }
/* fix 2026-11-10 (Chrome sweep, Tamil "😏 ஆல்மோஸ்ட் பெஸ்டி கிளாஸ்" ran off the screen): the class chip under the gate's
   goal wraps to a second line inside the panel instead of running past it */
.ny6-place { white-space: normal; max-width: 100%; text-align: center; overflow-wrap: anywhere; }
/* v17 (owner 2026-11-11: the back-view watchers "look like cheap patch up"): the reveal is ONE shot — the same gate,
   lights down, behind the ticket (a slow camera push), and the three of them together on a lit floor in front of it,
   facing us, big, in their animated poses; they rise into the shot one by one */
.ny13-reveal.has-cast { padding-bottom: calc(var(--cast-h) + 58px); }
.ny17-backdrop { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; pointer-events: none;
  filter: brightness(.3) saturate(.7) blur(1.5px); animation: ny17-push 12s ease-out both; }
@keyframes ny17-push { from { scale: 1.14; } to { scale: 1.02; } }
.ny13-reveal.has-cast .ny13-rays { z-index: 1; opacity: .13; }
.ny13-reveal.has-cast .ny13-spot { z-index: 1; }
/* a vignette: the edges of the frame go dark, the eye goes to the ticket and the three of them */
.ny13-reveal.has-cast .ny13-spot::after { content: ''; position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 85% 75% at 50% 48%, transparent 55%, rgba(4,3,14,.75) 100%); }
.ny15-cast { position: absolute; z-index: 3; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 52px); display: flex; justify-content: center;
  align-items: flex-end; pointer-events: none; transform-origin: 50% 100%; animation: ny17-castpush 10s ease-out both; }
@keyframes ny17-castpush { from { scale: .96; } to { scale: 1.04; } }
/* the floor they stand on: a warm pool of light, darker floor around it */
.ny15-cast::before { content: ''; position: absolute; left: -5%; right: -5%; bottom: -40px; height: calc(var(--cast-h) * .55); z-index: -1;
  background: radial-gradient(ellipse 55% 50% at 50% 70%, rgba(255,214,140,.42), rgba(255,190,110,.12) 55%, transparent 75%); }
.ny15-cast .xm-char { position: relative !important; flex: none; margin: 0 -3%;
  filter: drop-shadow(0 10px 8px rgba(0,0,0,.5)) drop-shadow(0 0 1.5px rgba(255,232,180,.55));
  animation: ny17-rise .6s cubic-bezier(.3,1.35,.5,1) both; }
.ny15-cast .is-creator { order: 1; animation-delay: .15s; }
.ny15-cast .is-friend { order: 2; z-index: 2; margin-bottom: -6px; animation-delay: .3s; }
.ny15-cast .is-penguin { order: 3; animation-delay: .45s; }
@keyframes ny17-rise { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
.ny13-reveal.is-out .ny15-cast { transform: translateY(30%); opacity: 0; transition: .5s ease; }
@media (prefers-reduced-motion: reduce) { .ny17-backdrop, .ny15-cast, .ny15-cast .xm-char { animation: none !important; } }
/* fix 2026-11-11 (team: "the name's underline in the question doesn't look good with text below"): inside a question
   the hand-drawn underline (a background at the box's bottom) cut through letters that hang below the line (g, j, p, y)
   and crowded the next line. A real underline instead: it skips those letters, sits a little lower, follows a wrapped
   name line by line; the question lines get a little more air. */
.xm-q .xm-name, .ny6-qtext .xm-name, .ny9-q .xm-name {
  background: none !important; padding-bottom: 0; line-height: inherit;
  text-decoration: underline; text-decoration-color: #FFB3CC; text-decoration-thickness: .09em; text-underline-offset: .14em;
  text-decoration-skip-ink: auto;
}
.ny6-qtext, .ny9-q, .ny9-qticket .xm-q { line-height: 1.45 !important; }
/* fix 2026-11-11 (owner: "the name's underline overlaps the line below" when the name wraps): a thinner line closer to the
   letters and more air between the question's lines, so the underline never touches the next line's capitals */
/* the your-turn pop-up after Fake Friend Class: no party — their own character sulking on a dim stage */
.ny12-invite-sulk { position: relative; width: 100%; aspect-ratio: 4 / 3; display: flex; align-items: flex-end; justify-content: center; border-radius: 18px;
  background: radial-gradient(ellipse at 50% 40%, #4A4F6B, #23263D); overflow: hidden; }
.ny12-invite-sulk .xm-char { position: relative !important; margin-bottom: 6px; }
.ny12-invite-card.is-front .ny12-invite-pic, .ny12-invite-card.is-top .ny12-invite-pic { object-position: 50% 58%; }
/* v16 the gate climax before the reveal (Bail Me Out's): a warm spotlight on the three of them (owner 2026-11-11: no black
   film bars, no lights-down — it stays the bright gate) */
.ny6-set .ny6-bg { transition: filter .6s ease; }
/* a spotlight on the three of them */
.ny6-set.is-climax .ny6-lens::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 50% 78%, rgba(255,226,150,.28), transparent 70%); }
.ny6-set.is-climax .xm-char { z-index: 2; }
/* fix 2026-11-11 (owner: "is it necessary to show the same class emoji twice on the result?"): no — the round stamp
   badge on the picture's corner goes; the big emoji over the class name takes its stamp moment (it slams in) */
.ny4-resultcard .ny11-stamp { display: none !important; }
.ny4-resultcard.is-stamped .ny4-class > span { animation: ny16-slam .45s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes ny16-slam { 0% { transform: scale(2.6) rotate(-14deg); opacity: 0; } 60% { transform: scale(.9) rotate(3deg); opacity: 1; } 100% { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ny4-resultcard.is-stamped .ny4-class > span { animation: none; } }
/* v18 (owner 2026-11-11: "the dark dramatic reveal is not looking awesome", then "not premium, most of the text is faded
   in light"): the reveal is an AWARD STAGE in the game's bright look — no photo under a haze: a warm golden spotlight
   opening into a rich sky blue, crisp white/gold rays, the white sticker panels with navy outlines the rest of the game
   uses, a gold podium the three of them stand on; every word solid, never faded */
.ny13-reveal { background: radial-gradient(ellipse 85% 55% at 50% 36%, #FFFCEB 0%, #FFE9A3 20%, #8ED0FF 52%, #4A9BEA 82%, #2F7BD0 100%); }
.ny17-backdrop { display: none; }
.ny13-reveal.has-cast .ny13-spot { display: none; }
.ny13-reveal.has-cast .ny13-rays { z-index: 1; opacity: .5; top: 36%;
  background: repeating-conic-gradient(from 0deg, rgba(255,255,255,.85) 0 5deg, transparent 5deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 0 14%, transparent 52%); mask: radial-gradient(circle, #000 0 14%, transparent 52%); }
.ny13-reveal.has-cast:has(.ny13-stamp.is-down) .ny13-rays { opacity: .75; filter: none; }
.ny13-reveal.is-front.has-cast:has(.ny13-stamp.is-down) .ny13-rays { filter: sepia(.6) saturate(3) hue-rotate(95deg); }
.ny13-reveal.is-bottom.has-cast:has(.ny13-stamp.is-down) .ny13-rays { filter: sepia(.6) saturate(3) hue-rotate(300deg); opacity: .55; }
.ny13-reveal.has-cast .ny13-kicker { padding: 6px 14px; border-radius: 99px; background: #fff; border: 2.5px solid #20304F; box-shadow: 0 3px 0 #20304F; color: #20304F; }
.ny13-reveal.has-cast .ny13-kicker .xm-name { color: #E0457B; }
/* the score: a big gold number with a navy outline (the class titles' style), "/10" solid navy */
.ny13-reveal.has-cast .ny13-score b, .ny13-reveal.has-cast.is-top .ny13-score.is-done b, .ny13-reveal.has-cast.is-front .ny13-score.is-done b,
.ny13-reveal.has-cast.is-bottom .ny13-score.is-done b { color: #FFD34D;
  text-shadow: -3px 0 #20304F, 3px 0 #20304F, 0 -3px #20304F, 0 3px #20304F, -2px -2px #20304F, 2px -2px #20304F, -2px 2px #20304F, 2px 2px #20304F, 0 7px 0 #20304F; }
.ny13-reveal.has-cast.is-front .ny13-score.is-done b { color: #7FF0C8; } .ny13-reveal.has-cast.is-bottom .ny13-score.is-done b { color: #FF8FB8; }
.ny13-reveal.has-cast .ny13-score span { color: #20304F; text-shadow: 0 0 6px #fff, 0 0 2px #fff; }
.ny13-reveal.has-cast .ny13-ticket { filter: drop-shadow(0 5px 0 rgba(32,48,79,.85)) drop-shadow(0 18px 24px rgba(20,40,90,.35)); }
.ny13-reveal.has-cast .ny13-class b { filter: drop-shadow(0 3px 0 #20304F) drop-shadow(0 0 1px #20304F); }
.ny13-reveal.has-cast .ny13-verdict { background: #fff; border: 2.5px solid #20304F; box-shadow: 0 3px 0 #20304F; color: #20304F; }
.ny13-reveal.has-cast .ny5-skip { background: rgba(32,48,79,.82); color: #fff; }
/* the podium: gold, outlined like the stickers, the three of them standing on it */
.ny15-cast::before { left: 4%; right: 4%; bottom: -16px; height: 40px; border-radius: 50%; border: 3px solid #20304F;
  background: radial-gradient(ellipse 60% 70% at 50% 35%, #FFFBE8 0%, #FFE27F 40%, #F2B118 80%, #C98A00 100%);
  box-shadow: 0 6px 0 #20304F, 0 14px 24px rgba(20,40,90,.35); }
.ny15-cast .xm-char { filter: drop-shadow(0 4px 3px rgba(32,48,79,.3)); }
/* v19 the hand-off: the creator's reaction is a bubble over them on the podium, then the ticket flies down into the
   friend's hands while the boarding film fades in over the stage */
.ny13-reveal .xm-say { z-index: 6; font-size: 16px; }
.ny13-reveal.is-handoff .ny13-ticket { transform: translateY(60vh) scale(.25) rotate(-18deg); opacity: 0; transition: transform .5s cubic-bezier(.5,0,.7,.4), opacity .5s .1s; }
/* short phones (≤ 700 px tall, 320×568 / 360×640): the award stage tightens so nothing overlaps — a smaller ticket and
   score, less air between them; the cast is smaller too (newyear.js castH) */
@media (max-height: 700px) {
  .ny13-reveal.has-cast { gap: 6px; padding-top: 10px; padding-bottom: calc(var(--cast-h) + 50px); }
  .ny13-reveal.has-cast .ny13-ticket { width: min(270px, 80vw); }
  .ny13-reveal.has-cast .ny13-score b { font-size: 46px; }
  .ny13-reveal.has-cast .ny13-score span { font-size: 20px; }
  .ny13-reveal.has-cast .ny13-kicker { font-size: 14px; padding: 4px 12px; }
  .ny13-reveal.has-cast .ny13-class b { font-size: clamp(22px, 7vw, 30px); }
  .ny13-reveal.has-cast .ny13-verdict { font-size: 15px; padding: 7px 12px; }
  .ny15-cast { bottom: calc(env(safe-area-inset-bottom, 0px) + 46px); }
}
