/* ============================================================
   style.css – das komplette Aussehen der App
   (Farben, Schriften, Layout, Animationen)

   Tipp: Die Farben stehen ganz oben unter :root. Wenn du dort
   einen Wert änderst, ändert sich die Farbe überall automatisch.
   ============================================================ */

/* ============================================================
   FARBEN & DESIGN-TOKENS
   "Gold" ist die Heldenfarbe (XP, Level, Belohnungen).
   Alles andere ist ruhig gehalten, damit Gold strahlt.
   ============================================================ */
:root{
  --bg-0:#160f2e;              /* tiefstes Dämmerungslila */
  --bg-1:#20154a;             /* Panel-Hintergrund */
  --bg-2:#2b1c5e;             /* angehobenes Panel */
  --bg-2b:#33236b;            /* Hover */
  --bg-top:#1a1136;           /* Hintergrund oben (per Farbe änderbar) */
  --bg-glow-a:#3a2170;        /* Farbschimmer 1 (per Farbe änderbar) */
  --bg-glow-b:#4b1f57;        /* Farbschimmer 2 (per Farbe änderbar) */
  --line: rgba(245,197,66,0.14);
  --line-strong: rgba(245,197,66,0.34);
  --gold:#f5c542;             /* HELD: XP / Level / Belohnung */
  --gold-soft:#ffe28f;
  --coral:#ff6b8b;            /* Primäraktion */
  --coral-deep:#e6496e;
  --green:#5fe3a1;            /* erledigt / Wachstum (Garten) */
  --green-deep:#2fae74;
  --text:#efeaff;
  --muted:#a99fce;
  --shadow: 0 18px 44px -20px rgba(0,0,0,0.75);
  --radius: 18px;
  --font-display:'Fredoka', system-ui, sans-serif;
  --font-body:'Nunito', system-ui, sans-serif;
  /* Das Muster, das über dem Verlauf schwebt (per "Hintergrund" änderbar) */
  --bg-pattern:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,.5) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 70% 20%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 70%, rgba(255,255,255,.3) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 85% 65%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 55% 45%, rgba(255,255,255,.25) 50%, transparent 51%);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family:var(--font-body);
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 15% -10%, var(--bg-glow-a) 0%, transparent 55%),
    radial-gradient(1000px 700px at 110% 10%, var(--bg-glow-b) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-0) 100%);
  background-attachment: fixed;
  min-height:100vh;
  -webkit-font-smoothing:antialiased;
}
/* Das "Hintergrund"-Muster (Standard: dezente Sternchen-Atmosphäre) */
body::before{
  content:""; position:fixed; inset:0; pointer-events:none; z-index:0;
  background-image: var(--bg-pattern);
  background-repeat:no-repeat;
  opacity:.7;
}

.wrap{ position:relative; z-index:1; max-width:940px; margin:0 auto; padding:20px 18px 64px; }

h1,h2,h3{ font-family:var(--font-display); font-weight:700; margin:0; letter-spacing:.3px; }
button{ font-family:var(--font-body); cursor:pointer; border:none; }
button:focus-visible, input:focus-visible, select:focus-visible{
  outline:3px solid var(--gold); outline-offset:2px;
}

/* ---------- TOPBAR ---------- */
.topbar{
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  padding:12px 4px 20px;
}
.brand{ font-family:var(--font-display); font-weight:700; font-size:22px;
  display:flex; align-items:center; gap:9px; }
.brand .mark{ font-size:22px; filter:drop-shadow(0 2px 6px rgba(245,197,66,.5)); }
.brand b{ color:var(--gold); }
.spacer{ flex:1; }
.roleswitch{ display:flex; background:var(--bg-1); border:1px solid var(--line);
  border-radius:999px; padding:4px; gap:2px; }
.roleswitch button{ background:transparent; color:var(--muted); font-weight:700;
  font-size:13px; padding:7px 14px; border-radius:999px; transition:.15s; }
