/* ==========================================================================
                                                                 ARCHIV DES VERGESSENS - AAA UI OVERHAUL (DARK FANTASY GLASSMORPHISM)
   ========================================================================== */

:root {
  /* Farbpalette */
    --bg-dark: #090a0f;
    --bg-panel: rgba(18, 20, 28, 0.65);
    --bg-panel-hover: rgba(28, 31, 42, 0.8);
    --bg-inner: rgba(0, 0, 0, 0.4);
    --color-text-main: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-gold: #d4af37;
    --color-gold-glow: rgba(212, 175, 55, 0.4);
    --color-blue: #6e9fcb;
    --color-blue-glow: rgba(110, 159, 203, 0.4);
    --color-success: #4ade80;
    --color-danger: #f87171;
    --color-danger-glow: rgba(248, 113, 113, 0.4);
    --color-dust: #c4b5fd;
  
    /* Ränder & Schatten */
      --border-glass: 1px solid rgba(255, 255, 255, 0.08);
      --border-glass-light: 1px solid rgba(255, 255, 255, 0.15);
      --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
      --shadow-glow: 0 0 15px var(--color-gold-glow);
  
    /* Typografie */
      --font-header: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
/* Layout */
  --border-radius: 12px;
  --border-radius-sm: 6px;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASICS --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

html,
body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}

/* --- TYPOGRAFIE --- */
h1,
h2,
h3,
.cinzel {
  font-family: var(--font-header);
  letter-spacing: 1px;
  font-weight: 700;
}

.glow-text {
  background: linear-gradient(to bottom, #fff, var(--color-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px var(--color-gold-glow);
}

.text-gold {
  color: var(--color-gold);
  font-weight: 600;
  text-shadow: 0 0 8px var(--color-gold-glow);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-success {
  color: var(--color-success);
}

.text-danger {
  color: var(--color-danger);
}

.text-dust {
  color: var(--color-dust);
  text-shadow: 0 0 8px rgba(196, 181, 253, 0.4);
}

.text-highlight {
  color: var(--color-blue);
  text-shadow: 0 0 8px var(--color-blue-glow);
}

.text-sm {
  font-size: 0.85rem;
}

.text-lg {
  font-size: 1.25rem;
}

.text-bold {
  font-weight: 600;
}

.text-center {
  text-align: center;
}

/* --- CANVAS & VIGNETTE --- */
.fullscreen-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
    height: 100%;
}

.vignette-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
    height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.8) 100%);
    z-index: -1;
}

#app-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
    z-index: 1;
}

/* --- GLASSMORPHISM PANELS --- */
.glass-panel {
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: var(--border-glass);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-glass);
}

.glass-inner-panel {
  background: var(--bg-inner);
  border: var(--border-glass);
  border-radius: var(--border-radius-sm);
  padding: 1rem;
}

/* --- BUTTONS --- */
button {
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
  color: var(--color-text-main);
}

button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(100%);
}

.glass-btn {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.2) 100%);
    border: var(--border-glass);
    border-radius: var(--border-radius-sm);
    padding: 0.6rem 1.2rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.glass-btn:not(:disabled):hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.glass-btn:not(:disabled):active {
  transform: translateY(0);
}

.primary {
  border-color: var(--color-gold);
  color: var(--color-gold);
  box-shadow: 0 0 10px var(--color-gold-glow) inset;
}

.primary:not(:disabled):hover {
  box-shadow: 0 0 20px var(--color-gold-glow) inset, 0 4px 15px var(--color-gold-glow);
  color: #fff;
}

.btn-danger {
  border-color: var(--color-danger);
  color: var(--color-danger);
}

.btn-small {
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}

