/* ==========================================================================
   POWERWOLF LEAGUE · MAXIMA 1.12
   Exklusive Cinematic-Schicht – ergänzt wolfskin, zerstört nichts.
   ========================================================================== */

:root {
  --maxima-gold: #f0d078;
  --maxima-ember: #ff8a3d;
  --maxima-void: #03060b;
  --maxima-glow: 0 0 60px rgba(240, 208, 120, 0.18);
  --font-display: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", Inter, system-ui, sans-serif;
}

body {
  font-family: var(--font-body);
}

.landing__copy h1,
.page-header__content h1,
.auth-card h2,
.sidebar__edition strong,
.brand strong {
  font-family: var(--font-display);
}

/* ----- Intro / Tor zum Rudel ----- */
.maxima-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(240, 208, 120, 0.12), transparent 42%),
    linear-gradient(180deg, #02040a 0%, #060a12 55%, #03060b 100%);
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.maxima-gate.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.maxima-gate__art {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 55%, transparent 20%, rgba(2, 4, 10, 0.75) 70%),
    url("../images/splash-wolf-eyes.jpg") center 40% / cover no-repeat;
  opacity: 0.55;
  filter: saturate(1.05) contrast(1.05);
  animation: maxima-art-in 1.4s ease both;
}

.maxima-gate__card {
  position: relative;
  z-index: 2;
  width: min(420px, calc(100% - 2.5rem));
  padding: 2rem 1.6rem 1.5rem;
  text-align: center;
  border: 1px solid rgba(240, 208, 120, 0.35);
  border-radius: 4px 28px 4px 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 208, 120, 0.12), transparent 45%),
    rgba(6, 10, 16, 0.88);
  box-shadow: var(--maxima-glow), 0 40px 100px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(18px);
  animation: maxima-card-in 0.9s 0.25s cubic-bezier(0.2, 0.85, 0.2, 1) both;
}

.maxima-gate__seal {
  width: 86px;
  height: 86px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 1px solid rgba(240, 208, 120, 0.55);
  object-fit: cover;
  box-shadow: 0 0 0 5px rgba(240, 208, 120, 0.06), 0 0 40px rgba(240, 208, 120, 0.25);
  animation: maxima-seal-spin 12s linear infinite;
}

.maxima-gate__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--maxima-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.maxima-gate__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: 0.06em;
  color: #fff8e8;
  text-shadow: 0 0 30px rgba(240, 208, 120, 0.25);
}

.maxima-gate__sub {
  margin: 0.75rem 0 1.35rem;
  color: rgba(232, 228, 216, 0.7);
  font-size: 0.92rem;
  line-height: 1.5;
}

.maxima-gate__bar {
  height: 4px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(240, 208, 120, 0.2);
}

.maxima-gate__bar > i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #a86d20, var(--maxima-gold), #fff3c4);
  box-shadow: 0 0 16px rgba(240, 208, 120, 0.7);
  animation: maxima-load 2.1s ease forwards;
}

.maxima-gate__hint {
  margin: 0.85rem 0 0;
  color: rgba(232, 228, 216, 0.45);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes maxima-art-in {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 0.55; transform: scale(1); }
}
@keyframes maxima-card-in {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes maxima-load {
  to { width: 100%; }
}
@keyframes maxima-seal-spin {
  from { filter: drop-shadow(0 0 8px rgba(240, 208, 120, 0.2)); }
  50% { filter: drop-shadow(0 0 22px rgba(240, 208, 120, 0.55)); }
  to { filter: drop-shadow(0 0 8px rgba(240, 208, 120, 0.2)); }
}

/* ----- Cursor gold trail (desktop) ----- */
.maxima-cursor {
  position: fixed;
  z-index: 10000;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 243, 196, 0.95), rgba(240, 208, 120, 0.15) 55%, transparent 70%);
  box-shadow: 0 0 18px rgba(240, 208, 120, 0.45);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.maxima-cursor.is-on { opacity: 1; }
.maxima-cursor__ring {
  position: fixed;
  z-index: 9999;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  border: 1px solid rgba(240, 208, 120, 0.35);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.25s ease;
}
.maxima-cursor__ring.is-on { opacity: 0.7; }

/* ----- Ember canvas ----- */
#maxima-embers {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
}

/* ----- Landing exclusives ----- */
.landing {
  overflow: hidden;
}
.landing__copy h1 span {
  background: linear-gradient(120deg, #f7e2a0, #d3ad55 40%, #fff6d2 70%, #c9942e);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: maxima-shimmer 6s linear infinite;
}
@keyframes maxima-shimmer {
  to { background-position: 200% center; }
}

.auth-card {
  animation: maxima-card-float 7s ease-in-out infinite;
}
@keyframes maxima-card-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.button--steam {
  position: relative;
  overflow: hidden;
  letter-spacing: 0.04em;
}
.button--steam::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(102, 192, 244, 0.25) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}
.button--steam:hover::before {
  transform: translateX(120%);
}

.landing__exclusive {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.55rem;
  max-width: 38ch;
}
.landing__exclusive span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(232, 228, 216, 0.72);
  font-size: 0.86rem;
}
.landing__exclusive b {
  color: var(--maxima-gold);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Hall-Flame: bewusst NICHT überschreiben – Sitzt in app.css auf der Feuerschale.
   Frühere MAXIMA-Overrides haben Flammen vom Feuer gelöst. */

/* ----- Rank seal watermark on profile ----- */
.warrior-card {
  position: relative;
}
.warrior-card::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: url("../images/rank-seal.jpg") center/cover;
  opacity: 0.18;
  pointer-events: none;
  filter: saturate(1.1);
  box-shadow: 0 0 30px rgba(240, 208, 120, 0.12);
}

/* ----- Toast maxima ----- */
.toast {
  border-left: 3px solid var(--maxima-gold);
  animation: maxima-toast 0.45s cubic-bezier(0.2, 0.85, 0.2, 1);
}
@keyframes maxima-toast {
  from { opacity: 0; transform: translateX(16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* ----- Route flash ----- */
.app-content.maxima-flash::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: radial-gradient(circle at 50% 0%, rgba(240, 208, 120, 0.12), transparent 55%);
  animation: maxima-flash 0.65s ease forwards;
}
@keyframes maxima-flash {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ----- Edition ribbon ----- */
.sidebar__edition strong {
  background: linear-gradient(90deg, #ffe49a, #e4bb5a, #ffe49a);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: maxima-shimmer 5s linear infinite;
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  .maxima-gate__art,
  .maxima-gate__card,
  .maxima-gate__seal,
  .maxima-gate__bar > i,
  .landing__copy h1 span,
  .auth-card,
  .button--steam::before,
  .page,
  .sidebar__edition strong {
    animation: none !important;
  }
  .maxima-cursor,
  .maxima-cursor__ring,
  #maxima-embers {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .maxima-cursor,
  .maxima-cursor__ring {
    display: none !important;
  }
  .warrior-card::after {
    width: 64px;
    height: 64px;
    opacity: 0.12;
  }
}
