:root {
  --ink: #10264a;
  --ink-soft: #4b6488;
  --ink-faint: #5a7395;
  --red: #c8102e;
  --red-bright: #ef3349;
  --gold: #ffd45c;
  --ice: #dcecff;
  --line: #cfe0f3;
  --festive: 'Mountains of Christmas', 'Georgia', serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

body {
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: #fff;
  background: #050d1f;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.15;
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}

/* ---- the scene ------------------------------------------------------------ */

#sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #040b1c 0%, #0a1a35 30%, #16335d 62%, #33598c 88%, #4a74a8 100%);
}

#stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.aurora {
  position: absolute;
  left: -15vw;
  width: 130vw;
  height: 42vh;
  filter: blur(36px);
  mix-blend-mode: screen;
  pointer-events: none;
  /* The northern lights only come out now and then (scene.js says when). */
  opacity: 0;
  visibility: hidden;
  transition: opacity 9s ease-in-out, visibility 0s linear 9s;
}
#sky.aurora-on .aurora,
#sky.blood .aurora {
  opacity: 0.55;
  visibility: visible;
  transition: opacity 9s ease-in-out, visibility 0s;
}
.aurora.one {
  top: 2vh;
  background: radial-gradient(ellipse 40% 45% at 30% 55%, rgba(70, 255, 190, 0.45), transparent 70%),
    radial-gradient(ellipse 35% 35% at 55% 40%, rgba(60, 200, 255, 0.35), transparent 70%);
  animation: aurora 22s ease-in-out infinite alternate;
}
.aurora.two {
  top: 10vh;
  background: radial-gradient(ellipse 30% 40% at 72% 45%, rgba(150, 120, 255, 0.35), transparent 70%),
    radial-gradient(ellipse 30% 30% at 88% 60%, rgba(80, 255, 200, 0.25), transparent 70%);
  animation: aurora 28s ease-in-out infinite alternate-reverse;
}
@keyframes aurora {
  from {
    transform: translateX(-4vw) skewX(-8deg) scaleY(0.9);
  }
  to {
    transform: translateX(5vw) skewX(10deg) scaleY(1.15);
  }
}

/* ---- the blood-red sky, once Santa's been shot down ---- */
.blood-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0d0104 0%, #24040c 30%, #470914 60%, #6d1119 86%, #84191c 100%);
  clip-path: circle(0 at var(--bleed-x, 50%) var(--bleed-y, 20%));
  pointer-events: none;
}
#sky.blood .blood-wash {
  clip-path: circle(150% at var(--bleed-x, 50%) var(--bleed-y, 20%));
}
#sky.bleeding .blood-wash {
  transition: clip-path 9s cubic-bezier(0.5, 0, 0.7, 1);
}
#sky.blood .aurora.one {
  background: radial-gradient(ellipse 45% 40% at 35% 55%, rgba(255, 40, 60, 0.55), transparent 70%),
    radial-gradient(ellipse 35% 35% at 60% 40%, rgba(255, 110, 60, 0.35), transparent 70%);
}
#sky.blood .aurora.two {
  background: radial-gradient(ellipse 30% 40% at 72% 45%, rgba(200, 20, 80, 0.4), transparent 70%),
    radial-gradient(ellipse 30% 30% at 88% 60%, rgba(255, 60, 40, 0.3), transparent 70%);
}
#sky.blood #moon {
  transform: scale(1.6);
  transform-origin: 70% 30%;
  background: radial-gradient(circle at 36% 34%, #ffb59c, #e0452f 52%, #8a1616);
  box-shadow: 0 0 50px 14px rgba(255, 60, 40, 0.45), 0 0 160px 60px rgba(200, 20, 30, 0.25);
}
#sky.blood #moon::before,
#sky.blood #moon::after {
  background: rgba(110, 15, 15, 0.35);
}
#sky.bleeding #moon {
  animation: moon-rise 11s cubic-bezier(0.3, 0, 0.3, 1) both;
}
@keyframes moon-rise {
  from {
    transform: translateY(45vh) scale(1.2);
  }
}
#sky.blood ~ #frost {
  background: radial-gradient(ellipse 34% 30% at 0 0, rgba(255, 190, 190, 0.22), transparent 70%),
    radial-gradient(ellipse 34% 30% at 100% 0, rgba(255, 190, 190, 0.2), transparent 70%),
    radial-gradient(ellipse 30% 26% at 0 100%, rgba(255, 220, 220, 0.18), transparent 70%),
    radial-gradient(ellipse 30% 26% at 100% 100%, rgba(255, 220, 220, 0.18), transparent 70%);
  box-shadow: inset 0 0 110px rgba(255, 120, 120, 0.25);
}
@media (prefers-reduced-motion: reduce) {
  #sky.bleeding .blood-wash {
    transition-duration: 2s;
  }
  #sky.bleeding #moon {
    animation: none;
  }
}

#moon {
  position: absolute;
  top: 9vh;
  right: 11vw;
  width: clamp(56px, 8vw, 116px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 34%, #fffef6, #f3eed9 58%, #d9d2b6);
  box-shadow: 0 0 40px 10px rgba(255, 250, 220, 0.35), 0 0 140px 50px rgba(190, 215, 255, 0.18);
}
#moon::before,
#moon::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(190, 180, 150, 0.35);
}
#moon::before {
  width: 22%;
  height: 22%;
  top: 30%;
  left: 52%;
}
#moon::after {
  width: 14%;
  height: 14%;
  top: 60%;
  left: 30%;
}

#sleigh {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  width: 220px;
  opacity: 0;
  transition: opacity 0.8s;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255, 230, 160, 0.45));
  will-change: transform;
}
#sleigh svg {
  display: block;
  width: 100%;
  height: auto;
}
#sleigh.flip svg {
  transform: scaleX(-1);
}
.deer {
  animation: gallop 0.42s ease-in-out infinite alternate;
}
.legs path {
  stroke: #6e4521;
  stroke-width: 3;
  stroke-linecap: round;
  fill: none;
}
.legs {
  transform-box: fill-box;
  transform-origin: 50% 0;
}
.legs.front {
  animation: legs 0.42s ease-in-out infinite alternate;
}
.legs.back {
  animation: legs 0.42s ease-in-out infinite alternate-reverse;
}
.rudolph {
  animation: nose 0.9s ease-in-out infinite alternate;
}
@keyframes gallop {
  to {
    transform: translateY(-3px);
  }
}
@keyframes legs {
  from {
    transform: rotate(-22deg);
  }
  to {
    transform: rotate(22deg);
  }
}
@keyframes nose {
  from {
    filter: drop-shadow(0 0 2px #ff3b3b);
  }
  to {
    filter: drop-shadow(0 0 7px #ff3b3b) brightness(1.3);
  }
}

#landscape {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: clamp(250px, 27.5vw, 44vh);
  pointer-events: none;
}
#landscape svg {
  display: block;
  width: 100%;
  height: 100%;
}
.twinkle,
.bulb {
  animation: twinkle 1.5s ease-in-out infinite alternate;
}
.bulb {
  animation-duration: 1.1s;
}
@keyframes twinkle {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}
.tree-star {
  animation: twinkle 2.2s ease-in-out infinite alternate;
}
.smoke {
  transform-box: fill-box;
  transform-origin: center;
  animation: smoke 4s linear infinite;
  opacity: 0;
}
@keyframes smoke {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  100% {
    transform: translate(14px, -46px) scale(2.6);
    opacity: 0;
  }
}
.glint {
  animation: glint 3.4s ease-in-out infinite;
  opacity: 0;
}
@keyframes glint {
  50% {
    opacity: 1;
  }
}
.lorry-text {
  font-family: var(--festive);
  font-weight: 700;
  font-size: 34px;
  fill: #fff;
}

#heads {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
#snow {
  position: fixed;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#frost {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(ellipse 34% 30% at 0 0, rgba(225, 242, 255, 0.32), transparent 70%),
    radial-gradient(ellipse 34% 30% at 100% 0, rgba(225, 242, 255, 0.28), transparent 70%),
    radial-gradient(ellipse 30% 26% at 0 100%, rgba(255, 255, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 30% 26% at 100% 100%, rgba(255, 255, 255, 0.22), transparent 70%);
  box-shadow: inset 0 0 110px rgba(190, 225, 255, 0.3);
}
#icicles {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  height: 34px;
  pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0, 20, 60, 0.3));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='34' viewBox='0 0 120 34'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23bfe3ff' stop-opacity='.6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 0H120V5L114 7L110 22L106 7L98 8L95 30L91 8L82 6L79 16L76 6L66 7L62 26L58 7L48 6L45 14L42 6L33 8L29 32L25 8L16 6L13 18L10 6L4 7L2 12L0 6Z' fill='url(%23g)'/%3E%3C/svg%3E")
    repeat-x top left / 120px 34px;
}

/* ---- layout ------------------------------------------------------------------ */

#app {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
body.in-family #app {
  pointer-events: none;
  overflow: hidden;
}
body.in-family #app > * {
  pointer-events: auto;
}
#layer {
  position: relative;
  z-index: 20;
}

.screen {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 64px 16px clamp(110px, 22vh, 260px);
}

