/* =========================================================
   Amuglin – Link-Seite  ·  „Aurora Borealis / Frost"
   ========================================================= */

@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/cinzel.woff2") format("woff2");
}

:root {
  /* Offizielle Amugluin-Palette (Ref-Sheet-Swatches) */
  --c1: 46 130 214;    /* Azur-Blau */
  --c2: 28 126 139;    /* Teal      */
  --c3: 150 220 236;   /* Eis-Cyan  */
  --c-violet: 120 96 205; /* Aurora-Spitze */

  --ink: #05080f;
  --ink-2: #0a1220;
  --text: #eaf5fb;
  --muted: rgba(234, 245, 251, 0.64);
  --glass: rgba(140, 195, 225, 0.09);
  --glass-edge: rgba(175, 220, 240, 0.26);
  --hair: rgba(175, 220, 240, 0.16);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background: var(--ink);
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(140% 90% at 50% -10%, #0d1a2e 0%, var(--ink-2) 42%, var(--ink) 100%);
}

@supports (min-height: 100dvh) {
  body { min-height: 100dvh; }
}

/* --- Sterne (feines Punkteraster oben) --- */
body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  content: "";
  background-image:
    radial-gradient(1.4px 1.4px at 20% 18%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1.2px 1.2px at 68% 12%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.1px 1.1px at 42% 30%, rgba(200,235,255,0.8), transparent),
    radial-gradient(1.3px 1.3px at 85% 24%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 12% 40%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.2px 1.2px at 55% 8%, rgba(255,255,255,0.7), transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 55%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 55%);
}

/* --- Schnee-Drift unten (wie im Ref-Sheet) --- */
body::after {
  position: fixed;
  left: -10%;
  right: -10%;
  bottom: -34vh;
  height: 60vh;
  z-index: 0;
  content: "";
  pointer-events: none;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: radial-gradient(120% 100% at 50% 100%, rgba(198, 224, 236, 0.20), transparent 70%);
  filter: blur(6px);
}

/* --- Aurora Borealis (wehende Lichtvorhänge oben) --- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  filter: blur(46px) saturate(1.35);
  opacity: 0.9;
}

.aurora span {
  position: absolute;
  top: -28vh;
  height: 95vh;
  width: 46vw;
  mix-blend-mode: screen;
  border-radius: 46% 54% 60% 40% / 50% 50% 50% 50%;
  transform: skewX(-14deg);
  animation: aurora-sway 16s ease-in-out infinite alternate;
}

.aurora-1 {
  left: -8vw;
  background: linear-gradient(160deg, transparent, rgb(var(--c2) / 0.55) 40%, rgb(var(--c3) / 0.42) 70%, transparent);
}
.aurora-2 {
  left: 32vw;
  background: linear-gradient(160deg, transparent, rgb(var(--c1) / 0.5) 38%, rgb(var(--c3) / 0.34) 72%, transparent);
  animation-delay: -5s;
  animation-duration: 19s;
}
.aurora-3 {
  right: -6vw;
  background: linear-gradient(160deg, transparent, rgb(var(--c-violet) / 0.4) 34%, rgb(var(--c1) / 0.42) 66%, transparent);
  animation-delay: -11s;
  animation-duration: 22s;
}

/* --- Schwebende Sticker (rieseln herab) --- */
.sticker-field {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.floating-sticker {
  position: absolute;
  width: clamp(58px, 9vw, 118px);
  height: auto;
  opacity: 0.5;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.4));
  animation: sticker-fall 26s linear infinite;
}
.sticker-a { left: 10%; top: -20%; animation-duration: 30s; }
.sticker-b { right: 14%; top: -24%; width: clamp(48px, 7vw, 96px); animation-delay: -14s; animation-duration: 34s; }
.sticker-c { left: 22%; top: -26%; width: clamp(64px, 11vw, 132px); animation-delay: -8s; animation-duration: 38s; }
.sticker-d { right: 6%; top: -22%; animation-delay: -21s; animation-duration: 32s; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.page-shell {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  align-content: center;
  width: min(100% - 32px, 480px);
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 0 max(28px, env(safe-area-inset-bottom));
}

@supports (min-height: 100dvh) {
  .page-shell { min-height: 100dvh; }
}

/* --- Frost-Glas-Karte --- */
.profile-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 26px 24px 24px;
  border: 1px solid var(--glass-edge);
  border-radius: 30px;
  text-align: center;
  background:
    linear-gradient(160deg, rgba(180, 220, 240, 0.16), rgba(120, 170, 205, 0.05) 60%),
    var(--glass);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 0 60px rgba(80, 160, 200, 0.06);
  -webkit-backdrop-filter: blur(26px) saturate(1.3);
  backdrop-filter: blur(26px) saturate(1.3);
}