.roleswitch button.on{ background:var(--bg-2b); color:var(--text); box-shadow:inset 0 0 0 1px var(--line-strong); }
.whoami{ display:flex; align-items:center; gap:8px; font-weight:700; font-size:14px; }
.logout{ background:transparent; color:var(--muted); font-weight:700; font-size:13px;
  padding:8px 12px; border-radius:10px; border:1px solid var(--line); }
.logout:hover{ color:var(--text); border-color:var(--line-strong); }

/* ---------- LOGIN ---------- */
.login{ min-height:78vh; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.login .orb-float{ margin-bottom:26px; animation:bob 4s ease-in-out infinite; }
@keyframes bob{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-10px); } }
.login h1{ font-size:clamp(38px,8vw,62px); line-height:1; }
.login h1 b{ color:var(--gold); }
.login .sub{ color:var(--muted); font-size:17px; margin:14px 0 34px; max-width:420px; }
.rolebtns{ display:flex; gap:14px; flex-wrap:wrap; justify-content:center; }
.rolebtn{ background:var(--bg-1); border:1px solid var(--line); border-radius:var(--radius);
  padding:20px 26px; width:220px; text-align:left; transition:.18s; box-shadow:var(--shadow); }
.rolebtn:hover{ transform:translateY(-4px); border-color:var(--line-strong); background:var(--bg-2); }
.rolebtn .ic{ font-size:30px; }
.rolebtn .t{ font-family:var(--font-display); font-weight:700; font-size:20px; margin-top:8px; color:var(--text); }
.rolebtn .d{ color:var(--muted); font-size:13.5px; margin-top:3px; }
.demo-note{ margin-top:30px; color:var(--muted); font-size:13px; opacity:.8; }

