/* Gemeinsames Weihnachts-Theme */
@font-face { font-family: 'Lora'; src: url('/fonts/Lora.ttf') format('truetype'); font-weight: 400 700; font-style: normal; font-display: block; }
@font-face { font-family: 'Lora'; src: url('/fonts/Lora-Italic.ttf') format('truetype'); font-weight: 400 700; font-style: italic; font-display: block; }

:root {
  --night: #081127;
  --night2: #10204a;
  --night3: #1b2f66;
  --gold: #f2c14e;
  --gold-hi: #fff1b8;
  --gold-lo: #b97a0c;
  --red: #d62839;
  --red-hi: #ff5a6a;
  --green: #1f8a5b;
  --green-hi: #43d68f;
  --snow: #f4f7ff;
  --ink: #0d1424;
  --muted: #a8b4d8;
  --opt-a: #d7263d; --opt-a-dark: #8e0f20;
  --opt-b: #1f9a62; --opt-b-dark: #0b5a36;
  --opt-c: #e9a821; --opt-c-dark: #9b6406;
  --opt-d: #2f7de1; --opt-d-dark: #133f86;
  --opt-e: #8e5bd8; --opt-e-dark: #4f2591;
  --opt-f: #13a3a0; --opt-f-dark: #075a58;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  --emoji: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: #0c1a3b; }
body {
  font-family: var(--sans);
  color: var(--snow);
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(80, 120, 255, .28), transparent 60%),
    radial-gradient(900px 600px at 110% 20%, rgba(214, 40, 57, .22), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(31, 138, 91, .35), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night2) 55%, #0c1a3b 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.gold {
  background: linear-gradient(180deg, #fffbe6 0%, #ffe28a 30%, #f2b632 52%, #b97a0c 60%, #ffe7a0 85%, #fff6cf 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(90, 40, 0, .55)) drop-shadow(0 0 18px rgba(255, 200, 80, .35));
}
.serif { font-family: var(--serif); }
.emoji { font-family: var(--emoji); font-style: normal; }

/* Optionsfarben */
.opt-a { --c: var(--opt-a); --cd: var(--opt-a-dark); }
.opt-b { --c: var(--opt-b); --cd: var(--opt-b-dark); }
.opt-c { --c: var(--opt-c); --cd: var(--opt-c-dark); }
.opt-d { --c: var(--opt-d); --cd: var(--opt-d-dark); }
.opt-e { --c: var(--opt-e); --cd: var(--opt-e-dark); }
.opt-f { --c: var(--opt-f); --cd: var(--opt-f-dark); }

/* Zuckerstangen-Rahmen */
.candy {
  border: 14px solid transparent;
  border-image: repeating-linear-gradient(45deg, #e8303f 0 14px, #fff 14px 28px) 14;
}

/* Wackeln & Blitz */
.shake { animation: shake .55s cubic-bezier(.36, .07, .19, .97) both; }
.shake-strong { animation: shake-strong .85s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes shake {
  10%, 90% { translate: -2px 1px; } 20%, 80% { translate: 4px -2px; }
  30%, 50%, 70% { translate: -7px 3px; } 40%, 60% { translate: 7px -3px; }
}
@keyframes shake-strong {
  10%, 90% { translate: -4px 2px; rotate: -.3deg; } 20%, 80% { translate: 9px -4px; rotate: .5deg; }
  30%, 50%, 70% { translate: -14px 6px; rotate: -.8deg; } 40%, 60% { translate: 14px -6px; rotate: .8deg; }
}
.flash { position: fixed; inset: 0; background: #fff; z-index: 8999; pointer-events: none; animation: flash .6s ease-out forwards; }
@keyframes flash { from { opacity: .85; } to { opacity: 0; } }

@keyframes pop-in { 0% { transform: scale(0) rotate(-12deg); opacity: 0; } 60% { transform: scale(1.18) rotate(4deg); opacity: 1; } 100% { transform: scale(1) rotate(0); } }
@keyframes wobble { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink-a { 0%, 49% { opacity: 1; filter: brightness(1.3); } 50%, 100% { opacity: .35; filter: brightness(.6); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 20px 4px rgba(255, 215, 90, .6); } 50% { box-shadow: 0 0 60px 16px rgba(255, 215, 90, .95); } }
@keyframes slide-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes stamp {
  0% { transform: translate(-50%, -50%) scale(4) rotate(-25deg); opacity: 0; }
  55% { transform: translate(-50%, -50%) scale(.9) rotate(-8deg); opacity: 1; }
  70% { transform: translate(-50%, -50%) scale(1.05) rotate(-9deg); }
  100% { transform: translate(-50%, -50%) scale(1) rotate(-8deg); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .shake, .shake-strong { animation: none; }
}
