/* =====================================================================
   Colours: change these to adjust the whole look in one place
   ===================================================================== */
:root {
  --page: #ffffff;                      /* page background */
  --text: #4a5568;                      /* normal text */
  --text-soft: #a0aec0;                 /* hints, placeholders, "No votes yet" */
  --accent: #5b8fd6;                    /* soft blue for button text and focus */
  --line: rgba(91, 143, 214, 0.15);     /* very faint lines */

  /* Buttons: light blue fading to almost-transparent white */
  --button: linear-gradient(180deg, rgba(186, 216, 250, 0.55), rgba(255, 255, 255, 0.15));
  --button-hover: linear-gradient(180deg, rgba(160, 200, 248, 0.75), rgba(255, 255, 255, 0.3));
  --button-chosen: linear-gradient(180deg, rgba(120, 175, 245, 0.75), rgba(220, 235, 255, 0.4));
  --button-border: rgba(91, 143, 214, 0.25);

  --error: #d06a6a;
  --online: #5aa77a;
}

/* =====================================================================
   Page
   ===================================================================== */
/* Anything marked "hidden" stays hidden, even if a style below gives it a layout */
[hidden] {
  display: none !important;
}

body {
  font-family: system-ui, sans-serif;
  background: var(--page);
  color: var(--text);
  margin: 0;
}

main {
  max-width: 700px;
  margin: 0 auto;
  /* a little space at the top, and room at the bottom for the corner buttons */
  padding: 16px 16px 84px;
}

/* Title that looks written in thick, fresh snow */
h1 {
  text-align: center;
  margin: 40px 0 0; /* room above for the Santa hat */
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.5rem, 11vw, 4rem); /* smaller on phones so it fits */
  line-height: 1.1;
  letter-spacing: 1px;
  /* Fill the letters with snow: random icy grain on white, slightly
     bluer at the bottom like packed snow */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.72 0 0 0 0 0.88 0 0 0 2.2 -1.15'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #ffffff 0%, #ffffff 35%, #e3edf9 70%, #c9dcf2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* A frosty blue outline and deeper shadows so the snow stands out
     clearly on the white page */
  filter:
    drop-shadow(0 0 1px #7fa3d1)
    drop-shadow(0 2px 0 #9dbbe2)
    drop-shadow(0 3px 2px rgba(60, 100, 160, 0.45))
    drop-shadow(0 8px 10px rgba(60, 100, 160, 0.2));
}

/* The "P" wears a Santa hat */
.hat-letter {
  position: relative;
  display: inline-block;
  /* Safari doesn't paint the title's snow fill inside this box, which made
     the P invisible there. So the P gets its own copy of the snow fill. */
  background: inherit;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.santa-hat {
  position: absolute;
  width: 0.85em;
  left: -0.3em;
  top: -0.26em;
  /* scaleX(-1) mirrors the hat so it flops down to the left */
  transform: rotate(-6deg) scaleX(-1);
  pointer-events: none;
}

/* "in Santa's workshop": red and green candy cane stripes */
.subtitle {
  text-align: center;
  margin: 2px 0 56px; /* space between the title and the rest of the page */
  font-family: "Mountains of Christmas", cursive;
  font-weight: 700;
  font-size: clamp(1.7rem, 6.8vw, 2.3rem);
  letter-spacing: 1px;
}

.subtitle span {
  /* Diagonal stripes, shown only inside the letters */
  background: repeating-linear-gradient(
    -50deg,
    #c62828 0 7px,
    #2e8b3e 7px 14px
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* A soft shadow lifts the letters off the white page */
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.18));
}

/* Falling snowflakes (made by snow.js) */
.snowflake {
  position: fixed;
  top: -2em;
  z-index: -1;            /* behind everything, never in the way */
  color: #b9d3f0;
  pointer-events: none;
  user-select: none;
  animation-name: snowfall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes snowfall {
  to {
    transform: translate(var(--drift), 110vh) rotate(360deg);
  }
}

/* People who turn off animations on their device don't get falling snow */
/* Frozen snow: every flake stops exactly where it is */
.snow-frozen .snowflake {
  animation-play-state: paused;
}

/* The snowflake-shaped button in the bottom-right corner */
.snow-button {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10;
  width: 42px;
  height: 42px;
  padding: 0;
  /* No glass box around it: the button is just the snowflake */
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
  border-radius: 50%;
  /* A small shadow lifts it off the white page */
  filter: drop-shadow(0 2px 2px rgba(60, 100, 160, 0.3));
  transition: transform 0.8s ease, opacity 0.4s ease, filter 0.4s ease;
}

.snow-button::before,
.snow-button::after {
  display: none; /* no glass shine layers on this button */
}

.snow-button .tip {
  fill: url(#flake-glass);
}

.snow-button svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Turns a little when you point at it */
.snow-button:hover {
  background: none;
  box-shadow: none;
  transform: rotate(60deg);
}

.snow-button:active {
  transform: rotate(60deg) scale(0.92);
}

/* Keyboard users can still see which element is selected */
.snow-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* When the snow is frozen, the snowflake looks switched off */
.snow-button.off {
  opacity: 0.45;
  filter: grayscale(0.7);
}

@media (prefers-reduced-motion: reduce) {
  .snowflake,
  .snow-button {
    display: none;
  }
}

h2 {
  margin-top: 0;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-soft);
}

/* Sections: no boxes or shadows, just space between them */
.panel {
  margin-bottom: 32px;
}

label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--text-soft);
}