/* --- ANIMATIONEN --- */
@keyframes fadeUpIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeUpIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes epicPulse {
  0% {
    box-shadow: 0 0 0 0 var(--color-gold-glow);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

.epic-pulse {
  animation: epicPulse 2s infinite;
}

/* --- LAYOUTS --- */
.center-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-row {
  display: flex;
  align-items: center;
}

.gap-sm {
  gap: 0.5rem;
}

.gap-md {
  gap: 1rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.w-100 {
  width: 100%;
}

/* --- MAIN MENU / HUB --- */
#menu-container h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  text-align: center;
}

.subtitle {
  font-family: var(--font-body);
  font-size: 1.2rem;
    color: var(--color-gold);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 3rem;
}

.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 300px;
}

.menu-btn {
  width: 100%;
  font-size: 1.1rem;
  padding: 1rem;
}

.menu-footer {
  position: absolute;
  bottom: 20px;
  color: var(--color-text-muted);
  font-size: 0.8rem;
}

#hub-container h2 {
  font-size: 2.5rem;
    margin-bottom: 0.2rem;
}

.hub-subtitle {
  color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 600px;
    max-width: 90vw;
}

.hub-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
    justify-content: center;
    padding: 1.5rem;
    height: 120px;
}

.hub-btn .icon {
  font-size: 2rem;
    margin-bottom: 0.5rem;
}

.hub-btn .label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
    margin-top: 0.3rem;
}

.span-2 {
  grid-column: span 2;
}

/* --- GAME UI --- */
#game-container {
  padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
  display: flex;
  flex-direction: column;
}

/* HEADER FIX: Sauberes 3-Spalten-Flex-Layout */
#game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  width: 100%;
}

#game-header .header-left,
#game-header .header-right {
  flex: 1;
}

#game-header .header-right {
  display: flex;
  justify-content: flex-end;
}

#game-header .header-center {
  flex: 2;
  text-align: center;
}

#game-header h1 {
  font-size: 2.2rem;
    margin: 0;
}

#game-header .subtitle {
  margin-bottom: 0;
    font-size: 1rem;
    letter-spacing: 3px;
}

/* Resource Bar */
.resource-bar-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
    margin-bottom: 2rem;
}

.resource-group {
  display: flex;
  gap: 2rem;
}

.resource-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
    font-size: 1.2rem;
}

.resource-label {
  color: var(--color-text-muted);
    text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.resource-value {
  font-family: var(--font-header);
    font-size: 1.5rem;
    font-weight: bold;
}

/* Gather Section (Centerpiece) */
.gather-section {
  display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

#manual-gather-btn {
  font-size: 1.5rem;
  padding: 1.5rem 3rem;
  border-radius: 50px;
  background: rgba(212, 175, 55, 0.1);
  border: 2px solid var(--color-gold);
}

#manual-gather-btn:hover {
  background: rgba(212, 175, 55, 0.2);
}

/* Panels Grid (Clan etc.) */
.panels-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
    gap: 2rem;
  flex: 1;
  min-height: 0;
}

