/* App-Shell des Login-Bereichs. Tokens nach Handoff §6.
   Schriften: der Handoff nennt Poppins und Chakra Petch; die Seite lizenziert
   Archivo, Saira Condensed und JetBrains Mono. §6 erlaubt ausdrücklich die
   vorhandenen Familien — Gewichte und Tracking bleiben wie spezifiziert. */
:root{
  --cc-bg:#08090a;
  --cc-surface:#111412;
  --cc-surface-2:#0e100e;
  --cc-line:rgba(255,255,255,.08);
  --cc-lime:#c9f23a;
  --cc-lime-hi:#dbff5e;
  --cc-cream:#f3efe3;
  --cc-muted:#8d918a;
  --cc-dim:#6f736c;
  --cc-flame:#ff9b4d;
  --cc-rare:#7fd4ff;
  --cc-epic:#c8a6ff;
  --cc-mythic:#ffd166;
  --cc-build:#ffb84d;
  --app-tabbar-h:68px;
  --app-head-h:56px;
}

/* Die Landingpage bleibt im Dokument, tritt in der Shell aber nicht in
   Erscheinung — ein Header pro Bereich (§7.2). */
/* Die Landingpage reserviert oben Platz für ihre Pill-Navigation und legt zwei
   dekorative Vollbild-Ebenen über die Seite — beides gehört nicht in die Shell. */
body.app-shell-page{padding-top:0!important;background:var(--cc-bg);color:var(--cc-cream)}
body.app-shell-page>.noise,
body.app-shell-page>.asphalt,
body.app-shell-page>.mobile-sticky-cta-sentinel{display:none!important}
body.app-shell-page>main#top,
body.app-shell-page>footer,
body.app-shell-page>.paper-tear,
body.app-shell-page>.picks-mobile-spotlight,
body.app-shell-page>.site-header,
body.app-shell-page>.profile-menu,
body.app-shell-page .story-rail{display:none!important}
body.app-shell-page #appStash{display:none!important}