input,
select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 4px;
  padding: 10px 12px;
  font-size: 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92); /* snowflakes pass behind, not through */
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.4s ease;
}

input::placeholder {
  color: var(--text-soft);
}

input:focus,
select:focus {
  border-color: var(--accent);
}

/* =====================================================================
   Buttons: every button shares the same soft glass look
   ===================================================================== */
button {
  position: relative;      /* lets the shine layers sit inside the button */
  z-index: 0;              /* keeps the shine layers behind the text */
  overflow: hidden;        /* clips the moving shine to the button's shape */
  font-family: inherit;
  color: var(--accent);
  background: var(--button);
  border: 1px solid var(--button-border);
  border-radius: 10px;
  cursor: pointer;
  /* Glass edges: a bright line on top, a soft glow below */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 2px rgba(91, 143, 214, 0.12),
    0 4px 12px rgba(91, 143, 214, 0.15);
  backdrop-filter: blur(6px);
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.2s ease;
}

/* Glossy reflection on the top half */
button::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 1px;
  left: 2px;
  right: 2px;
  height: 50%;
  border-radius: 9px 9px 40% 40% / 9px 9px 12px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.15));
  pointer-events: none;
}

/* A shine that sweeps across when you hover */
button::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: -75%;
  width: 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: skewX(-20deg);
  transition: left 0.8s ease;
  pointer-events: none;
}