.panel-title {
  font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

/* Tables */
.table-container {
  overflow-y: auto;
  max-height: calc(100% - 3rem);
    padding-right: 0.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
    padding: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

td {
  padding: 0.8rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

tr {
  transition: var(--transition-fast);
  cursor: pointer;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.05);
}

/* Progress Bars */
.progress-bar-container {
  background: var(--bg-inner);
    border-radius: 20px;
    height: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar-fill {
  background: linear-gradient(90deg, var(--color-blue), #8fd3f4);
  height: 100%;
  width: 0%;
    transition: transform 0.1s linear, width 0.3s ease;
    box-shadow: 0 0 10px var(--color-blue-glow);
}

.progress-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
    font-weight: bold;
    text-shadow: 1px 1px 2px #000;
}

/* Recruitment */
.recruit-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.recruit-buttons button {
  display: flex;
    justify-content: space-between;
}

/* Footer / Logs */
#game-footer {
  margin-top: 1rem;
    padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
}

.status-indicator {
  display: inline-block;
    width: 8px;
    height: 8px;
  border-radius: 50%;
  margin-right: 5px;
}

.status-running {
  background: var(--color-success);
    box-shadow: 0 0 8px var(--color-success);
}

/* --- MODALS (AAA Overlays) --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-content {
  width: 800px;
  max-width: 95vw;
  max-height: 85vh;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-content-small {
  width: 400px;
  max-width: 95vw;
  padding: 2rem;
  position: relative;
}

.modal-content-wide {
  width: 1000px;
  max-width: 95vw;
  max-height: 85vh;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero-modal-wide {
  width: 900px;
  max-width: 95vw;
  max-height: 85vh;
  padding: 2rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
  border-radius: 50%;
  display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
  padding: 0;
  line-height: 1;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .modal-close:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: var(--color-danger);
    color: var(--color-danger);
}

.modal-title {
  font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

/* Custom Scrollbar */
.modal-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding-right: 1rem;
    margin-right: -1rem;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* --- QUESTS & DAYLIES (Missionen) AAA Styling --- */

/* 1. HUD Tracker Slide-Out */
.quest-tracker-container {
  position: fixed;
  top: 100px;
  right: 20px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.quest-slide-out {
  padding: 1rem 1.5rem;
  width: 280px;
  border-right: 4px solid var(--color-blue);
  background: rgba(18, 20, 28, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: -5px 5px 25px rgba(0, 0, 0, 0.5);
  border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.quest-slide-out .quest-header {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  letter-spacing: 1px;
}

.quest-slide-out .quest-text {
  font-family: var(--font-header);
  font-weight: bold;
  font-size: 1.05rem;
}

.quest-tracker-btn {
  margin-top: 10px;
  border-color: var(--color-blue);
  color: var(--color-blue);
  background: rgba(18, 20, 28, 0.7);
}

/* HUD Tracker "Ready/Abholbereit" Status */
.quest-tracker-btn.quest-ready {
  border-color: var(--color-success);
  color: var(--color-success);
  animation: epicPulse 2s infinite;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.3) inset;
}

.quest-ready .quest-slide-out {
  border-right-color: var(--color-success);
  background: rgba(20, 35, 20, 0.85);
}

/* 2. Quest Cards im Modal-Logbuch */
.quest-card {
  background: var(--bg-inner);
  border: var(--border-glass-light);
  border-radius: var(--border-radius-sm);
  padding: 1.2rem;
  margin-bottom: 1rem;
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quest-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: rgba(255, 255, 255, 0.1);
}

.quest-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

/* Status: Abholbereit */
.quest-card.ready {
  border-color: rgba(74, 222, 128, 0.5);
  background: rgba(74, 222, 128, 0.05);
}

.quest-card.ready::before {
  background: var(--color-success);
  box-shadow: 0 0 10px var(--color-success);
}

/* Status: Gesperrt (Zukünftige) */
.quest-card.locked {
  opacity: 0.6;
  filter: grayscale(80%);
}

.quest-card.locked::before {
  background: transparent;
}

/* Status: Erledigt (Daylies) */
.quest-card.claimed {
  opacity: 0.5;
}

.quest-card.claimed::before {
  background: var(--color-text-muted);
}

.quest-title {
  font-family: var(--font-header);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  letter-spacing: 0.5px;
}

/* Abholen Button in Quests */
.quest-btn {
  padding: 0.5rem 1.2rem;
  border-radius: var(--border-radius-sm);
  font-weight: bold;
  border: 1px solid var(--color-success);
  color: var(--color-success);
  background: rgba(74, 222, 128, 0.1);
  cursor: pointer;
  transition: var(--transition-fast);
}

.quest-btn:hover {
  background: var(--color-success);
  color: #000;
  box-shadow: 0 0 15px var(--color-success);
}

/* --- UI CARDS (Allgemein für Items, Erfolge etc.) --- */
.ui-card {
  background: var(--bg-inner);
    border: var(--border-glass-light);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    margin-bottom: 0.8rem;
    transition: var(--transition-fast);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ui-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.02);
}
.ui-card-title {
  font-family: var(--font-header);
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--color-gold);
}

.ui-card-desc {
  font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0.3rem 0;
}

.ui-card-meta {
  font-size: 0.8rem;
}

/* --- TABS --- */
.tab-container {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.5rem;
}

.inv-tab-btn {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.5rem 1rem;
  color: var(--color-text-muted);
}

.inv-tab-btn.active {
  color: var(--color-gold);
  border-bottom: 2px solid var(--color-gold);
  background: rgba(212, 175, 55, 0.05);
}

/* --- HERO MODAL SPECIFICS --- */
.hero-split-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  height: calc(100% - 60px);
}

.hero-avatar-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-details-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.avatar-container {
  position: relative;
  width: 120px;
  height: 240px;
  margin: 1rem 0;
}

.silhouette-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px var(--color-gold-glow));
}