/* ---------- LEVEL-ORB (Signature-Element) ---------- */
.orb{ position:relative; display:grid; place-items:center; }
.orb-ring{ border-radius:50%;
  background: conic-gradient(var(--gold) calc(var(--p,0) * 1%), rgba(255,255,255,0.08) 0);
  display:grid; place-items:center;
  box-shadow:0 0 0 1px rgba(245,197,66,.25), 0 10px 30px -8px rgba(245,197,66,.35);
  transition:background .6s ease;
}
.orb-inner{ border-radius:50%; background:radial-gradient(circle at 50% 32%, var(--bg-2b), #150d2c);
  display:grid; place-items:center; text-align:center; box-shadow:inset 0 2px 10px rgba(0,0,0,.5); }
.orb-lv-label{ font-family:var(--font-body); font-weight:800; color:var(--gold); text-transform:uppercase; letter-spacing:1.5px; }
.orb-lv-num{ font-family:var(--font-display); font-weight:700; color:var(--text); line-height:.9; }

.orb.big .orb-ring{ width:104px; height:104px; padding:7px; }
.orb.big .orb-inner{ width:100%; height:100%; }
.orb.big .orb-lv-label{ font-size:10px; }
.orb.big .orb-lv-num{ font-size:34px; }

.orb.mini .orb-ring{ width:42px; height:42px; padding:3px; }
.orb.mini .orb-inner{ width:100%; height:100%; }
.orb.mini .orb-lv-label{ display:none; }
.orb.mini .orb-lv-num{ font-size:16px; color:var(--gold); }

.orb.mega .orb-ring{ width:150px; height:150px; padding:9px; }
.orb.mega .orb-inner{ width:100%; height:100%; }
.orb.mega .orb-lv-label{ font-size:12px; }
.orb.mega .orb-lv-num{ font-size:56px; }

/* ---------- SPIELER-KOPF ---------- */
.hero{ display:flex; align-items:center; gap:22px; background:var(--bg-1);
  border:1px solid var(--line); border-radius:22px; padding:22px 24px; box-shadow:var(--shadow); }
.hero .info{ flex:1; min-width:0; }
.hero .greet{ color:var(--muted); font-size:14px; font-weight:700; }
.hero .pname{ font-family:var(--font-display); font-size:26px; margin:2px 0 12px; }
.xpbar{ height:16px; background:#170f30; border-radius:999px; overflow:hidden; box-shadow:inset 0 1px 3px rgba(0,0,0,.6); }
.xpfill{ height:100%; border-radius:999px;
  background:linear-gradient(90deg, var(--gold-soft), var(--gold));
  box-shadow:0 0 14px rgba(245,197,66,.6);
  transition:width .6s cubic-bezier(.22,1,.36,1); position:relative; }
.xpfill::after{ content:""; position:absolute; inset:0; border-radius:999px;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform:translateX(-100%); }
.xpmeta{ display:flex; justify-content:space-between; margin-top:7px; font-size:13px; }
.xpmeta .now{ color:var(--gold); font-weight:800; }
.xpmeta .goal{ color:var(--muted); font-weight:700; }

/* ---------- ABSCHNITTS-TITEL ---------- */
.sec-head{ display:flex; align-items:center; gap:10px; margin:30px 4px 14px; }
.sec-head h2{ font-size:19px; }
.sec-head .eyebrow{ font-size:11px; letter-spacing:2px; text-transform:uppercase;
  color:var(--gold); font-weight:800; }
.counter{ margin-left:auto; font-size:13px; color:var(--muted); font-weight:700; }

/* ---------- QUEST-KARTEN ---------- */
.quests{ display:grid; gap:12px; }
.quest{ position:relative; display:flex; align-items:center; gap:16px;
  background:var(--bg-1); border:1px solid var(--line); border-left:4px solid var(--gold);
  border-radius:16px; padding:16px 18px; box-shadow:var(--shadow); transition:.18s; }
.quest:hover{ transform:translateY(-2px); border-left-color:var(--gold-soft); background:var(--bg-2); }
.quest .qbody{ flex:1; min-width:0; }
.quest .qtitle{ font-family:var(--font-display); font-weight:600; font-size:17px; }
.quest .xptag{ display:inline-flex; align-items:center; gap:5px; margin-top:6px;
  background:rgba(245,197,66,.14); color:var(--gold); font-weight:800; font-size:12.5px;
  padding:4px 10px; border-radius:999px; }
.qbtn{ background:linear-gradient(180deg, var(--coral), var(--coral-deep)); color:#fff;
  font-weight:800; font-size:14px; padding:11px 18px; border-radius:12px; white-space:nowrap;
  box-shadow:0 8px 20px -8px rgba(230,73,110,.7); transition:.15s; }
.qbtn:hover{ filter:brightness(1.06); transform:translateY(-1px); }
.quest.done{ border-left-color:var(--green); opacity:.85; }
.quest.done .qtitle{ text-decoration:line-through; color:var(--muted); }
.quest.done .xptag{ background:rgba(95,227,161,.14); color:var(--green); }
.donebadge{ display:inline-flex; align-items:center; gap:7px; color:var(--green); font-weight:800; font-size:14px; }
.check{ width:26px; height:26px; border-radius:50%; background:var(--green);
  display:grid; place-items:center; color:#0e2c1f; font-weight:900; }

.empty{ text-align:center; background:var(--bg-1); border:1px dashed var(--line-strong);
  border-radius:18px; padding:40px 24px; }
.empty .big{ font-size:38px; }
.empty h3{ font-size:20px; margin:10px 0 6px; }
.empty p{ color:var(--muted); margin:0; }

/* ---------- BELOHNUNGEN (Spieler) ---------- */
.rewgrid{ display:grid; gap:12px; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); }
.rewcard{ background:var(--bg-1); border:1px solid var(--line); border-radius:16px; padding:16px 18px; }
.rewcard.locked{ opacity:.55; }
.rewcard.unlocked{ border-color:var(--line-strong); box-shadow:0 0 0 1px var(--line-strong), var(--shadow); }
.rewcard .rl{ display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.rewcard .lvpill{ font-family:var(--font-display); font-weight:700; font-size:13px; color:var(--gold); }
.rewcard .state{ font-size:12px; font-weight:800; }
.rewcard.unlocked .state{ color:var(--green); }
.rewcard.locked .state{ color:var(--muted); }
.rewcard .rtext{ font-size:15px; font-weight:700; }
.rewcard .rtype{ font-size:12px; color:var(--muted); margin-top:6px; }

/* ---------- ADMIN ---------- */
.tabs{ display:flex; gap:6px; flex-wrap:wrap; margin:6px 0 22px; }
.tab{ background:var(--bg-1); border:1px solid var(--line); color:var(--muted);
  font-weight:800; font-size:13.5px; padding:9px 16px; border-radius:12px; transition:.15s; }
.tab.on{ background:var(--bg-2b); color:var(--text); border-color:var(--line-strong); }
.tab:hover{ color:var(--text); }

.panel{ background:var(--bg-1); border:1px solid var(--line); border-radius:18px;
  padding:20px 22px; box-shadow:var(--shadow); margin-bottom:16px; }
.panel h3{ font-size:17px; margin-bottom:14px; }
.field{ display:flex; flex-direction:column; gap:6px; }
label.lbl{ font-size:12.5px; font-weight:800; color:var(--muted); letter-spacing:.3px; }
input.inp, select.inp{ background:#170f30; border:1px solid var(--line); color:var(--text);
  font-family:var(--font-body); font-weight:600; font-size:14.5px; padding:11px 13px; border-radius:11px; width:100%; }
input.inp::placeholder{ color:#6f649a; }
.row{ display:flex; gap:12px; flex-wrap:wrap; align-items:flex-end; }
.row .grow{ flex:1; min-width:160px; }
.addbtn{ background:linear-gradient(180deg, var(--gold-soft), var(--gold)); color:#3a2a04;
  font-weight:800; font-size:14px; padding:12px 18px; border-radius:11px; white-space:nowrap;
  box-shadow:0 8px 20px -10px rgba(245,197,66,.7); transition:.15s; }
.addbtn:hover{ filter:brightness(1.05); transform:translateY(-1px); }

/* Reihenfolge-Liste */
.qrow{ display:flex; align-items:center; gap:12px; background:var(--bg-2);
  border:1px solid var(--line); border-radius:12px; padding:11px 14px; margin-bottom:9px; }
.qrow .num{ width:26px; height:26px; border-radius:8px; background:var(--bg-2b);
  display:grid; place-items:center; font-weight:800; font-size:13px; color:var(--gold); }
.qrow .qn{ flex:1; font-weight:700; }
.qrow .qx{ font-size:12.5px; font-weight:800; color:var(--gold); }
.qrow .badge{ font-size:11px; font-weight:800; padding:3px 9px; border-radius:999px; }
.badge.batch{ background:rgba(255,107,139,.16); color:var(--coral); }
.badge.queue{ background:rgba(169,159,206,.16); color:var(--muted); }
.badge.done{ background:rgba(95,227,161,.16); color:var(--green); }
.arrows{ display:flex; gap:4px; }
.arrow{ width:30px; height:30px; border-radius:9px; background:var(--bg-2b); color:var(--text);
  font-weight:800; display:grid; place-items:center; border:1px solid var(--line); }
.arrow:hover{ border-color:var(--line-strong); }
.arrow:disabled{ opacity:.3; cursor:not-allowed; }
.arrow.danger:hover{ border-color:var(--coral); color:var(--coral); }
.hint{ color:var(--muted); font-size:12.5px; margin-top:4px; }

/* Belohnungs-Editor */
.rewedit{ display:flex; align-items:center; gap:12px; background:var(--bg-2);
  border:1px solid var(--line); border-radius:12px; padding:11px 14px; margin-bottom:9px; }
.rewedit .lv{ font-family:var(--font-display); font-weight:700; color:var(--gold); white-space:nowrap; }
.rewedit input.inp{ flex:1; }
.typetoggle{ display:flex; background:#170f30; border:1px solid var(--line); border-radius:10px; padding:3px; }
.typetoggle button{ background:transparent; color:var(--muted); font-weight:800; font-size:12px;
  padding:7px 11px; border-radius:8px; white-space:nowrap; }
.typetoggle button.on{ color:var(--text); }
.typetoggle button.on[data-t="custom"]{ background:rgba(255,107,139,.2); color:var(--coral); }
.typetoggle button.on[data-t="garden"]{ background:rgba(95,227,161,.2); color:var(--green); }

/* Mitglieder */
.member{ display:flex; align-items:center; gap:12px; background:var(--bg-2);
  border:1px solid var(--line); border-radius:12px; padding:11px 14px; margin-bottom:9px; }
.member .av{ width:34px; height:34px; border-radius:50%; display:grid; place-items:center;
  font-weight:800; background:var(--bg-2b); color:var(--gold); }
.member .mn{ flex:1; font-weight:700; }
.rolepill{ font-size:11.5px; font-weight:800; padding:4px 11px; border-radius:999px; }
.rolepill.admin{ background:rgba(245,197,66,.16); color:var(--gold); }
.rolepill.player{ background:rgba(95,227,161,.16); color:var(--green); }

/* ---------- LEVEL-UP MODAL ---------- */
.overlay{ position:fixed; inset:0; z-index:50; background:rgba(10,6,24,.72);
  backdrop-filter:blur(4px); display:grid; place-items:center; padding:20px;
  animation:fade .25s ease; }
@keyframes fade{ from{ opacity:0; } to{ opacity:1; } }
.modal{ position:relative; width:min(420px,92vw); background:linear-gradient(180deg,#2a1c5c,#1c1240);
  border:1px solid var(--line-strong); border-radius:24px; padding:34px 28px; text-align:center;
  box-shadow:0 30px 80px -20px rgba(0,0,0,.8); animation:pop .35s cubic-bezier(.22,1.4,.4,1); }
@keyframes pop{ from{ transform:scale(.85); opacity:0; } to{ transform:scale(1); opacity:1; } }
.modal .burst{ position:absolute; inset:0; border-radius:24px; overflow:hidden; pointer-events:none; }
.modal .burst i{ position:absolute; top:38px; left:50%; width:8px; height:8px; border-radius:2px; background:var(--gold); }
.modal .up-label{ color:var(--gold); font-weight:800; letter-spacing:2px; text-transform:uppercase; font-size:13px; }
.modal h2{ font-size:30px; margin:6px 0 20px; }
.modal .reward-box{ background:rgba(0,0,0,.28); border:1px solid var(--line); border-radius:16px; padding:18px 16px; margin-bottom:8px; }
.modal .reward-box .rw-eyebrow{ font-size:11px; letter-spacing:2px; text-transform:uppercase; color:var(--muted); font-weight:800; }
.modal .reward-box .rw-text{ font-family:var(--font-display); font-weight:700; font-size:20px; margin-top:8px; }
.modal .reward-box .rw-type{ font-size:12.5px; color:var(--muted); margin-top:6px; }
.modal .close{ margin-top:20px; width:100%; background:linear-gradient(180deg,var(--gold-soft),var(--gold));
  color:#3a2a04; font-weight:800; font-size:15px; padding:13px; border-radius:13px; }

/* schwebende +XP Anzeige */
.xpfloat{ position:fixed; z-index:60; font-family:var(--font-display); font-weight:700;
  color:var(--gold); font-size:20px; pointer-events:none; text-shadow:0 2px 8px rgba(0,0,0,.6);
  animation:floatup 1s ease-out forwards; }
@keyframes floatup{ 0%{ transform:translateY(0) scale(.8); opacity:0; }
  20%{ opacity:1; transform:translateY(-8px) scale(1.1); }
  100%{ transform:translateY(-60px) scale(1); opacity:0; } }

@media (max-width:560px){
  .hero{ flex-direction:column; text-align:center; }
  .quest{ flex-direction:column; align-items:stretch; text-align:center; }
  .qbtn{ width:100%; }
}
/* Bewegung reduzieren, wenn das System es wünscht */
@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
}

/* ============================================================
   LOGIN / REGISTRIERUNG  (in diesem Schritt neu)
   ============================================================ */
.auth-wrap{ min-height:80vh; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.auth-orb{ margin-bottom:20px; animation:bob 4s ease-in-out infinite; }
.auth-title{ font-size:clamp(34px,7vw,52px); line-height:1; margin-bottom:22px; }
.auth-title b{ color:var(--gold); }
.auth-card{ width:min(360px,92vw); background:var(--bg-1); border:1px solid var(--line);
  border-radius:20px; padding:22px; box-shadow:var(--shadow); text-align:left; }
.auth-tabs{ display:flex; background:#170f30; border:1px solid var(--line); border-radius:12px; padding:4px; margin-bottom:18px; }
.auth-tab{ flex:1; background:transparent; color:var(--muted); font-weight:800; font-size:14px; padding:9px; border-radius:9px; transition:.15s; }
.auth-tab.on{ background:var(--bg-2b); color:var(--text); box-shadow:inset 0 0 0 1px var(--line-strong); }
.afield{ display:flex; flex-direction:column; gap:6px; margin-bottom:14px; }
.auth-error{ background:rgba(255,107,139,.14); color:#ffb3c4; border:1px solid rgba(255,107,139,.3);
  font-size:13px; font-weight:700; padding:10px 12px; border-radius:10px; margin-bottom:14px; }
.auth-submit{ width:100%; background:linear-gradient(180deg,var(--coral),var(--coral-deep)); color:#fff;
  font-weight:800; font-size:15px; padding:13px; border-radius:12px;
  box-shadow:0 8px 20px -8px rgba(230,73,110,.7); transition:.15s; }
.auth-submit:hover{ filter:brightness(1.06); }
.auth-submit:disabled{ opacity:.6; cursor:default; }

/* Rollen-Abzeichen oben in der Leiste */
.rolechip{ font-size:12px; font-weight:800; padding:6px 12px; border-radius:999px; }
.rolechip.admin{ background:rgba(245,197,66,.16); color:var(--gold); }
.rolechip.player{ background:rgba(95,227,161,.16); color:var(--green); }

/* Dritte Belohnungs-Kategorie: Design */
.typetoggle button.on[data-t="cosmetic"]{ background:rgba(125,211,252,.2); color:#7dd3fc; }

/* ============================================================
   DESIGN-AUSWAHL  (Zahnrad-Button + Einstellungsfenster)
   ============================================================ */
.gear{ background:var(--bg-1); border:1px solid var(--line); color:var(--text); font-size:16px;
  width:38px; height:38px; border-radius:10px; display:grid; place-items:center; transition:.15s; }
.gear:hover{ border-color:var(--line-strong); background:var(--bg-2); }

.settings-modal{ width:min(460px,94vw); text-align:left; }
.settings-modal h3{ font-family:var(--font-display); font-size:14px; color:var(--gold-soft); margin:0 0 8px; }
.design-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.design-card{ display:flex; align-items:center; gap:12px; position:relative; text-align:left;
  background:rgba(0,0,0,.22); border:1px solid var(--line); border-radius:14px; padding:12px; transition:.15s; }
.design-card:hover{ border-color:var(--line-strong); }
.design-card.active{ border-color:var(--gold); box-shadow:0 0 0 1px var(--gold); }
.design-card.locked{ opacity:.5; cursor:not-allowed; }
.design-card.locked:hover{ border-color:var(--line); }
.design-swatch{ width:42px; height:42px; border-radius:10px; flex-shrink:0; position:relative; overflow:hidden;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08); }
.design-swatch span{ position:absolute; width:16px; height:16px; border-radius:4px; }
.design-swatch span:first-child{ left:5px; bottom:5px; }
.design-swatch span:last-child{ right:5px; top:5px; }
.design-name{ font-family:var(--font-display); font-weight:600; font-size:15px; color:var(--text); }
.design-kind{ font-size:12px; color:var(--muted); margin-top:2px; }
.design-check{ position:absolute; top:8px; right:8px; width:20px; height:20px; border-radius:50%;
  background:var(--gold); color:#3a2a04; font-weight:900; font-size:12px; display:grid; place-items:center; }
@media (max-width:460px){ .design-grid{ grid-template-columns:1fr; } }

/* ============================================================
   BOOSTS (Power-ups)  (in diesem Schritt neu)
   ============================================================ */
.boostgrid{ display:grid; gap:12px; grid-template-columns:repeat(auto-fill,minmax(270px,1fr)); }
.boost{ display:flex; align-items:center; gap:14px; background:var(--bg-1); border:1px solid var(--line);
  border-radius:16px; padding:14px 16px; box-shadow:var(--shadow); }
.boost-ic{ font-size:24px; width:46px; height:46px; display:grid; place-items:center; flex-shrink:0;
  background:var(--bg-2); border-radius:12px; }
.boost-body{ flex:1; min-width:0; }
.boost-name{ font-family:var(--font-display); font-weight:600; font-size:15px; }
.boost-count{ color:var(--gold); font-weight:800; font-size:13px; }
.boost-desc{ color:var(--muted); font-size:12.5px; margin-top:3px; }
.boost-use{ background:linear-gradient(180deg,var(--gold-soft),var(--gold)); color:#3a2a04;
  font-weight:800; font-size:13px; padding:9px 14px; border-radius:10px; white-space:nowrap; transition:.15s; }
.boost-use:hover{ filter:brightness(1.05); }
.boost-use:disabled{ opacity:.4; cursor:default; }

/* Banner für Auswahl-Modus und Zeitsprung */
.boost-banner, .timeskip-banner{ display:flex; align-items:center; gap:12px; border-radius:12px;
  padding:12px 16px; font-weight:700; font-size:14px; margin-bottom:12px; }
.boost-banner{ background:rgba(245,197,66,.14); color:var(--gold); border:1px solid var(--line-strong); }
.timeskip-banner{ background:rgba(95,227,161,.14); color:var(--green); border:1px solid rgba(95,227,161,.3); }
.banner-cancel{ margin-left:auto; background:transparent; border:1px solid currentColor; color:inherit;
  font-weight:800; font-size:12px; padding:6px 12px; border-radius:8px; cursor:pointer; }

/* Aufgabe im Auswahl-Modus / mit doppelter XP */
.qbtn.pick{ background:linear-gradient(180deg,var(--gold-soft),var(--gold)); color:#3a2a04; }
.q2badge{ display:inline-block; background:var(--gold); color:#3a2a04; font-weight:900; font-size:11px;
  padding:2px 7px; border-radius:6px; vertical-align:middle; }
.quest.boosted{ border-left-color:var(--gold); }

/* Kurze Meldung unten (Toast) */
.toast{ position:fixed; left:50%; bottom:26px; transform:translateX(-50%) translateY(20px);
  background:var(--bg-2b); color:var(--text); border:1px solid var(--line-strong); font-weight:700;
  font-size:14px; padding:12px 18px; border-radius:12px; box-shadow:var(--shadow); z-index:80;
  opacity:0; transition:.3s; pointer-events:none; max-width:90vw; text-align:center; }
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); }

/* Belohnungs-Zeile darf bei vier Kategorien umbrechen */
.rewedit{ flex-wrap:wrap; }
.typetoggle{ flex-wrap:wrap; }
