/* ==========================================================================
   SYSTEM — Design Tokens
   ========================================================================== */
:root {
  /* base palette */
  --bg-0: #03060b;
  --bg-1: #06090f;
  --bg-2: #0a1018;
  --bg-3: #0f1722;
  --bg-4: #141d2b;
  --bg-panel: rgba(13, 21, 33, 0.78);
  --bg-panel-strong: rgba(10, 18, 30, 0.92);

  /* lines */
  --line-1: rgba(120, 200, 230, 0.10);
  --line-2: rgba(120, 200, 230, 0.18);
  --line-3: rgba(120, 200, 230, 0.30);

  /* text */
  --text-0: #e6f1f7;
  --text-1: #b9c8d6;
  --text-2: #8497ab;
  --text-3: #5a6b7e;
  --text-mute: #3f4d5e;

  /* accents */
  --accent: #22d3ee;
  --accent-soft: #67e8f9;
  --accent-deep: #0891a8;
  --accent-glow: rgba(34, 211, 238, 0.55);
  --accent-glow-soft: rgba(34, 211, 238, 0.18);
  --accent-bg: rgba(34, 211, 238, 0.07);

  /* state */
  --warn: #ff5f6d;
  --warn-deep: #c0303e;
  --warn-glow: rgba(255, 95, 109, 0.45);
  --warn-bg: rgba(255, 95, 109, 0.08);

  --gold: #ffd479;
  --gold-deep: #b88a32;
  --gold-glow: rgba(255, 212, 121, 0.55);

  --ok: #6df5c8;
  --ok-deep: #2d9c79;

  /* type */
  --font-display: 'Rajdhani', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* layout */
  --nav-h: 68px;
  --header-h: 60px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);

  /* radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  /* shadows */
  --glow-cyan: 0 0 24px rgba(34, 211, 238, 0.20);
  --glow-cyan-strong: 0 0 38px rgba(34, 211, 238, 0.45);
  --glow-warn: 0 0 24px rgba(255, 95, 109, 0.30);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-1);
  color: var(--text-0);
  font-size: 15px;
  line-height: 1.4;
  overflow-x: hidden;
  letter-spacing: 0.005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 700px at 50% -10%, rgba(34,211,238,0.07), transparent 60%),
    radial-gradient(900px 500px at 90% 110%, rgba(34,211,238,0.04), transparent 60%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  z-index: -2;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: -1;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.7), transparent 80%);
}

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; background: none; border: none; outline: none; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--accent-glow); color: var(--bg-0); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ==========================================================================
   Boot
   ========================================================================== */
#boot {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-1);
  z-index: 100;
  transition: opacity 600ms ease, visibility 600ms;
}
#boot.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-frame { text-align: center; }
.boot-line {
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: 18px;
  color: var(--accent);
  text-shadow: 0 0 24px var(--accent-glow);
  margin-bottom: 8px;
}
.boot-sub {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 6px;
  color: var(--text-2);
  text-transform: uppercase;
  margin-bottom: 24px;
}
.boot-bar {
  width: 220px; height: 2px;
  background: var(--line-2);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.boot-bar-fill {
  position: absolute; left: 0; top: 0; height: 100%; width: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: bootSlide 1.2s ease-in-out infinite;
}
@keyframes bootSlide {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* ==========================================================================
   App Shell
   ========================================================================== */
.app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; flex-direction: column;
  padding-top: var(--safe-top);
}

.app-header {
  position: sticky; top: 0;
  height: calc(var(--header-h) + var(--safe-top));
  padding: var(--safe-top) 18px 0 18px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, var(--bg-1) 60%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-1);
  z-index: 30;
}
.app-header .crest {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  letter-spacing: 6px;
  font-size: 14px;
  color: var(--text-1);
}
.app-header .crest .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: pulse 2.4s ease-in-out infinite;
}
.app-header .right {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-2);
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--accent-glow); }
  50%      { opacity: 0.55; box-shadow: 0 0 4px var(--accent-glow-soft); }
}