.equip-node {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
    font-size: 1.2rem;
    background: var(--bg-dark);
    border: 2px solid var(--color-gold);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    z-index: 2;
    cursor: pointer;
}

.equip-node.empty {
  border-color: rgba(255, 255, 255, 0.2);
  filter: grayscale(100%);
}

.stats-grid {
  width: 100%;
  font-size: 0.9rem;
}

.btn-stat-add {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: rgba(212, 175, 55, 0.2);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
    padding-bottom: 2px;
}

.btn-stat-add:hover {
  background: var(--color-gold);
  color: #000;
}

.hero-action-buttons {
  display: flex;
  gap: 1rem;
    margin-bottom: 1rem;
    justify-content: flex-end;
  }
  
  /* Inventory Rows */
  .inv-item-row {
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
  }
  
  .inv-item-row:hover {
    background: rgba(255, 255, 255, 0.02);
  }
  
  .btn-action {
    background: transparent;
    border: 1px solid;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
  }
  
  .btn-equip {
    border-color: var(--color-blue);
    color: var(--color-blue);
}

.btn-equip:hover {
  background: var(--color-blue);
  color: #000;
}

.btn-salvage {
  border-color: var(--color-danger);
  color: var(--color-danger);
}

.btn-salvage:hover {
  background: var(--color-danger);
  color: #000;
}

/* Selects */
.ui-select {
  background: var(--bg-inner);
  color: #fff;
    border: var(--border-glass-light);
    padding: 0.4rem;
    border-radius: 4px;
    outline: none;
}

.bulk-actions-container {
  gap: 1rem;
  margin-bottom: 1rem;
}

/* --- TOOLTIP --- */
.custom-tooltip {
  position: fixed;
  display: none;
  padding: 1rem;
  pointer-events: none;
  z-index: 99999;
  min-width: 200px;
    border-color: var(--color-gold);
}

.tooltip-title {
  font-family: var(--font-header);
  font-weight: bold;
  font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.5rem;
    padding-bottom: 0.2rem;
}

.tooltip-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  font-style: italic;
}

.tooltip-stat {
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
}

/* --- STORY & FORGE --- */
.chapter-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

#story-boss-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.story-boss-entry {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.boss-status.defeated {
  color: var(--color-text-muted);
}

.boss-status.current {
  color: var(--color-danger);
  font-weight: bold;
  text-shadow: 0 0 5px var(--color-danger-glow);
}

.boss-status.pending {
  color: #555;
}

.boss-result-box {
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
  font-weight: bold;
  animation: fadeUpIn 0.3s;
}

.boss-result-victory {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid var(--color-success);
  color: var(--color-success);
}

.boss-result-defeat {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid var(--color-danger);
  color: var(--color-danger);
}

.forge-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  height: calc(100% - 120px);
}