.card,
.hero,
.sheet {
  color: var(--ink);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.95), rgba(226, 240, 255, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 70px rgba(2, 8, 26, 0.5), inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.card {
  position: relative;
  width: min(480px, 100%);
  border-radius: 30px;
  padding: 30px 28px 26px;
}

/* Snow settled on top of cards, sheets and pop-ups: one drift that hugs the
   top edge, curls round the corners and droops a little over the front, with
   the odd icicle. Each drift is an SVG drawn by tools/snow-drifts.js (run it
   to redraw them) and used as a three-slice border-image, so the corners keep
   their shape and only the middle stretches. A few different drifts, some
   flipped, keep the panels from looking stamped out of one mould. */
:root {
  --drift-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='60' viewBox='0 0 480 60'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' x2='0' y1='0' y2='60' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='0.4' stop-color='%23f7fbff'/%3E%3Cstop offset='0.5' stop-color='%23dde9f7'/%3E%3Cstop offset='0.6' stop-color='%23bfd3ec'/%3E%3C/linearGradient%3E%3ClinearGradient id='e'%3E%3Cstop offset='0' stop-color='%239db8dd' stop-opacity='.7'/%3E%3Cstop offset='.09' stop-color='%239db8dd' stop-opacity='0'/%3E%3Cstop offset='.91' stop-color='%239db8dd' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%239db8dd' stop-opacity='.7'/%3E%3C/linearGradient%3E%3ClinearGradient id='i' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop offset='0' stop-color='%23eef7ff'/%3E%3Cstop offset='1' stop-color='%23a9d2ff' stop-opacity='.5'/%3E%3C/linearGradient%3E%3Cpath id='b' d='M6.1 41.8C6.3 41.7 6.7 42.1 7.1 41.2C7.6 40.3 7.8 38.2 8.8 36.4C9.9 34.6 11.5 32.3 13.4 30.4C15.3 28.6 17.9 26.7 20.1 25.4C22.4 24.1 25 23.2 27 22.5C29 21.9 28 22.2 32 21.5C36 20.7 45.2 19.4 51.1 18C57 16.6 61.8 14.4 67.3 13C72.8 11.6 78.9 9.8 84.2 9.4C89.4 9 93.2 10.4 98.7 10.7C104.2 11 111 11.5 117.2 11.3C123.5 11.1 130.4 10.2 136.2 9.5C142.1 8.9 147.2 8.1 152.4 7.5C157.6 7 161.6 6.5 167.5 6.2C173.3 6 181.6 6.3 187.3 6C193.1 5.8 196.8 4.7 202.1 4.7C207.3 4.6 213.2 5.5 218.8 5.7C224.4 6 230.3 6 235.5 6C240.8 6 245.3 6.1 250.2 5.9C255.1 5.7 259.5 5.5 264.9 4.7C270.3 4 276.5 1.5 282.6 1.2C288.7 1 295.7 2.7 301.2 3.3C306.8 3.9 310.4 4.5 315.7 4.9C321.1 5.3 327.2 4.9 333.4 5.7C339.6 6.6 347.1 9 352.9 10C358.8 11.1 363 11.8 368.5 12C374.1 12.3 380.5 11.6 386.1 11.4C391.7 11.2 396.9 10.1 402.2 10.8C407.5 11.5 412.6 14.3 418.1 15.8C423.6 17.3 430.2 18.6 435.1 19.5C440.1 20.5 445 21 448 21.5C451 22 451 21.9 453 22.6C454.9 23.2 457.7 24.3 459.8 25.5C461.9 26.7 463.9 28.1 465.7 29.7C467.4 31.4 469.3 33.8 470.4 35.6C471.5 37.4 471.8 39.5 472.3 40.4C472.7 41.3 473.1 40.8 473.3 40.9C472.4 40.8 469.7 40.6 468.2 39.8C466.6 39 465.2 37 463.9 36.1C462.7 35.1 462.3 34.8 460.7 34.1C459.1 33.4 456.7 32.3 454.5 31.8C452.4 31.3 452 31.1 448 31C444 30.9 436 31 430.7 31.2C425.4 31.4 421.3 31.9 416.5 32.4C411.7 32.9 407.1 33.9 402 34C397 34.1 391.7 33.3 386.2 32.8C380.7 32.3 374.6 31.5 369.2 31.2C363.9 30.9 359.2 31 354.2 31C349.2 31 344.6 31 339.3 31.1C334.1 31.2 328.3 31.3 322.6 31.5C316.9 31.8 310.1 32.3 304.9 32.6C299.6 32.9 296.1 33.3 290.9 33.3C285.7 33.3 278.7 33.1 273.6 32.8C268.5 32.6 264.8 32.1 260.4 32C255.9 31.9 251.9 32 246.7 32C241.5 32.1 234.7 32.6 229 32.5C223.3 32.3 217.6 31.4 212.7 31.2C207.8 31.1 203.7 31.3 199.5 31.4C195.2 31.5 191.5 31.7 187.1 31.9C182.8 32.1 178.5 32.4 173.4 32.5C168.3 32.6 162 32.4 156.4 32.3C150.8 32.2 144.8 31.7 139.9 31.9C134.9 32.2 131.3 33.1 126.6 33.7C121.9 34.4 116.8 35.9 111.5 35.9C106.3 35.9 100.2 34.2 95 33.7C89.8 33.2 85.3 32.8 80.5 32.8C75.8 32.7 71.2 33.2 66.5 33.5C61.8 33.7 57 34.4 52.4 34.4C47.9 34.5 43.7 34.2 39.2 33.7C34.7 33.3 28.8 31.7 25.5 31.8C22.2 31.9 21 33.3 19.3 34.1C17.6 34.9 16.7 35.6 15.3 36.6C14 37.7 12.7 39.7 11.2 40.5C9.7 41.4 7 41.6 6.1 41.8Z'/%3E%3CclipPath id='k'%3E%3Cuse href='%23b'/%3E%3C/clipPath%3E%3C/defs%3E%3Cpath d='M147.7 31.1Q149.9 38 151.3 44.9Q152.6 38 155 31.1Z' fill='url(%23i)'/%3E%3Cpath d='M218.8 30.8Q220.8 35.7 222.1 40.5Q223.3 35.7 225.5 30.8Z' fill='url(%23i)'/%3E%3Cpath d='M187.9 30.7Q189.8 34.7 191 38.7Q192.1 34.7 194.1 30.7Z' fill='url(%23i)'/%3E%3Cuse href='%23b' fill='url(%23s)'/%3E%3Crect width='480' height='60' fill='url(%23e)' clip-path='url(%23k)'/%3E%3Cpath d='M228.4 11.4Q228.9 13.7 231.2 14.2Q228.9 14.7 228.4 17.1Q227.9 14.7 225.6 14.2Q227.9 13.7 228.4 11.4ZM333.1 17.3Q333.6 19.4 335.7 19.8Q333.6 20.3 333.1 22.4Q332.6 20.3 330.5 19.8Q332.6 19.4 333.1 17.3ZM268.9 18.4Q269.4 20.6 271.5 21.1Q269.4 21.6 268.9 23.7Q268.4 21.6 266.3 21.1Q268.4 20.6 268.9 18.4ZM349.7 15.3Q350.2 17.6 352.5 18.1Q350.2 18.6 349.7 20.9Q349.2 18.6 346.9 18.1Q349.2 17.6 349.7 15.3ZM89.3 14.3Q89.7 16.1 91.5 16.5Q89.7 16.9 89.3 18.7Q88.9 16.9 87.1 16.5Q88.9 16.1 89.3 14.3Z' fill='%23cfe6ff'/%3E%3C/svg%3E");
  --drift-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='60' viewBox='0 0 480 60'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' x2='0' y1='0' y2='60' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0.1' stop-color='%23fff'/%3E%3Cstop offset='0.4' stop-color='%23f7fbff'/%3E%3Cstop offset='0.5' stop-color='%23dde9f7'/%3E%3Cstop offset='0.6' stop-color='%23bfd3ec'/%3E%3C/linearGradient%3E%3ClinearGradient id='e'%3E%3Cstop offset='0' stop-color='%239db8dd' stop-opacity='.7'/%3E%3Cstop offset='.09' stop-color='%239db8dd' stop-opacity='0'/%3E%3Cstop offset='.91' stop-color='%239db8dd' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%239db8dd' stop-opacity='.7'/%3E%3C/linearGradient%3E%3ClinearGradient id='i' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop offset='0' stop-color='%23eef7ff'/%3E%3Cstop offset='1' stop-color='%23a9d2ff' stop-opacity='.5'/%3E%3C/linearGradient%3E%3Cpath id='b' d='M7.3 40.1C7.5 40 7.9 40.4 8.4 39.5C8.9 38.6 9.2 36.5 10.3 34.8C11.5 33 13.6 30.6 15.3 29.1C16.9 27.5 18.2 26.6 20.2 25.6C22.1 24.5 25.1 23.3 27 22.6C29 21.9 28 22.1 32 21.5C36 20.9 44.5 20 50.9 19C57.3 17.9 64 15.9 70.3 15C76.5 14.2 82.7 14 88.5 13.8C94.4 13.6 99.2 14.3 105.1 13.7C111 13.1 118 11.3 123.7 10.3C129.4 9.4 134.2 8.4 139.2 8.2C144.3 7.9 148.6 8.9 153.7 8.9C158.8 8.9 163.9 8.4 169.7 8.1C175.6 7.9 182.8 6.9 188.9 7.2C195 7.6 200.6 9.7 206.4 10.1C212.2 10.6 218.1 10.1 223.6 9.8C229.1 9.5 234.4 8.8 239.5 8.4C244.6 8 248.7 7.8 254.3 7.2C259.9 6.7 267.6 5.1 273.4 5.2C279.2 5.3 284.2 6.8 289.3 7.7C294.3 8.6 298.3 10.2 303.7 10.6C309.1 11 315.3 10.2 321.6 10.2C327.8 10.2 335.5 10.2 341.2 10.6C346.9 11.1 350.3 12.2 355.6 12.7C360.9 13.3 367.2 13.6 372.9 13.9C378.6 14.2 383.9 14 389.7 14.6C395.4 15.1 401.1 16.4 407.4 17.2C413.6 18 421.4 18.7 427.2 19.3C433 19.9 438.6 20.4 442.1 20.8C445.6 21.2 446.2 21.2 448 21.5C449.8 21.8 451 21.9 453 22.5C455 23.2 457.5 24 459.9 25.4C462.2 26.8 465.1 28.9 467 30.8C469 32.7 470.5 35 471.5 36.8C472.5 38.6 472.7 40.8 473.2 41.7C473.6 42.6 474 42.2 474.1 42.3C473.3 42.1 470.6 41.8 469.1 40.9C467.6 40 466.5 38.1 465.1 36.9C463.7 35.8 462.5 35 460.7 34.1C458.9 33.3 456.7 32.3 454.5 31.8C452.4 31.3 451.1 31.1 448 31C444.9 30.9 440.5 31 435.9 31C431.3 31 425.4 31 420.5 31C415.7 31 411.8 31 406.8 31C401.7 31 395.6 31 390.4 31C385.3 31 380.9 31 375.9 31C370.9 31 365.4 31 360.3 31C355.1 31 350.4 31 344.9 31C339.4 31 332.8 31 327.2 31C321.6 31 316.9 30.8 311.3 31C305.7 31.2 298.6 31.8 293.5 32.3C288.5 32.7 286.1 33 281.1 33.6C276 34.2 268.7 35.9 263.3 35.8C257.9 35.6 253.6 33.3 248.9 32.8C244.2 32.2 239.6 32.4 235 32.5C230.4 32.6 226.4 33 221.2 33.6C216 34.2 209.7 36.6 203.8 36.3C197.9 36 191.1 32.6 185.8 31.9C180.6 31.2 177.2 32.2 172.2 32.2C167.3 32.1 161.4 31.8 156.2 31.7C150.9 31.5 145.6 31.3 140.9 31.3C136.2 31.3 132.4 31.4 128.2 31.5C123.9 31.6 120 31.8 115.3 31.9C110.6 32 105.6 32.1 100.1 32.1C94.7 32.1 87.6 31.8 82.7 31.7C77.7 31.5 75.4 31.4 70.4 31.3C65.4 31.2 58.3 31.1 52.8 31C47.3 31 42.1 30.9 37.5 31C33 31.1 28.5 31.3 25.5 31.8C22.4 32.3 20.7 33.5 19.3 34.1C17.9 34.7 18 34.7 16.9 35.5C15.7 36.4 14.1 38.4 12.5 39.1C10.9 39.9 8.2 39.9 7.3 40.1Z'/%3E%3CclipPath id='k'%3E%3Cuse href='%23b'/%3E%3C/clipPath%3E%3C/defs%3E%3Cuse href='%23b' fill='url(%23s)'/%3E%3Crect width='480' height='60' fill='url(%23e)' clip-path='url(%23k)'/%3E%3Cpath d='M245.1 14.6Q245.4 16 246.8 16.3Q245.4 16.6 245.1 18Q244.8 16.6 243.4 16.3Q244.8 16 245.1 14.6ZM376.8 21.1Q377.3 23.1 379.3 23.6Q377.3 24.1 376.8 26.1Q376.4 24.1 374.3 23.6Q376.4 23.1 376.8 21.1ZM82.7 18.4Q83.2 20.5 85.3 21Q83.2 21.5 82.7 23.6Q82.2 21.5 80.1 21Q82.2 20.5 82.7 18.4ZM281.4 15.5Q281.8 17.5 283.8 17.9Q281.8 18.3 281.4 20.4Q280.9 18.3 278.9 17.9Q280.9 17.5 281.4 15.5ZM124.2 19.5Q124.6 21.2 126.3 21.6Q124.6 22 124.2 23.8Q123.8 22 122 21.6Q123.8 21.2 124.2 19.5Z' fill='%23cfe6ff'/%3E%3C/svg%3E");
  --drift-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='60' viewBox='0 0 480 60'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' x2='0' y1='0' y2='60' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='0.4' stop-color='%23f7fbff'/%3E%3Cstop offset='0.5' stop-color='%23dde9f7'/%3E%3Cstop offset='0.6' stop-color='%23bfd3ec'/%3E%3C/linearGradient%3E%3ClinearGradient id='e'%3E%3Cstop offset='0' stop-color='%239db8dd' stop-opacity='.7'/%3E%3Cstop offset='.09' stop-color='%239db8dd' stop-opacity='0'/%3E%3Cstop offset='.91' stop-color='%239db8dd' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%239db8dd' stop-opacity='.7'/%3E%3C/linearGradient%3E%3ClinearGradient id='i' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop offset='0' stop-color='%23eef7ff'/%3E%3Cstop offset='1' stop-color='%23a9d2ff' stop-opacity='.5'/%3E%3C/linearGradient%3E%3Cpath id='b' d='M5.6 42.8C5.7 42.6 6.1 43 6.6 42.1C7 41.2 7.1 39.1 8.1 37.2C9.1 35.4 10.5 33.1 12.5 31.2C14.5 29.2 17.7 26.7 20.1 25.3C22.5 23.8 25 23.1 27 22.5C29 21.8 27.8 22.2 32 21.4C36.2 20.6 45.3 19.1 51.9 17.5C58.5 15.9 65.3 13.3 71.5 11.8C77.8 10.3 84 9 89.3 8.6C94.6 8.1 97.8 9 103.3 9.3C108.8 9.6 116.3 10.6 122.5 10.3C128.6 10.1 134 8.8 140.2 7.7C146.3 6.7 153.7 4.3 159.4 4.1C165.2 3.9 168.9 6.2 174.6 6.6C180.2 6.9 187.7 6.6 193.5 6.2C199.4 5.7 204.2 4.5 209.8 4C215.4 3.5 221.9 3.3 227.1 3.4C232.4 3.5 236.1 4.4 241.5 4.7C246.9 5 253.7 4.9 259.5 5C265.2 5.1 270.6 5.1 276.1 5.2C281.7 5.2 287.2 5.4 292.7 5.4C298.2 5.3 303.1 5.1 309 4.9C314.9 4.7 322.4 4.1 328.2 4.3C334 4.5 338.5 5.4 343.6 6.2C348.8 7 353.9 8.6 359.4 9.1C364.8 9.6 370.2 9.3 376.1 9.2C382 9.1 388.2 7.5 394.5 8.5C400.7 9.5 407.4 13.7 413.7 15.4C420.1 17.2 426.9 17.9 432.6 18.9C438.3 20 444.6 20.9 448 21.5C451.4 22.1 451 21.9 453 22.6C454.9 23.3 457.8 24.5 459.8 25.6C461.8 26.6 463.1 27.5 464.7 29.1C466.3 30.6 468.5 33 469.6 34.8C470.8 36.5 471.1 38.6 471.6 39.5C472.1 40.4 472.5 40 472.7 40.1C471.8 39.9 469.1 39.9 467.5 39.1C465.9 38.4 464.3 36.4 463.1 35.5C462 34.7 462.1 34.7 460.7 34.1C459.3 33.5 456.7 32.3 454.5 31.8C452.4 31.3 451.8 31.1 448 31.3C444.2 31.4 436.4 32.3 431.5 32.7C426.6 33.1 423.6 33.8 418.7 33.7C413.7 33.7 407.3 32.8 401.7 32.4C396.1 32 390.1 31.4 385.1 31.2C380 30.9 375.8 31 371.5 31C367.1 31 363.3 31 359 31C354.7 31 350.9 31 345.8 31C340.7 31 333.7 31 328.2 31C322.6 31 317.4 30.6 312.4 31.2C307.3 31.8 303.1 33.8 297.7 34.5C292.3 35.1 285.5 35.1 279.7 35.3C274 35.5 268.5 35.6 263.1 35.6C257.8 35.7 252.6 35.5 247.7 35.6C242.8 35.6 238.1 36 233.6 36C229.2 35.9 225 35.5 220.8 35.3C216.7 35.1 213.1 34.6 208.7 34.5C204.3 34.5 199.1 35.3 194.6 35.2C190 35.2 186.3 34.6 181.3 34.2C176.2 33.9 169 33.1 164.1 33.1C159.1 33 156.2 33.9 151.3 33.9C146.5 33.9 140.2 33.3 134.9 32.9C129.6 32.5 124.3 31.7 119.5 31.4C114.7 31.1 110.4 31.1 106.2 31C102 31 98.4 31 94.1 31C89.9 31.1 85.5 31.2 80.9 31.4C76.3 31.6 71.8 32 66.7 32C61.5 32.1 54.7 31.7 49.9 31.6C45 31.4 41.7 31.1 37.6 31.1C33.5 31.1 28.5 31.3 25.5 31.8C22.4 32.3 21.1 33.2 19.3 34.1C17.5 35 16 36 14.6 37.2C13.1 38.4 12.1 40.3 10.6 41.3C9.1 42.2 6.4 42.5 5.6 42.8Z'/%3E%3CclipPath id='k'%3E%3Cuse href='%23b'/%3E%3C/clipPath%3E%3C/defs%3E%3Cpath d='M342.7 30Q344.5 37 345.7 44Q346.8 37 348.8 30Z' fill='url(%23i)'/%3E%3Cpath d='M161 32Q163.4 38.1 165 44.2Q166.4 38.1 169 32Z' fill='url(%23i)'/%3E%3Cpath d='M341.7 30Q343.5 34.6 344.7 39.1Q345.8 34.6 347.7 30Z' fill='url(%23i)'/%3E%3Cpath d='M210 33.7Q212.5 41.7 214.1 49.8Q215.6 41.7 218.3 33.7Z' fill='url(%23i)'/%3E%3Cuse href='%23b' fill='url(%23s)'/%3E%3Crect width='480' height='60' fill='url(%23e)' clip-path='url(%23k)'/%3E%3Cpath d='M216.3 11.3Q216.7 13 218.3 13.4Q216.7 13.7 216.3 15.4Q215.9 13.7 214.2 13.4Q215.9 13 216.3 11.3ZM308.2 18.2Q308.5 19.6 309.8 19.8Q308.5 20.1 308.2 21.5Q307.9 20.1 306.6 19.8Q307.9 19.6 308.2 18.2ZM131.4 20.5Q131.7 21.9 133.1 22.3Q131.7 22.6 131.4 24Q131 22.6 129.6 22.3Q131 21.9 131.4 20.5ZM296.2 14.7Q296.6 16.5 298.5 16.9Q296.6 17.3 296.2 19.2Q295.8 17.3 294 16.9Q295.8 16.5 296.2 14.7ZM295.7 8.5Q296.3 10.9 298.7 11.5Q296.3 12 295.7 14.5Q295.2 12 292.7 11.5Q295.2 10.9 295.7 8.5Z' fill='%23cfe6ff'/%3E%3C/svg%3E");
  --drift-d: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='60' viewBox='0 0 480 60'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' x2='0' y1='0' y2='60' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0.1' stop-color='%23fff'/%3E%3Cstop offset='0.4' stop-color='%23f7fbff'/%3E%3Cstop offset='0.5' stop-color='%23dde9f7'/%3E%3Cstop offset='0.6' stop-color='%23bfd3ec'/%3E%3C/linearGradient%3E%3ClinearGradient id='e'%3E%3Cstop offset='0' stop-color='%239db8dd' stop-opacity='.7'/%3E%3Cstop offset='.09' stop-color='%239db8dd' stop-opacity='0'/%3E%3Cstop offset='.91' stop-color='%239db8dd' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%239db8dd' stop-opacity='.7'/%3E%3C/linearGradient%3E%3ClinearGradient id='i' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop offset='0' stop-color='%23eef7ff'/%3E%3Cstop offset='1' stop-color='%23a9d2ff' stop-opacity='.5'/%3E%3C/linearGradient%3E%3Cpath id='b' d='M6.1 41.8C6.3 41.7 6.7 42.1 7.1 41.2C7.6 40.3 7.8 38.2 8.9 36.4C9.9 34.6 11.5 32.3 13.4 30.5C15.3 28.6 17.9 26.7 20.1 25.4C22.4 24.1 25 23.2 27 22.6C29 21.9 28.2 22 32 21.5C35.8 21 44.4 20.2 50.1 19.6C55.8 19 61.1 18.6 66.1 17.7C71.2 16.8 75.4 14.7 80.6 14.3C85.7 13.8 91.2 15.2 96.8 15.2C102.4 15.2 108.6 14.7 114.2 14.4C119.8 14 125.1 13.7 130.2 13.3C135.4 12.9 139.6 12.5 145.1 12C150.7 11.4 158 10.2 163.5 9.8C169 9.4 172.6 9.9 178.2 9.6C183.7 9.2 190.6 7.9 196.5 7.6C202.3 7.4 208 7.8 213.2 8.1C218.4 8.3 222.1 9 227.5 9.1C232.9 9.3 240.1 9.2 245.6 9.1C251 8.9 254.9 9.1 260.4 8.4C266 7.8 272.5 4.9 278.9 5.1C285.2 5.2 292.2 8.8 298.6 9.6C305.1 10.3 311.1 9.8 317.6 9.5C324.1 9.1 331.3 7.1 337.5 7.5C343.7 8 349.3 11.3 354.6 12.1C359.8 13 363.6 12.5 368.8 12.6C374 12.7 379.7 12.3 385.5 12.6C391.4 13 397.9 14 403.7 14.8C409.4 15.7 414 16.8 419.9 17.7C425.8 18.6 434.2 19.6 438.9 20.3C443.6 20.9 445.7 21.1 448 21.5C450.3 21.9 451 21.9 453 22.6C454.9 23.2 457.7 24.3 459.8 25.5C461.9 26.7 463.9 28.1 465.7 29.7C467.4 31.4 469.3 33.8 470.4 35.6C471.5 37.4 471.8 39.5 472.3 40.4C472.7 41.3 473.1 40.8 473.3 40.9C472.4 40.8 469.7 40.6 468.2 39.8C466.6 39 465.2 37 463.9 36.1C462.7 35.1 462.3 34.8 460.7 34.1C459.1 33.4 456.7 32.3 454.5 31.8C452.4 31.3 451.3 31.1 448 31C444.7 30.9 439.2 31 434.8 31C430.4 31 426.6 31 421.4 31C416.2 31 408.8 31 403.5 31C398.2 31 394.2 31 389.8 31C385.3 31 381.1 31 376.8 31C372.5 31 368.2 31 363.8 31.1C359.5 31.3 355.2 31.4 350.6 31.7C346.1 32.1 341.9 32.8 336.7 33.1C331.5 33.4 325.2 33.8 319.6 33.6C313.9 33.5 308.3 32.5 302.8 32.1C297.3 31.7 292 31.3 286.4 31.2C280.7 31 274.5 31 269 31C263.6 31 258.9 31 253.7 31C248.6 31 243.5 31 238.2 31C232.8 31.1 227.2 31.1 221.5 31.3C215.8 31.4 209.2 31.7 203.8 32C198.5 32.2 194.1 32.4 189.1 32.6C184.2 32.7 179.5 32.6 174.2 32.9C169 33.1 162.7 33.6 157.6 34.3C152.5 34.9 148.4 36.5 143.6 36.6C138.8 36.7 133.5 35.6 128.9 35C124.4 34.3 120.8 33.2 116.3 32.7C111.7 32.2 106.7 31.8 101.7 32.1C96.7 32.3 91 33.7 86.4 34.2C81.7 34.7 78.8 35.3 73.9 34.9C69 34.6 62.6 32.9 57 32.3C51.4 31.6 45.6 31.1 40.4 31C35.1 31 29 31.3 25.5 31.8C21.9 32.3 21 33.3 19.3 34.1C17.6 34.9 16.7 35.6 15.3 36.6C14 37.7 12.7 39.7 11.2 40.5C9.7 41.4 7 41.6 6.1 41.8Z'/%3E%3CclipPath id='k'%3E%3Cuse href='%23b'/%3E%3C/clipPath%3E%3C/defs%3E%3Cpath d='M277.9 30.1Q279.8 36.4 281 42.8Q282.1 36.4 284.1 30.1Z' fill='url(%23i)'/%3E%3Cpath d='M370.4 30Q372 37.4 373 44.9Q374 37.4 375.7 30Z' fill='url(%23i)'/%3E%3Cuse href='%23b' fill='url(%23s)'/%3E%3Crect width='480' height='60' fill='url(%23e)' clip-path='url(%23k)'/%3E%3Cpath d='M116.8 18.3Q117.2 20 118.8 20.3Q117.2 20.7 116.8 22.3Q116.5 20.7 114.8 20.3Q116.5 20 116.8 18.3ZM319.5 15.5Q319.8 16.9 321.2 17.2Q319.8 17.5 319.5 18.9Q319.2 17.5 317.8 17.2Q319.2 16.9 319.5 15.5ZM283.7 16.4Q284.2 18.4 286.1 18.8Q284.2 19.2 283.7 21.1Q283.3 19.2 281.4 18.8Q283.3 18.4 283.7 16.4ZM301.2 15Q301.6 16.8 303.5 17.3Q301.6 17.7 301.2 19.5Q300.8 17.7 298.9 17.3Q300.8 16.8 301.2 15ZM282.3 16.3Q282.7 18.3 284.7 18.7Q282.7 19.2 282.3 21.2Q281.9 19.2 279.9 18.7Q281.9 18.3 282.3 16.3Z' fill='%23cfe6ff'/%3E%3C/svg%3E");
  --drift-e: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='60' viewBox='0 0 480 60'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' x2='0' y1='0' y2='60' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0.1' stop-color='%23fff'/%3E%3Cstop offset='0.4' stop-color='%23f7fbff'/%3E%3Cstop offset='0.5' stop-color='%23dde9f7'/%3E%3Cstop offset='0.6' stop-color='%23bfd3ec'/%3E%3C/linearGradient%3E%3ClinearGradient id='e'%3E%3Cstop offset='0' stop-color='%239db8dd' stop-opacity='.7'/%3E%3Cstop offset='.09' stop-color='%239db8dd' stop-opacity='0'/%3E%3Cstop offset='.91' stop-color='%239db8dd' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%239db8dd' stop-opacity='.7'/%3E%3C/linearGradient%3E%3ClinearGradient id='i' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop offset='0' stop-color='%23eef7ff'/%3E%3Cstop offset='1' stop-color='%23a9d2ff' stop-opacity='.5'/%3E%3C/linearGradient%3E%3Cpath id='b' d='M6.7 40.9C6.9 40.8 7.3 41.3 7.7 40.4C8.2 39.5 8.5 37.4 9.6 35.6C10.7 33.8 12.6 31.4 14.3 29.7C16.1 28.1 18.1 26.7 20.2 25.5C22.3 24.3 25.1 23.2 27 22.6C29 21.9 28.1 22 32 21.5C35.9 21 44.7 20.6 50.5 19.9C56.4 19.1 61.4 17.9 67.3 17C73.2 16.1 80.4 14.7 86.2 14.5C91.9 14.3 95.8 15.7 101.7 15.9C107.6 16.1 115.8 15.9 121.5 15.6C127.3 15.4 131.2 14.9 136.2 14.5C141.3 14.1 146.6 13.5 151.7 13.3C156.7 13 161.3 13.1 166.6 13C171.9 12.9 177.8 12.9 183.6 12.6C189.3 12.3 195.5 11.7 201 11.4C206.4 11 210.6 10.5 216.4 10.4C222.2 10.2 230.1 10.4 235.8 10.4C241.4 10.4 245.1 10.7 250.3 10.6C255.5 10.4 261 9.4 267.1 9.3C273.1 9.2 280.3 9.8 286.5 9.9C292.8 10.1 298.5 10.2 304.4 10.2C310.4 10.1 316.7 9.6 322.1 9.6C327.5 9.7 331.3 9.9 337 10.4C342.7 10.9 350.2 11.9 356.5 12.5C362.8 13.1 369.1 13.8 374.7 14.1C380.2 14.3 384.6 13.8 389.8 13.9C394.9 14.1 400.3 14.1 405.7 14.8C411 15.6 416 17.4 421.7 18.3C427.5 19.2 435.5 19.9 439.9 20.4C444.3 20.9 445.8 21.1 448 21.5C450.2 21.9 451 21.9 453 22.5C455 23.2 457.5 24 459.9 25.4C462.2 26.8 465.1 28.9 467 30.8C469 32.7 470.5 35 471.5 36.8C472.5 38.6 472.7 40.8 473.2 41.7C473.6 42.6 474 42.2 474.1 42.3C473.3 42.1 470.6 41.8 469.1 40.9C467.6 40 466.5 38.1 465.1 36.9C463.7 35.8 462.5 35 460.7 34.1C458.9 33.3 456.7 32.3 454.5 31.8C452.4 31.3 451.6 31.1 448 31C444.4 30.9 437.6 31 433 31C428.4 31 425.3 31 420.5 31C415.7 31 409.4 31 404.2 31C399 31 394 31 389.5 31C385.1 31 382.3 31 377.4 31C372.5 31 365.8 31 360.2 31C354.7 31 349.6 31 344.3 31C339 31.1 334 31 328.4 31.2C322.9 31.4 316.2 31.8 311 32.2C305.9 32.6 302.1 33.3 297.5 33.7C292.9 34.2 287.9 34.8 283.4 34.9C278.9 35.1 275.4 34.8 270.5 34.6C265.6 34.3 259 33.6 253.9 33.3C248.9 33 245.4 33 240.1 32.8C234.8 32.6 227.7 32.3 222.2 32.1C216.8 31.9 212.3 31.5 207.2 31.4C202.1 31.2 197.2 31.1 191.6 31.1C186 31 178.9 31 173.9 31C168.8 31 165.5 31 161.1 31C156.7 31 152.2 30.9 147.3 31C142.4 31.1 137.2 30.9 131.9 31.6C126.6 32.3 121.1 33.8 115.5 35.2C109.9 36.7 103.7 39.7 98.1 40.3C92.4 40.9 87.2 39.2 81.8 39C76.3 38.9 70.2 39.4 65.3 39.4C60.4 39.3 56.7 39.1 52.3 38.5C48 37.9 43.7 36.7 39.2 35.6C34.7 34.5 28.8 32 25.5 31.8C22.2 31.5 20.9 33.4 19.3 34.1C17.7 34.8 17.3 35.1 16.1 36.1C14.8 37 13.4 39 11.8 39.8C10.3 40.6 7.6 40.8 6.7 40.9Z'/%3E%3CclipPath id='k'%3E%3Cuse href='%23b'/%3E%3C/clipPath%3E%3C/defs%3E%3Cpath d='M87.1 39Q88.9 45.5 90 52.1Q91.1 45.5 93 39Z' fill='url(%23i)'/%3E%3Cpath d='M169.1 30Q171.2 36.8 172.6 43.7Q173.9 36.8 176.2 30Z' fill='url(%23i)'/%3E%3Cpath d='M120.9 31.7Q123.1 35.4 124.5 39.2Q125.8 35.4 128.1 31.7Z' fill='url(%23i)'/%3E%3Cpath d='M370.5 30Q372.9 34.7 374.4 39.5Q375.8 34.7 378.4 30Z' fill='url(%23i)'/%3E%3Cuse href='%23b' fill='url(%23s)'/%3E%3Crect width='480' height='60' fill='url(%23e)' clip-path='url(%23k)'/%3E%3Cpath d='M230.1 14.2Q230.6 16.4 232.7 16.8Q230.6 17.3 230.1 19.4Q229.7 17.3 227.5 16.8Q229.7 16.4 230.1 14.2ZM286.9 14.1Q287.2 15.5 288.5 15.8Q287.2 16.1 286.9 17.5Q286.6 16.1 285.2 15.8Q286.6 15.5 286.9 14.1ZM198.9 18.1Q199.3 19.8 201.1 20.2Q199.3 20.6 198.9 22.3Q198.6 20.6 196.8 20.2Q198.6 19.8 198.9 18.1ZM372.5 21.6Q372.8 23.3 374.5 23.7Q372.8 24 372.5 25.7Q372.1 24 370.5 23.7Q372.1 23.3 372.5 21.6ZM91.5 22.5Q91.8 24.1 93.5 24.5Q91.8 24.8 91.5 26.5Q91.1 24.8 89.5 24.5Q91.1 24.1 91.5 22.5Z' fill='%23cfe6ff'/%3E%3C/svg%3E");
  --drift-f: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='480' height='60' viewBox='0 0 480 60'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' x2='0' y1='0' y2='60' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0.3' stop-color='%23fff'/%3E%3Cstop offset='0.4' stop-color='%23f7fbff'/%3E%3Cstop offset='0.5' stop-color='%23dde9f7'/%3E%3Cstop offset='0.6' stop-color='%23bfd3ec'/%3E%3C/linearGradient%3E%3ClinearGradient id='e'%3E%3Cstop offset='0' stop-color='%239db8dd' stop-opacity='.7'/%3E%3Cstop offset='.09' stop-color='%239db8dd' stop-opacity='0'/%3E%3Cstop offset='.91' stop-color='%239db8dd' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%239db8dd' stop-opacity='.7'/%3E%3C/linearGradient%3E%3ClinearGradient id='i' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop offset='0' stop-color='%23eef7ff'/%3E%3Cstop offset='1' stop-color='%23a9d2ff' stop-opacity='.5'/%3E%3C/linearGradient%3E%3Cpath id='b' d='M6.1 41.8C6.3 41.7 6.7 42.1 7.1 41.2C7.6 40.3 7.8 38.2 8.9 36.4C9.9 34.6 11.5 32.3 13.4 30.5C15.3 28.6 17.9 26.7 20.1 25.4C22.4 24.1 25 23.2 27 22.6C29 21.9 28.5 21.7 32 21.5C35.5 21.3 42 21.4 47.8 21.2C53.6 21.1 60.8 20.8 66.8 20.6C72.8 20.4 78.2 20.3 83.9 20.3C89.7 20.3 95.6 20.4 101.2 20.4C106.7 20.3 111.5 20.1 117.2 20C122.9 20 129.8 20 135.5 20.1C141.1 20.1 145.6 20.2 151.2 20.3C156.8 20.3 162.8 20.3 169 20.2C175.3 20.2 182.2 20.1 188.7 19.9C195.3 19.7 202.8 19.2 208.4 19C214.1 18.8 217.7 18.7 222.6 18.6C227.4 18.5 232.4 18.3 237.7 18.3C242.9 18.4 248.4 19 254.2 19.1C260 19.1 266.5 18.6 272.3 18.5C278.1 18.4 283 18.4 288.9 18.6C294.8 18.9 301.6 19.6 307.6 19.8C313.5 20 318.3 19.7 324.4 19.7C330.5 19.6 338.4 19.2 344.1 19.3C349.8 19.4 353.9 20 358.7 20.2C363.5 20.3 367.7 20.2 372.8 20.1C377.9 20 383.8 19.7 389.3 19.7C394.8 19.7 400.1 19.9 405.9 20.1C411.7 20.3 418.8 20.8 424.3 21C429.8 21.2 435 21.2 439 21.3C442.9 21.4 445.7 21.3 448 21.5C450.3 21.7 451 21.9 453 22.6C455 23.2 457.7 24.3 459.8 25.5C461.9 26.7 463.9 28.1 465.7 29.7C467.4 31.4 469.3 33.8 470.4 35.6C471.5 37.4 471.8 39.5 472.3 40.4C472.7 41.3 473.1 40.8 473.3 40.9C472.4 40.8 469.7 40.6 468.2 39.8C466.6 39 465.2 37 463.9 36.1C462.7 35.1 462.3 34.8 460.7 34.1C459.1 33.4 456.7 32.3 454.5 31.8C452.4 31.3 451.8 31.1 448 31C444.2 30.9 436.4 31 431.6 31C426.8 31 424.3 30.8 419.3 31.1C414.2 31.5 407.3 33 401.5 33.1C395.7 33.2 390.1 31.9 384.4 31.8C378.7 31.6 373 31.6 367.2 32C361.5 32.3 355.3 33.6 349.9 33.8C344.6 34.1 339.9 33.8 335.3 33.5C330.7 33.1 327.3 32.4 322.4 32C317.5 31.6 310.8 31.3 306.1 31.1C301.3 30.9 298.3 31 293.9 31C289.5 31 284.8 31 279.5 31.1C274.2 31.3 267.6 31.6 262 32C256.5 32.4 251.4 33 246.1 33.7C240.9 34.3 235.8 35.1 230.8 35.8C225.8 36.5 221.2 37.7 216 37.7C210.9 37.7 205.6 36.8 200 35.9C194.3 35 187.9 33 182.1 32.2C176.3 31.4 170.7 31.2 165 31.1C159.2 31 153.4 31.3 147.8 31.7C142.2 32.1 137.1 33.2 131.3 33.6C125.6 34 119.2 34 113.3 34.1C107.5 34.2 101.1 34.4 96.2 34.1C91.3 33.8 88.7 32.8 83.9 32.3C79.2 31.8 72.4 31.3 67.6 31C62.9 30.8 60 31 55.4 31C50.8 31 45.1 30.9 40.1 31C35.1 31.1 28.9 31.3 25.5 31.8C22 32.3 21 33.3 19.3 34.1C17.6 34.9 16.7 35.6 15.3 36.6C14 37.7 12.7 39.7 11.2 40.5C9.7 41.4 7 41.6 6.1 41.8Z'/%3E%3CclipPath id='k'%3E%3Cuse href='%23b'/%3E%3C/clipPath%3E%3C/defs%3E%3Cpath d='M280.7 30.1Q282.9 37.7 284.3 45.4Q285.6 37.7 288 30.1Z' fill='url(%23i)'/%3E%3Cpath d='M327.3 31.9Q329.4 39.4 330.8 46.8Q332 39.4 334.2 31.9Z' fill='url(%23i)'/%3E%3Cpath d='M348.4 32.8Q349.9 40.6 350.9 48.5Q351.7 40.6 353.3 32.8Z' fill='url(%23i)'/%3E%3Cuse href='%23b' fill='url(%23s)'/%3E%3Crect width='480' height='60' fill='url(%23e)' clip-path='url(%23k)'/%3E%3Cpath d='M160.4 20.3Q160.9 22.3 162.9 22.7Q160.9 23.2 160.4 25.2Q160 23.2 158 22.7Q160 22.3 160.4 20.3ZM293.1 22Q293.5 23.9 295.4 24.3Q293.5 24.7 293.1 26.5Q292.7 24.7 290.9 24.3Q292.7 23.9 293.1 22ZM250.7 20Q251.1 21.8 252.9 22.2Q251.1 22.6 250.7 24.3Q250.3 22.6 248.5 22.2Q250.3 21.8 250.7 20ZM106.7 24.3Q107 25.6 108.3 25.9Q107 26.2 106.7 27.5Q106.4 26.2 105.1 25.9Q106.4 25.6 106.7 24.3ZM137.3 21.2Q137.7 23.2 139.7 23.6Q137.7 24 137.3 26.1Q136.8 24 134.8 23.6Q136.8 23.2 137.3 21.2Z' fill='%23cfe6ff'/%3E%3C/svg%3E");
}
.card::before,
.hero::before,
.sheet::before,
.dialog::before,
.arena-done::before,
.yeti-card::before {
  --s: var(--drift-scale, 1);
  content: '';
  position: absolute;
  top: calc(-1px - 28px * var(--s));
  left: -3px;
  right: -3px;
  height: calc(60px * var(--s));
  box-sizing: border-box;
  border-style: solid;
  border-width: 0 calc(64px * var(--s));
  border-image: var(--drift, var(--drift-a)) 0 64 fill / 0 calc(64px * var(--s)) stretch;
  pointer-events: none;
  transform: var(--drift-flip, none);
  filter: drop-shadow(0 2px 1.5px rgba(28, 62, 118, 0.28));
}
.dialog {
  position: relative;
}
.card.home,
.yeti-card {
  --drift: var(--drift-c);
}
.card.welcome,
.arena-done {
  --drift: var(--drift-d);
  --drift-flip: scaleX(-1);
}
.news-card {
  --drift: var(--drift-c);
  --drift-flip: scaleX(-1);
}
.hero {
  --drift: var(--drift-b);
  --drift-scale: 0.85;
}
.sheet {
  --drift: var(--drift-e);
}
@media (max-width: 640px) {
  .chat-sheet {
    --drift: var(--drift-f);
  }
}
.dialog {
  --drift: var(--drift-d);
  --drift-scale: 0.9;
}

.title {
  font-family: var(--festive);
  font-weight: 700;
  font-size: clamp(50px, 10vw, 74px);
  color: var(--red);
  margin: 0;
  line-height: 1;
  text-shadow: 0 2px 0 #fff, 0 0 22px rgba(255, 255, 255, 0.85);
}
.title.small {
  font-size: 44px;
}
.lede {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.5;
}
.muted {
  color: var(--ink-faint);
}
.small {
  font-size: 13px;
}
.fine {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 18px 0 0;
}

.login {
  text-align: center;
}
.login-gift {
  font-size: 70px;
  line-height: 1;
  margin: -74px auto 6px;
  animation: bounce 2.4s ease-in-out infinite;
  filter: drop-shadow(0 10px 18px rgba(0, 10, 40, 0.35));
}
.login .code-input {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.4em;
  /* The spacing after the last digit, so the digits sit in the middle. */
  padding-left: calc(15px + 0.4em);
  font-variant-numeric: tabular-nums;
}
.login .row.center {
  flex-wrap: wrap;
  gap: 8px;
}
.form-error {
  margin: 12px 0 0;
  color: #b0142b;
  font-weight: 700;
}
.robot-check {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
.robot-check:empty {
  display: none;
}
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-10px) rotate(4deg);
  }
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stack.tight {
  gap: 8px;
}
.stack > .btn:not(.big) {
  align-self: flex-start;
}
.settings-sheet form {
  margin-top: 14px;
}
.row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.row.between {
  justify-content: space-between;
}
.row.end {
  justify-content: flex-end;
}
.row.center {
  justify-content: center;
}
.row.grow > * {
  flex: 1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: #34557f;
  min-width: 0;
}
.field.narrow {
  flex: 0 0 130px;
}

