/*
 * Orbit Pioneers · Quest Design System 0.11
 *
 * Gemeinsame Anatomie, frei anpassbare Themen. Eine Quest darf Module
 * weglassen, umstellen oder ergänzen; Lesefluss, Bildschutz und Bedienung
 * bleiben dabei konsistent.
 */
.quest-series-shell{
  --quest-accent:#7f8cff;
  --quest-accent-rgb:127,140,255;
  --quest-secondary:#65e6d3;
  --quest-secondary-rgb:101,230,211;
  --quest-surface:#091630;
  --quest-surface-strong:#0d1b3d;
  --quest-copy:#c1cce7;
}

.quest-theme-thalassa{--quest-accent:#ff66e8;--quest-accent-rgb:255,102,232;--quest-secondary:#61f7ca;--quest-secondary-rgb:97,247,202;--quest-surface:#160e31;--quest-surface-strong:#1f123e}
.quest-theme-ulf{--quest-accent:#e59a64;--quest-accent-rgb:229,154,100;--quest-secondary:#69def8;--quest-secondary-rgb:105,222,248;--quest-surface:#171328;--quest-surface-strong:#20172f}
.quest-theme-pirates{--quest-accent:#ff704f;--quest-accent-rgb:255,112,79;--quest-secondary:#ffc15b;--quest-secondary-rgb:255,193,91;--quest-surface:#20101a;--quest-surface-strong:#2d1518}
.quest-theme-diner{--quest-accent:#ffb44f;--quest-accent-rgb:255,180,79;--quest-secondary:#ff69da;--quest-secondary-rgb:255,105,218;--quest-surface:#201424;--quest-surface-strong:#2b1930}
.quest-theme-probe{--quest-accent:#a890ff;--quest-accent-rgb:168,144,255;--quest-secondary:#69e5ff;--quest-secondary-rgb:105,229,255;--quest-surface:#121531;--quest-surface-strong:#191b42}

/* Gemeinsamer kompakter Seitenkopf: 16:9-Missionsmotiv und Profilbild sind
 * absichtlich getrennte Assetrollen. Das Motiv wird niemals beschnitten. */
.quest-series-hero{
  overflow:hidden;
  padding:0;
  border-color:rgba(var(--quest-accent-rgb),.48);
  background:linear-gradient(135deg,var(--quest-surface-strong),#071128 74%);
}
.quest-series-hero-visual{position:relative;margin:0;background:#030817}
.quest-series-hero-frame{width:100%;aspect-ratio:16/9;background:#030817}
.quest-series-hero-frame img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.quest-series-hero-visual figcaption{
  position:absolute;
  right:12px;
  bottom:10px;
  left:12px;
  width:max-content;
  max-width:calc(100% - 24px);
  padding:6px 9px;
  overflow-wrap:anywhere;
  border:1px solid rgba(var(--quest-secondary-rgb),.3);
  border-radius:999px;
  background:rgba(3,9,24,.8);
  color:#c6d5f1;
  font-size:9px;
  font-weight:850;
  letter-spacing:.06em;
  line-height:1.35;
  text-transform:uppercase;
  backdrop-filter:blur(7px);
}
.quest-series-hero-content{
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(320px,1.1fr);
  align-items:start;
  gap:clamp(16px,2.4vw,26px);
  padding:clamp(18px,2.7vw,27px);
  border-top:1px solid rgba(var(--quest-accent-rgb),.18);
}
.quest-series-hero-heading,.quest-series-hero-hook{min-width:0}
.quest-series-kicker{display:block;color:var(--quest-accent);font-size:10px;font-weight:950;letter-spacing:.13em;text-transform:uppercase}
.quest-series-hero-heading>p{margin:11px 0 0;color:var(--quest-copy);font-size:13px;line-height:1.58}
.quest-series-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:13px}
.quest-series-meta span{display:inline-flex;align-items:center;min-height:28px;padding:5px 8px;border:1px solid rgba(255,255,255,.15);border-radius:999px;background:rgba(3,11,31,.58);color:#c1cdea;font-size:9px;font-weight:820;line-height:1.25}
.quest-series-hero-hook{display:grid;gap:10px;padding:14px 15px;border:1px solid rgba(var(--quest-accent-rgb),.2);border-radius:14px;background:rgba(4,13,34,.45)}
.quest-series-hook{margin:0;color:#f4e9ff;font-size:14px;font-weight:780;line-height:1.5}

/* Der gleiche Fortschrittsbaustein unterstützt lineare Kapitel und eine
 * Sammlung unabhängiger Ausgänge, ohne die zugrundeliegende Spiellogik zu
 * vermischen. */
.quest-step-rail{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:9px;padding:12px}
.quest-step-rail article{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:10px;min-height:74px;padding:12px;border:1px solid rgba(119,145,213,.24);border-radius:13px;background:rgba(4,13,39,.62);opacity:.68}
.quest-step-rail article>b{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#243b78;color:#dce7ff;font-size:12px}
.quest-step-rail article>div{min-width:0}
.quest-step-rail strong,.quest-step-rail span{display:block;overflow-wrap:anywhere}
.quest-step-rail strong{color:#eef3ff;font-size:13px;line-height:1.25}
.quest-step-rail .quest-step-subtitle{margin-top:4px;color:#aebce4;font-size:12px;line-height:1.38}
.quest-step-rail article.is-current{border-color:var(--quest-accent);box-shadow:inset 0 0 28px rgba(var(--quest-accent-rgb),.12);opacity:1}
.quest-step-rail article.is-current>b{background:rgba(var(--quest-accent-rgb),.54);color:#fff}
.quest-step-rail article.is-complete{border-color:#2dd4a8;background:rgba(14,116,94,.12);opacity:1}
.quest-step-rail article.is-complete>b{background:#13876e;color:#fff}
.quest-step-rail[data-progress-mode="collection"] article:not(.is-complete){opacity:.82}

/* Einheitliche, bewusst kompakte Hauptüberschrift für Questserien. */
.quest-series-title{
  max-width:18ch;
  margin:7px 0 0;
  color:#fff;
  font-size:clamp(24px,2.6vw,30px);
  line-height:1.12;
  text-wrap:balance;
}

.quest-story-panel{
  position:relative;
  isolation:isolate;
  display:grid;
  grid-template-columns:minmax(0,1.16fr) minmax(320px,.84fr);
  overflow:hidden;
  padding:0;
  border:1px solid rgba(var(--quest-accent-rgb),.46);
  border-radius:20px;
  background:
    radial-gradient(circle at 11% 15%,rgba(var(--quest-secondary-rgb),.12),transparent 36%),
    radial-gradient(circle at 91% 12%,rgba(var(--quest-accent-rgb),.18),transparent 39%),
    linear-gradient(135deg,var(--quest-surface-strong),#071128 72%);
  box-shadow:0 18px 48px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.035);
}
.quest-story-panel::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:linear-gradient(115deg,transparent 42%,rgba(var(--quest-accent-rgb),.06),transparent 68%);
}
.quest-story-visual{
  min-width:0;
  margin:0;
  padding:clamp(13px,2vw,20px);
  display:grid;
  align-content:start;
  gap:10px;
  border-right:1px solid rgba(var(--quest-accent-rgb),.2);
  background:linear-gradient(145deg,rgba(3,9,24,.84),rgba(var(--quest-accent-rgb),.045));
}
.quest-story-visual-frame{
  position:relative;
  width:100%;
  aspect-ratio:16/9;
  overflow:hidden;
  border:1px solid rgba(var(--quest-secondary-rgb),.35);
  border-radius:15px;
  background:#030817;
  box-shadow:0 13px 30px rgba(0,0,0,.3),0 0 26px rgba(var(--quest-secondary-rgb),.08);
}
.quest-story-visual-frame img{
  width:100%;
  height:100%;
  display:block;
  object-fit:contain;
  object-position:center;
}
.quest-story-visual figcaption{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  color:#9fb1d5;
  font-size:9px;
  font-weight:850;
  letter-spacing:.07em;
  line-height:1.45;
  text-transform:uppercase;
}
.quest-story-visual figcaption::before{
  content:"";
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-radius:50%;
  background:var(--quest-secondary);
  box-shadow:0 0 12px rgba(var(--quest-secondary-rgb),.78);
}
.quest-story-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:14px;
  padding:clamp(22px,3.2vw,38px);
}
.quest-story-copy h2{margin:4px 0 0;color:#fff;font-size:clamp(24px,3vw,36px);line-height:1.08}
.quest-story-copy>p{margin:0;color:var(--quest-copy);font-size:clamp(12px,1.35vw,15px);line-height:1.7}
.quest-story-quote{
  position:relative;
  padding:14px 15px 14px 18px;
  overflow:hidden;
  border:1px solid rgba(var(--quest-secondary-rgb),.28);
  border-radius:13px;
  background:linear-gradient(115deg,rgba(var(--quest-secondary-rgb),.1),rgba(5,18,40,.82));
}
.quest-story-quote::before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--quest-secondary);box-shadow:0 0 14px rgba(var(--quest-secondary-rgb),.72)}
.quest-story-quote span{display:block;color:var(--quest-secondary);font-size:8px;font-weight:950;letter-spacing:.13em;text-transform:uppercase}
.quest-story-quote p{margin:5px 0 0;color:#e8f7ff;font-size:12px;font-weight:780;line-height:1.55}

.quest-primary-action{
  position:relative;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  min-height:68px;
  margin-top:2px;
  padding:10px 14px;
  overflow:hidden;
  border:1px solid rgba(var(--quest-secondary-rgb),.58);
  border-radius:14px;
  background:
    radial-gradient(circle at 12% 50%,rgba(var(--quest-secondary-rgb),.2),transparent 31%),
    linear-gradient(120deg,rgba(var(--quest-accent-rgb),.42),rgba(56,35,134,.88) 56%,rgba(var(--quest-secondary-rgb),.2));
  color:#fff;
  text-decoration:none;
  box-shadow:0 12px 28px rgba(var(--quest-accent-rgb),.2),inset 0 1px rgba(255,255,255,.12);
  transition:transform .18s ease,filter .18s ease,box-shadow .18s ease;
}
.quest-primary-action::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 25%,rgba(255,255,255,.13) 46%,transparent 64%);transform:translateX(-115%);transition:transform .45s ease}
.quest-primary-action:hover{transform:translateY(-2px);filter:brightness(1.08);text-decoration:none;box-shadow:0 16px 34px rgba(var(--quest-accent-rgb),.28),0 0 20px rgba(var(--quest-secondary-rgb),.11)}
.quest-primary-action:hover::after{transform:translateX(115%)}
.quest-primary-action:focus-visible{outline:2px solid var(--quest-secondary);outline-offset:3px}
.quest-primary-action-icon{position:relative;z-index:1;display:grid;place-items:center;width:40px;height:40px;border:1px solid rgba(var(--quest-secondary-rgb),.55);border-radius:12px;background:rgba(4,14,34,.52);color:var(--quest-secondary);font-size:22px;box-shadow:inset 0 0 18px rgba(var(--quest-secondary-rgb),.09)}
.quest-primary-action-copy{position:relative;z-index:1;min-width:0}
.quest-primary-action-copy small,.quest-primary-action-copy strong{display:block}
.quest-primary-action-copy small{color:#c8d8f6;font-size:8px;font-weight:950;letter-spacing:.14em;text-transform:uppercase}
.quest-primary-action-copy strong{margin-top:3px;color:#fff;font-size:13px;line-height:1.25}
.quest-primary-action-arrow{position:relative;z-index:1;color:var(--quest-secondary);font-size:24px;font-weight:700}

.quest-replay-hint{
  position:relative;
  display:grid;
  grid-template-columns:52px minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  overflow:hidden;
  padding:15px 17px;
  border-color:rgba(var(--quest-accent-rgb),.38);
  background:
    radial-gradient(circle at 4% 50%,rgba(var(--quest-secondary-rgb),.14),transparent 25%),
    linear-gradient(112deg,rgba(var(--quest-accent-rgb),.11),rgba(7,16,39,.96));
}
.quest-replay-hint::after{content:"?";position:absolute;right:11%;top:-42px;color:rgba(var(--quest-accent-rgb),.055);font-size:130px;font-weight:950;line-height:1;transform:rotate(9deg);pointer-events:none}
.quest-replay-icon{position:relative;z-index:1;display:grid;place-items:center;width:50px;height:50px;border:1px solid rgba(var(--quest-secondary-rgb),.43);border-radius:15px;background:rgba(5,17,38,.74);color:var(--quest-secondary);font-size:24px;box-shadow:0 0 24px rgba(var(--quest-secondary-rgb),.1)}
.quest-replay-copy{position:relative;z-index:1;min-width:0}
.quest-replay-copy span{display:block;color:var(--quest-accent);font-size:8px;font-weight:950;letter-spacing:.14em;text-transform:uppercase}
.quest-replay-copy strong{display:block;margin-top:3px;color:#f7f8ff;font-size:14px}
.quest-replay-copy p{margin:5px 0 0;color:#aebddd;font-size:11px;line-height:1.55}
.quest-replay-badge{position:relative;z-index:1;padding:7px 10px;border:1px solid rgba(var(--quest-accent-rgb),.36);border-radius:999px;background:rgba(var(--quest-accent-rgb),.08);color:#f1cdf0;font-size:8px;font-weight:950;letter-spacing:.08em;white-space:nowrap}

.quest-series-shell .quest-themed-action,
.quest-series-shell button.quest-themed-action{
  border:1px solid rgba(var(--quest-accent-rgb),.62);
  background:linear-gradient(135deg,rgba(var(--quest-accent-rgb),.82),rgba(80,47,164,.88));
  color:#fff;
  box-shadow:0 8px 20px rgba(var(--quest-accent-rgb),.18);
}

@media(max-width:900px){
  .quest-series-hero-content{grid-template-columns:1fr;gap:14px;padding:20px}
  .quest-story-panel{grid-template-columns:1fr}
  .quest-story-visual{border-right:0;border-bottom:1px solid rgba(var(--quest-accent-rgb),.2)}
  .quest-story-copy{padding:22px}
}

@media(max-width:560px){.quest-series-title{max-width:none;font-size:24px;line-height:1.14}}
@media(max-width:380px){.quest-series-title{font-size:23px}}

@media(max-width:620px){
  .quest-series-hero-content{gap:12px;padding:15px}
  .quest-series-hero-visual figcaption{right:8px;bottom:7px;left:8px;max-width:calc(100% - 16px);font-size:8px}
  .quest-series-hero-hook{padding:12px}
  .quest-series-hook{font-size:13px}
  .quest-series-meta span{flex:1 1 125px;justify-content:center;text-align:center}
  .quest-story-panel{border-radius:16px}
  .quest-story-visual{padding:10px;gap:8px}
  .quest-story-visual-frame{border-radius:12px}
  .quest-story-copy{gap:12px;padding:17px}
  .quest-story-copy h2{font-size:25px}
  .quest-primary-action{grid-template-columns:38px minmax(0,1fr);min-height:64px;padding:9px 11px}
  .quest-primary-action-icon{width:36px;height:36px;font-size:20px}
  .quest-primary-action-arrow{display:none}
  .quest-replay-hint{grid-template-columns:42px minmax(0,1fr);align-items:start;padding:13px}
  .quest-replay-icon{width:40px;height:40px;border-radius:12px;font-size:20px}
  .quest-replay-badge{grid-column:2;justify-self:start;margin-left:0;white-space:normal}
}

@media(max-width:720px){.quest-step-rail{grid-template-columns:1fr}.quest-step-rail article{min-height:68px}}

@media(max-width:380px){
  .quest-series-meta span{flex-basis:110px}
  .quest-step-rail{padding:9px}
  .quest-step-rail article{grid-template-columns:31px minmax(0,1fr);padding:10px}
  .quest-step-rail article>b{width:31px;height:31px}
}

@media(prefers-reduced-motion:reduce){
  .quest-primary-action{transition:none}
  .quest-primary-action::after{display:none}
}
