/* =========================================================================
   Frostfest (Weihnachten 2026): Event-Seite, Krampus, Rahmen.
   Viele Bausteine (bm-cols, bm-item, bm-stats ...) kommen aus bloodmoon.css
   und bekommen hier Winterfarben. Der Skin „Polarnacht“ steht in polarnacht.css.
   ========================================================================= */
.rail-btn.rail-ff .ico { filter: drop-shadow(0 0 6px rgba(120, 230, 160, .7)); }
.rail-count.rail-ff-live { opacity: 1; background: rgba(47, 208, 138, .22); color: #8dffc4; font-size: .58rem; letter-spacing: .5px; }

/* ------------------------------------------------------------ Kopf */
.ff-hero { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; justify-content: space-between;
  min-height: 230px; padding: 26px; border-radius: 18px; margin-bottom: 20px; border: 1px solid rgba(160, 220, 255, .3);
  background: radial-gradient(ellipse at 80% 0%, rgba(80, 200, 160, .22), transparent 55%), linear-gradient(180deg, #0a1730 0%, #0d2341 60%, #16304f 100%); }
.ff-hero.eve { box-shadow: 0 0 50px -10px rgba(255, 210, 63, .5) inset; }
.ff-sky i { position: absolute; left: var(--x); top: var(--y); width: 2px; height: 2px; border-radius: 50%; background: #fff; animation: twinkle 3s var(--d) ease-in-out infinite alternate; }
.ff-aurora { position: absolute; inset: -20% -10% 40% -10%; pointer-events: none; filter: blur(18px); opacity: .55; }
.ff-aurora i { position: absolute; top: 0; height: 100%; width: 34%; border-radius: 50%;
  background: linear-gradient(180deg, transparent, rgba(77, 255, 176, .55) 40%, rgba(54, 224, 255, .25) 70%, transparent); animation: ffAur 9s ease-in-out infinite alternate; }
.ff-aurora i:nth-child(1) { left: 6%; }
.ff-aurora i:nth-child(2) { left: 34%; background: linear-gradient(180deg, transparent, rgba(155, 107, 255, .45) 40%, rgba(77, 255, 176, .25) 70%, transparent); animation-delay: -3s; animation-duration: 11s; }
.ff-aurora i:nth-child(3) { left: 62%; animation-delay: -6s; animation-duration: 13s; }
@keyframes ffAur { 0% { transform: translateX(-4%) skewX(-12deg) scaleY(.9); } 100% { transform: translateX(6%) skewX(10deg) scaleY(1.08); } }
.ff-snow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ff-snow i { position: absolute; top: -10px; left: var(--x); width: calc(5px * var(--s)); height: calc(5px * var(--s)); border-radius: 50%; background: #fff; opacity: .85;
  animation: ffFall 9s linear var(--d) infinite; }
@keyframes ffFall { 0% { transform: translate(0, -10px); } 50% { transform: translate(18px, 130px); } 100% { transform: translate(-6px, 280px); opacity: .2; } }
.ff-snow.big i { animation-duration: 7s; }
@keyframes ffFallBig { to { transform: translate(-6px, 110vh); } }
.ff-snow.big i { animation-name: ffFallBig; }
.ff-hero-txt { position: relative; z-index: 2; max-width: 640px; }
.ff-hero-txt small { color: #9fe8ff; letter-spacing: 3px; text-transform: uppercase; font-family: var(--font-display); font-weight: 700; font-size: .8rem; }
.ff-hero-txt h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1; margin: 4px 0 8px; letter-spacing: 3px; text-transform: uppercase;
  color: #fff; text-shadow: 0 0 18px rgba(159, 232, 255, .8), 0 3px 0 #1d3a5c; }
.ff-hero-txt p { color: #d5e8f7; max-width: 560px; }
.ff-count { color: #d5e8f7; }
.ff-count b { color: #fff; }
.ff-evehour { margin-top: 10px; display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255, 210, 63, .2); border: 1px solid rgba(255, 210, 63, .6); color: #ffe9a8; font-weight: 600; animation: bmPulse 1.6s ease-in-out infinite; }
.ff-evehour.soft { animation: none; }
.ff-wallet { position: relative; z-index: 2; border-color: rgba(159, 232, 255, .45) !important; background: rgba(8, 20, 40, .7) !important; }
.ff-flake { font-size: 2rem; color: #dff6ff; text-shadow: 0 0 12px #9fe8ff; animation: ffSpin 8s linear infinite; display: inline-block; }
@keyframes ffSpin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ Adventskalender */
.ff-doors { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; perspective: 600px; }
.ff-door { position: relative; aspect-ratio: 1; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .14); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: linear-gradient(160deg, #8a1c2c, #4a0c18); color: #fff; font: inherit; cursor: default; transform-origin: 0 50%; transition: transform .5s var(--ease), box-shadow .2s; }
.ff-door:nth-child(3n) { background: linear-gradient(160deg, #1f6a44, #0c3622); }
.ff-door:nth-child(4n+1) { background: linear-gradient(160deg, #23457a, #10224a); }
.ff-door .ff-dn { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.ff-door.big .ff-dn { font-size: 1.6rem; color: #ffe36b; }
.ff-door em { font-style: normal; font-size: .62rem; letter-spacing: 1px; text-transform: uppercase; color: #ffe9a8; }
.ff-door.ready { cursor: pointer; box-shadow: 0 0 0 2px rgba(255, 210, 63, .7), 0 0 18px rgba(255, 210, 63, .45); animation: ffDoor 2.2s ease-in-out infinite; }
.ff-door.ready:hover { transform: rotateY(-14deg); }
@keyframes ffDoor { 50% { box-shadow: 0 0 0 2px rgba(255, 210, 63, .95), 0 0 26px rgba(255, 210, 63, .7); } }
.ff-door.locked { opacity: .55; filter: saturate(.6); }
.ff-door.opening { transform: rotateY(-100deg); }
.ff-door.open { background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, .12), rgba(8, 16, 32, .9)); border-style: dashed; border-color: rgba(159, 232, 255, .3); }
.ff-door.open .ff-dn { position: absolute; top: 4px; left: 6px; font-size: .7rem; opacity: .6; }
.ff-door.open b { font-size: 1.3rem; }
.ff-door.open small { font-size: .62rem; color: #bfe9ff; text-align: center; line-height: 1.1; padding: 0 3px; }
@media (max-width: 520px) { .ff-doors { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ------------------------------------------------------------ Baum */
.ff-treewrap { position: relative; display: flex; justify-content: center; border-radius: 14px; margin-bottom: 12px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 210, 120, .14), transparent 60%), linear-gradient(180deg, rgba(10, 24, 48, .6), rgba(20, 36, 60, .6)); }
.ff-tree { width: 100%; max-width: 380px; display: block; }
.ff-orn { animation: ffSway 4s ease-in-out var(--d) infinite alternate; transform-box: fill-box; transform-origin: 50% 0; }
.ff-orn.me { filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 6px #ffd23f); }
@keyframes ffSway { from { rotate: -6deg; } to { rotate: 6deg; } }
.ff-tree.lit .ff-orn { filter: drop-shadow(0 0 4px rgba(255, 230, 150, .9)); }
.ff-bulb { animation: ffBulb 1.6s ease-in-out infinite alternate; }
@keyframes ffBulb { from { opacity: .35; } to { opacity: 1; } }
.ff-tree.lit .ff-bulb { filter: drop-shadow(0 0 3px currentColor); animation-duration: .8s; }
.ff-glit { animation: ffGlit 2.4s ease-in-out infinite; }
@keyframes ffGlit { 0%, 70%, 100% { opacity: 0; } 80% { opacity: 1; } }
.ff-star path { transition: fill .4s; }
.ff-star circle { opacity: 0; }
.ff-star.on circle { animation: ffStar 2.4s ease-in-out infinite; }
@keyframes ffStar { 50% { opacity: .9; transform: scale(1.12); } }
.ff-star.on { transform-box: fill-box; }
.ff-litnote { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 999px; background: rgba(255, 210, 63, .2); color: #ffe9a8; font-size: .8rem; white-space: nowrap; }
.ff-stagebar { position: relative; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); margin: 26px 8px 34px; }
.ff-stagebar > i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, #2fd08a, #ffd23f); box-shadow: 0 0 10px rgba(47, 208, 138, .5); }
.ff-stage { position: absolute; top: 50%; transform: translate(-50%, -50%); text-align: center; }
.ff-stage b { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #13233d; border: 2px solid rgba(255, 255, 255, .25); font-size: .9rem; }
.ff-stage small { position: absolute; top: 32px; left: 50%; transform: translateX(-50%); font-size: .68rem; color: var(--text-dim); white-space: nowrap; }
.ff-stage.got b { border-color: #ffd23f; box-shadow: 0 0 10px rgba(255, 210, 63, .6); }
.ff-hang { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); }
.ff-hang.done { justify-content: center; color: #bfe9ff; }
.ff-hang .btn { width: auto; }
.ff-hang .btn small { opacity: .8; margin-left: 4px; }
.ff-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.ff-pick { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); cursor: pointer; padding: 4px; }
.ff-pick svg { width: 100%; height: 100%; }
.ff-pick svg .ff-orn { animation: none; }
.ff-pick.on, .ff-col.on { border-color: #ffd23f; box-shadow: 0 0 10px rgba(255, 210, 63, .5); }
.ff-col { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); background: var(--c); cursor: pointer; }

/* ------------------------------------------------------------ Wichteln */
.ff-gift { width: 96px; height: 96px; display: block; }
.ff-gift-lid { transition: transform .6s var(--ease); transform-box: fill-box; transform-origin: 50% 100%; }
.ff-gift.wiggle { animation: ffWiggle 1.8s ease-in-out infinite; }
@keyframes ffWiggle { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-6deg); } 80% { transform: rotate(6deg); } 85% { transform: rotate(-4deg); } 90% { transform: rotate(3deg); } }
.ff-gift.open .ff-gift-lid, .opening .ff-gift-lid { transform: translate(18px, -26px) rotate(24deg); }
.ff-giftbtn { border: 0; background: none; cursor: pointer; padding: 0; }
.ff-unwrap { display: flex; gap: 16px; align-items: center; }
.ff-unwrap p { color: #e6f4ff; }
.ff-card { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .1); margin-bottom: 8px; }
.ff-card small { color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; font-size: .7rem; }
.ff-card p { font-family: Georgia, 'Times New Roman', serif; font-style: italic; color: #fff; margin: 4px 0; }
.ff-card b { color: #9fe8ff; }
.ff-wform { display: flex; flex-direction: column; gap: 10px; }
.ff-wrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ff-wrow > span { min-width: 120px; color: var(--text-dim); font-size: .85rem; }
.ff-wrow select { flex: 1; min-width: 200px; }
.ff-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ff-paper { width: 30px; height: 30px; border-radius: 6px; border: 2px solid rgba(255, 255, 255, .2); cursor: pointer;
  background: linear-gradient(90deg, transparent 42%, var(--b) 42% 58%, transparent 58%), var(--a); }
.ff-paper.on { border-color: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .5); }
.ff-wprev { display: flex; gap: 14px; align-items: center; }
.ff-wprev .btn { width: auto; }

/* ------------------------------------------------------------ Krampus */
.ff-boss .bm-boss-art .bs { max-width: 220px; }
.ff-teaser .bs { filter: brightness(.15) drop-shadow(0 0 12px rgba(200, 30, 58, .6)); }
.ff-teaser .bs .bs-glow, .ff-teaser .bs .bs-eye { filter: brightness(6); }
.ff-hp > i { background: linear-gradient(90deg, #c81e3a, #ff6b7a) !important; }
.ff-sackline { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.ff-sackline > span { font-size: 1.3rem; }
.wb-sack { position: relative; flex: 1; height: 16px; border-radius: 999px; background: rgba(0, 0, 0, .35); overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); margin-top: 6px; }
.wb-sack i { position: absolute; inset: 0 auto 0 0; background: repeating-linear-gradient(45deg, #e8364f 0 8px, #ffd23f 8px 10px, #2fd08a 10px 18px, #ffd23f 18px 20px); opacity: .85; transition: width .6s var(--ease); }
.wb-sack span { position: relative; display: block; width: max-content; margin: 0 auto; padding: 0 8px; border-radius: 999px; background: rgba(6, 10, 20, .7); font-size: .72rem; line-height: 16px; color: #fff; }
.ff-go { background: linear-gradient(180deg, rgba(200, 30, 58, .5), rgba(200, 30, 58, .15)) !important; border-color: rgba(255, 90, 110, .7) !important; }
.ff-gx { margin-top: 10px; }
.ff-snowed { border-color: rgba(159, 232, 255, .4) !important; background: rgba(159, 232, 255, .08) !important; }

/* Weltboss-Seite */
.wb-ffbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; padding: 10px 14px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(120, 14, 30, .55), rgba(10, 30, 50, .65)); border: 1px solid rgba(200, 30, 58, .45); }
.wb-ffbar .m { font-size: 1.6rem; filter: drop-shadow(0 0 8px rgba(255, 210, 63, .6)); }
.wb-ffbar > div { flex: 1; min-width: 220px; }
.wb-ffbar b { display: block; color: #ffe0e4; font-family: var(--font-display); letter-spacing: 1px; text-transform: uppercase; }
.wb-ffbar small { color: #e3ecf6; font-size: .8rem; }
.wb-ffbar .btn { width: auto; }
.wb-k-krampus { --bc: #c81e3a; }
.wb-k-krampus .wb-sky { background: radial-gradient(circle at 20% 10%, rgba(159, 232, 255, .18), transparent 40%), radial-gradient(circle at 80% 0%, rgba(77, 255, 176, .12), transparent 45%); }
.wb-arena.bells { background-image: linear-gradient(0deg, rgba(255, 210, 63, .25), transparent 55%); }
.wb-arena.evehour { box-shadow: 0 0 40px -6px rgba(255, 210, 63, .55) inset; }
.wb-arena.giftrain .wb-stage::after { content: '🎁 ❄️ 🎁 ❄️ 🎁'; position: absolute; left: 0; right: 0; top: -10%; text-align: center; font-size: 1.2rem; letter-spacing: 20px; opacity: .7; animation: ffGiftRain 3s linear infinite; pointer-events: none; }
@keyframes ffGiftRain { from { transform: translateY(0); opacity: 0; } 20% { opacity: .8; } to { transform: translateY(260px); opacity: 0; } }
.wb-rewards.ff { border-color: rgba(47, 208, 138, .4); background: rgba(47, 208, 138, .07); margin-bottom: 8px; }
.wb-wisp.ff { color: #dff6ff; text-shadow: 0 0 10px #9fe8ff; }
.wb-phase.k-giftrain { background: linear-gradient(90deg, transparent, rgba(200, 30, 58, .9), transparent); }
.wb-phase.k-bells { background: linear-gradient(90deg, transparent, rgba(255, 210, 63, .9), transparent); color: #2a1a00; }
.bs-rod { animation: ffRod 2.4s ease-in-out infinite; }
@keyframes ffRod { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-7deg); } }
.bs-tongue { animation: ffTongue 1.3s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 0; }
@keyframes ffTongue { 0%, 100% { transform: rotate(0) scaleY(1); } 50% { transform: rotate(6deg) scaleY(1.06); } }

/* Vorschau-Bilder im Laden */
.ff-spin { animation: ffSpin 6s linear infinite; }
.ff-pv-aurora { animation: ffPvA 5s ease-in-out infinite alternate; transform-origin: 100px 150px; }
@keyframes ffPvA { to { transform: skewX(8deg) translateX(6px); } }
.ff-pv-theme i { box-shadow: 0 0 0 2px rgba(255, 255, 255, .15); }
.ff-try { border-color: rgba(159, 232, 255, .6) !important; background: rgba(8, 20, 40, .94) !important; }
.ff-try b { color: #9fe8ff !important; }

/* ------------------------------------------------------------ Rahmen */
.sfr-candy::before { background: repeating-conic-gradient(var(--f1) 0 12deg, var(--f2) 12deg 24deg) !important; animation: sfrSpin 14s linear infinite; }
.sfr-candy { box-shadow: 0 0 12px var(--f3); }
.sfr-gingerbread::before { background: radial-gradient(circle at 50% 0, var(--f2) 0 3px, transparent 3.5px) 0 0 / 12px 12px, var(--f1) !important; }
.sfr-gingerbread { box-shadow: 0 0 0 2px var(--f2), 0 0 10px rgba(196, 122, 58, .7); }
.sfr-gingerbread::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 50% 4px, var(--f3) 0 3.4px, transparent 4px), radial-gradient(circle at 92% 62%, #2fd08a 0 3px, transparent 3.6px), radial-gradient(circle at 10% 70%, #3f8cff 0 3px, transparent 3.6px); }

/* ------------------------------------------------------------ Intro */
.ff-intro { background: radial-gradient(ellipse at 50% 0%, rgba(77, 255, 176, .25), transparent 60%), rgba(4, 10, 24, .92) !important; }
.ff-intro .bm-intro-txt small { color: #9fe8ff; }
.ff-intro .bm-intro-txt h2 { text-shadow: 0 0 24px rgba(159, 232, 255, .9); }
.ff-intro .bm-intro-txt .btn { background: linear-gradient(180deg, rgba(47, 208, 138, .5), rgba(47, 208, 138, .15)); border-color: rgba(120, 255, 190, .7); }
.ff-intro-aurora { position: absolute; inset: 0 0 50% 0; filter: blur(24px); opacity: .6; pointer-events: none; }
.ff-intro-aurora i { position: absolute; top: 0; height: 100%; width: 40%; border-radius: 50%; background: linear-gradient(180deg, transparent, rgba(77, 255, 176, .6), transparent); animation: ffAur 6s ease-in-out infinite alternate; }
.ff-intro-aurora i:nth-child(2) { left: 30%; background: linear-gradient(180deg, transparent, rgba(155, 107, 255, .5), transparent); animation-delay: -2s; }
.ff-intro-aurora i:nth-child(3) { left: 60%; animation-delay: -4s; }

@media (prefers-reduced-motion: reduce) {
  .ff-aurora i, .ff-snow i, .ff-orn, .ff-bulb, .ff-glit, .ff-star.on circle, .ff-door.ready, .ff-gift.wiggle, .bs-rod, .bs-tongue, .ff-flake, .wb-arena.giftrain .wb-stage::after, .ff-intro-aurora i { animation: none !important; }
  .ff-snow { display: none; }
}

/* Winterfarben fuer die geliehenen Blutmond-Bausteine */
#page-frostfest .bm-item { background: linear-gradient(180deg, rgba(14, 34, 60, .75), rgba(6, 14, 28, .65)); border-color: rgba(159, 232, 255, .16); }
#page-frostfest .bm-item:hover { border-color: rgba(159, 232, 255, .5); }
#page-frostfest .bm-item.owned { border-color: rgba(47, 208, 138, .45); }
#page-frostfest .bm-item-pv { background: radial-gradient(circle at 50% 60%, rgba(120, 200, 255, .18), transparent 70%); }
#page-frostfest .bm-hp { border-color: rgba(200, 30, 58, .45); }
#page-frostfest .bm-trackbar > i { background: linear-gradient(90deg, #1f6a9a, #9fe8ff); box-shadow: 0 0 12px rgba(159, 232, 255, .5); }
#page-frostfest .bm-mark b { background: #0e1a2e; }
#page-frostfest .bm-mark.got b { background: #9fe8ff; border-color: #fff; color: #06223a; box-shadow: 0 0 12px #9fe8ff; }
#page-frostfest .bm-special.got { border-color: rgba(159, 232, 255, .45); background: rgba(159, 232, 255, .07); }
#page-frostfest .bm-count { color: #cfe9ff; }
#page-frostfest .bm-wallet small { color: #9fe8ff; }