input[type='text'],
input[type='email'],
textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea {
  resize: vertical;
  line-height: 1.45;
}
input:focus,
textarea:focus {
  border-color: #6fb6ff;
  box-shadow: 0 0 0 4px rgba(111, 182, 255, 0.25);
}
::placeholder {
  color: #9bb0c9;
}

/* ---- buttons ---------------------------------------------------------------------- */

.btn {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.12s, box-shadow 0.15s, filter 0.15s;
}
.btn:hover {
  filter: brightness(1.05);
}
.btn:active {
  transform: scale(0.97);
}
.btn:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}
.btn.big {
  padding: 16px 26px;
  font-size: 18px;
}
.btn.small {
  padding: 8px 14px;
  font-size: 14px;
}
.btn.primary {
  color: #fff;
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  box-shadow: 0 8px 18px rgba(200, 16, 46, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn.ice {
  color: #12407a;
  background: linear-gradient(180deg, #ffffff, var(--ice));
  box-shadow: inset 0 0 0 1.5px #b9d6f5, 0 4px 10px rgba(18, 64, 122, 0.12);
}
.btn.ghost {
  color: #34557f;
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #c9dbef;
}
.btn.ghost.light {
  color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6);
}
.btn.danger {
  color: #b0142b;
  background: #fff0f2;
  box-shadow: inset 0 0 0 1.5px #f5c2ca;
}
.dialog .btn.danger {
  color: #fff;
  background: linear-gradient(180deg, #e2354b, #b0142b);
  box-shadow: none;
}
.btn.kiss {
  color: #fff;
  background: linear-gradient(180deg, #ff86b8, #ff4f8b);
  box-shadow: 0 8px 18px rgba(255, 79, 139, 0.35);
}
.btn.fart {
  color: #fff;
  background: linear-gradient(180deg, #a9c86a, #6b8a37);
  box-shadow: 0 8px 18px rgba(107, 138, 55, 0.35);
}

.icon-btn {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.12s;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}
.icon-btn:active {
  transform: scale(0.94);
}
.icon-btn.small {
  width: 34px;
  height: 34px;
  font-size: 15px;
  border: 0;
  background: #eef5fd;
}
.icon-btn.small:hover {
  background: #dfeaf8;
}

.me-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 10, 40, 0.25);
}
.me-chip > span {
  padding-right: 10px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e4effb;
  color: #34557f;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.badge.gold {
  background: linear-gradient(180deg, #ffeeb5, var(--gold));
  color: #6a4200;
}
.chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

/* ---- avatars and floating heads ----------------------------------------------------- */

.avatar {
  --a: 44px;
  width: var(--a);
  height: var(--a);
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, #ffffff, #d7e9fb 70%, #b9d4f1);
  box-shadow: 0 0 0 3px #fff, 0 4px 12px rgba(8, 25, 60, 0.25);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar .emoji {
  font-size: calc(var(--a) * 0.58);
  line-height: 1;
}
.avatar.sm {
  --a: 36px;
  box-shadow: 0 0 0 2px #fff;
}
.avatar.md {
  --a: 58px;
}
.avatar.lg {
  --a: 78px;
}
.avatar.xl {
  --a: 120px;
}
.avatar.glow {
  box-shadow: 0 0 0 3px var(--gold), 0 0 26px rgba(255, 212, 92, 0.85);
}

.head {
  position: absolute;
  left: 0;
  top: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: grab;
  pointer-events: auto;
  touch-action: none;
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
.head:focus-visible {
  outline: none;
}
.head:focus-visible .bubble {
  outline: 3px solid #6fb6ff;
  outline-offset: 6px;
}
.head .bubble {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  container-type: size;
  background: radial-gradient(circle at 35% 28%, #ffffff, #e0efff 55%, #a9cbef);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.95), 0 0 0 8px rgba(160, 210, 255, 0.3), 0 12px 30px rgba(0, 10, 40, 0.45),
    0 0 46px rgba(170, 220, 255, 0.35);
  transition: transform 0.2s;
}
.head:hover .bubble {
  transform: scale(1.07);
}
.head.grabbed {
  cursor: grabbing;
}
.head.grabbed .bubble {
  transform: scale(1.12);
}
.head .bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.head .bubble .emoji {
  font-size: 58cqw;
  line-height: 1;
}
.head .hat {
  position: absolute;
  width: 64%;
  top: -27%;
  left: 30%;
  transform: rotate(16deg);
  pointer-events: none;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25));
}
.head .label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 10px);
  white-space: nowrap;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}
.head.me .label {
  background: var(--ink);
  color: #fff;
}
.head .tag {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 40px);
  white-space: nowrap;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffeeb5, var(--gold));
  color: #6a4200;
  font-weight: 900;
  font-size: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}