.app-main {
  flex: 1;
  padding: 16px 14px calc(var(--nav-h) + var(--safe-bot) + 28px);
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

/* bottom navigation */
.app-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--nav-h) + var(--safe-bot));
  padding-bottom: var(--safe-bot);
  background: rgba(6, 9, 15, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line-2);
  display: flex;
  z-index: 40;
}
.app-nav button {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  position: relative;
  transition: color 200ms ease;
}
.app-nav button .ico {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.app-nav button .ico svg { width: 20px; height: 20px; opacity: 0.85; transition: opacity 180ms ease; }
.app-nav button.active .ico svg { opacity: 1; filter: drop-shadow(0 0 6px var(--accent-glow)); }
.app-nav button.active {
  color: var(--accent);
}
.app-nav button.active::before {
  content: '';
  position: absolute; top: 0; left: 50%;
  width: 30px; height: 2px;
  transform: translateX(-50%);
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}

/* ==========================================================================
   Panels & Cards
   ========================================================================== */
.panel {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.panel::before, .panel::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--accent);
  opacity: 0.55;
  pointer-events: none;
}
.panel::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.panel::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.panel.flat::before, .panel.flat::after { display: none; }

.panel + .panel { margin-top: 14px; }

.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.panel-title {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--text-2);
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.panel-title .marker {
  width: 6px; height: 6px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.panel-meta {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--text-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--text-1);
  margin: 28px 4px 12px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--accent);
}

/* ==========================================================================
   Hero / Status
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 24px;
}
.hero .bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(400px 200px at 80% -20%, var(--accent-glow-soft), transparent 70%),
    radial-gradient(300px 160px at 0% 110%, rgba(34,211,238,0.10), transparent 70%);
  pointer-events: none;
}
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.hero-id { display: flex; flex-direction: column; gap: 4px; }
.hero-id .label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--text-3);
  text-transform: uppercase;
}
.hero-id .name {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 4px;
  color: var(--text-0);
  text-transform: uppercase;
}
.hero-id .title {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 2px;
  text-shadow: 0 0 14px rgba(255, 212, 121, 0.35);
}
.hero-id .title.empty { color: var(--text-3); text-shadow: none; }

.hero-rank {
  display: flex; flex-direction: column; align-items: flex-end;
}
.hero-rank .rank-label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--text-3);
  text-transform: uppercase;
}
.hero-rank .rank-value {
  font-family: var(--font-display);
  font-size: 38px;
  letter-spacing: 4px;
  color: var(--accent);
  text-shadow: 0 0 18px var(--accent-glow);
  line-height: 1;
}

.hero-level {
  margin-top: 18px;
  display: flex; align-items: center; gap: 14px;
}
.hero-level .lv {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-2);
}
.hero-level .lv b {
  font-size: 22px;
  color: var(--accent);
  margin-left: 4px;
  text-shadow: 0 0 10px var(--accent-glow);
}
.hero-level .ep-num {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-2);
}

.ep-bar {
  position: relative;
  height: 8px;
  background: rgba(8, 14, 22, 0.9);
  border: 1px solid var(--line-2);
  overflow: hidden;
  margin-top: 8px;
}
.ep-bar .fill {
  position: absolute; top: 0; left: 0; bottom: 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-soft));
  box-shadow: 0 0 14px var(--accent-glow), inset 0 0 8px rgba(255,255,255,0.18);
  transition: width 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ep-bar .fill::after {
  content: '';
  position: absolute; top: 0; right: 0; height: 100%; width: 14px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55));
}
.ep-bar.thin { height: 5px; }
.ep-bar.warn .fill {
  background: linear-gradient(90deg, var(--warn-deep), var(--warn));
  box-shadow: 0 0 12px var(--warn-glow);
}

/* ==========================================================================
   Stats grid
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.stat {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
  min-width: 0;
  overflow: hidden;
}
.stat .top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.stat .name {
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 2px;
  color: var(--text-2);
  text-transform: uppercase;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stat .val {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--accent);
  letter-spacing: 1px;
  line-height: 1;
  flex-shrink: 0;
}
.stat .meta {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-3);
}

/* ==========================================================================
   Mission / list rows
   ========================================================================== */
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  border-radius: var(--r-sm);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.row + .row { margin-top: 8px; }
.row:active { transform: scale(0.99); }
.row.done { background: rgba(34, 211, 238, 0.05); border-color: var(--line-2); }
.row.done .label { color: var(--text-2); text-decoration: line-through; text-decoration-color: var(--text-3); }

