/* VEYDRIS – Ernennungs-Zeremonie „Warden of Veydris“ (24.10.2026)
   Neuer Moderator sieht beim nächsten Login einmal sein Wächter-Siegel – inszeniert wie ein Mythic-Fund.
   Smaragd (Wächter) + Gold (VEYDRIS), Obsidian-Grund, Cinzel/Manrope. Alles in @layer pv, Präfix :not(#rc1):not(#rc2). */
@layer pv {
  body:not(#rc1):not(#rc2) .rank-ceremony {
    --rc-emerald: #3fd6a0; --rc-emerald-deep: #0f5c47; --rc-gold: #f3cf86; --rc-gold-deep: #b5823a; --rc-ink: #f4ead6; --rc-muted: #b9ad97;
    position: fixed; inset: 0; z-index: 2147482000; display: grid; place-items: center; padding: 16px; overflow: hidden auto;
    background: radial-gradient(ellipse at 50% 38%, rgba(63, 214, 160, .22), transparent 55%), radial-gradient(ellipse at 50% 120%, rgba(243, 207, 134, .16), transparent 60%), rgba(5, 6, 10, .9);
    backdrop-filter: blur(6px); animation: rc-fade .45s ease-out both; font-family: var(--pv-font, Manrope, system-ui, sans-serif); color: var(--rc-ink);
  }
  body:not(#rc1):not(#rc2) .rank-ceremony__fx { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
  body:not(#rc1):not(#rc2) .rank-ceremony__flash { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 50% 40%, rgba(220, 255, 240, .95), rgba(63, 214, 160, .35) 30%, transparent 62%); opacity: 0; animation: rc-flash 1.1s ease-out .05s both; }
  body:not(#rc1):not(#rc2) .rank-ceremony__rays { position: absolute; left: 50%; top: 40%; width: 180vmax; height: 180vmax; margin: -90vmax 0 0 -90vmax; pointer-events: none; opacity: .5;
    background: repeating-conic-gradient(from 0deg, rgba(63, 214, 160, .16) 0deg 5deg, transparent 5deg 18deg, rgba(243, 207, 134, .12) 18deg 21deg, transparent 21deg 30deg);
    -webkit-mask: radial-gradient(circle, #000 0, transparent 46%); mask: radial-gradient(circle, #000 0, transparent 46%); animation: rc-spin 40s linear infinite; }
  body:not(#rc1):not(#rc2) .rank-ceremony__sparks { position: absolute; inset: 0; pointer-events: none; }
  body:not(#rc1):not(#rc2) .rank-ceremony__sparks i { position: absolute; bottom: -12px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: var(--rc-emerald); box-shadow: 0 0 10px 2px rgba(63, 214, 160, .8); opacity: 0; animation: rc-rise var(--d) linear calc(var(--i) * .23s) infinite; }
  body:not(#rc1):not(#rc2) .rank-ceremony__sparks i:nth-child(3n) { background: var(--rc-gold); box-shadow: 0 0 10px 2px rgba(243, 207, 134, .8); }

  body:not(#rc1):not(#rc2) .rank-ceremony__card { position: relative; width: min(560px, 100%); padding: 22px 26px 22px; border-radius: 18px; text-align: center;
    background: linear-gradient(180deg, rgba(22, 30, 30, .97), rgba(10, 11, 16, .98)) padding-box, linear-gradient(160deg, var(--rc-gold), var(--rc-gold-deep) 30%, var(--rc-emerald) 55%, var(--rc-gold-deep) 80%, var(--rc-gold)) border-box;
    border: 2px solid transparent; box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 30px 90px rgba(0, 0, 0, .7), 0 0 80px rgba(63, 214, 160, .25), inset 0 1px 0 rgba(255, 255, 255, .06);
    animation: rc-card .8s cubic-bezier(.2, 1.2, .3, 1) .25s both; }
  body:not(#rc1):not(#rc2) .rank-ceremony__card::before { content: ""; position: absolute; inset: 7px; border-radius: 12px; border: 1px solid rgba(243, 207, 134, .22); pointer-events: none; }
  body:not(#rc1):not(#rc2) .rank-ceremony__card > header { display: flex; justify-content: space-between; align-items: center; gap: 10px; font: 800 10px/1.2 var(--pv-font, Manrope, sans-serif); letter-spacing: .22em; color: var(--rc-gold); }
  body:not(#rc1):not(#rc2) .rank-ceremony__card > header span { padding: 4px 9px; border-radius: 99px; color: #07140f; background: linear-gradient(180deg, #8ff0c9, var(--rc-emerald)); letter-spacing: .16em; }

  body:not(#rc1):not(#rc2) .rank-ceremony__sigil { position: relative; width: min(250px, 58vw); aspect-ratio: 1; margin: 8px auto 2px; display: grid; place-items: center; }
  body:not(#rc1):not(#rc2) .rank-ceremony__sigil img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 22px rgba(63, 214, 160, .55)) drop-shadow(0 12px 18px rgba(0, 0, 0, .7)); animation: rc-sigil 1s cubic-bezier(.2, 1.3, .3, 1) .45s both, rc-float 5s ease-in-out 1.5s infinite; }
  body:not(#rc1):not(#rc2) .rank-ceremony__halo { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(63, 214, 160, .55), rgba(63, 214, 160, .08) 55%, transparent 70%); animation: rc-pulse 2.6s ease-in-out infinite; }
  body:not(#rc1):not(#rc2) .rank-ceremony__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(243, 207, 134, .45); box-shadow: inset 0 0 0 8px rgba(243, 207, 134, .04); animation: rc-spin 24s linear infinite reverse; }

  body:not(#rc1):not(#rc2) .rank-ceremony__copy > * { animation: rc-up .6s ease-out both; }
  body:not(#rc1):not(#rc2) .rank-ceremony__copy > :nth-child(1) { animation-delay: .9s; }
  body:not(#rc1):not(#rc2) .rank-ceremony__copy > :nth-child(2) { animation-delay: 1.05s; }
  body:not(#rc1):not(#rc2) .rank-ceremony__copy > :nth-child(3) { animation-delay: 1.2s; }
  body:not(#rc1):not(#rc2) .rank-ceremony__copy > :nth-child(4) { animation-delay: 1.35s; }
  body:not(#rc1):not(#rc2) .rank-ceremony__copy > :nth-child(5) { animation-delay: 1.5s; }
  body:not(#rc1):not(#rc2) .rank-ceremony__rarity { display: inline-block; font: 800 10px/1 var(--pv-font, Manrope, sans-serif); letter-spacing: .28em; color: var(--rc-emerald); text-shadow: 0 0 12px rgba(63, 214, 160, .6); }
  body:not(#rc1):not(#rc2) .rank-ceremony h2 { margin: 8px 0 6px; font: 700 clamp(28px, 7vw, 38px)/1.05 Cinzel, Georgia, serif; letter-spacing: .04em; color: var(--rc-gold); text-shadow: 0 2px 0 rgba(0, 0, 0, .65), 0 0 18px rgba(243, 207, 134, .3); }
  body:not(#rc1):not(#rc2) .rank-ceremony__copy > p { margin: 0 auto 12px; max-width: 42ch; font-size: 14px; line-height: 1.5; color: var(--rc-muted); }
  body:not(#rc1):not(#rc2) .rank-ceremony__copy > p b { color: var(--rc-ink); }
  body:not(#rc1):not(#rc2) .rank-ceremony__powers { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; text-align: left; }
  body:not(#rc1):not(#rc2) .rank-ceremony__powers li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; background: linear-gradient(180deg, rgba(63, 214, 160, .09), rgba(63, 214, 160, .02)); border: 1px solid rgba(63, 214, 160, .22); }
  body:not(#rc1):not(#rc2) .rank-ceremony__powers li > span { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-size: 14px; color: #07140f; background: linear-gradient(180deg, #a6f5d6, var(--rc-emerald)); box-shadow: 0 0 12px rgba(63, 214, 160, .35); }
  body:not(#rc1):not(#rc2) .rank-ceremony__powers b { display: block; font: 800 12px/1.25 var(--pv-font, Manrope, sans-serif); color: var(--rc-ink); }
  body:not(#rc1):not(#rc2) .rank-ceremony__powers small { display: block; margin-top: 2px; font-size: 11px; line-height: 1.35; color: var(--rc-muted); }
  body:not(#rc1):not(#rc2) .rank-ceremony blockquote { margin: 0 0 4px; font: italic 500 13px/1.45 Cinzel, Georgia, serif; color: var(--rc-gold); opacity: .9; }
  body:not(#rc1):not(#rc2) .rank-ceremony__card > footer { display: grid; gap: 10px; justify-items: center; margin-top: 10px; animation: rc-up .6s ease-out 1.7s both; }
  body:not(#rc1):not(#rc2) .rank-ceremony__card > footer small { font: 700 10px/1.3 var(--pv-font, Manrope, sans-serif); letter-spacing: .18em; color: var(--rc-muted); }
  body:not(#rc1):not(#rc2) .rank-ceremony__card > footer em { font-style: normal; padding: 1px 6px; border-radius: 99px; color: #07140f; background: linear-gradient(180deg, #a6f5d6, var(--rc-emerald)); }
  body:not(#rc1):not(#rc2) .rank-ceremony [data-rank-oath] { min-width: 240px; }
  body:not(#rc1):not(#rc2) .rank-ceremony.is-sworn .rank-ceremony__card { animation: rc-sworn .9s ease-in both; }
  body:not(#rc1):not(#rc2) .rank-ceremony.is-sworn .rank-ceremony__flash { animation: rc-flash .8s ease-out both; }

  @media (max-width: 520px) {
    body:not(#rc1):not(#rc2) .rank-ceremony { place-items: start center; }
    body:not(#rc1):not(#rc2) .rank-ceremony__card { padding: 16px 14px; }
    body:not(#rc1):not(#rc2) .rank-ceremony__card > header { font-size: 9px; letter-spacing: .12em; white-space: nowrap; }
    body:not(#rc1):not(#rc2) .rank-ceremony__card > header span { padding: 4px 7px; letter-spacing: .1em; }
    body:not(#rc1):not(#rc2) .rank-ceremony__powers { grid-template-columns: 1fr; gap: 6px; }
    body:not(#rc1):not(#rc2) .rank-ceremony__powers li { padding: 7px 9px; }
    body:not(#rc1):not(#rc2) .rank-ceremony__sigil { width: min(190px, 52vw); }
  }
  @media (max-height: 760px) and (min-width: 521px) {
    body:not(#rc1):not(#rc2) .rank-ceremony__sigil { width: 170px; margin-top: 2px; }
    body:not(#rc1):not(#rc2) .rank-ceremony h2 { margin-top: 4px; }
  }
  @media (prefers-reduced-motion: reduce) {
    body:not(#rc1):not(#rc2) .rank-ceremony *, body:not(#rc1):not(#rc2) .rank-ceremony { animation-duration: .01s !important; animation-iteration-count: 1 !important; }
    body:not(#rc1):not(#rc2) .rank-ceremony__sparks, body:not(#rc1):not(#rc2) .rank-ceremony__rays { display: none; }
  }

  /* Wächter-Abzeichen im Welt-Chat: Smaragd statt Blau, mit kleinem Siegel */
  html body.vey-renewal:not(#rc1):not(#rc2) #view .world-chat .wc-badge--mod { display: inline-flex !important; align-items: center; gap: 4px; padding: 2px 8px 2px 3px !important; color: #07140f !important; background: linear-gradient(180deg, #a6f5d6, #3fd6a0) !important; box-shadow: 0 0 10px rgba(63, 214, 160, .45) !important; }
  html body.vey-renewal:not(#rc1):not(#rc2) #view .world-chat .wc-badge--mod::before { content: ""; width: 14px; height: 14px; background: url("./assets/ui/ranks-v1/warden-sigil-icon.webp") center / contain no-repeat; filter: drop-shadow(0 0 2px rgba(0, 0, 0, .5)); }
  html body.vey-renewal:not(#rc1):not(#rc2) #view .world-chat .wc-message:has(.wc-badge--mod) { border-color: rgba(63, 214, 160, .38) !important; background: linear-gradient(90deg, rgba(63, 214, 160, .1), rgba(63, 214, 160, .02) 40%, transparent) !important; box-shadow: 0 0 14px rgba(63, 214, 160, .12) !important; }
  /* Discord-Link im Welt-Chat-Kopf (Discord-Blurple, klein und ruhig) */
  html body.vey-renewal:not(#rc1):not(#rc2) #view .world-chat .wc-head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-start; margin-top: 6px; }
  html body.vey-renewal:not(#rc1):not(#rc2) #view .world-chat .wc-discord { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 9px; font: 800 11px/1 var(--pv-font, Manrope, sans-serif); letter-spacing: .12em; color: #fff; text-decoration: none; background: linear-gradient(180deg, #6d78f7, #4752c4); border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 4px 14px rgba(88, 101, 242, .3); }
  html body.vey-renewal:not(#rc1):not(#rc2) #view .world-chat .wc-discord:hover { filter: brightness(1.12); }
  /* Handy: Chat-Verlauf etwas kürzer, damit Eingabe + SEND über der Menüleiste bleiben (vorher lag SEND darunter) */
  @media (max-width: 760px) {
    html body.vey-renewal:not(#rc1):not(#rc2) #view .world-chat-page .wc-log { height: max(170px, calc(42svh - 150px)) !important; }
    html body.vey-renewal:not(#rc1):not(#rc2) #view .world-chat .wc-head-actions { margin-top: 4px; }
  }
  html body.vey-renewal:not(#rc1):not(#rc2) .world-chronicle__item.is-rank i { color: #3fd6a0; text-shadow: 0 0 8px rgba(63, 214, 160, .7); }
}

@keyframes rc-fade { from { opacity: 0; } }
@keyframes rc-flash { 0% { opacity: 0; } 18% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rc-spin { to { transform: rotate(360deg); } }
@keyframes rc-rise { 0% { transform: translateY(0) scale(.6); opacity: 0; } 12% { opacity: .9; } 100% { transform: translateY(-105vh) scale(1.1); opacity: 0; } }
@keyframes rc-card { from { opacity: 0; transform: translateY(26px) scale(.94); } }
@keyframes rc-sigil { 0% { opacity: 0; transform: scale(.35) rotate(-14deg); filter: brightness(3) drop-shadow(0 0 40px #3fd6a0); } 70% { opacity: 1; transform: scale(1.06) rotate(2deg); } }
@keyframes rc-float { 50% { transform: translateY(-6px); } }
@keyframes rc-pulse { 50% { transform: scale(1.08); opacity: .7; } }
@keyframes rc-up { from { opacity: 0; transform: translateY(10px); } }
@keyframes rc-sworn { 40% { transform: scale(1.03); filter: brightness(1.35); } 100% { opacity: 0; transform: scale(.96) translateY(-12px); } }