.head.assigned .bubble {
  animation: gold-pulse 2.2s ease-in-out infinite;
}
@keyframes gold-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px var(--gold), 0 0 0 9px rgba(255, 212, 92, 0.3), 0 0 40px rgba(255, 212, 92, 0.55), 0 12px 30px rgba(0, 10, 40, 0.45);
  }
  50% {
    box-shadow: 0 0 0 4px var(--gold), 0 0 0 13px rgba(255, 212, 92, 0.18), 0 0 70px rgba(255, 212, 92, 0.85), 0 12px 30px rgba(0, 10, 40, 0.45);
  }
}

/* ---- family view: top bar and hero ------------------------------------------------- */

.topbar {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 22px;
  background: rgba(8, 22, 46, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.family-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.family-title strong {
  font-family: var(--festive);
  font-size: 28px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 0 14px rgba(160, 210, 255, 0.7);
}

.hero {
  position: absolute;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(520px, calc(100% - 24px));
  border-radius: 26px;
  padding: 14px 18px 10px;
}
.hero-assigned {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 2px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.hero-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hero-text small {
  font-weight: 800;
  color: var(--ink-faint);
  font-size: 14px;
}
.hero-text strong {
  font-family: var(--festive);
  font-size: 38px;
  line-height: 1.05;
  color: var(--red);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-cta {
  font-weight: 800;
  color: #1a5fb4;
  font-size: 15px;
}
.hero-assigned:hover .hero-cta {
  text-decoration: underline;
}
.hero-waiting {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.hero-waiting strong {
  font-size: 18px;
}
.hero-waiting small {
  color: var(--ink-soft);
  font-size: 14px;
}
.hero-hint {
  margin: 10px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink-faint);
}

/* ---- home ---------------------------------------------------------------------------------- */

.home h2 {
  font-size: 18px;
  margin: 18px 0 10px;
}
.family-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.family-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 0 #d9e7f6, 0 8px 18px rgba(16, 38, 74, 0.08);
  transition: transform 0.15s;
}
.family-link:hover {
  transform: translateY(-2px);
}
.family-icon {
  font-size: 30px;
}
.family-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.family-text small {
  color: var(--ink-faint);
}
.chev {
  font-size: 30px;
  color: #9cbfe6;
  line-height: 1;
}
details.create {
  margin-top: 18px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  padding: 2px 16px;
}
details.create summary {
  cursor: pointer;
  font-weight: 900;
  padding: 12px 0;
  color: var(--red);
  list-style: none;
}
details.create summary::-webkit-details-marker {
  display: none;
}
details.create form {
  padding-bottom: 16px;
}

/* Secret Santa or family wish list: two big radio cards. */
.mode-pick {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.mode-pick legend {
  padding: 0;
  margin-bottom: 6px;
  font-weight: 700;
  font-size: 14px;
  color: #34557f;
}
.mode-pick legend.quiet {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.mode-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.mode-option:has(input:checked) {
  border-color: var(--red-bright);
  box-shadow: 0 0 0 3px rgba(239, 51, 73, 0.15);
}
.mode-option:has(input:focus-visible) {
  outline: 3px solid #7fb4ee;
  outline-offset: 2px;
}
.mode-pick:disabled .mode-option {
  opacity: 0.6;
  cursor: progress;
}
.mode-option input {
  accent-color: var(--red);
  width: 18px;
  height: 18px;
  margin: 0;
  flex: none;
}
.mode-icon {
  font-size: 26px;
  line-height: 1;
}
.mode-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mode-text small {
  color: var(--ink-faint);
  font-size: 13px;
}

.photo-row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 6px;
}
.emoji-grid button {
  aspect-ratio: 1;
  font-size: 24px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: #fff;
  cursor: pointer;
  transition: transform 0.12s;
  padding: 0;
}
.emoji-grid button:hover {
  transform: scale(1.08);
}
.emoji-grid button.on {
  border-color: var(--red);
  background: #fff1f3;
}

/* ---- sheets --------------------------------------------------------------------------------- */

.sheet-wrap {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}
.sheet-wrap.open {
  pointer-events: auto;
}
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 28, 0.42);
  opacity: 0;
  transition: opacity 0.3s;
}
.sheet-wrap.open .sheet-backdrop {
  opacity: 1;
}
.sheet {
  position: absolute;
  top: 24px;
  right: 14px;
  bottom: 14px;
  width: min(480px, calc(100% - 28px));
  display: flex;
  flex-direction: column;
  border-radius: 28px;
  transform: translateX(calc(100% + 30px));
  transition: transform 0.38s cubic-bezier(0.2, 0.9, 0.3, 1.05);
}
.sheet-wrap.open .sheet {
  transform: none;
}
.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 24px 28px;
  border-radius: 28px;
}
.sheet-body h2 {
  margin: 0 0 4px;
  font-size: 24px;
  padding-right: 40px;
}
.sheet-body h3 {
  margin: 24px 0 10px;
  font-size: 17px;
}
.sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: #eef5fd;
  color: #34557f;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.sheet-close:hover {
  background: #dfeaf8;
}

@media (max-width: 640px) {
  .sheet {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 90dvh;
    border-radius: 28px 28px 0 0;
    transform: translateY(105%);
  }
  .sheet-body {
    padding: 26px 18px calc(24px + env(safe-area-inset-bottom));
  }
  .me-chip > span {
    display: none;
  }
  .family-title strong {
    font-size: 23px;
  }
  .family-title .chip {
    display: none;
  }
  .hero-text strong {
    font-size: 32px;
  }
  .card {
    padding: 26px 20px 22px;
  }
}

.person-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-right: 40px;
}
.person-head h2 {
  padding-right: 0;
}
.person-head p {
  margin: 0 0 6px;
  /* Long email addresses may break anywhere; ordinary words don't. */
  overflow-wrap: anywhere;
}
.notice {
  background: #eaf4ff;
  border: 1.5px dashed #9cc6f0;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  color: #23497a;
}
.poke-row {
  margin-bottom: 18px;
}
.poke-row .btn {
  flex: 1;
}
.list-summary {
  margin: 0 0 10px;
}

.items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 2px 0 #d9e7f6, 0 6px 14px rgba(16, 38, 74, 0.06);
  transition: background 0.2s, opacity 0.2s;
}
.item.claimed:not(.mine) {
  opacity: 0.68;
}
.item.claimed:not(.mine) .item-title {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(200, 16, 46, 0.55);
}
.item.mine {
  background: #effbf2;
  box-shadow: 0 2px 0 #bfe6c9, 0 6px 14px rgba(16, 74, 38, 0.08);
}
.item .item-form {
  flex: 1;
}
.tick {
  flex: none;
  position: relative;
  width: 30px;
  height: 30px;
  margin-top: 1px;
  border-radius: 50%;
  border: 2.5px solid #9cbfe6;
  background: #fff;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}
.tick:hover:not(:disabled) {
  transform: scale(1.1);
  border-color: #2fa35a;
}
.tick[aria-pressed='true'] {
  background: #2fa35a;
  border-color: #2fa35a;
}
.tick[aria-pressed='true']::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 16px;
}
.item.claimed:not(.mine) .tick {
  background: #9aa9bb;
  border-color: #9aa9bb;
  cursor: default;
}
.item-body {
  flex: 1;
  min-width: 0;
}
.item-title {
  font-weight: 800;
  overflow-wrap: anywhere;
}
.item-note {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin-top: 6px;
  font-size: 13px;
}
.item-meta:empty {
  display: none;
}
.item-link {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eaf3ff;
  color: #1a5fb4;
  font-weight: 700;
  text-decoration: none;
}
.item-link:hover {
  background: #dbeaff;
}
.item-status {
  color: #2c7a48;
  font-weight: 800;
}
.item.claimed:not(.mine) .item-status {
  color: #6b7a8f;
}
.item-bullet {
  font-size: 22px;
  line-height: 1.2;
}
.item-actions {
  display: flex;
  gap: 4px;
}
.add-title {
  margin-top: 22px !important;
}
.empty {
  text-align: center;
  padding: 18px 10px;
  color: var(--ink-soft);
}
.empty p {
  margin: 6px 0;
}
.empty-icon {
  font-size: 46px;
}
.loading {
  text-align: center;
  padding: 20px 0;
}

.members {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  /* A long address under someone's name is cut short, not let widen the list. */
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.members li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 14px;
  background: #fff;
}
.member-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.member-text small {
  color: var(--ink-faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-row code {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid var(--line);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

/* ---- dialogs and toasts ------------------------------------------------------------------- */

.dialog-wrap {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(3, 10, 28, 0.5);
  animation: fade-in 0.2s;
}
.dialog {
  width: min(390px, 100%);
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: pop-in 0.25s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.dialog h3 {
  margin: 0 0 8px;
}
.dialog p {
  color: var(--ink-soft);
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}

#toasts {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: min(440px, calc(100% - 24px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 12px 18px;
  border-radius: 16px;
  background: rgba(10, 26, 51, 0.94);
  color: #fff;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  animation: toast-in 0.3s cubic-bezier(0.3, 1.4, 0.5, 1);
  transition: opacity 0.5s, transform 0.5s;
}
.toast.error {
  background: #b0142b;
}
.toast.out {
  opacity: 0;
  transform: translateY(-10px);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.95);
  }
}

.burst {
  position: fixed;
  z-index: 70;
  pointer-events: none;
  line-height: 1;
  transform: translate(-50%, -50%);
  animation: burst 1.4s cubic-bezier(0.15, 0.7, 0.3, 1) both;
}
@keyframes burst {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy) + 40px)) rotate(var(--rot)) scale(1);
    opacity: 0;
  }
}

/* ---- gates, reveals, kisses and farts -------------------------------------------------------- */

.gate {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle at 50% 45%, rgba(20, 45, 90, 0.6), rgba(2, 6, 20, 0.88));
  animation: fade-in 0.4s;
}
.gate.reveal {
  cursor: default;
}
.gate-inner,
.reveal-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 520px;
}
.gate p,
.reveal-stage p {
  font-size: 18px;
  margin: 0 0 8px;
  color: #dcebff;
}
.gate .title {
  color: #fff;
  text-shadow: 0 0 24px rgba(160, 210, 255, 0.9);
}
.gate-present,
.reveal-present {
  font-size: clamp(100px, 22vmin, 150px);
  line-height: 1;
  animation: wiggle 1.1s ease-in-out infinite;
  filter: drop-shadow(0 14px 30px rgba(255, 200, 100, 0.45));
}
.reveal-present {
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
  margin-top: 8px;
}
.gate.opening,
.gate.closing {
  animation: fade-out 0.45s forwards;
}
.gate.opening .gate-present,
.reveal-present.pop {
  animation: pop 0.5s forwards;
}
.reveal-stage {
  animation: pop-in 0.45s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.reveal-kicker {
  font-weight: 800;
  font-size: 20px !important;
}
.reveal-person .avatar.xl {
  --a: clamp(120px, 30vmin, 170px);
  animation: float 3s ease-in-out infinite;
}
.reveal-name {
  color: var(--gold) !important;
  font-size: clamp(58px, 13vw, 100px);
  text-shadow: 0 0 34px rgba(255, 212, 92, 0.65) !important;
}

/* What's new: a present wobbles, pops open and the news jumps out of it. */
.news-wrap {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  padding: 34px 16px 16px;
  overflow-y: auto;
  background: radial-gradient(circle at 50% 40%, rgba(20, 45, 90, 0.55), rgba(2, 6, 20, 0.85));
  animation: fade-in 0.3s;
}
.news-wrap.closing {
  animation: fade-out 0.3s forwards;
}
.news-card {
  width: min(420px, 100%);
  margin: auto;
  padding: 16px 24px 24px;
  text-align: center;
  animation: pop-in 0.45s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.news-stage {
  position: relative;
  height: 128px;
  display: grid;
  place-items: end center;
  margin: 0 auto 6px;
}
.news-art {
  font-size: 84px;
  line-height: 1;
  opacity: 0;
  transform: translateY(36px) scale(0.2);
  filter: drop-shadow(0 12px 18px rgba(16, 38, 74, 0.28));
}
.news-art svg {
  display: block;
  width: 116px;
  height: 116px;
}
.news-stage.opened .news-art {
  opacity: 1;
  transform: none;
}
.news-art.in {
  animation: news-jump 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) both, float 3s ease-in-out 0.7s infinite;
}
.news-present {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 96px;
  height: 92px;
  margin-left: -48px;
  animation: news-drop 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) both, wiggle 0.9s ease-in-out 0.3s infinite;
}
.news-box,
.news-lid {
  position: absolute;
  background: linear-gradient(90deg, transparent 43%, var(--gold) 43%, var(--gold) 57%, transparent 57%), linear-gradient(180deg, var(--red-bright), var(--red));
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12), 0 10px 22px rgba(16, 38, 74, 0.3);
}
.news-box {
  left: 7px;
  right: 7px;
  bottom: 0;
  height: 62px;
  border-radius: 6px 6px 10px 10px;
}
.news-lid {
  left: 0;
  right: 0;
  bottom: 58px;
  height: 22px;
  z-index: 1;
  border-radius: 7px;
}
.news-lid b {
  position: absolute;
  left: 50%;
  bottom: 12px;
  font-size: 36px;
  line-height: 1;
  transform: translateX(-50%);
}
.news-stage.opened .news-present {
  animation: none;
}
.news-stage.opened .news-lid {
  animation: news-lid-off 0.7s cubic-bezier(0.2, 0.7, 0.4, 1) forwards;
}
.news-stage.opened .news-box {
  animation: news-box-off 0.5s 0.15s ease-in forwards;
}
.news-kicker {
  margin: 0 0 4px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.news-title {
  margin: 0 0 10px;
  font-family: var(--festive);
  font-size: clamp(34px, 9vw, 44px);
  line-height: 1.05;
  color: var(--ink);
}
.news-text p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.5;
}
.news-text.in {
  animation: fade-in 0.35s;
}
.news-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 6px 0 0;
}
.news-dot {
  width: 26px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.news-dot::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  margin: auto;
  border-radius: 999px;
  background: #a9c4e4;
  transition: width 0.2s, background 0.2s;
}
.news-dot[aria-current]::before {
  width: 22px;
  background: var(--red);
}
.news-buttons {
  margin-top: 14px;
}
@keyframes news-drop {
  from {
    opacity: 0;
    transform: translateY(-60px) scale(0.6);
  }
}
@keyframes news-jump {
  from {
    opacity: 0;
    transform: translateY(36px) scale(0.2);
  }
  60% {
    opacity: 1;
    transform: translateY(-14px) scale(1.15) rotate(-6deg);
  }
}
@keyframes news-lid-off {
  to {
    opacity: 0;
    transform: translate(-40px, -110px) rotate(-50deg);
  }
}
@keyframes news-box-off {
  to {
    opacity: 0;
    transform: translateY(24px) scale(0.7);
  }
}
@media (prefers-reduced-motion: reduce) {
  .news-wrap,
  .news-card,
  .news-art.in,
  .news-text.in {
    animation: none;
  }
}

