/* ROAR VIEW BACKGROUND ISOLATED 01
   Isolierte Datei, absichtlich nach license-screen.css und aim-arena-screen.css geladen.
   Grund: license-screen.css enthält historisch verschachtelte/kaputte Override-Bereiche.
*/

#roar-view-background-layer {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 0 !important;
  display: block !important;
  pointer-events: none !important;
  background-color: #000 !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  background-position: center top !important;
  opacity: 0 !important;
}

#app-shell {
  position: relative !important;
  z-index: 1 !important;
}

/* Intro bleibt beim bestehenden welcome.jpg-Intro-Layer. */
body[data-app-view="intro_blackout"] #roar-view-background-layer,
body[data-app-view="intro_reveal"] #roar-view-background-layer,
body[data-app-view="intro_hold"] #roar-view-background-layer,
body[data-app-view="intro_ready"] #roar-view-background-layer,
body[data-app-view="name_entry"] #roar-view-background-layer {
  opacity: 0 !important;
  background-image: none !important;
}

/* Lizenz */
body[data-app-view="license"] #roar-view-background-layer {
  opacity: 1 !important;
  background-image: url("../assets/lizenz.jpg") !important;
}

/* AIM */
body[data-app-view="aim_arena"] #roar-view-background-layer {
  opacity: 1 !important;
  background-image: url("../assets/aim_test.jpg") !important;
}

/* Danke / Completion */
body[data-app-view="completion"] #roar-view-background-layer {
  opacity: 1 !important;
  background-image: url("../assets/danke.jpg") !important;
}

/* Globale Overlays aus, damit der echte Layer nicht abgedunkelt wird. */
body[data-app-view="license"]::before,
body[data-app-view="license"]::after,
body[data-app-view="completion"]::before,
body[data-app-view="completion"]::after {
  opacity: 0 !important;
  background: none !important;
  background-image: none !important;
}

/* App-Flächen dürfen den View-Background nicht übermalen. */
body[data-app-view="license"] #license-app,
body[data-app-view="license"] #license-app.page,
body[data-app-view="completion"] #license-app,
body[data-app-view="completion"] #license-app.page,
body[data-app-view="aim_arena"] #aim-arena-app {
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
}

/* Page-Pseudolayer aus. */
body[data-app-view="license"] #license-app::before,
body[data-app-view="license"] #license-app::after,
body[data-app-view="license"] .page::before,
body[data-app-view="license"] .page::after,
body[data-app-view="completion"] #license-app::before,
body[data-app-view="completion"] #license-app::after,
body[data-app-view="completion"] .page::before,
body[data-app-view="completion"] .page::after {
  opacity: 0 !important;
  background: none !important;
  background-image: none !important;
}

/* Nur echte Karten leicht abdunkeln. */
body[data-app-view="license"] .hero,
body[data-app-view="license"] #main-stage > .inner-card,
body[data-app-view="completion"] #completion-panel {
  background: rgba(3, 4, 7, 0.42) !important;
  background-image: none !important;
  backdrop-filter: blur(1px) !important;
}

body[data-app-view="license"] #main-stage {
  background: transparent !important;
  background-image: none !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

body[data-app-view="license"] #main-stage > .inner-card::before {
  opacity: 0 !important;
  background: none !important;
  background-image: none !important;
}

/* ROAR LICENSE OUTER FRAME GLASS VISIBLE 01
   Sichtbarer Outer-Frame-Overlay im zuletzt geladenen Background-CSS.
*/
body[data-app-view="license"] #license-app.page {
  background: rgba(0, 0, 0, 0.34) !important;
  background-image: none !important;
  background-color: rgba(0, 0, 0, 0.34) !important;
  backdrop-filter: blur(1.5px) !important;
  -webkit-backdrop-filter: blur(1.5px) !important;
}

body[data-app-view="license"] #license-app.page::before,
body[data-app-view="license"] #license-app.page::after,
body[data-app-view="license"] #license-app::before,
body[data-app-view="license"] #license-app::after {
  opacity: 0 !important;
  background: none !important;
  background-image: none !important;
}

/* ROAR LICENSE OUTER FRAME GLASS STRONG 01
   Nur der große äußere Lizenzkasten bekommt eine deutlich stärkere
   schwarze transparente Blende.
*/
body[data-app-view="license"] #license-app.page {
  background: rgba(0, 0, 0, 0.62) !important;
  background-image: none !important;
  background-color: rgba(0, 0, 0, 0.62) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
}

body[data-app-view="license"] #license-app.page::before,
body[data-app-view="license"] #license-app.page::after,
body[data-app-view="license"] #license-app::before,
body[data-app-view="license"] #license-app::after {
  opacity: 0 !important;
  background: none !important;
  background-image: none !important;
}

/* ROAR LICENSE QUESTION PROMPT FOCUS FINAL 01
   Sichtbarer Fokus nur für den eigentlichen Fragetext.
   Liegt in roar-view-background.css, weil diese Datei zuletzt lädt und gewinnt.
*/
body[data-app-view="license"] #license-app #question-prompt {
  display: block !important;
  margin: 14px 0 18px !important;
  padding: 18px 20px 18px 22px !important;
  border-left: 5px solid rgba(255, 112, 32, 0.96) !important;
  border-radius: 16px !important;
  background: rgba(0, 0, 0, 0.58) !important;
  background-image:
    linear-gradient(90deg, rgba(255, 112, 32, 0.16), rgba(0, 0, 0, 0) 42%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 14px 28px rgba(0, 0, 0, 0.30) !important;
  color: #fff4d1 !important;
  font-size: clamp(1.25rem, 2vw, 1.62rem) !important;
  font-weight: 850 !important;
  line-height: 1.34 !important;
  letter-spacing: 0.01em !important;
}

