/* =========================================================
   BillyyG – Easter Eggs 🥚
   ========================================================= */
.egg-ov { position: fixed; z-index: 1500; pointer-events: none; animation: egg-in 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
.egg-ov.out { animation: egg-out 0.4s ease both; }
@keyframes egg-in { from { opacity: 0; transform: scale(0.85); } }
@keyframes egg-out { to { opacity: 0; transform: scale(0.92); } }
.egg-canvas { position: fixed; inset: 0; z-index: 1499; pointer-events: none; }

/* Fund-Meldung */
.egg-toast { position: fixed; left: 50%; bottom: 22px; z-index: 1600; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px;
  border-radius: 16px; color: #fff; text-decoration: none; transform: translate(-50%, 140%); transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3);
  background: linear-gradient(135deg, rgba(40, 20, 80, 0.97), rgba(20, 12, 40, 0.97)); border: 2px solid var(--gold);
  box-shadow: 0 0 30px rgba(255, 210, 74, 0.45), 0 12px 30px rgba(0, 0, 0, 0.6); }
.egg-toast.show { transform: translate(-50%, 0); }
.egg-toast-ico { font-size: 30px; animation: egg-wobble 0.8s ease-in-out infinite alternate; }
.egg-toast b { display: block; font-family: var(--font-display); letter-spacing: 1px; color: var(--gold); font-size: 14px; text-transform: uppercase; }
.egg-toast small { color: var(--text); font-weight: 700; font-size: 14px; }
@keyframes egg-wobble { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }

/* Konami: Jackpot */
.egg-jackpot { inset: 0; display: grid; place-items: center; background: radial-gradient(circle, rgba(255, 210, 74, 0.25), rgba(7, 5, 13, 0.75) 60%); animation: egg-flash 0.25s steps(2) 6, egg-in 0.3s both; }
@keyframes egg-flash { 50% { background-color: rgba(255, 210, 74, 0.25); } }
.egg-jp-in { text-align: center; animation: egg-pop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.5) both; }
.egg-jp-777 { font-family: var(--font-display); font-weight: 900; font-size: clamp(60px, 14vw, 170px); color: #ff3b4f; letter-spacing: 0.2em;
  text-shadow: 0 0 20px #ff3b4f, 0 0 60px rgba(255, 59, 79, 0.7), 0 6px 0 #8a0f20; }
.egg-jp-txt { font-family: var(--font-display); font-weight: 900; font-size: clamp(40px, 9vw, 110px); color: var(--gold);
  text-shadow: 0 0 24px rgba(255, 210, 74, 1), 0 0 70px rgba(255, 160, 0, 0.8), 0 6px 0 #8a5a00; animation: egg-pulse 0.5s ease-in-out infinite alternate; }
@keyframes egg-pop { from { transform: scale(0.2) rotate(-10deg); opacity: 0; } }
@keyframes egg-pulse { to { transform: scale(1.08); } }

/* "blg": fliegendes Logo */
.egg-fly { position: fixed; z-index: 1500; left: -160px; top: 40vh; width: 120px; height: 120px; border-radius: 50%; pointer-events: none;
  filter: drop-shadow(-40px 0 20px rgba(125, 255, 58, 0.8)) drop-shadow(-80px 0 30px rgba(125, 255, 58, 0.4));
  animation: egg-fly 2.6s cubic-bezier(0.45, 0, 0.55, 1) forwards; }
@keyframes egg-fly {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(calc(50vw + 80px), -22vh) rotate(360deg) scale(1.4); }
  100% { transform: translate(calc(100vw + 320px), 6vh) rotate(720deg); }
}

/* "billy": guckt aus der Ecke */
.egg-billy { right: 18px; bottom: 0; display: flex; align-items: flex-end; gap: 10px; flex-direction: row-reverse; animation: egg-peek 4.2s ease-in-out both; }
.egg-billy img { width: 110px; height: 110px; border-radius: 50%; border: 3px solid var(--purple); box-shadow: 0 0 30px rgba(157, 77, 255, 0.7); animation: egg-wave 0.5s ease-in-out 0.7s 4 alternate; transform-origin: bottom center; }
.egg-billy span { margin-bottom: 70px; padding: 10px 14px; border-radius: 14px 14px 2px 14px; background: #fff; color: #12091f; font-weight: 800; white-space: nowrap; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5); }
@keyframes egg-peek { 0% { transform: translateY(130%); } 14%, 84% { transform: translateY(18%); } 100% { transform: translateY(130%); } }
@keyframes egg-wave { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }

/* Slot-Walzen */
.egg-logoslot { left: 14px; top: calc(var(--nav-h, 70px) + 10px); padding: 12px; border-radius: 16px; text-align: center;
  background: linear-gradient(160deg, #2a1650, #12091f); border: 2px solid var(--gold); box-shadow: 0 0 30px rgba(255, 210, 74, 0.5); }
.egg-reels { display: flex; gap: 8px; justify-content: center; }
.egg-reel { width: 56px; height: 64px; display: grid; place-items: center; font-size: 34px; border-radius: 10px; background: #07050d;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12), inset 0 10px 16px rgba(0, 0, 0, 0.7); }
.egg-reel img { width: 44px; height: 44px; border-radius: 50%; }
.egg-reel.stop { animation: egg-pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.6); box-shadow: inset 0 0 0 2px var(--gold), 0 0 16px rgba(255, 210, 74, 0.5); }
.egg-reels.big .egg-reel { width: 78px; height: 90px; font-size: 48px; }
.egg-reels.big .egg-reel img { width: 62px; height: 62px; }
.egg-slot-msg { min-height: 24px; margin-top: 8px; font-weight: 900; color: var(--gold); font-family: var(--font-display); letter-spacing: 0.5px; }

/* Wuerfel */
.egg-dice { left: 50%; bottom: 90px; transform: translateX(-50%); }
.egg-dice-in { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 16px; background: rgba(20, 12, 40, 0.96); border: 2px solid var(--purple); box-shadow: var(--shadow-purple); }
.egg-die { font-size: 54px; line-height: 1; display: inline-block; animation: egg-roll 0.3s linear infinite; }
.egg-die.stop { animation: egg-pop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.6); color: #fff; }
.egg-dice b { font-size: 18px; min-width: 150px; }
@keyframes egg-roll { to { transform: rotate(360deg); } }

/* Abspann (Retro-Monitor) */
.egg-credits { inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.8); pointer-events: auto; cursor: pointer; }
.egg-crt { position: relative; width: min(560px, 92vw); height: min(420px, 70vh); overflow: hidden; border-radius: 24px; background: #020a02;
  border: 10px solid #1d1d1d; box-shadow: 0 0 0 3px #333, 0 0 60px rgba(125, 255, 58, 0.25), inset 0 0 80px rgba(0, 0, 0, 0.9); }
.egg-crt::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0 2px, transparent 2px 4px); animation: egg-flicker 0.12s infinite; }
@keyframes egg-flicker { 50% { opacity: 0.85; } }
.egg-roll { position: absolute; left: 0; right: 0; top: 100%; text-align: center; font-family: var(--font-mono); color: #7dff3a; text-shadow: 0 0 8px #7dff3a;
  animation: egg-scroll 15s linear forwards; }
.egg-roll p { margin: 6px 0; font-size: 18px; }
.egg-roll p:first-child { font-size: 26px; color: #fff; }
.egg-crt small { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; color: rgba(125, 255, 58, 0.5); font-family: var(--font-mono); font-size: 12px; z-index: 2; }
@keyframes egg-scroll { to { transform: translateY(calc(-100% - 420px)); } }

/* Goldener Stern */
.egg-star { position: fixed; left: -60px; z-index: 1400; font-size: 34px; background: none; border: 0; cursor: pointer; padding: 6px;
  filter: drop-shadow(0 0 12px #ffd24a) drop-shadow(0 0 26px rgba(255, 210, 74, 0.8)); animation: egg-starfly 15s linear forwards; }
@keyframes egg-starfly {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(28vw, -6vh) rotate(180deg); }
  50% { transform: translate(55vw, 4vh) rotate(360deg); }
  75% { transform: translate(80vw, -5vh) rotate(540deg); }
  100% { transform: translate(calc(100vw + 120px), 3vh) rotate(720deg); }
}

/* Popup-Fenster */
.egg-modal { inset: 0; z-index: 1550; display: grid; place-items: center; background: rgba(5, 3, 10, 0.75); pointer-events: auto; padding: 14px; }
.egg-box { position: relative; width: min(440px, 94vw); padding: 24px; border-radius: 20px; text-align: center; display: grid; gap: 10px; justify-items: center;
  background: linear-gradient(160deg, rgba(40, 20, 80, 0.98), rgba(14, 9, 28, 0.98)); border: 2px solid var(--gold); box-shadow: 0 0 50px rgba(255, 210, 74, 0.35); }
.egg-box h3 { margin: 0; font-family: var(--font-display); font-size: 20px; }
.egg-box p { margin: 0; color: var(--muted); }
.egg-big { font-size: 64px; filter: drop-shadow(0 0 20px #ffd24a); animation: egg-pulse 0.8s ease-in-out infinite alternate; }
.egg-row { display: flex; gap: 8px; width: 100%; }
.egg-row input { flex: 1; min-width: 0; }
.egg-link { color: var(--purple-3); font-weight: 800; }
.egg-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--panel-border); background: rgba(0, 0, 0, 0.4); color: #fff; cursor: pointer; }
.egg-x:hover { background: var(--red); }

/* Mitternacht */
body.egg-midnight::after { content: ""; position: fixed; inset: 0; z-index: 43; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.75) 100%), rgba(20, 0, 30, 0.25); animation: egg-breath 4s ease-in-out infinite; }
body.egg-midnight { filter: saturate(0.6) brightness(0.85); }
@keyframes egg-breath { 50% { opacity: 0.75; } }

/* Krone am Mauszeiger */
.egg-crown { position: fixed; left: 0; top: 0; z-index: 1500; pointer-events: none; transition: transform 0.08s linear; }
.egg-crown .ic, .egg-crown svg { width: 44px; height: 44px; color: var(--gold); filter: drop-shadow(0 0 12px rgba(255, 210, 74, 0.9)); }

/* GG-Blasen */
.egg-gg { position: fixed; bottom: -60px; z-index: 1500; pointer-events: none; font-family: var(--font-display); font-weight: 900;
  padding: 6px 12px; border-radius: 14px; background: rgba(20, 12, 40, 0.9); border: 2px solid currentColor; box-shadow: 0 0 16px currentColor;
  animation: egg-rise 3s cubic-bezier(0.3, 0.6, 0.4, 1) forwards; }
@keyframes egg-rise { to { transform: translateY(-115vh) rotate(-8deg); opacity: 0.2; } }

/* Disco */
body.egg-disco { animation: egg-discobg 0.52s steps(2) infinite; }
@keyframes egg-discobg { 50% { filter: brightness(1.15) saturate(1.4); } }
.egg-disco-lights { inset: 0; z-index: 1450; mix-blend-mode: screen;
  background: conic-gradient(from 0deg at 50% 0%, rgba(255, 0, 120, 0.22), rgba(0, 200, 255, 0.22), rgba(125, 255, 58, 0.22), rgba(255, 210, 74, 0.22), rgba(157, 77, 255, 0.22), rgba(255, 0, 120, 0.22));
  animation: egg-spinlights 2s linear infinite; }
@keyframes egg-spinlights { 50% { filter: hue-rotate(180deg); opacity: 0.6; } }
.egg-ball { position: absolute; left: 50%; top: 0; font-size: 70px; transform-origin: top center; animation: egg-swing 1.04s ease-in-out infinite alternate; filter: drop-shadow(0 0 20px #fff); }
@keyframes egg-swing { from { transform: translateX(-50%) rotate(-12deg); } to { transform: translateX(-50%) rotate(12deg); } }

/* Regenbogen */
html.egg-rainbow body { animation: egg-hue 2.4s linear infinite; }
@keyframes egg-hue { to { filter: hue-rotate(360deg); } }

/* DVD-Bildschirmschoner */
.egg-dvd { position: fixed; inset: 0; z-index: 1450; background: rgba(3, 2, 8, 0.92); animation: egg-in 0.6s both; }
.egg-dvd img { position: absolute; left: 0; top: 0; border-radius: 50%; filter: drop-shadow(0 0 24px rgba(157, 77, 255, 0.8)); }
.egg-dvd small { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; color: rgba(255, 255, 255, 0.35); font-weight: 700; }

/* Preispool / Countdown */
.egg-cover { position: absolute; inset: -4px -8px; display: flex; align-items: center; padding: 0 8px; border-radius: 10px; z-index: 3;
  background: rgba(20, 12, 40, 0.97); color: #fff; font-size: 0.7em; white-space: nowrap; }
.egg-cover.gold { color: var(--gold); font-size: 1em; text-shadow: 0 0 16px rgba(255, 210, 74, 0.9); }
.egg-freeze { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 2px; z-index: 3; text-align: center;
  background: linear-gradient(160deg, rgba(120, 200, 255, 0.95), rgba(40, 90, 160, 0.95)); border-radius: 12px; box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.6); }
.egg-freeze b { font-family: var(--font-display); font-size: 22px; color: #fff; text-shadow: 0 0 10px rgba(255, 255, 255, 0.9); }
.egg-freeze span { font-weight: 800; font-size: 13px; color: #06233f; }

/* Sternbild */
.egg-spark { position: fixed; z-index: 1450; pointer-events: none; color: #fff; font-size: 18px; transform: translate(-50%, -50%);
  text-shadow: 0 0 10px #fff, 0 0 20px var(--purple-3); animation: egg-spark 1.2s ease-out forwards; }
@keyframes egg-spark { to { opacity: 0; transform: translate(-50%, -50%) scale(2.2) rotate(90deg); } }
.egg-const { inset: 0; display: grid; place-items: center; align-content: center; gap: 16px; background: radial-gradient(circle, rgba(20, 10, 50, 0.5), rgba(5, 3, 10, 0.7)); }
.egg-const svg { width: min(620px, 90vw); overflow: visible; }
.egg-const line { stroke: rgba(199, 155, 255, 0.85); stroke-width: 0.08; stroke-dasharray: 10; stroke-dashoffset: 10; animation: egg-draw 0.6s ease forwards; filter: drop-shadow(0 0 0.2px #fff); }
.egg-const circle { fill: #fff; opacity: 0; animation: egg-twinkle 0.5s ease forwards; filter: drop-shadow(0 0 0.4px #fff); }
.egg-const b { font-family: var(--font-display); color: #fff; text-align: center; padding: 0 14px; text-shadow: 0 0 14px var(--purple); }
@keyframes egg-draw { to { stroke-dashoffset: 0; } }
@keyframes egg-twinkle { to { opacity: 1; } }

/* Schwarze Katze (Freitag der 13.) */
.egg-cat { position: fixed; bottom: 6px; left: -80px; z-index: 1400; font-size: 54px; pointer-events: none; transform: scaleX(-1);
  animation: egg-cat 11s linear forwards; filter: drop-shadow(0 0 8px rgba(255, 210, 74, 0.6)); }
@keyframes egg-cat { 0% { left: -80px; } 45% { left: 45vw; } 55% { left: 52vw; bottom: 6px; } 57% { bottom: 30px; } 59% { bottom: 6px; } 100% { left: calc(100vw + 80px); } }

/* Pi */
.egg-pi { left: 50%; top: 30vh; transform: translateX(-50%); display: grid; gap: 4px; text-align: center; padding: 18px 26px; border-radius: 18px;
  background: rgba(20, 12, 40, 0.95); border: 2px solid var(--gold); }
.egg-pi b { font-family: var(--font-mono); font-size: clamp(20px, 4vw, 30px); color: var(--gold); }
.egg-pi small { color: var(--text); font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  html.egg-rainbow body, body.egg-disco { animation: none; }
}

/* ===================================================== Geheimseite /secret */
.sc-progress { padding: 16px 20px; margin-bottom: 18px; }
.sc-prog-top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.sc-prog-top b { font-family: var(--font-display); font-size: 28px; color: var(--gold); text-shadow: 0 0 14px rgba(255, 210, 74, 0.6); }
.sc-prog-top span { color: var(--muted); font-weight: 700; }
.sc-bar { height: 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.sc-bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--purple), var(--gold), var(--green)); box-shadow: 0 0 14px rgba(255, 210, 74, 0.6); transition: width 0.6s; }
.sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-bottom: 22px; }
.sc-egg { display: grid; gap: 4px; padding: 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.35); border: 1px dashed var(--panel-border); }
.sc-egg.ok { border: 1px solid rgba(255, 210, 74, 0.55); background: linear-gradient(160deg, rgba(60, 40, 10, 0.5), rgba(20, 12, 40, 0.8)); box-shadow: 0 0 18px rgba(255, 210, 74, 0.15); }
.sc-ico { font-size: 30px; }
.sc-egg:not(.ok) .sc-ico { filter: grayscale(1); opacity: 0.5; }
.sc-egg b { font-size: 17px; }
.sc-egg:not(.ok) b { color: var(--muted); letter-spacing: 3px; }
.sc-egg small { color: var(--muted); font-weight: 600; font-size: 13px; line-height: 1.3; }
.sc-lower { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; }
.sc-game, .sc-finders { padding: 16px; }
.sc-game h3, .sc-finders h3 { margin: 0 0 10px; display: flex; align-items: baseline; gap: 10px; font-family: var(--font-display); font-size: 17px; }
.sc-game h3 small { color: var(--gold); font-size: 14px; }
.fb-wrap { width: min(420px, 100%); aspect-ratio: 420 / 560; }
.fb-wrap canvas { width: 100%; height: 100%; border-radius: 14px; display: block; touch-action: none; cursor: pointer; border: 2px solid var(--panel-border); }
.sc-hint { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.sf-list { display: grid; gap: 6px; margin-top: 10px; }
.sf-row { display: grid; grid-template-columns: 30px 1fr auto; gap: 8px; align-items: center; padding: 8px 12px; border-radius: 10px; background: rgba(255, 210, 74, 0.06); border: 1px solid rgba(255, 210, 74, 0.2); }
.sf-row span { color: var(--gold); font-weight: 900; }
.sf-row small { color: var(--muted); }
@media (max-width: 860px) { .sc-lower { grid-template-columns: 1fr; } .sc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 340px) { .sc-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .sc-egg { padding: 10px; } .sc-egg b { font-size: 15px; } .egg-toast { width: max-content; max-width: calc(100vw - 24px); } }

/* Easter-Egg-Elemente haengen direkt am <html> (nicht am <body>) -> Schrift & Farbe hier setzen */
.egg-ov, .egg-toast, .egg-gg, .egg-dvd, .egg-star, .egg-crown, .egg-spark, .egg-cat, .egg-fly {
  font-family: var(--font-body); color: var(--text); font-size: 17px; line-height: 1.45; }

.sc-name { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.sc-name input { flex: 0 1 260px; }
.sc-name small { color: var(--muted); flex-basis: 100%; }

.sc-cens { color: rgba(157, 146, 189, 0.35) !important; letter-spacing: -1px; word-break: break-all; user-select: none; }
/* Login-Hinweis (Easter Eggs zaehlen nur eingeloggt) */
.egg-toast small + small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.sc-name span { color: var(--muted); }
.sc-name span b { color: var(--text); }