.show {
  position: fixed;
  inset: 0;
  z-index: 46;
  overflow: hidden;
  pointer-events: none;
  animation: fade-in 0.3s;
}
.show.out {
  animation: fade-out 0.45s forwards;
}
.kiss-show {
  background: radial-gradient(circle at 50% 50%, rgba(255, 120, 170, 0.35), rgba(60, 0, 30, 0.45));
}
.lips,
.lipstick {
  position: absolute;
  left: 50%;
  top: 50%;
}
.lips svg,
.lipstick svg {
  display: block;
  width: 100%;
  height: auto;
}
/* Drawn at full size and scaled down, so it is never blown up and blurry. */
.lips {
  width: min(80vmin, 640px);
  animation: lips 3.6s cubic-bezier(0.3, 0.7, 0.3, 1) forwards;
  filter: drop-shadow(0 20px 40px rgba(255, 60, 120, 0.55));
}
@keyframes lips {
  0% {
    transform: translate(-50%, 60vh) scale(0.08) rotate(-20deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  26% {
    transform: translate(-50%, -50%) scale(0.42) rotate(-6deg);
  }
  30% {
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
  }
  34% {
    transform: translate(-50%, -50%) scale(0.8);
  }
  38% {
    transform: translate(-50%, -50%) scale(0.88);
  }
  80% {
    transform: translate(-50%, -50%) scale(0.85) rotate(4deg);
    opacity: 1;
  }
  100% {
    transform: translate(60vw, -90vh) scale(0.15) rotate(40deg);
    opacity: 0;
  }
}
.lipstick {
  width: min(66vmin, 520px);
  opacity: 0;
  animation: stamp 2.6s forwards;
  filter: blur(1px);
}
@keyframes stamp {
  0% {
    opacity: 0.55;
  }
  70% {
    opacity: 0.35;
  }
  100% {
    opacity: 0;
  }
}
.fart-show {
  background: radial-gradient(circle at 50% 60%, rgba(150, 170, 60, 0.28), rgba(30, 24, 8, 0.45));
}
.poo {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: min(34vmin, 260px);
  line-height: 1;
  animation: poo 3.9s forwards;
  filter: drop-shadow(0 20px 30px rgba(40, 20, 0, 0.5));
}
@keyframes poo {
  0% {
    transform: translate(-50%, -150vh) rotate(-20deg);
  }
  17% {
    transform: translate(-50%, -38%) rotate(0deg) scale(1.35, 0.7);
  }
  23% {
    transform: translate(-50%, -78%) scale(0.92, 1.1);
  }
  30% {
    transform: translate(-50%, -46%) scale(1.15, 0.88);
  }
  35% {
    transform: translate(-50%, -56%) scale(1);
  }
  40%,
  82% {
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    transform: translate(-200vw, -60%) rotate(-720deg);
  }
}
.fly {
  position: absolute;
  left: 40%;
  top: 40%;
  font-size: 0.16em;
  animation: orbit 1.6s linear infinite;
}
.fly.f2 {
  animation-duration: 2.2s;
  animation-direction: reverse;
}
@keyframes orbit {
  from {
    transform: rotate(0deg) translateX(min(24vmin, 180px)) rotate(0deg);
  }
  to {
    transform: rotate(360deg) translateX(min(24vmin, 180px)) rotate(-360deg);
  }
}
.gas {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 34vmin;
  height: 34vmin;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 190, 60, 0.75), rgba(120, 150, 40, 0.35) 50%, transparent 70%);
  filter: blur(6px);
  animation: gas 2.8s ease-out both;
}
@keyframes gas {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0;
  }
  20% {
    opacity: 0.95;
  }
  100% {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.9);
    opacity: 0;
  }
}
.show-caption {
  position: absolute;
  left: 50%;
  bottom: 12vh;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: 92vw;
  padding: 10px 22px 10px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-weight: 900;
  font-size: clamp(18px, 3.2vw, 26px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  animation: caption-in 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}
@keyframes caption-in {
  from {
    opacity: 0;
    transform: translate(-50%, 30px) scale(0.85);
  }
}

body.shake #sky,
body.shake #landscape,
body.shake #heads,
body.shake #app {
  animation: shake 0.45s linear infinite;
}
@keyframes shake {
  0%,
  100% {
    translate: 0 0;
  }
  20% {
    translate: -9px 4px;
  }
  40% {
    translate: 8px -5px;
  }
  60% {
    translate: -6px -3px;
  }
  80% {
    translate: 6px 5px;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}
@keyframes fade-out {
  to {
    opacity: 0;
  }
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
}
@keyframes pop {
  40% {
    transform: scale(1.35) rotate(-6deg);
    opacity: 1;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}
@keyframes wiggle {
  0%,
  100% {
    transform: rotate(-7deg) scale(1);
  }
  25% {
    transform: rotate(7deg) scale(1.05);
  }
  50% {
    transform: rotate(-5deg) scale(1);
  }
  75% {
    transform: rotate(5deg) scale(1.04);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora,
  .login-gift,
  .gate-present,
  .reveal-present,
  .head.assigned .bubble {
    animation: none;
  }
}

/* ---- invites ------------------------------------------------------------------------------ */

.invite-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff6d6, #ffe9a3);
  color: #6a4200;
  font-weight: 700;
  text-align: left;
  box-shadow: inset 0 0 0 1.5px #f3d27a;
  animation: pop-in 0.4s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.invite-icon {
  font-size: 26px;
}
.join-form {
  margin-top: 18px;
}
.row.nowrap {
  flex-wrap: nowrap;
}
.join-form input {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
}
.join-form input::placeholder {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}
.invite-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.invite-panel p {
  margin: 0;
}
.invite-panel > .btn {
  align-self: stretch;
}
.code-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 2px dashed #9cc6f0;
}
.code-box small {
  color: var(--ink-faint);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}
.code-box strong {
  font-size: 30px;
  letter-spacing: 0.08em;
  color: var(--red);
}

/* Before the draw the bottom of the screen is just buttons, no card. */
.hero.bare {
  width: auto;
  max-width: calc(100% - 24px);
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.hero.bare::before {
  display: none;
}
.hero.bare .row {
  flex-wrap: nowrap;
}
.hero.bare .btn {
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(0, 8, 30, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.badge-line {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 14px;
  background: #eaf4ff;
  color: #23497a;
  font-weight: 700;
  font-size: 14px;
}

/* A newcomer whooshes in with a sparkle. */
.head.arrive .bubble {
  animation: arrive 1.4s cubic-bezier(0.3, 1.5, 0.5, 1) both;
}
@keyframes arrive {
  0% {
    transform: scale(0);
    box-shadow: 0 0 0 4px #fff, 0 0 80px 30px rgba(255, 230, 150, 0.9);
  }
  60% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* ---- the cheeky elf ------------------------------------------------------------------------ */

.elf {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 44;
  width: 140px;
  height: 220px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transform-origin: 50% 100%;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 12px 14px rgba(0, 10, 40, 0.45));
}
.elf-inner,
.elf-inner svg {
  display: block;
  width: 100%;
  height: 100%;
}
.elf-inner {
  transform-origin: 50% 100%;
}
.elf .arm-up,
.elf .dizzy,
.elf .tongue {
  display: none;
}
.elf .elf-leg {
  transform-box: fill-box;
  transform-origin: 50% 0;
}
.elf.running .elf-inner {
  animation: elf-bob 0.2s ease-in-out infinite alternate;
}
.elf.running .elf-leg.left {
  animation: elf-step 0.2s ease-in-out infinite alternate;
}
.elf.running .elf-leg.right {
  animation: elf-step 0.2s ease-in-out infinite alternate-reverse;
}
.elf.flipping .arm-up,
.elf.flipping .tongue {
  display: inline;
}
.elf.flipping .arm-down {
  display: none;
}
.elf.flipping .elf-inner {
  animation: elf-taunt 0.35s ease-in-out infinite alternate;
}
.elf.smacked .eyes {
  display: none;
}
.elf.smacked .dizzy {
  display: inline;
}
.elf.smacked .elf-inner {
  animation: elf-fly 1s cubic-bezier(0.3, 0, 0.8, 0.4) forwards;
}
.elf .bell {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: elf-bell 0.3s ease-in-out infinite alternate;
}
.elf-bubble {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translate(-50%, 6px) scale(0);
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s cubic-bezier(0.3, 1.5, 0.5, 1);
  pointer-events: none;
}
.elf-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -7px;
  border: 7px solid transparent;
  border-top-color: #fff;
}
.elf.flipping .elf-bubble {
  transform: translate(-50%, 0) scale(1);
}
.elf-pow {
  position: fixed;
  z-index: 70;
  pointer-events: none;
  font-family: var(--festive);
  font-weight: 700;
  font-size: 54px;
  color: #ffd45c;
  -webkit-text-stroke: 2px #c8102e;
  text-shadow: 0 4px 0 #c8102e, 0 0 24px rgba(255, 212, 92, 0.8);
  transform: translate(-50%, -50%) rotate(-10deg);
  animation: elf-pow 1s cubic-bezier(0.3, 1.6, 0.5, 1) forwards;
}
@keyframes elf-bob {
  from {
    transform: translateY(0) rotate(-3deg);
  }
  to {
    transform: translateY(-8px) rotate(3deg);
  }
}
@keyframes elf-step {
  from {
    transform: rotate(-24deg);
  }
  to {
    transform: rotate(24deg);
  }
}
@keyframes elf-taunt {
  from {
    transform: rotate(-5deg) translateX(-3px);
  }
  to {
    transform: rotate(5deg) translateX(3px);
  }
}
@keyframes elf-bell {
  from {
    transform: rotate(-20deg);
  }
  to {
    transform: rotate(20deg);
  }
}
@keyframes elf-fly {
  0% {
    transform: scale(1.1, 0.8);
  }
  12% {
    transform: scale(0.9, 1.1);
  }
  100% {
    transform: translateY(-130vh) rotate(900deg) scale(0.4);
  }
}
@keyframes elf-pow {
  0% {
    transform: translate(-50%, -50%) rotate(-10deg) scale(0.2);
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -90%) rotate(-10deg) scale(1.2);
    opacity: 0;
  }
}

/* ---- leaderboard --------------------------------------------------------------------------- */

.board-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 14px -24px 14px;
  padding: 2px 24px 6px;
  scrollbar-width: none;
}
.board-chips::-webkit-scrollbar {
  display: none;
}
.board-chips button {
  flex: none;
  padding: 8px 12px;
  border-radius: 999px;
  border: 0;
  background: #eef5fd;
  color: #34557f;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.board-chips button[aria-selected='true'] {
  background: linear-gradient(180deg, var(--red-bright), var(--red));
  color: #fff;
  box-shadow: 0 6px 14px rgba(200, 16, 46, 0.3);
}
.ranks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ranks li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 0 #d9e7f6;
}
.ranks li.me {
  box-shadow: inset 0 0 0 2px var(--gold), 0 2px 0 #f0d78f;
}
.ranks li.zero {
  opacity: 0.55;
}
.rank {
  width: 30px;
  text-align: center;
  font-weight: 900;
  font-size: 20px;
  color: var(--ink-faint);
}
.rank-name {
  flex: 1;
  min-width: 0;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rank-score {
  font-weight: 900;
  color: var(--red);
  white-space: nowrap;
}
@media (max-width: 640px) {
  .board-chips {
    margin-left: -18px;
    margin-right: -18px;
    padding-left: 18px;
    padding-right: 18px;
  }
}
.elf .finger {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: elf-finger 0.35s ease-in-out infinite alternate;
}
@keyframes elf-finger {
  from {
    transform: rotate(-8deg) scale(1);
  }
  to {
    transform: rotate(8deg) scale(1.12);
  }
}

/* ---- snowball fight ------------------------------------------------------------------------ */

.snowball-fab {
  position: absolute;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  animation: fab-in 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) both;
  -webkit-tap-highlight-color: transparent;
}
.snowball-fab.hidden {
  visibility: hidden;
}
.sb-ball,
.hand-ball,
.pile-ball,
.flying-ball,
.incoming-ball {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f4f9ff 45%, #cfe2f6 80%, #a9c6e6 100%);
  box-shadow: inset -4px -6px 10px rgba(110, 150, 200, 0.35), 0 8px 18px rgba(0, 10, 40, 0.4);
}
.sb-ball {
  width: 62px;
  height: 62px;
  animation: sb-wobble 2.4s ease-in-out infinite;
}
.snowball-fab:hover .sb-ball {
  transform: scale(1.08);
}
.sb-pips {
  display: flex;
  gap: 4px;
}
.sb-pips i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(190, 225, 255, 0.9);
}
.sb-label {
  font-weight: 900;
  font-size: 12px;
  text-shadow: 0 1px 4px rgba(0, 10, 40, 0.8);
}
@keyframes sb-wobble {
  0%,
  100% {
    transform: rotate(-6deg) translateY(0);
  }
  50% {
    transform: rotate(6deg) translateY(-4px);
  }
}
@keyframes fab-in {
  from {
    transform: scale(0);
  }
}