button:hover {
  background: var(--button-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 2px rgba(91, 143, 214, 0.15),
    0 6px 16px rgba(91, 143, 214, 0.25);
}

button:hover::after {
  left: 125%;
}

button:active {
  transform: scale(0.97);
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

.big-button {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
}

.small-button {
  margin-left: 6px;
  padding: 4px 10px;
  font-size: 0.85rem;
}

.buttons {
  display: flex;
  gap: 8px;
}

.buttons button {
  padding: 8px 18px;
  font-size: 1rem;
}

/* =====================================================================
   Welcome screen
   ===================================================================== */
.welcome {
  max-width: 380px;
  margin: 24px auto;
}

/* "Your name" on the welcome screen: darker and a bit bigger */
.welcome label {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.divider {
  text-align: center;
  color: var(--text-soft);
  margin: 24px 0 12px;
  font-size: 0.9rem;
}

.join-row {
  display: flex;
  gap: 8px;
}

.join-row input {
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.join-row .big-button {
  width: auto;
  flex-shrink: 0; /* never squeeze the button so its text gets cut off */
  white-space: nowrap;
}

.error {
  color: var(--error);
  min-height: 1.2em;
  margin-bottom: 0;
}

/* =====================================================================
   Room screen
   ===================================================================== */
.room-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* "Workshop: K3XQ9A" and "Elf: Alex" in regular blue text */
.bar-label,
.bar-label strong {
  color: var(--accent);
  font-weight: 400;
}

.room-bar + .room-bar {
  margin: 8px 0 24px;
}

.count {
  color: var(--text-soft);
}

.status {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.status.online {
  color: var(--online);
}

.status.error {
  color: var(--error);
}

/* Loading / error message */
.message {
  text-align: center;
  color: var(--text-soft);
}

.message.error {
  color: var(--error);
}

/* Custom deck settings */
.custom-deck {
  margin-top: 4px;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 12px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--text);
  cursor: pointer;
}

.check input {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.custom-deck .small-button {
  margin-left: 0;
  padding: 8px 16px;
  font-size: 0.95rem;
}

/* Voting cards */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.card {
  width: 56px;
  height: 80px;
  font-size: 1.3rem;
  border-radius: 12px;
}

.card.selected {
  background: var(--button-chosen);
  /* Dark blue number with a soft white glow, so it's easy to read */
  color: #2c64b4;
  font-weight: 700;
  border-color: rgba(91, 143, 214, 0.5);
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.9), 0 0 8px rgba(255, 255, 255, 0.7);
}

/* Vote list and history */
.votes,
.history {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.votes li,
.history li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.votes strong,
.history strong {
  font-weight: 500;
}

/* ---------- Gift-wrapped votes ---------- */
.votes li {
  align-items: center;
}

.vote-spot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 40px;
  height: 40px;
}

.gift {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.15));
}

/* While unwrapping, the present sits on top of the card value */
.unwrap .gift {
  position: absolute;
  right: 2px;
  overflow: visible;
}

/* A revealed vote looks like a small glass card */
.votes .vote-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 36px;
  padding: 0 6px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--accent);
  background: var(--button);
  border: 1px solid var(--button-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 2px 6px rgba(91, 143, 214, 0.15);
}

.unwrap .gift-lid {
  transform-box: fill-box;
  transform-origin: center;
  animation: lid-off 0.6s ease-in var(--delay) forwards;
}

.unwrap .gift-box {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: box-away 0.35s ease-in calc(var(--delay) + 0.45s) forwards;
}

.unwrap .vote-value {
  opacity: 0;
  animation: value-pop 0.45s ease-out calc(var(--delay) + 0.6s) forwards;
}

@keyframes lid-off {
  40% {
    transform: translate(2px, -10px) rotate(-12deg);
    opacity: 1;
  }
  100% {
    transform: translate(10px, -22px) rotate(30deg);
    opacity: 0;
  }
}

@keyframes box-away {
  to {
    transform: scale(0.4);
    opacity: 0;
  }
}

@keyframes value-pop {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  70% {
    opacity: 1;
    transform: scale(1.35);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- Not voted yet + snowball nudge ---------- */
.thinking {
  color: var(--text-soft);
  font-style: italic;
  font-size: 0.95rem;
}

.vote-spot {
  gap: 10px;
}

.snowball-button {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.snowball-button::before {
  border-radius: 50% 50% 40% 40% / 60% 60% 30% 30%;
}

/* A snowball: white with icy blue shading */
.snowball-icon,
.snowball-small,
.snowball-flying {
  display: block;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0 35%, #e3eefb 60%, #a9c8ee 100%);
  box-shadow: 0 1px 2px rgba(60, 100, 160, 0.35);
}

.snowball-icon {
  width: 16px;
  height: 16px;
}

.snowball-small {
  position: fixed;
  z-index: 60;
  width: 14px;
  height: 14px;
  pointer-events: none;
}

/* The snowball that hits your screen */
.splat-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none; /* clicks go straight through */
  overflow: hidden;
}

.snowball-flying {
  position: absolute;
  width: 40px;
  height: 40px;
}

.splat {
  position: absolute;
  width: 260px;
  transform: translate(-50%, -50%) rotate(var(--tilt));
  opacity: 0;
  animation: splat-hit 4s ease 0.42s forwards;
}

.splat-shape {
  display: block;
  width: 100%;
  filter:
    drop-shadow(0 0 1px #9fc1ea)
    drop-shadow(0 6px 12px rgba(60, 100, 160, 0.35));
}

.splat-text {
  position: absolute;
  left: 0;
  right: 0;
  top: 46%;
  transform: translateY(-50%);
  text-align: center;
}

.splat-big {
  font-family: "Mountains of Christmas", cursive;
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: #c62828;
}

.splat-small {
  margin: 6px 40px 0;
  font-size: 0.85rem;
  color: #2e7d32;
}

@keyframes splat-hit {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--tilt)) scale(0.3);
  }
  8% {
    transform: translate(-50%, -50%) rotate(var(--tilt)) scale(1.12);
  }
  14%,
  70% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--tilt)) scale(1);
  }
  /* Melts and slides down */
  100% {
    opacity: 0;
    transform: translate(-50%, -30%) rotate(var(--tilt)) scale(0.95, 1.1);
  }
}

