/* ==========================================================================
   DER GROSSE FAMILIEN-WEIHNACHTS-PATE 🎄🎅
   Kitschig, bunt, festlich & voller Weihnachtszauber!
   ========================================================================== */

:root {
  --xmas-red: #d4142a;
  --xmas-red-dark: #8f0819;
  --xmas-red-bright: #ff2a44;
  --xmas-green: #0f6b38;
  --xmas-green-dark: #073b1d;
  --xmas-green-light: #1ca658;
  --xmas-gold: #ffd700;
  --xmas-gold-warm: #f5b014;
  --xmas-gold-light: #fff3b0;
  --xmas-cream: #fffdf5;
  --xmas-parchment: #fdf4dc;
  --xmas-night: #081c24;
  --xmas-berry: #b80f4c;
  --font-display: 'Georgia', 'Palatino Linotype', 'Times New Roman', serif;
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--xmas-cream);
  background: radial-gradient(circle at 50% 15%, #184e36 0%, #0a2e23 45%, #06181c 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
}

/* Candy-Cane Rahmen rund um den Bildschirm */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  padding: 8px;
  background: repeating-linear-gradient(
    45deg,
    #e6192e 0px,
    #e6192e 18px,
    #ffffff 18px,
    #ffffff 36px,
    #148544 36px,
    #148544 54px,
    #ffffff 54px,
    #ffffff 72px
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 900;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.7);
}

/* Hintergrund-Schnee-Canvas */
#snow-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* Fliegender Weihnachtsmann im Hintergrund */
.santa-flyby {
  position: fixed;
  top: 12%;
  left: -320px;
  font-size: 2.4rem;
  pointer-events: none;
  z-index: 1;
  opacity: 0.75;
  filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.5));
  animation: flyAcrossSky 28s linear infinite;
  white-space: nowrap;
}

@keyframes flyAcrossSky {
  0% {
    transform: translateX(-350px) translateY(20px) rotate(-4deg);
  }
  25% {
    transform: translateX(35vw) translateY(-25px) rotate(3deg);
  }
  50% {
    transform: translateX(75vw) translateY(15px) rotate(-3deg);
  }
  75% {
    transform: translateX(125vw) translateY(-15px) rotate(2deg);
  }
  100% {
    transform: translateX(140vw) translateY(0px) rotate(0deg);
  }
}

/* ==========================================================================
   LICHTERKETTE (Fairy Lights Header)
   ========================================================================== */
.fairy-lights-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 46px;
  z-index: 800;
  pointer-events: none;
  overflow: hidden;
}

.fairy-wire {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  list-style: none;
  padding: 0 10px;
  margin: 0;
  width: 100%;
  border-top: 3px solid #1b3022;
}

.fairy-bulb {
  position: relative;
  width: 14px;
  height: 24px;
  border-radius: 50% 50% 50% 50% / 35% 35% 65% 65%;
  margin-top: 4px;
  animation-duration: 1.6s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

.fairy-bulb::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 3px;
  width: 8px;
  height: 6px;
  background: #2f4f38;
  border-radius: 2px;
}

.fairy-bulb.red {
  background: #ff2442;
  box-shadow: 0 4px 18px 4px rgba(255, 36, 66, 0.85);
  animation-name: glowRed;
}

.fairy-bulb.gold {
  background: #ffdf2b;
  box-shadow: 0 4px 18px 4px rgba(255, 223, 43, 0.85);
  animation-name: glowGold;
  animation-delay: 0.35s;
}

.fairy-bulb.green {
  background: #2bff75;
  box-shadow: 0 4px 18px 4px rgba(43, 255, 117, 0.85);
  animation-name: glowGreen;
  animation-delay: 0.7s;
}

.fairy-bulb.blue {
  background: #2bd8ff;
  box-shadow: 0 4px 18px 4px rgba(43, 216, 255, 0.85);
  animation-name: glowBlue;
  animation-delay: 1.05s;
}

.fairy-bulb.pink {
  background: #ff47c8;
  box-shadow: 0 4px 18px 4px rgba(255, 71, 200, 0.85);
  animation-name: glowPink;
  animation-delay: 1.3s;
}