.row .check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 1.5px solid var(--line-3);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: border-color 180ms ease, background 180ms ease;
}
.row.done .check {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.row.done .check::after {
  content: '';
  width: 10px; height: 5px;
  border-left: 2px solid var(--bg-0);
  border-bottom: 2px solid var(--bg-0);
  transform: rotate(-45deg) translate(1px, -1px);
}

.row .body { flex: 1; min-width: 0; }
.row .label {
  font-size: 14px;
  color: var(--text-0);
  font-weight: 500;
}
.row .sub {
  margin-top: 3px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-3);
  text-transform: uppercase;
}
.row .ep-tag {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--accent);
  border: 1px solid var(--line-3);
  padding: 3px 8px;
}

.row .actions {
  display: flex; align-items: center; gap: 6px;
}
.icon-btn {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-1);
  color: var(--text-2);
  border-radius: var(--r-sm);
  font-size: 14px;
  transition: all 150ms ease;
}
.icon-btn:hover, .icon-btn:active { color: var(--accent); border-color: var(--line-3); }
.icon-btn.warn:hover { color: var(--warn); border-color: var(--warn); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid var(--line-3);
  cursor: pointer;
  transition: all 180ms ease;
  position: relative;
}
.btn:hover { background: rgba(34, 211, 238, 0.12); box-shadow: var(--glow-cyan); }
.btn:active { transform: scale(0.98); }
.btn.primary {
  color: var(--bg-0);
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  border-color: var(--accent);
  font-weight: 700;
  box-shadow: var(--glow-cyan);
}
.btn.ghost {
  color: var(--text-2);
  background: transparent;
  border-color: var(--line-2);
}
.btn.ghost:hover { color: var(--text-0); border-color: var(--line-3); }
.btn.warn { color: var(--warn); border-color: var(--warn-deep); background: var(--warn-bg); }
.btn.full { width: 100%; }
.btn.sm { padding: 7px 12px; font-size: 11px; letter-spacing: 3px; }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* segmented control */
.seg {
  display: flex;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  padding: 3px;
}
.seg button {
  flex: 1;
  padding: 8px 10px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-3);
  transition: all 180ms ease;
  border-radius: 2px;
}
.seg button.active {
  background: rgba(34, 211, 238, 0.10);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--line-3);
}

/* ==========================================================================
   Toasts (System messages)
   ========================================================================== */
#toast-container {
  position: fixed;
  top: calc(var(--safe-top) + 12px);
  left: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 80;
  pointer-events: none;
  align-items: center;
}
.toast {
  pointer-events: auto;
  width: 100%; max-width: 460px;
  background: var(--bg-panel-strong);
  border: 1px solid var(--line-3);
  padding: 12px 14px;
  display: flex; align-items: flex-start; gap: 10px;
  position: relative;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.6), var(--glow-cyan);
  animation: toastIn 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.toast::before, .toast::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  border: 1px solid var(--accent);
}
.toast::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.toast::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.toast.warn { border-color: var(--warn); box-shadow: 0 18px 44px rgba(0,0,0,0.6), var(--glow-warn); }
.toast.warn::before, .toast.warn::after { border-color: var(--warn); }
.toast.gold { border-color: var(--gold); box-shadow: 0 18px 44px rgba(0,0,0,0.6), 0 0 26px var(--gold-glow); }
.toast.gold::before, .toast.gold::after { border-color: var(--gold); }
.toast.out { animation: toastOut 280ms ease-in forwards; }