/* ---------- Naughty or nice ---------- */
.who {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.outlier-tag {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  animation: tag-pop 0.45s ease-out both;
}

.outlier-tag.naughty {
  color: #b71c1c;
  background: #fde8e8;
  border: 1px solid #f5bcbc;
}

.outlier-tag.nice {
  color: #1b6b2c;
  background: #e5f5e8;
  border: 1px solid #b7e0c0;
}

/* The small candy cane drawn next to "Nice" */
.outlier-tag svg,
.santa-asks svg {
  display: inline-block;
  width: 0.75em;
  height: 1.25em;
  vertical-align: -0.25em;
  filter: drop-shadow(0 0 0.5px rgba(150, 30, 30, 0.6));
}

.santa-asks {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--text);
  background: rgba(253, 232, 232, 0.5);
  border: 1px dashed #f0b3b3;
  animation: tag-pop 0.45s ease-out both;
}

@keyframes tag-pop {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  70% {
    opacity: 1;
    transform: scale(1.12);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* "Agreed" box under the votes, after Reveal */
.agreed {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 4px 0 16px;
  font-weight: 600;
  color: var(--text);
}

.agreed input {
  width: 90px;
  margin: 0;
  text-align: center;
  font-weight: 600;
  color: var(--accent);
}

/* History rows: story name on the left, agreed estimate on the right */
.history li {
  align-items: center;
  min-height: 40px;
}

/* ---------- Celebration when everyone agrees ---------- */
.celebration {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none; /* clicks go straight through */
  overflow: hidden;
}

.celebration-banner {
  position: absolute;
  left: 50%;
  top: 32%;
  transform: translate(-50%, -50%);
  padding: 18px 34px;
  text-align: center;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--button-border);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(60, 100, 160, 0.25);
  backdrop-filter: blur(6px);
  animation: banner 3.8s ease forwards;
}

.celebration-big {
  font-family: "Mountains of Christmas", cursive;
  font-weight: 700;
  font-size: clamp(2.4rem, 11vw, 3.6rem);
  line-height: 1;
  color: #c62828;
  text-shadow: 0 2px 0 #ffffff, 0 3px 6px rgba(198, 40, 40, 0.25);
}

.celebration-small {
  margin-top: 6px;
  font-size: 1.15rem;
  color: #2e7d32;
}

.celebration-small strong {
  font-size: 1.4rem;
  color: #c62828;
}

@keyframes banner {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
  }
  12% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.08);
  }
  20%,
  80% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
}