body.arena-open #heads {
  visibility: hidden;
}
.arena {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 42%, rgba(30, 60, 110, 0.15), rgba(3, 8, 24, 0.55));
  animation: fade-in 0.35s;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.arena.closing {
  animation: fade-out 0.3s forwards;
}
.arena-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.arena-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.target {
  position: absolute;
  left: 0;
  top: 0;
  width: 160px;
  height: 160px;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
.target .bubble {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  container-type: size;
  background: radial-gradient(circle at 35% 28%, #ffffff, #e0efff 55%, #a9cbef);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.95), 0 8px 20px rgba(0, 10, 40, 0.45);
}
.target .bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.target .bubble .emoji {
  font-size: 58cqw;
  line-height: 1;
}
.target-label {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
  white-space: nowrap;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  font-weight: 800;
  font-size: 12px;
}
.target-splat {
  position: absolute;
  inset: -12%;
  opacity: 0;
  pointer-events: none;
}
.target.splatted .target-splat {
  opacity: 1;
  animation: splat-in 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.target-splat svg,
.screen-splat svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
@keyframes splat-in {
  from {
    transform: scale(0.3);
  }
}
.flying-ball {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  transform-origin: 50% 50%;
  will-change: transform;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f4f9ff 40%, #cfe2f6 75%, #9fbfe2 100%), #fff;
}
.flying-ball::after,
.hand-ball::after {
  content: '';
  position: absolute;
  inset: 22% 30% 50% 22%;
  border-radius: 50%;
  border-top: 2px solid rgba(150, 185, 225, 0.6);
}
.hand-ball {
  position: absolute;
  left: 50%;
  bottom: 80px;
  width: 76px;
  height: 76px;
  margin-left: -38px;
  cursor: grab;
  touch-action: none;
  opacity: 0.4;
  transition: opacity 0.3s;
}
.hand-ball.ready {
  opacity: 1;
  animation: hand-ready 1.6s ease-in-out infinite;
}
.hand-ball.held {
  cursor: grabbing;
  animation: none;
  transition: none;
}
@keyframes hand-ready {
  0%,
  100% {
    box-shadow: inset -4px -6px 10px rgba(110, 150, 200, 0.35), 0 8px 18px rgba(0, 10, 40, 0.4), 0 0 0 0 rgba(255, 255, 255, 0.5);
  }
  50% {
    box-shadow: inset -4px -6px 10px rgba(110, 150, 200, 0.35), 0 8px 18px rgba(0, 10, 40, 0.4), 0 0 0 14px rgba(255, 255, 255, 0);
  }
}
.arena-top {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.arena-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.arena-title {
  flex: 1;
  font-family: var(--festive);
  font-weight: 700;
  font-size: 30px;
  text-shadow: 0 0 16px rgba(160, 210, 255, 0.8);
}
.arena-wind {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}
.arena-hint {
  position: absolute;
  left: 50%;
  bottom: 176px;
  transform: translateX(-50%);
  width: min(360px, calc(100% - 40px));
  text-align: center;
  font-weight: 800;
  text-shadow: 0 1px 6px rgba(0, 10, 40, 0.9);
  transition: opacity 0.4s;
}
.arena-hint.gone {
  opacity: 0;
}
.arena-pile {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.pile-ball {
  width: 16px;
  height: 16px;
}
.pile-text {
  margin-left: 4px;
  font-weight: 800;
  font-size: 14px;
  text-shadow: 0 1px 4px rgba(0, 10, 40, 0.9);
}
.arena-msg {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  font-family: var(--festive);
  font-weight: 700;
  font-size: clamp(34px, 8vw, 56px);
  color: #fff;
  text-shadow: 0 3px 0 #1a5fb4, 0 0 24px rgba(160, 210, 255, 0.9);
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.3s;
}
.arena-msg.is-on {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.arena-msg.hit {
  color: #ffd45c;
  text-shadow: 0 3px 0 #c8102e, 0 0 26px rgba(255, 212, 92, 0.8);
}
.arena-msg.small {
  font-family: inherit;
  font-weight: 900;
  font-size: 20px;
  text-shadow: 0 1px 6px rgba(0, 10, 40, 0.9);
}
.arena-done {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: min(360px, calc(100% - 40px));
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(226, 240, 255, 0.93));
  color: var(--ink);
  text-align: center;
  box-shadow: 0 24px 70px rgba(2, 8, 26, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.3s;
}
.arena-done.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.arena-done-icon {
  font-size: 54px;
}
.arena-done strong {
  display: block;
  font-size: 20px;
  margin: 6px 0;
}
.arena-done p {
  color: var(--ink-soft);
  margin: 0 0 16px;
}

/* Being hit: a snowball flies at the screen and splats on the glass. */
.splat-show {
  background: radial-gradient(circle, rgba(200, 225, 255, 0.15), rgba(3, 10, 28, 0.35));
}
.incoming-ball {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  animation: incoming 0.65s cubic-bezier(0.5, 0, 0.9, 0.6) forwards;
}
@keyframes incoming {
  from {
    transform: translate(30vw, -40vh) scale(0.15) rotate(0deg);
  }
  to {
    transform: translate(0, 0) scale(5) rotate(400deg);
  }
}
.screen-splat {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(86vmin, 640px);
  height: min(94vmin, 700px);
  transform: translate(-50%, -50%);
  animation: screen-splat 3.4s ease-in forwards;
  filter: drop-shadow(0 8px 20px rgba(0, 20, 60, 0.35));
}
.screen-splat .drip {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: drip 3s ease-in forwards;
}
@keyframes screen-splat {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
  }
  8% {
    transform: translate(-50%, -50%) scale(1.06);
  }
  14% {
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    transform: translate(-50%, -42%) scale(1);
  }
}
@keyframes drip {
  from {
    transform: scaleY(0.6);
  }
  to {
    transform: scaleY(2.4);
  }
}
body.arena-open #app {
  visibility: hidden;
}

/* ---- game buttons stack ------------------------------------------------------------------ */

.fab-stack {
  position: absolute;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
/* Only the buttons take taps, never the gaps round them (this has to outrank
   body.in-family #app > *, which turns taps back on). */
.fab-stack,
body.in-family #app > .fab-stack {
  pointer-events: none;
}
.fab-stack > * {
  pointer-events: auto;
}
/* No room to stand up between the sky line and the top bar: a row instead. */
.fab-stack.row {
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: 12px;
}
.fab-stack .snowball-fab {
  position: static;
}
.cracker-fab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  animation: fab-in 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) both;
  -webkit-tap-highlight-color: transparent;
}
.cr-icon {
  display: block;
  width: 78px;
  filter: drop-shadow(0 6px 12px rgba(0, 10, 40, 0.45));
}
.cr-icon svg {
  display: block;
  width: 100%;
}
.cracker-fab.ready .cr-icon {
  animation: cr-jiggle 1.8s ease-in-out infinite;
}
.cracker-fab:not(.ready) {
  opacity: 0.75;
}
.cr-badge {
  position: absolute;
  top: -8px;
  right: -6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--gold);
  color: #6a4200;
  font-weight: 900;
  font-size: 12px;
}
@keyframes cr-jiggle {
  0%,
  70%,
  100% {
    transform: rotate(0);
  }
  76% {
    transform: rotate(-10deg) scale(1.08);
  }
  82% {
    transform: rotate(9deg) scale(1.08);
  }
  88% {
    transform: rotate(-6deg);
  }
  94% {
    transform: rotate(4deg);
  }
}
.head .crown {
  width: 58%;
  top: -24%;
  left: 21%;
  transform: rotate(-8deg);
}

/* ---- pulling a cracker -------------------------------------------------------------------- */

.pull {
  position: fixed;
  inset: 0;
  z-index: 47;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 12px;
  color: #fff;
  text-align: center;
  background: radial-gradient(circle at 50% 45%, rgba(110, 14, 36, 0.9), rgba(3, 6, 20, 0.97));
  animation: fade-in 0.3s;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}
.pull.closing {
  animation: fade-out 0.3s forwards;
}
.pull-title {
  margin: 0;
  font-family: var(--festive);
  font-size: clamp(34px, 8vw, 52px);
  text-shadow: 0 0 20px rgba(255, 212, 92, 0.6);
}
.pull-sub {
  margin: 0;
  max-width: 420px;
  color: #ffe2e8;
  font-weight: 700;
}
.pull-stage {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(680px, 100%);
  margin-top: 10px;
}
.pull-side {
  flex: none;
  width: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.pull-side .avatar {
  --a: 60px;
}
.pull-side.tug .avatar {
  animation: tug 0.18s ease-out;
}
.pull-side.right.tug .avatar {
  animation-name: tug-right;
}
.pull-side.winner .avatar {
  box-shadow: 0 0 0 4px var(--gold), 0 0 34px rgba(255, 212, 92, 0.9);
  animation: float 2s ease-in-out infinite;
}
.pull-name {
  font-weight: 900;
  font-size: 14px;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pull-count {
  font-weight: 900;
  font-size: 26px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
@keyframes tug {
  50% {
    transform: translateX(-8px) scale(1.06);
  }
}
@keyframes tug-right {
  50% {
    transform: translateX(8px) scale(1.06);
  }
}
.pull-cracker {
  --lead: 0;
  --strain: 0;
  flex: 1;
  display: flex;
  min-width: 0;
  transform: translateX(calc(var(--lead) * 14%));
  transition: transform 0.15s;
}
.pull-cracker .half {
  flex: 1;
  min-width: 0;
  animation: strain 0.12s linear infinite alternate;
  animation-play-state: paused;
}
.pull-cracker .half svg {
  display: block;
  width: 100%;
  height: auto;
}
.pull-cracker .half.right svg {
  transform: scaleX(-1);
}
.pull:not(.closing) .pull-cracker .half {
  animation-play-state: running;
}
@keyframes strain {
  from {
    transform: translateY(calc(var(--strain) * -2px)) rotate(calc(var(--strain) * -1.5deg));
  }
  to {
    transform: translateY(calc(var(--strain) * 2px)) rotate(calc(var(--strain) * 1.5deg));
  }
}
.pull-cracker.banged .half {
  animation: none;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.7s;
}
.pull-cracker.banged .half.left {
  transform: translateX(-40%) rotate(-25deg);
}
.pull-cracker.banged .half.right {
  transform: translateX(40%) rotate(25deg);
}
.pull-cracker.banged.right-wins .half.left,
.pull-cracker.banged.left-wins .half.right {
  opacity: 0.35;
}
.pull-timer {
  width: min(420px, 80%);
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.pull-timer-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #ff8a3d);
  transform-origin: left;
}
.pull-big {
  min-height: 70px;
  font-family: var(--festive);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  opacity: 0;
  transform: scale(0.6);
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1), opacity 0.2s;
}
.pull-big.is-on {
  opacity: 1;
  transform: scale(1);
}
.pull-big.go,
.pull-big.bang {
  color: var(--gold);
  text-shadow: 0 4px 0 #c8102e, 0 0 30px rgba(255, 212, 92, 0.8);
}
.pull-big.bang {
  font-size: 90px;
}
.pull-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(440px, 100%);
  cursor: default;
}
.pull-panel.is-on {
  display: flex;
  animation: pop-in 0.4s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.pull-panel p {
  margin: 0;
}
.pull-winner {
  font-family: var(--festive);
  font-weight: 700;
  font-size: clamp(30px, 7vw, 42px);
  color: var(--gold);
}
.pull-score {
  font-size: 14px;
  color: #ffe2e8;
}
.joke-slip {
  width: 100%;
  padding: 18px 20px;
  border-radius: 6px;
  background: repeating-linear-gradient(0deg, #fffdf3, #fffdf3 26px, #f1ead2 27px);
  color: #3b2a14;
  text-align: left;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
  transform: rotate(-1.5deg);
  font-size: 18px;
}
.joke-q {
  font-weight: 800;
}
.joke-a {
  margin-top: 10px !important;
  font-weight: 700;
  color: var(--red);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s, transform 0.4s;
}
.joke-a.is-on {
  opacity: 1;
  transform: none;
}
.pull {
  overflow-y: auto;
  justify-content: safe center;
}
/* Once it's over, make room for the result and the joke. */
.pull.finished {
  cursor: default;
}
.pull.finished .pull-sub,
.pull.finished .pull-timer,
.pull.finished .pull-big {
  display: none;
}

/* The scene holds still under the snowball arena (it has its own snow). */
body.arena-open #snow {
  visibility: hidden;
}
body.arena-open #landscape *,
body.arena-open .aurora {
  animation-play-state: paused !important;
}

/* ---- cracker explosions ------------------------------------------------------------------- */

.pull-cracker.fizzing .half {
  animation: fizz 0.06s linear infinite alternate;
}
@keyframes fizz {
  from {
    transform: translate(-1px, 1px) rotate(-1deg);
  }
  to {
    transform: translate(1px, -1px) rotate(1deg);
  }
}
.pull-big.nuke {
  font-size: clamp(70px, 20vw, 130px);
  color: #fff3c4;
  text-shadow: 0 0 30px #ff7a1a, 0 0 70px #ff3b00, 0 6px 0 #8a1c00;
  animation: kaboom 1.4s cubic-bezier(0.2, 1.6, 0.4, 1) both;
  position: relative;
  z-index: 3;
}
@keyframes kaboom {
  0% {
    transform: scale(0.2) rotate(-8deg);
  }
  30% {
    transform: scale(1.25) rotate(3deg);
  }
  100% {
    transform: scale(1) rotate(-2deg);
  }
}
.pull-big.pop {
  font-family: inherit;
  font-weight: 700;
  font-size: 22px;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: none;
  font-style: italic;
}
.pull-cracker.popped .half.left {
  transform: translateX(-8%) rotate(-6deg);
}
.pull-cracker.popped .half.right {
  transform: translateX(8%) rotate(6deg);
}
.pull-cracker.nuked .half.left {
  transform: translateX(-140vw) translateY(-40vh) rotate(-720deg);
}
.pull-cracker.nuked .half.right {
  transform: translateX(140vw) translateY(-40vh) rotate(720deg);
}
.pull-cracker.nuked .half {
  transition: transform 1.2s cubic-bezier(0.1, 0.7, 0.3, 1);
}
.pop-puff {
  position: absolute;
  width: 70px;
  height: 50px;
  margin: -25px 0 0 -35px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(230, 230, 230, 0.7), transparent 70%);
  animation: pop-puff 1.6s ease-out forwards;
  pointer-events: none;
}
@keyframes pop-puff {
  from {
    transform: scale(0.3);
    opacity: 1;
  }
  to {
    transform: translateY(-40px) scale(1.4);
    opacity: 0;
  }
}

/* The nuke: a flash, a fireball, a shockwave and a mushroom cloud. */
.nuke-flash {
  position: fixed;
  inset: 0;
  z-index: 49;
  background: radial-gradient(circle, #fffef0, #fff6c8 40%, #ffd27a);
  pointer-events: none;
  animation: nuke-flash 1.6s ease-out forwards;
}
@keyframes nuke-flash {
  0% {
    opacity: 1;
  }
  12% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
  }
}
.pull.nuking {
  background: radial-gradient(circle at 50% 55%, rgba(255, 120, 30, 0.85), rgba(90, 20, 10, 0.96) 55%, rgba(10, 4, 4, 0.99));
  transition: background 1.5s;
}
/* Clear the stage for the blast. */
.pull.nuking:not(.finished) .pull-title,
.pull.nuking:not(.finished) .pull-sub,
.pull.nuking:not(.finished) .pull-timer {
  opacity: 0;
  transition: opacity 0.3s;
}
.mushroom {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 1;
}
.mushroom.settle {
  opacity: 0.35;
  transition: opacity 1.2s;
}
.mc-fire {
  position: absolute;
  left: -20vmin;
  top: -20vmin;
  width: 40vmin;
  height: 40vmin;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #fff3a8 22%, #ffb238 45%, #ff5a14 65%, rgba(255, 60, 0, 0) 72%);
  animation: fireball 2.2s ease-out forwards;
}
@keyframes fireball {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  18% {
    transform: scale(1.5);
    opacity: 1;
  }
  100% {
    transform: translateY(-10vmin) scale(0.7);
    opacity: 0;
  }
}
.mc-ring {
  position: absolute;
  left: -60vmax;
  top: -60vmax;
  width: 120vmax;
  height: 120vmax;
  border-radius: 50%;
  border: 1.2vmin solid rgba(255, 244, 210, 0.85);
  box-shadow: 0 0 40px rgba(255, 210, 140, 0.7), inset 0 0 40px rgba(255, 210, 140, 0.5);
  animation: shockwave 1.3s cubic-bezier(0.1, 0.6, 0.3, 1) forwards;
}
.mc-ring.late {
  animation-delay: 0.25s;
  opacity: 0;
  border-width: 0.6vmin;
}
@keyframes shockwave {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}
.mc-cap,
.mc-stem,
.mc-skirt {
  position: absolute;
  animation-fill-mode: both;
}
.mc-cap {
  left: -32vmin;
  top: -14vmin;
  width: 64vmin;
  height: 30vmin;
  animation: mc-cap 3s cubic-bezier(0.15, 0.7, 0.3, 1) forwards, mc-cool 3.5s ease-out forwards;
}
.mc-stem {
  left: -8vmin;
  top: -44vmin;
  width: 16vmin;
  height: 46vmin;
  transform-origin: 50% 100%;
  animation: mc-stem 2.6s cubic-bezier(0.2, 0.7, 0.3, 1) forwards, mc-cool 3.5s ease-out forwards;
}
.mc-skirt {
  left: -36vmin;
  top: -6vmin;
  width: 72vmin;
  height: 12vmin;
  animation: mc-skirt 2.4s ease-out forwards, mc-cool 3s ease-out forwards;
}
@keyframes mc-cap {
  0% {
    transform: translateY(0) scale(0.15);
  }
  100% {
    transform: translateY(-46vmin) scale(1);
  }
}
@keyframes mc-stem {
  0% {
    transform: scaleY(0) scaleX(0.4);
  }
  100% {
    transform: scaleY(1) scaleX(1);
  }
}
@keyframes mc-skirt {
  0% {
    transform: scale(0.1, 0.4);
  }
  100% {
    transform: scale(1.3, 1);
  }
}
/* Burning orange cooling into dark smoke. */
@keyframes mc-cool {
  0% {
    filter: brightness(1.7) saturate(1.4) blur(1px);
  }
  100% {
    filter: brightness(0.55) saturate(0.25) blur(3px);
  }
}
.puff {
  --s: 1;
  position: absolute;
  width: calc(var(--s) * 15vmin);
  height: calc(var(--s) * 15vmin);
  margin: calc(var(--s) * -7.5vmin) 0 0 calc(var(--s) * -7.5vmin);
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #ffe08a 0%, #ff9a3c 22%, #c4521f 42%, rgba(110, 50, 30, 0.75) 58%, rgba(70, 40, 30, 0) 72%);
  animation: billow 2.2s ease-in-out infinite alternate;
}
.mc-skirt .puff,
.mc-stem .puff {
  background: radial-gradient(circle at 42% 38%, #ffc36a 0%, #e0652a 28%, rgba(122, 58, 32, 0.8) 52%, rgba(60, 30, 20, 0) 72%);
}
@keyframes billow {
  from {
    transform: scale(0.92) rotate(0deg);
  }
  to {
    transform: scale(1.08) rotate(25deg);
  }
}
body.shake-hard #sky,
body.shake-hard #landscape,
body.shake-hard #heads,
body.shake-hard #app,
body.shake-hard .pull {
  animation: shake-hard 0.12s linear infinite;
}
@keyframes shake-hard {
  0%,
  100% {
    translate: 0 0;
  }
  25% {
    translate: -16px 9px;
  }
  50% {
    translate: 13px -12px;
  }
  75% {
    translate: -10px -7px;
  }
}
.boom-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.pull > :not(.boom-layer) {
  position: relative;
  z-index: 1;
}

/* ---- a golden glow on the game buttons, so nobody misses them ------------------------------ */

.snowball-fab .sb-ball {
  animation: sb-wobble 2.4s ease-in-out infinite, gold-glow 1.6s ease-in-out infinite;
}
.snowball-fab .sb-label {
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffeeb5, var(--gold));
  color: #6a4200;
  text-shadow: none;
  box-shadow: 0 0 14px rgba(255, 212, 92, 0.8);
}
.snowball-fab .sb-pips i {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(255, 212, 92, 1);
}
@keyframes gold-glow {
  0%,
  100% {
    box-shadow: inset -4px -6px 10px rgba(110, 150, 200, 0.35), 0 0 0 3px rgba(255, 212, 92, 0.9), 0 0 18px 4px rgba(255, 212, 92, 0.7);
  }
  50% {
    box-shadow: inset -4px -6px 10px rgba(110, 150, 200, 0.35), 0 0 0 4px rgba(255, 212, 92, 1), 0 0 34px 12px rgba(255, 212, 92, 0.9);
  }
}

/* ---- shooting down Santa ------------------------------------------------------------------ */

.missile-layer {
  position: fixed;
  inset: 0;
  z-index: 15;
  pointer-events: none;
  transition: opacity 0.4s;
}
.missile-layer.aiming {
  pointer-events: auto;
  cursor: crosshair;
  touch-action: none;
  background: radial-gradient(ellipse at 50% 100%, transparent 40%, rgba(20, 0, 0, 0.25));
  outline: none;
}
.missile-layer.out {
  opacity: 0;
}
body.missile-on #app,
body.missile-on .meadow-tags {
  visibility: hidden;
}
.missile-canvas,
.missile-wreck {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.wreck-piece {
  position: absolute;
  filter: brightness(0.75) sepia(0.35) drop-shadow(0 0 10px rgba(255, 120, 30, 0.8));
  will-change: transform;
}
.wreck-piece svg {
  display: block;
  width: 100%;
  height: auto;
}
.wreck-piece.flip svg {
  transform: scaleX(-1);
}
.missile-top {
  position: absolute;
  top: calc(12px + env(safe-area-inset-top));
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  transition: opacity 0.3s;
}
.missile-top.gone {
  opacity: 0;
  pointer-events: none;
}
.missile-title {
  flex: 1;
  font-family: var(--festive);
  font-weight: 700;
  font-size: clamp(22px, 5vw, 30px);
  text-shadow: 0 0 16px rgba(255, 90, 90, 0.8);
}
.missile-wind {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(8, 22, 46, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-weight: 900;
  font-size: 14px;
  white-space: nowrap;
}
.missile-msg {
  position: absolute;
  left: 50%;
  top: 22%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(90vw, 460px);
  padding: 8px 16px;
  border-radius: 16px;
  background: rgba(8, 22, 46, 0.72);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  text-align: center;
  pointer-events: none;
}
.missile-msg:empty {
  display: none;
}
.missile-msg.hit {
  background: linear-gradient(180deg, #ffeeb5, var(--gold));
  color: #7a1010;
  font-family: var(--festive);
  font-size: clamp(30px, 8vw, 54px);
  animation: caption-in 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
.missile-msg.near {
  background: rgba(200, 80, 0, 0.85);
}
.missile-msg.bad {
  background: rgba(60, 20, 30, 0.8);
}
.missile-layer .show-caption {
  bottom: 14vh;
}

/* The launcher's controls: a stick on the left, FIRE under a cover on the right. */
.launch-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px;
  transition: opacity 0.3s;
}
.launch-panel.gone {
  opacity: 0;
  pointer-events: none;
}
.launch-stick {
  position: relative;
  flex: none;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30, 40, 30, 0.55), rgba(20, 28, 20, 0.85));
  border: 3px solid #56663f;
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.04), 0 8px 20px rgba(0, 10, 40, 0.45);
  touch-action: none;
  cursor: grab;
}
.stick-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8a9a70, #3d4a2c);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.launch-dials {
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(10, 20, 10, 0.8);
  color: #9dff8a;
  font: 700 12px/1.2 ui-monospace, Menlo, monospace;
  text-align: center;
  letter-spacing: 0.04em;
  text-shadow: 0 0 6px rgba(120, 255, 100, 0.6);
}
.fire-box {
  position: relative;
  flex: none;
  width: 104px;
  height: 104px;
}
.fire-btn {
  position: absolute;
  inset: 10px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff6b6b, #c8102e 60%, #7d0a1c);
  color: #fff;
  font: 900 18px/1 'Nunito', system-ui, sans-serif;
  letter-spacing: 0.08em;
  box-shadow: 0 0 0 6px #2b2f36, 0 10px 22px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.fire-btn:active {
  transform: scale(0.95);
}
.fire-cover {
  position: absolute;
  inset: 0;
  border: 3px solid #1d2128;
  border-radius: 16px;
  background: repeating-linear-gradient(45deg, #ffd23f 0 12px, #1d2128 12px 24px);
  color: #fff;
  font: 900 13px/1 'Nunito', system-ui, sans-serif;
  text-shadow: 0 1px 3px #000;
  transform-origin: 50% 0;
  transition: transform 0.25s cubic-bezier(0.3, 1.4, 0.5, 1);
  cursor: pointer;
}
.fire-box.armed .fire-cover {
  transform: perspective(300px) rotateX(-160deg);
  pointer-events: none;
}

/* The incident replay (replay.js). */
.missile-layer.replay {
  cursor: default;
  background: none;
}
body.replay-on #app {
  visibility: hidden;
}
.replay-skip {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top));
  right: 14px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(8, 22, 46, 0.6);
  color: #fff;
  font: 800 14px/1.2 'Nunito', system-ui, sans-serif;
  cursor: pointer;
}
.replay-card {
  position: absolute;
  left: 0;
  right: 0;
  top: 30%;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 18px 16px;
  background: linear-gradient(90deg, rgba(120, 0, 10, 0.9), rgba(200, 16, 46, 0.95), rgba(120, 0, 10, 0.9));
  border-top: 4px solid #ffd23f;
  border-bottom: 4px solid #ffd23f;
  color: #fff;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  animation: replay-in 0.45s cubic-bezier(0.3, 1.3, 0.5, 1) both;
  transition: opacity 0.5s, transform 0.5s;
}
.replay-card.out {
  opacity: 0;
  transform: translateX(-40px);
}
.replay-flash {
  font: 900 clamp(20px, 6vw, 34px) / 1.1 'Nunito', system-ui, sans-serif;
  letter-spacing: 0.06em;
  animation: replay-blink 0.6s steps(2) 3;
}
.replay-when {
  font: 800 clamp(15px, 4vw, 20px) / 1.2 ui-monospace, Menlo, monospace;
  color: #ffe9a8;
}
.replay-what {
  font-size: 14px;
  opacity: 0.85;
}
@keyframes replay-in {
  from {
    opacity: 0;
    transform: scaleY(0.2);
  }
}
@keyframes replay-blink {
  50% {
    opacity: 0.35;
  }
}
.replay-end {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  width: min(90vw, 360px);
  padding: 22px 18px;
  border-radius: 24px;
  background: rgba(30, 4, 10, 0.88);
  color: #fff;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: caption-in 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) both;
}
.replay-end h2,
.replay-end p {
  margin: 0;
}
.replay-tag {
  display: grid;
  justify-items: center;
  gap: 1px;
  min-width: 150px;
  padding: 14px 18px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, #eef1f5, #a9b2be 50%, #d7dde5);
  color: #2b323c;
  font: 800 12px/1.2 'Nunito', system-ui, sans-serif;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.6), 0 6px 16px rgba(0, 0, 0, 0.4);
  transform: rotate(-4deg);
}
.replay-tag span {
  font-weight: 900;
  font-size: 15px;
}
.replay-tag strong {
  font-size: 20px;
  font-weight: 900;
}
@media (prefers-reduced-motion: reduce) {
  .replay-card,
  .replay-flash,
  .replay-end {
    animation: none;
  }
}

.santa-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 14px;
  background: #3a0d16;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
.crash-who {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---- yeti of the day ------------------------------------------------------------------------ */

.yeti-game {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  background: #0b1d3f;
  animation: fade-in 0.35s;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}
.yeti-game.closing {
  animation: fade-out 0.3s forwards;
}
.yeti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.yeti-pips {
  display: flex;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}
.yeti-pips i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 2px #e0a91c;
}
.yeti-pips i.used {
  background: #cfe0f3;
  box-shadow: 0 0 0 2px #a9c6e6;
}
.yeti-distance {
  position: absolute;
  left: 50%;
  top: calc(74px + env(safe-area-inset-top));
  transform: translateX(-50%);
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(8, 22, 46, 0.6);
  font-weight: 900;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.yeti-distance.is-on {
  opacity: 1;
}
.yeti-game .arena-hint {
  bottom: auto;
  top: 34%;
  font-size: 18px;
  pointer-events: none;
}
.yeti-card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: min(340px, calc(100% - 40px));
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(226, 240, 255, 0.94));
  color: var(--ink);
  text-align: center;
  box-shadow: 0 24px 70px rgba(2, 8, 26, 0.5);
  opacity: 0;
  pointer-events: none;
  cursor: default;
  transition: transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.3s;
}
.yeti-card.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.yeti-card-big {
  font-family: var(--festive);
  font-weight: 700;
  font-size: 52px;
  color: var(--red);
  line-height: 1.1;
}
.yeti-card p {
  margin: 6px 0 14px;
  font-weight: 800;
}
.yeti-card .muted-light {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
}
.arena-msg.small {
  white-space: normal;
  width: min(420px, calc(100% - 40px));
  text-align: center;
}

