:root {
  --bg: #030712;
  --bg2: #061323;
  --panel: rgba(8, 18, 32, 0.82);
  --panel-solid: #081320;
  --panel-soft: rgba(11, 27, 46, 0.72);
  --line: rgba(125, 210, 255, 0.18);
  --line-strong: rgba(125, 210, 255, 0.35);
  --cyan: #72dcff;
  --cyan-soft: rgba(114, 220, 255, 0.18);
  --gold: #eac56b;
  --gold-soft: rgba(234, 197, 107, 0.17);
  --green: #83f0b4;
  --red: #ff7e8a;
  --text: #eef7ff;
  --muted: #9bb5cb;
  --muted2: #6e879c;
  --shadow: 0 22px 90px rgba(0, 0, 0, 0.46);
  --radius: 20px;
  --radius-sm: 13px;
  --nav: 282px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 20%, rgba(73, 188, 255, 0.20), transparent 32%),
    radial-gradient(circle at 78% 10%, rgba(234, 197, 107, 0.13), transparent 30%),
    radial-gradient(circle at 65% 82%, rgba(35, 124, 176, 0.15), transparent 36%),
    linear-gradient(135deg, #02050d 0%, #051427 44%, #020711 100%);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.027) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
}
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.55; }
a { color: inherit; }
.hidden { display: none !important; }

.boot-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px;
}
.boot-card {
  width: min(620px, 92vw);
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(9, 24, 42, .92), rgba(4, 10, 20, .88));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.brand-mark {
  width: 74px;
  height: 74px;
  border-radius: 23px;
  display: grid;
  place-items: center;
  color: var(--gold);
  letter-spacing: 0.16em;
  font-weight: 900;
  border: 1px solid rgba(234,197,107,.45);
  background: linear-gradient(145deg, rgba(234,197,107,.16), rgba(114,220,255,.09));
  box-shadow: inset 0 0 24px rgba(234,197,107,.09), 0 0 42px rgba(114,220,255,.11);
}
.boot-card h1 { margin: 0 0 6px; font-size: 32px; letter-spacing: 0.13em; text-transform: uppercase; }
.boot-card p { margin: 0; color: var(--muted); }

.auth-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(470px, 0.95fr) minmax(620px, 1.25fr);
  gap: 28px;
  padding: 42px;
}
.auth-hero, .auth-panel, .intro-panel, .panel, .resource-tile, .stat-card, .nav-wrap, .locked-panel {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(10, 24, 42, .86), rgba(4, 10, 20, .74));
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  backdrop-filter: blur(18px);
}
.auth-hero {
  position: relative;
  min-height: calc(100vh - 84px);
  overflow: hidden;
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-hero::before, .intro-visual::before, .hero-visual::before, .image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2,8,15,.06), rgba(2,8,15,.92)),
    var(--asset),
    radial-gradient(circle at 55% 42%, rgba(114,220,255,.21), transparent 32%),
    linear-gradient(145deg, #071a2d, #050814 72%);
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.03);
  z-index: -2;
}
.auth-hero::after, .intro-visual::after, .hero-visual::after, .image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(3,7,18,.74), transparent 56%), radial-gradient(circle at 24% 22%, rgba(234,197,107,.14), transparent 30%);
}
.auth-eyebrow, .eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 12px;
  font-weight: 800;
}
.auth-hero h1 { margin: 18px 0 16px; font-size: clamp(44px, 5vw, 82px); line-height: .91; letter-spacing: .05em; text-transform: uppercase; }
.auth-hero p { color: #c8d9e8; font-size: 17px; line-height: 1.65; max-width: 650px; }
.auth-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.badge, .status-pill, .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(114, 220, 255, .22);
  background: rgba(6, 18, 31, .72);
  color: #d6efff;
  font-size: 12px;
  letter-spacing: .03em;
}
.status-pill.good { border-color: rgba(131,240,180,.35); color: var(--green); background: rgba(65,160,105,.10); }
.status-pill.warn { border-color: rgba(234,197,107,.4); color: var(--gold); background: rgba(234,197,107,.10); }
.status-pill.danger { border-color: rgba(255,126,138,.35); color: var(--red); background: rgba(255,126,138,.10); }