/* ROAR LICENSE FEEDBACK RESULT FADE 01
   Dezente Ergebnis-Färbung für Feedback.
   Keine harte Vollfläche, nur Akzentkante + Fade.
*/
body[data-app-view="license"] #license-app #feedback-panel.feedback-panel.is-good {
  border-left: 5px solid rgba(92, 255, 145, 0.92) !important;
  background:
    linear-gradient(90deg, rgba(92, 255, 145, 0.20), rgba(0, 0, 0, 0) 42%),
    rgba(0, 0, 0, 0.50) !important;
  box-shadow:
    inset 0 0 0 1px rgba(92, 255, 145, 0.16),
    0 14px 28px rgba(0, 0, 0, 0.30) !important;
}

body[data-app-view="license"] #license-app #feedback-panel.feedback-panel.is-bad {
  border-left: 5px solid rgba(255, 82, 82, 0.92) !important;
  background:
    linear-gradient(90deg, rgba(255, 82, 82, 0.20), rgba(0, 0, 0, 0) 42%),
    rgba(0, 0, 0, 0.50) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 82, 82, 0.16),
    0 14px 28px rgba(0, 0, 0, 0.30) !important;
}

body[data-app-view="license"] #license-app #feedback-panel #feedback-badge {
  color: rgba(59, 232, 218, 0.92) !important;
}

body[data-app-view="license"] #license-app #feedback-panel.is-good #feedback-title {
  color: #d8ffe6 !important;
}

body[data-app-view="license"] #license-app #feedback-panel.is-bad #feedback-title {
  color: #ffd4d4 !important;
}

/* ROAR COMPLETION PROFILE LINK FINAL UI 01
   Finales Profil-Link-Fenster als sauberer Abschluss-Schritt.
   Keine Flow-Logik, nur Completion-Panel-Optik.
*/
body[data-app-view="completion"] #completion-panel.completion-panel {
  width: min(760px, 100%) !important;
  justify-self: center !important;
  gap: 18px !important;
  padding: 26px 28px 28px !important;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 112, 32, 0.28) !important;
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.92), rgba(1, 2, 4, 0.96)),
    linear-gradient(90deg, rgba(255, 112, 32, 0.10), rgba(0, 0, 0, 0) 42%) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 22px 44px rgba(0, 0, 0, 0.38) !important;
  backdrop-filter: blur(2px) !important;
}

body[data-app-view="completion"] #completion-panel .completion-visual {
  display: none !important;
}

body[data-app-view="completion"] #completion-kicker {
  color: rgba(59, 232, 218, 0.88) !important;
  letter-spacing: 0.18em !important;
}

body[data-app-view="completion"] #completion-title {
  margin: 0 !important;
  color: #fff4d1 !important;
  font-size: clamp(2rem, 3vw, 2.65rem) !important;
  line-height: 1.05 !important;
}

body[data-app-view="completion"] #completion-body {
  max-width: 54ch !important;
  margin: 0 !important;
  color: rgba(230, 238, 238, 0.78) !important;
  font-size: 1rem !important;
  line-height: 1.5 !important;
}

body[data-app-view="completion"] #completion-note-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-top: 2px !important;
}

body[data-app-view="completion"] #completion-note-list .completion-note {
  display: grid !important;
  gap: 5px !important;
  min-height: 74px !important;
  padding: 13px 14px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(59, 232, 218, 0.16) !important;
  background:
    linear-gradient(90deg, rgba(59, 232, 218, 0.10), rgba(0, 0, 0, 0) 48%),
    rgba(0, 0, 0, 0.34) !important;
  box-shadow:
    inset 4px 0 0 rgba(59, 232, 218, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025) !important;
}

body[data-app-view="completion"] .completion-note-label {
  color: rgba(59, 232, 218, 0.78) !important;
  font-size: 0.68rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
}

body[data-app-view="completion"] .completion-note-value {
  color: #fff4d1 !important;
  font-size: 1rem !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
}

body[data-app-view="completion"] #completion-form {
  display: grid !important;
  gap: 12px !important;
  margin-top: 4px !important;
  padding: 18px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(255, 112, 32, 0.22) !important;
  background:
    linear-gradient(90deg, rgba(255, 112, 32, 0.12), rgba(0, 0, 0, 0) 42%),
    rgba(0, 0, 0, 0.40) !important;
}

body[data-app-view="completion"] .completion-field-label {
  color: rgba(255, 244, 209, 0.84) !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.16em !important;
}

body[data-app-view="completion"] #profile-link-input.completion-input {
  width: 100% !important;
  min-height: 58px !important;
  padding: 0 16px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(59, 232, 218, 0.28) !important;
  background: rgba(0, 0, 0, 0.55) !important;
  color: #fff4d1 !important;
  font-size: 1rem !important;
  font-weight: 750 !important;
  box-shadow:
    inset 4px 0 0 rgba(59, 232, 218, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03) !important;
}

body[data-app-view="completion"] #profile-link-input.completion-input:focus-visible {
  outline: 2px solid rgba(255, 112, 32, 0.72) !important;
  outline-offset: 3px !important;
  border-color: rgba(255, 112, 32, 0.72) !important;
}

body[data-app-view="completion"] .completion-actions {
  display: grid !important;
  justify-content: stretch !important;
}

body[data-app-view="completion"] #completion-submit.primary {
  width: 100% !important;
  min-height: 58px !important;
  border-radius: 15px !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.12em !important;
}