.toast .toast-ico {
  width: 26px; height: 26px;
  flex-shrink: 0;
  border: 1px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 14px;
}
.toast.warn .toast-ico { border-color: var(--warn); color: var(--warn); }
.toast.gold .toast-ico { border-color: var(--gold); color: var(--gold); }

.toast .toast-body { flex: 1; min-width: 0; }
.toast .toast-title {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}
.toast.warn .toast-title { color: var(--warn); }
.toast.gold .toast-title { color: var(--gold); }
.toast .toast-text {
  font-size: 14px;
  color: var(--text-0);
  line-height: 1.35;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-14px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-12px); }
}

/* ==========================================================================
   Modals
   ========================================================================== */
#modal-root .modal-bg {
  position: fixed; inset: 0;
  background: rgba(2, 5, 10, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  animation: fadeIn 180ms ease;
}
.modal {
  position: relative;
  width: 100%; max-width: 460px;
  max-height: 88vh;
  background: var(--bg-panel-strong);
  border: 1px solid var(--line-3);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: modalIn 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal::before, .modal::after {
  content: ''; position: absolute; width: 14px; height: 14px;
  border: 1px solid var(--accent); pointer-events: none;
}
.modal::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.modal::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-1);
}
.modal-head h2 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent);
}
.modal-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}
.modal-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--line-1);
  display: flex; gap: 8px; justify-content: flex-end;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   Forms
   ========================================================================== */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-2);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.input, .textarea, .select {
  width: 100%;
  padding: 11px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--text-0);
  font-size: 14px;
  font-family: var(--font-body);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow-soft);
}
.textarea { resize: vertical; min-height: 80px; font-family: var(--font-body); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

/* ==========================================================================
   Counters / circular progress
   ========================================================================== */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.kpi {
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  padding: 12px 8px;
}
.kpi .num {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
  line-height: 1;
}
.kpi .lab {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-3);
  text-transform: uppercase;
}

/* ==========================================================================
   Week grid
   ========================================================================== */
.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.week .day {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-3);
  text-transform: uppercase;
}
.week .day .d { font-size: 16px; color: var(--text-1); margin-top: 2px; }
.week .day.full { border-color: var(--accent); color: var(--accent); }
.week .day.full .d { color: var(--accent); text-shadow: 0 0 8px var(--accent-glow); }
.week .day.partial { border-color: var(--line-3); color: var(--text-1); }
.week .day.miss { border-color: var(--warn-deep); color: var(--warn); }
.week .day.today::after {
  content: '';
  position: absolute; top: 4px; right: 4px;
  width: 6px; height: 6px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.week .day.future { opacity: 0.45; }

/* ==========================================================================
   Misc utils
   ========================================================================== */
.mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; }
.dim { color: var(--text-3); }
.muted { color: var(--text-2); }
.cyan { color: var(--accent); }
.warn-c { color: var(--warn); }
.gold-c { color: var(--gold); }
.center { text-align: center; }
.flex { display: flex; }
.between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; }
.aic { align-items: center; }
.hidden { display: none !important; }
.divider {
  height: 1px; margin: 14px 0;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}