.auth-panel {
  align-self: center;
  padding: 30px;
  min-height: 590px;
}
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 7px; border: 1px solid var(--line); border-radius: 17px; background: rgba(0,0,0,.18); }
.tab-btn {
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  padding: 12px 15px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: 12px;
}
.tab-btn.active { color: #06111d; background: linear-gradient(135deg, var(--gold), #fff0a9); box-shadow: 0 0 34px rgba(234,197,107,.2); }
.form-title { margin: 26px 0 8px; font-size: 28px; }
.form-copy { margin: 0 0 22px; color: var(--muted); line-height: 1.55; }
.field { display: grid; gap: 8px; margin: 15px 0; }
.field span { color: #c4d5e5; font-size: 13px; font-weight: 700; }
.input, input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  border: 1px solid rgba(114,220,255,.20);
  border-radius: 14px;
  background: rgba(2, 10, 20, .66);
  color: var(--text);
  padding: 14px 15px;
  outline: none;
}
.input:focus, input:focus { border-color: rgba(114,220,255,.52); box-shadow: 0 0 0 4px rgba(114,220,255,.09); }
.form-actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.btn {
  border: 1px solid rgba(114,220,255,.25);
  border-radius: 14px;
  padding: 12px 16px;
  color: var(--text);
  background: rgba(11, 31, 52, .75);
  font-weight: 850;
  letter-spacing: .03em;
  box-shadow: inset 0 0 22px rgba(114,220,255,.04);
}
.btn:hover:not(:disabled) { border-color: rgba(114,220,255,.48); transform: translateY(-1px); }
.btn.primary { color: #07101a; background: linear-gradient(135deg, #f0ce75, #ffe8a3); border-color: rgba(255,238,178,.55); box-shadow: 0 12px 35px rgba(234,197,107,.13); }
.btn.cyan { color: #03121d; background: linear-gradient(135deg, #72dcff, #b9f2ff); }
.btn.ghost { background: transparent; }
.btn.small { padding: 8px 11px; border-radius: 11px; font-size: 12px; }
.btn.wide { width: 100%; justify-content: center; }
.error-box, .notice-box {
  border-radius: 13px;
  padding: 12px 14px;
  margin-top: 16px;
  line-height: 1.45;
}
.error-box { background: rgba(255,126,138,.12); border: 1px solid rgba(255,126,138,.28); color: #ffc4ca; }
.notice-box { background: rgba(114,220,255,.09); border: 1px solid rgba(114,220,255,.22); color: #cfefff; }

.intro-screen { min-height: 100vh; padding: 34px; display: grid; place-items: center; }
.intro-panel { width: min(1260px, calc(100vw - 68px)); min-height: 730px; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; }
.intro-visual { position: relative; min-height: 730px; padding: 36px; display: flex; flex-direction: column; justify-content: space-between; }
.intro-visual h1 { font-size: clamp(36px, 4vw, 72px); line-height: .95; margin: 12px 0 0; letter-spacing: .05em; text-transform: uppercase; }
.intro-progress { display: flex; gap: 8px; }
.intro-dot { width: 45px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.18); overflow: hidden; }
.intro-dot.active { background: linear-gradient(90deg, var(--gold), var(--cyan)); }
.intro-content { padding: 38px; display: flex; flex-direction: column; justify-content: center; }
.intro-content h2 { margin: 0 0 14px; font-size: 32px; }
.intro-content p { color: var(--muted); line-height: 1.65; font-size: 16px; }
.choice-grid { display: grid; gap: 12px; margin: 18px 0; }
.choice {
  text-align: left;
  border: 1px solid rgba(114,220,255,.18);
  border-radius: 15px;
  background: rgba(4,15,29,.55);
  color: var(--text);
  padding: 14px;
}
.choice strong { display: block; margin-bottom: 5px; color: #fff4c7; }
.choice small { color: var(--muted); line-height: 1.4; }
.choice.active { border-color: rgba(234,197,107,.55); background: rgba(234,197,107,.12); }

.game-shell { min-height: 100vh; display: grid; grid-template-columns: var(--nav) 1fr; }
.nav-wrap {
  position: sticky;
  top: 0;
  height: 100vh;
  border-radius: 0;
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  padding: 20px 16px;
  background: linear-gradient(180deg, rgba(6,16,30,.95), rgba(3,8,16,.92));
  box-shadow: 18px 0 80px rgba(0,0,0,.26);
}
.nav-brand { display: flex; gap: 12px; align-items: center; padding: 8px 8px 24px; border-bottom: 1px solid var(--line); }
.nav-brand .brand-mark { width: 48px; height: 48px; border-radius: 16px; font-size: 13px; }
.nav-brand h2 { margin: 0; letter-spacing: .12em; text-transform: uppercase; font-size: 19px; }
.nav-brand small { color: var(--muted); }
.nav-section { margin: 24px 0 0; }
.nav-title { color: var(--gold); font-size: 11px; letter-spacing: .19em; text-transform: uppercase; padding: 0 10px 9px; }
.nav-btn {
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: #c7d8e6;
  margin: 5px 0;
  padding: 11px 12px;
  text-align: left;
}
.nav-btn span { display: flex; align-items: center; gap: 10px; }
.nav-btn small { color: var(--muted2); }
.nav-btn:hover { background: rgba(114,220,255,.07); border-color: rgba(114,220,255,.12); }
.nav-btn.active { color: #ffffff; background: linear-gradient(90deg, rgba(114,220,255,.17), rgba(234,197,107,.09)); border-color: rgba(114,220,255,.25); }
.nav-footer { position: absolute; left: 16px; right: 16px; bottom: 18px; display: grid; gap: 8px; }

.main-wrap { min-width: 980px; padding: 24px 30px 34px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.top-title h1 { margin: 0 0 5px; font-size: 30px; letter-spacing: .03em; }
.top-title p { margin: 0; color: var(--muted); }
.resource-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.resource-tile { min-width: 116px; border-radius: 14px; padding: 9px 12px; box-shadow: none; }
.resource-tile small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.resource-tile strong { font-size: 18px; }
.content-grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1.2fr .8fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.panel { padding: 20px; }
.panel h2, .panel h3 { margin-top: 0; }
.panel p { color: var(--muted); line-height: 1.58; }
.hero-visual { position: relative; min-height: 320px; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; }
.hero-visual h2 { font-size: 38px; margin: 6px 0; }
.hero-visual p { max-width: 750px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat-card { padding: 16px; border-radius: 16px; box-shadow: none; }
.stat-card small { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.stat-card strong { display: block; margin-top: 8px; font-size: 24px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  min-height: 130px;
  border: 1px solid rgba(114,220,255,.17);
  border-radius: 18px;
  background: rgba(6,18,31,.62);
  overflow: hidden;
}
.card-body { padding: 15px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.image-card { position: relative; min-height: 148px; border-bottom: 1px solid rgba(114,220,255,.12); overflow: hidden; }
.image-card.compact { min-height: 112px; }
.kv { display: grid; gap: 8px; }
.kv-row { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid rgba(255,255,255,.055); padding: 8px 0; color: var(--muted); }
.kv-row strong { color: var(--text); text-align: right; }
.timer-line { margin: 13px 0; }
.progress { height: 9px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--cyan), var(--gold)); }
.salvage-actions { padding: 0 15px 15px; }
.locked-panel { padding: 18px; box-shadow: none; opacity: .86; }
.locked-panel h3 { margin: 0 0 8px; }
.locked-panel p { margin: 0; color: var(--muted); }
.toast-wrap { position: fixed; right: 24px; bottom: 24px; display: grid; gap: 10px; z-index: 40; }
.toast { width: min(390px, calc(100vw - 48px)); border: 1px solid rgba(114,220,255,.25); background: rgba(5,14,26,.94); border-radius: 15px; padding: 13px 15px; box-shadow: var(--shadow); color: var(--text); }
.toast.good { border-color: rgba(131,240,180,.42); }
.toast.warn { border-color: rgba(234,197,107,.42); }
.footer-note { margin-top: 18px; color: var(--muted2); font-size: 12px; }

@media (max-width: 1120px) {
  body::after {
    content: "Novaris V2 Alpha ist auf Desktop/Laptop ausgelegt. Bitte ein breiteres Fenster nutzen.";
    position: fixed;
    inset: 0;
    z-index: 99;
    display: grid;
    place-items: center;
    padding: 40px;
    background: #030712;
    color: var(--text);
    text-align: center;
    font-size: 18px;
  }
}