.forge-column {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.options-header,
.options-header-blue {
  font-family: var(--font-header);
  color: var(--color-gold);
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
  margin-bottom: 1rem;
  padding-bottom: 0.3rem;
}

.options-header-blue {
  color: var(--color-blue);
  border-bottom-color: rgba(110, 159, 203, 0.3);
}

/* --- FLOATING TEXT --- */
.float-text {
  position: fixed;
  pointer-events: none;
  z-index: 10000;
  font-weight: bold;
    font-size: 1.2rem;
    color: var(--color-gold);
    text-shadow: 0 0 5px #000, 0 0 10px var(--color-gold);
    animation: floatUpFade 1.2s ease-out forwards;
}

@keyframes floatUpFade {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

                                                                50% {
                                                                  transform: translateY(-30px) scale(1.1);
                                                                }

                                                                100% {
                                                                  opacity: 0;
                                                                  transform: translateY(-50px) scale(1);
                                                                }
}

/* Stat Diffs */
.stat-diff-pos {
  color: var(--color-success);
  margin-left: 5px;
  font-size: 0.85em;
}

.stat-diff-neg {
  color: var(--color-danger);
  margin-left: 5px;
  font-size: 0.85em;
}

/* Misc */
.text-italic {
  font-style: italic;
}

.text-disabled {
  color: #555;
}

/* ==========================================================================
   TUTORIAL & INTRO AAA STYLING
   ========================================================================== */

#tutorial-dialog {
  position: absolute;
  background: var(--bg-panel-hover);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-gold);
  border-radius: var(--border-radius);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.9), 0 0 25px var(--color-gold-glow);
  padding: 2rem;
  width: 400px;
  max-width: 90vw;
  color: var(--color-text-main);
  z-index: 100000;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: center;
}

.tutorial-highlight {
  position: absolute;
  border: 2px solid var(--color-gold);
  border-radius: var(--border-radius-sm);
  box-shadow: 0 0 15px var(--color-gold), inset 0 0 15px var(--color-gold-glow);
  transition: all 0.4s ease;
  z-index: 99998;
  pointer-events: none;
  /* Wichtig, lässt Klicks zum Game durch */
  animation: epicPulse 2s infinite;
}
.tutorial-btn {
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.2) 0%, rgba(0, 0, 0, 0.5) 100%);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  pointer-events: auto;
  /* Buttons im Tutorial sind klickbar */
}
.tutorial-btn:hover {
  background: var(--color-gold);
  color: #000;
  box-shadow: 0 0 15px var(--color-gold-glow);
}
/* ==========================================================================
   KAMPFANIMATION (SIEG)
   ========================================================================== */
body.boss-defeat-flash::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.8);
  pointer-events: none;
  z-index: 999999;
  animation: whiteFlash 0.6s ease-out forwards;
}
@keyframes whiteFlash {
  0% {
    opacity: 0;
  }
15% {
  opacity: 1;
  }
100% {
  opacity: 0;
  }
}
/* Am Ende von style.css anfügen */

/* --- HILFSKLASSEN & EFFEKTE --- */
.hidden {
  display: none !important;
}

@keyframes screenShake {
  0% {
    transform: translate(0, 0);
  }

  10% {
    transform: translate(-2px, -2px);
  }

  20% {
    transform: translate(2px, 2px);
  }

  30% {
    transform: translate(-2px, 2px);
  }

  40% {
    transform: translate(2px, -2px);
  }

  50% {
    transform: translate(-1px, -1px);
  }

  60% {
    transform: translate(1px, 1px);
  }

  70% {
    transform: translate(-1px, 1px);
  }

  80% {
    transform: translate(1px, -1px);
  }

  90% {
    transform: translate(-1px, -1px);
  }

  100% {
    transform: translate(0, 0);
  }
}

.screen-shake {
  animation: screenShake 0.4s ease-in-out;
}

/* Bereinigte Float-Animation */
@keyframes floatUpFade {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-30px) scale(1.1);
  }

  100% {
    opacity: 0;
    transform: translateY(-50px) scale(1);
  }
}