/* ---- chimney drop (chimney.js) ---------------------------------------------------------- */

.chimney-hud {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(66px + env(safe-area-inset-top));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.chimney-hud.is-on {
  opacity: 1;
}
.chimney-clock {
  width: min(320px, calc(100% - 60px));
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.35);
}
.chimney-clock i {
  display: block;
  height: 100%;
  transform-origin: left;
  background: repeating-linear-gradient(-45deg, #fff 0 8px, var(--red) 8px 16px);
}
.chimney-score {
  font-weight: 900;
  font-size: 40px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 3px 0 #1a5fb4, 0 0 20px rgba(160, 210, 255, 0.8);
}
.chimney-combo {
  min-height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 15px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
}
.chimney-combo:empty {
  visibility: hidden;
}
.chimney-combo.hot {
  color: #fff;
  background: linear-gradient(90deg, var(--red), #ff7a3c);
}
.chimney-combo.pop {
  animation: chimney-pop 0.3s cubic-bezier(0.3, 1.8, 0.5, 1);
}
@keyframes chimney-pop {
  from {
    transform: scale(1.35);
  }
}
.chimney-strikes {
  display: flex;
  gap: 4px;
  font-size: 18px;
}
.chimney-strikes i {
  font-style: normal;
  transition: opacity 0.2s, filter 0.2s, transform 0.2s;
}
.chimney-strikes i.lost {
  opacity: 0.35;
  filter: grayscale(1);
  transform: scale(0.8);
}
.chimney-game .arena-hint {
  top: auto;
  bottom: calc(5% + env(safe-area-inset-bottom));
  color: var(--ink);
  text-shadow: none;
}
.chimney-game .arena-msg.count {
  font-family: inherit;
  font-weight: 900;
  font-size: 72px;
}
.yeti-card-big.chimney-big {
  font-family: inherit;
  font-weight: 900;
  font-size: 48px;
  font-variant-numeric: tabular-nums;
}
.chimney-card:not(.is-on) {
  visibility: hidden;
  transition: transform 0.35s, opacity 0.3s, visibility 0s 0.3s;
}
.chimney-card-icon {
  font-size: 50px;
  line-height: 1;
}
.chimney-card-title {
  font-family: var(--festive);
  font-weight: 700;
  font-size: 38px;
  color: var(--red);
  margin-bottom: 8px;
}
.yeti-card-big.chimney-void {
  color: var(--ink-soft);
  text-decoration: line-through;
}
.chimney-card .chimney-coins {
  margin: 0 0 8px;
  color: #9a6b00;
}
.chimney-card .chimney-gift {
  margin: 0 0 6px;
  font-size: 14px;
}
.chimney-board {
  margin: 4px 0 14px;
  text-align: left;
}
.chimney-board:empty {
  display: none;
}
.chimney-board-title {
  font-weight: 900;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.chimney-board ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: rank;
}
.chimney-board li {
  counter-increment: rank;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 10px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
}
.chimney-board li::before {
  content: counter(rank);
  width: 1.2em;
  color: var(--ink-soft);
}
.chimney-board li .who {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chimney-board li.me {
  background: rgba(255, 212, 92, 0.35);
}
.chimney-board .pts {
  font-variant-numeric: tabular-nums;
}
.chimney-board-record {
  margin-top: 6px;
  font-weight: 800;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

/* ---- ice fishing (fishing.js) ----------------------------------------------------------- */

.fishing-game {
  background: #081736;
}
.fishing-hud {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(66px + env(safe-area-inset-top));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.fishing-hud.is-on {
  opacity: 1;
}
.fishing-bait {
  display: flex;
  gap: 3px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 22, 46, 0.45);
  font-size: 18px;
}
.fishing-bait i {
  font-style: normal;
  transition: opacity 0.2s, filter 0.2s, transform 0.2s;
}
.fishing-bait i.used {
  opacity: 0.3;
  filter: grayscale(1);
  transform: scale(0.8);
}
.fishing-haul {
  min-height: 22px;
  font-weight: 900;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 6px rgba(0, 10, 40, 0.9);
}
.fishing-game .arena-hint.fishing-hint {
  top: auto;
  bottom: calc(6% + env(safe-area-inset-bottom));
  padding: 8px 16px;
  border-radius: 999px;
  width: auto;
  max-width: calc(100% - 40px);
  background: rgba(8, 22, 46, 0.55);
}
.fishing-game .arena-msg {
  top: 44%;
}
.fishing-reveal {
  position: absolute;
  left: 50%;
  bottom: calc(10% + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px) scale(0.9);
  width: min(340px, calc(100% - 40px));
  padding: 14px 18px;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(226, 240, 255, 0.94));
  color: var(--ink);
  text-align: center;
  box-shadow: 0 18px 50px rgba(2, 8, 26, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.fishing-reveal.is-on {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
.fishing-reveal-name {
  font-family: var(--festive);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.1;
  color: var(--red);
}
.fishing-reveal-tag {
  margin-top: 4px;
  font-weight: 900;
  font-size: 14px;
  color: #9a6b00;
}
.fishing-reveal-coins {
  margin-top: 6px;
  font-weight: 900;
  font-size: 18px;
  color: #9a6b00;
}
.fishing-reveal-more {
  margin-top: 8px;
  font-weight: 800;
  font-size: 13px;
  color: var(--ink-soft);
}
.fishing-card:not(.is-on) {
  visibility: hidden;
  transition: transform 0.35s, opacity 0.3s, visibility 0s 0.3s;
}
.fishing-card .chimney-coins {
  margin: 0 0 8px;
  color: #9a6b00;
}
.fishing-today {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: 2px;
}
.fishing-list {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  font-weight: 800;
  font-size: 15px;
}
.fishing-list li {
  padding: 3px 0;
}
/* The card scrolls on a short screen, clear of the top bar, and its button
   stays on it. */
.fishing-card {
  display: flex;
  flex-direction: column;
  max-height: calc(100% - 2 * (116px + env(safe-area-inset-top)));
}
.fishing-card-body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  margin: 0 -8px 8px;
  padding: 0 8px;
}
.fishing-card > * {
  flex: none;
}
.fishing-card > .fishing-card-body {
  flex: 0 1 auto;
}
.fishing-worms {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}
.fishing-next {
  margin: 0 0 10px;
  font-weight: 800;
}

/* ---- the top bar's ☰ menu ------------------------------------------------------------------- */

.topbar .family-title {
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding-left: 6px;
}
.topbar .family-title strong {
  max-width: 100%;
}
.topbar-right {
  flex: none;
}
.menu-btn .burger {
  display: grid;
  gap: 4px;
}
.menu-btn .burger i {
  display: block;
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: #fff;
}
.menu-wrap {
  position: fixed;
  inset: 0;
  z-index: 30;
}
.menu-backdrop {
  position: absolute;
  inset: 0;
}
.menu {
  position: absolute;
  width: min(280px, calc(100vw - 16px));
  padding: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  box-shadow: 0 20px 50px rgba(2, 8, 26, 0.45);
  transform-origin: top right;
  animation: menu-in 0.18s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.menu-wrap.closing .menu {
  animation: menu-out 0.16s forwards;
}
.menu hr {
  margin: 6px 8px;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}
.menu-item:hover,
.menu-item:focus-visible {
  background: #eef5fd;
  outline: none;
}
.menu-icon {
  width: 24px;
  text-align: center;
  font-size: 19px;
}
.menu-label {
  flex: 1;
}
.menu-item small {
  color: var(--ink-faint);
  font-weight: 700;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
}
@keyframes menu-out {
  to {
    opacity: 0;
    transform: scale(0.92);
  }
}
@media (max-width: 640px) {
  .topbar .family-title strong {
    font-size: 26px;
  }
}

/* ---- who's online --------------------------------------------------------------------------- */

.head .online-dot {
  position: absolute;
  right: 6%;
  bottom: 6%;
  width: 22%;
  height: 22%;
  min-width: 14px;
  min-height: 14px;
  border-radius: 50%;
  background: #3ddc6a;
  box-shadow: 0 0 0 3px #fff, 0 0 12px rgba(61, 220, 106, 0.9);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.4s, transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
  pointer-events: none;
}
.head.online .online-dot {
  opacity: 1;
  transform: scale(1);
}
.head.online:not(.assigned) .bubble {
  box-shadow: 0 0 0 4px #3ddc6a, 0 0 0 9px rgba(61, 220, 106, 0.28), 0 0 44px rgba(61, 220, 106, 0.6), 0 12px 30px rgba(0, 10, 40, 0.45);
}
.avatar-wrap {
  position: relative;
  display: inline-flex;
  flex: none;
}
.avatar-wrap.online::after {
  content: '';
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3ddc6a;
  box-shadow: 0 0 0 2px #fff;
}

/* ---- who hit who ---------------------------------------------------------------------------- */

.board-sub {
  margin: 18px 0 8px;
  font-size: 16px;
}
.board-sub:first-child {
  margin-top: 4px;
}
.ranks.hits li {
  gap: 8px;
}
.hit-arrow {
  font-size: 14px;
  white-space: nowrap;
}
.ranks.hits .rank-name {
  font-size: 14px;
}

/* ---- draw rules ------------------------------------------------------------------------------ */

.rule-form {
  display: grid;
  gap: 10px;
}
.rule-pick select {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}
.rule-x {
  flex: none;
  font-weight: 900;
  color: var(--red);
}
.rules .members li .avatar + .avatar {
  margin-left: -16px;
}

/* ---- the meadow: a little 3D scene at the foot of the sky ----------------------------------- */

#meadow {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: none;
  pointer-events: none;
}
body.in-family.meadow-on #meadow {
  display: block;
  animation: meadow-in 0.8s ease-out;
}
body.in-family.meadow-on #landscape {
  display: none;
}
@keyframes meadow-in {
  from {
    opacity: 0;
  }
}
.meadow-canvas {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: auto;
  /* One finger pans and two tilt (meadow.js), so the browser takes neither. */
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
body.arena-open #meadow {
  visibility: hidden;
}
.meadow-tags {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 4;
  height: 0;
  display: none;
}
body.in-family.meadow-on:not(.arena-open) .meadow-tags {
  display: block;
}
/* Out of the way of the Christmas lorry while it drives behind (wrecks.js). */
.meadow-tag.ducking {
  opacity: 0.15;
  pointer-events: none;
}
.meadow-tag {
  position: absolute;
  top: 0;
  left: 0;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(8, 22, 46, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font: 900 12px/1.2 'Nunito', system-ui, sans-serif;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 10, 40, 0.35);
  -webkit-tap-highlight-color: transparent;
}
.meadow-tag.gold {
  border-color: #fff3c4;
  background: linear-gradient(180deg, #ffeeb5, var(--gold));
  color: #6a4200;
  animation: tag-glow 1.6s ease-in-out infinite;
}
.meadow-tag.yellow {
  border-color: #fff6b8;
  background: linear-gradient(180deg, #fff6b8, #ffd93a);
  color: #6a5200;
  animation: tag-glow 1.6s ease-in-out infinite;
}
@keyframes tag-glow {
  0%,
  100% {
    box-shadow: 0 0 6px rgba(255, 212, 92, 0.7);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 212, 92, 1);
  }
}

/* ---- outfits on the heads ------------------------------------------------------------------- */

.head .deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.25));
}
.head .deco .glow {
  filter: drop-shadow(0 0 6px #ffe27a);
}
.head .deco .glow-red {
  filter: drop-shadow(0 0 5px #ff4d63);
}
.head .deco .twinkle circle {
  animation: twinkle 1.2s ease-in-out infinite alternate;
}
.head .deco .twinkle circle:nth-child(2n) {
  animation-delay: 0.6s;
}
@keyframes twinkle {
  to {
    opacity: 0.35;
  }
}
.head .deco.snowman {
  filter: none;
}
.head .snow-tag {
  background: linear-gradient(180deg, #ffffff, #dcecff);
  color: var(--ink);
}
.head.assigned .snow-tag {
  transform: translate(-50%, 70px);
}
.head.still {
  position: relative;
  width: 120px;
  height: 120px;
  cursor: default;
  pointer-events: none;
}

/* ---- the golden elf ------------------------------------------------------------------------- */

.elf.golden .elf-inner {
  filter: sepia(1) saturate(5) hue-rotate(-10deg) brightness(1.2) drop-shadow(0 0 18px #ffd45c) drop-shadow(0 0 4px #fff3b0);
}
.elf.golden .elf-bubble {
  background: linear-gradient(180deg, #fff6c8, var(--gold));
  color: #6a4200;
}

/* ---- the 3D cheeky elf (cheeky-elf.js): his own canvas over everything, and the
   hand he leaves on the glass ---- */

.elf-stage {
  position: fixed;
  inset: 0;
  z-index: 44;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.elf-handprint {
  position: fixed;
  z-index: 45;
  pointer-events: none;
  color: rgba(232, 240, 255, 0.45);
  filter: blur(2px) drop-shadow(0 0 6px rgba(255, 255, 255, 0.25));
  transform: translate(-50%, -50%) rotate(var(--turn, 0deg));
  animation: elf-handprint 2.6s ease-in forwards;
}
.elf-handprint.golden {
  color: rgba(255, 212, 92, 0.5);
  filter: blur(1px) drop-shadow(0 0 10px rgba(255, 212, 92, 0.7));
}
.elf-handprint svg {
  display: block;
  width: 100%;
  height: auto;
}
@keyframes elf-handprint {
  0% {
    opacity: 1;
    scale: 1.08;
  }
  8% {
    scale: 1;
  }
  60% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
  }
}
body.elf-slap #sky,
body.elf-slap #landscape,
body.elf-slap #meadow,
body.elf-slap #heads,
body.elf-slap #app {
  animation: shake-hard 0.12s linear 2;
}

/* ---- the head shop -------------------------------------------------------------------------- */

.points-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffeeb5, var(--gold));
  color: #6a4200;
  font-weight: 900;
  white-space: nowrap;
}
.shop-mirror {
  display: grid;
  place-items: center;
  padding: 44px 0 28px;
  margin: 10px 0 0;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 40%, #2b4f86, #0b1d3f);
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}
.shop-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 26px 6px 10px;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 0 #d9e7f6;
  cursor: pointer;
  overflow: hidden;
}
.shop-item strong {
  font-size: 13px;
  line-height: 1.2;
}
.shop-item small {
  font-weight: 900;
  color: var(--red);
}
.shop-item.owned small {
  color: #1d7a45;
}
.shop-item.wearing {
  box-shadow: inset 0 0 0 3px #3ddc6a, 0 2px 0 #b9e9c9;
}
.shop-item.pricey {
  opacity: 0.6;
}
.shop-art {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
}
.shop-art .head.still {
  width: 56px;
  height: 56px;
}
.shop-art .head .bubble {
  box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(0, 10, 40, 0.2);
}
.earn {
  margin-top: 16px;
  font-weight: 700;
}
.earn summary {
  cursor: pointer;
  font-weight: 900;
}
.earn ul {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}

/* ---- yellow snow ------------------------------------------------------------------------------- */

.pee-quote {
  font-family: var(--festive);
  font-size: 20px;
  color: #b88a00;
}
.yellow-show {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 60%, rgba(30, 60, 110, 0.4), rgba(3, 10, 28, 0.85));
}
.ys-bank {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(560px, 92vw);
  height: 200px;
  transform: translate(-50%, -40%);
  border-radius: 50% 50% 18px 18px / 70% 70% 18px 18px;
  background: radial-gradient(ellipse at 50% 30%, #ffffff, #e4f0fc 70%, #c9def3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
.ys-text {
  position: relative;
  max-width: 86vw;
  font-family: var(--festive);
  font-weight: 700;
  font-size: clamp(30px, 9vw, 64px);
  color: #e8b800;
  text-align: center;
  text-shadow: 0 0 18px rgba(255, 225, 74, 0.6);
  word-break: break-word;
}
.ys-text span {
  animation: pee-in 0.25s ease-out both;
}
@keyframes pee-in {
  from {
    opacity: 0;
    filter: blur(4px);
  }
}
.ys-steam {
  position: absolute;
  left: 50%;
  top: 34%;
  font-size: 40px;
  animation: steam 1.4s ease-in-out infinite;
}
@keyframes steam {
  from {
    transform: translate(-50%, 10px);
    opacity: 0.2;
  }
  to {
    transform: translate(-50%, -30px);
    opacity: 0.9;
  }
}

/* ---- naughty or nice -------------------------------------------------------------------------- */

.nn-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
}
.nn-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.nn-verdict {
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
}
.nn-meter {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c8102e, #ffb648 50%, #2fbf6a);
}
.nn-meter i {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px var(--ink), 0 2px 6px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
}
.nn-scale {
  display: flex;
  justify-content: space-between;
  margin: 8px 4px 0;
  font-weight: 800;
  font-size: 13px;
  color: var(--ink-soft);
}

/* An item laid over the head, nudged into place by its owner. */
.head .fit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.shop-mirror .fit-btn {
  margin-top: 22px;
}

/* ---- fitting a hat ----------------------------------------------------------------------- */

.fit-dialog .muted.small {
  margin-bottom: 12px;
}
.fit-stage {
  display: grid;
  place-items: center;
  height: 270px;
  margin: 0 0 14px;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 45%, #2b4f86, #0b1d3f);
  touch-action: none;
  cursor: grab;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}
.fit-stage:active {
  cursor: grabbing;
}
.fit-stage .head.still {
  width: 170px;
  height: 170px;
}
.fit-slider {
  display: grid;
  grid-template-columns: 44px 1fr 48px;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-weight: 800;
  font-size: 14px;
}
.fit-slider input {
  width: 100%;
  accent-color: var(--red, #c8102e);
}
.fit-slider output {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}
.fit-dialog .row.between {
  margin-top: 8px;
}

/* ---- the deer woods and the lookout: getting about the bigger world -------------------------- */

.meadow-edge {
  position: absolute;
  top: 0;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(8, 22, 46, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.92);
  font: 800 12px/1.2 'Nunito', system-ui, sans-serif;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0.85;
  -webkit-tap-highlight-color: transparent;
}
.meadow-edge[hidden] {
  display: none;
}
.meadow-edge.left {
  left: 6px;
}
.meadow-edge.right {
  right: 6px;
}
.meadow-edge.right:not(.deer) {
  animation: edge-nudge 2.6s ease-in-out infinite;
}
.meadow-edge.deer {
  border-color: #fff3c4;
  background: linear-gradient(180deg, #ffeeb5, var(--gold));
  color: #6a4200;
  opacity: 1;
  animation: tag-glow 1.6s ease-in-out infinite;
}
@keyframes edge-nudge {
  0%,
  70%,
  100% {
    transform: translateX(0);
  }
  80% {
    transform: translateX(4px);
  }
  90% {
    transform: translateX(-1px);
  }
}
.meadow-tag.tag-sighting {
  border-color: #fff3c4;
  background: linear-gradient(180deg, #ffeeb5, var(--gold));
  color: #6a4200;
  animation: tag-glow 1.6s ease-in-out infinite;
}
.meadow-tag[hidden] {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .meadow-edge.right:not(.deer) {
    animation: none;
  }
}

/* The 🎥 button: steps the camera through a few tilts. It sits over the
   left-hand arrow, well clear of the top bar. */
.meadow-cam {
  position: absolute;
  top: 0;
  left: 6px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(8, 22, 46, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 17px;
  line-height: 1;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0.85;
  -webkit-tap-highlight-color: transparent;
}
.meadow-cam.on {
  border-color: #fff3c4;
  background: rgba(255, 212, 92, 0.35);
  opacity: 1;
}

/* ---- the rifle scope -------------------------------------------------------------------------- */

/* The meadow fills the screen behind the scope; everything else steps aside. */
body.scope-open #heads,
body.scope-open #app,
body.scope-open .meadow-tags,
body.scope-open #snow,
body.scope-open #icicles,
body.scope-open #frost {
  visibility: hidden;
}
body.scope-open #meadow {
  z-index: 39;
}
.scope {
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: crosshair;
  animation: fade-in 0.35s;
}
.scope.closing {
  animation: fade-out 0.3s forwards;
}
/* Black all round the lens, darkening towards its rim. */
.scope-lens {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 0, transparent calc(var(--r) * 0.82), rgba(0, 0, 0, 0.55) calc(var(--r) * 0.97), #000 var(--r));
}
.scope-reticle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}
.scope-reticle line,
.scope-reticle circle {
  stroke: #111;
  vector-effect: non-scaling-stroke;
}
.scope-reticle text {
  fill: #111;
  font: 800 10px 'Nunito', system-ui, sans-serif;
}
.scope-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 240, 200, 0.85), rgba(255, 180, 80, 0.2) 60%, transparent);
  opacity: 0;
}
.scope-flash.on {
  animation: scope-flash 0.18s ease-out;
}
@keyframes scope-flash {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
.scope .arena-top {
  z-index: 2;
}
.scope-ammo {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ffe7a3;
  font-weight: 900;
}
.scope-ammo i {
  width: 8px;
  height: 22px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #ffe7a3, #d9a52c 45%, #9a6a16);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.scope-ammo span {
  margin-left: 4px;
}
.scope-range {
  position: absolute;
  left: 50%;
  bottom: calc(50% - var(--r) + 14px);
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: #c9ffcf;
  font: 800 12px/1.4 ui-monospace, Menlo, monospace;
  pointer-events: none;
  white-space: nowrap;
}
/* The last shot: how far it went and how long it took, in the tracer's colour. */
.scope-range.shot {
  color: #ffc46b;
}
.scope-pointer {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 26px;
  pointer-events: none;
  filter: drop-shadow(0 0 6px rgba(255, 212, 92, 0.9));
  transition: opacity 0.3s;
}
.scope-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(18px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding: 0 16px;
  z-index: 2;
}
.scope-btn {
  min-width: 74px;
  min-height: 74px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.55);
  background: rgba(20, 30, 50, 0.7);
  color: #fff;
  font: 900 13px/1.1 'Nunito', system-ui, sans-serif;
  cursor: pointer;
  touch-action: none;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.scope-btn small {
  display: block;
  font-size: 10px;
  font-weight: 800;
  opacity: 0.8;
}
.scope-btn.fire {
  min-width: 92px;
  min-height: 92px;
  background: radial-gradient(circle at 50% 35%, #ff5a6b, #c8102e 70%);
  border-color: #ffd0d6;
  font-size: 18px;
  box-shadow: 0 0 22px rgba(255, 60, 80, 0.55);
}
.scope-btn.fire:disabled {
  filter: grayscale(1) brightness(0.7);
  box-shadow: none;
  cursor: default;
}
.scope-btn.buy {
  background: rgba(120, 85, 10, 0.75);
  border-color: #ffe7a3;
}
.scope-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.scope-btn.zoom {
  min-width: 52px;
  min-height: 52px;
}
.scope .arena-hint {
  bottom: 140px;
  z-index: 2;
}
.scope .arena-msg {
  top: 26%;
  z-index: 2;
}
.scope .arena-msg.blood {
  color: #ff2d45;
  text-shadow: 0 3px 0 #5a0010, 0 0 22px rgba(255, 40, 60, 0.85);
}

/* ---- the shop's Armoury ------------------------------------------------------------------------ */

.shop-grid .armoury-item {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 112px 1fr;
  grid-auto-flow: row;
  column-gap: 12px;
  align-items: center;
  justify-items: start;
  padding: 12px 14px;
  text-align: left;
}
.armoury-item .shop-art {
  grid-row: 1 / span 4;
  width: 112px;
  height: 64px;
  margin: 0;
}
.shop-grid .armoury-item > :not(.shop-art) {
  grid-column: 2;
}
.armoury-art {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 44px;
}
.armoury-art svg {
  width: 88%;
  height: auto;
}
.armoury-blurb {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
}
.ammo-item {
  cursor: default;
}
.ammo-item .shop-art {
  height: 44px;
}
.ammo-item .btn,
.loose-item .btn {
  margin-top: 4px;
}
.loose-item {
  cursor: default;
}

/* ---- the hunt: what things are worth, and trophies ------------------------------------------- */

.trophy-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0 0 12px;
}
.ranks.trophies li {
  flex-wrap: wrap;
}
.ranks.trophies .trophy-row {
  flex-basis: 100%;
  margin: 4px 0 0;
}
.trophy {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #f0c64a;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fff7d6, #ffd45c);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(120, 80, 0, 0.25);
}
.trophy-key {
  display: grid;
  gap: 3px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.75;
}

/* ---- dog tags: who shot what ------------------------------------------------------------------- */

.meadow-dogtags {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 4;
  width: 0;
  height: 0;
  display: none;
  pointer-events: none;
}
body.in-family.meadow-on:not(.arena-open) .meadow-dogtags {
  display: block;
}
body.scope-open .meadow-dogtags {
  z-index: 41;
}
.dog-tag {
  position: absolute;
  top: 0;
  left: 0;
  padding: 1px 6px 1px 5px;
  border: 1px solid #8f99a8;
  border-radius: 4px 9px 9px 4px;
  background: linear-gradient(180deg, #eef2f7, #b9c3d1);
  color: #1b1f2b;
  font: 800 10px/1.4 'Nunito', system-ui, sans-serif;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 10, 40, 0.35);
  transition: opacity 0.3s;
}
.dog-tag[hidden] {
  display: none;
}

/* ---- the family's heads stay home in the meadow ------------------------------------------------- */

#heads {
  transition: opacity 0.45s ease, transform 0.45s ease;
}
body.roaming #heads,
body.tilted #heads {
  opacity: 0;
  transform: translateY(-40px);
  pointer-events: none;
}
body.roaming #heads *,
body.tilted #heads * {
  pointer-events: none !important;
}
@media (prefers-reduced-motion: reduce) {
  body.roaming #heads,
  body.tilted #heads {
    transform: none;
  }
}