.empty {
  padding: 22px 12px;
  text-align: center;
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.empty .hint { display:block; margin-top: 6px; font-size: 11px; color: var(--text-mute); letter-spacing: 1px; }
.tag {
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
}
.tag.cyan { color: var(--accent); border-color: var(--line-3); background: var(--accent-bg); }
.tag.warn { color: var(--warn); border-color: var(--warn-deep); background: var(--warn-bg); }
.tag.gold { color: var(--gold); border-color: var(--gold-deep); background: rgba(255,212,121,0.06); }
.tag.ok   { color: var(--ok); border-color: var(--ok-deep); background: rgba(109,245,200,0.06); }

.kbd {
  display: inline-block;
  padding: 1px 6px;
  font-family: var(--font-display);
  font-size: 11px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
}

/* ==========================================================================
   Specific: training session
   ========================================================================== */
.exercise {
  padding: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  margin-bottom: 8px;
  position: relative;
  transition: border-color 200ms ease, background 200ms ease;
}
.exercise.done { border-color: var(--line-3); background: rgba(34,211,238,0.04); }
.exercise.done .ex-title { color: var(--text-2); }
.exercise .ex-top {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.exercise .ex-title {
  font-size: 15px; color: var(--text-0); font-weight: 500;
}
.exercise .ex-prescription {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
}
.exercise.done .ex-prescription { color: var(--text-3); }
.set-row {
  margin-top: 10px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.set-cell {
  flex: 1 1 calc(20% - 6px);
  min-width: 56px;
  padding: 8px 4px;
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-2);
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 150ms ease;
}
.set-cell.done {
  background: rgba(34,211,238,0.18);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: inset 0 0 8px rgba(34,211,238,0.25);
}

.exercise .complete-tag {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
}

/* progress ring */
.ring {
  position: relative;
  width: 92px; height: 92px;
}
.ring svg { transform: rotate(-90deg); }
.ring .ring-bg { fill: none; stroke: var(--line-2); stroke-width: 5; }
.ring .ring-fg { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: square; transition: stroke-dashoffset 700ms ease; filter: drop-shadow(0 0 4px var(--accent-glow)); }
.ring .ring-num {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-display);
  color: var(--accent);
}
.ring .ring-num b { font-size: 22px; }
.ring .ring-num span { font-size: 10px; letter-spacing: 2px; color: var(--text-3); margin-top: 2px; }

/* level-up overlay */
.lvlup {
  position: fixed; inset: 0;
  background: radial-gradient(circle at center, rgba(34,211,238,0.18), rgba(0,0,0,0.85) 70%);
  display: flex; align-items: center; justify-content: center;
  z-index: 95;
  animation: fadeIn 240ms ease;
}
.lvlup-frame {
  text-align: center;
  position: relative;
  padding: 36px 50px;
  border: 1px solid var(--accent);
  background: rgba(6, 9, 15, 0.85);
  box-shadow: var(--glow-cyan-strong), inset 0 0 40px rgba(34,211,238,0.10);
  animation: lvlupIn 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.lvlup-frame::before, .lvlup-frame::after {
  content: ''; position: absolute; width: 22px; height: 22px;
  border: 2px solid var(--accent);
}
.lvlup-frame::before { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.lvlup-frame::after  { bottom: -2px; right: -2px; border-left: none; border-top: none; }
.lvlup .label {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 8px;
  color: var(--text-1);
  text-transform: uppercase;
}
.lvlup .big {
  font-family: var(--font-display);
  font-size: 56px;
  letter-spacing: 6px;
  color: var(--accent);
  text-shadow: 0 0 30px var(--accent-glow);
  margin-top: 8px;
}
.lvlup .sub {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 4px;
  color: var(--text-2);
  margin-top: 8px;
  text-transform: uppercase;
}
@keyframes lvlupIn {
  0%   { transform: scale(0.7); opacity: 0; }
  60%  { transform: scale(1.04); }
  100% { transform: scale(1); opacity: 1; }
}

/* small chip */
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 4px 9px;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-2);
  cursor: pointer;
  transition: all 150ms ease;
}
.chip.active { color: var(--accent); border-color: var(--accent); background: var(--accent-bg); }

/* number stepper */
.stepper {
  display: inline-flex; align-items: stretch;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
}
.stepper button {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 16px;
}
.stepper input {
  width: 50px; text-align: center;
  background: transparent;
  font-family: var(--font-display);
  color: var(--text-0);
}

/* checkbox-style row */
.check-line {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  cursor: pointer;
  transition: all 160ms ease;
  user-select: none;
}
.check-line + .check-line { margin-top: 6px; }
.check-line .ck {
  width: 20px; height: 20px;
  border: 1.5px solid var(--line-3);
  flex-shrink: 0;
  position: relative;
  transition: all 160ms ease;
}
.check-line.on { border-color: var(--line-3); background: rgba(34,211,238,0.04); }
.check-line.on .ck { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.check-line.on .ck::after {
  content: '';
  position: absolute; left: 5px; top: 1px;
  width: 7px; height: 12px;
  border-right: 2px solid var(--bg-0);
  border-bottom: 2px solid var(--bg-0);
  transform: rotate(40deg);
}
.check-line .lbl { flex: 1; font-size: 14px; color: var(--text-0); }
.check-line.on .lbl { color: var(--text-2); }
.check-line .tag-mini {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-3);
  text-transform: uppercase;
}

/* sliders */
.water-bar {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
}
.water-cell {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  cursor: pointer;
  transition: all 160ms ease;
  position: relative;
}
.water-cell.on {
  background: linear-gradient(180deg, var(--accent-deep), var(--accent));
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow), inset 0 0 6px rgba(255,255,255,0.18);
}