/* zarter Frost-Schimmer oben */
.profile-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  border-radius: inherit;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.22), transparent 30%);
  opacity: 0.6;
}

.portrait-wrap,
.eyebrow,
h1,
.tagline,
.socials,
.info-section { position: relative; z-index: 1; }

/* --- Portrait (für Bild auf schwarzem Grund) --- */
.portrait-wrap {
  width: min(100%, 300px);
  margin: 0 auto 20px;
  overflow: hidden;
  border: 1px solid rgba(180, 225, 245, 0.32);
  border-radius: 24px;
  background:
    radial-gradient(120% 120% at 50% 8%, #0f1b2c, #05070c 78%);
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.45),
    inset 0 0 40px rgba(70, 150, 200, 0.12),
    0 0 0 4px rgba(70, 150, 200, 0.06);
  aspect-ratio: 1;
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* ganzer Drache sichtbar */
}

/* --- Name (Cinzel) --- */
h1 {
  margin: 0 auto 6px;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 11vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  background: linear-gradient(180deg, #ffffff 0%, rgb(var(--c3)) 42%, rgb(var(--c1)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(60, 150, 210, 0.4));
}

.tagline {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.98rem;
  letter-spacing: 0.03em;
}

/* icy Trennlinie unter Kopfbereich */
.tagline::after {
  display: block;
  width: 54px;
  height: 2px;
  margin: 16px auto 0;
  content: "";
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgb(var(--c3) / 0.85), transparent);
}

.socials { display: grid; gap: 11px; }

.info-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hair);
}

.info-section h2 {
  width: fit-content;
  margin: 0 auto 14px;
  padding: 6px 15px 7px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(150, 200, 230, 0.08);
  color: var(--text);
  font-family: "Cinzel", Georgia, serif;
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --- Link-Kacheln --- */
.social-link {
  display: grid;
  grid-template-columns: 46px 1fr 22px;
  align-items: center;
  gap: 13px;
  min-height: 64px;
  padding: 10px 15px 10px 10px;
  border: 1px solid var(--hair);
  border-radius: 18px;
  background: rgba(150, 200, 230, 0.06);
  text-align: left;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgb(var(--c3) / 0.55);
  background: rgba(150, 200, 230, 0.13);
  box-shadow: 0 10px 30px rgba(30, 90, 150, 0.28), 0 0 0 1px rgb(var(--c3) / 0.12);
  outline: none;
}

.social-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: linear-gradient(140deg, rgb(var(--c1)), rgb(var(--c2)));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.social-icon img { width: 28px; height: 28px; object-fit: contain; }

.social-copy { min-width: 0; }
.social-label, .social-handle { display: block; overflow-wrap: anywhere; }
.social-label { font-weight: 700; letter-spacing: 0.01em; }
.social-handle { margin-top: 2px; color: var(--muted); font-size: 0.9rem; }
.social-arrow { color: rgb(var(--c3) / 0.8); font-size: 1.05rem; font-weight: 700; text-align: right; }

/* --- Animationen --- */
@keyframes aurora-sway {
  0%   { transform: skewX(-14deg) translateX(-4vw) scaleY(0.94); opacity: 0.7; }
  50%  { transform: skewX(-6deg)  translateX(4vw)  scaleY(1.06); opacity: 1; }
  100% { transform: skewX(-16deg) translateX(-2vw) scaleY(0.98); opacity: 0.78; }
}

@keyframes sticker-fall {
  0%   { transform: translate3d(0, -20vh, 0) rotate(-8deg); }
  50%  { transform: translate3d(4vw, 55vh, 0) rotate(10deg); }
  100% { transform: translate3d(-3vw, 128vh, 0) rotate(-6deg); }
}

/* --- Responsive --- */
@media (max-width: 480px) {
  .profile-card { padding: 20px 16px 18px; border-radius: 24px; }
  .portrait-wrap { width: min(100%, 260px); border-radius: 20px; }
  .social-link { grid-template-columns: 42px 1fr 20px; min-height: 60px; }
  .social-icon { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora span, .floating-sticker { animation: none; }
}