@keyframes glowRed {
  0% { opacity: 0.45; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1.08); box-shadow: 0 5px 24px 7px rgba(255, 36, 66, 1); }
}
@keyframes glowGold {
  0% { opacity: 0.5; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1.08); box-shadow: 0 5px 24px 7px rgba(255, 223, 43, 1); }
}
@keyframes glowGreen {
  0% { opacity: 0.45; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1.08); box-shadow: 0 5px 24px 7px rgba(43, 255, 117, 1); }
}
@keyframes glowBlue {
  0% { opacity: 0.5; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1.08); box-shadow: 0 5px 24px 7px rgba(43, 216, 255, 1); }
}
@keyframes glowPink {
  0% { opacity: 0.45; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1.08); box-shadow: 0 5px 24px 7px rgba(255, 71, 200, 1); }
}

/* Alarm-Modus für Lichterkette bei Selbst-Ziehung! */
body.alarm-active .fairy-bulb {
  background: #ff0022 !important;
  box-shadow: 0 6px 28px 10px #ff0022 !important;
  animation: alarmStrobe 0.18s infinite alternate !important;
}

@keyframes alarmStrobe {
  from { opacity: 0.2; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1.25); }
}

/* ==========================================================================
   TOP AUDIO & DEKO BAR
   ========================================================================== */