/* small list separator */
.list { display: flex; flex-direction: column; gap: 6px; }

/* training day block in list */
.train-day {
  padding: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  margin-bottom: 8px;
}
.train-day .td-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.train-day .td-day {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--text-3);
  text-transform: uppercase;
}
.train-day .td-name {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-0);
  letter-spacing: 1px;
}
.train-day.rest .td-name { color: var(--text-3); }
.train-day .td-foot {
  margin-top: 8px;
  display: flex; gap: 8px; align-items: center; justify-content: space-between;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-2);
  text-transform: uppercase;
}
.train-day.today { border-color: var(--accent); box-shadow: var(--glow-cyan); }

/* quest card */
.quest {
  padding: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  margin-bottom: 8px;
  position: relative;
}
.quest .q-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quest .q-title { font-size: 15px; color: var(--text-0); font-weight: 600; }
.quest .q-desc { font-size: 13px; color: var(--text-2); margin-top: 6px; line-height: 1.45; }
.quest .q-meta {
  margin-top: 10px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-3);
  text-transform: uppercase;
}
.quest .q-prog { margin-top: 8px; }
.quest.done { border-color: var(--accent); box-shadow: 0 0 14px var(--accent-glow-soft); }
.quest.done .q-title { color: var(--accent); }

/* achievement */
.ach {
  position: relative;
  padding: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  display: flex; align-items: center; gap: 12px;
}
.ach.locked { opacity: 0.45; }
.ach .ach-ico {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border: 1px solid var(--line-3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  color: var(--accent);
}
.ach.locked .ach-ico { color: var(--text-3); border-color: var(--line-1); }
.ach .ach-body { flex: 1; min-width: 0; }
.ach .ach-name { font-size: 14px; color: var(--text-0); font-weight: 500; }
.ach .ach-desc { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.ach.unlocked { border-color: var(--accent); box-shadow: var(--glow-cyan); }

/* title card */
.title-card {
  padding: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line-1);
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}
.title-card.locked { opacity: 0.55; }
.title-card.active {
  border-color: var(--gold);
  box-shadow: 0 0 18px var(--gold-glow);
  background: linear-gradient(135deg, rgba(255,212,121,0.05), var(--bg-2));
}
.title-card .tc-name {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-1);
}
.title-card.active .tc-name { color: var(--gold); text-shadow: 0 0 14px var(--gold-glow); }
.title-card .tc-cond { margin-top: 4px; font-size: 12px; color: var(--text-2); }
.title-card .tc-actions { margin-top: 10px; display: flex; gap: 8px; }

/* code-like / mono */
.mono {
  font-family: var(--font-display);
  letter-spacing: 1px;
  color: var(--text-1);
}

/* ==========================================================================
   Range / focus session
   ========================================================================== */
.timer-display {
  text-align: center;
  font-family: var(--font-display);
  font-size: 56px;
  letter-spacing: 6px;
  color: var(--accent);
  text-shadow: 0 0 22px var(--accent-glow);
  margin: 18px 0 22px;
}

/* ==========================================================================
   Larger screens
   ========================================================================== */
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .app-main { padding: 22px 22px calc(var(--nav-h) + var(--safe-bot) + 28px); }
  .hero { padding: 28px 24px; }
  .hero-id .name { font-size: 32px; }
  .hero-rank .rank-value { font-size: 48px; }
}

