/* jellyqda drift & play · css/02-kopfzeile.css
   Kopfzeile: Logo, Name, XP-Balken, Symbole oben rechts, Reiter.
   Die CSS-Dateien werden in Nummern-Reihenfolge geladen: spätere Regeln gewinnen. */

body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--surface); }
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand a.home { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font-family: var(--f-display); font-size: 20px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.brand b span { color: var(--muted); font-weight: 500; }
.brand .grow { flex: 1; }
.lvl { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); white-space: nowrap; }
.lvl .bar { width: 90px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.lvl .bar i { display: block; height: 100%; background: var(--accent); }
.iconbtn { width: 36px; height: 36px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.iconbtn svg { width: 18px; height: 18px; }
nav.tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin-top: 8px; }
nav.tabs::-webkit-scrollbar { display: none; }
nav.tabs a { flex: none; padding: 8px 12px 10px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: 14.5px; border-bottom: 3px solid transparent; }
nav.tabs a:hover { color: var(--ink); }
nav.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }

main { max-width: 1240px; margin: 0 auto; padding-block: 22px 60px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.view { animation: fade .18s ease; }
@keyframes fade { from { opacity: .4; } to { opacity: 1; } }
.narrow { max-width: 820px; }