.top-controls {
  position: relative;
  z-index: 20;
  max-width: 1080px;
  margin: 0 auto;
  padding: 6px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.tradition-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #b80f28, #7d0618);
  border: 2px solid var(--xmas-gold);
  border-radius: 999px;
  padding: 6px 15px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--xmas-gold-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.sound-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ctrl-btn {
  cursor: pointer;
  background: rgba(12, 56, 34, 0.9);
  border: 2px solid var(--xmas-gold);
  color: var(--xmas-cream);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.ctrl-btn:hover {
  transform: translateY(-2px) scale(1.03);
  background: var(--xmas-green-light);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.ctrl-btn.active {
  background: linear-gradient(135deg, #e01b34, #9c0b1e);
  border-color: #fff3b0;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.65);
}

/* ==========================================================================
   HEADER & HERO BANNER
   ========================================================================== */
.app-container {
  position: relative;
  z-index: 10;
  max-width: 1040px;
  margin: 0 auto;
  padding: 12px 20px 70px;
}

.hero-header {
  text-align: center;
  margin: 10px auto 24px;
  padding: 26px 22px 22px;
  background:
    radial-gradient(circle at top, rgba(255, 215, 0, 0.22), transparent 65%),
    linear-gradient(160deg, #a80d22 0%, #6e0614 55%, #4a030d 100%);
  border: 4px solid var(--xmas-gold);
  border-radius: 28px;
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.65),
    inset 0 0 30px rgba(255, 215, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.hero-header::after {
  content: "🎄 ✨ 🎅 🦌 🎁 🔔 ⭐ ⛄ 🍪 🎄";
  display: block;
  margin-top: 12px;
  font-size: 1.25rem;
  letter-spacing: 4px;
  opacity: 0.92;
}

.hero-mascots {
  font-size: 2.8rem;
  margin-bottom: 6px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.mascot-bounce {
  display: inline-block;
  animation: mascotBounce 2.2s ease-in-out infinite;
}
.mascot-bounce:nth-child(2) { animation-delay: 0.3s; }
.mascot-bounce:nth-child(3) { animation-delay: 0.6s; }
.mascot-bounce:nth-child(4) { animation-delay: 0.9s; }
.mascot-bounce:nth-child(5) { animation-delay: 1.2s; }

@keyframes mascotBounce {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-9px) rotate(5deg) scale(1.08); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  font-weight: 900;
  color: var(--xmas-gold);
  text-shadow:
    0 3px 0 #59040e,
    0 6px 18px rgba(0, 0, 0, 0.7),
    0 0 24px rgba(255, 215, 0, 0.55);
  line-height: 1.15;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  color: var(--xmas-cream);
  max-width: 720px;
  margin: 0 auto 14px;
  line-height: 1.45;
}

.budget-ribbon {
  display: inline-block;
  text-align: center;
  line-height: 1.35;
  max-width: 100%;
  background: linear-gradient(135deg, #ffd700 0%, #f09d09 100%);
  color: #4f040c;
  font-weight: 900;
  font-size: clamp(0.92rem, 2.5vw, 1.08rem);
  padding: 8px 20px;
  border-radius: 999px;
  border: 3px solid #fff9d6;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45), 0 0 20px rgba(255, 215, 0, 0.55);
  transform: rotate(-1deg);
}

/* ==========================================================================
   NAVIGATION TABS (Haupt-Modi)
   ========================================================================== */
.mode-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.mode-tab {
  cursor: pointer;
  padding: 13px 22px;
  border-radius: 18px;
  border: 3px solid rgba(255, 215, 0, 0.55);
  background: linear-gradient(145deg, rgba(14, 72, 43, 0.92), rgba(7, 41, 24, 0.95));
  color: var(--xmas-cream);
  font-size: 1.02rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.mode-tab:hover {
  transform: translateY(-3px);
  border-color: var(--xmas-gold);
  box-shadow: 0 10px 24px rgba(255, 215, 0, 0.3);
}

.mode-tab.active {
  background: linear-gradient(145deg, #e01931, #8f0819);
  border-color: var(--xmas-gold);
  color: #fff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 26px rgba(224, 25, 49, 0.55), 0 0 18px rgba(255, 215, 0, 0.5);
}

.mode-tab .tab-badge {
  background: var(--xmas-gold);
  color: #5c0611;
  font-size: 0.78rem;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 900;
}

/* ==========================================================================
   CARDS & PANELS
   ========================================================================== */
.kitsch-card {
  background: linear-gradient(165deg, rgba(16, 74, 44, 0.95) 0%, rgba(8, 43, 25, 0.98) 100%);
  border: 3px solid var(--xmas-gold);
  border-radius: 24px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.55),
    inset 0 0 24px rgba(255, 215, 0, 0.1);
  position: relative;
}

.kitsch-card.red-velvet {
  background: linear-gradient(165deg, rgba(158, 14, 33, 0.96) 0%, rgba(89, 5, 17, 0.98) 100%);
}

.kitsch-card.gold-parchment {
  background: linear-gradient(165deg, #fff9e6 0%, #f7e4b2 100%);
  color: #3b1c0a;
  border: 4px solid #d49b17;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px dashed rgba(255, 215, 0, 0.45);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--xmas-gold);
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   TEILNEHMER-LISTE (8 Familienmitglieder + Wunschzettel + Avatare)
   ========================================================================== */
.participants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.person-card {
  background: rgba(6, 30, 18, 0.78);
  border: 2px solid rgba(255, 215, 0, 0.55);
  border-radius: 18px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.person-card:hover {
  border-color: var(--xmas-gold);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.person-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-btn {
  cursor: pointer;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--xmas-gold);
  background: radial-gradient(circle, #c41429, #6b0612);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.avatar-btn:hover {
  transform: scale(1.12) rotate(8deg);
}

.person-number {
  position: absolute;
  top: -9px;
  left: -8px;
  background: var(--xmas-gold);
  color: #5c0611;
  font-weight: 900;
  font-size: 0.76rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.name-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 215, 0, 0.45);
  border-radius: 11px;
  padding: 9px 12px;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.name-input:focus {
  border-color: var(--xmas-gold);
  background: rgba(255, 255, 255, 0.2);
}

.name-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.remove-person-btn {
  cursor: pointer;
  background: rgba(212, 20, 42, 0.35);
  border: 1px solid rgba(255, 120, 120, 0.5);
  color: #ffb8c0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.remove-person-btn:hover {
  background: var(--xmas-red);
  color: #fff;
}

.person-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.wish-btn {
  cursor: pointer;
  flex: 1;
  background: rgba(255, 215, 0, 0.14);
  border: 1px dashed rgba(255, 215, 0, 0.65);
  color: var(--xmas-gold-light);
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  transition: background 0.15s;
}

.wish-btn:hover {
  background: rgba(255, 215, 0, 0.26);
}

.wish-btn.has-wish {
  background: rgba(28, 166, 88, 0.32);
  border: 1px solid #57ff9a;
  color: #d4ffe5;
}

/* ==========================================================================
   OPTIONALE EHEPAARE / PARTNER-AUSSCHLÜSSE & BUDGET
   ========================================================================== */
.options-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.option-box {
  background: rgba(0, 0, 0, 0.28);
  border: 2px solid rgba(255, 215, 0, 0.4);
  border-radius: 16px;
  padding: 16px;
}

.option-box h4 {
  color: var(--xmas-gold);
  font-size: 1.05rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 10px;
  user-select: none;
}

.toggle-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--xmas-red);
  cursor: pointer;
}

.pairs-builder {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 215, 0, 0.35);
}

.pair-select-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.festive-select, .festive-input {
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 215, 0, 0.55);
  color: #fff;
  padding: 8px 11px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
}

.festive-select option {
  background: #0d3b23;
  color: #fff;
}

.pair-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pair-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #b80f4c, #7a0831);
  border: 1.5px solid var(--xmas-gold);
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
}

.pair-tag button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  font-size: 0.95rem;
}

/* ==========================================================================
   FESTLICHE BUTTONS
   ========================================================================== */
.btn-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn-xmas {
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 1.08rem;
  padding: 14px 26px;
  border-radius: 16px;
  border: 3px solid var(--xmas-gold);
  color: #fff;
  background: linear-gradient(145deg, #eb1c36, #96091b);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.45),
    0 0 15px rgba(255, 215, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.18s ease;
  text-decoration: none;
}

.btn-xmas:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 12px 28px rgba(235, 28, 54, 0.55),
    0 0 24px rgba(255, 215, 0, 0.65);
}

.btn-xmas:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-xmas:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-xmas.gold {
  background: linear-gradient(145deg, #ffe033, #e69500);
  color: #4a040c;
  border-color: #fff9d2;
}

.btn-xmas.green {
  background: linear-gradient(145deg, #1ca658, #0c592d);
  color: #fff;
}

.btn-xmas.small {
  padding: 8px 15px;
  font-size: 0.9rem;
  border-radius: 12px;
  border-width: 2px;
}

/* ==========================================================================
   LIVE-ZIEHUNG AM GERÄT (Echter Zettel-Topf / Weihnachtshut)
   ========================================================================== */
.round-status-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 215, 0, 0.55);
  border-radius: 18px;
  padding: 14px 18px;
  margin-bottom: 20px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 215, 0, 0.16);
  border: 1.5px solid var(--xmas-gold);
  padding: 6px 14px;
  border-radius: 99px;
  font-weight: 800;
  font-size: 0.92rem;
}

.stat-pill.danger {
  background: rgba(224, 25, 49, 0.35);
  border-color: #ff6b7d;
  color: #ffd6db;
}

/* Fortschritts-Reihe der 8 Personen */
.draw-queue {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}

.queue-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.25s;
}

.queue-chip.done {
  background: rgba(28, 166, 88, 0.38);
  border-color: #4dff97;
  color: #dcffe9;
}

.queue-chip.current {
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  border-color: #fff;
  color: #4d040c;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
  animation: pulseCurrent 1.4s infinite alternate;
}

@keyframes pulseCurrent {
  from { box-shadow: 0 0 12px rgba(255, 215, 0, 0.6); }
  to { box-shadow: 0 0 26px rgba(255, 215, 0, 1); }
}

/* Der magische Weihnachtshut / Lostrommel */
.hat-stage {
  text-align: center;
  padding: 26px 18px;
  background:
    radial-gradient(circle at center, rgba(255, 215, 0, 0.18) 0%, transparent 70%),
    rgba(5, 28, 17, 0.72);
  border: 3px dashed rgba(255, 215, 0, 0.65);
  border-radius: 24px;
  margin: 16px 0;
}

.current-drawer-spotlight {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  color: var(--xmas-gold);
  margin-bottom: 10px;
}

.privacy-notice {
  display: inline-block;
  background: rgba(212, 20, 42, 0.45);
  border: 2px solid #ff8593;
  color: #fff;
  padding: 8px 18px;
  border-radius: 99px;
  font-weight: 700;
  margin-bottom: 18px;
}

/* Gefaltete Lose im Weihnachtshut */
.lots-pot-container {
  max-width: 680px;
  margin: 18px auto;
  padding: 22px;
  background: radial-gradient(circle, #8f0819 0%, #4a030c 100%);
  border: 4px solid var(--xmas-gold);
  border-radius: 28px;
  box-shadow:
    inset 0 8px 28px rgba(0, 0, 0, 0.65),
    0 10px 28px rgba(0, 0, 0, 0.5);
  position: relative;
}

.hat-icon-header {
  font-size: 3.4rem;
  margin-top: -46px;
  margin-bottom: 8px;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5));
}

.lots-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 14px;
}

.folded-lot {
  cursor: pointer;
  width: 115px;
  height: 92px;
  background: linear-gradient(145deg, #fffdf0 0%, #f5deb3 55%, #e6c27a 100%);
  border: 3px solid var(--xmas-gold);
  border-radius: 14px;
  color: #5c1906;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 900;
  font-size: 0.92rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
  position: relative;
  user-select: none;
  animation: lotFloat 2.8s ease-in-out infinite;
}

.folded-lot:nth-child(odd) {
  animation-delay: 0.4s;
}
.folded-lot:nth-child(3n) {
  animation-delay: 0.9s;
}

@keyframes lotFloat {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}

.folded-lot:hover {
  transform: translateY(-10px) scale(1.1) rotate(0deg) !important;
  box-shadow: 0 14px 26px rgba(255, 215, 0, 0.65);
  border-color: #fff;
}

.folded-lot .seal {
  font-size: 1.7rem;
}

.shuffling .folded-lot {
  animation: lotShuffleSpin 0.45s ease-in-out infinite !important;
}

@keyframes lotShuffleSpin {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  25% { transform: translate(-14px, -10px) rotate(-18deg) scale(0.92); }
  50% { transform: translate(12px, 8px) rotate(15deg) scale(1.06); }
  75% { transform: translate(-10px, 12px) rotate(-12deg) scale(0.95); }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); }
}

/* ==========================================================================
   RUBBELLOS (Scratch Card) & AUFDECK-BEREICH
   ========================================================================== */
.scratch-ticket-wrapper {
  max-width: 520px;
  margin: 16px auto;
  padding: 22px;
  background:
    repeating-linear-gradient(
      -45deg,
      #c91227 0px,
      #c91227 14px,
      #a10b1c 14px,
      #a10b1c 28px
    );
  border: 4px solid var(--xmas-gold);
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65), 0 0 30px rgba(255, 215, 0, 0.35);
}

.scratch-ticket-inner {
  background: linear-gradient(160deg, #fffdf7 0%, #faecc8 100%);
  color: #3d1308;
  border: 3px solid #d49b17;
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  position: relative;
}

.scratch-area-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 220px;
  margin: 14px auto;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid #c99214;
  box-shadow: inset 0 4px 14px rgba(0, 0, 0, 0.25);
  background: radial-gradient(circle, #fffef7 0%, #f7e1a0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  user-select: none;
}

#scratch-canvas,
#live-scratch-canvas,
#secret-scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
  z-index: 10;
  opacity: 1;
  transition: none;
}

#scratch-canvas.revealed,
#live-scratch-canvas.revealed,
#secret-scratch-canvas.revealed {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.revealed-content {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.revealed-avatar {
  font-size: 3.4rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.revealed-label {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #8c4a08;
  font-weight: 800;
}

.revealed-name {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  font-weight: 900;
  color: #b0091e;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
}

.revealed-budget-pill {
  background: linear-gradient(135deg, #0f6b38, #084221);
  color: var(--xmas-gold-light);
  padding: 4px 14px;
  border-radius: 99px;
  font-weight: 800;
  font-size: 0.88rem;
  border: 1.5px solid var(--xmas-gold);
}

.wishlist-reveal-box {
  margin-top: 14px;
  padding: 14px;
  background: #fff8e3;
  border: 2px dashed #c98a12;
  border-radius: 14px;
  text-align: left;
  color: #4a2106;
}

.wishlist-reveal-box h5 {
  font-size: 0.95rem;
  color: #9e0d20;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   WEIHNACHTS-ALARM OVERLAY (Selbst-Ziehung -> Annulliert!)
   ========================================================================== */
.alarm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(95, 0, 12, 0.88);
  backdrop-filter: blur(6px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: alarmBgPulse 0.45s infinite alternate;
}

@keyframes alarmBgPulse {
  from { background: rgba(110, 0, 15, 0.86); }
  to { background: rgba(185, 8, 28, 0.92); }
}

.alarm-card {
  max-width: 600px;
  width: 100%;
  background: linear-gradient(160deg, #fff8eb 0%, #ffe0db 100%);
  color: #4d040c;
  border: 6px solid var(--xmas-gold);
  border-radius: 28px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 50px #ff1e38;
  animation: alarmShake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  position: relative;
}

@keyframes alarmShake {
  10%, 90% { transform: translate3d(-4px, 0, 0) rotate(-1deg); }
  20%, 80% { transform: translate3d(6px, 0, 0) rotate(1.5deg); }
  30%, 50%, 70% { transform: translate3d(-8px, 0, 0) rotate(-2deg); }
  40%, 60% { transform: translate3d(8px, 0, 0) rotate(2deg); }
}

.annulled-stamp {
  display: inline-block;
  border: 5px solid #d4142a;
  color: #d4142a;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(1.35rem, 3.8vw, 2rem);
  padding: 6px 20px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transform: rotate(-5deg);
  margin: 12px 0;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 16px rgba(212, 20, 42, 0.3);
}

/* ==========================================================================
   GEHEIM-LINKS & FERN-ZIEHUNG DASHBOARD
   ========================================================================== */
.share-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.share-person-card {
  background: rgba(6, 33, 19, 0.85);
  border: 2px solid var(--xmas-gold);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border: 2px solid #a8ffcb;
}

/* Simulations-Protokoll der Ziehungs-Runden */
.simulation-log {
  background: rgba(0, 0, 0, 0.38);
  border: 2px solid rgba(255, 215, 0, 0.45);
  border-radius: 16px;
  padding: 14px 18px;
  margin: 16px 0;
  max-height: 220px;
  overflow-y: auto;
}

.log-entry {
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.log-entry:last-child {
  border-bottom: none;
}

.log-entry.fail {
  color: #ff9aa6;
}

.log-entry.success {
  color: #7dffb3;
  font-weight: 800;
}

/* ==========================================================================
   MODALS (Wunschzettel, QR-Code, Avatar-Auswahl)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 18, 12, 0.84);
  backdrop-filter: blur(5px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-box {
  max-width: 520px;
  width: 100%;
  background: linear-gradient(160deg, #124f30 0%, #082918 100%);
  border: 4px solid var(--xmas-gold);
  border-radius: 24px;
  padding: 24px;
  color: var(--xmas-cream);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.75);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid var(--xmas-gold);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 900;
}

.wish-textarea {
  width: 100%;
  min-height: 110px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid var(--xmas-gold);
  border-radius: 14px;
  padding: 12px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  margin: 12px 0;
  resize: vertical;
}

.avatar-picker-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.avatar-option {
  cursor: pointer;
  font-size: 2rem;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid transparent;
  text-align: center;
  transition: transform 0.15s, border-color 0.15s;
}

.avatar-option:hover, .avatar-option.selected {
  transform: scale(1.12);
  border-color: var(--xmas-gold);
  background: rgba(255, 215, 0, 0.25);
}

.qr-box {
  background: #fff;
  padding: 16px;
  border-radius: 18px;
  display: inline-block;
  margin: 12px auto;
  border: 4px solid var(--xmas-gold);
}

.hidden {
  display: none !important;
}

/* Responsive Anpassungen */
@media (max-width: 640px) {
  .top-controls {
    justify-content: center;
  }
  .kitsch-card {
    padding: 16px;
  }
  .btn-xmas {
    width: 100%;
  }
}