@media (min-width: 960px) {
  .stats { grid-template-columns: repeat(6, 1fr); }
}

/* ==========================================================================
   Auth-Shell (Login / Setup)
   ========================================================================== */
.auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--safe-top) + 24px) 18px calc(var(--safe-bot) + 24px);
  position: relative;
  overflow: hidden;
}
.auth-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(520px 320px at 50% 0%, rgba(34,211,238,0.14), transparent 70%),
    radial-gradient(480px 260px at 50% 100%, rgba(34,211,238,0.06), transparent 70%);
  z-index: 0;
}
.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 28px 24px 24px;
  background: var(--bg-panel-strong);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), var(--glow-cyan);
}
.auth-crest {
  text-align: center;
  margin-bottom: 22px;
}
.auth-crest-line {
  font-family: var(--font-display);
  color: var(--accent);
  text-shadow: 0 0 24px var(--accent-glow);
}
.auth-crest-sub {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--text-3);
  text-transform: uppercase;
}
.auth-title {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--text-0);
  text-align: center;
}
.auth-sub {
  margin-top: 8px;
  margin-bottom: 20px;
  color: var(--text-2);
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
}
.auth-form .field { margin-bottom: 14px; }
.auth-form .field label { letter-spacing: 3px; }
.auth-form .btn.primary.full {
  padding: 14px 18px;
  font-size: 13px;
  letter-spacing: 5px;
}
.auth-error {
  min-height: 18px;
  margin: 4px 0 10px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--warn);
  text-align: center;
  text-transform: uppercase;
}
.auth-note {
  margin: 10px 0;
  padding: 10px 12px;
  background: var(--bg-2);
  border-left: 2px solid var(--accent);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.5;
}
.auth-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 6px;
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
}
.auth-check input {
  accent-color: var(--accent);
  width: 16px; height: 16px;
}
.auth-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

/* ==========================================================================
   Timer-Tag (Mission/Quest Restzeit)
   ========================================================================== */
.timer-tag {
  display: inline-block;
  padding: 4px 9px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  background: rgba(34, 211, 238, 0.10);
  box-shadow: 0 0 10px var(--accent-glow-soft), inset 0 0 8px rgba(34,211,238,0.10);
  text-shadow: 0 0 8px var(--accent-glow);
  animation: timerPulse 3.2s ease-in-out infinite;
}
.timer-tag.warn-soon {
  color: var(--gold);
  border-color: var(--gold-deep);
  background: rgba(255, 212, 121, 0.10);
  box-shadow: 0 0 12px rgba(255, 212, 121, 0.35), inset 0 0 8px rgba(255,212,121,0.10);
  text-shadow: 0 0 10px var(--gold-glow);
}
.timer-tag.urgent {
  color: var(--warn);
  border-color: var(--warn);
  background: rgba(255, 95, 109, 0.12);
  box-shadow: 0 0 14px var(--warn-glow), inset 0 0 8px rgba(255,95,109,0.10);
  text-shadow: 0 0 10px var(--warn-glow);
  animation: timerPulseUrgent 1.6s ease-in-out infinite;
}
.timer-tag.expired {
  color: var(--warn);
  border-color: var(--warn-deep);
  background: rgba(255, 95, 109, 0.18);
  text-shadow: 0 0 8px var(--warn-glow);
}
@keyframes timerPulse {
  0%, 100% { box-shadow: 0 0 10px var(--accent-glow-soft), inset 0 0 8px rgba(34,211,238,0.10); }
  50%      { box-shadow: 0 0 16px var(--accent-glow), inset 0 0 12px rgba(34,211,238,0.18); }
}
@keyframes timerPulseUrgent {
  0%, 100% { box-shadow: 0 0 14px var(--warn-glow), inset 0 0 8px rgba(255,95,109,0.10); }
  50%      { box-shadow: 0 0 22px var(--warn-glow), inset 0 0 14px rgba(255,95,109,0.20); }
}
@keyframes todayPulse {
  0%, 100% { box-shadow: 0 0 6px var(--accent), 0 0 2px var(--accent); opacity: 0.9; }
  50%      { box-shadow: 0 0 14px var(--accent), 0 0 6px var(--accent); opacity: 1; }
}