.app-shell{display:flex;flex-direction:column;min-height:100dvh}
.app-shell-head{position:sticky;top:0;z-index:40;display:flex;gap:12px;align-items:center;height:var(--app-head-h);padding:0 16px;background:rgba(8,9,10,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--cc-line)}
.app-shell-brand{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:var(--cc-surface)}
.app-shell-brand img{width:20px;height:20px;display:block}
.app-shell-title{flex:1;font:800 17px/1 Archivo,system-ui,sans-serif;letter-spacing:-.03em}
.app-shell-account{display:grid;place-items:center;width:34px;height:34px;padding:0;border:0;border-radius:11px;background:var(--cc-lime);color:#08090a;font:700 12px/1 'JetBrains Mono',ui-monospace,monospace;cursor:pointer}
/* Die globale Auth-Regel in main.css setzt jedes <main> auf flex. Die Shell
   besitzt ihre eigene Routenfläche und muss diese Kaskade gezielt beenden. */
body.app-shell-page[data-app-route] .app-shell .app-shell-route{display:block;flex:1;padding:16px 16px calc(var(--app-tabbar-h) + 28px)}
.app-shell-route>section{width:100%;max-width:none}

/* Tab-Bar: 44px Hit-Targets (§6), ein zentraler Plus-Button (§3.1). */
.app-tabbar{position:fixed;left:0;right:0;bottom:0;z-index:50;display:grid;grid-template-columns:repeat(5,1fr);align-items:center;height:var(--app-tabbar-h);padding-bottom:env(safe-area-inset-bottom);background:var(--cc-surface-2);border-top:1px solid var(--cc-line)}
.app-tab{position:relative;display:grid;justify-items:center;gap:4px;min-height:44px;padding:6px 0;color:var(--cc-muted);text-decoration:none;font:600 11px/1 Archivo,system-ui,sans-serif}
.app-tab i{width:20px;height:20px;border-radius:5px;background:currentColor;-webkit-mask:var(--tab-icon) center/contain no-repeat;mask:var(--tab-icon) center/contain no-repeat}
.app-tab[data-tab-icon]{--tab-icon:none}
.app-tab i[data-tab-icon="deck"]{--tab-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M4 5h16v3H4zm0 5h16v3H4zm0 5h16v3H4z'/%3E%3C/svg%3E")}
.app-tab i[data-tab-icon="heute"]{--tab-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M12 3a9 9 0 100 18 9 9 0 000-18zm0 4v5l3 2'/%3E%3C/svg%3E")}
.app-tab i[data-tab-icon="entdecken"]{--tab-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M11 4a7 7 0 100 14 7 7 0 000-14zm5 12l4 4'/%3E%3C/svg%3E")}
.app-tab i[data-tab-icon="profil"]{--tab-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8' fill='none' stroke='%23fff' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='3' fill='%23fff'/%3E%3C/svg%3E")}
.app-tab.is-active{color:var(--cc-lime)}
.app-tab-badge{position:absolute;top:2px;right:calc(50% - 20px);min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--cc-flame);color:#08090a;font:700 11px/18px 'JetBrains Mono',ui-monospace,monospace;text-align:center}
.app-tab-badge[hidden]{display:none}
.app-tab-new{align-self:center;justify-self:center;display:grid;place-items:center;width:44px;height:44px;margin-top:-4px;border:1px solid rgba(201,242,58,.6);border-radius:14px;background:rgba(201,242,58,.12);color:var(--cc-lime);font:800 22px/1 Archivo,system-ui,sans-serif;box-shadow:none}
.app-tab-new span{margin-top:-2px}

@media(min-width:900px){
  /* Desktop ist derselbe Code mit anderem Raster (§9.6): Icon-Rail links. */
  .app-shell{display:grid;grid-template-columns:84px minmax(0,1fr);grid-template-rows:var(--app-head-h) 1fr}
  .app-shell-head{grid-column:1/-1}
  .app-tabbar{position:sticky;top:var(--app-head-h);left:auto;right:auto;bottom:auto;grid-column:1;grid-row:2;height:calc(100dvh - var(--app-head-h));grid-template-columns:1fr;grid-auto-rows:max-content;align-content:start;gap:10px;padding:18px 0;border-top:0;border-right:1px solid var(--cc-line)}
  .app-tab-new{margin:6px auto 10px;order:-1}
  .app-shell-route{grid-column:2;grid-row:2;padding:26px 32px 60px;max-width:1240px}
}

/* ---- Garage / Clubhouse ---------------------------------------------
   Eine zusammenhängende Bühne statt Dashboard plus angehängtem Heute-Feed. */
.deck-screen[hidden]{display:none!important}
.deck-screen{display:block;width:100%;max-width:1160px;margin:0 auto}
.deck-clubhouse{display:grid;grid-template-columns:minmax(300px,380px) minmax(0,1fr);min-height:620px;border:1px solid var(--cc-line);border-radius:28px;background:linear-gradient(145deg,rgba(24,29,22,.96),rgba(10,12,11,.99));box-shadow:0 28px 80px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.04);overflow:hidden}
.deck-dashboard{display:flex;min-width:0;flex-direction:column;padding:clamp(26px,3vw,38px);border-right:1px solid var(--cc-line);background:radial-gradient(circle at 10% 0,rgba(201,242,58,.13),transparent 39%)}
.deck-hero-copy{margin-bottom:28px}
.deck-eyebrow{display:block;font:700 10px/1 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase;color:var(--cc-lime)}
.deck-hero-copy h2{margin:12px 0 13px;font:900 clamp(38px,4vw,52px)/.9 Archivo,system-ui,sans-serif;letter-spacing:-.055em;text-transform:uppercase}
.deck-hero-copy p{max-width:310px;margin:0;color:var(--cc-muted);font-size:13px;line-height:1.52}

/* HUD: Level-Ring als conic-gradient = XP-Anteil (§4.1). */
.deck-hud{display:flex;gap:14px;align-items:center;margin-bottom:24px;padding-top:20px;border-top:1px solid var(--cc-line)}
.deck-hud-avatar{position:relative;display:grid;place-items:center;width:56px;height:56px;border-radius:999px;background:conic-gradient(var(--cc-lime) var(--xp-share,0%),rgba(255,255,255,.1) 0)}
.deck-hud-avatar>span{display:grid;place-items:center;width:44px;height:44px;border-radius:999px;background:var(--cc-surface);color:var(--cc-cream);font:700 14px/1 'JetBrains Mono',ui-monospace,monospace}
.deck-hud-avatar>b{position:absolute;left:50%;bottom:-9px;transform:translateX(-50%);padding:2px 7px;border-radius:999px;background:var(--cc-lime);color:#08090a;font:700 9px/1.4 'JetBrains Mono',ui-monospace,monospace;white-space:nowrap}
.deck-hud-xp{flex:1;min-width:0}
.deck-hud-row{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.deck-hud-row strong{font:800 16px/1 Archivo,system-ui,sans-serif;letter-spacing:-.03em}
.deck-hud-row span{font:600 12px/1 'JetBrains Mono',ui-monospace,monospace;color:var(--cc-muted)}
.deck-hud-bar{height:8px;margin:8px 0 5px;border-radius:999px;background:rgba(255,255,255,.1);overflow:hidden}
.deck-hud-bar i{display:block;height:100%;border-radius:999px;background:var(--cc-lime)}
.deck-hud-xp small{color:var(--cc-dim);font-size:11px}
.deck-streak{display:grid;place-items:center;padding:7px 11px;border:1px solid rgba(255,155,77,.5);border-radius:14px;color:var(--cc-flame);text-align:center}
.deck-streak strong{font:800 18px/1 Archivo,system-ui,sans-serif}
.deck-streak span{font:700 9px/1.6 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.12em;text-transform:uppercase}

/* §7.4: jede Zahl trägt ein Label. Genau drei Kennzahlen. */
.deck-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:26px}
.deck-metrics>div{display:grid;gap:5px;min-width:0;padding:13px 12px;border:1px solid var(--cc-line);border-radius:15px;background:rgba(255,255,255,.035)}
.deck-metrics span,.deck-metrics small{overflow:hidden;color:var(--cc-dim);font:700 8px/1.2 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.1em;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}
.deck-metrics strong{color:var(--cc-cream);font:800 26px/1 Archivo,system-ui,sans-serif;letter-spacing:-.04em}
.deck-metrics .deck-metric-votes strong{color:var(--cc-lime)}

.deck-stage{position:relative;display:flex;min-width:0;flex-direction:column;padding:24px;background:radial-gradient(circle at 55% 50%,rgba(201,242,58,.08),transparent 43%),linear-gradient(155deg,rgba(255,255,255,.025),transparent 62%)}
.deck-stage-head{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:34px;padding-bottom:15px;border-bottom:1px solid var(--cc-line)}
.deck-stage-head span{font:800 14px/1 Archivo,system-ui,sans-serif}
.deck-stage-head small{color:var(--cc-dim);font:700 9px/1 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.1em;text-transform:uppercase}

/* Garage-Fächer: Er zeigt exakt das vom zentralen Canvas-Renderer erzeugte
   9:16-Kartenbild. Keine zweite HTML-Interpretation des Kartendesigns. */
.deck-fan{position:relative;flex:1;min-height:500px;margin:0;touch-action:pan-y}
.deck-fan:focus-visible{outline:2px solid var(--cc-lime);outline-offset:4px;border-radius:18px}
.deck-fan-track{position:relative;height:100%;display:grid;place-items:center}
.deck-card{position:absolute;top:50%;left:50%;width:252px;border-radius:18px;background:var(--cc-surface);border:1px solid var(--cc-line);overflow:hidden;transition:transform .38s cubic-bezier(.22,1,.36,1),opacity .3s ease,filter .3s ease;cursor:pointer;transform:translate(-50%,-50%) translateX(calc(var(--offset,0) * 158px)) scale(.62) rotate(calc(var(--offset,0) * 11deg));filter:brightness(.55);opacity:1}
.deck-card.is-active{transform:translate(-50%,-50%) scale(1) rotate(0);filter:none;border-color:rgba(201,242,58,.5);box-shadow:0 0 40px rgba(201,242,58,.16)}
.deck-card[aria-hidden="true"]{opacity:0;pointer-events:none}
.deck-card-render{display:block;width:100%;aspect-ratio:9/16;object-fit:cover;background:#0b0d0b}
.deck-card-missing{display:grid;place-items:center;aspect-ratio:9/16;padding:20px;color:var(--cc-muted);font:700 11px/1.4 'JetBrains Mono',ui-monospace,monospace;text-align:center}

/* Leerer Slot: Einladung, keine Meldung (§7.5). */
.deck-slot{display:grid;place-items:center;aspect-ratio:9/16;background:none;border:1px dashed rgba(201,242,58,.36)}
.deck-slot-inner{display:grid;align-content:center;justify-items:center;gap:8px;width:100%;height:100%;padding:26px 14px;border:0;background:none;color:var(--cc-cream);cursor:pointer;text-align:center}
.deck-slot-plus{display:grid;place-items:center;width:34px;height:34px;border:1px solid rgba(201,242,58,.65);border-radius:11px;background:rgba(201,242,58,.1);color:var(--cc-lime);font:800 19px/1 Archivo,system-ui,sans-serif}
.deck-slot strong{font:800 15px/1.2 Archivo,system-ui,sans-serif}
.deck-slot small{color:var(--cc-muted);font-size:11px;line-height:1.35}
.deck-slot em{color:var(--cc-dim);font-style:normal;font:600 10px/1.4 'JetBrains Mono',ui-monospace,monospace}

.deck-dots{display:flex;gap:6px;justify-content:center;min-height:20px;margin-top:auto}
.deck-dots i{width:6px;height:6px;border-radius:999px;background:rgba(255,255,255,.22)}
.deck-dots i.is-active{width:20px;background:var(--cc-lime)}

/* Sekundäre Aktionen sind grau; die aktive Karte selbst öffnet das Detail. */
.deck-btn{min-height:48px;border:1px solid var(--cc-line);border-radius:14px;background:var(--cc-surface);color:var(--cc-cream);font:700 14px/1 Archivo,system-ui,sans-serif;cursor:pointer}
.deck-btn[disabled]{opacity:.4;cursor:default}
.deck-today{display:flex;gap:14px;align-items:center;max-width:1160px;min-height:82px;padding:14px 18px;margin:14px auto 0;border:1px solid rgba(201,242,58,.24);border-radius:20px;background:linear-gradient(110deg,rgba(201,242,58,.1),rgba(255,155,77,.05));color:inherit;text-decoration:none}
.deck-today-icon{display:grid;place-items:center;width:48px;height:48px;flex:none;border-radius:14px;background:rgba(201,242,58,.14)}
.deck-today-icon:after{content:'';width:16px;height:16px;border:2px solid var(--cc-lime);border-radius:999px;border-top-color:transparent}
.deck-today strong{display:block;margin:3px 0;font:800 16px/1.2 Archivo,system-ui,sans-serif}
.deck-today small{display:block;color:var(--cc-lime);font:700 8px/1 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.13em;text-transform:uppercase}
.deck-today em{display:block;color:var(--cc-muted);font-size:11px;font-style:normal}
.deck-today span:nth-child(2){flex:1}
.deck-today-arrow{display:grid;place-items:center;width:34px;height:34px;border:1px solid rgba(201,242,58,.25);border-radius:11px;color:var(--cc-lime)}
/* §7.6: Rechtstexte als Fußnote, nicht als Panel. */
.deck-legal{margin:14px 0 0;color:var(--cc-dim);font-size:10px;text-align:center}

@media(prefers-reduced-motion:reduce){.deck-card{transition:none}}
@media(max-width:899px){
  body.app-shell-page[data-app-route="/app"] .app-shell-route{padding:12px 12px calc(var(--app-tabbar-h) + 22px)}
  .deck-screen{max-width:480px}
  .deck-clubhouse{display:block;min-height:0;border-radius:22px}
  .deck-dashboard{padding:20px;border-right:0;border-bottom:1px solid var(--cc-line)}
  .deck-hero-copy{margin-bottom:20px}
  .deck-hero-copy h2{margin:9px 0 10px;font-size:36px}
  .deck-hero-copy p{font-size:12px}
  .deck-hud{margin-bottom:20px;padding-top:17px}
  .deck-hud-row strong{font-size:15px}
  .deck-hud-row span{font-size:10px}
  .deck-metrics{margin-bottom:18px}
  .deck-metrics>div{padding:11px 9px}
  .deck-metrics strong{font-size:24px}
  .deck-stage{min-height:0;padding:17px}
  .deck-fan{min-height:380px}
  .deck-card{width:202px;transform:translate(-50%,-50%) translateX(calc(var(--offset,0) * 126px)) scale(.6) rotate(calc(var(--offset,0) * 11deg))}
  .deck-empty{min-height:300px}
  .deck-today{min-height:76px;padding:12px 14px;margin-top:12px;border-radius:18px}
  .deck-today-icon{width:44px;height:44px}
  .deck-today strong{font-size:14px}
  .deck-today em{font-size:10px}
}

/* ---- Reveal (#3a, §3.2) --------------------------------------------- */
.reveal-screen[hidden]{display:none!important}
.reveal-screen{display:block;max-width:392px;margin:0 auto}
.reveal{text-align:center}
.reveal-eyebrow{margin:4px 0 8px;font:700 11px/1 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.14em;text-transform:uppercase;color:var(--cc-lime)}
.reveal-headline{margin:0 0 18px;font:800 clamp(30px,9vw,40px)/.95 Archivo,system-ui,sans-serif;letter-spacing:-.03em;text-transform:uppercase}
.reveal-card-wrap{position:relative;display:grid;place-items:center;min-height:340px;margin-bottom:12px;overflow:hidden}
/* Die Karte liegt hier statisch im Fluss, nicht im Fächer-Koordinatensystem. */
.reveal-card-wrap .deck-card{position:relative;top:auto;left:auto;width:224px;filter:none;border-color:rgba(201,242,58,.5);box-shadow:0 0 40px rgba(201,242,58,.16);
  transform:rotate(12deg) scale(.96);transition:transform 600ms cubic-bezier(.2,1.25,.35,1)}
.reveal.is-settled .deck-card{transform:rotate(0) scale(1)}
/* 2. Foil-Glanz wandert einmal quer (400ms). */
.reveal-foil{position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 42%,rgba(255,255,255,.42) 50%,transparent 58%);transform:translateX(-120%);opacity:0}
.reveal.is-foil .reveal-foil{animation:reveal-foil 400ms ease-out 1}
@keyframes reveal-foil{from{transform:translateX(-120%);opacity:1}to{transform:translateX(120%);opacity:1}}
.reveal-serial{margin:0 0 16px;font:700 11px/1 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.12em;text-transform:uppercase;color:var(--cc-lime)}
/* 3. Delta-Chips staffeln 80ms versetzt ein. */
.reveal-chips{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.reveal-chip{padding:12px 8px;border:1px solid var(--cc-line);border-radius:15px;background:var(--cc-surface);opacity:0;transform:translateY(10px);transition:opacity .3s ease,transform .3s ease}
.reveal-chip.is-in,.reveal.is-done .reveal-chip{opacity:1;transform:none}
.reveal-chip span{display:block;font:700 9px/1 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.12em;text-transform:uppercase;color:var(--cc-muted)}
.reveal-chip strong{display:block;margin:5px 0 2px;font:800 22px/1 Archivo,system-ui,sans-serif}
.reveal-chip em{font:700 10px/1 'JetBrains Mono',ui-monospace,monospace;font-style:normal;color:var(--cc-lime)}
/* §9b: Jagd-Hinweis statt Freischaltung. */
.reveal-hunt{display:flex;gap:11px;align-items:center;padding:12px 13px;margin-bottom:16px;border:1px solid var(--cc-line);border-radius:15px;background:var(--cc-surface);text-align:left}
.reveal-hunt>span{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:rgba(201,242,58,.14);color:var(--cc-lime)}
.reveal-hunt strong{display:block;font:800 14px/1.2 Archivo,system-ui,sans-serif}
.reveal-hunt small{color:var(--cc-muted);font-size:12px}
/* §7.1: genau ein Lime-CTA. */
.reveal-cta{width:100%;min-height:56px;margin-bottom:10px;border:0;border-radius:16px;background:var(--cc-lime);color:#08090a;font:800 17px/1 Archivo,system-ui,sans-serif;cursor:pointer;box-shadow:0 0 40px rgba(201,242,58,.16)}
.reveal-secondary{display:grid;grid-template-columns:1fr 1fr;gap:10px}
/* 5. Flug in den leeren Slot des Fächers. */
.reveal-card-wrap .deck-card.is-flying{transition:transform 420ms cubic-bezier(.55,0,.6,1),opacity 420ms ease;transform:translate(38%,-46%) scale(.34) rotate(9deg);opacity:.15}
@media(prefers-reduced-motion:reduce){
  .reveal-card-wrap .deck-card,.reveal-chip,.reveal-card-wrap .deck-card.is-flying{transition:none;transform:none;opacity:1}
  .reveal.is-foil .reveal-foil{animation:none}
}

/* ---- Kartendetail (#3b, §4.3) --------------------------------------- */
.cardx-screen[hidden]{display:none!important}
.cardx-screen{display:block;max-width:392px;margin:0 auto}
.cardx-top{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:12px}
.cardx-back{padding:0;border:0;background:none;color:var(--cc-lime);font:800 15px/1 Archivo,system-ui,sans-serif;cursor:pointer}
.cardx-count{font:700 10px/1 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.12em;text-transform:uppercase;color:var(--cc-muted)}
.cardx-card{display:grid;place-items:center;margin-bottom:16px}
.cardx-card .deck-card{position:relative;top:auto;left:auto;width:216px;filter:none;transform:none}
/* §4.3: Umschalter Serie/Build. Der aktive Zustand ist der einzige Lime-Akzent
   in diesem Block — der CTA unten bleibt der eine Lime-CTA des Screens (§7.1). */
.cardx-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:5px;margin-bottom:12px;border-radius:16px;background:var(--cc-surface)}
.cardx-switch button{min-height:44px;border:0;border-radius:12px;background:none;color:var(--cc-muted);font:700 14px/1 Archivo,system-ui,sans-serif;cursor:pointer}
.cardx-switch button[aria-selected="true"]{background:var(--cc-lime);color:#08090a}
.cardx-rule{margin:0 0 14px;color:var(--cc-muted);font-size:13px;line-height:1.45}
.cardx-panel{padding:14px;margin-bottom:12px;border:1px solid var(--cc-line);border-radius:16px;background:var(--cc-surface)}
.cardx-panel[hidden]{display:none}
.cardx-panel-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:12px}
.cardx-link{padding:0;border:0;background:none;color:var(--cc-lime);font:700 13px/1 Archivo,system-ui,sans-serif;cursor:pointer}
.cardx-bar{margin-bottom:12px}
.cardx-bar-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:6px}
.cardx-bar-head span{font-size:14px;color:var(--cc-cream)}
.cardx-bar-head strong{font:700 15px/1 'JetBrains Mono',ui-monospace,monospace}
.cardx-bar i{display:block;height:5px;border-radius:999px;background:rgba(255,255,255,.1);overflow:hidden}
.cardx-bar b{display:block;height:100%;border-radius:999px;background:var(--cc-lime)}
.cardx-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}
.cardx-chips span{padding:7px 11px;border:1px solid var(--cc-line);border-radius:999px;font:700 11px/1 'JetBrains Mono',ui-monospace,monospace;color:var(--cc-muted)}
.cardx-build-head{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:11px}
.cardx-build.is-empty .cardx-build-chips span{border-style:dashed;color:var(--cc-dim)}
.cardx-build-chips{display:flex;flex-wrap:wrap;gap:7px}
.cardx-build-chips span{padding:7px 11px;border:1px solid var(--cc-line);border-radius:999px;font-size:12px;color:var(--cc-muted)}
.cardx-build-chips.is-filled span{border-color:rgba(255,184,77,.4);color:var(--cc-build)}
.cardx-delta{margin:0 0 10px;font:700 17px/1 'JetBrains Mono',ui-monospace,monospace}
.cardx-delta em{color:var(--cc-build);font-style:normal}
.cardx-proof{margin:10px 0 0;font:700 10px/1.4 'JetBrains Mono',ui-monospace,monospace;letter-spacing:.1em;text-transform:uppercase;color:var(--cc-build)}
.cardx-actions{display:grid;grid-template-columns:1fr auto auto;gap:9px}
.cardx-cta{min-height:52px;border:0;border-radius:15px;background:var(--cc-lime);color:#08090a;font:800 15px/1 Archivo,system-ui,sans-serif;cursor:pointer}
.cardx-icon{width:52px;min-height:52px;border:1px solid var(--cc-line);border-radius:15px;background:var(--cc-surface);color:var(--cc-cream);font-size:17px;cursor:pointer}
@media(min-width:900px){.cardx-screen{max-width:560px}.cardx-card .deck-card{width:264px}}

/* ---- Heute (#2b, §4.2) ---------------------------------------------- */
.heute-screen[hidden]{display:none!important}
.heute-screen{display:block;max-width:392px;margin:0 auto}
.heute-top{display:flex;gap:12px;align-items:flex-start;justify-content:space-between;margin-bottom:14px}
.heute-title{margin:6px 0 0;font:800 40px/.9 Archivo,system-ui,sans-serif;letter-spacing:-.03em;text-transform:uppercase}
.heute-week{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-bottom:16px}
.heute-week span{display:grid;place-items:center;min-height:44px;border:1px solid var(--cc-line);border-radius:13px;font:700 11px/1 'JetBrains Mono',ui-monospace,monospace;color:var(--cc-dim)}
.heute-week span.is-filled{border-color:rgba(201,242,58,.45);background:rgba(201,242,58,.1);color:var(--cc-lime)}
.heute-week span.is-today{background:var(--cc-lime);border-color:var(--cc-lime);color:#08090a}
.heute-card{padding:14px;margin-bottom:12px;border:1px solid var(--cc-line);border-radius:17px;background:var(--cc-surface)}
/* §4.2: Erledigtes rutscht nach unten und wird abgehakt, nicht entfernt. */
.heute-card.is-done{order:2;opacity:.62}
.heute-card.is-done .heute-meta:after{content:' ✓';color:var(--cc-lime)}
.heute-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:11px}
.heute-meta{font:700 11px/1 'JetBrains Mono',ui-monospace,monospace;color:var(--cc-lime)}
.heute-empty{margin:0;color:var(--cc-muted);font-size:13px}
.heute-note{display:block;margin-top:9px;color:var(--cc-dim);font-size:12px;line-height:1.4}
.heute-duel{display:grid;grid-template-columns:1fr auto 1fr;gap:9px;align-items:center}
.heute-duel-side{display:grid;gap:6px;padding:8px;border:1px solid var(--cc-line);border-radius:14px;background:rgba(255,255,255,.02);color:var(--cc-cream);text-align:left;cursor:pointer}
.heute-duel-side img{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:9px;display:block}
.heute-duel-side strong{font:700 13px/1.2 Archivo,system-ui,sans-serif}
.heute-duel-side span{font:700 14px/1 'JetBrains Mono',ui-monospace,monospace;color:var(--cc-muted)}
.heute-duel-side.is-picked{border-color:var(--cc-lime)}
.heute-duel-side.is-picked span{color:var(--cc-lime)}
.heute-duel-side[disabled]{cursor:default}
.heute-vs{font:800 13px/1 Archivo,system-ui,sans-serif;color:var(--cc-muted)}
.heute-mission{display:block;font:800 17px/1.25 Archivo,system-ui,sans-serif;letter-spacing:-.02em}
.heute-progress{height:5px;margin:11px 0 0;border-radius:999px;background:rgba(255,255,255,.1);overflow:hidden}
.heute-progress i{display:block;height:100%;border-radius:999px;background:var(--cc-lime);transition:width .4s ease}
.heute-league-row{display:grid;grid-template-columns:26px 1fr auto;gap:10px;align-items:center;padding:9px 10px;margin-bottom:6px;border-radius:12px;background:rgba(255,255,255,.03);font-size:14px}
.heute-league-row span{font:700 12px/1 'JetBrains Mono',ui-monospace,monospace;color:var(--cc-muted)}
.heute-league-row em{font:700 13px/1 'JetBrains Mono',ui-monospace,monospace;font-style:normal}
.heute-league-row.is-me{background:rgba(201,242,58,.12);color:var(--cc-lime)}
.heute-league-row.is-me span,.heute-league-row.is-me em{color:var(--cc-lime)}
@media(min-width:900px){.heute-screen{max-width:560px}}

/* Unter 900px bleibt Heute eine eigenständige, vollständige Route. */
@media(max-width:899px){
  /* v179 blendete diese Landingpage-Module auf kleinen Screens aus. Innerhalb
     der eigenständigen Heute-Route sind sie wieder der eigentliche Inhalt. */
  body.app-shell-page[data-app-route="/app/heute"] .heute-screen>#dailyChallenge{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0 0 12px!important}
}

/* Die Garage ist auf jeder Breite ein eigener Screen. Heute bleibt über den
   kompakten Teaser erreichbar und belegt keine zweite Spalte mehr. */
body.app-shell-page[data-app-route="/app"] .app-shell .app-shell-route{display:block!important;width:100%;max-width:1280px;margin:0 auto}
body.app-shell-page[data-app-route="/app"] .deck-screen{max-width:1160px}
body.app-shell-page[data-app-route="/app"] .deck-today{display:flex}
body.app-shell-page[data-app-route="/app"] .heute-screen{display:none!important}

/* Profil ist in der App eine normale Route, kein modaler Figure-3-Drawer.
   Die vorhandenen Account-Funktionen bleiben erhalten, folgen hier aber dem
   zentrierten CARCOUNT-Raster und denselben Oberflächen wie Garage und Spiel. */
body.app-shell-page[data-app-route="/app/profil"]{overflow:auto!important;overscroll-behavior:auto!important}
body.app-shell-page[data-app-route="/app/profil"]:after{display:none!important}
body.app-shell-page[data-app-route="/app/profil"] .app-shell-route{width:100%;max-width:1240px;margin:0 auto}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter:not([hidden]){position:relative!important;inset:auto!important;z-index:auto!important;width:100%!important;max-width:1160px!important;height:auto!important;min-height:calc(100dvh - var(--app-head-h) - 86px)!important;margin:0 auto!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;backdrop-filter:none!important;overflow:visible!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter:before{display:none!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-shell{position:relative!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important;width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;backdrop-filter:none!important;overflow:visible!important;clip-path:none!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-shell:before,
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-shell:after,
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-content:before{display:none!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav{position:relative!important;inset:auto!important;order:1!important;display:grid!important;grid-template-columns:minmax(180px,auto) minmax(0,1fr) auto!important;align-items:center!important;gap:14px!important;width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;margin:0!important;padding:14px!important;border:1px solid var(--cc-line)!important;border-radius:20px!important;background:linear-gradient(145deg,rgba(25,30,23,.88),rgba(12,14,15,.98))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important;backdrop-filter:none!important;overflow:visible!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-brand,
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav-heading,
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-garage-note,
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-close{display:none!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-identity{display:flex!important;align-items:center!important;gap:10px!important;width:auto!important;margin:0!important;padding:8px 10px!important;border:0!important;border-radius:14px!important;background:rgba(255,255,255,.045)!important;box-shadow:none!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-avatar{width:38px!important;height:38px!important;flex:0 0 38px!important;border-radius:12px!important;background:var(--cc-lime)!important;color:#08090a!important;font-size:12px!important;box-shadow:none!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-identity strong{font-size:14px!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-identity small{max-width:180px!important;margin-top:3px!important;font-size:10px!important;color:var(--cc-muted)!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav-list{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;width:100%!important;overflow:visible!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav-list button{display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;align-items:center!important;gap:7px!important;width:100%!important;min-width:0!important;min-height:48px!important;padding:0 10px!important;border:1px solid transparent!important;border-radius:14px!important;background:rgba(255,255,255,.035)!important;color:var(--cc-muted)!important;font:700 11px/1.15 Archivo,system-ui,sans-serif!important;letter-spacing:0!important;text-align:left!important;transform:none!important;box-shadow:none!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav-list button>span{display:grid!important;place-items:center!important;width:24px!important;height:24px!important;border-radius:7px!important;background:rgba(255,255,255,.06)!important;color:var(--cc-dim)!important;font:700 8px/1 'JetBrains Mono',monospace!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav-list button:hover,
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav-list button.active{border-color:rgba(201,242,58,.32)!important;background:rgba(201,242,58,.11)!important;color:var(--cc-cream)!important;transform:none!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav-list button.active>span{background:var(--cc-lime)!important;color:#08090a!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav-foot{display:block!important;width:auto!important;margin:0!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-logout{width:auto!important;min-height:44px!important;padding:0 13px!important;border:1px solid var(--cc-line)!important;border-radius:13px!important;background:rgba(255,255,255,.04)!important;color:var(--cc-muted)!important;white-space:nowrap!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-content{position:relative!important;inset:auto!important;order:2!important;width:100%!important;max-width:none!important;height:auto!important;min-height:600px!important;margin:0!important;padding:clamp(26px,4vw,46px)!important;border:1px solid var(--cc-line)!important;border-radius:24px!important;background:radial-gradient(circle at 8% 0,rgba(201,242,58,.09),transparent 34%),linear-gradient(145deg,rgba(25,30,23,.84),rgba(12,14,15,.98))!important;box-shadow:0 24px 70px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.04)!important;backdrop-filter:none!important;overflow:visible!important;scrollbar-gutter:auto!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-page{position:relative!important;max-width:840px!important;margin:0 auto!important;padding:0!important;outline:none!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-page>.eyebrow{margin:0 0 10px!important;color:var(--cc-lime)!important;font-size:9px!important;letter-spacing:.16em!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-page h2{max-width:720px!important;margin:0 0 12px!important;font-size:clamp(34px,4vw,48px)!important;line-height:.94!important;letter-spacing:-.04em!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-page-lead{max-width:680px!important;margin:0 0 24px!important;color:var(--cc-muted)!important;font-size:14px!important;line-height:1.5!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-profile-form,
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-empty-state,
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-toggle-list,
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-settings-card{width:100%!important;max-width:760px!important;padding:20px!important;border:1px solid var(--cc-line)!important;border-radius:19px!important;background:rgba(255,255,255,.045)!important;box-shadow:none!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-profile-form{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-profile-form input,
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-profile-form textarea{min-height:50px!important;border-radius:12px!important;background:var(--cc-surface-2)!important;border-color:var(--cc-line)!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-profile-form textarea{min-height:104px!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-profile-form button,
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-settings-card button{min-height:48px!important;border-radius:13px!important;background:var(--cc-lime)!important;color:#08090a!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-toggle-list label{min-height:64px!important;padding:14px!important;border-radius:15px!important;background:rgba(255,255,255,.035)!important}

@media(max-width:899px){
  body.app-shell-page[data-app-route="/app/profil"] .app-shell-route{padding-inline:12px}
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter:not([hidden]){min-height:auto!important}
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-shell{gap:12px!important}
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav{grid-template-columns:1fr!important;gap:10px!important;padding:12px!important;border-radius:18px!important}
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-identity{display:none!important}
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav-list{grid-template-columns:1fr 1fr!important;gap:7px!important}
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav-list button{justify-content:start!important;min-height:44px!important;font-size:11px!important}
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav-foot{display:none!important}
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-content{min-height:0!important;padding:20px!important;border-radius:20px!important}
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-page h2{font-size:32px!important}
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-page-lead{font-size:13px!important}
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-profile-form{grid-template-columns:1fr!important;padding:14px!important}
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-profile-form>label,
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-profile-form>.account-form-grid,
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-profile-form>button,
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-profile-form>.fineprint{grid-column:1!important}
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-form-grid{grid-template-columns:1fr!important}
}

/* Anmeldeschranke des Login-Bereichs. */
.app-gate{display:grid;justify-items:center;gap:14px;max-width:392px;margin:12vh auto 0;text-align:center}
.app-gate h2{margin:0;font:800 clamp(30px,8vw,40px)/.95 Archivo,system-ui,sans-serif;letter-spacing:-.03em;text-transform:uppercase}
.app-gate-copy{margin:0;color:var(--cc-muted);font-size:15px;line-height:1.5}
.app-gate .reveal-cta{width:100%;margin:6px 0 0}
.app-gate-back{display:grid;place-items:center;width:100%;min-height:48px;text-decoration:none;color:var(--cc-cream)}

/* v14: ein gemeinsames Clubhouse-System für alle App-Routen. Die Garage ist
   die visuelle Referenz; Heute, Entdecken und Profil übernehmen ihre Bühne,
   Typografie, Radien und ruhige Oberflächen. */
:root{
  --app-head-h:64px;
  --app-tabbar-h:74px;
  --app-content-max:1180px;
  --app-radius:28px;
  --app-surface:linear-gradient(145deg,rgba(24,29,22,.96),rgba(10,12,11,.99));
  --app-surface-soft:linear-gradient(145deg,rgba(25,30,23,.82),rgba(12,14,15,.97));
  --app-shadow:0 28px 80px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.04);
}
body.app-shell-page{font-family:Archivo,system-ui,sans-serif}
.app-shell-head{height:var(--app-head-h);padding:0 18px;gap:13px;background:linear-gradient(90deg,rgba(9,11,10,.97),rgba(12,13,12,.92));backdrop-filter:blur(18px);box-shadow:0 12px 36px rgba(0,0,0,.16)}
.app-shell-brand,.app-shell-account{width:40px;height:40px;border-radius:13px}
.app-shell-brand{border:1px solid rgba(255,255,255,.055);background:rgba(255,255,255,.04)}
.app-shell-brand img{width:23px;height:23px}
.app-shell-title{font-size:18px;letter-spacing:-.035em}
.app-shell-account{box-shadow:0 0 34px rgba(201,242,58,.11);transition:transform .2s ease,box-shadow .2s ease}
.app-shell-account:hover{transform:translateY(-1px);box-shadow:0 0 34px rgba(201,242,58,.2)}
.app-tabbar{height:var(--app-tabbar-h);background:rgba(11,13,12,.96);backdrop-filter:blur(18px)}
.app-tab{gap:5px;min-height:50px;padding:8px 4px;border-radius:14px;font-size:11px;transition:color .18s ease,background .18s ease,transform .18s ease}
.app-tab i{width:21px;height:21px}
.app-tab.is-active{background:linear-gradient(180deg,rgba(201,242,58,.105),rgba(201,242,58,.025));color:var(--cc-lime)}
.app-tab:focus-visible{outline:2px solid var(--cc-lime);outline-offset:2px}

/* Heute --------------------------------------------------------------- */
body.app-shell-page[data-app-route="/app/heute"] .app-shell-route{width:100%;max-width:none;margin:0 auto}
.heute-screen{width:100%;max-width:var(--app-content-max);margin:0 auto}
.heute-hero{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:26px;padding:clamp(28px,4vw,48px);margin-bottom:18px;border:1px solid var(--cc-line);border-radius:var(--app-radius);background:radial-gradient(circle at 12% 0,rgba(201,242,58,.16),transparent 35%),radial-gradient(circle at 90% 12%,rgba(255,155,77,.09),transparent 30%),var(--app-surface);box-shadow:var(--app-shadow);overflow:hidden}
.heute-hero-copy{min-width:0}
.heute-title{margin:14px 0 14px;font:900 clamp(52px,7vw,86px)/.82 Archivo,system-ui,sans-serif;letter-spacing:-.065em;text-transform:uppercase}
.heute-hero-copy>p{max-width:620px;margin:0;color:var(--cc-muted);font-size:clamp(14px,1.45vw,17px);line-height:1.5}
.heute-hero>.deck-streak{align-self:start;min-width:100px;padding:15px 17px;border-radius:18px;background:rgba(255,155,77,.065)}
.heute-hero>.deck-streak strong{font-size:30px}
.heute-week-wrap{grid-column:1/-1;display:grid;grid-template-columns:145px minmax(0,1fr);align-items:center;gap:18px;padding-top:24px;border-top:1px solid var(--cc-line)}
.heute-week-label{display:grid;gap:5px}
.heute-week-label span{font:800 14px/1 Archivo,system-ui,sans-serif}
.heute-week-label small{color:var(--cc-dim);font:700 9px/1 'JetBrains Mono',monospace;letter-spacing:.11em;text-transform:uppercase}
.heute-week{gap:9px;margin:0}
.heute-week span{min-height:50px;border-radius:15px;font-size:11px;background:rgba(255,255,255,.025)}
.heute-board{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,.72fr);align-items:start;gap:18px}
.heute-side-stack{display:flex;order:1;flex-direction:column;gap:12px}
.heute-side-stack .heute-card{margin:0}
.heute-card{padding:20px;border-radius:20px;background:var(--app-surface-soft);box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
.heute-head{margin-bottom:15px}
.heute-mission{font-size:20px}
body.app-shell-page[data-app-route="/app/heute"] #dailyChallenge{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:clamp(22px,2.6vw,32px)!important;border-color:var(--cc-line)!important;border-radius:24px!important;background:var(--app-surface)!important;box-shadow:var(--app-shadow)!important}
body.app-shell-page.is-authenticated:not(.shared-card-page):not(.public-garage-page)[data-app-route="/app/heute"] #dailyChallenge{display:block!important;order:0!important;width:100%!important;max-width:none!important;margin:0!important;padding:clamp(22px,2.6vw,32px)!important;border-radius:24px!important}
body.app-shell-page[data-app-route="/app/heute"] #dailyChallenge>.section-head{margin:0 0 20px!important;text-align:left!important}
body.app-shell-page[data-app-route="/app/heute"] #dailyChallenge>.section-head h2{max-width:700px!important;margin:8px 0 10px!important;font:900 clamp(34px,4.2vw,54px)/.9 Archivo,system-ui,sans-serif!important;letter-spacing:-.055em!important;text-transform:uppercase!important}
body.app-shell-page[data-app-route="/app/heute"] #dailyChallenge>.section-head>p:last-child{max-width:620px!important;margin:0!important;color:var(--cc-muted)!important;font-size:13px!important;line-height:1.45!important}
body.app-shell-page[data-app-route="/app/heute"] #dailyChallenge .daily-shell{grid-template-columns:minmax(220px,.9fr) minmax(260px,1.1fr)!important;gap:20px!important}
body.app-shell-page[data-app-route="/app/heute"] #dailyChallenge .daily-image-wrap,
body.app-shell-page[data-app-route="/app/heute"] #dailyChallenge .daily-image-wrap img{min-height:300px!important}
body.app-shell-page[data-app-route="/app/heute"] #dailyChallenge .daily-play input{min-height:48px;border-radius:13px;background:#101311}
body.app-shell-page[data-app-route="/app/heute"] #dailyChallenge .card-cta{min-height:52px;border-radius:14px}
.heute-curation{margin-top:18px}
body.app-shell-page[data-app-route="/app/heute"] #picksChallenge{display:grid!important;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important;gap:26px!important;width:100%!important;max-width:none!important;min-height:0!important;margin:0!important;padding:clamp(24px,3vw,38px)!important;border:1px solid var(--cc-line)!important;border-radius:var(--app-radius)!important;background:radial-gradient(circle at 100% 0,rgba(201,242,58,.09),transparent 34%),var(--app-surface-soft)!important;box-shadow:none!important}
body.app-shell-page[data-app-route="/app/heute"] #picksChallenge h2{margin:10px 0 0!important;font:900 clamp(34px,4vw,52px)/.92 Archivo,system-ui,sans-serif!important;letter-spacing:-.05em!important}
body.app-shell-page[data-app-route="/app/heute"] #picksChallenge .challenge-copy{grid-template-columns:1fr 1fr!important;gap:8px!important;margin-top:18px!important}
body.app-shell-page[data-app-route="/app/heute"] #picksChallenge .challenge-copy p{padding:12px 13px!important;border-radius:13px!important;font-size:11px!important}
body.app-shell-page[data-app-route="/app/heute"] #picksChallenge .leaderboard{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important}
body.app-shell-page[data-app-route="/app/heute"] #picksChallenge .leaderboard>div{min-height:92px!important;padding:14px!important;border-radius:16px!important}
body.app-shell-page[data-app-route="/app/heute"] #picksChallenge .leaderboard>div:first-child{grid-column:1/-1!important}

/* Entdecken ----------------------------------------------------------- */
body.app-shell-page[data-app-route="/app/entdecken"] .app-shell-route{width:100%;max-width:none;margin:0 auto}
body.app-shell-page[data-app-route="/app/entdecken"] #explore{width:100%!important;max-width:var(--app-content-max)!important;margin:0 auto!important;padding:0!important;background:none!important}
body.app-shell-page[data-app-route="/app/entdecken"] #explore>.section-head{position:relative;margin:0 0 18px!important;padding:clamp(30px,4.2vw,50px)!important;border:1px solid var(--cc-line);border-radius:var(--app-radius);background:radial-gradient(circle at 85% 0,rgba(201,242,58,.14),transparent 34%),radial-gradient(circle at 5% 100%,rgba(255,155,77,.09),transparent 35%),var(--app-surface);box-shadow:var(--app-shadow);overflow:hidden;text-align:left!important}
body.app-shell-page[data-app-route="/app/entdecken"] #explore>.section-head h2{max-width:900px;margin:14px 0 14px!important;font:900 clamp(50px,6.6vw,82px)/.84 Archivo,system-ui,sans-serif!important;letter-spacing:-.068em!important;text-transform:uppercase!important}
body.app-shell-page[data-app-route="/app/entdecken"] #explore>.section-head>p:last-child{max-width:660px;margin:0!important;color:var(--cc-muted)!important;font-size:clamp(14px,1.4vw,17px)!important;line-height:1.5!important}
body.app-shell-page[data-app-route="/app/entdecken"] .discovery-shell{gap:16px;max-width:none}
body.app-shell-page[data-app-route="/app/entdecken"] .discovery-search{padding:20px;border-radius:22px;background:var(--app-surface-soft);box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}
body.app-shell-page[data-app-route="/app/entdecken"] .discovery-featured,
body.app-shell-page[data-app-route="/app/entdecken"] .discovery-results{border-radius:24px;background:rgba(255,255,255,.018)}
body.app-shell-page[data-app-route="/app/entdecken"] .discovery-garage-card,
body.app-shell-page[data-app-route="/app/entdecken"] .discovery-car-card{transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}
body.app-shell-page[data-app-route="/app/entdecken"] .discovery-garage-card:hover,
body.app-shell-page[data-app-route="/app/entdecken"] .discovery-car-card:hover{transform:translateY(-3px);border-color:rgba(201,242,58,.32);box-shadow:0 20px 48px rgba(0,0,0,.26)}

/* Profil: Identität + segmentierte, horizontale Command-Bar. ------------- */
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav{grid-template-columns:minmax(190px,auto) minmax(0,1fr) auto!important;gap:18px!important;padding:12px!important;border-radius:22px!important;background:var(--app-surface-soft)!important;box-shadow:0 18px 48px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.04)!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-identity{padding:7px 9px!important;border-right:1px solid var(--cc-line)!important;border-radius:12px!important;background:none!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-avatar{width:42px!important;height:42px!important;flex-basis:42px!important;border-radius:13px!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav-list{display:flex!important;grid-template-columns:none!important;gap:6px!important;padding:5px!important;border-radius:17px!important;background:rgba(0,0,0,.22)!important;overflow-x:auto!important;scrollbar-width:none!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav-list::-webkit-scrollbar{display:none}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav-list button{display:flex!important;grid-template-columns:none!important;justify-content:center!important;gap:8px!important;min-width:max-content!important;min-height:46px!important;padding:0 13px!important;border-radius:13px!important;background:transparent!important;font-size:12px!important;text-align:center!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav-list button>span{width:22px!important;height:22px!important;flex:none!important;border-radius:7px!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav-list button.active{border-color:transparent!important;background:var(--cc-lime)!important;color:#08090a!important;box-shadow:0 8px 24px rgba(201,242,58,.14)!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav-list button.active>span{background:rgba(8,9,10,.13)!important;color:#08090a!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-logout{min-height:46px!important;border-radius:14px!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-content{min-height:640px!important;padding:clamp(30px,4.5vw,54px)!important;border-radius:var(--app-radius)!important;background:radial-gradient(circle at 8% 0,rgba(201,242,58,.12),transparent 32%),radial-gradient(circle at 92% 12%,rgba(255,155,77,.06),transparent 28%),var(--app-surface)!important;box-shadow:var(--app-shadow)!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-page{max-width:880px!important;margin:0!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-page h2{max-width:820px!important;margin:12px 0 16px!important;font:900 clamp(48px,6.2vw,76px)/.85 Archivo,system-ui,sans-serif!important;letter-spacing:-.062em!important;text-transform:uppercase!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-page-lead{max-width:700px!important;margin-bottom:30px!important;font-size:16px!important;line-height:1.55!important}
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-profile-form,
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-empty-state,
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-toggle-list,
body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-settings-card{max-width:800px!important;padding:24px!important;border-radius:21px!important;background:rgba(255,255,255,.045)!important}

@media(min-width:900px){
  .app-shell{grid-template-columns:92px minmax(0,1fr)}
  .app-tabbar{gap:7px;padding:20px 10px}
  .app-tab{width:70px;margin:0 auto;padding:9px 5px}
  body.app-shell-page[data-app-route] .app-shell .app-shell-route{max-width:none;padding:30px clamp(28px,3vw,52px) 64px}
}

@media(max-width:899px){
  .app-shell-head{padding:0 14px}
  body.app-shell-page[data-app-route] .app-shell .app-shell-route{padding:14px 12px calc(var(--app-tabbar-h) + 24px)}
  .app-tabbar{padding-inline:5px}
  .app-tab{font-size:10.5px}
  .heute-hero{grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:24px 20px;border-radius:22px}
  .heute-title{font-size:52px}
  .heute-hero-copy>p{font-size:13px}
  .heute-hero>.deck-streak{min-width:74px;padding:11px 10px}
  .heute-hero>.deck-streak strong{font-size:24px}
  .heute-week-wrap{grid-template-columns:1fr;gap:12px;padding-top:18px}
  .heute-week-label{display:flex;align-items:center;justify-content:space-between}
  .heute-week span{min-height:44px;border-radius:13px}
  .heute-board{grid-template-columns:1fr;gap:12px}
  .heute-card{padding:17px;border-radius:18px}
  body.app-shell-page[data-app-route="/app/heute"] #dailyChallenge{padding:19px!important;border-radius:21px!important}
  body.app-shell-page[data-app-route="/app/heute"] #dailyChallenge>.section-head h2{font-size:36px!important}
  body.app-shell-page[data-app-route="/app/heute"] #dailyChallenge .daily-shell{grid-template-columns:1fr!important}
  body.app-shell-page[data-app-route="/app/heute"] #dailyChallenge .daily-image-wrap,
  body.app-shell-page[data-app-route="/app/heute"] #dailyChallenge .daily-image-wrap img{min-height:240px!important}
  body.app-shell-page[data-app-route="/app/heute"] #picksChallenge{display:none!important}

  body.app-shell-page[data-app-route="/app/entdecken"] #explore>.section-head{padding:28px 22px!important;border-radius:22px}
  body.app-shell-page[data-app-route="/app/entdecken"] #explore>.section-head h2{font-size:clamp(44px,13vw,58px)!important}
  body.app-shell-page[data-app-route="/app/entdecken"] .discovery-search{padding:15px;border-radius:19px}
  body.app-shell-page[data-app-route="/app/entdecken"] .discovery-search>div{grid-template-columns:1fr!important}
  body.app-shell-page[data-app-route="/app/entdecken"] .discovery-search button{width:100%}

  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav{position:sticky!important;top:calc(var(--app-head-h) + 8px)!important;z-index:12!important;display:block!important;padding:8px!important;border-radius:18px!important}
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-identity,
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav-foot{display:none!important}
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav-list{display:flex!important;gap:5px!important;padding:4px!important}
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav-list button{width:auto!important;flex:0 0 auto!important;min-width:max-content!important;min-height:43px!important;padding:0 13px!important;font-size:11px!important}
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav-list button>span{display:none!important}
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-content{padding:28px 20px!important;border-radius:22px!important}
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-page h2{font-size:clamp(42px,12.5vw,54px)!important}
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-page-lead{font-size:14px!important}
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-profile-form,
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-empty-state,
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-toggle-list,
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-settings-card{padding:16px!important;border-radius:18px!important}
}

@media(max-width:420px){
  .app-shell-title{font-size:16px}
  .heute-hero{grid-template-columns:1fr}
  .heute-hero>.deck-streak{justify-self:start;display:flex;gap:7px;min-width:0;align-items:baseline}
  .heute-week{gap:5px}
  .heute-week span{min-height:40px;font-size:9px}
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav-list button{gap:6px;padding:0 10px!important}
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav-list button>span{display:none!important}
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-page h2{max-width:100%!important;font-size:42px!important;line-height:.88!important;overflow-wrap:anywhere!important}
}

/* v15: Verbindliche Seiten-Schablone. Alle fünf Hauptnavigationen benutzen
   denselben Außenrahmen und dieselbe Typohierarchie. Route-spezifische Regeln
   dürfen nur noch den Inhalt innerhalb dieser Bühne gestalten. */
:root{
  --app-content-max:1160px;
  --app-frame-max:1160px;
  --app-frame-radius:28px;
  --app-frame-padding:clamp(34px,3.5vw,46px);
  --app-page-title-size:clamp(52px,4.45vw,64px);
  --app-page-title-line:.86;
  --app-page-lead-size:15px;
}
body.app-shell-page[data-app-route] .app-shell .app-shell-route>:is(#deckScreen,#heuteScreen,#quartettScreen,#explore,#accountCenter){
  width:min(100%,var(--app-frame-max))!important;
  max-width:var(--app-frame-max)!important;
  margin-right:auto!important;
  margin-left:auto!important;
}
body.app-shell-page.is-authenticated:not(.shared-card-page):not(.public-garage-page)[data-app-route="/app/entdecken"] .app-shell .app-shell-route>#explore{
  padding:0!important;
  border-radius:0!important;
  overflow:visible!important;
}
body.app-shell-page .app-shell-route,
body.app-shell-page .app-shell-route button,
body.app-shell-page .app-shell-route input,
body.app-shell-page .app-shell-route select,
body.app-shell-page .app-shell-route textarea{font-family:Archivo,system-ui,sans-serif}
body.app-shell-page .app-shell-route em,
body.app-shell-page .app-shell-route .picks-mark{font-style:normal!important}

body.app-shell-page[data-app-route] .app-shell-route :is(.deck-clubhouse,.heute-hero,#explore>.section-head,#accountCenter .account-center-content,.quartett-setup){
  border-color:var(--cc-line)!important;
  border-radius:var(--app-frame-radius)!important;
  box-shadow:var(--app-shadow)!important;
}
body.app-shell-page[data-app-route] .app-shell-route :is(.heute-hero,#explore>.section-head,#accountCenter .account-center-content,.quartett-setup){padding:var(--app-frame-padding)!important}
body.app-shell-page[data-app-route="/app"] .deck-dashboard{padding:var(--app-frame-padding)}

body.app-shell-page[data-app-route] .app-shell-route :is(.deck-hero-copy h2,.heute-title,#explore>.section-head h2,#accountCenter .account-page h2,.quartett-setup-copy h2){
  margin-top:12px!important;
  margin-bottom:14px!important;
  font-family:Archivo,system-ui,sans-serif!important;
  font-size:var(--app-page-title-size)!important;
  font-style:normal!important;
  font-weight:900!important;
  line-height:var(--app-page-title-line)!important;
  letter-spacing:-.055em!important;
  text-transform:uppercase!important;
}
body.app-shell-page[data-app-route] .app-shell-route :is(.deck-hero-copy p,.heute-hero-copy>p,#explore>.section-head>p:last-child,#accountCenter .account-page-lead,.quartett-setup-copy>p){
  font-family:Archivo,system-ui,sans-serif!important;
  font-size:var(--app-page-lead-size)!important;
  font-style:normal!important;
  font-weight:600!important;
  line-height:1.5!important;
}
body.app-shell-page[data-app-route] .app-shell-route :is(.deck-eyebrow,.quartett-eyebrow,.eyebrow){
  font-family:'JetBrains Mono',ui-monospace,monospace!important;
  font-size:10px!important;
  font-style:normal!important;
  font-weight:800!important;
  line-height:1!important;
  letter-spacing:.14em!important;
  text-transform:uppercase!important;
}

@media(max-width:899px){
  :root{
    --app-frame-radius:22px;
    --app-frame-padding:20px;
    --app-page-title-size:clamp(42px,12vw,50px);
    --app-page-lead-size:13px;
  }
  body.app-shell-page[data-app-route] .app-shell .app-shell-route>:is(#deckScreen,#heuteScreen,#quartettScreen,#explore,#accountCenter){max-width:100%!important}
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav-list{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:5px!important;
    overflow:visible!important;
  }
  body.app-shell-page[data-app-route="/app/profil"] #accountCenter .account-center-nav-list button{
    width:100%!important;
    min-width:0!important;
    min-height:43px!important;
    padding:7px 8px!important;
    white-space:normal!important;
    line-height:1.1!important;
  }
}

/* ==========================================================================
   v16: Garage — Proportionen und Anschluss an die Duell-Bühne
   Die Überschrift lief mit bis zu 57 px über vier Zeilen und drückte alles
   andere aus der linken Spalte. Sie tritt jetzt zurück; Profil, Kennzahlen und
   Aktionen bekommen den Platz. Mikro-Labels laufen wie im Spiel in Chakra
   Petch, damit Garage und Duell-Tisch dieselbe Sprache sprechen.
   ========================================================================== */
/* Die gemeinsame Titelregel gilt unverändert weiter — nur ihre Größenvariable
   passt sich der schmalen Dashboard-Spalte an. Mit der Seitengröße von 57 px
   lief „FUHRPARK." rund 250 px über die Spaltenkante in die Kartenbühne. */
body.app-shell-page[data-app-route="/app"]{--app-page-title-size:clamp(26px,2.6vw,34px);--app-page-title-line:.98}
.deck-hero-copy h2{overflow-wrap:anywhere}
.deck-clubhouse{grid-template-columns:minmax(290px,352px) minmax(0,1fr)}
.deck-dashboard{gap:0;padding:clamp(22px,2.4vw,30px)}
.deck-hero-copy{margin-bottom:22px}
.deck-hero-copy p{max-width:none;font-size:12.5px;line-height:1.5}
.deck-eyebrow,.deck-stage-head small,.deck-metrics small,.deck-today small,.deck-hud-row span{font-family:'Chakra Petch','JetBrains Mono',ui-monospace,monospace}
.deck-hud{margin-bottom:18px;padding-top:18px}
.deck-metrics{margin-bottom:20px}
.deck-metrics strong{font-size:23px}
/* main.css legt über `.primary,button{…}` einen orangeroten Schein auf jeden
   Button. In der Garage lag er unter „Karte anlegen“ und schimmerte durch die
   Panel-Kante. Auf dieser Fläche trägt allein Lime das Signal. */
.deck-add,.deck-empty,.deck-fan button,.deck-stage button:not(.deck-play){box-shadow:none}
.deck-stage{padding:22px}
.deck-legal{font-size:10.5px}

@media(max-width:899px){
  .deck-hero-copy{margin-bottom:18px}
  .deck-dashboard{padding:20px 16px}
  .deck-stage{padding:18px 14px}
}

/* Abmelden in der Profil-Route. Der einzige andere Knopf dafür sitzt im
   Profilmenü der Landingpage, das die Shell ausblendet — und „/" leitet
   Angemeldete hierher um. Ohne diesen Knopf gab es keinen Weg hinaus. */
.app-shell-signout{display:flex;justify-content:center;padding:26px 0 8px}
.app-shell-signout button{min-height:46px;padding:0 26px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(255,255,255,.05);box-shadow:none;color:var(--cc-muted);font:700 13px/1 Archivo,system-ui,sans-serif;cursor:pointer}
.app-shell-signout button:hover{border-color:rgba(255,120,120,.4);background:rgba(255,120,120,.1);color:#ffb8b8}
