/*
 * Styles für die Willkommens-/Testphase-Nachricht (welcome-notice.js).
 * Vollständig eigenständig – nutzt nur Tokens aus tokens.css, damit es auch auf
 * Seiten ohne style.css (Landing, Regeln …) wirkt.
 * Alles unter „welcnote-" isoliert, um Kollisionen mit dem restlichen UI zu vermeiden.
 */

.welcnote-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;                 /* über dem Bug-Report-Modal (1000) */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(8, 6, 22, .62);
  backdrop-filter: blur(7px);
  animation: welcnoteFade .22s ease;
}
.welcnote-overlay.welcnote-hidden { display: none; }
@keyframes welcnoteFade { from { opacity: 0; } to { opacity: 1; } }

.welcnote-box {
  --ac: var(--gold);
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 40px 34px 30px;
  border-radius: 18px;
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% -10%, color-mix(in srgb, var(--wizard) 22%, transparent), transparent 60%),
    linear-gradient(165deg, var(--velvet), var(--panel));
  border: 1px solid color-mix(in srgb, var(--ac) 55%, transparent);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, .6),
    0 0 46px color-mix(in srgb, var(--ac) 20%, transparent),
    inset 0 1px 0 color-mix(in srgb, var(--gold-light) 22%, transparent);
  animation: welcnoteRise .34s cubic-bezier(.22, 1, .36, 1);
}
@keyframes welcnoteRise {
  from { opacity: 0; transform: translateY(20px) scale(.965); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Dekorative Sterne-Krone über dem Titel */
.welcnote-crest {
  font-size: 2.1rem;
  line-height: 1;
  margin-bottom: 14px;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--gold) 55%, transparent));
  animation: welcnoteTwinkle 3.2s ease-in-out infinite;
}
@keyframes welcnoteTwinkle {
  0%, 100% { opacity: .85; transform: translateY(0) scale(1); }
  50%      { opacity: 1;   transform: translateY(-2px) scale(1.05); }
}

.welcnote-eyebrow {
  font-family: var(--f-ui), sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 8px;
}

.welcnote-title {
  font-family: var(--f-display), serif;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.2;
  color: var(--gold-light);
  margin: 0 0 16px;
}

.welcnote-body {
  font-family: var(--f-ui), sans-serif;
  font-size: .98rem;
  line-height: 1.62;
  color: var(--text-2);
  margin: 0 0 8px;
}
.welcnote-body strong { color: var(--gold-light); font-weight: 600; }
.welcnote-body + .welcnote-body { margin-top: 12px; }

.welcnote-sign {
  font-family: var(--f-script), serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-3);
  margin: 16px 0 22px;
}

.welcnote-cta {
  min-width: 190px;
  min-height: 48px;
  padding: 12px 30px;
  border-radius: var(--r-pill, 999px);
  cursor: pointer;
  font-family: var(--f-ui), sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1A1030;
  background: linear-gradient(165deg, var(--gold-light), var(--gold));
  border: 1px solid var(--gold);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--gold) 30%, transparent);
  transition: filter .16s ease, transform .16s ease, box-shadow .16s ease;
}
.welcnote-cta:hover  { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 12px 28px color-mix(in srgb, var(--gold) 38%, transparent); }
.welcnote-cta:active { transform: translateY(0); }
.welcnote-cta:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

/* Schließen-X oben rechts */
.welcnote-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-3);
  background: transparent;
  border: 1px solid transparent;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.welcnote-close:hover { color: var(--gold-light); background: rgba(212, 168, 67, .1); border-color: var(--line); }
.welcnote-close:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Am Handy als Sheet von unten (wie das restliche UI) */
@media (max-width: 600px) {
  .welcnote-overlay { align-items: flex-end; padding: 0; }
  .welcnote-box {
    max-width: 100%;
    padding: 34px 24px 26px;
    border-radius: 20px 20px 0 0;
    animation: welcnoteSheet .3s cubic-bezier(.22, 1, .36, 1);
  }
  @keyframes welcnoteSheet { from { transform: translateY(100%); } to { transform: translateY(0); } }
  .welcnote-title { font-size: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  .welcnote-overlay, .welcnote-box, .welcnote-crest { animation: none; }
}