/* === Drag & Drop für Übungen === */
.ex-list { display: flex; flex-direction: column; gap: 8px; }
.drag-item { position: relative; transition: transform 0.12s ease, opacity 0.12s ease, box-shadow 0.12s ease; }
.drag-item.dragging { opacity: 0.45; transform: scale(0.98); }
.drag-handle {
  cursor: grab; user-select: none; touch-action: none;
  font-family: var(--font-display); font-size: 16px; letter-spacing: -2px;
  color: var(--text-3); padding: 4px 8px;
  border: 1px solid var(--line-2); background: var(--bg-2);
  line-height: 1; min-width: 20px; text-align: center;
}
.drag-handle:hover { color: var(--accent); border-color: var(--accent); }
.drag-handle:active { cursor: grabbing; }
.drag-item.drag-over-top    { box-shadow: 0 -2px 0 0 var(--accent), 0 0 12px var(--accent-glow-soft); }
.drag-item.drag-over-bottom { box-shadow: 0 2px 0 0 var(--accent),  0 0 12px var(--accent-glow-soft); }

/* === Übungs-Nummerierung === */
.ex-num {
  font-family: var(--font-display);
  font-size: 14px; letter-spacing: 1px;
  min-width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text-3);
  user-select: none;
}
.ex-num.done {
  color: var(--ok);
  border-color: var(--ok);
  opacity: 0.55;
}
.ex-num.next {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(34,211,238,0.08);
  text-shadow: 0 0 10px var(--accent-glow);
  box-shadow: 0 0 14px var(--accent-glow-soft), inset 0 0 8px rgba(34,211,238,0.12);
  animation: exNumPulse 2.4s ease-in-out infinite;
}
@keyframes exNumPulse {
  0%, 100% { box-shadow: 0 0 10px var(--accent-glow-soft), inset 0 0 6px rgba(34,211,238,0.10); }
  50%      { box-shadow: 0 0 18px var(--accent-glow), inset 0 0 12px rgba(34,211,238,0.20); }
}

/* === Auto-Removal Countdown (Mission/Quest nach Abschluss) === */
.removal-timer {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ok);
  border: 1px solid var(--ok);
  background: rgba(64, 220, 130, 0.10);
  text-shadow: 0 0 8px rgba(64,220,130,0.7);
  box-shadow: 0 0 10px rgba(64,220,130,0.35), inset 0 0 8px rgba(64,220,130,0.10);
  animation: removalPulse 2.4s ease-in-out infinite;
}
.removal-timer.urgent {
  color: var(--warn);
  border-color: var(--warn);
  background: rgba(255, 95, 109, 0.12);
  text-shadow: 0 0 10px var(--warn-glow);
  box-shadow: 0 0 14px var(--warn-glow), inset 0 0 10px rgba(255,95,109,0.18);
  animation: removalPulseUrgent 0.9s ease-in-out infinite;
}
@keyframes removalPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(64,220,130,0.30), inset 0 0 6px rgba(64,220,130,0.10); }
  50%      { box-shadow: 0 0 16px rgba(64,220,130,0.55), inset 0 0 10px rgba(64,220,130,0.20); }
}
@keyframes removalPulseUrgent {
  0%, 100% { box-shadow: 0 0 12px var(--warn-glow), inset 0 0 8px rgba(255,95,109,0.12); }
  50%      { box-shadow: 0 0 22px var(--warn-glow), inset 0 0 14px rgba(255,95,109,0.24); }
}

/* === Wartende Quests === */
.quest.waiting {
  opacity: 0.55;
  border-style: dashed;
}
.quest.waiting .q-title { color: var(--text-2); }
.quest.waiting .q-desc { color: var(--text-3); }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