/* ---- achievements ------------------------------------------------------------------------------- */

.trophy.locked {
  border-color: #b9c3d1;
  background: #e9eef5;
  color: #7d8796;
  font-weight: 900;
  box-shadow: none;
}
.achievement-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.achievement-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 12px;
  background: #fff;
}
.achievement-list li.locked {
  opacity: 0.6;
}
.achievement-list strong {
  display: block;
  font-size: 14px;
}
.achievement-list small {
  display: block;
  font-size: 12px;
  opacity: 0.8;
}
.achievement-icon {
  font-size: 22px;
}
.toast.achievement {
  padding: 16px 20px;
  border: 2px solid #fff3c4;
  background: linear-gradient(180deg, #ffe48a, #f2b51f);
  color: #4a2c00;
  font-size: 17px;
  font-weight: 900;
  animation: toast-in 0.3s cubic-bezier(0.3, 1.4, 0.5, 1), achievement-wobble 0.6s 0.3s ease-in-out 2;
}
@keyframes achievement-wobble {
  25% {
    transform: rotate(-3deg) scale(1.05);
  }
  75% {
    transform: rotate(3deg) scale(1.05);
  }
}
/* Keep the coin count clear of the sheet's close button. */
.shop-head {
  padding-right: 44px;
  flex-wrap: wrap;
  gap: 6px 12px;
}

/* ---- landmines: the world from above ----------------------------------------------------------- */

/* The meadow fills the screen, looking straight down; everything else steps aside. */
body.map-open #heads,
body.map-open #app,
body.map-open .meadow-tags,
body.map-open .meadow-dogtags,
body.map-open #snow,
body.map-open #icicles,
body.map-open #frost {
  visibility: hidden;
}
body.map-open #meadow {
  z-index: 39;
}
.minefield {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  color: #fff;
  animation: fade-in 0.35s;
}
.minefield > *,
.minefield .mine-pin {
  pointer-events: auto;
}
.minefield .arena-top {
  z-index: 2;
}
.minefield .arena-title {
  flex: 0 0 auto;
}
.minefield-count {
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(20, 30, 50, 0.7);
  font-weight: 900;
}
.minefield-pins {
  position: absolute;
  inset: 0;
  pointer-events: none !important;
  overflow: hidden;
}
.minefield .arena-msg {
  top: 30%;
  z-index: 3;
  font-family: inherit;
  font-weight: 900;
  font-size: 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(20, 30, 50, 0.75);
  text-shadow: none;
}
.mine-pin {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2px 6px 3px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  background: rgba(20, 30, 50, 0.72);
  color: #fff;
  font: 800 11px/1.1 'Nunito', system-ui, sans-serif;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
}
.mine-pin span {
  font-size: 20px;
}
.mine-pin.mine {
  border-color: #ffd0d6;
  background: rgba(150, 16, 40, 0.8);
  cursor: pointer;
}
.mine-pin.mine.picked {
  box-shadow: 0 0 0 3px #ffd45c, 0 0 22px rgba(255, 60, 60, 0.9);
  animation: pin-throb 0.9s ease-in-out infinite;
}
.mine-pin.ghost {
  pointer-events: none;
  background: rgba(255, 214, 90, 0.35);
  border-style: dashed;
  border-color: #ffe27a;
  font-size: 22px;
  padding: 4px 8px;
}
.mine-pin[hidden] {
  display: none;
}
@keyframes pin-throb {
  50% {
    box-shadow: 0 0 0 5px #ffd45c, 0 0 32px rgba(255, 60, 60, 1);
  }
}
.minefield-go {
  position: absolute;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  min-width: 160px;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: linear-gradient(180deg, #5a7a3a, #3d5626);
  color: #fff;
  font: 900 18px/1 'Nunito', system-ui, sans-serif;
  box-shadow: 0 8px 22px rgba(0, 10, 40, 0.5);
  cursor: pointer;
  z-index: 2;
}
.minefield-go.boom {
  min-width: 96px;
  min-height: 96px;
  padding: 0;
  border-radius: 50%;
  border-color: #ffd0d6;
  background: radial-gradient(circle at 50% 35%, #ff5a6b, #c8102e 70%);
  font-size: 40px;
  box-shadow: 0 0 26px rgba(255, 60, 80, 0.7), 0 8px 22px rgba(0, 10, 40, 0.5);
  animation: boom-ready 1.2s ease-in-out infinite;
}
@keyframes boom-ready {
  50% {
    box-shadow: 0 0 40px rgba(255, 60, 80, 0.95), 0 8px 22px rgba(0, 10, 40, 0.5);
  }
}
.minefield-go[hidden] {
  display: none;
}
.minefield-places {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 8px;
  z-index: 2;
}
.minefield-places .chip {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(20, 30, 50, 0.72);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
@media (max-width: 380px) {
  .minefield-places .chip {
    padding: 8px 9px;
    font-size: 12px;
  }
}

/* The button for someone with a landmine to plant, or one in the ground. */
.mine-fab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  animation: fab-in 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) both;
  -webkit-tap-highlight-color: transparent;
}
.mine-fab-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  background: radial-gradient(circle at 50% 35%, #6d8240, #3d4d22 75%);
  font-size: 30px;
  box-shadow: 0 6px 14px rgba(0, 10, 40, 0.45);
}
.mine-fab-badge {
  margin-top: -10px;
  padding: 1px 8px;
  border-radius: 999px;
  background: #3d4d22;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-weight: 900;
  font-size: 12px;
}

/* Not in the draw: a badge in settings and on their list, and the organiser's
   ticks for who's in it. */
.badge.out {
  background: #e6f4ea;
  color: #2d6a3e;
  white-space: normal;
}
.in-draw h4 {
  margin: 4px 0 0;
}
.draw-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.draw-toggle input {
  width: 20px;
  height: 20px;
  accent-color: #2d8a4e;
}

/* A lump of coal: a fart, with crude jokes off. */
.coal-show {
  background: radial-gradient(circle at 50% 60%, rgba(70, 70, 80, 0.3), rgba(10, 10, 16, 0.5));
}
.poo.coal {
  filter: brightness(0.35) contrast(1.3) drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6));
}
.gas.soot {
  background: radial-gradient(circle, rgba(40, 40, 46, 0.75), rgba(30, 30, 36, 0.35) 50%, transparent 70%);
}

/* A game's goes, and when fresh ones come (app/core/cooldown.js). */
/* The countdown hangs under the pips without widening the top bar. */
.pips-wrap {
  position: relative;
}
.hud-countdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 2px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 10, 40, 0.8);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.countdown {
  font-variant-numeric: tabular-nums;
}

/* Out of snowballs for today: greyed, counting down to fresh ones. */
.snowball-fab.resting {
  animation: none;
}
.snowball-fab.resting .sb-ball {
  opacity: 0.55;
  filter: grayscale(0.6);
  animation: none;
}

/* A new family record pays double: the extra, on the game's result card. */
.record-bonus {
  display: inline-block;
  margin: 6px auto 2px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe58a, #f2b705);
  color: #5a3a00;
  font-weight: 900;
  box-shadow: 0 2px 10px rgba(242, 183, 5, 0.45);
  animation: record-bonus-pop 0.6s 0.3s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}
@keyframes record-bonus-pop {
  from {
    transform: scale(0.3);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .record-bonus {
    animation: none;
  }
}

/* ---- Santa coins: the counter in the top bar, and coins flying into it ------------------------ */

.topbar .title-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
/* The budget gives way to the counter in a narrow bar, never the buttons. */
.topbar .title-chips .chip {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coin-counter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 1px 9px 1px 3px;
  border-radius: 999px;
  background: rgba(255, 212, 92, 0.16);
  border: 1px solid rgba(255, 212, 92, 0.45);
  color: #ffe9a8;
  font-size: 13px;
  font-weight: 900;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
}
.coin-counter.bump {
  animation: coin-bump 0.25s ease-out;
}
@keyframes coin-bump {
  50% {
    transform: scale(1.12);
  }
}
/* A plain gold coin with a star stamped in it. */
.coin {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 52%, rgba(154, 107, 0, 0.55) 53% 60%, transparent 61%),
    radial-gradient(circle at 35% 30%, #fff3b8, #ffd45c 45%, #e0a400 100%);
  box-shadow: 0 0 0 1px #b07d00 inset, 0 1px 3px rgba(0, 0, 0, 0.35);
  position: relative;
}
.coin::after {
  content: '★';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 9px;
  line-height: 1;
  color: #9a6b00;
}
.coin-flight {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
}
.coin.flying {
  position: absolute;
  left: -11px;
  top: -11px;
  width: 22px;
  height: 22px;
  will-change: transform;
}
.coin.flying::after {
  font-size: 12px;
}

/* ---- the catapult on the lookout, and tossing a landmine ------------------------------------- */

.scope.catapult {
  cursor: grab;
}
.scope.catapult:active {
  cursor: grabbing;
}
.catapult-arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.catapult-arc circle {
  fill: rgba(255, 236, 170, 0.9);
  stroke: rgba(80, 30, 0, 0.6);
  stroke-width: 1;
}
.catapult-gauge {
  position: absolute;
  right: 18px;
  bottom: calc(110px + env(safe-area-inset-bottom));
  width: 14px;
  height: 140px;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: rgba(20, 30, 50, 0.6);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
  z-index: 2;
}
.catapult-gauge.on {
  opacity: 1;
}
.catapult-gauge i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: linear-gradient(0deg, #ffd45c, #ff7a2e 60%, #c8102e);
}
.catapult-arm {
  position: absolute;
  left: 50%;
  bottom: -40px;
  width: 90px;
  height: 160px;
  transform-origin: 50% 100%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
}
.catapult-arm svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.catapult-arm.fling {
  animation: catapult-fling 0.45s cubic-bezier(0.2, 1.6, 0.4, 1);
}
@keyframes catapult-fling {
  0% {
    transform: translateX(-50%) rotateX(60deg);
  }
  40% {
    transform: translateX(-50%) rotateX(-70deg) scale(0.8);
  }
  100% {
    transform: translateX(-50%);
  }
}
.scope-ammo i.stick {
  width: 7px;
  height: 20px;
  border-radius: 3px;
  background: linear-gradient(180deg, #2a2f3a 0 12%, #f4e6c8 12% 22%, #c8102e 22%);
}
.scope.catapult .arena-hint {
  bottom: 150px;
}

/* Tossing a landmine: the meadow as it is, with the game's chrome stepping aside. */
body.tossing #heads,
body.tossing #app,
body.tossing .meadow-tags,
body.tossing .meadow-edge {
  visibility: hidden;
}
body.tossing #meadow {
  z-index: 39;
}
.mine-toss {
  position: fixed;
  inset: 0;
  z-index: 40;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  color: #fff;
  cursor: grab;
  animation: fade-in 0.35s;
}
.mine-toss .arena-top {
  z-index: 2;
}
.mine-toss .arena-title {
  flex: 0 0 auto;
}
.mine-toss .arena-top .chip {
  margin-left: auto;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(20, 30, 50, 0.72);
  color: #fff;
  cursor: pointer;
}
.mine-toss .arena-msg {
  top: 24%;
  z-index: 3;
  font-family: inherit;
  font-weight: 900;
  font-size: 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(20, 30, 50, 0.75);
  text-shadow: none;
}
.mine-toss .arena-hint {
  top: 30%;
  bottom: auto;
}
.mine-toss .minefield-places .chip.on {
  border-color: #ffd45c;
  box-shadow: 0 0 0 2px rgba(255, 212, 92, 0.6);
}
/* Where the toss being aimed will land, over the marker on the snow. */
.toss-verdict {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  font-weight: 900;
  font-size: 15px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 10, 40, 0.45);
}
.toss-verdict.ok {
  background: #1f8f45;
}
.toss-verdict.dud {
  background: #b3202e;
}
.toss-verdict[hidden] {
  display: none;
}

/* The landmine, drawn (there's no emoji for one): in titles, pins and the button. */
.mine-icon {
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  vertical-align: middle;
}
.mine-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.arena-title.mine-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-weight: 900;
  font-size: 18px;
  text-shadow: 0 1px 6px rgba(0, 10, 40, 0.9);
}
.arena-title.mine-title .mine-icon {
  width: 40px;
  height: 40px;
}
.mine-sheet-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mine-pin .mine-icon {
  width: 26px;
  height: 26px;
}
.mine-fab-icon .mine-icon {
  width: 46px;
  height: 46px;
}
.dynamite-fab .mine-fab-icon {
  background: radial-gradient(circle at 50% 35%, #e8394d, #8c0b20 75%);
}
.dynamite-fab .mine-fab-badge {
  background: #8c0b20;
}
.mine-fab-badge {
  white-space: nowrap;
}
.armoury-how {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.9;
}