/* The flying pieces */
.piece {
  position: absolute;
  line-height: 1;
}

.piece svg {
  display: block;
  width: 16px;
  height: 27px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
}

.piece-flake {
  display: block;
  font-size: 22px;
  color: #7fb0ea;
  text-shadow: 0 1px 2px rgba(60, 100, 160, 0.35);
}

.piece-dot {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.empty {
  color: var(--text-soft);
}


/* =====================================================================
   Christmas on/off (theme.js)
   ===================================================================== */

/* The round Christmas tree button, left of the snowflake button */
.christmas-button {
  position: fixed;
  right: 68px;
  bottom: 16px;
  z-index: 10;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
}

.christmas-button::before {
  border-radius: 50% 50% 40% 40% / 60% 60% 30% 30%;
}

/* Christmas off: the tree looks switched off */
.christmas-button.off {
  filter: grayscale(1);
  opacity: 0.55;
}

/* No snowflake button (no snow) when Christmas is off or motion is reduced,
   so the tree moves into the corner */
.plain .christmas-button {
  right: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .christmas-button {
    right: 16px;
  }
}

/* ---------- Everything below only applies when Christmas is off ---------- */

/* No snow, no hat, no subtitle */
.plain .snowflake,
.plain .snow-button,
.plain .santa-hat,
.plain .subtitle {
  display: none;
}

/* The same snowy title, just without the hat (and no subtitle below it),
   so it needs less space above and a little more below */
.plain h1 {
  margin: 24px 0 56px;
}

/* Hidden votes are face-down cards instead of presents */
.card-back {
  display: block;
  width: 26px;
  height: 36px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.35) 0 3px, transparent 3px 7px),
    linear-gradient(180deg, #7aa7e6, #4f86d6);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(91, 143, 214, 0.5), 0 2px 4px rgba(60, 100, 160, 0.25);
}

/* Revealing: the card flips over to show the vote */
.unwrap .card-back {
  position: absolute;
  right: 2px;
  animation: flip-out 0.3s ease-in var(--delay) forwards;
}

.plain .unwrap .vote-value {
  animation: flip-in 0.3s ease-out calc(var(--delay) + 0.3s) both;
}

@keyframes flip-out {
  to {
    transform: scaleX(0);
  }
}

@keyframes flip-in {
  from {
    opacity: 1;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* "Everyone agrees!" banner in the normal font */
.plain .celebration-big {
  font-family: system-ui, sans-serif;
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  font-weight: 700;
  color: var(--accent);
  text-shadow: none;
}

.plain .celebration-small {
  color: var(--text);
}

.plain .celebration-small strong {
  color: var(--accent);
}

/* Highest / lowest tags in calm colours */
.plain .outlier-tag.naughty {
  color: #8a5a00;
  background: #fdf3dc;
  border-color: #f1d79a;
}

.plain .outlier-tag.nice {
  color: #2457a0;
  background: #e8f0fc;
  border-color: #bcd2f2;
}

.plain .santa-asks {
  background: rgba(232, 240, 252, 0.6);
  border-color: #bcd2f2;
}

/* The wave on the nudge button, and the one that floats away */
.wave-icon {
  font-size: 1.05rem;
  line-height: 1;
}

.wave-small {
  position: fixed;
  z-index: 60;
  font-size: 1.1rem;
  pointer-events: none;
}

/* The friendly "Your turn to vote!" message */
.nudge-note {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  padding: 18px 28px;
  text-align: center;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--button-border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(60, 100, 160, 0.25);
  animation: nudge-pop 4s ease forwards;
}

.nudge-big {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.nudge-small {
  margin-top: 4px;
  color: var(--text-soft);
}

@keyframes nudge-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }
  10% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }
  16%,
  80% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -60%) scale(0.98);
  }
}
