/* StreamCozy widgets: the look of every widget of the studio (Overlays/docs/plan.md).
   Loaded by the overlay page and, later, by the studio. It paints no page background: the overlay page must stay
   see-through. Colours are the fixed palette of Cozy Universe (docs/plattform/DESIGN.md, kit.js PALETTE).

   Rules for every widget: readable on light and dark camera pictures (own surface or outline), moves only with
   transform and opacity, still usable without animation (prefers-reduced-motion). Old embedded browsers too:
   no inset, no :has, no container queries.

   Sizes are in px on purpose (unlike the website, which uses rem): a widget is drawn in the pixels of the 800 x 600
   scene at its standard size and then scaled as a whole (runtime.js), so its proportions never depend on the window. */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(../fonts/nunito-cyrillic-wght-normal.woff2) format('woff2-variations'), url(../fonts/nunito-cyrillic-wght-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(../fonts/nunito-vietnamese-wght-normal.woff2) format('woff2-variations'), url(../fonts/nunito-vietnamese-wght-normal.woff2) format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(../fonts/nunito-latin-ext-wght-normal.woff2) format('woff2-variations'), url(../fonts/nunito-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(../fonts/nunito-latin-wght-normal.woff2) format('woff2-variations'), url(../fonts/nunito-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ---------- Stage and items ---------- */

.sc-stage {
  --w-font: "Nunito", "Segoe UI", system-ui, -apple-system, "Geeza Pro", "Noto Sans Arabic", "Tahoma", "Leelawadee UI", "Thonburi", "Noto Sans Thai", "Hiragino Sans", "Yu Gothic UI", "Apple SD Gothic Neo",
    "Malgun Gothic", "Microsoft YaHei", "PingFang SC", sans-serif;
  --w-ink: #f4f1ff;
  --w-ink-dim: #c9c1fd;
  --w-surface: rgba(18, 14, 48, 0.84);
  --w-line: rgba(201, 193, 253, 0.28);
  position: relative;
  overflow: visible;
  font-family: var(--w-font);
  color: var(--w-ink);
  -webkit-font-smoothing: antialiased;
}
.sc-item { position: absolute; top: 0; left: 0; }
.sc-box { position: absolute; top: 0; left: 0; transform-origin: 0 0; box-sizing: border-box; }
.sc-box *, .sc-box *::before, .sc-box *::after { box-sizing: border-box; }
.sc-hidden { opacity: 0.4; }

/* Signs and pictures shared by the widgets */
.w-icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: var(--w-accent, #c4b5fd); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.w-icon .w-icon-fill { fill: var(--w-accent, #c4b5fd); stroke: none; }
.w-avatar {
  position: relative; flex: none; width: 1.75em; height: 1.75em; border-radius: 50%; overflow: hidden;
  background: linear-gradient(140deg, #8c76e7, #c4b5fd); box-shadow: 0 0 0 2px rgba(196, 181, 253, 0.35);
}
.w-avatar-letter {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: #1f1838; font-weight: 900; font-size: 0.85em; line-height: 1;
}
.w-avatar img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
/* The picture inside a line of text (kit.js setFaceName): as tall as the capitals plus a little, follows the text's size,
   its colour and its animation; a thin light ring keeps it apart from any plate. */
.w-avatar.is-inline { display: inline-block; vertical-align: -0.2em; width: 1.12em; height: 1.12em; margin-inline-end: 0.28em; box-shadow: 0 0 0 0.06em rgba(255, 255, 255, 0.85); }
.w-avatar.is-inline .w-avatar-letter { font-size: 0.62em; letter-spacing: 0; }

/* ---------- Text ---------- */

.w-text { display: flex; align-items: center; justify-content: center; padding: 0 4px; overflow: visible; }
.w-text[data-align="left"] { justify-content: flex-start; }
.w-text[data-align="right"] { justify-content: flex-end; }
.w-text-line {
  display: inline-block; margin: 0; white-space: nowrap; line-height: 1.15;
  color: var(--w-color, #f4f1ff); font-weight: 800; letter-spacing: -0.01em;
}
.w-text[data-style="cozy"] .w-text-line {
  font-weight: 1000; letter-spacing: 0.01em;
  /* a soft glow in the text's own colour, under the outline */
  text-shadow: 0 0 0.35em rgba(196, 181, 253, 0.55), 0 0.08em 0 rgba(31, 24, 56, 0.6);
}
/* The outline is made of shadows: works in every browser (paint-order on HTML text is too new). */
.w-text.w-outline .w-text-line {
  text-shadow: 0.045em 0 0 #120e30, -0.045em 0 0 #120e30, 0 0.045em 0 #120e30, 0 -0.045em 0 #120e30,
    0.032em 0.032em 0 #120e30, -0.032em 0.032em 0 #120e30, 0.032em -0.032em 0 #120e30, -0.032em -0.032em 0 #120e30,
    0 0.09em 0.18em rgba(6, 5, 10, 0.55);
}
.w-text.w-outline[data-style="cozy"] .w-text-line {
  text-shadow: 0.05em 0 0 #120e30, -0.05em 0 0 #120e30, 0 0.05em 0 #120e30, 0 -0.05em 0 #120e30,
    0.036em 0.036em 0 #120e30, -0.036em 0.036em 0 #120e30, 0.036em -0.036em 0 #120e30, -0.036em -0.036em 0 #120e30,
    0 0 0.4em rgba(196, 181, 253, 0.6), 0 0.1em 0.2em rgba(6, 5, 10, 0.5);
}
.w-text.w-plate .w-text-line {
  padding: 0.12em 0.55em 0.16em; border-radius: 0.42em;
  background: var(--w-surface, rgba(18, 14, 48, 0.84)); box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28)), 0 0.3em 0.8em -0.3em rgba(4, 2, 24, 0.7);
}

/* ---------- Event list ---------- */

.w-event-feed { padding: 4px; overflow: hidden; }
.w-feed-list {
  display: flex; flex-direction: column; gap: 6px; height: 100%; margin: 0; padding: 0; list-style: none;
  font-size: var(--w-text, 16px);
}
.w-feed-row {
  display: flex; align-items: center; gap: 0.5em; flex: none; min-width: 0;
  height: calc((100% - (var(--w-rows, 5) - 1) * 6px) / var(--w-rows, 5)); max-height: 3.4em;
  padding: 0 0.75em 0 0.4em; border-radius: 999px;
  background: var(--w-surface, rgba(18, 14, 48, 0.84)); box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28));
  line-height: 1.2;
}
.w-no-avatars .w-feed-row { padding-inline-start: 0.8em; }
.w-no-avatars .w-avatar { display: none; }
.w-feed-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.w-feed-detail { display: flex; align-items: center; gap: 0.3em; flex: 1 1 auto; min-width: 0; justify-content: flex-end; color: var(--w-ink-dim, #c9c1fd); font-weight: 700; }
.w-feed-count { color: var(--w-accent, #c4b5fd); font-weight: 900; white-space: nowrap; font-variant-numeric: tabular-nums; }
.w-feed-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--w-ink, #f4f1ff); }
.w-feed-pic { width: 1.5em; height: 1.5em; flex: none; object-fit: contain; }
.w-feed-follow .w-icon, .w-feed-share .w-icon { width: 1.3em; height: 1.3em; }

.w-enter { animation: w-enter 0.3s cubic-bezier(0.23, 1, 0.32, 1) both; }
@keyframes w-enter { from { opacity: 0; transform: translateX(-18px) scale(0.96); } to { opacity: 1; transform: none; } }
.w-bump { animation: w-bump 0.3s cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes w-bump { 40% { transform: scale(1.22); } }
.w-feed-count { display: inline-block; }

/* Particles (kit.js createParticles): painted hearts, stars, confetti; moved by script. */
.w-particle { position: absolute; top: 0; left: 0; height: auto; pointer-events: none; will-change: transform, opacity; }
.w-glow { display: block; border-radius: 50%; background: radial-gradient(closest-side, var(--w-glow, rgba(217, 200, 255, 0.55)), transparent); }

/* ---------- Characters: Joy and Cozy Cloud (figure.js) ---------- */

.w-fig { position: absolute; top: 0; left: 0; width: 100%; height: 100%; --w-excite: 1; }
.w-fig-roam { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transition: transform 2.8s cubic-bezier(0.45, 0, 0.35, 1); }
/* One fixed canvas per character (figure.js layout(), figure-art.js): the body has the canvas size and place, the picture
   fills it exactly; a state change swaps only the picture. */
.w-fig-body { position: absolute; }
.w-fig-pose { width: 100%; height: 100%; }
.w-fig-img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 6px 10px rgba(6, 5, 10, 0.35)); user-select: none; }
/* A soft shadow on the ground, so the character stands on the picture. The cloud hovers: its shadow is lighter. */
.w-fig-shadow { position: absolute; left: 50%; width: 46%; height: 7%; margin-left: -23%; border-radius: 50%; background: radial-gradient(closest-side, rgba(6, 5, 10, 0.45), transparent); }
.w-fig-cloud .w-fig-shadow { width: 40%; margin-left: -20%; opacity: 0.6; }
/* The cloud's white rim needs a little contrast on light pictures. */
.w-fig-cloud .w-fig-img { filter: drop-shadow(0 0 1.5px rgba(91, 88, 176, 0.55)) drop-shadow(0 8px 12px rgba(6, 5, 10, 0.3)); }
.w-fig-props { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.w-fig-prop { position: absolute; height: auto; animation: w-pop 0.42s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
.w-fig-prop.is-side { right: 1%; bottom: 5%; }
.w-fig-prop.is-big { right: 0; bottom: 3%; }
.w-fig-prop.is-gone { animation: w-fade-out 0.38s ease both; }
.w-fig-fx { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.w-fig-name {
  position: absolute; left: 50%; bottom: 3%; max-width: 86%; margin: 0; padding: 0.18em 0.75em; transform: translateX(-50%);
  border-radius: 999px; background: var(--w-surface, rgba(18, 14, 48, 0.84)); box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28));
  color: var(--w-ink, #f4f1ff); font-weight: 900; font-size: 22px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.w-fig-name[hidden] { display: none; }
/* Calm loops: Joy breathes, the cloud floats. Happy: a bounce that gets quicker with every gift in a row. */
.w-fig-joy[data-state="chill"] .w-fig-pose { animation: w-breathe 4.2s ease-in-out infinite; }
.w-fig-cloud[data-state="chill"] .w-fig-pose { animation: w-float 5s ease-in-out infinite; }
.w-fig[data-state="gift"] .w-fig-pose { animation: w-bounce calc(0.62s / var(--w-excite)) ease-in-out infinite alternate; }
.w-fig[data-state="big"] .w-fig-pose { animation: w-bounce 0.36s ease-in-out infinite alternate; }
.w-fig.is-asleep .w-fig-pose { animation: w-breathe 7s ease-in-out infinite; }
.w-fig-img.is-turned { transform: scaleX(-1); }
/* The Santa hat (xmas-hats.js): a layer the size of the canvas over the picture, flipped with it. */
.w-fig-hat { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.w-fig-hat[hidden] { display: none; }
.w-fig-hat.is-turned { transform: scaleX(-1); }
.w-fig-hat-pic { position: absolute; display: block; height: auto; filter: drop-shadow(0 3px 4px rgba(6, 5, 10, 0.35)); }
.w-fig-pose { position: relative; }
.w-fig-joy[data-state="chill"][data-mood="lively"] .w-fig-pose { animation-duration: 2.6s; }
.w-fig-cloud[data-state="chill"][data-mood="lively"] .w-fig-pose { animation-duration: 3s; }
.w-fig.is-groove[data-state="chill"] .w-fig-pose { animation: w-groove 0.52s ease-in-out infinite alternate; }
.w-fig[data-state="hype"] .w-fig-pose { animation: w-dance 0.84s ease-in-out infinite; }
.w-fig[data-state="goal"] .w-fig-pose { animation: w-bounce 0.42s ease-in-out infinite alternate; }
.w-fig[data-state="walk"] .w-fig-pose { animation: w-step 0.24s ease-in-out infinite alternate; }
.w-fig[data-state="play"] .w-fig-pose { animation: w-groove 0.6s ease-in-out infinite alternate; }
.w-fig[data-state="yawn"] .w-fig-pose, .w-fig[data-state="stretch"] .w-fig-pose { animation: w-breathe 2.2s ease-in-out infinite; }
.w-fig-zz { position: absolute; top: 18%; right: 20%; display: none; color: #d9c8ff; font-weight: 900; font-size: 26px; line-height: 1; text-shadow: 0 0 2px #120e30, 0 0 6px rgba(18, 14, 48, 0.8); }
.w-fig.is-asleep .w-fig-zz { display: block; }
.w-fig-zz span { position: absolute; opacity: 0; animation: w-zz 3.6s ease-in-out infinite; }
.w-fig-zz span:nth-child(2) { left: 14px; font-size: 32px; animation-delay: 1.2s; }
.w-fig-zz span:nth-child(3) { left: 30px; font-size: 40px; animation-delay: 2.4s; }
.w-fig.is-calm .w-fig-pose, .w-fig.is-calm .w-fig-zz span { animation: none; }
.w-fig.is-calm .w-fig-zz span { opacity: 1; position: static; display: inline-block; }
@keyframes w-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, 1.03); } }
@keyframes w-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5%); } }
@keyframes w-step { from { transform: translateY(0); } to { transform: translateY(-2%); } }
@keyframes w-groove { from { transform: translateY(0) rotate(-3deg); } to { transform: translateY(-3%) rotate(3deg); } }
@keyframes w-dance { 0%, 100% { transform: translateY(0) rotate(-5deg); } 25% { transform: translateY(-6%) rotate(0deg); } 50% { transform: translateY(0) rotate(5deg); } 75% { transform: translateY(-6%) rotate(0deg); } }
@keyframes w-bounce { from { transform: translateY(0) scale(1, 1); } to { transform: translateY(-4%) scale(0.99, 1.02); } }
@keyframes w-zz { 0% { opacity: 0; transform: translate(0, 10px) scale(0.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(14px, -30px) scale(1); } }
@keyframes w-pop { from { opacity: 0; transform: translateY(20px) scale(0.5); } to { opacity: 1; transform: none; } }
@keyframes w-fade-out { to { opacity: 0; transform: translateY(10px) scale(0.9); } }

/* ---------- Gift alert (gift-alert.js) ---------- */

.w-alert { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; }
.w-alert-fx { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.w-alert-card {
  position: relative; display: flex; align-items: center; gap: 18px; width: 100%; height: 100%; padding: 14px 22px 14px 16px;
  border-radius: 34px; background: var(--w-surface, rgba(18, 14, 48, 0.84));
  box-shadow: inset 0 0 0 2px var(--w-accent, #c4b5fd), 0 10px 28px -10px rgba(4, 2, 24, 0.75);
}
.w-alert-card[data-tier="big"] { box-shadow: inset 0 0 0 2px #fec3ec, 0 0 0 4px rgba(254, 195, 236, 0.25), 0 0 34px -4px rgba(254, 195, 236, 0.55); }
.w-alert-card[data-tier="huge"] { box-shadow: inset 0 0 0 3px #ffd36b, 0 0 0 5px rgba(255, 211, 107, 0.25), 0 0 44px -2px rgba(255, 211, 107, 0.6); }
.w-alert-card .w-avatar { width: 96px; height: 96px; font-size: 44px; box-shadow: 0 0 0 3px var(--w-accent, #c4b5fd); }
.w-alert-card[data-tier="big"] .w-avatar { box-shadow: 0 0 0 3px #fec3ec; }
.w-alert-card[data-tier="huge"] .w-avatar { box-shadow: 0 0 0 3px #ffd36b; }
.w-alert-text { display: grid; gap: 2px; min-width: 0; flex: 1 1 auto; }
.w-alert-text p { margin: 0; }
.w-alert-title { color: var(--w-accent, #c4b5fd); font-weight: 900; font-size: 18px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-alert-name { font-weight: 900; font-size: 34px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-alert-gift { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--w-ink-dim, #c9c1fd); font-weight: 800; font-size: 22px; line-height: 1.2; }
.w-alert-pic { width: 38px; height: 38px; flex: none; object-fit: contain; }
.w-alert-giftname { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-alert-count { display: inline-block; flex: none; color: var(--w-accent, #c4b5fd); font-weight: 900; font-size: 26px; font-variant-numeric: tabular-nums; }
.w-alert-card[data-tier="big"] .w-alert-count { color: #fec3ec; }
.w-alert-card[data-tier="huge"] .w-alert-count { color: #ffd36b; }

/* Gift alert designs (founder, 2026-11-16: cozy, standard, hype), each with a painted friend on the card's corner. */
.w-alert-corner { position: absolute; z-index: 2; pointer-events: none; object-fit: contain; }
.w-alert-card[data-design="cozy"] { background: linear-gradient(180deg, rgba(64, 48, 132, 0.92), rgba(32, 24, 78, 0.92)); box-shadow: inset 0 0 0 2px rgba(214, 200, 255, 0.55), 0 12px 28px -12px rgba(4, 2, 24, 0.8); }
.w-alert-card[data-design="cozy"] .w-alert-corner { width: 88px; height: 88px; right: -18px; top: -32px; filter: drop-shadow(0 4px 6px rgba(4, 2, 24, 0.5)); animation: w-goal-ride 2.4s ease-in-out infinite; }
.w-alert-card[data-design="cozy"] .w-avatar { box-shadow: 0 0 0 4px #fff, 0 0 0 7px rgba(255, 179, 214, 0.8); }
.w-alert-card[data-design="cozy"] .w-alert-title { color: #ffb3d6; }
.w-alert-card[data-design="cozy"] .w-alert-count { color: #ffd0e6; }

.w-alert-card[data-design="standard"] {
  border-radius: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 55%), rgba(16, 16, 28, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.2), 0 12px 26px -16px rgba(0, 0, 0, 0.9);
}
.w-alert-card[data-design="standard"] .w-alert-corner { width: 58px; height: 58px; right: -12px; top: -20px; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.55)); animation: w-goal-twinkle 3s ease-in-out infinite; }
.w-alert-card[data-design="standard"] .w-avatar { box-shadow: 0 0 0 3px #ffcf4d, 0 0 14px rgba(255, 207, 77, 0.5); }
.w-alert-card[data-design="standard"] .w-alert-title { color: #ffe08a; }
.w-alert-card[data-design="standard"] .w-alert-count { color: #ffcf4d; }
.w-alert-card[data-design="standard"] .w-alert-gift { color: rgba(255, 255, 255, 0.82); }

/* The slanted neon plate is its own layer behind the card, so the card can still slide in (its own transform). */
.w-alert-card[data-design="hype"] { isolation: isolate; background: none; box-shadow: none; }
.w-alert-card[data-design="hype"]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 10px; transform: skewX(-8deg); background: linear-gradient(100deg, #12062e, #2a0a4a 60%, #3a0c3c);
  box-shadow: inset 0 0 0 2px #ff3dbb, 0 0 18px -2px rgba(255, 61, 187, 0.8), 0 0 40px -8px rgba(0, 229, 255, 0.6); animation: w-goal-neon 1.4s ease-in-out infinite alternate;
}
.w-alert-card[data-design="hype"] .w-alert-corner { width: 84px; height: 84px; right: -22px; top: -34px; filter: drop-shadow(0 0 10px rgba(255, 138, 61, 0.9)); animation: w-goal-flicker 0.35s ease-in-out infinite alternate; }
.w-alert-card[data-design="hype"] .w-avatar { box-shadow: 0 0 0 3px #ff3dbb, 0 0 16px rgba(255, 61, 187, 0.9); }
.w-alert-card[data-design="hype"] .w-alert-title { color: #7df9ff; font-style: italic; text-transform: uppercase; letter-spacing: 0.04em; text-shadow: 0 0 8px rgba(0, 229, 255, 0.85); }
.w-alert-card[data-design="hype"] .w-alert-name { font-style: italic; text-transform: uppercase; text-shadow: 0 0 10px rgba(255, 61, 187, 0.9), 0 2px 0 #7a0f5c; }
.w-alert-card[data-design="hype"] .w-alert-count { font-style: italic; font-size: 32px; color: #ffe14d; text-shadow: 0 0 12px rgba(255, 138, 61, 0.95); }
.w-alert-card[data-design="hype"] .w-alert-gift { color: #fff; }
.w-in { animation: w-alert-in 0.38s cubic-bezier(0.22, 1.2, 0.36, 1) both; }
.w-out { animation: w-alert-out 0.28s ease both; }
@keyframes w-alert-in { from { opacity: 0; transform: translateY(26px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes w-alert-out { to { opacity: 0; transform: translateY(14px) scale(0.96); } }

/* ---------- Top gifters (gift-leaderboard.js) ---------- */

.w-board { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 6px; }
.w-board-title {
  display: flex; align-items: center; justify-content: center; gap: 8px; align-self: center; max-width: 100%; margin: 0; padding: 5px 16px 5px 10px;
  border-radius: 999px; background: var(--w-accent, #c4b5fd); color: #1f1838; font-weight: 900; font-size: 18px; line-height: 1.2;
  box-shadow: 0 6px 16px -8px rgba(4, 2, 24, 0.8);
}
.w-board-title[hidden] { display: none; }
.w-board-title span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-board-crown { width: 24px; height: 24px; flex: none; object-fit: contain; }
.w-board-list { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-height: 0; margin: 0; padding: 0; list-style: none; }
.w-board-row {
  display: flex; align-items: center; gap: 9px; flex: 1 1 0; min-height: 0; max-height: 52px; padding: 0 12px 0 8px; border-radius: 999px;
  background: var(--w-surface, rgba(18, 14, 48, 0.84)); box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28)); font-size: 16px;
}
.w-board-row[data-rank="1"] { box-shadow: inset 0 0 0 2px var(--w-accent, #c4b5fd), 0 0 18px -6px var(--w-accent, #c4b5fd); }
.w-board-row.is-empty { opacity: 0.45; }
.w-board-rank {
  display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(201, 193, 253, 0.16);
  color: var(--w-ink, #f4f1ff); font-weight: 900; font-size: 14px;
}
.w-board-row[data-rank="1"] .w-board-rank { background: var(--w-accent, #c4b5fd); color: #1f1838; }
.w-board-row .w-avatar { width: 30px; height: 30px; font-size: 15px; }
.w-board-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.w-board-coins { display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--w-accent, #c4b5fd); font-weight: 900; font-variant-numeric: tabular-nums; }
.w-coin { width: 15px; height: 15px; flex: none; fill: #ffd36b; stroke: #b98a1f; stroke-width: 1.4; }
.w-coin .w-coin-inner { fill: none; stroke: #b98a1f; stroke-width: 1.4; }
.w-no-avatars .w-board-row .w-avatar, .w-no-avatars .w-step .w-avatar { display: none; }
/* Podium: 2 · 1 · 3 */
.w-podium { display: none; align-items: flex-end; justify-content: center; gap: 6px; flex: 0 0 auto; }
.w-board.is-podium .w-podium { display: flex; }
.w-step { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 31%; min-width: 0; font-size: 14px; }
.w-step .w-avatar { width: 44px; height: 44px; font-size: 20px; box-shadow: 0 0 0 2px var(--w-line, rgba(201, 193, 253, 0.28)); }
.w-step[data-rank="1"] .w-avatar { width: 54px; height: 54px; box-shadow: 0 0 0 3px var(--w-accent, #c4b5fd); }
.w-step-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.w-step-block {
  display: grid; place-items: center; width: 100%; height: 34px; border-radius: 14px 14px 6px 6px;
  background: var(--w-surface, rgba(18, 14, 48, 0.84)); box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28));
  color: var(--w-ink-dim, #c9c1fd); font-weight: 900; font-size: 18px;
}
.w-step[data-rank="1"] .w-step-block { height: 50px; background: var(--w-accent, #c4b5fd); color: #1f1838; box-shadow: none; }
.w-step[data-rank="2"] .w-step-block { height: 40px; }
.w-step.is-empty { opacity: 0.4; }

/* Board designs (founder, 2026-11-16): the first place carries a painted friend; cozy pastel plates, standard polished
   glass with gold, hype slanted neon plates. */
.w-board-row { position: relative; }
.w-step { position: relative; }
.w-board-friend { position: absolute; z-index: 2; pointer-events: none; object-fit: contain; }
.w-board-row .w-board-friend { width: 46px; height: 46px; right: -6px; top: -24px; }
.w-board-row[data-rank="1"] { padding-inline-end: 44px; }
.w-step .w-board-friend { width: 46px; height: 46px; left: 50%; top: -30px; margin-left: 4px; }
.w-board[data-design="cozy"] .w-board-friend { filter: drop-shadow(0 3px 4px rgba(4, 2, 24, 0.5)); animation: w-goal-ride 2.4s ease-in-out infinite; }
.w-board[data-design="cozy"] .w-board-row { background: linear-gradient(180deg, rgba(64, 48, 132, 0.9), rgba(32, 24, 78, 0.9)); box-shadow: inset 0 0 0 1.5px rgba(214, 200, 255, 0.4); }
.w-board[data-design="cozy"] .w-board-row[data-rank="1"] { box-shadow: inset 0 0 0 2px #ffb3d6, 0 0 18px -6px #ffb3d6; }
.w-board[data-design="cozy"] .w-board-row[data-rank="1"] .w-board-rank { background: #ffb3d6; }

.w-board[data-design="standard"] .w-board-title { background: linear-gradient(180deg, #fff1b8, #ffcf4d); color: #2b2310; }
.w-board[data-design="standard"] .w-board-row, .w-board[data-design="standard"] .w-step-block {
  border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.03) 55%), rgba(16, 16, 28, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.w-board[data-design="standard"] .w-board-row[data-rank="1"] { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 0 0 2px #ffcf4d, 0 0 16px -6px #ffcf4d; }
.w-board[data-design="standard"] .w-board-rank { border-radius: 8px; }
.w-board[data-design="standard"] .w-board-row[data-rank="1"] .w-board-rank, .w-board[data-design="standard"] .w-step[data-rank="1"] .w-step-block { background: linear-gradient(180deg, #fff1b8, #ffcf4d); color: #2b2310; }
.w-board[data-design="standard"] .w-board-row[data-rank="2"] .w-board-rank { background: linear-gradient(180deg, #f2f4f8, #b9c0cc); color: #22252e; }
.w-board[data-design="standard"] .w-board-row[data-rank="3"] .w-board-rank { background: linear-gradient(180deg, #f3c9a0, #c88a52); color: #2b1a0c; }
.w-board[data-design="standard"] .w-board-coins { color: #ffe08a; }
.w-board[data-design="standard"] .w-board-friend { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55)); animation: w-goal-twinkle 3s ease-in-out infinite; }

.w-board[data-design="hype"] .w-board-title { background: linear-gradient(90deg, #ff3dbb, #ff8a3d); color: #fff; font-style: italic; text-transform: uppercase; letter-spacing: 0.04em; box-shadow: 0 0 16px rgba(255, 61, 187, 0.8); }
.w-board[data-design="hype"] .w-board-row, .w-board[data-design="hype"] .w-step-block {
  border-radius: 6px; background: linear-gradient(100deg, #12062e, #2a0a4a); box-shadow: inset 0 0 0 1.5px rgba(255, 61, 187, 0.75), 0 0 10px -4px rgba(255, 61, 187, 0.8);
}
.w-board[data-design="hype"] .w-board-row { transform: skewX(-8deg); }
.w-board[data-design="hype"] .w-board-row > * { transform: skewX(8deg); }
.w-board[data-design="hype"] .w-board-row[data-rank="1"] { box-shadow: inset 0 0 0 2px #ffe14d, 0 0 18px rgba(255, 138, 61, 0.9); }
.w-board[data-design="hype"] .w-board-rank { border-radius: 4px; background: rgba(125, 249, 255, 0.18); color: #7df9ff; font-style: italic; }
.w-board[data-design="hype"] .w-board-row[data-rank="1"] .w-board-rank, .w-board[data-design="hype"] .w-step[data-rank="1"] .w-step-block { background: linear-gradient(90deg, #ff3dbb, #ff8a3d 65%, #ffe14d); color: #fff; }
.w-board[data-design="hype"] .w-board-name { font-style: italic; text-transform: uppercase; padding-inline-end: 0.2em; }
.w-board[data-design="hype"] .w-board-coins { color: #ffe14d; font-style: italic; text-shadow: 0 0 8px rgba(255, 138, 61, 0.9); }
.w-board[data-design="hype"] .w-board-friend { width: 56px; height: 56px; filter: drop-shadow(0 0 8px rgba(255, 138, 61, 0.9)); animation: w-goal-flicker 0.35s ease-in-out infinite alternate; }

/* Event list designs: cozy as before; standard polished glass; hype slanted neon. Painted signs in standard and hype. */
.w-feed-sign { width: 1.5em; height: 1.5em; flex: none; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.45)); }
.w-feed-list[data-design="standard"] .w-feed-row {
  border-radius: 12px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.03) 55%), rgba(16, 16, 28, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.w-feed-list[data-design="standard"] .w-avatar { box-shadow: 0 0 0 2px #ffcf4d; }
.w-feed-list[data-design="standard"] .w-feed-count { color: #ffcf4d; }
/* The slanted neon plate is a layer of its own, so the row can still slide in (its own transform). */
.w-feed-list[data-design="hype"] .w-feed-row { position: relative; isolation: isolate; background: none; box-shadow: none; }
.w-feed-list[data-design="hype"] .w-feed-row::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 6px; transform: skewX(-8deg); background: linear-gradient(100deg, #12062e, #2a0a4a); box-shadow: inset 0 0 0 1.5px rgba(255, 61, 187, 0.75), 0 0 10px -4px rgba(255, 61, 187, 0.8); }
.w-feed-list[data-design="hype"] .w-avatar { box-shadow: 0 0 0 2px #ff3dbb, 0 0 10px rgba(255, 61, 187, 0.8); }
.w-feed-list[data-design="hype"] .w-feed-name { font-style: italic; text-transform: uppercase; padding-inline-end: 0.2em; }
.w-feed-list[data-design="hype"] .w-feed-count { color: #ffe14d; font-style: italic; text-shadow: 0 0 8px rgba(255, 138, 61, 0.9); }
.w-feed-list[data-design="hype"] .w-feed-sign { filter: drop-shadow(0 0 6px rgba(255, 61, 187, 0.9)); }

/* ---------- Goal (goal.js) ---------- */

.w-goal {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: row; align-items: center; gap: 12px;
  padding: 10px 16px; border-radius: 28px; background: var(--w-surface, rgba(18, 14, 48, 0.84)); box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28));
}
.w-goal-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-width: 0; }
.w-goal.no-title .w-goal-top { display: none; }
.w-goal-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; font-size: 20px; line-height: 1.15; }
.w-goal-count { flex: none; color: var(--w-ink-dim, #c9c1fd); font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.w-goal-count[hidden] { display: none; }
.w-goal-track { position: relative; height: 22px; border-radius: 999px; background: rgba(201, 193, 253, 0.14); box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28)); overflow: hidden; }
.w-goal-fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: inherit; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--w-accent, #c4b5fd), #f4f1ff); transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.w-goal.is-full .w-goal-track { box-shadow: inset 0 0 0 1px var(--w-accent, #c4b5fd), 0 0 16px -2px var(--w-accent, #c4b5fd); }
.w-goal.is-reached { animation: w-goal-glow 1.2s ease; }
.w-goal-fx { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
@keyframes w-goal-glow { 30% { transform: scale(1.03); } 100% { transform: none; } }
.w-goal-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.w-goal-badge { display: none; flex: none; width: 50px; height: 50px; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(4, 2, 24, 0.6)); }
.w-goal-rail { position: relative; }
.w-goal-head { position: absolute; top: 50%; left: 0; width: 0; height: 0; pointer-events: none; transition: left 0.6s cubic-bezier(0.23, 1, 0.32, 1); }
.w-goal-head.is-empty { opacity: 0; }
.w-goal-rider { display: none; }

/* Cozy: soft pastel bar with a gloss, a painted Cozy Cloud riding the head of the fill, sparkles at the goal. */
.w-goal[data-design="cozy"] { border-radius: 30px; background: linear-gradient(180deg, rgba(58, 44, 120, 0.86), rgba(30, 22, 72, 0.86)); box-shadow: inset 0 0 0 1.5px rgba(214, 200, 255, 0.4), 0 10px 24px -14px rgba(4, 2, 24, 0.9); }
.w-goal[data-design="cozy"] .w-goal-track { height: 24px; background: rgba(12, 8, 40, 0.55); box-shadow: inset 0 2px 5px rgba(4, 2, 24, 0.6), inset 0 0 0 1px rgba(214, 200, 255, 0.22); }
.w-goal[data-design="cozy"] .w-goal-fill { background: linear-gradient(90deg, #ffb3d6, var(--w-accent, #c4b5fd) 60%, #a5d8ff); }
.w-goal[data-design="cozy"] .w-goal-fill::after { content: ""; position: absolute; left: 6px; right: 6px; top: 3px; height: 38%; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0)); }
.w-goal[data-design="cozy"] .w-goal-rider { display: block; position: absolute; width: 46px; height: 46px; left: -23px; top: -26px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(4, 2, 24, 0.55)); animation: w-goal-ride 2.4s ease-in-out infinite; }
@keyframes w-goal-ride { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-3px) rotate(4deg); } }

/* Standard: polished glass with a light rim, the painted badge of what is counted, a glossy bar, a painted golden star
   riding the head. Calm, fits any stream, but finished. */
.w-goal[data-design="standard"] {
  padding: 10px 18px 10px 12px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 55%), rgba(16, 16, 28, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 12px 26px -16px rgba(0, 0, 0, 0.9);
}
.w-goal[data-design="standard"] .w-goal-badge, .w-goal[data-design="hype"] .w-goal-badge { display: block; }
.w-goal[data-design="standard"] .w-goal-title { font-weight: 900; font-size: 19px; color: #fff; }
.w-goal[data-design="standard"] .w-goal-count { color: #ffe08a; font-weight: 900; font-size: 17px; }
.w-goal[data-design="standard"] .w-goal-track { height: 16px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.12); }
.w-goal[data-design="standard"] .w-goal-fill { background: linear-gradient(90deg, #fff1b8, #ffcf4d 55%, #f5a524); }
.w-goal[data-design="standard"] .w-goal-fill::after { content: ""; position: absolute; left: 5px; right: 5px; top: 2px; height: 40%; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0)); }
.w-goal[data-design="standard"] .w-goal-rider { display: block; position: absolute; width: 38px; height: 38px; left: -19px; top: -19px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55)); animation: w-goal-twinkle 3s ease-in-out infinite; }
.w-goal[data-design="standard"].is-full .w-goal-track { box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6), 0 0 14px rgba(255, 207, 77, 0.6); }
@keyframes w-goal-twinkle { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(8deg) scale(1.08); } }

/* Hype: slanted, a neon edge that pulses, the painted badge, stripes running through a burning fill, a painted fireball
   with a lightning bolt riding the head and throwing sparks, a shake at the goal. */
.w-goal[data-design="hype"] {
  padding: 10px 22px 10px 14px; border-radius: 8px; transform: skewX(-9deg); background: linear-gradient(100deg, #12062e, #2a0a4a 60%, #3a0c3c);
  box-shadow: inset 0 0 0 2px #ff3dbb, 0 0 18px -2px rgba(255, 61, 187, 0.8), 0 0 40px -8px rgba(0, 229, 255, 0.6); animation: w-goal-neon 1.4s ease-in-out infinite alternate;
}
.w-goal[data-design="hype"] .w-goal-body, .w-goal[data-design="hype"] .w-goal-badge { transform: skewX(9deg); }
.w-goal[data-design="hype"] .w-goal-badge { width: 54px; height: 54px; filter: drop-shadow(0 0 8px rgba(255, 61, 187, 0.9)) drop-shadow(0 3px 4px rgba(0, 0, 0, 0.6)); }
.w-goal[data-design="hype"] .w-goal-title { font-style: italic; font-weight: 1000; font-size: 22px; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; text-shadow: 0 0 10px rgba(255, 61, 187, 0.95), 0 0 2px #fff, 0 2px 0 #7a0f5c; }
.w-goal[data-design="hype"] .w-goal-count { font-style: italic; font-weight: 1000; font-size: 20px; color: #7df9ff; text-shadow: 0 0 10px rgba(0, 229, 255, 0.9), 0 2px 0 #0b3e57; }
.w-goal[data-design="hype"] .w-goal-track { height: 22px; border-radius: 4px; background: rgba(0, 0, 0, 0.45); box-shadow: inset 0 0 0 1px rgba(125, 249, 255, 0.4), inset 0 2px 5px rgba(0, 0, 0, 0.6); }
.w-goal[data-design="hype"] .w-goal-fill {
  border-radius: 4px; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.24) 0 10px, rgba(255, 255, 255, 0) 10px 22px), linear-gradient(90deg, #ff3dbb, #ff8a3d 65%, #ffe14d);
  background-size: 44px 100%, 100% 100%; animation: w-goal-stripes 0.7s linear infinite; box-shadow: 0 0 14px rgba(255, 138, 61, 0.8);
}
.w-goal[data-design="hype"] .w-goal-rider { display: block; position: absolute; width: 62px; height: 62px; left: -40px; top: -33px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(255, 138, 61, 0.9)); animation: w-goal-flicker 0.35s ease-in-out infinite alternate; }
.w-goal[data-design="hype"].is-full .w-goal-track { box-shadow: inset 0 0 0 1px #ffe14d, 0 0 20px #ff8a3d; }
.w-goal[data-design="hype"].is-reached { animation: w-goal-shake 0.6s ease, w-goal-neon 1.4s ease-in-out infinite alternate; }
@keyframes w-goal-stripes { to { background-position: 44px 0, 0 0; } }
@keyframes w-goal-flicker { from { transform: scale(0.96) rotate(-2deg); } to { transform: scale(1.05) rotate(2deg); } }
@keyframes w-goal-neon { from { box-shadow: inset 0 0 0 2px #ff3dbb, 0 0 14px -2px rgba(255, 61, 187, 0.7), 0 0 34px -8px rgba(0, 229, 255, 0.5); } to { box-shadow: inset 0 0 0 2px #ff7ad4, 0 0 24px 0 rgba(255, 61, 187, 0.95), 0 0 50px -6px rgba(0, 229, 255, 0.8); } }
@keyframes w-goal-shake { 0%, 100% { transform: skewX(-9deg); } 20% { transform: skewX(-9deg) translate(-5px, 2px); } 40% { transform: skewX(-9deg) translate(5px, -2px); } 60% { transform: skewX(-9deg) translate(-3px, 1px); } 80% { transform: skewX(-9deg) translate(2px, 0); } }
/* ---------- Picture goal (picture-goal.js, stage 5e) ---------- */

.w-pg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; }
.w-pg-art { position: relative; flex: none; filter: drop-shadow(0 10px 14px rgba(4, 2, 24, 0.4)); }
.w-pg-art img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }
.w-pg-full { -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.w-pg.is-full .w-pg-art { filter: drop-shadow(0 10px 14px rgba(4, 2, 24, 0.4)) drop-shadow(0 0 18px rgba(255, 220, 160, 0.45)); }
.w-pg.is-reached .w-pg-art { animation: w-pg-reach 1.3s cubic-bezier(0.2, 0.8, 0.3, 1); }
.w-pg-label {
  display: flex; align-items: baseline; justify-content: center; gap: 10px; max-width: 100%; min-width: 0; padding: 7px 16px; border-radius: 999px;
  background: var(--w-surface, rgba(18, 14, 48, 0.84)); box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28));
}
.w-pg-label[hidden], .w-pg-title[hidden], .w-pg-count[hidden] { display: none; }
.w-pg-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; font-size: 19px; line-height: 1.15; }
.w-pg-count { flex: none; color: var(--w-ink-dim, #c9c1fd); font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.w-pg-fx { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
@keyframes w-pg-reach { 25% { transform: scale(1.06); } 55% { transform: scale(0.98); } 100% { transform: none; } }

/* ---------- Popup with a character (figure-popup.js, stage 5e) ---------- */

.w-pop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.w-pop-card { position: absolute; left: 50%; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: translateX(-50%); opacity: 0; }
.w-pop-card.is-sample { opacity: 1; }
.w-pop-stage { position: relative; flex: none; }
.w-pop-art { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(4, 2, 24, 0.45)); }
.w-pop-face { position: relative; display: block; flex: none; width: 100%; height: 100%; }
.w-pop-face .w-avatar { display: block; width: 100%; height: 100%; font-size: 26px; box-shadow: 0 0 0 3px #f4f1ff; }
.w-pop-face .w-avatar-letter { font-size: 1.6em; }
.w-pop-gift { position: absolute; right: -14%; bottom: -10%; width: 52%; height: 52%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(4, 2, 24, 0.5)); }
.w-pop-words { display: flex; flex-direction: column; align-items: center; min-width: 0; max-width: 100%; text-align: center; line-height: 1.15; }
.w-pop-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; font-size: 26px; color: #fff; text-shadow: 0 2px 0 rgba(31, 24, 56, 0.6), 0 0 10px rgba(31, 24, 56, 0.6); }
.w-pop-action { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; font-size: 18px; color: #ffe7a3; text-shadow: 0 2px 0 rgba(31, 24, 56, 0.6), 0 0 8px rgba(31, 24, 56, 0.6); }

/* Joy's sign: picture and words on the painted wood, in dark ink. */
.w-pop-plate { position: absolute; display: flex; align-items: center; gap: 8%; padding: 0 7%; box-sizing: border-box; }
.w-pop-plate .w-pop-face { width: auto; height: 62%; aspect-ratio: 1; }
.w-pop-plate .w-pop-words { align-items: flex-start; text-align: start; flex: 1; }
.w-pop-plate .w-pop-name { font-size: 21px; color: #3a2414; text-shadow: none; }
.w-pop-plate .w-pop-action { font-size: 15px; color: #6b4426; text-shadow: none; }
.w-pop-hole { position: absolute; }
.w-pop-hole .w-pop-face .w-avatar { box-shadow: none; }
.w-pop-card[data-style="impact"] .w-pop-hole .w-pop-face .w-avatar { box-shadow: 0 0 0 4px #fff; }
.w-pop-card[data-style="joyStocking"] .w-pop-hole .w-pop-face .w-avatar { box-shadow: 0 0 0 4px #fff, 0 0 0 7px #ffd36b; }
.w-pop-card[data-style="joyStocking"].is-in { animation-name: w-pop-jump; animation-duration: 0.6s; }

/* Impact: speed lines behind a comic burst, a big word over it. */
.w-pop-lines {
  position: absolute; left: 50%; top: 50%; width: 170%; height: 170%; transform: translate(-50%, -50%); border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 255, 255, 0.55) 0deg 2deg, transparent 2deg 9deg);
  -webkit-mask-image: radial-gradient(closest-side, transparent 38%, #000 52%, transparent 100%); mask-image: radial-gradient(closest-side, transparent 38%, #000 52%, transparent 100%);
}
.w-pop-boom {
  position: absolute; left: 50%; top: 4%; transform: translateX(-50%) rotate(-8deg); white-space: nowrap; font-weight: 900; font-size: 56px; letter-spacing: 0.02em;
  color: #fff3c4; -webkit-text-stroke: 3px #3b2a74; paint-order: stroke fill; text-shadow: 0 4px 0 #3b2a74;
}
.w-pop-card[data-style="impact"].is-in .w-pop-stage { animation: w-pop-shake 0.5s 0.12s ease-out; }

/* Share: the picture with a paper plane circling it. */
.w-pop-orbit { position: relative; width: 170px; height: 170px; margin: 36px 0 64px; display: flex; align-items: center; justify-content: center; }  /* room for the plane's circle above and below */
.w-pop-orbit .w-pop-face { width: 120px; height: 120px; }
.w-pop-ring { position: absolute; inset: -30px; animation: w-pop-orbit 2.6s linear infinite; }
.w-pop-plane { position: absolute; left: 50%; top: 0; transform: translate(-50%, -30%) rotate(8deg); filter: drop-shadow(0 6px 8px rgba(4, 2, 24, 0.45)); }

/* In and out: Joy jumps up from below, the cloud floats in, the burst slams in, the plane card pops. */
.w-pop-card.is-in { opacity: 1; animation: w-pop-pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.w-pop-card[data-style="joySign"].is-in { animation-name: w-pop-jump; animation-duration: 0.6s; }
.w-pop-card[data-style="cloudFrame"].is-in { animation-name: w-pop-float; animation-duration: 0.8s; animation-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1); }
.w-pop-card[data-style="impact"].is-in { animation-name: w-pop-slam; animation-duration: 0.35s; animation-timing-function: cubic-bezier(0.3, 1.6, 0.5, 1); }
.w-pop-card.is-sample { animation: none; }
.w-pop-card.is-out { opacity: 1; animation: none; }
@keyframes w-pop-pop { from { opacity: 0; transform: translateX(-50%) scale(0.6); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes w-pop-jump { 0% { opacity: 0; transform: translate(-50%, 80%); } 55% { opacity: 1; transform: translate(-50%, -8%); } 78% { transform: translate(-50%, 3%); } 100% { opacity: 1; transform: translate(-50%, 0); } }
@keyframes w-pop-float { from { opacity: 0; transform: translate(-80%, 10px) rotate(-6deg); } to { opacity: 1; transform: translate(-50%, 0) rotate(0); } }
@keyframes w-pop-slam { from { opacity: 0; transform: translateX(-50%) scale(1.8); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes w-pop-shake { 0%, 100% { transform: none; } 20% { transform: translate(-6px, 3px) rotate(-1.5deg); } 40% { transform: translate(5px, -3px) rotate(1deg); } 60% { transform: translate(-3px, 2px); } 80% { transform: translate(2px, -1px); } }
@keyframes w-pop-orbit { to { transform: rotate(360deg); } }

/* ---------- Camera frame (camera-frame.js, stage 5f) ---------- */

.w-cam { position: absolute; top: 0; left: 0; width: 100%; height: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
/* The border is as wide as the painted band, so things placed in the frame (Joy) line up with what one sees. */
.w-cam-frame { position: relative; flex: 1 1 auto; min-height: 0; border-style: solid; border-color: transparent; border-width: var(--w-cam-band, 60px); filter: drop-shadow(0 8px 14px rgba(4, 2, 24, 0.45)); }
/* Animated frames (frame-motion.js): the canvas reaches 28 px beyond the frame for glow and drifting pieces. A neon line
   brings its own light, so it gets no shadow (a filter over a moving canvas also costs every frame). */
.w-cam-fx { position: absolute; left: calc((var(--w-cam-band, 60px) + var(--w-cam-bleed, 28px)) * -1); top: calc((var(--w-cam-band, 60px) + var(--w-cam-bleed, 28px)) * -1); pointer-events: none; }   /* bleed: frame-motion.js */
.w-cam[data-plate="neon"] .w-cam-frame { filter: none; }
.w-cam-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; flex: none; min-height: var(--w-cam-plate, 56px); align-content: flex-start; }
.w-cam-names[hidden] { display: none; }
.w-cam-plate {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-width: 0; padding: 6px 14px 6px 8px; border-radius: 999px;
  font-weight: 900; font-size: 17px; line-height: 1.2; color: #f4f1ff;
}
.w-cam-plate .w-rot-sign { width: 24px; height: 24px; }
.w-cam-handle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-cam-note { padding-inline-start: 14px; }
.w-cam[data-plate="cozy"] .w-cam-plate { background: linear-gradient(180deg, rgba(64, 48, 132, 0.92), rgba(32, 24, 78, 0.92)); box-shadow: inset 0 0 0 1.5px rgba(214, 200, 255, 0.5); }
.w-cam[data-plate="cozy"] .w-rot-sign { fill: #ffd0e6; }
.w-cam[data-plate="standard"] .w-cam-plate {
  border-radius: 12px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 55%), rgba(16, 16, 28, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.w-cam[data-plate="standard"] .w-rot-sign { fill: #ffcf4d; }
.w-cam[data-plate="hype"] .w-cam-plate { border-radius: 6px; background: linear-gradient(100deg, #12062e, #2a0a4a); box-shadow: inset 0 0 0 1.5px #ff3dbb, 0 0 12px -2px rgba(255, 61, 187, 0.8); font-style: italic; text-transform: uppercase; }
.w-cam[data-plate="hype"] .w-rot-sign { fill: #7df9ff; filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.9)); }
.w-cam[data-plate="hype"] .w-cam-handle { padding-inline-end: 0.15em; }   /* the slanted last letter is not cut */
.w-cam[data-design="hype"] .w-cam-frame { animation: w-cam-neon 1.4s ease-in-out infinite alternate; }
.w-cam[data-calm] .w-cam-frame { animation: none; }   /* motion off, or "on events" between two events (camera-frame.js) */
/* Plates of the other looks; Joy on the top edge of her frame (her baseline on the middle of the band). */
.w-cam[data-plate="neon"] { --w-neon: 180, 124, 255; }
.w-cam[data-glow="pink"] { --w-neon: 255, 79, 214; }
.w-cam[data-glow="sky"] { --w-neon: 47, 216, 255; }
.w-cam[data-glow="mint"] { --w-neon: 53, 255, 158; }
.w-cam[data-glow="yellow"] { --w-neon: 255, 210, 63; }
.w-cam[data-plate="neon"] .w-cam-plate { background: rgba(10, 6, 24, 0.86); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(var(--w-neon), 0.95), 0 0 14px -2px rgba(var(--w-neon), 0.85); text-shadow: 0 0 8px rgba(var(--w-neon), 0.9); }
.w-cam[data-plate="neon"] .w-rot-sign { fill: rgb(var(--w-neon)); filter: drop-shadow(0 0 4px rgba(var(--w-neon), 0.9)); }
.w-cam[data-plate="neon"]:is([data-glow="rainbow"], [data-glow="mixed"]) .w-cam-plate { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85), 0 0 14px -2px rgba(255, 79, 214, 0.7), 0 0 22px -6px rgba(47, 216, 255, 0.7); }
/* Name plates of the animated painted frames (2026-11-23): each in the colours of its frame. */
.w-cam[data-plate="raven"] .w-cam-plate { background: linear-gradient(180deg, rgba(34, 28, 46, 0.94), rgba(14, 11, 22, 0.94)); color: #ece6ff; box-shadow: inset 0 0 0 1.5px rgba(176, 160, 214, 0.55), 0 0 14px -4px rgba(150, 110, 255, 0.6); }
.w-cam[data-plate="raven"] .w-rot-sign { fill: #c4b5fd; }
.w-cam[data-plate="snow"] .w-cam-plate { background: linear-gradient(180deg, #f4fbff, #d6ecfa); color: #1e4763; box-shadow: inset 0 0 0 1.5px #a9d6f2, 0 6px 14px -8px rgba(4, 2, 24, 0.6); }
.w-cam[data-plate="snow"] .w-rot-sign { fill: #3b8fc4; }
.w-cam[data-plate="crimson"] .w-cam-plate { background: linear-gradient(180deg, rgba(30, 6, 10, 0.95), rgba(12, 2, 4, 0.95)); color: #ffe4e6; box-shadow: inset 0 0 0 1.5px rgba(220, 38, 60, 0.85), 0 0 14px -3px rgba(220, 38, 60, 0.7); }
.w-cam[data-plate="crimson"] .w-rot-sign { fill: #ff4d63; }
.w-cam[data-plate="forest"] .w-cam-plate { background: linear-gradient(180deg, #5b3a22, #3d2614); color: #f3ead8; box-shadow: inset 0 0 0 1.5px #8fbf5a, 0 6px 14px -8px rgba(4, 2, 24, 0.6); }
.w-cam[data-plate="forest"] .w-rot-sign { fill: #a8e06a; }
.w-cam[data-plate="sakura"] .w-cam-plate { background: linear-gradient(180deg, #fff3f7, #ffd9e6); color: #6b2c48; box-shadow: inset 0 0 0 1.5px #f39ab8, 0 6px 14px -8px rgba(4, 2, 24, 0.6); }
.w-cam[data-plate="sakura"] .w-rot-sign { fill: #e0568a; }
.w-cam[data-plate="sweet"] .w-cam-plate { background: linear-gradient(180deg, #fff6e3, #ffe2b8); color: #6a3d1a; box-shadow: inset 0 0 0 2px #f2b46b, 0 6px 14px -8px rgba(4, 2, 24, 0.6); }
.w-cam[data-plate="sweet"] .w-rot-sign { fill: #ff7aa8; }
.w-cam[data-plate="military"] .w-cam-plate { border-radius: 4px; background: linear-gradient(180deg, #3a3f44, #23272b); color: #d9f99d; box-shadow: inset 0 0 0 1.5px #6b7280, inset 0 0 0 3px #1b1e21, 0 0 10px -4px rgba(132, 255, 92, 0.6); text-transform: uppercase; letter-spacing: 0.04em; }
.w-cam[data-plate="military"] .w-rot-sign { fill: #84ff5c; }
.w-cam[data-plate="pixel"] .w-cam-plate { border-radius: 0; background: #1d4ed8; color: #fff; box-shadow: 0 0 0 3px #0b1a4a, inset 0 0 0 3px #93c5fd, 4px 4px 0 0 #0b1a4a; font-family: "Courier New", monospace; font-weight: 900; }
.w-cam[data-plate="pixel"] .w-rot-sign { fill: #fde047; }
.w-cam-joy { position: absolute; left: 50%; top: calc(var(--w-cam-band, 60px) * -0.45); width: 161px; aspect-ratio: 676 / 768; transform: translate(-50%, -98.9%); pointer-events: none; }
.w-cam-joy[hidden] { display: none; }
.w-cam[data-design="camJoy"] { padding-top: calc(109px - var(--w-cam-band, 60px) * 0.45); }   /* room for Joy inside the element */
/* Joy in design px (2026-11-26): the frame is laid out at 420 wide or wider and scaled as one picture (kit.js scaleAsOne),
   so her size is the one she had at 420 (52 % of the inner width, 26 % for the room above) and shrinks with the frame. */
.w-cam-joy-pic { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(4, 2, 24, 0.5)); }
.w-cam[data-plate="xmas"] .w-cam-plate { background: linear-gradient(180deg, #b4182c, #7e0f1f); color: #fff6e6; box-shadow: inset 0 0 0 2px #e8b04b, 0 6px 14px -8px rgba(4, 2, 24, 0.6); }
.w-cam[data-plate="xmas"] .w-rot-sign { fill: #ffd36b; }
.w-cam[data-plate="merry"] .w-cam-plate { background: linear-gradient(180deg, #c81e34, #8a1022); color: #fff6e6; box-shadow: inset 0 0 0 2px #e8b04b, 0 0 10px -2px rgba(110, 232, 190, 0.7), 0 6px 14px -8px rgba(4, 2, 24, 0.6); }
.w-cam[data-plate="merry"] .w-rot-sign { fill: #ffd36b; }
@keyframes w-cam-neon { from { filter: drop-shadow(0 0 6px rgba(255, 61, 187, 0.6)); } to { filter: drop-shadow(0 0 16px rgba(255, 61, 187, 0.95)) drop-shadow(0 0 24px rgba(0, 229, 255, 0.5)); } }

/* ---------- Santa's sleigh (santa-sleigh.js, Christmas) ---------- */

.w-sleigh { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.w-sleigh-drops { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; }
.w-sleigh-rider { position: absolute; left: 0; top: 0; width: 460px; height: 225px; transform: translate(-500px, 70px); will-change: transform; }
/* The gallop's drawings lie on top of each other; only the one with .is-on is seen (switching costs nothing). The shadow
   sits on the stack, so it is drawn once and does not flicker with the steps. */
.w-sleigh-art { position: absolute; top: 0; left: 0; width: 100%; height: 100%; filter: drop-shadow(0 10px 12px rgba(4, 2, 24, 0.45)); }
.w-sleigh-pic { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; object-fit: contain; visibility: hidden; }
.w-sleigh-pic.is-on { visibility: visible; }
.w-sleigh-call {
  position: absolute; left: 4%; top: -14%; padding: 4px 14px; border-radius: 999px; background: #fff; color: #c8102e; font-weight: 1000; font-size: 22px;
  white-space: nowrap; box-shadow: 0 6px 14px -6px rgba(4, 2, 24, 0.6); opacity: 0; transform: scale(0.6) rotate(-6deg); transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.w-sleigh-rider.is-calling .w-sleigh-call { opacity: 1; transform: scale(1) rotate(-6deg); }
.w-sleigh-name {
  position: absolute; left: 12%; bottom: -12%; max-width: 70%; padding: 3px 12px; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: linear-gradient(180deg, #d61f3a, #a3122a); color: #fff; font-weight: 900; font-size: 17px; box-shadow: inset 0 0 0 2px #ffd36b;
}
.w-sleigh-name[hidden] { display: none; }

/* ---------- Bell garland (bell-garland.js, Christmas) ---------- */

.w-bells { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.w-bells-garland { position: absolute; left: -2%; top: 0; width: 104%; height: 64px; object-fit: fill; z-index: 2; filter: drop-shadow(0 6px 8px rgba(4, 2, 24, 0.45)); }
.w-bells-row { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.w-bells-bell { position: absolute; width: 72px; height: 90px; transform-origin: 50% -12px; animation: w-bells-sway 3.2s ease-in-out infinite; }
.w-bells-string { position: absolute; left: 50%; bottom: 100%; width: 3px; margin-left: -1.5px; border-radius: 2px; background: linear-gradient(#b8892a, #ffd36b); }
.w-bells-pic { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(4, 2, 24, 0.45)); }
.w-bells-fx { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 3; overflow: visible; }
@keyframes w-bells-sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }

/* ---------- Snowfall (snowfall.js, Christmas) ---------- */

.w-snow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.w-snow .w-particle { filter: drop-shadow(0 0 3px rgba(200, 225, 255, 0.55)); }

/* ---------- Reindeer peeking in (reindeer-peek.js, Christmas) ---------- */

.w-deer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.w-deer-body { position: absolute; bottom: -8px; left: 262px;   /* the flat cut stays below the edge, also when it tilts */ width: 276px; height: 280px; transform: translateY(102%); transform-origin: 50% 100%; will-change: transform; }
/* The painted steps lie on top of each other; only .is-on is seen. */
.w-deer-pic { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; visibility: hidden; }
.w-deer-pic.is-on { visibility: visible; }
.w-deer-name {
  position: absolute; left: 50%; bottom: 9%; max-width: 92%; padding: 3px 12px; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transform: translateX(-50%); background: linear-gradient(180deg, #d61f3a, #a3122a); color: #fff; font-weight: 900; font-size: 19px;
  box-shadow: inset 0 0 0 2px #ffd36b, 0 6px 12px -6px rgba(4, 2, 24, 0.6);
}
.w-deer-name[hidden] { display: none; }
.w-deer-fx { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; }

/* ---------- Gingerbread run (gingerbread-run.js, Christmas) ---------- */

.w-ginger { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: hidden; }
.w-ginger-fx { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; }
.w-ginger-runner { position: absolute; left: 0; bottom: 6px; width: 145px; height: 210px; transform: translateX(-180px); will-change: transform; }
.w-ginger-body { position: absolute; left: 0; bottom: 0; width: 145px; height: 160px; }
/* The run's drawings lie on top of each other; only .is-on is seen. The shadow sits on the body, drawn once. */
.w-ginger-body { filter: drop-shadow(0 8px 8px rgba(4, 2, 24, 0.45)); }
.w-ginger-pic { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; object-fit: contain; visibility: hidden; }
.w-ginger-pic.is-on { visibility: visible; }
.w-ginger-name {
  position: absolute; left: 50%; top: 0; max-width: 260px; padding: 3px 12px; border-radius: 999px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transform: translateX(-50%); background: linear-gradient(180deg, #d61f3a, #a3122a); color: #fff; font-weight: 900; font-size: 18px;
  box-shadow: inset 0 0 0 2px #ffd36b, 0 6px 12px -6px rgba(4, 2, 24, 0.6);
}
.w-ginger-name[hidden] { display: none; }

/* ---------- Advent calendar (advent-calendar.js, Christmas) ---------- */

.w-advent { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.w-advent-board { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(4, 2, 24, 0.5)); }
/* The window of the frame: a warm lit room behind the doors; the board is drawn on top, so its edge covers the grid's. */
.w-advent-grid {
  position: absolute; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(3, 1fr); gap: 3px; padding: 4px;
  background: radial-gradient(ellipse at 50% 40%, #6a3a1e, #3a1d0e); box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.6);
}
.w-advent-cell { position: relative; perspective: 260px; min-width: 0; min-height: 0; }
.w-advent-behind {
  position: absolute; inset: 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 8px;
  background: radial-gradient(circle at 50% 40%, #ffe7a3, #f5b84a 70%, #c9822a); box-shadow: inset 0 0 8px rgba(120, 60, 0, 0.6);
}
.w-advent-behind .w-avatar { width: 62%; height: auto; aspect-ratio: 1; font-size: 18px; box-shadow: 0 0 0 2px #fff; }
.w-advent-name { max-width: 96%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #3a1c06; font-weight: 900; font-size: 9px; line-height: 1.1; }
.w-advent-name[hidden] { display: none; }
.w-advent-door { position: absolute; inset: 0; transform-origin: 0 50%; transition: transform 0.8s cubic-bezier(0.3, 1.2, 0.5, 1); backface-visibility: hidden; z-index: 1; }
.w-advent-door-pic { display: block; width: 100%; height: 100%; object-fit: contain; }
.w-advent-num { position: absolute; left: 0; right: 4%; top: 18%; bottom: 4%; display: grid; place-items: center; color: #fff3d6; font-weight: 1000; font-size: 20px; text-shadow: 0 2px 0 #7a0f1f, 0 0 6px rgba(0, 0, 0, 0.4); }
.w-advent-cell.is-open .w-advent-door { transform: rotateY(-108deg); }
.w-advent-cell:not(.is-open) .w-advent-behind { visibility: hidden; }
.w-advent-cell.is-opening .w-advent-behind { animation: w-advent-glow 0.9s ease; }
.w-advent.is-full .w-advent-behind { box-shadow: inset 0 0 8px rgba(120, 60, 0, 0.6), 0 0 10px rgba(255, 211, 107, 0.8); }
.w-advent-fx { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
@keyframes w-advent-glow { from { filter: brightness(1.6); } to { filter: none; } }
@media (prefers-reduced-motion: reduce) { .w-advent-door { transition: none; } }

/* ---------- Christmas design of gift alert, goal bar and leaderboard ("xmas") ---------- */

/* Gift alert: a deep red card with a golden inner line, the painted snowman waves from the corner. */
.w-alert-card[data-design="xmas"] {
  background: linear-gradient(180deg, rgba(178, 24, 48, 0.94), rgba(112, 10, 30, 0.94));
  box-shadow: inset 0 0 0 2px rgba(255, 211, 107, 0.85), inset 0 0 0 5px rgba(255, 255, 255, 0.18), 0 12px 28px -12px rgba(4, 2, 24, 0.8);
}
.w-alert-card[data-design="xmas"] .w-alert-corner { width: 92px; height: 92px; right: -20px; top: -40px; filter: drop-shadow(0 4px 6px rgba(4, 2, 24, 0.5)); animation: w-goal-ride 2.4s ease-in-out infinite; }
.w-alert-card[data-design="xmas"] .w-avatar { box-shadow: 0 0 0 4px #fff, 0 0 0 7px #1f7a3a; }
.w-alert-card[data-design="xmas"] .w-alert-title { color: #ffd36b; }
.w-alert-card[data-design="xmas"] .w-alert-gift { color: rgba(255, 255, 255, 0.86); }
.w-alert-card[data-design="xmas"] .w-alert-count { color: #ffd36b; }

/* Goal bar: a candy-cane track in red and white stripes, the painted candy cane rides on the head. */
.w-goal[data-design="xmas"] { border-radius: 26px; background: linear-gradient(180deg, rgba(31, 92, 52, 0.9), rgba(16, 58, 32, 0.9)); box-shadow: inset 0 0 0 2px rgba(255, 211, 107, 0.7), 0 10px 24px -14px rgba(4, 2, 24, 0.9); }
.w-goal[data-design="xmas"] .w-goal-title { color: #fff; font-weight: 900; }
.w-goal[data-design="xmas"] .w-goal-count { color: #ffd36b; font-weight: 900; }
.w-goal[data-design="xmas"] .w-goal-track { height: 22px; background: rgba(8, 30, 16, 0.6); box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
/* The stripes would be squeezed by the usual scaleX: here the full-width fill is cut at the share instead. */
.w-goal[data-design="xmas"] .w-goal-fill {
  transform: none !important; background: repeating-linear-gradient(-45deg, #e3263f 0 12px, #fff7f2 12px 24px);
  clip-path: inset(0 calc(100% - var(--w-goal-share, 0) * 100%) 0 0 round 999px); transition: clip-path 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.w-goal[data-design="xmas"] .w-goal-fill::after { content: ""; position: absolute; left: 6px; right: 6px; top: 3px; height: 36%; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0)); }
.w-goal[data-design="xmas"] .w-goal-rider { display: block; position: absolute; width: 22px; height: 40px; left: -11px; top: -16px; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(4, 2, 24, 0.55)); animation: w-goal-ride 2.4s ease-in-out infinite; }
.w-goal[data-design="xmas"].is-full .w-goal-track { box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.55), 0 0 14px rgba(255, 211, 107, 0.7); }

/* Leaderboard: green and red plates with gold, every profile picture inside a painted bauble.
   The bauble's hole (measured): centre at 49.85 % / 58.87 % of the picture, 70.6 % of its width across. The ring is drawn
   so that the hole is a little smaller than the picture, which then sits under the ring's inner edge. */
.w-bauble { position: relative; display: inline-flex; flex: none; }
.w-bauble-ring { position: absolute; z-index: 1; width: 137.4%; height: 170.2%; left: -18.5%; top: -50.2%; pointer-events: none; object-fit: fill; filter: drop-shadow(0 2px 3px rgba(4, 2, 24, 0.45)); }
.w-board[data-design="xmas"] .w-avatar { box-shadow: none; }
.w-board[data-design="xmas"] .w-board-title { background: linear-gradient(180deg, #d61f3a, #a3122a); color: #fff; box-shadow: inset 0 0 0 2px #ffd36b; }
.w-board[data-design="xmas"] .w-board-row, .w-board[data-design="xmas"] .w-step-block {
  background: linear-gradient(180deg, rgba(31, 92, 52, 0.92), rgba(16, 58, 32, 0.92)); box-shadow: inset 0 0 0 1.5px rgba(255, 211, 107, 0.55);
}
.w-board[data-design="xmas"] .w-board-row { margin-top: 4px; }
.w-board[data-design="xmas"] .w-board-row[data-rank="1"] { box-shadow: inset 0 0 0 2px #ffd36b, 0 0 18px -6px #ffd36b; }
.w-board[data-design="xmas"] .w-board-rank { background: #a3122a; color: #fff; }
.w-board[data-design="xmas"] .w-board-row[data-rank="1"] .w-board-rank, .w-board[data-design="xmas"] .w-step[data-rank="1"] .w-step-block { background: linear-gradient(180deg, #ffe7a3, #ffc93d); color: #3a1c06; }
.w-board[data-design="xmas"] .w-board-coins { color: #ffd36b; }
.w-board[data-design="xmas"] .w-step .w-avatar { width: 36px; height: 36px; font-size: 17px; }
.w-board[data-design="xmas"] .w-step[data-rank="1"] .w-avatar { width: 42px; height: 42px; font-size: 20px; }

/* Event list (2026-11-19): red and green rows in turn with a golden line, the profile picture in the painted bauble, the
   painted signs, golden numbers. The bauble's cap reaches above the row (the rows leave room for it). */
.w-feed-list[data-design="xmas"] { gap: 9px; padding-top: 0.45em; }
.w-feed-list[data-design="xmas"] .w-feed-row {
  background: linear-gradient(180deg, rgba(196, 30, 56, 0.94), rgba(128, 12, 34, 0.94)); box-shadow: inset 0 0 0 1.5px rgba(255, 211, 107, 0.75);
  height: calc((100% - (var(--w-rows, 5) - 1) * 9px) / var(--w-rows, 5)); color: #fff;
}
.w-feed-list[data-design="xmas"] .w-feed-row:nth-child(even) { background: linear-gradient(180deg, rgba(36, 104, 60, 0.94), rgba(18, 64, 36, 0.94)); }
.w-feed-list[data-design="xmas"] .w-avatar { box-shadow: none; }
.w-feed-list[data-design="xmas"] .w-feed-detail { color: rgba(255, 255, 255, 0.86); }
.w-feed-list[data-design="xmas"] .w-feed-count { color: #ffd36b; }
.w-board[data-design="xmas"].is-podium .w-podium { padding-top: 24px; }
.w-board[data-design="xmas"] .w-step .w-bauble { margin-bottom: 2px; }
.w-board[data-design="xmas"] .w-step .w-board-friend { margin-left: 22px; top: -26px; }
.w-board[data-design="xmas"] .w-board-friend { width: 50px; height: 56px; top: -32px; filter: drop-shadow(0 3px 4px rgba(4, 2, 24, 0.5)); animation: w-goal-ride 2.4s ease-in-out infinite; }

/* ---------- Top likers (gift-leaderboard.js with "likers") ---------- */

.w-coin.w-heart { fill: #ff8fb8; stroke: none; }

/* ---------- Chat (chat.js) ---------- */

.w-chat { padding: 4px; overflow: hidden; }
.w-chat-list {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 100%; margin: 0; padding: 0; list-style: none;
  font-size: var(--w-text, 18px); overflow: hidden;
}
.w-chat-row { display: flex; align-items: flex-start; gap: 0.5em; flex: none; min-width: 0; }
.w-chat-row .w-avatar { margin-top: 0.15em; }
.w-chat-bubble {
  min-width: 0; padding: 0.35em 0.75em 0.4em; border-radius: 1em; line-height: 1.3; overflow-wrap: anywhere;
  background: var(--w-surface, rgba(18, 14, 48, 0.84)); box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28));
}
/* Name and text each keep their own direction: a Latin name before a Latin message on a right-to-left page would
   otherwise merge into one run ("LucasGG") with the gap outside. */
.w-chat-name { margin-inline-end: 0.45em; color: var(--w-accent, #c4b5fd); font-weight: 900; unicode-bidi: isolate; }
.w-chat-name.is-mod::before { content: "🛡 "; }
.w-chat-text { color: var(--w-ink, #f4f1ff); font-weight: 600; unicode-bidi: isolate; }
/* Platform of a row in chat and event lists (U-12 E9): the name as a word on our own small colour mark, no logo;
   Twitch emotes as pictures in the line (E10), the height of the text. Sizes in em: they follow the element's text. */
.w-plat {
  display: inline-block; margin-inline-end: 0.4em; padding: 0.1em 0.45em; border-radius: 0.5em; vertical-align: 0.08em;
  font-size: 0.68em; font-weight: 800; line-height: 1.2; letter-spacing: 0.01em; color: #120e30; background: #90c5fb;
}
.w-plat-twitch { background: #c4b5fd; }
.w-plat-youtube { background: #ff8b7b; }
.w-emote { display: inline-block; height: 1.6em; width: auto; margin: -0.3em 0.08em; vertical-align: middle; }
.w-feed-row .w-plat { flex: none; }

/* ---------- One thing of the stream (highlight.js): last follower, last gifter, biggest gift, longest row, viewers ---------- */

.w-hl {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 28px; background: var(--w-surface, rgba(18, 14, 48, 0.84)); box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28));
}
.w-hl-title { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 0; color: var(--w-accent, #c4b5fd); font-weight: 900; font-size: 16px; line-height: 1.15; }
.w-hl-title[hidden] { display: none; }
.w-hl-title span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-hl-icon { width: 22px; height: 22px; flex: none; object-fit: contain; }
.w-hl-body { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 22px; }
.w-hl-body .w-avatar { width: 38px; height: 38px; font-size: 18px; }
.w-hl-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; line-height: 1.15; }
.w-hl-none { color: var(--w-ink-dim, #c9c1fd); font-weight: 700; font-size: 18px; }
.w-hl-detail { display: flex; align-items: center; gap: 6px; flex: none; margin-inline-start: auto; color: var(--w-ink-dim, #c9c1fd); font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.w-hl-gift { width: 34px; height: 34px; object-fit: contain; }
.w-hl-detail .w-coin { width: 18px; height: 18px; }
.w-hl-number { font-weight: 900; font-size: 40px; line-height: 1; font-variant-numeric: tabular-nums; }
.w-hl-pop { animation: w-hl-pop 0.5s cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes w-hl-pop { 35% { transform: scale(1.04); box-shadow: inset 0 0 0 1px var(--w-accent, #c4b5fd), 0 0 18px -2px var(--w-accent, #c4b5fd); } }

/* ---------- Channels in turn (social-rotator.js) ---------- */

.w-rot {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; overflow: hidden;
  padding: 10px 18px; border-radius: 999px; background: var(--w-surface, rgba(18, 14, 48, 0.84)); box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28));
}
.w-rot.is-empty { display: none; }
.w-rot-stage { position: relative; width: 100%; height: 100%; }
.w-rot-line { position: absolute; inset: 0; display: flex; align-items: center; gap: 14px; min-width: 0; }
.w-rot-sign { width: 42px; height: 42px; flex: none; fill: var(--w-accent, #c4b5fd); }
/* YouTube is named, not shown as a sign (its icon only from 100 px height, brand.youtube): the word in the plate's own colours */
.w-rot-word { flex: none; font-weight: 900; opacity: 0.8; }
.w-rot-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.w-rot-platform { color: var(--w-ink-dim, #c9c1fd); font-weight: 700; font-size: 15px; }
.w-rot-handle { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; font-size: 24px; }
.w-rot-in { animation: w-rot-in 0.4s cubic-bezier(0.23, 1, 0.32, 1) both; }
.w-rot-out { animation: w-rot-out 0.4s ease both; }
@keyframes w-rot-in { from { opacity: 0; transform: translateY(60%); } to { opacity: 1; transform: none; } }
@keyframes w-rot-out { to { opacity: 0; transform: translateY(-60%); } }

/* ---------- Timer (timer.js) ---------- */

.w-timer-face {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 10px 18px; border-radius: 28px; background: var(--w-surface, rgba(18, 14, 48, 0.84)); box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28));
}
.w-timer-title { max-width: 100%; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--w-accent, #c4b5fd); font-weight: 900; font-size: 18px; line-height: 1.15; }
.w-timer-title[hidden] { display: none; }
.w-timer-time { font-weight: 900; font-size: 56px; line-height: 1; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.w-timer-face[data-run="paused"] .w-timer-time { animation: w-timer-wait 1.6s ease-in-out infinite; }
.w-timer-face[data-run="idle"] .w-timer-time { color: var(--w-ink-dim, #c9c1fd); }
.w-timer-face[data-run="done"] .w-timer-time { color: var(--w-accent, #c4b5fd); }
.w-timer-face[data-run="done"] { box-shadow: inset 0 0 0 1px var(--w-accent, #c4b5fd), 0 0 18px -2px var(--w-accent, #c4b5fd); }
@keyframes w-timer-wait { 50% { opacity: 0.45; } }

/* ---------- Gift vote (gift-vote.js) ---------- */

.w-vote {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 12px 16px; border-radius: 28px; background: var(--w-surface, rgba(18, 14, 48, 0.84)); box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28));
}
.w-vote-title { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 900; font-size: 20px; line-height: 1.15; }
.w-vote-title[hidden] { display: none; }
.w-vote-list { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 0; }
.w-vote-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-rows: auto 12px; align-items: center; column-gap: 10px; row-gap: 4px; }
.w-vote-pic { grid-row: 1 / 3; width: 30px; height: 30px; object-fit: contain; }
.w-vote-pic[hidden] { visibility: hidden; display: block; }
.w-vote-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; font-size: 16px; line-height: 1.1; }
.w-vote-score { color: var(--w-ink-dim, #c9c1fd); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.w-vote-track { grid-column: 2 / 4; position: relative; height: 12px; border-radius: 999px; background: rgba(201, 193, 253, 0.14); box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28)); overflow: hidden; }
.w-vote-fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: inherit; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--w-accent, #c4b5fd), #f4f1ff); opacity: 0.55; transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease;
}
.w-vote-row.is-lead .w-vote-fill { opacity: 1; }
.w-vote-row.is-lead .w-vote-track { box-shadow: inset 0 0 0 1px var(--w-accent, #c4b5fd), 0 0 14px -2px var(--w-accent, #c4b5fd); }
.w-vote-row.is-lead .w-vote-score { color: var(--w-ink, #fff); }

/* "At the goal: hide" (goal.js): gone on the stream, faint in the editor so it can still be set up */
.w-goal-gone { opacity: 0; transition: opacity 0.6s ease; }
.w-goal-gone-editor { opacity: 0.35; }

/* ---------- Messages of the rules (messages.js) ---------- */

.w-msg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.w-msg-fx { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.w-msg-card {
  position: relative; display: flex; align-items: center; gap: 20px; width: 100%; height: 100%; padding: 16px 26px 16px 18px;
  border-radius: 38px; background: var(--w-surface, rgba(18, 14, 48, 0.86));
  box-shadow: inset 0 0 0 2px var(--w-accent, #c4b5fd), 0 12px 30px -10px rgba(4, 2, 24, 0.75);
  transform-origin: 50% 50%;
}
.w-msg-card[data-size="small"] { transform: scale(0.78); }
.w-msg-card[data-size="large"] { box-shadow: inset 0 0 0 3px #ffd36b, 0 0 0 5px rgba(255, 211, 107, 0.22), 0 0 46px -2px rgba(255, 211, 107, 0.6); }
.w-msg-card.is-sample { opacity: 0.55; }
.w-msg-pic { flex: none; width: 128px; height: 128px; display: grid; place-items: center; }
.w-msg-pic img, .w-msg-pic .w-gift { width: 100%; height: 100%; object-fit: contain; }
.w-msg-pic .w-avatar { width: 112px; height: 112px; font-size: 52px; box-shadow: 0 0 0 3px var(--w-accent, #c4b5fd); }
.w-msg-art { filter: drop-shadow(0 6px 10px rgba(6, 5, 10, 0.35)); }
.w-msg-own { object-fit: contain; border-radius: 14%; }
.w-msg-text {
  margin: 0; min-width: 0; flex: 1 1 auto; font-weight: 900; font-size: 34px; line-height: 1.15; color: var(--w-ink, #f4f1ff);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.w-msg-card[data-size="large"] .w-msg-text { font-size: 38px; }

/* ---------- What sets off what (rules-bar.js) ---------- */

.w-rbar { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.w-rbar[hidden] { display: none; }
.w-rbar-title {
  align-self: flex-start; margin: 0 0 0 14px; padding: 3px 14px; border-radius: 999px; background: var(--w-accent, #c4b5fd);
  color: #1f1838; font-weight: 900; font-size: 18px; line-height: 1.2; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.w-rbar-title[hidden] { display: none; }
.w-rbar-line {
  display: flex; align-items: center; min-height: 58px; padding: 6px 18px; border-radius: 30px; background: var(--w-surface, rgba(18, 14, 48, 0.86));
  box-shadow: inset 0 0 0 2px var(--w-accent, #c4b5fd);
}
.w-rbar-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.w-rbar-pic { width: 42px; height: 42px; flex: none; object-fit: contain; color: var(--w-accent, #c4b5fd); }
.w-rbar-text { min-width: 0; font-weight: 900; font-size: 26px; line-height: 1.2; color: var(--w-ink, #f4f1ff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Gift list and action board (gift-list.js, action-board.js; stage 4b) ---------- */

/* The picture of a trigger: the gift, the gold coin or a sign, with a small badge ("10", "1–4") at the corner. */
.w-sign-pic { width: 100%; height: 100%; object-fit: contain; }
.w-sign { width: 78%; height: 78%; color: var(--w-accent, #c4b5fd); }
.w-sign.w-sign-coin { fill: #ffd36b; stroke: #b98a1f; stroke-width: 1.4; }
.w-sign-badge {
  position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); max-width: 140%; padding: 1px 8px; border-radius: 999px;
  background: var(--w-accent, #c4b5fd); color: #1f1838; font-weight: 900; font-size: 13px; line-height: 1.35; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; box-shadow: 0 2px 6px -2px rgba(4, 2, 24, 0.7);
}

/* An action's own picture (a game's icons/), with the trigger as a round badge in its top right corner */
.w-sign-icon { width: 100%; height: 100%; object-fit: contain; }
.w-sign-corner {
  position: absolute; right: -10%; top: -10%; display: grid; place-items: center; width: 48%; height: 48%; padding: 5%; border-radius: 50%;
  background: var(--w-surface, rgba(18, 14, 48, 0.92)); box-shadow: inset 0 0 0 2px var(--w-accent, #c4b5fd), 0 2px 6px -2px rgba(4, 2, 24, 0.8);
}
.w-sign-corner .w-sign { width: 82%; height: 82%; }
.w-glist .has-icon { width: 52px; height: 52px; }

.w-glist { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 6px; }
.w-glist[hidden] { display: none; }
.w-glist-title, .w-atab-title {
  align-self: center; max-width: 100%; margin: 0; padding: 5px 16px; border-radius: 999px; background: var(--w-accent, #c4b5fd); color: #1f1838;
  font-weight: 900; font-size: 18px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 6px 16px -8px rgba(4, 2, 24, 0.8);
}
.w-glist-title[hidden], .w-atab-title[hidden] { display: none; }
.w-glist-list { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-height: 0; margin: 0; padding: 0; list-style: none; }
.w-glist-row {
  display: flex; align-items: center; gap: 12px; flex: 1 1 0; min-height: 0; max-height: 64px; padding: 4px 14px 4px 8px; border-radius: 22px;
  background: var(--w-surface, rgba(18, 14, 48, 0.84)); box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28));
}
.w-glist.is-right .w-glist-row { flex-direction: row-reverse; padding: 4px 8px 4px 14px; text-align: right; }
.w-glist-pic { position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 44px; max-height: 100%; }
.w-glist-pic .w-sign { width: 92%; height: 92%; }
.w-glist-words { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 1.2; }
.w-glist-name { font-weight: 900; font-size: 19px; color: var(--w-ink, #f4f1ff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-glist-says { font-weight: 700; font-size: 13px; color: var(--w-ink-dim, #c9c1fd); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Without the plate: only an outline around the words, for streamers who want the camera to show through. */
.w-glist.no-plate .w-glist-row { background: none; box-shadow: none; }
.w-glist.no-plate .w-glist-name, .w-glist.no-plate .w-glist-says {
  text-shadow: 0 0 2px #120e30, 0 0 2px #120e30, 0 0 4px #120e30, 0 2px 6px rgba(4, 2, 24, 0.9);
}

.w-atab { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 6px; }
.w-atab[hidden] { display: none; }
.w-atab-grid {
  display: grid; grid-template-columns: repeat(var(--w-cols, 3), minmax(0, 1fr)); grid-template-rows: repeat(var(--w-rows, 1), minmax(0, 1fr));
  gap: 8px; flex: 1 1 auto; min-height: 0; margin: 0; padding: 0; list-style: none;
}
.w-atab-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 0; padding: 10px 8px 8px;
  border-radius: 20px; background: var(--w-surface, rgba(18, 14, 48, 0.84)); box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28));
}
/* The picture grows with the card (up to 96 px) and keeps room for the badge and the name below it. */
.w-atab-pic { position: relative; display: grid; place-items: center; flex: 0 1 auto; width: 96px; max-width: 70%; height: auto; max-height: 62%; aspect-ratio: 1; margin-bottom: 6px; }
.w-atab-pic .w-sign-badge { font-size: 15px; }
.w-atab.no-captions .w-atab-pic { max-height: 82%; }
.w-atab-name {
  max-width: 100%; font-weight: 900; font-size: 16px; line-height: 1.2; color: var(--w-ink, #f4f1ff); text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.w-atab[data-layout="column"] .w-atab-card { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 6px 14px 6px 10px; }
.w-atab[data-layout="column"] .w-atab-pic { width: 44px; height: 44px; max-height: 100%; margin-bottom: 0; }
.w-atab[data-layout="column"] .w-atab-name { text-align: start; font-size: 18px; }

/* ---------- Gift bingo (gift-bingo.js; stage 4b) ---------- */

.w-bingo { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 6px; }
.w-bingo-head { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 30px; }
.w-bingo-title {
  min-width: 0; margin: 0; padding: 5px 16px; border-radius: 999px; background: var(--w-accent, #c4b5fd); color: #1f1838; font-weight: 900;
  font-size: 18px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 6px 16px -8px rgba(4, 2, 24, 0.8);
}
.w-bingo-title[hidden], .w-bingo-count[hidden] { display: none; }
.w-bingo-count {
  flex: none; padding: 4px 12px; border-radius: 999px; background: var(--w-surface, rgba(18, 14, 48, 0.84)); color: var(--w-accent, #c4b5fd);
  box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28)); font-weight: 900; font-size: 15px; font-variant-numeric: tabular-nums;
}
.w-bingo-card {
  display: grid; grid-template-columns: repeat(var(--w-n, 3), minmax(0, 1fr)); grid-template-rows: repeat(var(--w-n, 3), minmax(0, 1fr));
  gap: 7px; flex: 1 1 auto; min-height: 0; padding: 9px; border-radius: 24px; background: var(--w-surface, rgba(18, 14, 48, 0.84));
  box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28));
}
.w-bingo-cell {
  position: relative; display: grid; place-items: center; min-width: 0; min-height: 0; border-radius: 16px; background: rgba(201, 193, 253, 0.08);
  box-shadow: inset 0 0 0 1px rgba(201, 193, 253, 0.14);
}
.w-bingo-cell.is-empty { background: none; box-shadow: inset 0 0 0 1px rgba(201, 193, 253, 0.08); }
.w-bingo-pic { width: 70%; height: 70%; object-fit: contain; transition: opacity 0.25s ease, transform 0.25s ease; }
/* A ticked square: the gift fades back, a round tick in the accent colour sits on it. */
.w-bingo-tick {
  position: absolute; left: 50%; top: 50%; width: 46%; height: 46%; border-radius: 50%; background: var(--w-accent, #c4b5fd);
  transform: translate(-50%, -50%) scale(0); opacity: 0; transition: transform 0.28s cubic-bezier(0.22, 1.4, 0.36, 1), opacity 0.2s ease;
  box-shadow: 0 4px 12px -4px rgba(4, 2, 24, 0.8);
}
.w-bingo-tick::after {
  content: ""; position: absolute; left: 31%; top: 22%; width: 26%; height: 44%; border: solid #1f1838; border-width: 0 5px 5px 0;
  transform: rotate(45deg); border-radius: 2px;
}
.w-bingo-cell.is-marked .w-bingo-pic { opacity: 0.38; transform: scale(0.9); }
.w-bingo-cell.is-marked .w-bingo-tick { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.w-bingo-cell.is-won { background: rgba(196, 181, 253, 0.28); box-shadow: inset 0 0 0 2px var(--w-accent, #c4b5fd), 0 0 18px -4px var(--w-accent, #c4b5fd); }
.w-bingo-banner {
  position: absolute; left: 50%; top: 52%; padding: 8px 26px; border-radius: 999px; background: var(--w-accent, #c4b5fd); color: #1f1838;
  font-weight: 1000; font-size: 54px; line-height: 1.1; letter-spacing: 0.02em; white-space: nowrap; pointer-events: none;
  transform: translate(-50%, -50%) scale(0.6); opacity: 0; transition: transform 0.35s cubic-bezier(0.22, 1.4, 0.36, 1), opacity 0.25s ease;
  box-shadow: 0 14px 34px -12px rgba(4, 2, 24, 0.9);
}
.w-bingo.is-bingo .w-bingo-banner { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.w-bingo-fx { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }

@media (prefers-reduced-motion: reduce) {
  .w-enter, .w-bump, .w-in, .w-out, .w-fig-prop, .w-goal.is-reached, .w-pg.is-reached .w-pg-art { animation: none; }
  .w-pop-card.is-in, .w-pop-card .w-pop-stage, .w-pop-ring { animation: none !important; }
  .w-pop-card.is-out { opacity: 0; }
  .w-fig-pose, .w-fig-zz span { animation: none !important; }
  .w-fig-roam { transition: none; }
  .w-goal-fill { transition: none; }
  .w-goal-head { transition: none; }
  .w-goal-rider, .w-goal-fill, .w-goal-head::before, .w-goal[data-design="hype"], .w-alert-corner, .w-alert-card[data-design="hype"]::before, .w-board-friend, .w-cam-frame, .w-bells-bell { animation: none !important; }
  .w-vote-fill { transition: none; }
  .w-bingo-pic, .w-bingo-tick, .w-bingo-banner { transition: none; }
  .w-hl-pop, .w-rot-in, .w-rot-out, .w-timer-face[data-run="paused"] .w-timer-time { animation: none; }
}

/* ---------- Stage 5a: shared look of the mini games (stream-boss, tug-of-war, mystery-shot, hype-meter, win-life) ---------- */

.w-boss, .w-tug, .w-mys, .w-hype, .w-wl { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.w-boss-title, .w-tug-title, .w-mys-title, .w-hype-title {
  justify-self: center; min-width: 0; max-width: 100%; margin: 0; padding: 5px 16px; border-radius: 999px; background: var(--w-accent, #c4b5fd);
  color: #1f1838; font-weight: 900; font-size: 18px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 6px 16px -8px rgba(4, 2, 24, 0.8);
}
.w-boss-title[hidden], .w-tug-title[hidden], .w-mys-title[hidden], .w-hype-title[hidden] { display: none; }
.w-boss-fx, .w-tug-fx, .w-mys-fx, .w-hype-fx { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.w-boss-banner, .w-tug-banner, .w-mys-banner {
  position: absolute; left: 50%; top: 46%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 26px;
  border-radius: 26px; background: var(--w-accent, #c4b5fd); color: #1f1838; font-weight: 1000; font-size: 40px; line-height: 1.1;
  white-space: nowrap; pointer-events: none; transform: translate(-50%, -50%) scale(0.6); opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1.4, 0.36, 1), opacity 0.25s ease; box-shadow: 0 14px 34px -12px rgba(4, 2, 24, 0.9); z-index: 3;
}
.w-boss-banner span { font-size: 18px; font-weight: 800; }
.w-boss.is-ko .w-boss-banner, .w-tug.is-won .w-tug-banner, .w-mys.is-won .w-mys-banner { transform: translate(-50%, -50%) scale(1); opacity: 1; }

/* Stream boss: the painted boss above its life bar */
.w-boss { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px; padding: 6px; }
.w-boss-head { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 30px; }
.w-boss-level {
  flex: none; padding: 4px 12px; border-radius: 999px; background: var(--w-surface, rgba(18, 14, 48, 0.84)); color: var(--w-accent, #c4b5fd);
  box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28)); font-weight: 900; font-size: 15px;
}
.w-boss-stage { position: relative; min-height: 0; display: grid; place-items: center; }
.w-boss-pic { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 12px 18px rgba(4, 2, 24, 0.55)); transform-origin: 50% 80%; animation: w-boss-float 3.2s ease-in-out infinite; }
@keyframes w-boss-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.w-boss-shake { animation: w-boss-hit 0.32s ease; }
.w-boss-shake-big { animation: w-boss-hit-big 0.5s ease; }
@keyframes w-boss-hit { 0% { transform: translateX(0); filter: brightness(1.8) drop-shadow(0 12px 18px rgba(4, 2, 24, 0.55)); } 30% { transform: translateX(-7px) rotate(-2deg); } 60% { transform: translateX(6px) rotate(1.5deg); } 100% { transform: translateX(0); } }
@keyframes w-boss-hit-big { 0% { transform: scale(1); filter: brightness(2.2) drop-shadow(0 12px 18px rgba(4, 2, 24, 0.55)); } 20% { transform: scale(0.92) rotate(-5deg); } 45% { transform: scale(1.05) rotate(4deg); } 70% { transform: scale(0.98) rotate(-2deg); } 100% { transform: scale(1); } }
.w-boss.is-low .w-boss-pic { animation: w-boss-float 1.4s ease-in-out infinite; }
.w-boss.is-ko .w-boss-pic { animation: w-boss-ko 0.9s ease forwards; }
@keyframes w-boss-ko { 0% { transform: rotate(0); opacity: 1; } 40% { transform: rotate(-14deg) translateY(-8px); } 100% { transform: rotate(18deg) translateY(30px) scale(0.85); opacity: 0.35; filter: grayscale(0.7) drop-shadow(0 12px 18px rgba(4, 2, 24, 0.55)); } }
.w-boss-hits { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.w-boss-hit {
  position: absolute; display: flex; flex-direction: column; align-items: center; transform: translate(-50%, 0); color: #fff; font-weight: 1000;
  font-size: 30px; line-height: 1; text-shadow: 0 2px 0 var(--w-accent, #ff8b7b), 0 4px 10px rgba(4, 2, 24, 0.9); animation: w-boss-rise 1.1s ease-out forwards;
}
.w-boss-hit small { margin-top: 2px; font-size: 13px; font-weight: 800; text-shadow: 0 1px 4px rgba(4, 2, 24, 0.9); }
@keyframes w-boss-rise { 0% { opacity: 0; transform: translate(-50%, 8px) scale(0.6); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -54px) scale(1); } }
.w-boss-bar {
  position: relative; height: 34px; border-radius: 999px; overflow: hidden; background: var(--w-surface, rgba(18, 14, 48, 0.84));
  box-shadow: inset 0 0 0 2px var(--w-line, rgba(201, 193, 253, 0.28));
}
.w-boss-fill, .w-boss-lag { position: absolute; top: 3px; bottom: 3px; left: 3px; right: 3px; border-radius: 999px; transform-origin: left center; }
.w-boss-lag { background: rgba(255, 255, 255, 0.55); transition: transform 0.6s ease; }
.w-boss-fill { background: linear-gradient(90deg, var(--w-accent, #ff8b7b), #ffc2b8); transition: transform 0.18s ease; }
.w-boss-hp { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 16px; font-variant-numeric: tabular-nums; text-shadow: 0 1px 4px rgba(4, 2, 24, 0.95); }

/* Tug of war: no board behind it (founder, 2026-11-16). A power bar in the team colours, how to join, the animals on a rope */
.w-tug { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); justify-items: stretch; gap: 6px; padding: 6px; --w-team-a: #ff9a6b; --w-team-b: #8cc8ff; }
.w-tug-title { justify-self: center; }
.w-tug-bar {
  --split: 50%; position: relative; height: 42px; border-radius: 999px; overflow: hidden; background: rgba(18, 14, 48, 0.7);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.22), 0 8px 20px -10px rgba(4, 2, 24, 0.9);
}
.w-tug-bar-a, .w-tug-bar-b { position: absolute; top: 0; bottom: 0; transition: width 0.45s cubic-bezier(0.22, 0.8, 0.3, 1), left 0.45s cubic-bezier(0.22, 0.8, 0.3, 1); }
.w-tug-bar-a { left: 0; width: var(--split); background: linear-gradient(90deg, #ff7f4f, var(--w-team-a)); }
.w-tug-bar-b { left: var(--split); right: 0; background: linear-gradient(90deg, var(--w-team-b), #5aa9f2); }
.w-tug-bar-knot {
  position: absolute; top: 50%; left: clamp(15px, var(--split), calc(100% - 15px)); width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  background: var(--w-accent, #c4b5fd); box-shadow: 0 0 0 3px #fff, 0 0 14px rgba(255, 255, 255, 0.8); transition: left 0.45s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.w-tug-head { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; gap: 6px; max-width: 46%; padding: 0 16px; color: #fff; text-shadow: 0 1px 3px rgba(60, 20, 10, 0.55); }
.w-tug-head-a { left: 0; }
.w-tug-head-b { right: 0; flex-direction: row-reverse; text-shadow: 0 1px 3px rgba(10, 30, 70, 0.55); }
.w-tug-name { min-width: 0; font-weight: 900; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-tug-wins { flex: none; font-weight: 900; font-size: 15px; }
.w-tug-joins { display: flex; justify-content: space-between; gap: 8px; }
.w-tug-join {
  min-width: 0; padding: 3px 12px; border-radius: 999px; background: rgba(18, 14, 48, 0.72); font-weight: 800; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.w-tug-join-a { color: var(--w-team-a); }
.w-tug-join-b { color: var(--w-team-b); }
.w-tug-stage { position: relative; min-height: 0; display: grid; place-items: end center; }
.w-tug-pair { width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: center; transition: transform 0.45s cubic-bezier(0.22, 0.8, 0.3, 1); }
.w-tug-pair img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(4, 2, 24, 0.5)); }
.w-tug-heave-a { animation: w-tug-heave-a 0.3s ease; }
.w-tug-heave-b { animation: w-tug-heave-b 0.3s ease; }
@keyframes w-tug-heave-a { 50% { transform: translateX(-2.5%); } }
@keyframes w-tug-heave-b { 50% { transform: translateX(2.5%); } }
.w-tug.is-won .w-tug-pair img { animation: w-tug-cheer 0.6s ease 3; }
@keyframes w-tug-cheer { 50% { transform: translateY(-8%); } }
.w-tug-banner { font-size: 24px; top: 12%; padding: 6px 20px; }

/* Mystery shot: the row of possible gifts, the field with archer and box, the last shot */
.w-mys { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 8px; padding: 6px; }
.w-mys-row { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.w-mys-cell { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--w-surface, rgba(18, 14, 48, 0.84)); box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28)); }
.w-mys-cell img { width: 80%; height: 80%; object-fit: contain; }
/* No board behind it (founder, 2026-11-16): the camera shows through; only a faint line where the arrows land. */
.w-mys-field { position: relative; min-height: 0; overflow: visible; }
.w-mys-ground { position: absolute; left: 4%; right: 2%; bottom: 14%; height: 0; border-top: 2px dashed rgba(255, 255, 255, 0.28); }
.w-mys-archer { position: absolute; left: 2%; bottom: 10%; height: 76%; width: auto; filter: drop-shadow(0 8px 10px rgba(4, 2, 24, 0.5)); transform-origin: 40% 90%; }
.w-mys-draw { animation: w-mys-draw 0.4s ease; }
@keyframes w-mys-draw { 40% { transform: translateX(-6px) rotate(-3deg); } }
.w-mys-target { position: absolute; left: 80%; bottom: 12%; width: 22%; height: 58%; transform: translateX(-50%); display: grid; place-items: end center; }
.w-mys-box { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(4, 2, 24, 0.5)); transition: transform 0.4s ease; }
.w-mys-prize { position: absolute; left: 50%; bottom: 60%; width: 70%; transform: translate(-50%, 30%) scale(0.4); opacity: 0; transition: transform 0.55s cubic-bezier(0.22, 1.4, 0.36, 1), opacity 0.3s ease; filter: drop-shadow(0 0 18px rgba(255, 226, 160, 0.9)); z-index: 2; }
.w-mys-prize[hidden] { display: block; visibility: hidden; }
.w-mys.is-won .w-mys-prize { visibility: visible; opacity: 1; transform: translate(-50%, -10%) scale(1); }
.w-mys.is-won .w-mys-box { animation: w-mys-open 0.6s ease; }
@keyframes w-mys-open { 30% { transform: scale(1.1, 0.9); } 60% { transform: scale(0.95, 1.08) translateY(-6px); } }
.w-mys-arrows { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
/* An arrow flies from the archer to its place --to and sticks in the ground there. */
.w-mys-arrow {
  position: absolute; left: 14%; bottom: 46%; width: 54px; height: 6px; margin-left: -27px; border-radius: 3px; background: linear-gradient(90deg, #c4b5fd 0 18%, #b98a52 18% 82%, #e8e3ff 82%);
  animation: w-mys-fly 0.7s cubic-bezier(0.3, 0.6, 0.4, 1) forwards;
}
.w-mys-arrow::after { content: ""; position: absolute; right: -8px; top: -4px; border-left: 10px solid #e8e3ff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.w-mys-arrow .w-avatar { position: absolute; left: -10px; top: -26px; width: 22px; height: 22px; }
@keyframes w-mys-fly { 0% { left: 14%; bottom: 46%; transform: rotate(-12deg); } 55% { bottom: 58%; transform: rotate(0deg); } 100% { left: var(--to); bottom: 15%; transform: rotate(28deg); } }
.w-mys-arrow.is-hit { animation-name: w-mys-fly-hit; }
@keyframes w-mys-fly-hit { 0% { left: 14%; bottom: 46%; transform: rotate(-12deg); } 55% { bottom: 56%; transform: rotate(0deg); } 100% { left: var(--to); bottom: 38%; transform: rotate(8deg); } }
.w-mys-info {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 34px; padding: 4px 14px; border-radius: 999px;
  background: var(--w-surface, rgba(18, 14, 48, 0.84)); box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28)); color: #f4f1ff; font-size: 16px; font-weight: 700;
  white-space: nowrap; overflow: hidden;
}
.w-mys-info b { color: var(--w-accent, #c4b5fd); font-weight: 900; overflow: hidden; text-overflow: ellipsis; }
.w-mys-hint { color: rgba(244, 241, 255, 0.75); font-weight: 700; }
.w-mys-banner { font-size: 30px; top: 30%; }

/* Hype meter: a half ring in five steps, the needle, the step's name */
.w-hype { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; justify-items: center; gap: 4px; padding: 6px; }
.w-hype-dial { position: relative; width: 100%; min-height: 0; }
/* Absolute, so the drawing never pushes the row taller than it is (the step's name stays free below it). */
.w-hype-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; }
.w-hype-track { fill: none; stroke: rgba(18, 14, 48, 0.84); stroke-width: 26; stroke-linecap: round; }
.w-hype-part { fill: none; stroke-width: 18; stroke-linecap: butt; opacity: 0.22; transition: opacity 0.3s ease; }
.w-hype-part.is-lit { opacity: 1; }
.w-hype-part-0 { stroke: #90c5fb; }
.w-hype-part-1 { stroke: #c4b5fd; }
.w-hype-part-2 { stroke: #fec3ec; }
.w-hype-part-3 { stroke: #ffb27a; }
.w-hype-part-4 { stroke: #ff7a6b; }
.w-hype-needle { transform-origin: 100px 96px; transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.3, 1); }
.w-hype-needle path { stroke: #f4f1ff; stroke-width: 6; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(4, 2, 24, 0.8)); }
.w-hype-hub { fill: var(--w-accent, #c4b5fd); stroke: #1f1838; stroke-width: 3; }
.w-hype-step {
  padding: 6px 22px; border-radius: 999px; background: var(--w-surface, rgba(18, 14, 48, 0.84)); color: #f4f1ff; font-weight: 1000; font-size: 26px;
  line-height: 1.1; white-space: nowrap; box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28));
}
.w-hype[data-step="3"] .w-hype-step { color: #ffb27a; }
.w-hype[data-step="4"] .w-hype-step { background: linear-gradient(90deg, #ff7a6b, #ffb27a); color: #1f1838; box-shadow: 0 0 22px -2px rgba(255, 140, 100, 0.85); }
.w-hype[data-step="4"] .w-hype-dial { animation: w-hype-shake 0.18s linear infinite; }
.w-hype[data-step="4"] .w-hype-needle path { stroke: #ffe2a0; filter: drop-shadow(0 0 8px rgba(255, 180, 90, 0.95)); }
@keyframes w-hype-shake { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-1.5px, 1px); } 75% { transform: translate(1.5px, -1px); } }
.w-hype-pop { animation: w-hype-pop 0.45s cubic-bezier(0.22, 1.4, 0.36, 1); }
@keyframes w-hype-pop { 0% { transform: scale(0.7); } 100% { transform: scale(1); } }

/* Wins / lives: two counters */
.w-wl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 6px; }
.w-wl.is-column { grid-template-columns: 1fr; }
.w-wl-card {
  position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 16px; border-radius: 22px;
  background: var(--w-surface, rgba(18, 14, 48, 0.84)); box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28));
}
.w-wl-badge { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--w-accent, #c4b5fd); color: #1f1838; }
.w-wl-b .w-wl-badge { background: #ff8b7b; }
.w-wl-icon { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.w-wl-icon .w-icon-fill { fill: currentColor; }
.w-wl-text { display: grid; min-width: 0; }
.w-wl-label { color: rgba(244, 241, 255, 0.8); font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-wl-value { color: #fff; font-weight: 1000; font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; }
.w-wl-card.is-out .w-wl-value { color: #ff8b7b; }
.w-wl-pop { animation: w-wl-pop 0.4s cubic-bezier(0.22, 1.4, 0.36, 1); }
@keyframes w-wl-pop { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }
.w-wl-chip { position: absolute; right: 14px; top: 8px; padding: 2px 10px; border-radius: 999px; font-weight: 1000; font-size: 18px; animation: w-wl-chip 1.2s ease-out forwards; }
.w-wl-chip.is-up { background: #7be8b0; color: #10301f; }
.w-wl-chip.is-down { background: #ff8b7b; color: #3a120c; }
@keyframes w-wl-chip { 0% { opacity: 0; transform: translateY(8px); } 15% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-26px); } }

@media (prefers-reduced-motion: reduce) {
  .w-boss-pic, .w-boss.is-low .w-boss-pic, .w-hype[data-step="4"] .w-hype-dial, .w-tug-pair img, .w-mys-box { animation: none !important; }
  .w-boss.is-ko .w-boss-pic { animation: none !important; opacity: 0.4; }
  .w-boss-banner, .w-tug-banner, .w-mys-banner, .w-tug-pair, .w-tug-bar-a, .w-tug-bar-b, .w-tug-bar-knot, .w-hype-needle, .w-boss-fill, .w-boss-lag, .w-mys-prize { transition: none; }
}

/* ---------- Stage 5b: luck (lucky wheel, card draw, capsule machine). Laid out in the widget's own pixels; the scene
   scales the whole element. One plate under each for who plays, what they won, or how to join. ---------- */
.w-luck {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  --r-common: #7be8b0; --r-rare: #90c5fb; --r-epic: #c3adff; --r-legendary: #ffd36b;
}
.w-luck [data-rarity="common"] { --rarity: var(--r-common); }
.w-luck [data-rarity="rare"] { --rarity: var(--r-rare); }
.w-luck [data-rarity="epic"] { --rarity: var(--r-epic); }
.w-luck [data-rarity="legendary"] { --rarity: var(--r-legendary); }
.w-luck-title {
  position: absolute; top: 4px; left: 50%; z-index: 4; max-width: 92%; margin: 0; padding: 5px 16px; border-radius: 999px;
  background: var(--w-accent, #c4b5fd); color: #1f1838; font-weight: 900; font-size: 18px; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translateX(-50%); box-shadow: 0 6px 16px -8px rgba(4, 2, 24, 0.8);
}
.w-luck-title[hidden], .w-luck-queue[hidden], .w-gacha-slip[hidden], .w-gacha-capsule[hidden], .w-card[hidden] { display: none; }
.w-luck-fx { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 6; }
.w-luck-foot { position: absolute; left: 10px; right: 10px; bottom: 6px; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 8px; }
.w-luck-plate {
  display: flex; align-items: center; gap: 9px; min-width: 0; max-width: 100%; min-height: 46px; padding: 6px 20px 6px 7px; border-radius: 999px;
  background: var(--w-surface, rgba(18, 14, 48, 0.84)); color: #f4f1ff; font-weight: 800; font-size: 16px; line-height: 1.2;
  box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28)), 0 10px 22px -12px rgba(4, 2, 24, 0.9);
}
.w-luck-plate.is-idle, .w-luck-plate.is-last { padding-inline-start: 20px; }
.w-luck-plate[data-rarity] { box-shadow: inset 0 0 0 2px var(--rarity), 0 10px 22px -12px rgba(4, 2, 24, 0.9); }
.w-luck-plate.is-won { animation: w-luck-pop 0.42s cubic-bezier(0.22, 1.4, 0.36, 1); }
@keyframes w-luck-pop { 0% { transform: scale(0.8); } 100% { transform: scale(1); } }
.w-luck-plate .w-avatar { flex: none; width: 34px; height: 34px; font-size: 16px; }
.w-luck-name { flex: 0 1 auto; min-width: 0; max-width: 42%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-luck-say, .w-luck-hint { min-width: 0; color: rgba(244, 241, 255, 0.78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-luck-hint { color: #f4f1ff; }
.w-luck-result { min-width: 0; color: var(--rarity, #f4f1ff); font-weight: 1000; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-luck-plate.is-last .w-luck-name { color: rgba(244, 241, 255, 0.7); font-weight: 700; }
.w-luck-plate.is-last .w-luck-result { font-size: 18px; }
.w-luck-queue {
  flex: none; padding: 5px 11px; border-radius: 999px; background: var(--w-accent, #c4b5fd); color: #1f1838; font-weight: 900; font-size: 15px;
  font-variant-numeric: tabular-nums; box-shadow: 0 8px 18px -10px rgba(4, 2, 24, 0.9);
}
.w-luck-stars { display: flex; justify-content: center; gap: 3px; }
.w-luck-stars svg { width: 17px; height: 17px; fill: #ffc94a; stroke: #a8661a; stroke-width: 1.4; stroke-linejoin: round; }

/* Lucky wheel: painted rim, pointer and hub; wedges and words drawn */
.w-wheel-stage { position: absolute; left: 10px; top: 76px; width: 400px; height: 400px; }
.w-wheel-face { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; will-change: transform; }
.w-wheel-wedge { stroke: none; transition: filter 0.3s ease, opacity 0.3s ease; }
.w-wheel-seam { stroke: rgba(255, 250, 240, 0.85); stroke-width: 1.1; }
.w-wheel-word { fill: #2a1f52; font-family: var(--w-font, "Nunito", sans-serif); font-weight: 900; paint-order: stroke; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1.6px; }
.w-wheel-veil { opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.w-wheel.is-won .w-wheel-veil { opacity: 0.5; }
.w-wheel.is-won .w-wheel-veil.is-won { opacity: 0; }
/* Wheel designs: standard keeps dark words on calm light wedges with a silver seam; hype has white words with a glow on
   neon wedges and dark seams. */
.w-wheel[data-design="standard"] .w-wheel-seam { stroke: rgba(160, 165, 180, 0.9); }
.w-wheel[data-design="standard"] .w-wheel-word { fill: #22252e; stroke: rgba(255, 255, 255, 0.6); }
.w-wheel[data-design="hype"] .w-wheel-seam { stroke: rgba(10, 4, 24, 0.85); stroke-width: 1.6; }
.w-wheel[data-design="hype"] .w-wheel-word { fill: #fff; stroke: rgba(30, 6, 50, 0.85); stroke-width: 2.4px; }
.w-wheel[data-design="hype"] .w-wheel-rim { filter: drop-shadow(0 0 16px rgba(255, 61, 187, 0.6)) drop-shadow(0 14px 18px rgba(4, 2, 24, 0.55)); }
.w-wheel-rim { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 14px 18px rgba(4, 2, 24, 0.55)); }
.w-wheel-hub { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; object-fit: contain; pointer-events: none; }
.w-wheel-pointer { position: absolute; left: 50%; top: -35px; width: 48px; margin-left: -24px; transform-origin: 50% 20%; filter: drop-shadow(0 6px 6px rgba(4, 2, 24, 0.5)); pointer-events: none; z-index: 2; }
/* The holders (lucky-wheel.js): flat they change nothing; the 3D wheel tilts .w-wheel-tilt and stands the pointer up. */
.w-wheel-tilt, .w-wheel-pin { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.w-wheel-pin { z-index: 2; }
/* Lucky wheel 3D: tilted back in perspective, the edge from darkened layers of the painted rim, a soft shadow below */
.w-wheel[data-view="3d"] .w-wheel-stage { perspective: 1100px; perspective-origin: 50% 0%; }
.w-wheel[data-view="3d"] .w-wheel-tilt { transform-style: preserve-3d; transform: translateY(26px) rotateX(46deg); transform-origin: 50% 50%; }
.w-wheel-edge { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; transform: translateZ(calc(var(--i, 1) * -2.6px)); filter: brightness(calc(0.62 - var(--i, 1) * 0.03)) saturate(1.15); }
.w-wheel[data-view="3d"] .w-wheel-rim { filter: none; }
.w-wheel[data-view="3d"] .w-wheel-pin { z-index: 3; }
.w-wheel-shadow { position: absolute; left: 6%; width: 88%; bottom: -16%; height: 26%; pointer-events: none; background: radial-gradient(closest-side, rgba(4, 2, 24, 0.6), rgba(4, 2, 24, 0)); }

/* Card draw: a fan of painted backs; the drawn card turns over (3D) */
.w-cards-table { position: absolute; top: 0; left: 0; width: 100%; height: 100%; perspective: 900px; }
.w-card { position: absolute; left: 50%; top: 148px; width: 140px; height: 196px; margin: -98px 0 0 -70px; }
.w-card-fan { transition: opacity 0.3s ease; }
.w-card-fan .w-card-back { filter: drop-shadow(0 8px 10px rgba(4, 2, 24, 0.5)); }
.w-cards.is-won .w-card-fan { opacity: 0.4; }
.w-card-drawn { z-index: 3; }
.w-card-drawn::before {
  content: ""; position: absolute; left: -28%; right: -28%; top: -18%; bottom: -18%; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, var(--rarity, #c4b5fd), transparent); transition: opacity 0.4s ease;
}
.w-cards.is-won .w-card-drawn::before { opacity: 0.55; }
.w-cards.is-won .w-card-drawn[data-rarity="legendary"]::before { opacity: 0.85; }
.w-card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; }
.w-card-back, .w-card-front { position: absolute; top: 0; left: 0; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.w-card-front { transform: rotateY(180deg); }
.w-card-paper { display: block; width: 100%; height: 100%; }
.w-card-text {
  position: absolute; top: 13%; left: 12%; right: 15%; bottom: 13%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; text-align: center;
}
.w-card-word { margin: 0; max-width: 100%; color: #33255c; font-weight: 900; line-height: 1.1; overflow-wrap: normal; word-break: normal; hyphens: manual; }
/* Card designs: the word on the painted front, dark on the light standard card, white with a neon glow on the hype card. */
.w-cards[data-design="standard"] .w-card-word { color: #22252e; }
.w-cards[data-design="xmas"] .w-card-word { color: #8e1026; }
.w-cards[data-design="hype"] .w-card-word { color: #fff; font-style: italic; text-transform: uppercase; text-shadow: 0 0 10px rgba(255, 61, 187, 0.95), 0 0 2px #fff; }

/* Capsule machine */
.w-gacha-machine { position: absolute; left: 50%; top: 54px; width: 262px; height: 450px; transform: translateX(-50%); transform-origin: 50% 92%; filter: drop-shadow(0 14px 18px rgba(4, 2, 24, 0.55)); }
/* Inside the machine (gacha-balls.js): the empty machine, the balls in the machine picture's pixels (524 × 900, scaled to
   the frame), the glass's own tint softly over them (only the dome) and its shine on top. */
.w-gacha-body, .w-gacha-tint, .w-gacha-shine { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.w-gacha-balls { position: absolute; left: 0; top: 0; width: 524px; height: 900px; transform: scale(0.5); transform-origin: 0 0; pointer-events: none;
  -webkit-clip-path: ellipse(226px 202px at 262px 340px); clip-path: ellipse(226px 202px at 262px 340px); }
.w-gacha-ball { position: absolute; left: 0; top: 0; display: block; max-width: none; will-change: transform; }
.w-gacha-tint { opacity: 0.08; -webkit-clip-path: ellipse(45% 23.4% at 50% 37.8%); clip-path: ellipse(45% 23.4% at 50% 37.8%); }
.w-gacha-capsule { position: absolute; left: 150px; top: 147px; width: 120px; height: 120px; z-index: 2; }
.w-gacha-half { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(4, 2, 24, 0.45)); }
.w-gacha-upper { clip-path: inset(0 0 40% 0); }
.w-gacha-lower { clip-path: inset(60% 0 0 0); }
/* The painted capsule is pink; its colour follows the rarity */
.w-gacha-capsule[data-rarity="common"] .w-gacha-half { filter: hue-rotate(180deg) drop-shadow(0 8px 8px rgba(4, 2, 24, 0.45)); }
.w-gacha-capsule[data-rarity="rare"] .w-gacha-half { filter: hue-rotate(240deg) drop-shadow(0 8px 8px rgba(4, 2, 24, 0.45)); }
.w-gacha-capsule[data-rarity="epic"] .w-gacha-half { filter: hue-rotate(295deg) drop-shadow(0 8px 8px rgba(4, 2, 24, 0.45)); }
.w-gacha-capsule[data-rarity="legendary"] .w-gacha-half { filter: hue-rotate(75deg) saturate(1.4) brightness(1.08) drop-shadow(0 8px 8px rgba(4, 2, 24, 0.45)); }
.w-gacha-slip {
  position: absolute; left: 210px; top: 207px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 170px; max-width: 320px; padding: 14px 24px 16px; border-radius: 14px; background: #fff6e6; color: #33255c; text-align: center;
  transform: translate(-50%, -50%); outline: 1.5px dashed rgba(51, 37, 92, 0.28); outline-offset: -8px;
  box-shadow: 0 0 0 3px var(--rarity, #c4b5fd), 0 0 34px -4px var(--rarity, #c4b5fd), 0 18px 30px -14px rgba(4, 2, 24, 0.9);
}
.w-gacha-word { margin: 0; max-width: 100%; font-weight: 1000; line-height: 1.1; overflow-wrap: normal; word-break: normal; }
.w-gacha[data-design="standard"] .w-gacha-slip { background: linear-gradient(180deg, #ffffff, #e4e8ef); color: #22252e; outline-color: rgba(34, 37, 46, 0.25); }
.w-gacha[data-design="hype"] .w-gacha-slip { background: linear-gradient(100deg, #12062e, #2a0a4a); color: #fff; outline-color: rgba(125, 249, 255, 0.45); }
.w-gacha[data-design="xmas"] .w-gacha-slip { background: linear-gradient(180deg, #fffaf2, #f6e7d2); color: #8e1026; outline-color: rgba(176, 20, 44, 0.35); }
.w-gacha[data-design="hype"] .w-gacha-word { font-style: italic; text-transform: uppercase; text-shadow: 0 0 10px rgba(255, 61, 187, 0.95), 0 0 2px #fff; }

@media (prefers-reduced-motion: reduce) {
  .w-luck-plate.is-won { animation: none; }
  .w-wheel-veil, .w-card-fan, .w-card-drawn::before { transition: none; }
}

/* ---------- Game interactions (game-actions.js): painted tiles, one per action of a game ---------- */
.w-gi {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center;
  justify-content: center; --w-tile: 108px; --w-gap: 16px;
}
.w-gi[hidden] { display: none; }
/* Title and tiles as one block, placed by "Alignment" and "Up or down" (game-actions.js; the element itself scales as one
   picture, kit.js scaleAsOne); it shrinks from that corner when it would not fit. */
.w-gi-in { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: none; transform-origin: 50% 50%; }
.w-gi[data-align="left"] { justify-content: flex-start; }
.w-gi[data-align="right"] { justify-content: flex-end; }
.w-gi[data-align-y="top"] { align-items: flex-start; }
.w-gi[data-align-y="bottom"] { align-items: flex-end; }
.w-gi[data-align="left"] .w-gi-in { align-items: flex-start; }
.w-gi[data-align="right"] .w-gi-in { align-items: flex-end; }
.w-gi[data-align="left"] .w-gi-grid { justify-content: start; }
/* Right: a short last row ends at the right too (a grid would start it at the left). */
.w-gi[data-align="right"] .w-gi-grid { display: flex; flex-wrap: wrap; justify-content: flex-end; width: calc(var(--w-cols, 4) * var(--w-tile) + (var(--w-cols, 4) - 1) * var(--w-gap)); }
.w-gi[data-align="left"][data-align-y="top"] .w-gi-in { transform-origin: 0 0; }
.w-gi[data-align="center"][data-align-y="top"] .w-gi-in { transform-origin: 50% 0; }
.w-gi[data-align="right"][data-align-y="top"] .w-gi-in { transform-origin: 100% 0; }
.w-gi[data-align="left"][data-align-y="middle"] .w-gi-in { transform-origin: 0 50%; }
.w-gi[data-align="right"][data-align-y="middle"] .w-gi-in { transform-origin: 100% 50%; }
.w-gi[data-align="left"][data-align-y="bottom"] .w-gi-in { transform-origin: 0 100%; }
.w-gi[data-align="center"][data-align-y="bottom"] .w-gi-in { transform-origin: 50% 100%; }
.w-gi[data-align="right"][data-align-y="bottom"] .w-gi-in { transform-origin: 100% 100%; }
.w-gi-title {
  flex: none; max-width: 92%; margin: 0; padding: 5px 16px; border-radius: 999px; background: var(--w-accent, #c4b5fd); color: #1f1838;
  font-weight: 900; font-size: 18px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 6px 16px -8px rgba(4, 2, 24, 0.8);
}
.w-gi-title[hidden] { display: none; }
.w-gi-grid {
  display: grid; grid-template-columns: repeat(var(--w-cols, 4), var(--w-tile)); gap: var(--w-gap); justify-content: center; margin: 0; padding: 0;
  list-style: none;
}
.w-gi-grid.is-turning .w-gi-tile { animation: w-gi-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes w-gi-in { 0% { opacity: 0; transform: translateY(10px) scale(0.92); } 100% { opacity: 1; transform: none; } }
.w-gi-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; width: var(--w-tile); }
.w-gi-face { position: relative; display: block; width: var(--w-tile); height: var(--w-tile); }
.w-gi-plate { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(4, 2, 24, 0.45)); }
/* The painted jelly tile is sky blue; the other colours turn it */
.w-gi-tile[data-colour="pink"] .w-gi-plate { filter: hue-rotate(125deg) saturate(0.9) drop-shadow(0 8px 10px rgba(4, 2, 24, 0.45)); }
.w-gi-tile[data-colour="mint"] .w-gi-plate { filter: hue-rotate(-60deg) saturate(0.85) brightness(1.05) drop-shadow(0 8px 10px rgba(4, 2, 24, 0.45)); }
.w-gi-tile[data-colour="yellow"] .w-gi-plate { filter: hue-rotate(208deg) saturate(1.25) brightness(1.2) drop-shadow(0 8px 10px rgba(4, 2, 24, 0.45)); }
.w-gi-tile[data-colour="lavender"] .w-gi-plate { filter: hue-rotate(50deg) saturate(0.7) drop-shadow(0 8px 10px rgba(4, 2, 24, 0.45)); }
.w-gi-art { position: absolute; left: 17%; top: 15%; width: 66%; height: 66%; display: flex; align-items: center; justify-content: center; }
.w-gi[data-design="cloud"] .w-gi-art { top: 19%; height: 62%; }
/* Christmas tile: the snow cap takes the top, the picture sits below it on the red. */
.w-gi[data-design="xmas"] .w-gi-art { left: 20%; width: 60%; top: 27%; height: 58%; }
.w-gi-icon { display: block; max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 3px 4px rgba(4, 2, 24, 0.35)); }
svg.w-gi-icon.is-sign { width: 70%; height: 70%; fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 2px 2px rgba(20, 12, 50, 0.55)); }
svg.w-gi-icon.is-sign .w-icon-fill { fill: #ff7fa8; }
svg.w-gi-icon.is-coin { fill: #ffd36b; stroke: #a8661a; }
.w-gi-badge {
  position: absolute; right: -9%; top: -9%; display: flex; align-items: center; justify-content: center; width: 40%; height: 40%;
  border-radius: 50%; background: #fff8ee; box-shadow: 0 0 0 3px var(--w-accent, #c4b5fd), 0 6px 10px -4px rgba(4, 2, 24, 0.7);
}
.w-gi-badge-pic { display: block; width: 76%; height: 76%; object-fit: contain; }
svg.w-gi-badge-pic.is-sign { width: 62%; height: 62%; fill: none; stroke: #e2456e; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
svg.w-gi-badge-pic.is-sign .w-icon-fill { fill: #ff6b98; stroke: #e2456e; }
svg.w-gi-badge-pic.is-coin { fill: #ffd36b; stroke: #a8661a; }
.w-gi-amount {
  position: absolute; right: -4%; bottom: 6%; max-width: 104%; padding: 1px 7px; border-radius: 999px; background: rgba(18, 14, 48, 0.86);
  color: #fff; font-weight: 1000; font-size: calc(var(--w-tile) * 0.15); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.w-gi-count {
  position: absolute; left: -4%; bottom: 6%; padding: 1px 7px; border-radius: 999px; background: var(--w-accent, #c4b5fd); color: #1f1838;
  font-weight: 1000; font-size: calc(var(--w-tile) * 0.14); line-height: 1.25; font-variant-numeric: tabular-nums;
}
.w-gi-count[hidden] { display: none; }
.w-gi-name {
  max-width: calc(var(--w-tile) + var(--w-gap)); color: #fff; font-weight: 900; font-size: calc(var(--w-tile) * 0.15); line-height: 1.15; text-align: center;
  white-space: normal; overflow-wrap: normal; max-height: 2.3em; overflow: hidden; text-shadow: 0 2px 4px rgba(4, 2, 24, 0.9), 0 0 2px rgba(4, 2, 24, 0.95);
}
.w-gi-tile.is-hit .w-gi-face { animation: w-gi-hit 0.6s cubic-bezier(0.22, 1.4, 0.36, 1); }
.w-gi-tile.is-hit .w-gi-face::after {
  content: ""; position: absolute; left: -12%; top: -12%; width: 124%; height: 124%; border-radius: 30%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 246, 214, 0.85), rgba(255, 246, 214, 0)); animation: w-gi-flash 0.7s ease-out forwards;
}
@keyframes w-gi-hit { 0% { transform: scale(1); } 30% { transform: scale(1.2) rotate(-4deg); } 60% { transform: scale(0.96) rotate(2deg); } 100% { transform: scale(1); } }
@keyframes w-gi-flash { 0% { opacity: 0.9; } 100% { opacity: 0; } }
.w-gi-chip {
  position: absolute; left: 50%; top: 4%; z-index: 3; display: flex; align-items: center; gap: 4px; padding: 3px 10px 3px 3px; border-radius: 999px;
  background: var(--w-accent, #c4b5fd); color: #1f1838; font-weight: 1000; font-size: calc(var(--w-tile) * 0.16); white-space: nowrap;
  box-shadow: 0 8px 16px -8px rgba(4, 2, 24, 0.9); animation: w-gi-rise 1.6s ease-out forwards; pointer-events: none;
}
.w-gi-chip .w-avatar { width: calc(var(--w-tile) * 0.26); height: calc(var(--w-tile) * 0.26); font-size: calc(var(--w-tile) * 0.13); }
@keyframes w-gi-rise { 0% { opacity: 0; transform: translate(-50%, 10px) scale(0.6); } 15% { opacity: 1; transform: translate(-50%, -6px) scale(1.05); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -48px) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .w-gi-grid.is-turning .w-gi-tile, .w-gi-tile.is-hit .w-gi-face, .w-gi-chip { animation: none; }
}

/* ---------- Gift gallery (gift-gallery.js): the painted tiles of game interactions, a ring per gift, gold when done ---------- */
.w-gal {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px; --w-tile: 112px; --w-gap: 18px; --w-gold: #ffd36b;
}
.w-gal-head { display: flex; align-items: center; justify-content: center; gap: 8px; max-width: 96%; min-height: 30px; }
.w-gal-title {
  min-width: 0; margin: 0; padding: 5px 16px; border-radius: 999px; background: var(--w-accent, #c4b5fd); color: #1f1838; font-weight: 900;
  font-size: 18px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 6px 16px -8px rgba(4, 2, 24, 0.8);
}
.w-gal-title[hidden] { display: none; }
.w-gal-score {
  flex: none; padding: 4px 12px; border-radius: 999px; background: rgba(18, 14, 48, 0.86); color: var(--w-gold);
  box-shadow: inset 0 0 0 1px rgba(255, 211, 107, 0.4); font-weight: 1000; font-size: 16px; line-height: 1.25; font-variant-numeric: tabular-nums;
}
.w-gal-grid {
  display: grid; grid-template-columns: repeat(var(--w-cols, 5), var(--w-tile)); gap: var(--w-gap); justify-content: center; margin: 0; padding: 0;
  list-style: none;
}
.w-gal-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: var(--w-tile); }
.w-gal-face { position: relative; display: block; width: var(--w-tile); height: var(--w-tile); transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.w-gal-plate { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(4, 2, 24, 0.45)); transition: filter 0.4s ease; }
/* The painted jelly tile is sky blue; the other colours turn it (as in game interactions) */
.w-gal-tile[data-colour="pink"] .w-gal-plate { filter: hue-rotate(125deg) saturate(0.9) drop-shadow(0 8px 10px rgba(4, 2, 24, 0.45)); }
.w-gal-tile[data-colour="mint"] .w-gal-plate { filter: hue-rotate(-60deg) saturate(0.85) brightness(1.05) drop-shadow(0 8px 10px rgba(4, 2, 24, 0.45)); }
.w-gal-tile[data-colour="yellow"] .w-gal-plate { filter: hue-rotate(208deg) saturate(1.25) brightness(1.2) drop-shadow(0 8px 10px rgba(4, 2, 24, 0.45)); }
.w-gal-tile[data-colour="lavender"] .w-gal-plate { filter: hue-rotate(50deg) saturate(0.7) drop-shadow(0 8px 10px rgba(4, 2, 24, 0.45)); }
.w-gal-art { position: absolute; left: 13%; top: 12%; width: 74%; height: 74%; display: flex; align-items: center; justify-content: center; }
.w-gal[data-design="cloud"] .w-gal-art { top: 16%; height: 70%; }
.w-gal[data-design="xmas"] .w-gal-art { left: 18%; width: 64%; top: 25%; height: 64%; }
.w-gal-ring { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.w-gal-ring circle { fill: none; stroke-width: 7; }
.w-gal-ring-track { stroke: rgba(255, 255, 255, 0.16); }
.w-gal-ring-fill {
  stroke: var(--w-accent, #c4b5fd); stroke-linecap: round; stroke-dasharray: 100 100; transition: stroke-dashoffset 0.45s cubic-bezier(0.22, 1, 0.36, 1), stroke 0.3s ease;
  filter: drop-shadow(0 0 3px rgba(196, 181, 253, 0.7));
}
/* Not done yet: the gift waits pale; done: full colour, gold ring, a tick in the corner, the tile glows warm */
.w-gal-pic {
  position: relative; display: block; width: 66%; height: 66%; object-fit: contain; opacity: 0.5; filter: grayscale(0.7) drop-shadow(0 3px 4px rgba(4, 2, 24, 0.35));
  transition: opacity 0.35s ease, filter 0.35s ease, transform 0.35s ease;
}
.w-gal-tile.is-done .w-gal-pic { opacity: 1; filter: drop-shadow(0 3px 5px rgba(4, 2, 24, 0.4)); transform: scale(1.06); }
.w-gal-tile.is-done .w-gal-ring-fill { stroke: var(--w-gold); filter: drop-shadow(0 0 5px rgba(255, 211, 107, 0.85)); }
.w-gal-tile.is-done .w-gal-ring-track { stroke: rgba(255, 211, 107, 0.25); }
.w-gal-tile.is-done .w-gal-plate { filter: drop-shadow(0 0 12px rgba(255, 211, 107, 0.6)) drop-shadow(0 8px 10px rgba(4, 2, 24, 0.45)); }
.w-gal-tick {
  position: absolute; right: -6%; top: -6%; width: 30%; height: 30%; border-radius: 50%; background: var(--w-gold);
  box-shadow: 0 0 0 3px rgba(18, 14, 48, 0.9), 0 6px 10px -4px rgba(4, 2, 24, 0.7); transform: scale(0); opacity: 0;
  transition: transform 0.3s cubic-bezier(0.22, 1.4, 0.36, 1), opacity 0.2s ease;
}
.w-gal-tick::after {
  content: ""; position: absolute; left: 34%; top: 20%; width: 24%; height: 44%; border: solid #3a2600; border-width: 0 4px 4px 0; border-radius: 2px;
  transform: rotate(45deg);
}
.w-gal-tile.is-done .w-gal-tick { transform: scale(1); opacity: 1; }
.w-gal-caption {
  display: flex; align-items: center; justify-content: center; gap: 5px; max-width: calc(var(--w-tile) + var(--w-gap)); min-height: 1.3em;
  color: #fff; font-weight: 900; font-size: calc(var(--w-tile) * 0.15); line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap;
  text-shadow: 0 2px 4px rgba(4, 2, 24, 0.9), 0 0 2px rgba(4, 2, 24, 0.95);
}
.w-gal-caption.is-leader { color: var(--w-gold); }
.w-gal-caption .w-avatar { flex: none; width: calc(var(--w-tile) * 0.22); height: calc(var(--w-tile) * 0.22); font-size: calc(var(--w-tile) * 0.11); box-shadow: 0 0 0 2px var(--w-gold); }
.w-gal-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.w-gal-tile.is-hit .w-gal-face { animation: w-gal-hit 0.5s cubic-bezier(0.22, 1.4, 0.36, 1); }
@keyframes w-gal-hit { 0% { transform: scale(1); } 35% { transform: scale(1.12) rotate(-3deg); } 70% { transform: scale(0.97) rotate(1deg); } 100% { transform: scale(1); } }
.w-gal-tile.is-reached .w-gal-face::after {
  content: ""; position: absolute; left: -16%; top: -16%; width: 132%; height: 132%; border-radius: 34%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 226, 160, 0.9), rgba(255, 226, 160, 0)); animation: w-gal-flash 0.9s ease-out forwards;
}
@keyframes w-gal-flash { 0% { opacity: 1; transform: scale(0.8); } 100% { opacity: 0; transform: scale(1.15); } }
.w-gal-chip {
  position: absolute; left: 50%; top: 2%; z-index: 3; display: flex; align-items: center; gap: 4px; padding: 3px 10px 3px 3px; border-radius: 999px;
  background: var(--w-accent, #c4b5fd); color: #1f1838; font-weight: 1000; font-size: calc(var(--w-tile) * 0.16); white-space: nowrap;
  box-shadow: 0 8px 16px -8px rgba(4, 2, 24, 0.9); animation: w-gi-rise 1.5s ease-out forwards; pointer-events: none;
}
.w-gal-chip .w-avatar { width: calc(var(--w-tile) * 0.24); height: calc(var(--w-tile) * 0.24); font-size: calc(var(--w-tile) * 0.12); }
.w-gal-banner {
  position: absolute; left: 50%; top: 50%; z-index: 4; max-width: 96%; padding: 8px 26px; border-radius: 999px; background: var(--w-gold); color: #3a2600;
  font-weight: 1000; font-size: 34px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none;
  transform: translate(-50%, -50%) scale(0.6); opacity: 0; transition: transform 0.35s cubic-bezier(0.22, 1.4, 0.36, 1), opacity 0.25s ease;
  box-shadow: 0 14px 34px -12px rgba(4, 2, 24, 0.9), 0 0 24px -6px rgba(255, 211, 107, 0.8);
}
.w-gal.is-celebrating .w-gal-banner { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.w-gal-fx { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
@media (prefers-reduced-motion: reduce) {
  .w-gal-face, .w-gal-plate, .w-gal-pic, .w-gal-ring-fill, .w-gal-tick, .w-gal-banner { transition: none; }
  .w-gal-tile.is-hit .w-gal-face, .w-gal-tile.is-reached .w-gal-face::after, .w-gal-chip { animation: none; }
}

/* ---------- Glass jar (jar.js): tokens fall into a painted glass ---------- */
.w-jar-root { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.w-jar-title {
  position: absolute; top: 4px; left: 50%; z-index: 3; max-width: 92%; margin: 0; padding: 5px 16px; border-radius: 999px; background: var(--w-accent, #c4b5fd);
  color: #1f1838; font-weight: 900; font-size: 18px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translateX(-50%);
  box-shadow: 0 6px 16px -8px rgba(4, 2, 24, 0.8);
}
.w-jar-title[hidden], .w-jar-count[hidden] { display: none; }
.w-jar-glass { position: absolute; }
.w-jar-canvas { position: absolute; top: 0; left: 0; transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.5, 0, 0.75, 0); }
.w-jar-pic { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 12px 16px rgba(4, 2, 24, 0.5)); }
.w-jar-root.is-full .w-jar-pic { animation: w-jar-glow 1.2s ease-in-out 2; }
@keyframes w-jar-glow { 50% { filter: drop-shadow(0 0 22px var(--w-accent, #c4b5fd)) drop-shadow(0 12px 16px rgba(4, 2, 24, 0.5)); transform: scale(1.03); } }
.w-jar-root.is-spilling .w-jar-canvas { opacity: 0; transform: translateY(40px); }
.w-jar-count {
  position: absolute; bottom: 8px; left: 50%; z-index: 3; margin: 0; padding: 4px 14px; border-radius: 999px; transform: translateX(-50%);
  background: var(--w-surface, rgba(18, 14, 48, 0.84)); box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28));
  color: #f4f1ff; font-weight: 900; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.w-jar-root.is-full .w-jar-count { background: var(--w-accent, #c4b5fd); color: #1f1838; }
.w-jar-fx { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 4; }
@media (prefers-reduced-motion: reduce) {
  .w-jar-root.is-full .w-jar-pic { animation: none; }
  .w-jar-canvas { transition: none; }
}

/* ---------- Feed the monster (monster-feed.js): a painted monster eats the gifts, its belly fills pink ---------- */
.w-mf { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.w-mf-feeder {
  position: absolute; top: 6px; left: 50%; z-index: 4; display: flex; align-items: center; gap: 8px; max-width: 94%; padding: 4px 14px 4px 4px;
  border-radius: 999px; background: rgba(18, 14, 48, 0.86); box-shadow: inset 0 0 0 1px rgba(201, 193, 253, 0.3), 0 8px 18px -10px rgba(4, 2, 24, 0.9);
  color: #f4f1ff; white-space: nowrap; transform: translateX(-50%) scale(0.6); opacity: 0; transition: transform 0.15s ease, opacity 0.15s ease;
}
.w-mf-feeder.is-on { transform: translateX(-50%) scale(1); opacity: 1; animation: w-mf-pop 0.24s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes w-mf-pop { 0% { transform: translateX(-50%) scale(0.6); } 70% { transform: translateX(-50%) scale(1.08); } 100% { transform: translateX(-50%) scale(1); } }
.w-mf-face {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: #c4b5fd;
  color: #1f1838; font-weight: 900; font-size: 16px;
}
.w-mf-face img { width: 100%; height: 100%; object-fit: cover; }
.w-mf-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 800; font-size: 17px; }
.w-mf-plus { flex: none; color: #7be8b0; font-weight: 900; font-size: 17px; }
.w-mf-plus:empty { display: none; }
.w-mf-art { position: absolute; left: 0; width: 380px; height: 390px; }
.w-mf-body { position: absolute; inset: 0; transform-origin: 50% 100%; animation: w-mf-breathe 2.6s ease-in-out infinite; filter: drop-shadow(0 12px 14px rgba(4, 2, 24, 0.45)); }
@keyframes w-mf-breathe { 50% { transform: scale(1.012, 0.99); } }
.w-mf-pose, .w-mf-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; -webkit-user-drag: none; }
.w-mf-fill { pointer-events: none; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-position: center; mask-position: center; }
.w-mf.is-full .w-mf-body { animation: w-mf-full 0.9s cubic-bezier(0.3, 1.5, 0.5, 1); filter: drop-shadow(0 12px 14px rgba(4, 2, 24, 0.45)) drop-shadow(0 0 20px rgba(255, 150, 200, 0.55)); }
@keyframes w-mf-full { 0% { transform: scale(1); } 40% { transform: scale(1.1, 0.94); } 70% { transform: scale(0.97, 1.04); } 100% { transform: scale(1); } }
.w-mf-snacks { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.w-mf-snack {
  position: absolute; display: grid; place-items: center; width: 64px; height: 64px; color: #1f1838; font-weight: 900; font-size: 30px;
  filter: drop-shadow(0 4px 6px rgba(4, 2, 24, 0.45));
}
.w-mf-snack img { width: 100%; height: 100%; object-fit: contain; }
.w-mf-snack.is-round { border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92); }
.w-mf-snack.is-round img { object-fit: cover; }
.w-mf-bubble {
  position: absolute; top: 4%; right: -2%; z-index: 3; max-width: 62%; padding: 6px 14px; border-radius: 18px 18px 18px 4px; background: #fff;
  color: #1f1838; font-weight: 900; font-size: 22px; line-height: 1.15; text-align: center; box-shadow: 0 8px 18px -8px rgba(4, 2, 24, 0.7);
  transform: scale(0.5) rotate(-6deg); transform-origin: 0% 100%; opacity: 0; transition: transform 0.15s ease, opacity 0.15s ease;
}
.w-mf-bubble.is-on { transform: scale(1) rotate(-4deg); opacity: 1; transition: transform 0.22s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.12s ease; }
.w-mf-bubble.is-big { font-size: 28px; background: #ffd166; }
.w-mf-label { position: absolute; top: 448px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.w-mf-label[hidden], .w-mf-title[hidden], .w-mf-count[hidden] { display: none; }
.w-mf-title {
  max-width: 96%; padding: 6px 20px; border-radius: 999px; background: linear-gradient(180deg, #a78bfa, #7c5ce6); color: #fff;
  font-weight: 900; font-size: 22px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: inset 0 -3px 0 rgba(40, 20, 110, 0.35), 0 8px 16px -8px rgba(4, 2, 24, 0.9); text-shadow: 0 1px 2px rgba(40, 20, 110, 0.5);
}
.w-mf-count {
  display: flex; align-items: center; gap: 8px; padding: 3px 14px 3px 6px; border-radius: 999px; background: rgba(18, 14, 48, 0.84);
  box-shadow: inset 0 0 0 1px rgba(201, 193, 253, 0.28); color: #f4f1ff; font-weight: 900; font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.w-mf-sign { width: 28px; height: 28px; object-fit: contain; }
.w-mf.is-full .w-mf-count { background: #ffd166; color: #1f1838; }
.w-mf-fx { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 5; }
@media (prefers-reduced-motion: reduce) {
  .w-mf-body, .w-mf.is-full .w-mf-body, .w-mf-feeder.is-on { animation: none; }
  .w-mf-feeder, .w-mf-bubble, .w-mf-bubble.is-on { transition: none; }
}

/* ---------- Team jars (team-jars.js): 2–4 glasses side by side, one per team, in the team's colour (--w-team) ---------- */
.w-tj { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.w-tj-title {
  position: absolute; top: 4px; left: 50%; z-index: 3; max-width: 92%; margin: 0; padding: 5px 16px; border-radius: 999px; background: #c4b5fd;
  color: #1f1838; font-weight: 900; font-size: 18px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: translateX(-50%);
  box-shadow: 0 6px 16px -8px rgba(4, 2, 24, 0.8);
}
.w-tj-title[hidden] { display: none; }
.w-tj-row { position: absolute; inset: 0; }
.w-tj-team { position: absolute; top: 0; bottom: 0; transition: opacity 0.4s ease, filter 0.4s ease; }
.w-tj-name {
  position: absolute; top: calc(var(--tj-top) - 14px); left: 50%; z-index: 3; max-width: 100%; padding: 3px 12px; border-radius: 999px; transform: translate(-50%, -50%);
  background: var(--w-team); color: #1f1838; font-weight: 900; font-size: 16px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 6px 14px -8px rgba(4, 2, 24, 0.85);
}
.w-tj-name:empty, .w-tj-join[hidden] { display: none; }
.w-tj-glass { position: absolute; left: 50%; transform: translateX(-50%); }
.w-tj-canvas { position: absolute; top: 0; left: 0; transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.5, 0, 0.75, 0); }
.w-tj-pic { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 12px 16px rgba(4, 2, 24, 0.5)); }
.w-tj-below { position: absolute; top: calc(var(--tj-bottom) + 6px); left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.w-tj-join {
  max-width: 100%; padding: 3px 10px; border-radius: 14px; background: rgba(18, 14, 48, 0.78); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  color: var(--w-team); font-weight: 800; font-size: 14px; line-height: 1.25; text-align: center; overflow-wrap: anywhere;
}
.w-tj-foot { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.w-tj-count {
  padding: 3px 12px; border-radius: 999px; background: rgba(18, 14, 48, 0.84); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--w-team) 55%, transparent);
  color: #f4f1ff; font-weight: 900; font-size: 16px; font-variant-numeric: tabular-nums;
}
.w-tj-wins { color: var(--w-team); font-weight: 900; font-size: 15px; text-shadow: 0 1px 3px rgba(4, 2, 24, 0.8); }
.w-tj-wins:empty { display: none; }
.w-tj-team.is-won .w-tj-pic { animation: w-tj-glow 1.2s ease-in-out 3; }
@keyframes w-tj-glow { 50% { filter: drop-shadow(0 0 22px var(--w-team)) drop-shadow(0 12px 16px rgba(4, 2, 24, 0.5)); transform: scale(1.04); } }
.w-tj-team.is-won .w-tj-count { background: var(--w-team); color: #1f1838; }
.w-tj-team.is-lost { opacity: 0.55; filter: saturate(0.6); }
.w-tj.is-spilling .w-tj-canvas { opacity: 0; transform: translateY(40px); }
.w-tj-banner {
  position: absolute; left: 50%; top: 42%; z-index: 5; padding: 8px 26px; border-radius: 26px; background: #ffd166; color: #1f1838;
  font-weight: 900; font-size: 36px; line-height: 1.1; white-space: nowrap; pointer-events: none; transform: translate(-50%, -50%) scale(0.6); opacity: 0;
  transition: transform 0.35s cubic-bezier(0.22, 1.4, 0.36, 1), opacity 0.25s ease; box-shadow: 0 14px 34px -12px rgba(4, 2, 24, 0.9);
}
.w-tj.is-won .w-tj-banner { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.w-tj-fx { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 4; }
@media (prefers-reduced-motion: reduce) {
  .w-tj-team.is-won .w-tj-pic { animation: none; }
  .w-tj-canvas, .w-tj-banner, .w-tj-team { transition: none; }
}

/* ---------- Stage 5d: effects. Nothing shows until an effect plays; in the studio a dashed outline marks the place ---------- */
.w-fountain, .w-fw, .w-rain, .w-bo, .w-flash { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.w-fountain, .w-fw { overflow: visible; }
.w-fx-ghost {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; border-radius: 18px;
  box-shadow: inset 0 0 0 2px rgba(196, 181, 253, 0.32); background: repeating-linear-gradient(135deg, rgba(196, 181, 253, 0.05) 0 12px, transparent 12px 24px);
  color: rgba(196, 181, 253, 0.62); font-weight: 900; font-size: 22px; text-align: center;
}
.w-fireworks-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.w-fireworks-fx { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; }
.w-rain { overflow: hidden; }
.w-rain-drop { position: absolute; top: 0; line-height: 1; filter: drop-shadow(0 4px 6px rgba(4, 2, 24, 0.45)); will-change: transform, opacity; }

/* Bat swarm (bat-swarm.js): the painted bats on one canvas, the viewer's name in the middle while they pass */
.w-bats { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.w-bats-sky { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.w-bats-name {
  position: absolute; left: 50%; top: 46%; z-index: 2; margin: 0; padding: 6px 18px; border-radius: 999px; transform: translate(-50%, -50%); opacity: 0;
  background: rgba(30, 8, 16, 0.86); color: #ffe9ec; font-weight: 1000; font-size: 26px; white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 110, 120, 0.4), 0 0 24px rgba(200, 30, 50, 0.35), 0 10px 22px -10px rgba(4, 2, 24, 0.9);
}
.w-bats-name.is-on { animation: w-burst-name 3.2s ease 0.6s both; }   /* the name comes once the swarm is in the picture */
@media (prefers-reduced-motion: reduce) { .w-bats-name.is-on { animation: none; opacity: 1; } }

/* Music player (music-player.js): "Now playing" with the song's name, three bars that move while music plays */
/* Camilla, the video avatar (avatar-camilla.js): the clips fill the 4:3 box; the zoom and the alignment of single clips
   turn about the middle (set by the widget), the box cuts what lies outside. */
.w-avatar-cam { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; background: #1a1226; pointer-events: none; }
.w-avatar-cam-video, .w-avatar-cam-still { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
.w-avatar-cam-video[hidden], .w-avatar-cam-still[hidden] { display: none; }
/* Joy and Cozy Cloud as AI avatars (avatar-puppet.js): the whole figure, never cut, on a clear ground. */
.w-avatar-puppet { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.w-avatar-puppet-canvas, .w-avatar-puppet-still { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; }
.w-avatar-puppet-canvas[hidden], .w-avatar-puppet-still[hidden] { display: none; }
.w-music { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; pointer-events: none; }
.w-music-card {
  display: inline-flex; align-items: center; gap: 16px; max-width: 100%; padding: 14px 24px 14px 18px; border-radius: 999px;
  background: rgba(22, 14, 46, 0.82); box-shadow: inset 0 0 0 2px rgba(185, 164, 255, 0.45), 0 8px 22px rgba(6, 5, 10, 0.4);
  font-family: var(--w-font, "Nunito", sans-serif); color: #fff; box-sizing: border-box;
}
.w-music-card.is-faint { opacity: 0.45; }
.w-music-bars { flex: none; display: flex; align-items: flex-end; gap: 5px; width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: #8f6bff; box-sizing: border-box; }
.w-music-bars i { flex: 1; height: 30%; border-radius: 3px; background: #fff; }
.w-music.is-playing .w-music-bars i { animation: w-music-bar 0.9s ease-in-out infinite; }
.w-music.is-playing .w-music-bars i:nth-child(2) { animation-delay: -0.3s; }
.w-music.is-playing .w-music-bars i:nth-child(3) { animation-delay: -0.6s; }
@keyframes w-music-bar { 0%, 100% { height: 30%; } 50% { height: 100%; } }
.w-music-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.w-music-label { font-weight: 800; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase; color: #c4b5fd; }
.w-music-title { font-weight: 900; font-size: 28px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.w-music-card.is-empty .w-music-title { font-weight: 700; font-size: 20px; color: #e4dcff; }
.w-music-card[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .w-music.is-playing .w-music-bars i { animation: none; height: 70%; } }

/* Emote effects (emote-fx.js): emotes from the chat in the picture, and the combo big in the upper middle */
.w-efx, .w-efx-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
.w-efx { overflow: hidden; }
.w-efx-item {
  position: absolute; display: flex; align-items: center; justify-content: center; line-height: 1;
  filter: drop-shadow(0 4px 6px rgba(4, 2, 24, 0.45)); will-change: transform, opacity;
}
.w-efx-pic { object-fit: contain; }
.w-efx-combo {
  position: absolute; left: 50%; top: 7%; transform: translateX(-50%); display: flex; align-items: center; gap: 14px;
  font-family: var(--w-font, "Nunito", sans-serif); color: #fff; white-space: nowrap; direction: ltr;
}
.w-efx-combo[hidden] { display: none; }
.w-efx-combo-art { position: relative; width: 120px; height: 120px; }
.w-efx-combo-art .w-efx-item { position: static; animation: w-efx-breathe 1.6s ease-in-out infinite; }
.w-efx-combo-count {
  font-weight: 900; font-size: calc(76px * var(--efx-grow, 1)); line-height: 1; letter-spacing: 0.01em;
  text-shadow: 0.06em 0 0 #120e30, -0.06em 0 0 #120e30, 0 0.06em 0 #120e30, 0 -0.06em 0 #120e30,
    0.042em 0.042em 0 #120e30, -0.042em 0.042em 0 #120e30, 0.042em -0.042em 0 #120e30, -0.042em -0.042em 0 #120e30,
    0 0.1em 0.2em rgba(6, 5, 10, 0.55);
}
.w-efx-combo.is-hot .w-efx-combo-count { color: #fff3c4; }
.w-efx-combo-word {
  align-self: flex-start; margin-top: 6px; padding: 4px 12px; border-radius: 999px; font-weight: 900; font-size: 24px;
  text-transform: uppercase; letter-spacing: 0.08em; background: #8f6bff; box-shadow: 0 3px 0 #3b2a74, 0 6px 14px rgba(6, 5, 10, 0.4);
}
.w-efx-combo.is-hot .w-efx-combo-word { background: linear-gradient(135deg, #ffd166, #ff7eb6); color: #2a1f52; }
.w-efx-combo-ring {
  position: absolute; left: 60px; top: 50%; width: 140px; height: 140px; border-radius: 50%; opacity: 0;
  transform: translate(-50%, -50%); box-shadow: 0 0 0 6px rgba(255, 243, 196, 0.85), 0 0 24px rgba(255, 209, 102, 0.8);
}
@keyframes w-efx-breathe { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.06) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .w-efx-combo-art .w-efx-item { animation: none; } }

/* Blackout: the dark layer fades in, a big countdown in the middle */
.w-blackout-veil {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: rgba(5, 3, 16, 0.82); opacity: 0; transition: opacity 0.6s ease;
}
.w-bo[data-darkness="dim"] .w-blackout-veil { background: rgba(5, 3, 16, 0.6); }
.w-bo.is-on .w-blackout-veil { opacity: 1; }
.w-blackout-panel { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 90%; text-align: center; }
.w-blackout-title {
  margin: 0; max-width: 100%; padding: 6px 20px; border-radius: 999px; background: var(--w-accent, #c4b5fd); color: #1f1838; font-weight: 1000; font-size: 30px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.w-blackout-clock { margin: 0; color: #fff; font-weight: 1000; font-size: 150px; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 0 40px rgba(196, 181, 253, 0.35); }
.w-blackout-clock.is-more { animation: w-blackout-more 0.45s cubic-bezier(0.22, 1.4, 0.36, 1); }
@keyframes w-blackout-more { 0% { transform: scale(1.25); color: var(--w-accent, #c4b5fd); } 100% { transform: scale(1); } }
.w-blackout-who { display: flex; align-items: center; gap: 10px; margin: 0; color: #f4f1ff; font-weight: 800; font-size: 24px; }
.w-blackout-who .w-avatar { width: 40px; height: 40px; font-size: 18px; }
.w-blackout-hint { margin: 0; color: rgba(244, 241, 255, 0.72); font-weight: 700; font-size: 20px; }
.w-blackout-hint[hidden] { display: none; }

/* Flashbang: one soft white flash (never full white, see flashbang.js), the name afterwards */
.w-flash-light { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #fffaf0; opacity: 0; }
.w-flash-who {
  position: absolute; top: 18px; left: 50%; margin: 0; padding: 6px 18px; border-radius: 999px; transform: translateX(-50%); opacity: 0;
  background: var(--w-surface, rgba(18, 14, 48, 0.84)); color: #f4f1ff; font-weight: 900; font-size: 22px; white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28));
}
.w-flash-who.is-on { animation: w-flash-who 3.2s ease forwards; }
@keyframes w-flash-who { 0%, 15% { opacity: 0; } 25%, 80% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .w-blackout-veil { transition: none; }
  .w-blackout-clock.is-more, .w-flash-who.is-on { animation: none; opacity: 1; }
}

/* Gift cannon, parachutes, airship (painted, stage 5d) */
.w-cannon, .w-para, .w-ship { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.w-cannon-shots { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; }
.w-cannon-body { position: absolute; bottom: 6px; left: 10px; width: 190px; height: 182px; }
.w-cannon[data-side="right"] .w-cannon-body { left: auto; right: 10px; transform: scaleX(-1); }
.w-cannon-pic { display: block; width: 100%; height: 100%; transform-origin: 40% 85%; filter: drop-shadow(0 10px 12px rgba(4, 2, 24, 0.45)); }
.w-cannon-fire { position: absolute; display: block; max-width: none; transform-origin: 40% 85%; opacity: 0; filter: drop-shadow(0 10px 12px rgba(4, 2, 24, 0.45)); }
.w-cannon.is-firing .w-cannon-fire.is-on { opacity: 1; }
/* The last step of the shot fades out over the resting cannon (the cannon shows again underneath). */
.w-cannon.is-fading .w-cannon-fire.is-on { opacity: 0; transition: opacity 220ms ease-out; }
.w-cannon.is-firing.is-fading .w-cannon-pic { opacity: 1; }
.w-cannon.is-firing .w-cannon-pic { opacity: 0; }
.w-cannon-name {
  position: absolute; margin: 0; padding: 4px 12px; border-radius: 999px; transform: translate(-50%, 0); opacity: 0; white-space: nowrap;
  background: var(--w-surface, rgba(18, 14, 48, 0.84)); color: #f4f1ff; font-weight: 900; font-size: 18px; box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28));
}
.w-cannon-name.is-on { animation: w-cannon-name 1.8s ease forwards; }
@keyframes w-cannon-name { 0% { opacity: 0; transform: translate(-50%, 10px) scale(0.7); } 18% { opacity: 1; transform: translate(-50%, 0) scale(1.08); } 75% { opacity: 1; transform: translate(-50%, -14px); } 100% { opacity: 0; transform: translate(-50%, -24px); } }
.w-para { overflow: hidden; }
.w-para-one { position: absolute; top: 0; width: 118px; display: flex; flex-direction: column; align-items: center; will-change: transform; }
.w-para-art { position: relative; display: block; width: 118px; height: 160px; filter: drop-shadow(0 8px 10px rgba(4, 2, 24, 0.4)); }
/* Two layers (the way down, the landed animal), in each every painted step stacked and only one shown; the closed eyes lie over them for a blink. */
.w-para-fall, .w-para-landed { position: absolute; inset: 0; display: block; transform-origin: 50% 100%; }
.w-para-landed { opacity: 0; }
.w-para-pic, .w-para-eyes { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 100%; object-fit: contain; visibility: hidden; }
.w-para-pic.is-on, .w-para-eyes.is-on { visibility: visible; }
.w-para-tag {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 5px; max-width: 170px; margin-top: -6px; padding: 3px 10px 3px 3px; border-radius: 999px;
  background: var(--w-surface, rgba(18, 14, 48, 0.84)); color: #f4f1ff; font-weight: 900; font-size: 15px; box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28));
}
.w-para-tag .w-avatar { flex: none; width: 24px; height: 24px; font-size: 12px; }
.w-para-tag b { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-ship { overflow: hidden; }
.w-ship-group { position: absolute; top: 0; left: 0; width: 530px; height: 200px; will-change: transform; }
.w-ship-pic { position: absolute; top: 0; width: 250px; height: 178px; filter: drop-shadow(0 10px 12px rgba(4, 2, 24, 0.4)); }
.w-ship-layer { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
.w-ship-banner { position: absolute; width: 300px; height: 65px; transform-origin: 100% 40%; }
.w-ship-cloth { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform: scaleX(-1); filter: drop-shadow(0 6px 8px rgba(4, 2, 24, 0.35)); }
.w-ship-text {
  position: absolute; top: 0; left: 6%; right: 16%; height: 100%; display: flex; align-items: center; justify-content: center; color: #33255c;
  font-weight: 1000; font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Cloud burst: the big logo cloud puffs up and bursts into little logo clouds */
.w-burst { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.w-burst-big { position: absolute; left: 50%; top: 46%; width: 373px; height: 373px; margin: -186px 0 0 -186px; opacity: 0; }
.w-burst-face { display: block; width: 100%; height: 100%; filter: drop-shadow(0 12px 16px rgba(4, 2, 24, 0.45)); }
.w-burst-fx { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: visible; }
.w-burst-fx .w-particle { filter: drop-shadow(0 6px 8px rgba(4, 2, 24, 0.35)); }
.w-burst-name {
  position: absolute; left: 50%; top: 46%; z-index: 2; margin: 0; padding: 6px 18px; border-radius: 999px; transform: translate(-50%, -50%); opacity: 0;
  background: var(--w-surface, rgba(18, 14, 48, 0.84)); color: #f4f1ff; font-weight: 1000; font-size: 26px; white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--w-line, rgba(201, 193, 253, 0.28)), 0 10px 22px -10px rgba(4, 2, 24, 0.9);
}
.w-burst-name.is-on { animation: w-burst-name 2.6s ease forwards; }
@keyframes w-burst-name { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); } 14% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } 24% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -80%); } }
@media (prefers-reduced-motion: reduce) { .w-burst-name.is-on { animation: none; opacity: 1; } }

/* ---------- GTA VI packs (packs.js; pack-alert, pack-cinematic, pack-goal, pack-label, pack-frame). Each is laid out in the
   pack's own pixels (as its source files are), the scene scales the element. Colours come from the pack (--pk-*). ---------- */
.pk-fill { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.pk-heading { display: block; width: 100%; height: 100%; }
.pk-heading svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* A title the pack's letters cannot draw (Cyrillic, Japanese, Korean, Chinese): heavy, slanted, as high as the letters. */
.pk-heading.is-text { display: flex; align-items: center; container-type: size; }
.pk-heading-text { display: block; font: italic 900 92cqh/1 Nunito, "Arial Black", "Leelawadee UI", Thonburi, "Noto Sans Thai", system-ui, sans-serif; letter-spacing: -0.01em; text-transform: uppercase; white-space: nowrap; transform: skewX(-4deg); transform-origin: 0 100%; transform-box: fill-box; }
/* Thai stacks vowels and tone marks above and below the letters: smaller, with room, so nothing is cut (2026-11-21). */
:lang(th) .pk-heading-text { font-size: 66cqh; line-height: 1.4; letter-spacing: 0; }
[data-pack]:not(button) { --pk-font: "Pack vice-nights", Inter, "Segoe UI", Arial, sans-serif; color: var(--pk-text); }
[data-pack="vice-nights"] { --pk-font: "Pack vice-nights", Inter, "Segoe UI", Arial, sans-serif; }
/* Merry Vice City (2026-11-29): its plates are night blue, not cream: the name on an alert and on a moment in white
   (the title takes the light gold of --pk-plum); in the chat the name stays red. */
[data-pack="merry-vice-city"].is-painted .pk-alert-name, [data-pack="merry-vice-city"].is-painted .pk-cine-name { color: #fff; }
.pk-alert { position: absolute; inset: 0; overflow: hidden; --pk-dur: 4800ms; }
.pk-alert-card { position: absolute; inset: 0; opacity: 0; }
.pk-alert-card.is-on { animation: pk-plate var(--pk-dur) both; }
.pk-alert-card.is-still { animation: none; opacity: 1; }
.pk-alert-icon { position: absolute; left: 129px; top: 114px; width: 52px; height: 52px; filter: drop-shadow(0 3px 2px rgba(23, 17, 44, 0.5)); }
.pk-alert-title { position: absolute; left: 183px; top: 79px; width: 431px; height: 39px; color: var(--pk-text); filter: drop-shadow(0 3px 0 var(--pk-ink)); }
.pk-alert-name { position: absolute; left: 187px; top: 123px; width: 411px; height: 41px; font: 600 31px/1.18 var(--pk-font); letter-spacing: -0.04em; color: var(--pk-text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-shadow: 0 2px 3px var(--pk-ink); }
.pk-alert-sweep { position: absolute; left: 0; top: 64px; width: 615px; height: 105px; overflow: hidden; clip-path: polygon(21% 0, 100% 0, 95% 74%, 87% 100%, 18% 100%, 8% 80%); }
.pk-alert-sweep::after { content: ""; display: block; width: 24%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 244, 231, 0.55), transparent); transform: translateX(-120%) skewX(-18deg); }
.pk-alert-card.is-on:not(.is-still) .pk-alert-sweep::after { animation: pk-scan 0.55s 0.19s both; }
.pk-alert-card.is-on:not(.is-still) .pk-alert-icon { animation: pk-icon 0.55s 0.3s both; }
.pk-alert-card.is-on:not(.is-still) .pk-alert-title { animation: pk-type 0.4s 0.58s both; }
.pk-alert-card.is-on:not(.is-still) .pk-alert-name { animation: pk-type 0.4s 0.76s both; }
@keyframes pk-plate { 0% { transform: translateX(-42px) scale(0.97); opacity: 0; } 9%, 84% { transform: none; opacity: 1; } 100% { transform: translateX(46px) scale(0.97); opacity: 0; } }
@keyframes pk-scan { to { transform: translateX(530%) skewX(-18deg); } }
@keyframes pk-icon { from { transform: scale(0.65) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pk-type { from { transform: translateY(9px); opacity: 0; } to { transform: none; opacity: 1; } }

.pk-cine { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pk-cine-stage { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; overflow: visible; }
/* A screen of another shape than the picture: the picture stays whole in the middle, the rest is the same picture, soft. */
.pk-cine-blur { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; filter: blur(28px) brightness(0.72) saturate(1.1); opacity: 0; transition: opacity 0.4s; }
.pk-cine.has-place.is-wider .pk-cine-blur { opacity: 1; }
/* The place painted further (packs.js "extended"), centred on the picture: wider (2592 × 1080) on screens wider than 16:9,
   taller (1920 × 3416) on upright screens. The picture on it melts into it over 60 px, where the painting's own soft
   seam lies, so no hard edge shows. */
.pk-cine-ext { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; opacity: 0; transition: opacity 0.4s; }
.pk-cine-ext.is-wide { left: -336px; width: 2592px; }
.pk-cine-ext.is-tall { top: -1168px; height: 3416px; }
.pk-cine.has-place.has-ext .pk-cine-ext { opacity: 1; }
.pk-cine.has-place.has-ext .pk-cine-ext.is-wide ~ .pk-cine-place { -webkit-mask-image: linear-gradient(to right, transparent, #000 60px, #000 1860px, transparent); mask-image: linear-gradient(to right, transparent, #000 60px, #000 1860px, transparent); }
.pk-cine.has-place.has-ext .pk-cine-ext.is-tall ~ .pk-cine-place { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 60px, #000 1020px, transparent); mask-image: linear-gradient(to bottom, transparent, #000 60px, #000 1020px, transparent); }
/* The picture's edges melt into the soft continuation (no hard seam). */
.pk-cine.has-place.is-wider-x .pk-cine-place { -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent); }
.pk-cine.has-place.is-wider-y .pk-cine-place { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent); }
/* The place stays on the stream (switched off: only the effect crosses the stream, the element is see-through). */
.pk-cine-place { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s; }
.pk-cine.has-place .pk-cine-place { opacity: 1; }
.pk-cine-fx { position: absolute; inset: 0; }
.pk-cine-fx > * { position: absolute; display: none; }
.pk-cine-fx[data-clip="clipCar"] > .pk-car, .pk-cine-fx[data-clip="clipCar"] > .pk-car-mirror, .pk-cine-fx[data-clip="clipCar"] > .pk-car-shadow,
.pk-cine-fx[data-clip="clipHeli"] > .pk-heli, .pk-cine-fx[data-clip="clipHeli"] > .pk-heli-rotor, .pk-cine-fx[data-clip="clipHeli"] > .pk-heli-beam,
.pk-cine-fx[data-clip="clipYacht"] > .pk-cine-sparks { display: block; }
.pk-car { object-fit: fill; will-change: transform, left, top; }
.pk-car-mirror { object-fit: fill; transform: scaleY(-1); filter: blur(2px); -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.22), transparent); mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.22), transparent); }
.pk-car-shadow { border-radius: 50%; background: radial-gradient(closest-side, rgba(23, 17, 44, 0.63), transparent); filter: blur(6px); }
.pk-heli, .pk-heli-rotor { object-fit: fill; }
.pk-heli-beam { inset: 0; width: 100%; height: 100%; filter: blur(14px); mix-blend-mode: screen; }
.pk-cine-sparks { inset: 0; width: 100%; height: 100%; }
.pk-cine-caption { position: absolute; left: 115px; top: 130px; width: 775px; padding: 23px 40px 23px 34px; background: linear-gradient(110deg, rgba(23, 17, 44, 0.98) 0%, rgba(49, 32, 67, 0.93) 86%, rgba(57, 32, 93, 0.73)); border-left: 6px solid var(--pk-accent); border-bottom: 2px solid var(--pk-orange); clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%); transform: translateX(-20px); opacity: 0; transition: opacity 0.26s, transform 0.26s; }
.pk-cine-caption.is-on { transform: none; opacity: 1; }
.pk-cine-title { height: 53px; color: var(--pk-text); }
.pk-cine-name { margin-top: 10px; font: 600 36px/1.2 var(--pk-font); color: var(--pk-highlight); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.pk-goal { position: absolute; inset: 0; }
.pk-goal-title { position: absolute; left: 76px; top: 27px; width: 240px; height: 28px; color: var(--pk-text); }
.pk-goal.no-numbers .pk-goal-title { width: 430px; }
.pk-goal-count { position: absolute; left: 325px; top: 24px; width: 184px; height: 38px; font: 600 25px/1.4 var(--pk-font); letter-spacing: -0.025em; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--pk-text); text-shadow: 0 2px 3px var(--pk-ink); font-variant-numeric: tabular-nums; }
.pk-goal-track { position: absolute; z-index: 1; left: 46px; top: 75px; width: 459px; height: 27px; overflow: hidden; transform: skewX(-12deg); background: #100c20; border: 1px solid #745267; }
.pk-goal-fill { height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--pk-accent), var(--pk-highlight)); transition: transform 0.4s ease-out; }
.pk-goal-track::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 26px, var(--pk-ink) 26px 29px); }
.pk-goal.is-reached .pk-goal-track { animation: pk-reached 1.2s ease-out; }
@keyframes pk-reached { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 18px 4px var(--pk-highlight); } }

.pk-label { position: absolute; inset: 0; }
.pk-label-caption { position: absolute; left: 74px; top: 20px; width: 380px; font: 600 14px/1 var(--pk-font); letter-spacing: 1.8px; text-transform: uppercase; color: var(--pk-accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-label-value { position: absolute; left: 74px; top: 34px; width: 377px; height: 39px; font: 600 27px/1.2 var(--pk-font); letter-spacing: -0.025em; color: var(--pk-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 3px var(--pk-ink); }
.pk-label.is-new .pk-label-value { animation: pk-type 0.4s both; }

.pk-frame { position: absolute; inset: 0; }
.pk-frame-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
/* The plain window of the layouts and its caption (packs.js createWindow, createCaption): sizes in the pack's pixels
   (--u = one pixel of a 1080 stream in scene units). */
.pk-frame.has-caption .pk-frame-pic { top: calc(40 * var(--u)); height: calc(100% - 40 * var(--u)); }
.pk-window { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.pk-cap { position: absolute; left: calc(12 * var(--u)); top: 0; right: 0; height: calc(24 * var(--u)); display: flex; align-items: center; gap: calc(10 * var(--u)); font: 600 calc(16 * var(--u))/1 var(--pk-font); letter-spacing: calc(2 * var(--u)); text-transform: uppercase; color: var(--pk-text); white-space: nowrap; overflow: hidden; text-shadow: 0 1px 2px var(--pk-ink); }
.pk-cap[hidden] { display: none; }
.pk-icon { flex: none; width: calc(21 * var(--u)); height: calc(21 * var(--u)); }
.pk-cap span { overflow: hidden; text-overflow: ellipsis; }
/* The chat in the pack's window: rows as in the pack's overlay.css (.msg). */
.pk-chat { position: absolute; inset: 0; }
.pk-chat-list { position: absolute; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.45em; overflow: hidden; font: 600 var(--pk-chat-size, 11px)/1.35 var(--pk-font); color: var(--pk-text); }
.pk-msg { flex: none; display: block; padding: 0.35em 0.6em; border-inline-start: 0.2em solid var(--pk-accent); background: rgba(23, 17, 44, 0.91); overflow-wrap: anywhere; white-space: pre-wrap; font-weight: 500; }
.pk-msg strong { margin-inline-end: 0.45em; color: var(--pk-highlight); font-size: 0.91em; font-weight: 600; unicode-bidi: isolate; }   /* own direction, as .w-chat-name */
.pk-msg .w-avatar { display: inline-block; width: 1.35em; height: 1.35em; margin-inline-end: 0.4em; vertical-align: -0.3em; font-size: 0.9em; }
.pk-chat.is-plain .pk-msg .w-avatar { display: none; }
.pk-msg.is-new { animation: pk-msg-in 0.27s both; }
@keyframes pk-msg-in { from { transform: translateX(-0.6em); opacity: 0; } to { transform: none; opacity: 1; } }
/* The backdrop: the place, darker, open where the windows are; its name at the top left, a big title at the bottom left. */
.pk-backdrop { position: absolute; inset: 0; overflow: hidden; }
.pk-backdrop-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pk-place { position: absolute; left: calc(40 * var(--u)); top: calc(26 * var(--u)); display: flex; align-items: center; gap: calc(10 * var(--u)); font: 600 calc(15 * var(--u))/1 var(--pk-font); letter-spacing: calc(2.4 * var(--u)); text-transform: uppercase; color: var(--pk-text); white-space: nowrap; text-shadow: 0 1px 2px var(--pk-ink); }
.pk-place[hidden], .pk-backdrop-title[hidden], .pk-screen-where[hidden], .pk-screen-air[hidden] { display: none; }
.pk-backdrop-title { position: absolute; left: calc(39 * var(--u)); bottom: calc(40 * var(--u)); width: min(70%, calc(1300 * var(--u))); height: calc(84 * var(--u)); color: var(--pk-text); }
.pk-backdrop-title .pk-heading svg { width: auto; max-width: 100%; }

/* ---------- GTA VI stream screens (pack-screen.js): the picture like the cinematic, the words in the pack's 1920 × 1080 layout ---------- */
.pk-screen-ui { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; pointer-events: none; color: var(--pk-text); font-family: var(--pk-font); }
.pk-screen-ui > * { position: absolute; }
.pk-screen-ui [hidden] { display: none; }
.pk-plate { position: absolute; inset: 0; width: 100%; height: 100%; }
.pk-screen-kicker { width: 236px; height: 36px; display: grid; place-items: center; }
.pk-screen-kicker span, .pk-screen-air span { position: relative; white-space: nowrap; font: 600 15px/1 var(--pk-font); letter-spacing: 0.32em; color: var(--pk-orange); }
.pk-screen-title { color: var(--pk-text); }
.pk-screen-title .pk-heading.is-text { justify-content: center; }
/* A title in another script (Cyrillic, Japanese …) gets the same dark outline and drop as the pack's letters. */
.pk-heading.is-shaded .pk-heading-text { -webkit-text-stroke: 0.035em var(--pk-ink, #17112c); paint-order: stroke fill; text-shadow: 0 0.05em 0 var(--pk-ink, #17112c), 0 0.08em 0.04em var(--pk-ink, #17112c); }
.pk-screen-rule { width: 170px; height: 4px; background: linear-gradient(90deg, var(--pk-accent) 0 106px, transparent 106px 116px, var(--pk-highlight) 116px 169px, transparent 169px); border-radius: 2px; }
.pk-screen-count { transform: translateX(-50%); padding: 10px 25px; border: 1px solid rgba(255, 172, 101, 0.56); border-radius: 3px; background: rgba(23, 17, 44, 0.91); font: 600 27px/1.2 var(--pk-font); letter-spacing: 0.13em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pk-screen-count::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 14px; border-radius: 50%; vertical-align: 0.17em; background: var(--pk-accent); }
.pk-screen-count.is-done { letter-spacing: 0.06em; text-transform: uppercase; color: var(--pk-highlight); }
.pk-screen-note { width: 1400px; text-align: center; font: 600 34px/1.3 var(--pk-font); color: var(--pk-text); text-shadow: 0 3px 4px var(--pk-ink), 0 0 18px rgba(23, 17, 44, 0.7); }
.pk-screen-where { left: 45px; top: 957px; width: 391px; height: 80px; }
.pk-seal { position: absolute; left: 60px; top: 14px; width: 52px; height: 52px; }
.pk-screen-where-name { position: absolute; left: 128px; top: 0; height: 80px; display: flex; align-items: center; font: 600 25px/1 var(--pk-font); letter-spacing: 0.06em; text-transform: uppercase; }
.pk-screen-air { left: 1560px; top: 42px; width: 314px; height: 48px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.pk-screen-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--pk-pink); box-shadow: 0 0 10px var(--pk-pink); animation: pk-air 1.6s ease-in-out infinite; }
.pk-screen-air.is-off .pk-screen-dot { background: #8a83a6; box-shadow: none; animation: none; }
@keyframes pk-air { 50% { opacity: 0.45; } }

/* ---------- Painted packs (packs.js look "painted": cherry blossom, and the packs of the other animated frames after it).
   Their plates, symbols and places are painted pictures; the words are set in Nunito on the plates (plum on cream), and
   over the stream in white with a plum outline. Each plate is laid out in its own pixels (plates/*.webp, 1100 wide) and
   scaled into the widget's box; the numbers below are the plate's measured inner areas (cream, track). ---------- */
.pk-alert-art, .pk-goal-art, .pk-label-art { position: absolute; inset: 0; }
[data-pack].is-painted { --pk-font: Nunito, "Segoe UI", "Leelawadee UI", Thonburi, "Noto Sans Thai", system-ui, sans-serif; }
.is-painted .pk-heading-text { font: 900 84cqh/1.08 var(--pk-font); font-style: normal; text-transform: none; transform: none; letter-spacing: 0; }
.is-painted .pk-heading.is-text { justify-content: center; }
/* Words over the stream (goal, label caption, screen titles): white with the pack's plum outline. */
.is-painted .pk-heading.is-shaded .pk-heading-text, .is-painted .pk-goal-title .pk-heading-text, .is-painted .pk-goal-count, .is-painted .pk-label-caption, .is-painted .pk-screen-note {
  color: #fff; -webkit-text-stroke: 0.1em var(--pk-ink); paint-order: stroke fill; text-shadow: 0 0.06em 0.1em var(--pk-shade, rgba(90, 22, 56, 0.55));
}

/* Alert: the plate at the bottom of the 720 × 224 box (720 / 1100 = 0.6545), its symbol as a brooch at the top middle,
   the title and the name in the cream area (pink plate: clear x 213–958, y 116–237; gold plate x 257–879, y 64–187). */
.is-painted.pk-alert { overflow: visible; }
.is-painted .pk-alert-art { inset: auto; left: 0; bottom: 0; width: 1100px; height: 304px; transform: scale(0.654545); transform-origin: 0 100%; }
.is-painted .pk-alert-card.is-big .pk-alert-art { height: 255px; }
.is-painted .pk-alert-card { transform-origin: 50% 62%; }
.is-painted .pk-alert-card.is-on { animation: pk-pop-in 0.26s cubic-bezier(0.2, 0.9, 0.3, 1.2) both, pk-pop-out 0.18s ease-in calc(var(--pk-dur) - 180ms) forwards; }
.is-painted .pk-alert-card.is-still { animation: none; opacity: 1; }
@keyframes pk-pop-in { 0% { opacity: 0; transform: scale(0.6); } 70% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: none; } }
@keyframes pk-pop-out { to { opacity: 0; transform: scale(0.9); } }
.is-painted .pk-alert-icon { left: 520px; top: -36px; width: 130px; height: 124px; object-fit: contain; filter: drop-shadow(0 5px 4px rgba(90, 22, 56, 0.35)); }
.is-painted .pk-alert-card.is-big .pk-alert-icon { left: 503px; top: -66px; }
.is-painted .pk-alert-card.is-on:not(.is-still) .pk-alert-icon { animation: pk-icon 0.45s 0.12s both, pk-breathe 2.6s 0.6s ease-in-out infinite; }
@keyframes pk-breathe { 50% { transform: scale(1.06) rotate(-3deg); } }
.is-painted .pk-alert-title { left: 225px; top: 98px; width: 720px; height: 68px; color: var(--pk-plum); filter: none; }
.is-painted .pk-alert-name { left: 225px; top: 172px; width: 720px; height: 64px; text-align: center; font: 800 46px/64px var(--pk-font); letter-spacing: 0; color: var(--pk-name, #B8285F); text-shadow: none; }
.is-painted .pk-alert-card.is-big .pk-alert-title { left: 262px; top: 66px; width: 612px; height: 62px; }
.is-painted .pk-alert-card.is-big .pk-alert-name { left: 262px; top: 130px; width: 612px; height: 58px; line-height: 58px; }
.is-painted .pk-alert-sweep { left: 60px; top: 84px; width: 1000px; height: 190px; clip-path: inset(0 round 28px); }
.is-painted .pk-alert-card.is-big .pk-alert-sweep { top: 30px; height: 192px; }
.is-painted .pk-alert-sweep::after { background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.7), transparent); }
/* Petals flying off the plate as it comes in (packs.js petals). */
.pk-alert-flurry { position: absolute; inset: 0; pointer-events: none; }
.pk-petal { position: absolute; left: var(--x); top: var(--y); background-repeat: no-repeat; opacity: 0; animation: pk-petal 2.2s var(--t) cubic-bezier(0.15, 0.7, 0.35, 1) both; }
@keyframes pk-petal {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(var(--s)) rotate(0); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(var(--s)) rotate(var(--r)); }
}

/* Goal: the plate at the bottom (550 / 1100 = 0.5), its track open (goal-open.webp: x 62–1032, y 22–118) with the bar
   drawn under it, so the blossoms at both ends stay in front; symbol, title and count above it. The bar starts where
   the left blossoms end (128 px), so a small share is seen at once. */
.is-painted .pk-goal-art { inset: auto; left: 0; top: 0; width: 1100px; height: 260px; transform: scale(0.5); transform-origin: 0 0; }
.is-painted .pk-goal-plate { top: 117px; height: 143px; }
.is-painted .pk-goal-track { z-index: auto; left: 62px; top: 139px; width: 971px; height: 97px; transform: none; border: 0; border-radius: 48px; background: var(--pk-track); }
.is-painted .pk-goal-track::after { background: linear-gradient(to bottom, rgba(255, 255, 255, 0.16), transparent 50%); }
.is-painted .pk-goal-fill { width: calc(min(1, var(--pk-share, 0) * 1000) * 128px + var(--pk-share, 0) * 843px); transform: none !important; border-radius: 48px; background: linear-gradient(90deg, var(--pk-fill, #F27CA8), var(--pk-fill-light, #FFB3CB) 62%, var(--pk-highlight)); box-shadow: inset 0 6px 0 rgba(255, 255, 255, 0.35); transition: width 0.45s ease-out; }
.is-painted .pk-goal-icon { position: absolute; left: 6px; top: 4px; width: 106px; height: 106px; object-fit: contain; filter: drop-shadow(0 4px 3px rgba(90, 22, 56, 0.4)); }
.is-painted .pk-goal-title { left: 122px; top: 18px; width: 470px; height: 84px; }
.is-painted .pk-goal-title .pk-heading.is-text { justify-content: flex-start; }
.is-painted .pk-goal.no-numbers .pk-goal-title { width: 960px; }
.is-painted .pk-goal-count { left: 600px; top: 24px; width: 490px; height: 80px; font: 900 52px/80px var(--pk-font); letter-spacing: 0; }
.is-painted .pk-goal.is-reached .pk-goal-track { animation: pk-reached-painted 1.2s ease-out; }
@keyframes pk-reached-painted { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 36px 10px var(--pk-highlight); } }

/* Label: the plate at the bottom (480 / 1100 = 0.4364, cream x 144–1068, y 39–90 of the plate), the caption above it. */
.is-painted .pk-label-art { inset: auto; left: 0; top: 0; width: 1100px; height: 188px; transform: scale(0.436364); transform-origin: 0 0; }
.is-painted .pk-label-art .pk-fill { top: 57px; height: 131px; }
.pk-label-icon { display: none; }
.is-painted .pk-label-icon { display: block; position: absolute; left: 152px; top: 80px; width: 84px; height: 84px; object-fit: contain; }
.is-painted .pk-label-icon[hidden] { display: none; }
.is-painted .pk-label-caption { left: 24px; top: 0; width: 1050px; height: 54px; font: 800 38px/54px var(--pk-font); letter-spacing: 0.06em; }
.is-painted .pk-label-value { left: 250px; top: 84px; width: 800px; height: 76px; font: 800 54px/76px var(--pk-font); letter-spacing: 0; color: var(--pk-plum); text-shadow: none; }

/* Big moment: the caption on the gold plate in the calm sky at the top middle; the crane and the storm of petals. */
.is-painted .pk-cine-caption { left: 50% !important; top: 64px !important; width: 900px; height: 209px; padding: 0; transform: translateX(-50%) scale(0.94); background: var(--pk-plate-big) center / 100% 100% no-repeat; border: 0; clip-path: none; }
.is-painted .pk-cine-caption.is-on { transform: translateX(-50%); }
.is-painted .pk-cine-title { position: absolute; left: 212px; top: 46px; width: 508px; height: 60px; color: var(--pk-plum); }
.is-painted .pk-cine-name { position: absolute; left: 212px; top: 108px; width: 508px; margin: 0; text-align: center; font: 800 46px/56px var(--pk-font); color: var(--pk-name, #B8285F); }
/* Christmas: its gold plate carries bows and baubles further in (free x 306–883 of 1100 at the title, measured
   2026-11-28; "Weihnachtsgestöber" touched the bows), so its text stays in that narrower area. */
[data-pack="christmas"].is-painted .pk-cine-title, [data-pack="christmas"].is-painted .pk-cine-name { left: 258px; width: 460px; }
[data-pack="christmas"].is-painted .pk-alert-card.is-big .pk-alert-title, [data-pack="christmas"].is-painted .pk-alert-card.is-big .pk-alert-name { left: 316px; width: 562px; }
/* The flier (crane, raven, owl, bat, butterfly): its turning point (its nose) is set per pack in pack-cinematic.js. The
   storm is shown by the moment that has one (packs.js "flights"). */
.pk-crane { object-fit: fill; transform-origin: 98% 50%; will-change: transform, opacity, left, top; filter: drop-shadow(0 10px 12px rgba(60, 20, 50, 0.25)); }
.pk-storm { inset: 0; width: 100%; height: 100%; }

/* Camera frames: the animated frame (frame-motion.js) in a box of the shape; its canvas reaches past the box. */
.pk-frame-motion { position: absolute; --w-cam-band: 0px; pointer-events: none; filter: drop-shadow(0 8px 14px rgba(60, 20, 50, 0.35)); }
.pk-frame-motion[hidden] { display: none; }

/* Chat: cream rows with the pack's pink edge, names in deep pink. */
.is-painted .pk-msg { background: rgba(255, 247, 243, 0.95); color: var(--pk-plum); border-radius: 0.55em; border-inline-start-width: 0.25em; font-weight: 700; }
.is-painted .pk-msg strong { color: var(--pk-name, #B8285F); font-weight: 900; }

/* Stream screens: the painted label plate for the pack's name and the place, no glass plates, no sun. */
.pk-screen-where-plate, .pk-screen-where-icon { display: none; }
.is-painted .pk-plate, .is-painted .pk-seal { display: none; }
.is-painted .pk-screen-kicker { width: 340px; height: 44px; margin-inline-start: -52px; background: var(--pk-plate-label) center / 100% 100% no-repeat; }
.is-painted .pk-screen-kicker span, .is-painted .pk-screen-air span { padding-inline-start: 34px; font: 800 22px/1 var(--pk-font); letter-spacing: 0.1em; color: var(--pk-plum); }
.is-painted .pk-screen-count { padding: 10px 30px; border: 3px solid var(--pk-accent); border-radius: 999px; background: rgba(255, 247, 243, 0.95); color: var(--pk-plum); font: 900 30px/1.2 var(--pk-font); }
/* Neon writes white (its plates are smoked glass): its chat rows and countdown are that glass too, not the light paper of
   the other painted packs (white on white, found in the pack clips 2026-11-28). */
[data-pack="neon"].is-painted .pk-msg, [data-pack="neon"] .pk-screen-count,
[data-pack="neon-xmas"].is-painted .pk-msg, [data-pack="neon-xmas"] .pk-screen-count,
[data-pack="merry-vice-city"].is-painted .pk-msg, [data-pack="merry-vice-city"] .pk-screen-count { background: rgba(14, 8, 32, 0.86); }   /* neon's Christmas version and Merry Vice City too (2026-11-29) */
[data-pack="merry-vice-city"].is-painted .pk-msg strong { color: #FFB3BC; }   /* the name in light candy red on the dark row */
.is-painted .pk-screen-count.is-done { color: var(--pk-name, #B8285F); }
.is-painted .pk-screen-note { font: 800 36px/1.3 var(--pk-font); }
.is-painted .pk-screen-where { left: 45px; top: 984px; width: 440px; height: 52px; }
.is-painted .pk-screen-where-plate { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.is-painted .pk-screen-where-icon { display: block; position: absolute; left: 66px; top: 8px; width: 36px; height: 36px; object-fit: contain; }
.is-painted .pk-screen-where-name { left: 116px; height: 52px; font: 800 24px/1 var(--pk-font); color: var(--pk-plum); letter-spacing: 0.08em; }
.is-painted .pk-screen-air { left: 1630px; width: 260px; height: 40px; background: var(--pk-plate-label) center / 100% 100% no-repeat; }
.is-painted .pk-screen-air span { padding-inline-start: 0; }
@media (prefers-reduced-motion: reduce) {
  .is-painted .pk-alert-card.is-on, .is-painted .pk-alert-card.is-on:not(.is-still) .pk-alert-icon, .pk-petal { animation: none; }
  .is-painted .pk-alert-card.is-on { opacity: 1; }
  .is-painted .pk-goal-fill { transition: none; }
}

/* ---------- "HUD" packs (packs.js look "hud": Most Wanted, then Criminal Empire, Tropical Outlaws, Vice Breaking News,
   Vice Viral). One frame for all five, taken from their overlay.css: dark glass plates (127° from --pk-plate to
   --pk-plateDeep), a red edge on the left and a blue one on the right, a line of light on top, titles in a heavy slanted
   face, small captions in a spaced monospace, names in the pack's yellow. Drawn in code from the pack's colours, so the
   other four packs need only their colours. Sizes in the widgets' own pixels (the scene scales them). ---------- */
[data-pack].is-hud { --pk-font: "Pack most-wanted", Inter, "Segoe UI", Arial, sans-serif; --pk-mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace; }
[data-pack="most-wanted"] { --pk-font: "Pack most-wanted", Inter, "Segoe UI", Arial, sans-serif; }
.is-hud .pk-heading-text { font: italic 900 92cqh/1 "Arial Black", "Segoe UI Black", Inter, "Leelawadee UI", Thonburi, "Noto Sans Thai", system-ui, sans-serif; letter-spacing: -0.045em; text-transform: uppercase; transform: skewX(-5deg); }
.is-hud .pk-alert-art, .is-hud .pk-goal-art, .is-hud .pk-label-art, .is-hud .pk-meter-art {
  background: linear-gradient(127deg, var(--pk-plate), var(--pk-plateDeep) 64%); border: 1px solid var(--pk-line);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.13), inset 0 -2px 0 rgba(0, 0, 0, 0.56); box-sizing: border-box;
}

/* Alert: the plate 720 × 150 in the middle of the box, edges red and blue, the light line on top, the symbol at the left. */
.is-hud .pk-alert-art { inset: auto; left: 0; top: 37px; width: 720px; height: 150px; border-width: 2px 7px; border-left-color: var(--pk-accent); border-right-color: var(--pk-highlight); }
.is-hud .pk-alert-art::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: linear-gradient(90deg, var(--pk-accent), transparent 40% 60%, var(--pk-edgeEnd, var(--pk-highlight))); box-shadow: 0 0 14px var(--pk-glow, rgba(165, 102, 242, 0.7)); }
.is-hud .pk-alert-icon { left: 20px; top: 41px; width: 60px; height: 60px; filter: drop-shadow(0 0 10px rgba(255, 212, 71, 0.45)); }
.is-hud .pk-alert-title { left: 96px; top: 24px; width: 590px; height: 50px; color: var(--pk-text); filter: drop-shadow(3px 4px 0 #090911); }
.is-hud .pk-alert-name { left: 98px; top: 82px; width: 588px; height: 42px; font: 600 30px/42px var(--pk-font); letter-spacing: -0.01em; color: var(--pk-yellow); text-shadow: 0 2px 2px rgba(0, 0, 0, 0.6); }
.is-hud .pk-alert-sweep { left: 0; top: 0; width: 100%; height: 100%; clip-path: none; }
.is-hud .pk-alert-sweep::after { background: linear-gradient(100deg, transparent, rgba(247, 248, 250, 0.28), transparent); }
/* The big ones (big gift, new top gifter, goal, top wanted level): the police light runs over the edges for two seconds. */
.is-hud .pk-alert-card.is-big .pk-alert-art { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.13), inset 0 -2px 0 rgba(0, 0, 0, 0.56), 0 0 26px rgba(24, 139, 255, 0.35); }
.is-hud .pk-alert-card.is-big.is-on:not(.is-still) .pk-alert-art { animation: pk-hud-strobe 0.42s steps(1) 0.1s 5; }
/* The pack's two edge colours in turn (Most Wanted: police red and blue, Criminal Empire: gold and bronze …). */
@keyframes pk-hud-strobe { 0% { box-shadow: -18px 0 34px var(--pk-accent), inset 0 2px 0 rgba(255, 255, 255, 0.13); } 50% { box-shadow: 18px 0 34px var(--pk-highlight), inset 0 2px 0 rgba(255, 255, 255, 0.13); } }
.is-hud .pk-alert-card.is-big.is-on:not(.is-still) .pk-alert-icon { animation: pk-icon 0.45s 0.3s both, pk-hud-glow 1.1s 0.8s ease-in-out infinite; }
@keyframes pk-hud-glow { 50% { filter: drop-shadow(0 0 18px rgba(255, 212, 71, 0.9)); transform: scale(1.08); } }

/* Goal: caption small and spaced, the count under it, the striped yellow bar in its dark track. */
.is-hud .pk-goal-art { border-left: 5px solid var(--pk-accent); }
.is-hud .pk-goal-title { left: 18px; top: 13px; width: 505px; height: 22px; }
.is-hud .pk-goal-title .pk-heading-text, .is-hud .pk-label-caption, .is-hud .pk-meter-caption { font: 600 82cqh/1 var(--pk-mono); font-style: normal; transform: none; letter-spacing: 0.09em; text-transform: uppercase; color: var(--pk-muted); }
/* Thai has no monospace face of its own and spaced letters tear its syllables apart: plain face, no spacing. */
:lang(th) .is-hud .pk-goal-title .pk-heading-text, :lang(th) .is-hud .pk-label-caption, :lang(th) .is-hud .pk-meter-caption { font-family: var(--pk-font); letter-spacing: 0; }
.is-hud .pk-goal-count { left: 18px; top: 39px; width: 505px; height: 40px; font: 600 30px/40px var(--pk-font); text-align: start; letter-spacing: 0; text-shadow: none; }
.is-hud .pk-goal-track { left: 18px; top: 88px; width: 507px; height: 25px; transform: none; padding: 3px; box-sizing: border-box; background: #080b16; border: 1px solid var(--pk-trackLine, #51607d); }
.is-hud .pk-goal-track::after { display: none; }
.is-hud .pk-goal.no-numbers .pk-goal-title { top: 30px; }
.is-hud .pk-goal.no-numbers .pk-goal-track { top: 68px; }
.is-hud .pk-goal-fill { width: calc(var(--pk-share, 0) * 100%); transform: none !important; background: repeating-linear-gradient(110deg, var(--pk-yellow) 0 22px, #e8981c 22px 25px, #2f2107 25px 28px); transition: width 0.4s ease-out; }
.is-hud .pk-goal.is-reached .pk-goal-track { animation: pk-hud-reached 1.2s ease-out; }
@keyframes pk-hud-reached { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 20px 5px rgba(255, 212, 71, 0.75); } }

/* Label: caption and value on the plate, the red edge on the left. */
.is-hud .pk-label-art { border-left: 5px solid var(--pk-accent); }
.is-hud .pk-label-caption { left: 18px; top: 12px; width: 445px; height: 20px; font-size: 17px; line-height: 20px; }
.is-hud .pk-label-value { left: 18px; top: 35px; width: 445px; height: 38px; font: 600 27px/38px var(--pk-font); letter-spacing: 0; text-shadow: none; }

/* Wanted level (pack-meter.js), 540 × 105: the caption at the left, five stars at the right, the blue edge on the right
   (the pack's .wanted plate); a thin line under the stars runs out with the search. */
.pk-meter { position: absolute; inset: 0; }
.pk-meter-art { position: absolute; inset: 0; }
.is-hud .pk-meter-art { border-right: 5px solid var(--pk-highlight); }
.pk-meter-caption { position: absolute; left: 20px; top: 8px; width: 168px; height: 87px; display: flex; align-items: center; overflow: hidden; overflow-wrap: normal; word-break: keep-all; }
.is-hud .pk-meter-caption { font-size: 19px; line-height: 1.25; }
.pk-meter-stars { position: absolute; left: 196px; top: 20px; width: 318px; height: 56px; display: flex; justify-content: space-between; align-items: center; }
.pk-meter-star { width: 56px; height: 56px; filter: grayscale(1) brightness(1.25) opacity(0.5); transition: filter 0.25s; }
.pk-meter-star.is-lit { filter: drop-shadow(0 0 9px rgba(255, 212, 71, 0.6)); }
.pk-meter-star.is-new { animation: pk-star-in 0.34s cubic-bezier(0.2, 0.9, 0.3, 1.25) both; }
@keyframes pk-star-in { 0% { transform: scale(2.1) rotate(-14deg); opacity: 0.2; } 100% { transform: none; opacity: 1; } }
.pk-meter.is-max .pk-meter-star { animation: pk-star-max 0.5s steps(1) infinite; }
@keyframes pk-star-max { 50% { filter: drop-shadow(0 0 16px #fff) brightness(1.35); } }
.pk-meter-time { position: absolute; left: 196px; top: 86px; width: 318px; height: 4px; background: rgba(81, 96, 125, 0.6); overflow: hidden; }
.pk-meter-time i { display: block; height: 100%; background: var(--pk-highlight); transform-origin: 0 50%; transform: scaleX(0); }

/* News ticker (pack-ticker.js), 1920 × 76, as in Vice Breaking News' own ticker (overlay.css .news-ticker, .ticker-only):
   a light bar, the badge cut at its right edge (LIVE red, City desk blue, Top story yellow), one headline that waits,
   glides to its end and waits again. */
.pk-ticker { position: absolute; left: 8px; right: 8px; bottom: 10px; height: 56px; display: flex; align-items: stretch; background: var(--pk-text, #f8f9fc); color: var(--pk-ink, #10172e); border: 2px solid var(--pk-text, #f8f9fc); box-shadow: 0 4px 8px rgba(7, 12, 25, 0.63); overflow: hidden; }
/* The headline is dark on the light bar: the rule for every pack element ([data-pack] { color: var(--pk-text) }) is stronger
   than .pk-ticker and made the line white on white (founder's studio walk 2026-12-01: only the profile picture showed). */
.pk-ticker[data-pack] { color: var(--pk-ink, #10172e); }
.pk-ticker-badge { flex: none; padding-inline: 16px 30px; background: #bc152b; color: #fff; font: italic 900 24px/52px "Arial Black", "Segoe UI Black", Inter, "Leelawadee UI", Thonburi, "Noto Sans Thai", system-ui, sans-serif; text-transform: uppercase; white-space: nowrap; clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%); }
.pk-ticker:dir(rtl) .pk-ticker-badge { clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%); }
.pk-ticker[data-badge="tickerCity"] .pk-ticker-badge { background: #164d97; }
.pk-ticker[data-badge="tickerTop"] .pk-ticker-badge { background: var(--pk-yellow, #ffd54a); color: var(--pk-ink, #10172e); }
.pk-ticker-crawl { flex: 1; min-width: 0; display: flex; align-items: center; margin-inline-start: 12px; overflow: hidden; white-space: nowrap; }
.pk-ticker-text { display: block; font: 700 24px/1 var(--pk-font); text-transform: uppercase; will-change: transform; }
.pk-ticker-text.is-moving { animation: pk-ticker var(--pk-ticker-ms, 6800ms) linear both; }
@keyframes pk-ticker { 0%, 13% { transform: translateX(0); } 88%, 100% { transform: translateX(var(--pk-shift, 0px)); } }
:lang(th) .pk-ticker-badge, :lang(th) .pk-ticker-text { font-family: var(--pk-font); font-style: normal; text-transform: none; }

/* Chat rows: dark, red edge, names in blue. */
.is-hud .pk-msg { background: var(--pk-plateDeep, rgba(10, 16, 36, 0.9)); border-inline-start-color: var(--pk-accent); }
.is-hud .pk-msg strong { color: var(--pk-name, #81caff); }
/* The bar of a pack's special piece (pack-meter.js "bar": heist, feeding, going viral, breaking story). */
.pk-meter.is-bar .pk-meter-stars { justify-content: flex-start; gap: 12px; }
.pk-meter-icon { flex: none; width: 52px; height: 52px; }
.pk-meter-track { position: relative; flex: 1; height: 24px; padding: 3px; box-sizing: border-box; background: #080b16; border: 1px solid var(--pk-trackLine, #51607d); overflow: hidden; }
.pk-meter-fill { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); transition: transform 0.4s ease-out; background: repeating-linear-gradient(110deg, var(--pk-yellow) 0 22px, #e8981c 22px 25px, #2f2107 25px 28px); }
.pk-meter-share { flex: none; width: 64px; text-align: end; font: 600 24px/1 var(--pk-font); color: var(--pk-text); font-variant-numeric: tabular-nums; }
.pk-meter.is-grown .pk-meter-icon { animation: pk-star-in 0.34s cubic-bezier(0.2, 0.9, 0.3, 1.25) both; }
.pk-meter.is-bar.is-max .pk-meter-track { animation: pk-hud-reached 0.6s ease-out infinite; }

/* Big moment: the caption on the alert's plate; police light from both sides; the wanted stars in a row. */
.is-hud .pk-cine-caption { background: linear-gradient(127deg, var(--pk-plate), var(--pk-plateDeep) 64%); border: 2px solid var(--pk-line); border-left: 7px solid var(--pk-accent); border-right: 7px solid var(--pk-highlight); clip-path: none; box-shadow: 0 0 26px rgba(10, 16, 36, 0.6); }
.is-hud .pk-cine-title { height: 60px; filter: drop-shadow(3px 4px 0 #090911); }
.is-hud .pk-cine-name { font: 600 38px/1.2 var(--pk-font); color: var(--pk-yellow); }
.pk-hud-lights { inset: 0; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
/* Each light only over its own side (two layers the size of the picture, blended on every frame, cost 5 frames a second). */
.pk-hud-lights i { position: absolute; top: 0; height: 100%; width: 40%; opacity: 0; }
.pk-hud-red { left: 0; background: radial-gradient(ellipse 137% 85% at 0% 55%, rgba(241, 58, 70, 0.8), transparent 70%); }
.pk-hud-blue { right: 0; background: radial-gradient(ellipse 137% 85% at 100% 55%, rgba(24, 139, 255, 0.8), transparent 70%); }
.pk-hud-stars { left: 0; right: 0; top: 304px; height: 100px; justify-content: center; gap: 26px; }
/* The glow is a gradient behind the star, not a filter: two drop shadows, drawn anew while the stars grow and fade, cost
   Firefox 20 frames a second (measured 2026-11-27). */
.pk-hud-star { width: 100px; height: 100px; opacity: 0; background: radial-gradient(closest-side, rgba(255, 212, 71, 0.6), rgba(255, 212, 71, 0.18) 60%, transparent); }
.pk-cine-fx[data-clip="clipPursuit"] > .pk-hud-lights, .pk-cine-fx[data-clip="clipSearch"] > .pk-hud-lights, .pk-cine-fx[data-clip="clipMaxWanted"] > .pk-hud-lights { display: block; }
.pk-cine-fx[data-clip="clipMaxWanted"] > .pk-hud-stars { display: flex; }
.pk-hud-lights { z-index: 2500; }
.pk-hud-stars { z-index: 3000; }
/* The chase (pack-cinematic.js carOf): each car in a group placed in depth by z-index; its reflection on the wet road
   (flipped, soft, fading), its shadow, the glow of its light bar. */
.pk-hud-car { position: absolute; inset: 0; }
.pk-hud-car > * { position: absolute; display: block; }
.pk-hud-body { object-fit: fill; }
/* The reflection comes made (upside down, soft, fading: Overlays/docs/gta6/hud-teile.py); no filter, no mask per frame. */
.pk-hud-mirror { object-fit: fill; }
.pk-hud-shadow { border-radius: 50%; background: radial-gradient(closest-side, rgba(4, 6, 16, 0.7), rgba(4, 6, 16, 0.3) 60%, transparent); }
.pk-hud-bar { border-radius: 50%; mix-blend-mode: screen; }
.pk-hud-bar.is-red { background: radial-gradient(closest-side, rgba(255, 70, 80, 0.95), rgba(241, 58, 70, 0.35) 45%, transparent); }
.pk-hud-bar.is-blue { background: radial-gradient(closest-side, rgba(90, 170, 255, 0.95), rgba(24, 139, 255, 0.35) 45%, transparent); }
.pk-hud-spray { inset: 0; width: 100%; height: 100%; z-index: 1200; }
/* The helicopter: body and rotor blades in one box that tilts; its searchlight and the spot on the street. */
.pk-hud-heli { z-index: 2100; transform-origin: 50% 50%; }
.pk-hud-heli > img { position: absolute; display: block; object-fit: fill; }
.pk-hud-heli-body { left: 0; top: 0; width: 100%; height: 100%; }
/* Plain see-through light, no blend mode: "screen" over the moving camera layer made the browser compose both layers anew
   on every frame (measured 2026-11-27: 48 instead of 60 frames a second while the light came on). */
.pk-hud-beam { z-index: 2000; pointer-events: none; background: linear-gradient(to bottom, rgba(255, 246, 214, 0.8), rgba(255, 240, 200, 0.08)); }
.pk-hud-spot { z-index: 2050; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 248, 225, 0.55), rgba(255, 238, 190, 0.18) 55%, transparent); }
/* The other packs' moments (pack-moments.js): actors with a turning part and lights, a second painting of the place fading
   in, one canvas for the effects at half resolution. */
.pk-hud-actor { position: absolute; }
.pk-hud-actor > * { position: absolute; display: block; }
.pk-hud-actor-body { left: 0; top: 0; width: 100%; height: 100%; object-fit: fill; }
.pk-hud-actor-glow { border-radius: 50%; pointer-events: none; }
.pk-hud-actor-mirror { position: absolute; object-fit: fill; pointer-events: none; }
.pk-hud-swap { inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 5; }
.pk-hud-fxcanvas { inset: 0; width: 100%; height: 100%; z-index: 1500; pointer-events: none; }
/* The camera's lean moves the place and the vehicles as one layer on the graphics card. */
.is-hud .pk-cine-place, .is-hud .pk-cine-fx { will-change: transform; }

/* Stream screens (the pack's 01_STREAM_SCREENS): the place darkened in the middle and at the edges, five stars above a
   heavy yellow title, the countdown in a dark band; the pack's name at the top right, the place at the bottom left. */
.is-hud .pk-plate, .is-hud .pk-seal, .is-hud .pk-screen-rule, .is-hud .pk-screen-dot { display: none; }
.is-hud.pk-screen .pk-screen-ui { background: radial-gradient(ellipse at 50% 47%, rgba(10, 16, 36, 0.85), transparent 64%), linear-gradient(0deg, rgba(10, 16, 36, 0.79), transparent 36%, transparent 70%, rgba(10, 16, 36, 0.79)); }
.is-hud .pk-screen-kicker { width: 480px; height: 70px; margin-inline-start: -122px; margin-top: -40px; }
.is-hud .pk-screen-kicker span { display: none; }
/* The five stars are Most Wanted's sign; the other hud packs show their title alone. */
.is-hud:not([data-pack="most-wanted"]) .pk-screen-kicker { display: none; }
.is-hud .pk-screen-kicker::before { content: "\2605\2605\2605\2605\2605"; font: 67px/1 Arial, sans-serif; letter-spacing: 0.08em; color: var(--pk-yellow); text-shadow: 0 0 13px rgba(255, 212, 71, 0.45), 0 2px 0 #452900; }
.is-hud .pk-screen-title { color: var(--pk-yellow); }
.is-hud .pk-screen-count { padding: 10px 24px; border: 0; border-block: 2px solid rgba(255, 212, 71, 0.47); border-radius: 0; background: rgba(10, 16, 36, 0.92); color: var(--pk-yellow); font: 40px/1.2 var(--pk-mono); letter-spacing: 0.12em; }
.is-hud .pk-screen-count::before { display: none; }
.is-hud .pk-screen-count.is-done { color: var(--pk-yellow); }
.is-hud .pk-screen-note { font: 600 34px/1.3 var(--pk-font); }
.is-hud .pk-screen-where { left: 68px; top: 990px; width: 700px; height: 40px; }
.is-hud .pk-screen-where-name { left: 0; height: 40px; font: 22px/1 var(--pk-mono); letter-spacing: 0.16em; color: var(--pk-text); }
.is-hud .pk-screen-air { left: 1270px; top: 44px; width: 582px; height: 40px; justify-content: flex-end; }
.is-hud .pk-screen-air span { font: 22px/1 var(--pk-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--pk-yellow); }
@media (prefers-reduced-motion: reduce) {
  .is-hud .pk-alert-card.is-big.is-on:not(.is-still) .pk-alert-art, .is-hud .pk-alert-card.is-big.is-on:not(.is-still) .pk-alert-icon, .pk-meter-star.is-new, .pk-meter.is-max .pk-meter-star { animation: none; }
  .is-hud .pk-goal-fill { transition: none; }
}
