
:root {
  color-scheme: dark;   /* Auswahllisten, Bildlaufleisten und Datumsfelder im Systemstil dunkel statt grau */
  --bg: #0b0d14;
  --bg-2: #10131d;
  --panel: #141826;
  --line: rgba(255,255,255,.07);
  --line-2: rgba(255,255,255,.12);
  --text: #e7e8ee;
  --text-2: #a4a8b8;
  --text-3: #6b7085;
  --accent: #f4703f;          /* Zenkai brand gradient: orange → pink → magenta */
  --accent-2: #df3d61;
  --accent-3: #b32e75;
  --accent-soft: rgba(244,112,63,.13);
  --cc: #f4703f; --cc-2: #fcd34d; --cc-rgb: 244,112,63;   /* Content-Creator-Farbe (body.cc-blau → Blau) */
  --konoha: #e0615e;
  --suna: #dccb58;
  --mark: rgba(244,112,63,.32);
  --reading: 1.075rem;
  --ui: 'Outfit', system-ui, sans-serif;
  --serif: 'Literata', Georgia, serif;
  --jp: 'Noto Serif JP', 'Yu Mincho', serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; } /* 06.11.: nativ, sonst ruckeln die Sprünge nach dem Neuzeichnen */
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--ui); -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(244,112,63,.07), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(179,46,117,.07), transparent 60%);
}
button, input { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 8px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.26); background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

#progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--accent); z-index: 50; transition: width .1s linear; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: 290px 1fr; min-height: 100vh; }
aside.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  border-right: 1px solid var(--line); background: #0e1119; padding: 26px 18px 30px;
  display: flex; flex-direction: column; gap: 22px;
}
.brand { display: block; padding: 2px 8px 0; text-decoration: none; text-align: center; }
.brand img { width: 124px; display: block; margin: 0 auto 8px; }
.brand small {
  display: block; color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: 2.2px;
}

.search { position: relative; }
.search input {
  width: 100%; padding: 11px 38px 11px 38px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--panel); outline: none; font-size: 14.5px;
  transition: border-color .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--text-3); }
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; color: var(--text-3); }
.search kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font: 500 11px var(--ui); color: var(--text-3); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px;
}

nav.cats { display: flex; flex-direction: column; gap: 18px; }
.group-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--text-3); padding: 0 10px 6px; font-weight: 500; }
.nav-fold { display: flex; align-items: center; gap: 6px; width: 100%; background: none; border: 0; cursor: pointer; font-family: var(--ui); text-align: left; border-radius: 8px; padding-top: 4px; }
.nav-fold:hover { color: var(--text); }
.nav-fold small { font-size: 10.5px; letter-spacing: 0; opacity: 0; transition: opacity .15s; }
.nav-fold i { margin-left: auto; font-style: normal; font-size: 11px; transition: transform .2s; }
.nav-group.closed .nav-fold small { opacity: .8; }
.nav-group.closed .nav-fold i { transform: rotate(-90deg); }
.nav-group.closed .cat:not(.keep) { display: none; }
nav.cats:has(.nav-group.closed) { gap: 10px; }
.cat {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px;
  background: none; text-align: left; cursor: pointer; color: var(--text-2); text-decoration: none; font-size: 15px;
  transition: background .12s, color .12s;
}
.cat { position: relative; }
.cat:hover { background: rgba(255,255,255,.04); color: var(--text); }
.cat.active { background: linear-gradient(90deg, color-mix(in srgb, var(--tint) 16%, transparent), transparent 85%); color: #fff; }
.cat.active::before {
  content: ''; position: absolute; left: -18px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--tint); box-shadow: 0 0 12px var(--tint);
}
.cat .k {
  width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center;
  font-family: var(--jp); font-size: 12.5px; background: rgba(255,255,255,.04); border: 1px solid var(--line);
  color: var(--tint);
}
.cat.active .k { border-color: color-mix(in srgb, var(--tint) 50%, transparent); }
.cat .n { flex: 1; }
.cat .m { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.side-foot { margin-top: auto; padding: 0 10px; font-size: 12px; color: var(--text-3); line-height: 1.6; }
.dc-link {
  display: flex; align-items: center; gap: 9px; margin-bottom: 16px; padding: 9px 12px; border-radius: 11px;
  border: 1px solid var(--line-2); background: rgba(88,101,242,.12); color: #c3c9ff; text-decoration: none;
  font-size: 12.5px; font-weight: 500; line-height: 1.35; transition: background .15s, border-color .15s, color .15s;
}
.dc-link:hover { background: rgba(88,101,242,.22); border-color: #5865F2; color: #fff; }
.dc-link svg { width: 18px; flex: none; }
.langbar { display: flex; gap: 6px; justify-content: center; }
.langbar button {
  display: grid; place-items: center; width: 40px; height: 32px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--panel); opacity: .55;
  transition: border-color .15s, opacity .15s, background .15s, transform .12s;
}
.langbar button:hover { opacity: 1; border-color: var(--accent); transform: translateY(-1px); }
.langbar button.on { opacity: 1; border-color: color-mix(in srgb, var(--accent) 65%, transparent); background: var(--accent-soft); }
.langbar .fl { display: block; width: 22px; height: 14px; }
.langbar .fl svg { display: block; width: 100%; height: 100%; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.35); }
.topbar .langbar { margin-left: auto; }
.topbar .langbar button { width: 34px; height: 28px; }
.topbar .langbar .fl { width: 19px; height: 12px; }

main { min-width: 0; }
.topbar { display: none; }

/* Desktop: the sidebar can be folded away (state kept in localStorage). Phones keep the drawer. */
.side-toggle { display: none; }
@media (min-width: 821px) {
  .app { transition: grid-template-columns .25s ease; }
  aside.side { min-width: 0; }
  /* Same spot in both states: the free top-left corner next to the centred logo. */
  .side-toggle {
    display: grid; place-items: center; position: fixed; top: 16px; left: 14px; z-index: 35;
    width: 32px; height: 32px; padding: 0; border-radius: 9px; cursor: pointer;
    border: 1px solid var(--line-2); background: var(--panel); color: var(--text-3);
    transition: color .15s, border-color .15s, background .15s;
  }
  .side-toggle:hover { color: var(--text); border-color: var(--accent); }
  .side-toggle svg { width: 16px; height: 16px; transition: transform .25s ease; }
  body.side-collapsed .app { grid-template-columns: 0 1fr; }
  body.side-collapsed aside.side { visibility: hidden; overflow: hidden; padding-left: 0; padding-right: 0; border-right: 0; }
  body.side-collapsed .side-toggle { background: rgba(20,24,38,.85); color: var(--text-2); box-shadow: 0 4px 14px rgba(0,0,0,.4); }
  body.side-collapsed .side-toggle svg { transform: rotate(180deg); }
}

/* ---------- Home ---------- */
.home { max-width: 1120px; margin: 0 auto; padding: 0 0 90px; }
.hero-logo { width: 176px; display: block; margin: 0 auto 24px; filter: drop-shadow(0 10px 34px rgba(0,0,0,.7)); }
.stats { display: flex; gap: 14px; margin: 30px 0 0; flex-wrap: wrap; justify-content: center; }
.stats div {
  font-size: 12px; color: var(--text-3); padding: 10px 16px; border-radius: 14px;
  background: rgba(20,24,38,.72); border: 1px solid var(--line-2);
}
.stats b { display: block; font-size: 21px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }

.home section, .home .grid, .home .ost, .home .banner, .home h2, .home .disclaimer { margin-left: 48px; margin-right: 48px; }
.home h2 {
  display: flex; align-items: center; gap: 16px; font-size: 12px; text-transform: uppercase; letter-spacing: 2px;
  color: var(--text-3); font-weight: 600; margin-top: 52px; margin-bottom: 18px;
}
.home h2::before, .home h2::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2)); }
.home h2::after { background: linear-gradient(90deg, var(--line-2), transparent); }
.card {
  position: relative; overflow: hidden; border-radius: 20px; padding: 22px; min-height: 172px;
  background: linear-gradient(158deg, color-mix(in srgb, var(--tint) 11%, var(--panel)), var(--bg-2) 72%);
  border: 1px solid var(--line); text-decoration: none; display: flex; flex-direction: column;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), border-color .25s, box-shadow .25s;
}
.card::before {
  content: ''; position: absolute; inset: 0; background: url('/assets/cardbg.webp') center / cover no-repeat;
  opacity: .12; pointer-events: none; transition: opacity .25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--tint) 55%, transparent);
  box-shadow: 0 18px 44px color-mix(in srgb, var(--tint) 16%, rgba(0,0,0,.45));
}
.card:hover::before { opacity: .26; }
.card > * { position: relative; }
.card .bigk {
  position: absolute; right: -8px; bottom: -26px; font-family: var(--jp); font-size: 104px; line-height: 1;
  color: var(--tint); opacity: .12; pointer-events: none; transition: opacity .25s, transform .25s;
}
.card:hover .bigk { opacity: .2; transform: translateY(-4px); }
.card .t { font-size: 20px; font-weight: 600; margin-bottom: 5px; letter-spacing: -.2px; }
.card .s { font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.card .r { margin-top: auto; padding-top: 22px; font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 7px; }
.card .r i { width: 6px; height: 6px; border-radius: 50%; background: var(--tint); box-shadow: 0 0 10px var(--tint); }
/* Opening chapter gets a wide feature card */

/* ---------- Home v2: key-art hero, compact sections ---------- */
.hero2 {
  position: relative; overflow: hidden; min-height: min(78vh, 680px); display: grid; align-items: end;
  padding: 90px 48px 44px; text-align: center; isolation: isolate;
}
.hero2::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: url('/assets/keyart.webp') 62% 26% / cover no-repeat;
}
.hero2::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 55%, rgba(11,13,20,.55), transparent 75%),
    linear-gradient(to bottom, rgba(11,13,20,.35) 0%, rgba(11,13,20,.2) 30%, rgba(11,13,20,.82) 72%, var(--bg) 100%);
}
.hero2-in { max-width: 720px; margin: 0 auto; }
.hero2 .hero-logo { width: 190px; }
.hero2 h1 {
  font-size: clamp(38px, 6vw, 66px); line-height: 1.02; margin: 0 0 14px; font-weight: 700;
  letter-spacing: -1.4px; text-wrap: balance; text-shadow: 0 4px 30px rgba(0,0,0,.75);
}
.hero2 h1 span { background: linear-gradient(100deg, var(--accent), var(--accent-2) 55%, var(--accent-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero2 p { color: #d3d6e2; font-size: 17px; max-width: 560px; margin: 0 auto; line-height: 1.6; text-shadow: 0 2px 14px rgba(0,0,0,.8); }
.hero-search {
  display: flex; align-items: center; gap: 10px; max-width: 520px; margin: 26px auto 0; padding: 0 16px;
  height: 52px; border-radius: 16px; background: rgba(12,15,24,.78); border: 1px solid var(--line-2);
  box-shadow: 0 14px 40px rgba(0,0,0,.45); transition: border-color .15s;
}
.hero-search:focus-within { border-color: var(--accent); }
.hero-search svg { width: 19px; height: 19px; color: var(--text-3); flex: none; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--text); font: 500 16px var(--ui); }
.cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.cta-main, .cta-sec {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px;
  font: 600 14.5px var(--ui); text-decoration: none; cursor: pointer; transition: transform .12s, border-color .15s;
}
.cta-main { color: #fff; border: 0; background: linear-gradient(100deg, var(--accent), var(--accent-2) 60%, var(--accent-3)); box-shadow: 0 10px 28px rgba(223,61,97,.35); }
.cta-sec { color: var(--text); background: rgba(12,15,24,.7); border: 1px solid var(--line-2); }
.cta-sec:hover { border-color: var(--accent); }
.cta-main:hover, .cta-sec:hover { transform: translateY(-1px); }
.cta svg { width: 16px; height: 16px; }
.hero2 .stats { margin-top: 26px; }
.hero2 .stats div { background: rgba(12,15,24,.7); }

/* The hero runs edge to edge; only the content below keeps the reading width. */
.home:has(.hero2) { max-width: none; }
.hbody { padding: 0 48px; max-width: 1120px; margin: 0 auto; box-sizing: border-box; }
.hbody .ost, .hbody .disclaimer { margin-left: 0; margin-right: 0; }
.sh { display: flex; align-items: baseline; gap: 12px; margin: 50px 0 16px; scroll-margin-top: 20px; }
.sh h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.3px; color: var(--text); text-transform: none; }
.sh h2::before, .sh h2::after { content: none; }
.sh span { font-size: 13px; color: var(--text-3); }
.sh a { margin-left: auto; font-size: 13.5px; color: var(--accent); text-decoration: none; }
.hbody > .sh:first-child { margin-top: 26px; }

/* Quick start tiles */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.qt {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; text-decoration: none;
  background: linear-gradient(150deg, color-mix(in srgb, var(--tint) 14%, var(--panel)), var(--bg-2) 75%);
  border: 1px solid color-mix(in srgb, var(--tint) 28%, var(--line)); transition: transform .2s, border-color .2s;
}
.qt:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tint) 60%, transparent); }
.qt-k {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 6px;
  font-family: var(--jp); font-size: 19px; color: var(--tint);
  background: color-mix(in srgb, var(--tint) 14%, rgba(11,13,20,.6)); border: 1px solid color-mix(in srgb, var(--tint) 38%, transparent);
}
.qt b { font-size: 16.5px; font-weight: 600; color: var(--text); }
.qt small { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.qt-cta { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 600; color: color-mix(in srgb, var(--tint) 75%, #fff); }

/* Lore: world feature + village picture cards */
.lore-top { display: grid; gap: 14px; }
.villages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; scroll-margin-top: 20px; }
.pic {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; min-height: 230px;
  border-radius: 20px; text-decoration: none; border: 1px solid var(--line); padding: 20px;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), border-color .25s, box-shadow .25s;
}
.pic::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: url('/assets/keyart-sm.webp') var(--pos, 60% 35%) / cover no-repeat;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.pic::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10,12,19,.96) 22%, rgba(10,12,19,.55) 62%, color-mix(in srgb, var(--tint) 22%, rgba(10,12,19,.25)));
}
.pic:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--tint) 55%, transparent); box-shadow: 0 18px 44px color-mix(in srgb, var(--tint) 16%, rgba(0,0,0,.45)); }
.pic:hover::before { transform: scale(1.05); }
.pic-lead { min-height: 300px; padding: 28px; }
.pic-lead::before { background-image: url('/assets/keyart.webp'); background-position: 60% 30%; }
.pic-lead::after { background: linear-gradient(95deg, rgba(10,12,19,.96) 25%, rgba(10,12,19,.6) 55%, rgba(10,12,19,.15)); }
.pic-body { display: flex; flex-direction: column; gap: 5px; max-width: 52ch; }
.pic-g { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; color: color-mix(in srgb, var(--tint) 70%, #fff); }
.pic-t { font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -.3px; }
.pic-lead .pic-t { font-size: 32px; }
.pic-x { font-family: var(--serif); font-size: 14px; line-height: 1.55; color: #c6c9d6; }
.pic-lead .pic-x { font-size: 15.5px; }
.pic-m { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.pic .bigk {
  position: absolute; right: 14px; top: 8px; font-family: var(--jp); font-size: 64px; line-height: 1;
  color: var(--tint); opacity: .5; text-shadow: 0 4px 24px rgba(0,0,0,.6); pointer-events: none;
}
.pic-lead .bigk { font-size: 90px; right: 22px; top: 14px; }

/* Clans: compact tiles */
.clans { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.clan {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 16px; text-decoration: none;
  min-height: 132px; justify-content: flex-end;
  border: 1px solid var(--line); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.clan::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: url('/assets/keyart-sm.webp') var(--pos, 50% 40%) / 320% auto no-repeat;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.clan::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(10,12,19,.97) 30%, rgba(10,12,19,.6) 70%, color-mix(in srgb, var(--tint) 28%, rgba(10,12,19,.3)));
}
.clan:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--tint) 55%, transparent); box-shadow: 0 14px 34px color-mix(in srgb, var(--tint) 14%, rgba(0,0,0,.45)); }
.clan:hover::before { transform: scale(1.06); }
.clan-k {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; margin-bottom: auto; align-self: flex-start;
  font-family: var(--jp); font-size: 17px; color: var(--tint);
  background: color-mix(in srgb, var(--tint) 18%, rgba(11,13,20,.75)); border: 1px solid color-mix(in srgb, var(--tint) 45%, transparent);
}
/* echte Clan-/Dorf-Wappen statt Schriftzeichen */
.wappen { display: block; width: 72%; height: 72%; pointer-events: none; filter: drop-shadow(0 1px 3px rgba(0,0,0,.55)); }
img.wappen { object-fit: contain; }
i.wappen { background: color-mix(in srgb, var(--tint) 32%, #fff); -webkit-mask: var(--w) center / contain no-repeat; mask: var(--w) center / contain no-repeat; }
.clan-k:has(.wappen), .vil-k:has(.wappen) { width: 50px; height: 50px; }
.vil-tiles.compact .vil-k:has(.wappen) { width: 40px; height: 40px; }
.cat .k:has(.wappen) .wappen { width: 80%; height: 80%; }
.seal .wappen, .qz-k .wappen { width: 66%; height: 66%; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--tint) 60%, transparent)) drop-shadow(0 2px 4px rgba(0,0,0,.6)); }
.pic .bigk:has(.wappen) { width: 74px; height: 74px; opacity: .7; }
.pic-lead .bigk:has(.wappen) { width: 100px; height: 100px; }
.pic .bigk .wappen { width: 100%; height: 100%; }
.wappen[style*="clans/senju"] { width: 92% !important; }
.clan b { font-size: 15.5px; font-weight: 600; color: var(--text); }
.clan small { font-size: 12.5px; color: var(--text-2); }
.clan svg, .pic-t svg { width: 14px; height: 14px; vertical-align: -1px; margin-left: 5px; opacity: .7; }

/* Rulebook + info: slim rows */
.rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.row {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; text-decoration: none;
  background: var(--bg-2); border: 1px solid var(--line); transition: border-color .15s, background .15s;
}
.row:hover { border-color: color-mix(in srgb, var(--tint) 55%, transparent); background: color-mix(in srgb, var(--tint) 6%, var(--bg-2)); }
.row-k {
  width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center;
  font-family: var(--jp); font-size: 17px; color: var(--tint);
  background: color-mix(in srgb, var(--tint) 13%, rgba(11,13,20,.6));
}
.row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-t b { font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-t small { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-m { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .quick, .villages { grid-template-columns: 1fr; }
  .pic { min-height: 170px; padding: 16px 18px; }
  .pic .bigk { font-size: 48px; }
}
@media (max-width: 820px) {
  .hero2 { padding: 70px 16px 30px; min-height: 0; }
  .hero2 .hero-logo { width: 150px; }
  .hero2 p { font-size: 15.5px; }
  .hbody { padding: 0 16px; }
  .sh { margin-top: 38px; }
  .pic-lead { min-height: 260px; padding: 20px; }
  .pic-lead .pic-t { font-size: 26px; }
  .clans { grid-template-columns: repeat(2, 1fr); }
  .rows { grid-template-columns: minmax(0, 1fr); }
}

/* Glossary terms in the lore */
.prose .term {
  font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: help;
  text-decoration: underline dotted color-mix(in srgb, var(--tint, var(--accent)) 70%, transparent);
  text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.prose .term:hover { color: #fff; text-decoration-style: solid; }
#termPop {
  position: fixed; z-index: 60; padding: 14px 16px; border-radius: 14px;
  background: #161a28; border: 1px solid var(--line-2); box-shadow: 0 18px 44px rgba(0,0,0,.55);
  font-size: 14px; line-height: 1.55; color: var(--text-2);
}
#termPop b { display: block; color: #fff; font-size: 15px; margin-bottom: 4px; }
#termPop p { margin: 0 0 8px; }
#termPop .term-more { font-size: 12.5px; color: var(--accent); text-decoration: none; }

/* Continue where you left off */
.resume {
  display: flex; align-items: center; gap: 18px; margin-top: 26px; padding: 18px 20px; border-radius: 18px;
  background: linear-gradient(115deg, color-mix(in srgb, var(--tint) 16%, var(--panel)), var(--bg-2) 70%);
  border: 1px solid color-mix(in srgb, var(--tint) 35%, var(--line));
}
.resume-k {
  width: 56px; height: 56px; flex: none; border-radius: 16px; display: grid; place-items: center;
  font-family: var(--jp); font-size: 24px; color: var(--tint);
  background: color-mix(in srgb, var(--tint) 14%, rgba(11,13,20,.7)); border: 1px solid color-mix(in srgb, var(--tint) 40%, transparent);
}
.resume-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.resume-txt small { font-size: 11px; text-transform: uppercase; letter-spacing: 1.8px; font-weight: 600; color: color-mix(in srgb, var(--tint) 70%, #fff); }
.resume-txt b { font-size: 20px; font-weight: 700; color: #fff; }
.resume-txt span { font-size: 13px; color: var(--text-2); }
.resume-bar { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); margin-top: 6px; max-width: 280px; overflow: hidden; }
.resume-bar i { display: block; height: 100%; background: var(--tint); border-radius: 4px; }
.resume-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.resume-btns svg { width: 16px; height: 16px; }
.prose .resume-mark { background: color-mix(in srgb, var(--tint) 14%, transparent); border-radius: 8px; transition: background .6s; }
@media (max-width: 640px) {
  .resume { flex-wrap: wrap; }
  .resume-btns { width: 100%; }
  .resume-btns > * { flex: 1; justify-content: center; }
}

/* Voice actors page */

/* Editor */

/* Statistics dashboard */
.st-card { padding: 16px 18px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 14px; }
.st-card h2 { font-size: 14px; margin: 0 0 14px; color: var(--text); font-weight: 600; }
/* ---------- Gesetzbuch ---------- */
.gb { --gb-l: rgba(255,255,255,.07); }
/* Bußgeld-Rechner */
@keyframes gbBlitz { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tint) 70%, transparent); background: color-mix(in srgb, var(--tint) 14%, var(--bg-2)); } 100% { box-shadow: 0 0 0 14px transparent; } }
@keyframes gbEin { from { opacity: 0; } }
@keyframes gbHoch { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.st-empty, .st-hint { font-size: 13px; color: var(--text-3); margin: 0; }
.st-hint { margin-top: 6px; }

/* column chart: one series, 4px rounded data end, square baseline, 2px gaps */
.sc-col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; cursor: default; outline: none; }
.sc-col i { display: block; width: 100%; max-width: 24px; min-height: 1px; background: var(--accent); border-radius: 4px 4px 0 0; transition: filter .12s; }
.sc-col:hover i, .sc-col:focus i { filter: brightness(1.25); }
#scTip { position: fixed; z-index: 70; padding: 5px 9px; border-radius: 8px; background: #1d2233; border: 1px solid var(--line-2); font-size: 12.5px; color: var(--text); pointer-events: none; white-space: nowrap; }

/* ranked bars */
.sb { display: flex; flex-direction: column; gap: 9px; }
/* Steckbrief-Generator */
/* Quiz: wide start page (rounds left, leaderboard right); questions and results stay a readable width */ /* no table of contents column here */
.sb-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* Clan quiz */
/* Mehrfachauswahl (Matt, 02.10.): ankreuzen, dann „Antwort prüfen“ */
.kq-flagged { margin: 0 0 14px; padding: 11px 14px; border-radius: 12px; font-size: 14px; color: #fecaca;
  background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.35); } /* seconds sit right of the bar, clear of the score */
.kq-notice { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; padding: 16px; background: rgba(6,8,20,.75); backdrop-filter: blur(4px); }
.kq-notice > div { max-width: 440px; padding: 22px; border-radius: 18px; background: var(--bg-2); border: 1px solid rgba(248,113,113,.4); }
.kq-notice b { color: #fecaca; font-size: 17px; }
.kq-notice p { color: var(--text-2); line-height: 1.55; }
.kq-notice .cta-main { border: 0; cursor: pointer; }

/* Wide pages without a table of contents (map, timeline, clan comparison) */

/* ---------- KI popup, bottom right ---------- */
.ai-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 46; height: 54px; padding: 0 20px 0 6px; border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; gap: 10px; font: 600 15px var(--ui); color: #fff;
  background: linear-gradient(135deg, #1c2244, #141a33); border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line-2));
  box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 1px rgba(244,112,63,.15); transition: transform .2s, box-shadow .2s;
}
.ai-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,.55), 0 0 22px rgba(244,112,63,.3); }
.ai-fab.hidden, body.on-guide .ai-fab { display: none; }
body.quiz-live .ai-fab { opacity: .38; filter: grayscale(1); cursor: not-allowed; transform: none; box-shadow: none; }
body.quiz-live .ai-fab .ai-fab-txt::after { content: ' · gesperrt'; }
.ai-face { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; overflow: hidden;
  font-family: var(--jp); font-size: 19px; color: #fff; background: radial-gradient(circle at 30% 25%, rgba(244,112,63,.45), rgba(11,13,20,.9) 70%);
  box-shadow: 0 0 0 2px var(--accent-2); }
.ai-face img { width: 100%; height: 100%; object-fit: contain; }
.ai-pop {
  position: fixed; right: 20px; bottom: 20px; z-index: 47; width: 390px; max-width: calc(100vw - 32px); height: min(620px, calc(100dvh - 100px));
  display: none; flex-direction: column; border-radius: 20px; overflow: hidden;
  background: rgba(16,20,34,.98); backdrop-filter: blur(14px); border: 1px solid var(--line-2); box-shadow: 0 24px 70px rgba(0,0,0,.6);
}
.ai-pop.open { display: flex; animation: popUp .22s ease; }
@keyframes popUp { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.ai-pop-head { position: relative; isolation: isolate; display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; border-bottom: 1px solid var(--line); }
.ai-pop-head::before { content: ''; position: absolute; inset: 0; z-index: -2; background: url('/assets/keyart.webp') 70% 32% / cover no-repeat; }
.ai-pop-head::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(95deg, rgba(10,12,19,.96) 35%, rgba(10,12,19,.7)); }
.ai-pop-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ai-pop-head b { font-size: 16px; color: #fff; }
.ai-pop-head small { font-size: 12px; color: var(--text-3); }
.ai-pop-head .icon-btn { flex: none; }
.ai-log { flex: 1; overflow-y: auto; padding: 14px; margin: 0; }
.ai-suggest { padding: 0 14px 8px; flex-wrap: wrap; }
.ai-form { margin: 0 12px; }
.ai-note { margin: 6px 14px 10px; font-size: 11.5px; color: var(--text-3); }
/* With the top bar (tablet and phone) the soundtrack button sits just below it, clear of the language flags. */
@media (max-width: 820px) { body .music-fab { top: 94px; } body .player { top: 94px; } body .music-hint { top: 146px; } }
@media (max-width: 520px) {
  .ai-fab { right: 16px; bottom: 16px; height: 50px; }
  .ai-pop { right: 8px; left: 8px; bottom: 8px; width: auto; max-width: none; height: calc(100dvh - 76px); }
  body .music-fab { right: 12px; top: 94px; width: 44px; padding: 0; justify-content: center; }
  body .music-fab span { display: none; }
  body .music-hint { top: 146px; }
  body .player { top: 94px; }
}
.zk-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(6,8,20,.72); backdrop-filter: blur(5px); animation: fade .15s ease; }
.zk-dialog { position: relative; isolation: isolate; overflow: hidden; width: min(420px, 100%); padding: 26px 24px 20px; border-radius: 22px; text-align: center;
  background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: popUp .2s ease; }
.zk-dialog::before { content: ''; position: absolute; inset: 0 0 auto; height: 120px; z-index: -1; background: url('/assets/keyart.webp') 70% 32% / cover no-repeat; opacity: .18;
  -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.zk-seal { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; font-family: var(--jp); font-size: 28px; color: #fff;
  background: radial-gradient(circle at 30% 25%, rgba(244,112,63,.4), rgba(11,13,20,.9) 70%); box-shadow: 0 0 0 2px var(--accent-2), 0 10px 26px rgba(223,61,97,.35); }
.zk-dialog.danger .zk-seal { background: radial-gradient(circle at 30% 25%, rgba(248,113,113,.45), rgba(11,13,20,.9) 70%); box-shadow: 0 0 0 2px #f87171, 0 10px 26px rgba(248,113,113,.3); }
.zk-dialog h2 { margin: 0 0 6px; font-size: 22px; color: #fff; }
.zk-dialog p { margin: 0 0 20px; color: var(--text-2); line-height: 1.55; font-size: 14.5px; }
.zk-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.zk-actions button { border: 0; cursor: pointer; min-width: 140px; justify-content: center; }
.zk-dialog.danger .zk-actions .cta-main { background: linear-gradient(100deg, #dc2626, #f87171); }
/* Launcher-Download (offizieller Installer von Zenkai, Matt 01.10.2026) */
.dl-launcher { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 12px; background: var(--accent, #f4703f); color: #fff !important; font-weight: 700; font-size: 14.5px; text-decoration: none !important; box-shadow: 0 6px 18px rgba(244,112,63,.25); transition: filter .15s, transform .15s; align-self: flex-start; }
.dl-launcher:hover { filter: brightness(1.08); transform: translateY(-1px); }
.dl-launcher small { font-weight: 500; opacity: .85; font-size: 12px; text-transform: none; letter-spacing: 0; color: inherit !important; }
/* Tabelle (05.10. neu): feste Spalten, Gruppen-Kopf, feste Kopfzeile, gleich hohe Zeilen */
/* Team-Aktion (Matt, 05.10.): Rangliste bis zum Release */
/* Intern › Länderkrieg */
@keyframes lkPuls { 50% { stroke-width: 7; } }
/* Intern › Marktpreise */
/* Intern › Zeitung (Probelauf) */
/* Intern › Siegel-Türen */
/* Siegel-Filter (Matt 06.11.) */
.kt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 10px; }
.kt-karte { position: relative; display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: start; padding: 11px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--line); min-width: 0; }
.kt-karte:hover { border-color: rgba(244,112,63,.45); }
.kt-karte.drin { border-color: #6fcf97; background: rgba(111,207,151,.07); }
.kt-karte.ziel { border-color: #f4703f; box-shadow: 0 0 0 2px rgba(244,112,63,.25); }
.dl-launcher-box { margin: 22px 0 0; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.dl-launcher-box h3 { margin: 0 0 4px; color: #fff; font-size: 17px; }
.dl-launcher-box p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.5; max-width: 560px; }

/* ---------- Desktop: navigation as a top bar with dropdown menus ---------- */
.nav-drop { display: none; }
@media (min-width: 821px) {
  .app, body.side-collapsed .app { grid-template-columns: 1fr !important; grid-template-rows: auto 1fr; }
  .side-toggle, .side-foot, #brandSub { display: none !important; }
  aside.side, body.side-collapsed aside.side {
    position: sticky; top: 0; z-index: 40; height: 74px; width: auto; min-height: 0; overflow: visible !important;
    display: flex; flex-direction: row; align-items: center; gap: 18px; padding: 0 200px 0 24px !important;
    background: rgba(11,13,22,.92); backdrop-filter: blur(14px); border-right: 0 !important; border-bottom: 1px solid var(--line);
    visibility: visible !important;
  }
  aside.side .brand { display: flex; align-items: center; margin: 0 !important; padding: 0 !important; flex: none; }
  aside.side .brand img { height: 58px; width: auto; max-width: none; margin: 0 8px 0 0 !important; }
  aside.side .langbar { order: 5; margin: 0 !important; flex: none; }
  aside.side .search { order: 4; margin: 0 0 0 auto !important; width: 220px; flex: none; }
  nav.cats { order: 2; flex-direction: row !important; gap: 2px !important; align-items: center; }
  nav.cats > .nav-group { position: relative; }
  nav.cats .nav-fold { padding: 10px 12px !important; margin: 0; border-radius: 10px; font-size: 13.5px; letter-spacing: .3px; text-transform: none; color: var(--text-2); font-weight: 600; white-space: nowrap; }
  nav.cats .nav-fold small { display: none; }
  nav.cats .nav-fold i { margin-left: 4px; transform: none !important; }
  nav.cats > .nav-group:hover .nav-fold, nav.cats > .nav-group:focus-within .nav-fold { background: rgba(255,255,255,.06); color: #fff; }
  nav.cats > .nav-group:has(.cat.active) .nav-fold { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 10px 10px 0 0; }
  nav.cats > .nav-group > .cat { display: none !important; }
  nav.cats .nav-drop { position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px; padding: 8px; border-radius: 16px;
    background: rgba(18,22,36,.98); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0,0,0,.55); }
  /* Mouse: open on hover only (a click must not pin it open). Keyboard: open while a link inside has keyboard focus. */
  nav.cats > .nav-group:hover .nav-drop, nav.cats > .nav-group:has(:focus-visible) .nav-drop { display: grid; }
  nav.cats .nav-drop::before { content: ''; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
  nav.cats .nav-drop.wide { grid-template-columns: 1fr 1fr; min-width: 520px; }
  nav.cats .nav-drop .cat { display: flex !important; }
  .reader { padding-top: 34px; }
  body .music-fab { top: 15px !important; right: 20px; height: 44px; }
  body .player { top: 80px !important; }
  body .music-hint { top: 80px !important; }
  .toc { top: 90px; }
}
.rel { position: relative; overflow: hidden; isolation: isolate; margin: 0 0 26px; padding: 20px 22px; border-radius: 20px;
  background: linear-gradient(120deg, rgba(244,112,63,.14), rgba(223,61,97,.08) 55%, var(--bg-2)); border: 1px solid rgba(244,112,63,.35); }

/* login box + menu in the top bar */
.authbox { position: relative; order: 6; flex: none; }
.auth-login { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 12px; cursor: pointer; font: 600 13.5px var(--ui); color: #fff;
  background: #5865f2; border: 0; box-shadow: 0 6px 18px rgba(88,101,242,.35); }
.auth-login:hover { background: #4752c4; }
.auth-login svg { width: 18px; height: 18px; }
.auth-me { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 4px; border-radius: 12px; cursor: pointer; font: 600 13.5px var(--ui); color: #fff;
  background: var(--bg-2); border: 1px solid var(--line-2); max-width: 190px; }
.auth-me img, .auth-me span { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #1c2140; flex: none; }
.auth-me b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 220px; padding: 6px; border-radius: 14px; display: grid; gap: 2px;
  background: rgba(18,22,36,.98); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0,0,0,.55); }
.auth-menu[hidden] { display: none; }
.auth-menu a, .auth-menu button { display: block; padding: 9px 12px; border-radius: 10px; text-align: left; font: 500 14px var(--ui); color: var(--text); text-decoration: none; background: none; border: 0; cursor: pointer; }
.auth-menu a:hover, .auth-menu button:hover { background: rgba(255,255,255,.06); }
.auth-menu button { color: #fca5a5; }
@media (min-width: 821px) { aside.side, body.side-collapsed aside.side { padding-right: 24px !important; } }
@media (max-width: 820px) { .authbox { margin: 10px 0 4px; } .auth-login, .auth-me { width: 100%; max-width: none; justify-content: center; } .auth-menu { left: 0; right: 0; } }

/* ---------- Desktop top bar on narrower screens: shrink step by step so it never overflows ---------- */
@media (min-width: 821px) and (max-width: 1599px) {
  aside.side, body.side-collapsed aside.side { gap: 12px; }
  /* language switch: only the active flag; the other flags drop down on hover / keyboard focus */
  aside.side .langbar { position: relative; z-index: 2; flex-direction: column; justify-content: flex-start; height: 32px; }
  aside.side .langbar button { flex: none; }
  aside.side .langbar button.on { order: -1; }
  aside.side .langbar button:not(.on) { display: none; }
  aside.side .langbar:hover button, aside.side .langbar:focus-within button { display: grid; }
  aside.side .langbar::before { content: ''; display: none; position: absolute; z-index: -1; left: -7px; right: -7px; top: -7px; height: 122px; border-radius: 14px;
    background: rgba(18,22,36,.98); border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0,0,0,.55); }
  aside.side .langbar:hover::before, aside.side .langbar:focus-within::before { display: block; }
  aside.side .auth-me { max-width: 150px; }
}
@media (min-width: 821px) and (max-width: 1439px) {
  /* search: just the icon; the field slides open to the left while it is in use */
  aside.side .search { width: 40px; height: 40px; z-index: 3; }
  aside.side .search input { position: absolute; right: 0; top: 0; width: 40px; height: 40px; padding: 0 0 0 38px; color: transparent; cursor: pointer; transition: width .2s, border-color .15s, box-shadow .15s; }
  aside.side .search input::placeholder { color: transparent; }
  aside.side .search input::-webkit-search-cancel-button { display: none; }
  aside.side .search:hover input { border-color: var(--accent); }
  aside.side .search kbd { display: none; }
  aside.side .search svg { z-index: 1; pointer-events: none; transition: left .2s; }
  aside.side .search:focus-within input { width: 280px; padding: 0 12px 0 38px; color: var(--text); background: #121628; cursor: text; }
  aside.side .search:focus-within input::placeholder { color: var(--text-3); }
  aside.side .search:focus-within svg { left: -228px; }
}
@media (min-width: 821px) and (max-width: 1259px) {
  aside.side, body.side-collapsed aside.side { gap: 8px; }
  nav.cats .nav-fold { padding: 10px 8px !important; }
  .news-btn span { display: none; }
  .unt-navbtn span { display: none; } .unt-navbtn { padding: 7px 10px; }
  .auth-login { font-size: 0; gap: 0; padding: 0 10px; }
  .auth-me { padding-right: 4px; }
  .auth-me b { display: none; }
}
@media (min-width: 821px) and (max-width: 959px) {
  aside.side, body.side-collapsed aside.side { gap: 6px; padding-left: 16px !important; padding-right: 16px !important; }
  aside.side .brand img { height: 46px; margin-right: 2px !important; }
  nav.cats .nav-fold { padding: 10px 7px !important; font-size: 13px; }
  nav.cats .nav-fold i { display: none; }
}

/* soundtrack: bottom left */
html body .music-fab { top: auto !important; bottom: 20px !important; right: auto !important; left: 20px !important; }
html body .player { top: auto !important; bottom: 20px !important; right: auto !important; left: 20px !important; }
html body .music-hint { top: auto !important; bottom: 80px !important; right: auto !important; left: 20px !important; }
@media (max-width: 520px) { html body .music-fab { left: 16px !important; bottom: 16px !important; } html body .player { left: 16px !important; right: 16px !important; bottom: 16px !important; } }

/* players + profiles */

/* rule changes */
.ru-badge { margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #fcd34d; background: rgba(252,211,77,.12); text-decoration: none; }

/* patch notes */

/* bot card + release bar extras */
.botcard { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 26px; padding: 18px 20px; border-radius: 20px;
  background: linear-gradient(120deg, rgba(88,101,242,.16), var(--bg-2) 60%); border: 1px solid rgba(88,101,242,.4); }
.bot-k { display: grid; place-items: center; flex: none; width: 50px; height: 50px; border-radius: 50%; font-family: var(--jp); font-size: 22px; color: #fff;
  background: radial-gradient(circle at 30% 25%, rgba(88,101,242,.55), rgba(11,13,20,.9) 70%); box-shadow: 0 0 0 2px #5865f2; }
.bot-txt { flex: 1; min-width: 260px; }
.home .botcard .bot-txt h2 { margin: 0 0 4px; padding: 0; font-size: 19px; color: #fff; text-transform: none; letter-spacing: -.2px; text-align: left; }
.home .botcard .bot-txt h2::before, .home .botcard .bot-txt h2::after { display: none; }
.bot-txt p { margin: 0 0 8px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.bot-cmds { display: flex; flex-wrap: wrap; gap: 6px; }
.bot-cmds code { padding: 2px 8px; border-radius: 8px; font-size: 12.5px; color: #c7cbff; background: rgba(88,101,242,.15); }
.botcard .cta-main { background: linear-gradient(100deg, #5865f2, #7c86ff); flex: none; }
/* Intro beim ersten Besuch */
.zk-intro { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: #050508; cursor: pointer; transition: opacity .55s ease; }
.zk-intro.weg { opacity: 0; pointer-events: none; }
.zk-intro video { width: min(100vw, calc(100vh * 16 / 9)); height: auto; max-height: 100vh; }
.zk-intro button { position: absolute; right: 22px; bottom: 22px; padding: 9px 16px; border-radius: 99px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.45); color: #fff; font: 600 14px var(--ui); cursor: pointer; backdrop-filter: blur(6px); }
.zk-intro button:hover { background: rgba(255,255,255,.12); }
/* Release-Countdown (Datum seit 28.09. bekannt: 10.10.2026) – links das Zenkai-Intro (Matt, 29.09.) */
.rel-intro { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: #000; border: 1px solid rgba(244,112,63,.28); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.rel-live { grid-column: 1 / -1; margin: 0; padding: 18px; text-align: center; font: 800 30px var(--ui); color: #fcd34d; border-radius: 14px; background: rgba(252,211,77,.1); border: 1px solid rgba(252,211,77,.35); }
@media (max-width: 640px) { .botcard .cta-main { width: 100%; justify-content: center; } }
.gl-term { text-decoration: underline dotted color-mix(in srgb, var(--accent, #f4703f) 70%, transparent); text-underline-offset: 3px;
  text-decoration-thickness: 1.5px; cursor: help; border-radius: 3px; }
.gl-term:hover, .gl-term:focus-visible { background: color-mix(in srgb, var(--accent, #f4703f) 14%, transparent); outline: none; }
.gl-tip { position: absolute; z-index: 90; padding: 12px 14px; border-radius: 12px; background: #151a2e; border: 1px solid var(--line-2);
  box-shadow: 0 14px 40px rgba(0,0,0,.5); font: 13.5px/1.5 var(--ui); color: var(--text); opacity: 0; pointer-events: none; transform: translateY(4px);
  transition: opacity .15s, transform .15s; }
.gl-tip.on { opacity: 1; pointer-events: auto; transform: none; }
.gl-tip b { display: block; color: #fff; font-size: 14px; margin-bottom: 4px; }
.gl-tip p { margin: 0 0 8px; color: var(--text-2); }
.gl-tip a { color: var(--accent, #f4703f); font-weight: 600; font-size: 13px; text-decoration: none; }
.iv-promo { display: flex; align-items: center; gap: 14px; margin: 22px 0 8px; padding: 14px 18px; border-radius: 16px; text-decoration: none;
  background: linear-gradient(90deg, rgba(242,201,76,.12), rgba(244,112,63,.06)); border: 1px solid rgba(242,201,76,.35); color: var(--text); }
.iv-promo:hover { border-color: #f2c94c; }
.iv-promo .seal { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font: 700 22px 'Noto Serif JP', serif; color: #f2c94c; background: rgba(242,201,76,.14); }
.iv-promo b { display: block; color: #fff; }
.iv-promo small { color: var(--text-2); font-size: 13px; }
.iv-promo em { margin-left: auto; font-style: normal; font-weight: 700; color: #f2c94c; white-space: nowrap; }
@media (max-width: 700px) { .iv-promo em { display: none; } }
.push-err { flex-basis: 100%; padding: 12px 14px; border-radius: 12px; background: rgba(242,201,76,.08); border: 1px solid rgba(242,201,76,.3); color: var(--text-2); line-height: 1.5; }
.push-err b { color: #fff; } .push-err small { display: block; margin-top: 6px; color: var(--text-3); }
.push-help { margin: 6px 0 0; padding-left: 20px; }
/* phone: the map fills a tall box instead of a thin strip with empty space under it */
/* popup docked at the right edge of the map, compact, so the map keeps most of its room */
.news-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 14px; border-radius: 14px;
  background: rgba(154,167,255,.1); border: 1px solid rgba(154,167,255,.35); color: var(--text); font-size: 14.5px; }
.news-bar a { color: #c3cbff; font-weight: 600; }
.news-bar button { margin-left: auto; background: none; border: 0; color: var(--text-3); cursor: pointer; font-size: 14px; padding: 2px 6px; }
.news-k { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(154,167,255,.18); color: #c3cbff; font-family: 'Noto Serif JP', serif; }
.rotw { display: flex; align-items: center; gap: 22px; margin: 18px 0; padding: 20px 24px; border-radius: 20px;
  background: linear-gradient(120deg, rgba(154,167,255,.1), rgba(154,167,255,.02)); border: 1px solid var(--line-2); }
.rotw-k { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; font: 700 32px 'Noto Serif JP', serif; color: #9aa7ff; background: rgba(154,167,255,.14); }
.rotw-txt { flex: 1; min-width: 0; }
.rotw-txt small { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #9aa7ff; font-weight: 700; }
.rotw-txt h2 { margin: 2px 0 6px; font-size: 24px; color: #fff; text-transform: none; letter-spacing: normal; font-family: var(--ui); font-weight: 800; }
.rotw-txt h2 { display: block !important; text-align: left !important; justify-content: flex-start !important; }
.rotw-txt h2::before, .rotw-txt h2::after { display: none !important; content: none !important; }
.rotw-txt p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.rotw-ex { margin-top: 6px !important; color: var(--text) !important; }
.rotw-ex b { color: #c3cbff; }
.rotw .cta-sec { flex: none; }
@media (max-width: 760px) { .rotw { flex-direction: column; align-items: flex-start; } }
.rel-bell.on { border-color: rgba(111,207,151,.5); color: #6fcf97; }
.rel-note { color: var(--text-3); font-size: 13px; }
.vil-card { margin: 18px 0; padding: 20px 24px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); }
.vil-head small { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #f4703f; font-weight: 700; }
.vil-head h2 { margin: 2px 0 4px; font-size: 24px; color: #fff; text-transform: none; letter-spacing: normal; font-family: var(--ui); font-weight: 800; display: block; text-align: left; }
.vil-head h2::before, .vil-head h2::after { display: none; content: none; }
.vil-head p { margin: 0 0 14px; color: var(--text-2); font-size: 14.5px; }
.vil-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.vil { position: relative; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; padding: 14px 16px 20px; border-radius: 16px; cursor: pointer; text-align: left;
  background: color-mix(in srgb, var(--tint) 8%, var(--panel)); border: 1px solid color-mix(in srgb, var(--tint) 30%, transparent); color: var(--text); font: 14px var(--ui); overflow: hidden; }
.vil:hover { border-color: var(--tint); }
.vil.on { border-color: var(--tint); box-shadow: 0 0 0 1px var(--tint) inset, 0 10px 30px color-mix(in srgb, var(--tint) 20%, transparent); }
.vil-k { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font: 700 24px 'Noto Serif JP', serif; color: var(--tint); background: color-mix(in srgb, var(--tint) 16%, transparent); }
.vil-t b { display: block; color: #fff; font-size: 16px; }
.vil-t em { font-style: normal; font-size: 12px; color: var(--tint); font-weight: 700; margin-left: 4px; }
.vil-t small { color: var(--text-3); }
.vil-p { font-size: 22px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.vil-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255,255,255,.05); }
.vil-bar em { display: block; height: 100%; background: var(--tint); transition: width .4s; }
.vil-tiles.compact .vil { grid-template-columns: 38px 1fr; padding: 10px 12px; }
.vil-tiles.compact .vil-k { width: 38px; height: 38px; font-size: 20px; }
@media (max-width: 640px) { .vil-tiles { grid-template-columns: 1fr; } }
.seo-pre { max-width: 860px; margin: 40px auto; padding: 0 16px; color: var(--text-2); font-size: 16px; line-height: 1.7; }
.seo-pre h1 { color: #fff; font-size: 34px; line-height: 1.2; }
.seo-pre h2 { color: #fff; font-size: 20px; margin-top: 28px; }
.seo-pre a { color: #f4703f; }
.seo-crumbs { font-size: 13px; color: var(--text-3); }
.seo-more ul { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; list-style: none; }
/* Voice actors page: centred, a bit wider, status colours (look only) */ /* 405: the banner's colour stripe at the bottom stays hidden */
@keyframes kqBump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
/* bigger cards for the upper tiers */
/* admin tab "Tickets" */
/* Konzept-Prüfung */
/* Klischee-Zähler */
/* Sanktionskatalog im Supporter-Bereich */
.sk-grp { margin: 16px 0 8px; font-size: 14px; color: var(--text-3); letter-spacing: .06em; text-transform: uppercase; }
/* Roleplay-Akademie */
.ak-in { width: 100%; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(0,0,0,.25); color: var(--text); font: 13.5px var(--ui); }
.ak-in.big { font-size: 15px; font-weight: 700; }
/* Game Master (#gm): Tabellen statt Tabellenblätter */
/* Rechteverwaltung und IC-Abteilungen */
/* Bewerbungen: Ablehn-Dialog, Volltext und Automatik */
.zk-dialog.wide { width: min(780px, 100%); max-height: 88vh; overflow: auto; text-align: left; }
.zk-dialog.wide h2 { text-align: center; }
.zk-dialog.wide p { margin-bottom: 12px; }
.zk-dialog .tri-text, .zk-dialog .ak-in { width: 100%; }
/* Tickets: gleiche Fragen und der Verlauf */
#zkToasts { position: fixed; right: 16px; bottom: 90px; z-index: 1200; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.zk-toast { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 14px; background: rgba(16,20,43,.96); border: 1px solid color-mix(in srgb, var(--brand) 45%, transparent); box-shadow: 0 12px 30px rgba(0,0,0,.45); color: var(--text); font-size: 13.5px; cursor: pointer; animation: fade .2s ease; transition: opacity .5s, transform .5s; }
.zk-toast i { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 10px; background: color-mix(in srgb, var(--brand) 22%, transparent); font: 700 15px 'Noto Serif JP', serif; font-style: normal; }
.zk-toast.weg { opacity: 0; transform: translateY(8px); }
.zk-rel { white-space: nowrap; } .zk-rel-t { font-weight: 700; color: var(--text); } .zk-rel small { color: var(--text-3); font-weight: 400; }
.zk-next { color: var(--text-3); } .zk-next b { color: var(--text-2); font-variant-numeric: tabular-nums; }
.chip.itachi { border-color: rgba(220,38,38,.6); color: #ff8a8a; background: rgba(220,38,38,.1); font-family: inherit; }
.chip.itachi:hover { background: rgba(220,38,38,.22); color: #fff; }
.chip.aufgeben { border-style: dashed; }
/* Intern → Übersicht */
/* Intern → Whitelist (Claudes Einschätzung) */
/* Intern → Teamstatistik */
@keyframes wlBlink { 0%, 60% { outline: 2px solid #fff; outline-offset: 2px; } 100% { outline: 2px solid transparent; outline-offset: 6px; } }

/* ---------- Intern: gruppierte Navigation + Startseite „Heute“ ---------- */

/* ---------- Namens-Prüfer ---------- */
.np-karte { margin: 0 0 22px; padding: 18px 20px; border-radius: 16px; background: var(--bg-2); border: 1px solid color-mix(in srgb, var(--tint, var(--accent)) 30%, var(--line)); }
.np-kopf { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.np-k { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; font: 700 21px var(--jp); color: var(--accent);
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); transform: rotate(-4deg); }
.np-kopf h3 { margin: 0 0 2px; font-size: 16px; color: #fff; }
.np-kopf p { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.np-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.np-felder input { padding: 11px 14px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--panel); font-size: 15px; }
.np-felder input:focus { outline: none; border-color: var(--accent); }
.np-aus { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.np-aus:empty { display: none; }
.np-aus li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; }
.np-aus li span { flex: none; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-size: 12px; font-weight: 800; margin-top: 1px; }
.np-error { background: rgba(248,113,113,.08); color: #ffc4c4; } .np-error span { background: #f87171; color: #1a0b0b; }
.np-warn { background: rgba(244,179,63,.08); color: #ffe0a8; } .np-warn span { background: #f4b33f; color: #1a1305; }
.np-ok { background: rgba(111,207,151,.08); color: #c5f0d6; } .np-ok span { background: #6fcf97; color: #07170e; }
.np-hinweis { display: block; margin-top: 10px; font-size: 12px; color: var(--text-3); }
@media (max-width: 560px) { .np-felder { grid-template-columns: 1fr; } }

/* ---------- Intern → Gespräche ---------- */
.ges { border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid #9ec5ff; padding: 0 16px 12px; }
.ges.auf { border-color: color-mix(in srgb, #9ec5ff 45%, var(--line)); }
.ges h4 { margin: 14px 0 6px; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3); }
/* ---------- Wiederholungs-Check ---------- */




/* ---------- Umfrage auf der Startseite ---------- */
.umf-card.umf-blitz { animation: umfBlitz 2.4s ease-out 1; }
@keyframes umfBlitz {
  0% { border-color: rgba(244,163,200,.8); box-shadow: 0 0 0 4px rgba(244,163,200,.18); }
  70% { border-color: rgba(244,163,200,.55); box-shadow: 0 0 0 3px rgba(244,163,200,.10); }
  100% { border-color: var(--line); box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .umf-card.umf-blitz { animation: none; border-color: rgba(244,163,200,.6); } }

.umf-card { margin: 18px 0; padding: 22px 26px; border-radius: 18px; background: rgba(255,255,255,.02); border: 1px solid var(--line); }
.umf-head small { font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--brand, #f4a3c8); font-weight: 700; }
.umf-head h2 { margin: 4px 0 6px; }
.umf-head p { margin: 0 0 4px; color: var(--text-2); max-width: 70ch; }
.umf-meta { font-size: 13px; color: var(--text-3); }
.umf-meta b { color: var(--text-1); }
.umf-gitter { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 9px; margin: 14px 0 10px; }
.umf { position: relative; overflow: hidden; display: grid; grid-template-columns: 38px 1fr auto; gap: 11px; align-items: center;
  padding: 11px 14px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.umf:hover { background: rgba(255,255,255,.05); }
.umf.on { border-color: rgba(244,163,200,.55); background: rgba(244,163,200,.09); }
.umf[disabled] { opacity: .6; cursor: progress; }
.umf-k { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; font: 700 19px var(--jp); color: #f4c3da; background: rgba(244,163,200,.13); transform: rotate(-4deg); }
.umf-t { display: flex; flex-direction: column; min-width: 0; }
.umf-t b { color: #fff; font-size: 14px; }
.umf-t small { color: var(--text-3); font-size: 12px; }
.umf-n { font-variant-numeric: tabular-nums; font-size: 16px; color: #fff; text-align: right; }
.umf-n em { display: block; font-style: normal; font-size: 11.5px; color: var(--text-3); }
.umf-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.05); }
.umf-bar em { display: block; height: 100%; background: linear-gradient(90deg, #f4a3c8, #f4b33f); transition: width .3s; }
.umf-fuss { margin: 0; font-size: 12.5px; color: var(--text-3); }
.umf-fuss b { color: #8fe0b0; }
@media (max-width: 560px) { .umf-card { padding: 18px 16px; } .umf-gitter { grid-template-columns: 1fr; } }

/* ---------- Creator-Verwaltung ---------- */
/* ---------- Konto gegen Konto ---------- */
/* ---------- Zweitkonto-Verdacht ---------- */

.hb-rollen td:nth-child(2) { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-3); width: 62px; }
.hb-rollen td small { color: var(--text-3); font-size: 11px; }
.hb-rechte { margin-top: 4px; }
.hb-rechte summary { cursor: pointer; color: var(--text-3); font-size: 11.5px; }
.hb-rechte code { display: block; margin-top: 4px; font-size: 11px; color: var(--text-3); line-height: 1.6; word-break: break-word; }

.hb-team td:nth-child(2) { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-3); width: 62px; }
.hb-team td:nth-child(3) { color: var(--text-3); font-size: 12px; }

.hb-vergabe { font-size: 12px; color: var(--text-2); }
.hb-vergabe b { color: #8fe0b0; }
.hb-vergabe em { color: var(--text-3); font-style: normal; }
.hb-vergabe small { display: block; color: var(--text-3); font-size: 11px; }
.hb-rollen td:nth-child(2), .hb-rollen td:nth-child(3), .hb-team td:nth-child(3) { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-3); width: 62px; }


/* aufgeklappte Auswahllisten: dieselbe dunkle Fläche wie der Rest, keine graue Systemliste */
select { color-scheme: dark; }
select option, select optgroup { background-color: #141826; color: #e7e8ee; }
select option:checked, select option:hover { background-color: #1f2740; color: #fff; }
/* ---------- Zuteilung ---------- */

/* Zuteilung als Tabelle */

/* ---------- Intern: fünf Bereiche, Rest dahinter ---------- */

/* ---------- Schwebende Knöpfe einklappen ---------- */
.fab-weg { display: none !important; }
.fab-x { position: fixed; z-index: 48; width: 20px; height: 20px; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: #0b0d14; color: var(--text-2);
  font: 700 13px/1 var(--ui); display: grid; place-items: center; cursor: pointer; opacity: .8; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.fab-x:hover { opacity: 1; color: #fff; border-color: var(--text-3); }
.fab-tab { position: fixed; left: 0; z-index: 45; width: 28px; height: 40px; padding: 0; border: 1px solid var(--line-2); border-left: 0; border-radius: 0 10px 10px 0;
  background: var(--bg-2); color: var(--text-2); cursor: pointer; display: grid; place-items: center; font: 600 15px var(--jp); opacity: .7; }
.fab-tab.rechts { left: auto; right: 0; border-left: 1px solid var(--line-2); border-right: 0; border-radius: 10px 0 0 10px; }
.fab-tab:hover { opacity: 1; color: #fff; }

/* ---------- Zuteilung: Karten im Team-Stil ---------- */

/* ---------- Sus-Liste ---------- */
/* Roleplay → Divisionen */
/* Gastronomie: Schichtplan, Rezepte, Kisten-Bestand (25.10.) */
/* 🏯 Dorfübersicht neu (Matt 04.11.: „mit Geld uvm. schöner“) */
/* ⚖️ Justiz (Matt 05.11.: alle Divisionskassen + Ein-/Auszahlungen für die Justiz) */
.st-card h3 em { font-style: normal; color: var(--text-3); font-size: 13px; margin-left: 4px; }

/* ---------- Notizbuch ---------- */

/* ---------- Zuteilung: Aktivität ---------- */

/* ---------- Personenkarte: Interessen ---------- */

/* ---------- Spielwelt ---------- */
/* ---------- Lehrgänge ---------- */
/* ---------- Lehrerbereich ---------- */
.lb { --lb: #f4703f; }
/* ---------- Panel-Protokoll ---------- */
/* ---------- Sicherheitsbefunde ---------- */
/* ---------- Konto-Steckbrief ---------- */
/* ---------- Wörtlicher Textvergleich ---------- */
/* ---------- Konten-Vergleich ---------- */
/* ---------- Alters-Widerspruch + falsche Sperren ---------- */
/* ---------- Wiederholungs-Check: Feld-Vergleich ---------- */

/* ---------- Dorf-Verhältnis: Veränderung ---------- */
/* ---------- Wartezeit ---------- */
.warte { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 18px; padding: 14px 18px; border-radius: 14px; background: rgba(111,168,220,.07); border: 1px solid rgba(111,168,220,.28); }
.warte-k { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; font: 700 19px var(--jp); color: #9ec5ff; background: rgba(111,168,220,.14); transform: rotate(-4deg); }
.warte div { display: flex; flex-direction: column; gap: 2px; }
.warte small { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #9ec5ff; font-weight: 700; }
.warte b { font-size: 16px; color: #fff; }
.warte span { font-size: 13.5px; color: var(--text-2); }
.warte em { font-style: normal; font-size: 12px; color: var(--text-3); margin-top: 2px; }
/* ---------- KI-Kosten ---------- */
.kosten h2 { display: flex; align-items: center; gap: 9px; }

/* ---------- Anwesenheit + KI-Banner ---------- */

/* ---------- #unterstuetzen ---------- */
.unt-pop { position: fixed; left: 50%; bottom: 18px; z-index: 60; width: min(380px, calc(100vw - 32px)); transform: translate(-50%, 20px); opacity: 0; transition: transform .3s ease, opacity .3s ease;
  padding: 16px 18px 14px; border-radius: 16px; background: rgba(18,20,34,.97); border: 1px solid rgba(242,201,76,.3); box-shadow: 0 18px 50px rgba(0,0,0,.55); backdrop-filter: blur(8px); }
.unt-pop.an { transform: translate(-50%, 0); opacity: 1; }
.unt-pop b { display: block; color: #fff; font-size: 15px; margin-bottom: 4px; padding-right: 22px; }
.unt-pop p { margin: 0 0 10px; color: var(--text-2); font-size: 13px; line-height: 1.5; }
.unt-pop .unt-b-spur { height: 8px; } .unt-pop small { display: block; margin-top: 6px; color: var(--text-3); font-size: 11.5px; }
.unt-pop-k { display: flex; gap: 8px; margin-top: 12px; } .unt-pop-k .cta-main, .unt-pop-k .cta-sec { padding: 8px 14px; font-size: 13px; }
.unt-pop-x { position: absolute; top: 8px; right: 10px; border: 0; background: none; color: var(--text-3); font-size: 20px; cursor: pointer; line-height: 1; }
.unt-pop-x:hover { color: #fff; }
.unt-b-spur { height: 14px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; }
.unt-b-spur i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f2c94c, #f4703f); transition: width .8s ease; }
/* ---------- Unterstützen (Redesign 26.09.) ---------- */
.unt { max-width: 1100px; margin: 0 auto; }
/* ---------- Zuteilung als Brett ---------- */
/* ---------- Intern → Handbuch → Staff-Panel-Rechte ---------- */
.spr { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; margin-top: 6px; }
@media (max-width: 900px) { .spr { grid-template-columns: 1fr; } }
.spr-side { background: rgba(0,0,0,.22); border: 1px solid var(--line); border-radius: 14px; padding: 10px 8px; align-self: start; position: sticky; top: 84px; }
@media (max-width: 900px) { .spr-side { position: static; } }
.spr-sep { display: flex; align-items: center; gap: 8px; margin: 12px 6px 4px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.spr-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.spr-rolle { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 9px; border: 1px solid transparent; border-radius: 9px; background: none; color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left; }
.spr-rolle:hover { background: rgba(255,255,255,.04); }
.spr-rolle.on { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); }
.spr-rolle.fertig .spr-rn { text-decoration: line-through; color: var(--text-3); }
.spr-rolle input { width: 15px; height: 15px; accent-color: #22c55e; cursor: pointer; flex: none; margin: 0; }
.spr-cnt { margin-left: auto; font-size: 11px; color: var(--text-3); font-weight: 500; }
.spr-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.spr-hint { margin: 10px 6px 2px; font-size: 11.5px; color: var(--text-3); }
.spr-main { min-width: 0; }
.spr-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.spr-kopf h3 { margin: 0; font-size: 20px; color: #fff; display: flex; align-items: center; gap: 9px; }
.spr-kopf h3 .spr-dot { width: 13px; height: 13px; }
.spr-sub { color: var(--text-2); font-size: 13px; }
.spr-tools { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.spr-seg { display: flex; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.spr-seg button { background: none; border: 0; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 7px; cursor: pointer; }
.spr-seg button.on { background: rgba(255,255,255,.1); color: #fff; }
.spr-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 12px; font-size: 12px; color: var(--text-2); }
.spr-chip { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--line); background: rgba(0,0,0,.25); font-size: 11px; font-weight: 600; color: #d6dae3; white-space: nowrap; }
.spr-leg .spr-chip { margin-top: 0; }
.spr-chip i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.spr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.spr-mod { background: rgba(0,0,0,.22); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.spr-mod.leer { opacity: .45; }
.spr-mod-h { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.spr-mod-h .c { margin-left: auto; font-size: 11px; padding: 1px 8px; border-radius: 99px; background: rgba(255,255,255,.07); color: var(--text-2); letter-spacing: 0; }
.spr-perm { display: flex; gap: 10px; padding: 8px 12px; border-top: 1px solid rgba(255,255,255,.04); }
.spr-perm:first-of-type { border-top: 0; }
.spr-perm b { display: block; font-size: 13px; color: #fff; }
.spr-perm small { display: block; font-size: 12px; color: var(--text-3); }
.spr-perm.aus b { color: var(--text-3); font-weight: 600; }
.spr-box { width: 17px; height: 17px; border-radius: 5px; border: 1.5px solid rgba(255,255,255,.2); flex: none; margin-top: 1px; display: grid; place-items: center; font-size: 11px; color: #fff; }
.spr-perm.an .spr-box { background: #6366f1; border-color: #6366f1; }
.spr-perm.gesperrt .spr-box { border-style: dashed; border-color: #7f2d2d; }
.spr-grid.nur-an .spr-perm.aus { display: none; }
.spr-mx-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.22); max-height: 78vh; }
.spr-mx { border-collapse: separate; border-spacing: 0; font-size: 12px; min-width: 100%; }
.spr-mx th, .spr-mx td { padding: 5px 7px; border-bottom: 1px solid rgba(255,255,255,.04); text-align: center; white-space: nowrap; }
.spr-mx thead th { position: sticky; top: 0; background: #151a2e; z-index: 2; font-weight: 600; color: var(--text-2); vertical-align: bottom; }
.spr-mx .vh { writing-mode: vertical-rl; transform: rotate(180deg); display: inline-block; max-height: 130px; }
.spr-mx .pl { position: sticky; left: 0; background: #12172a; text-align: left; z-index: 1; color: #e6e8ee; }
.spr-mx thead th.pl { z-index: 3; background: #151a2e; }
.spr-mx tr.grp td { background: rgba(255,255,255,.03); font-weight: 700; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; }
.spr-mx .ok { display: inline-block; width: 17px; height: 17px; line-height: 17px; border-radius: 5px; color: #fff; font-size: 10.5px; }
.spr-mx th.sel { color: #fff; background: #232a45; }
.spr-mx td.sel { background: rgba(99,102,241,.08); }
.spr-wer { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -2px 0 10px; font-size: 13px; color: var(--text-2); }
.spr-wer .spr-chip { margin-top: 0; color: #fff; }
.spr-pers { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.spr-pgrp h4 { margin: 4px 0 6px; color: #fff; }
.spr-pgrp h4 small { color: var(--text-3); font-weight: 500; }
.spr-pgrp small { color: var(--text-3); }
.spr-id { background: rgba(255,255,255,.06); border: 1px solid var(--line); color: #cfd6e6; font: 12px ui-monospace, Consolas, monospace; padding: 2px 7px; border-radius: 6px; cursor: pointer; }
.spr-id:hover { border-color: #6366f1; color: #fff; }
.spr-fehlt { color: #fca5a5; font-size: 12px; font-weight: 600; }
.spr-ebtn { width: 100%; margin: 0 0 6px; padding: 7px 10px; border-radius: 9px; border: 1px dashed rgba(255,255,255,.2); background: none; color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.spr-ebtn:hover { color: #fff; border-color: #6366f1; }
.spr-ekopf { font-weight: 700; color: #fff; margin: 2px 6px 4px; }
.spr-erow { display: flex; align-items: center; gap: 6px; margin: 4px 2px; }
.spr-erow input { flex: 1; min-width: 0; padding: 6px 8px; font-size: 13px; }
.spr-erow select { width: 82px; padding: 6px 4px; font-size: 12px; }
.spr-eweg { background: none; border: 0; cursor: pointer; font-size: 14px; opacity: .7; padding: 2px; }
.spr-eweg:hover { opacity: 1; }
.spr-eneu { margin: 4px 2px 2px 20px; background: none; border: 0; color: #a5b4fc; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 2px 0; }
.spr-eact { display: flex; gap: 8px; margin: 14px 2px 6px; }
.spr-eact button { flex: 1; }
.spr-estd { background: none; border: 0; color: var(--text-3); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; margin: 4px 4px 0; padding: 0; }
/* Pack-Opening (wie NoPixel „Creator Reveals“): Folien-Päckchen im Zenkai-Look, Klick reißt es auf */
/* Leistung (Matt, 02.10.): kein filter auf dem Päckchen mehr – darin laufen Animationen, der Schatten musste deshalb
   jedes Bild für jedes Päckchen neu berechnet werden. Jetzt ein fester, einmal gemalter Schatten dahinter. */
/* Herzschlag: alle ~4 s leuchtet das Logo zweimal kurz auf (lub-dub), beim Hovern schneller */
/* Leistung: Weichzeichner sitzt auf den beiden Leuchtschichten selbst (nicht auf dem Behälter) und sie haben eine eigene
   Ebene – dann blendet die Grafikkarte nur die Deckkraft, ohne jedes Bild neu weichzuzeichnen */
@keyframes ckHerz { 0%, 100% { opacity: 0; } 5% { opacity: 1; } 11% { opacity: .2; } 17% { opacity: .75; } 38% { opacity: 0; } }
@keyframes ckFolie { from { background-position: 0% 30%; } to { background-position: 100% 70%; } }
/* Ersatz ohne WebGL: gleicher Kartenrücken wie im Canvas-Motiv (dunkel, Rand und Schein in der Stufenfarbe) */
/* Aufreißen: Zittern → Streifen reißt ab → Folie platzt in zwei gezackte Hälften → Karte steigt aus Rauch (Canvas .ck-fx) */
@keyframes ckZittern { 0% { transform: none; } 20% { transform: translate(-2px, 1px) rotate(-1.5deg); } 40% { transform: translate(3px, -1px) rotate(1.8deg) scale(1.02); } 60% { transform: translate(-3px, 2px) rotate(-2deg) scale(1.03); } 80% { transform: translate(3px, -2px) rotate(2.2deg) scale(1.04); } 100% { transform: scale(1.05); } }
@keyframes ckGlimm { from { opacity: 0; height: 2%; } to { opacity: 1; height: 7%; box-shadow: 0 0 18px 6px rgba(255,210,140,.9); } }
@keyframes ckRiss { 0% { transform: none; } 30% { transform: rotate(-6deg) translate(-3%, -12%); } 100% { transform: rotate(-38deg) translate(-40%, -220%); opacity: 0; } }
@keyframes ckLinks { 0% { transform: none; } 18% { transform: translateX(-4%) rotate(-3deg); } 100% { transform: translate(-85%, 38%) rotate(-32deg); opacity: 0; } }
@keyframes ckRechts { 0% { transform: none; } 18% { transform: translateX(4%) rotate(3deg); } 100% { transform: translate(85%, 42%) rotate(34deg); opacity: 0; } }
/* Creator-Sammelkarten (wie NoPixel „Invited Players“) */   /* max. 3 Kästchen, sonst „+N“ (Matt, 04.10.: Shahrukh lief über den Rand) */
/* Holo-Glanz, wandert mit der Neigung */
/* Rückseite (03.10.): Fūin-Kreis, Profilbild, Kanal-Knöpfe mit Icon */
@keyframes ckFuinDreh { to { transform: rotate(360deg); } }
/* Gedreht: abgewandte Seite wirklich ausblenden (backface-visibility allein reicht nicht in jedem Browser) */
/* große Ansicht */
/* Karten-Stufen: Creator → Partner → Partner+ → Ambassador (je höher, desto mehr Holo/Glanz) */
/* Päckchen: Holo-Streifen wandert über die Folie (Partner+ und Ambassador in Regenbogen) */
/* Leistung (Matt, 02.10.): der Streifen ist eine dreimal so große Ebene, die per transform wandert – das macht die
   Grafikkarte, statt jedes Bild die Hintergrundposition neu zu malen. Sieht gleich aus wie vorher (background-position). */
@keyframes ckHolo { from { transform: translate(-66.667%, -66.667%); } to { transform: translate(0, 0); } }
/* Partner: kräftigerer Glanz */
/* Partner+ und Ambassador: Regenbogen-Holo, das der Maus folgt und langsam die Farbe wechselt */
/* (Farbdurchlauf ckHue entfernt, Matt 02.10.: Dauer-Animation über die ganze Karte – der Schimmer folgt ohnehin der Maus) */
@keyframes ckHue { to { filter: hue-rotate(360deg); } }
/* Partner+ und Ambassador: fester Holo-Rand (Matt, 02.10.: der umlaufende Leuchtrand mit Weichzeichner lief dauernd und
   kostete zu viel Leistung – jetzt ein ruhender Regenbogen-Schimmer, kein animation, kein filter) */
/* Full Art in der Farbe der Natur statt Gold */
/* Ambassador: Full Art in Gold */
/* Ambassador-Aura (Blätter + Flammen, Canvas) */
/* 3D-Holo-Bild: Figur als eigene Ebene vor der Karte (nur Vorderseite) */   /* nur oben darf die Figur über den Rand */   /* nur fürs Aussehen von Schild und Name (Gold/Natur) */
/* Karten-Deko (Matt, 05.10.: „kleiner und perfekt in die Ecken“): ~⅓ kleiner, gerade, bündig in der Ecke innerhalb des Rahmens;
   kippt mit der Karte, Rückseite: weg (backface) */
/* Kyūbi: Schwänze liegen unter Karte und Holo-Rand */
/* Mein Creator-Bereich */
/* Creator-Bereich v2 (Kopf, Plattform-Leiste, Abschnitte) */
@keyframes cb2Puls { 0%, 100% { box-shadow: 0 0 26px rgba(var(--sr), .35); } 12% { box-shadow: 0 0 44px rgba(var(--sr), .65); } 24% { box-shadow: 0 0 30px rgba(var(--sr), .4); } 36% { box-shadow: 0 0 40px rgba(var(--sr), .55); } }
/* Clan-Interesse im Creator-Bereich (Matt, 02.10.) */
@keyframes cwWackeln { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
/* Intern → Creator → Reichweite */
/* Clan-Interesse in den Clanslots */
/* Streamer: Naruto-Musik */
/* Streamer: Keywords & Titel */
/* Datenschutz / Nutzungsbedingungen */
.re-links { display: inline-block; margin-left: 4px; white-space: nowrap; }
/* Zenkai-TikToks auf /creatoren */
/* Intern: Code-Nutzungen im Creator-Dialog */
/* Creatoren: LIVE-Abzeichen, Live-Player, Clips, Rangliste, Creator des Monats */
@keyframes ckPuls { 50% { box-shadow: 0 0 4px rgba(233,25,22,.3); } }
@keyframes crlPuls { 70% { box-shadow: 0 0 0 10px rgba(233,25,22,0); } 100% { box-shadow: 0 0 0 0 rgba(233,25,22,0); } }
.crl-player iframe, .crc-player iframe, .hcm-clip iframe { width: 100%; height: 100%; border: 0; display: block; }
.hcm { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: center; }
.hcm-karte { position: relative; aspect-ratio: 264 / 370; border-radius: 12px; overflow: hidden; border: 2px solid color-mix(in srgb, var(--nf) 60%, #2a2f45); box-shadow: 0 10px 30px color-mix(in srgb, var(--nf) 30%, transparent); }
.hcm-karte img { width: 100%; height: 100%; object-fit: cover; }
.hcm-text small { color: #c9b3ff; font-weight: 700; letter-spacing: .5px; } .hcm-text h2 { margin: 4px 0 6px; font-size: 26px; } .hcm-text p { margin: 0 0 12px; color: var(--text-2); }
.hcm-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.hcm-clip { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
@media (max-width: 820px) { .hcm { grid-template-columns: 110px 1fr; } .hcm-clip { grid-column: 1 / -1; } }
/* Unsere Creatoren */
/* Was ist Zenkai? */
/* Content Creator → Downloads */
/* Karomuster = durchsichtig (wie in der Builder-Vorschau) */
/* Presse-Kit: Tastenbelegung groß + Einsteiger-Text zum Kopieren */
/* ---------- Content Creator in Chakra-Blau (Matt, 29.09.: „das Orange stört langsam“) ---------- */
body.cc-blau { --accent: #3a7bff; --accent-2: #4f8dff; --accent-3: #5ec8ff; --accent-soft: rgba(58,123,255,.14);
  --cc: #3a7bff; --cc-2: #5ec8ff; --cc-rgb: 58,123,255; }
body.cc-blau .cta-main { background: linear-gradient(100deg, #3a7bff, #4f9dff 55%, #5ec8ff); box-shadow: 0 10px 28px rgba(58,123,255,.32); }
/* ---------- Content Creator → Material (nur eingetragene Creator) ---------- */
/* ---------- Intern → Handbuch → Insider-Wissen (Docs-Layout) ---------- */
/* ---------- Intern → Bewerbungen → Akte (eigenes Bewerbungs-Log) ---------- */
/* ---------- Intern → Übersetzung ---------- */
/* Jutsu-Vergabe (Intern) */
.letzte-abl { margin: 8px 0; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(235,87,87,.3); border-left: 4px solid #eb5757; background: rgba(235,87,87,.07); cursor: pointer; }
.letzte-abl span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #f09a9a; margin-bottom: 3px; }
.letzte-abl p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--text); white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.letzte-abl.auf p { -webkit-line-clamp: unset; display: block; }
/* Matt 13.10.: Spalten-Knöpfe waren riesige Ovale mit Zeilenumbruch und liefen rechts raus → klein, einzeilig, umbrechend */
/* ---------- Intern → Handbuch ---------- */
.hb-schritte { counter-reset: hb; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.hb-schritte li { counter-increment: hb; position: relative; padding: 14px 16px 14px 46px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--line); }
.hb-schritte li::before { content: counter(hb); position: absolute; left: 14px; top: 13px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; }
.hb-schritte b { display: block; color: #fff; font-size: 14px; margin-bottom: 3px; }
.hb-schritte span { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.hb-tab { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.hb-tab th { text-align: left; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-3); padding: 0 12px 8px 0; }
.hb-tab td { padding: 9px 12px 9px 0; border-top: 1px solid var(--line); color: var(--text-2); vertical-align: top; }
.hb-tab td:first-child { color: var(--text); font-weight: 600; width: 32%; }
.hb-tab tr.hb-warn td { background: rgba(248,113,113,.07); color: #ffc4c4; }
.hb-tab tr.hb-warn td:first-child { color: #ff9f9f; }
.hb-liste { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.hb-merk { margin: 12px 0 0; padding: 12px 16px; border-radius: 12px; background: rgba(244,179,63,.08); border: 1px solid rgba(244,179,63,.3); color: #ffe0a8; }
.hb-merk b { color: #fff; }
.hb-hinweis { margin: 12px 0 0; font-size: 12.5px; color: var(--text-3); }
@media (max-width: 560px) { .hb-tab td:first-child { width: 42%; } }

/* ---------- Notiz fürs mündliche Gespräch ---------- */

/* ---------- Tagesziel, Dörfer, Liegengebliebenes ---------- */
.dorf h2, .liegen h2 { display: flex; align-items: center; gap: 9px; font-size: 15px; margin: 0 0 12px; }

/* ---------- Meldungs-Schalter ---------- */
/* ticket triage, polished */
/* admin tab "Bewerbungen" */
.wl-card { display: flex; align-items: center; gap: 16px; margin: 18px 0; padding: 16px 20px; border-radius: 18px; text-decoration: none; color: var(--text);
  background: linear-gradient(120deg, rgba(111,207,151,.12), rgba(111,207,151,.03)); border: 1px solid rgba(111,207,151,.35); }
.wl-card:hover { border-color: #6fcf97; }
.wl-card.done { background: linear-gradient(120deg, rgba(252,211,77,.14), rgba(111,207,151,.05)); border-color: rgba(252,211,77,.45); }
.wl-ring { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: conic-gradient(#6fcf97 calc(var(--p) * 1%), rgba(255,255,255,.08) 0); position: relative; }
.wl-ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: #10131f; }
.wl-ring b { position: relative; font-size: 14px; color: #fff; }
.wl-ring.big { width: 96px; height: 96px; }
.wl-ring.big::before { inset: 9px; }
.wl-ring.big b { font-size: 22px; }
.wl-txt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.wl-txt small { font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; color: #6fcf97; font-weight: 700; }
.wl-txt b { color: #fff; font-size: 16px; }
.wl-dots { display: flex; gap: 5px; }
.wl-dots i { width: 22px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.1); }
.wl-dots i.on { background: #6fcf97; }
.wl-card em { font-style: normal; font-weight: 700; color: #6fcf97; white-space: nowrap; }
.wl-card.compact { margin: 0 0 18px; }
.wl-toast { position: fixed; z-index: 80; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 14px;
  color: #0b0d14; background: #6fcf97; box-shadow: 0 14px 40px rgba(0,0,0,.45); text-decoration: none; transition: opacity .3s, transform .3s; max-width: calc(100% - 32px); text-align: center; }
.wl-toast.on { opacity: 1; transform: translate(-50%, 0); }
.newsbtn { position: relative; }
.unt-navbtn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; border: 1px solid rgba(242,201,76,.45); background: rgba(242,201,76,.1); color: #ffe49a; font: 600 13px var(--ui); text-decoration: none; white-space: nowrap; }
.unt-navbtn:hover { background: rgba(242,201,76,.2); color: #fff; }
@media (max-width: 1180px) { .unt-navbtn span { display: none; } .unt-navbtn { padding: 7px 10px; } }
.news-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font: 600 13px var(--ui); cursor: pointer; }
.news-btn:hover { border-color: #fcd34d; }
.news-btn i { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #eb5757; color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.news-pop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 70; width: 340px; max-height: 70vh; overflow-y: auto; padding: 10px; border-radius: 16px;
  background: #121628; border: 1px solid var(--line-2); box-shadow: 0 20px 50px rgba(0,0,0,.5); display: grid; gap: 4px; }
.news-pop[hidden] { display: none; }
.news-pop-h { padding: 4px 8px 8px; color: #fff; font-size: 15px; }
.news-pop a { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 12px; text-decoration: none; color: var(--text); }
.news-pop a:hover { background: rgba(255,255,255,.05); }
.news-pop a.unseen { background: rgba(252,211,77,.07); }
.np-i { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: rgba(255,255,255,.07); font: 700 16px 'Noto Serif JP', var(--ui); }
.news-pop b { display: block; color: #fff; font-size: 14px; }
.news-pop small { color: var(--text-3); font-size: 12.5px; }
@media (max-width: 700px) {
  .news-btn span { display: none; } .news-pop { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; } }
.chat-privacy { color: #fcd34d !important; font-size: 12.5px; margin-top: 4px; }

/* Admin dashboard */
/* net change per day: bars grow up from the zero line (gain) or down (loss) */

/* Marketing: members line with TikTok markers */

/* ---------- Article ---------- */
.reader { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 40px; max-width: 1180px; margin: 0 auto; padding: 48px 48px 90px; }
/* Keep the reading column optically centred inside its track */
.reader > article > * { margin-left: auto; margin-right: auto; }
.art-head, .narr, .prose, .pager, .rules, .src, .disclaimer { max-width: 70ch; }
.prose { max-width: 68ch; }
.art-head {
  /* Page headers in the Zenkai key-art style (same look as the Zenkai-Guide header), tinted per page */
  position: relative; overflow: hidden; isolation: isolate; border: 1px solid color-mix(in srgb, var(--tint) 28%, var(--line)); border-radius: 22px;
  padding: 26px 28px; margin-bottom: 34px; display: flex; gap: 20px; align-items: center; min-height: 150px;
}
.art-head::before {
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: url('/assets/keyart.webp') var(--pos, 70% 32%) / cover no-repeat;
}
.art-head::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(95deg, rgba(10,12,19,.97) 30%, rgba(10,12,19,.74) 64%, rgba(10,12,19,.38)),
              radial-gradient(ellipse at 10% 50%, color-mix(in srgb, var(--tint) 24%, transparent), transparent 58%);
}
.art-head .seal {
  width: 74px; height: 74px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--jp); font-size: 30px; color: #fff; text-shadow: 0 0 18px color-mix(in srgb, var(--tint) 70%, transparent);
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--tint) 38%, transparent), rgba(11,13,20,.88) 70%);
  box-shadow: 0 0 0 2px var(--tint), 0 10px 30px color-mix(in srgb, var(--tint) 35%, transparent);
}
.art-head .crumb { font-size: 11.5px; color: color-mix(in srgb, var(--tint) 75%, #fff); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
.art-head h1 { margin: 4px 0 6px; font-size: clamp(30px, 4.2vw, 44px); font-weight: 700; letter-spacing: -.9px; line-height: 1.08; text-wrap: balance; text-shadow: 0 4px 24px rgba(0,0,0,.6); }
.art-head .meta { color: #c9ccd8; font-size: 14.5px; }
.tools { display: flex; gap: 8px; margin-left: auto; align-self: flex-start; }
.btn {
  border: 1px solid var(--line-2); background: var(--panel); border-radius: 10px; padding: 8px 12px; cursor: pointer;
  font-size: 13.5px; color: var(--text-2); display: inline-flex; align-items: center; gap: 7px; transition: all .15s; white-space: nowrap;
}
.btn:hover { color: var(--text); border-color: var(--accent); }
.btn.ok { color: #7ee2a8; border-color: #3d8f63; }
.btn svg { width: 15px; height: 15px; }

.ooc-hinweis { display: grid; gap: 4px; max-width: 68ch; margin: 0 0 22px; padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(244,179,63,.45); background: rgba(244,179,63,.1); color: #f1dcb0; font-size: 14px; line-height: 1.55; }
.ooc-hinweis b:first-child { color: #ffcf6b; font-size: 15px; letter-spacing: .3px; }
.ooc-hinweis a { color: #ffcf6b; }
.prose { font-family: var(--serif); font-size: var(--reading); line-height: 1.85; color: #d5d8e3; max-width: 68ch; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--ui); color: #fff; line-height: 1.3; scroll-margin-top: 24px; text-wrap: balance; letter-spacing: -.3px; }
/* The chapter openers are centred, sub-headings stay centred too — same look in every language. */
.prose h1, .prose h2 { text-align: center; }
.prose h1 { font-size: 1.8em; margin: 1.4em 0 .7em; font-weight: 700; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: color-mix(in srgb, var(--tint) 60%, transparent); }
.prose h2 { font-size: 1.34em; margin: 2.1em 0 .8em; font-weight: 600; font-style: italic; }
.prose h1 u, .prose h2 u, .prose h3 u { text-decoration: none; }
.prose h3 { font-size: 1.12em; margin: 1.7em 0 .5em; font-weight: 600; color: color-mix(in srgb, var(--tint) 45%, #fff); }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.15em; }
.prose > p:first-of-type { font-size: 1.06em; color: #e4e6ef; }
.prose hr {
  border: 0; height: 22px; margin: 2.4em auto; width: 100%;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--tint) 55%, transparent) 0 1.5px, transparent 2px) center / 22px 22px no-repeat,
              linear-gradient(90deg, transparent, var(--line-2) 22%, var(--line-2) 78%, transparent) center / 100% 1px no-repeat;
}
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--accent); }
.prose strong { color: #fff; }
mark, .prose mark { background: var(--mark); color: #fff; border-radius: 3px; padding: 0 2px; }
/* The rule a link pointed at: framed instead of word-by-word highlighting */
.rule.rule-target { border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 0 0 3px var(--accent-soft); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 60px; max-width: 70ch; }
.pager a {
  display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none;
  background: var(--bg-2); transition: border-color .15s;
}
.pager a:hover { border-color: var(--accent); }
.pager small { display: block; color: var(--text-3); font-size: 12px; margin-bottom: 3px; }
.pager b { font-weight: 500; }
.pager .next { text-align: right; grid-column: 2; }

.toc { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; font-size: 13px; margin-top: 28px; } /* clear of the soundtrack button top right */
.toc .group-label { padding-left: 12px; }
.toc a {
  display: block; padding: 6px 12px; color: var(--text-3); text-decoration: none; border-left: 2px solid var(--line);
  line-height: 1.4; transition: color .12s, border-color .12s;
}
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--accent); border-left-color: var(--accent); }
.fontctl { display: flex; gap: 6px; margin: 0 0 22px 12px; }
.fontctl .btn { padding: 5px 10px; }

/* ---------- Search results ---------- */
.results { max-width: 820px; margin: 0 auto; padding: 48px 48px 80px; }
.results h1 { font-size: 28px; font-weight: 600; margin: 0 0 6px; }
.results .sub { color: var(--text-2); margin: 0 0 28px; }
.hit { display: block; text-decoration: none; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: var(--bg-2); transition: border-color .15s; }
.hit:hover { border-color: var(--accent); }
.hit .h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.hit .h b { font-weight: 600; }
.hit .h span { font-size: 12px; color: var(--text-3); }
.hit p { margin: 6px 0 0; color: var(--text-2); font-family: var(--serif); font-size: 14.5px; line-height: 1.6; }
.hit mark { background: var(--mark); color: #fff; border-radius: 3px; padding: 0 2px; }
.empty { color: var(--text-3); padding: 30px 0; }

/* ---------- System requirements ---------- */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }

/* ---------- Zenkai-Guide chat ---------- */
.chat { max-width: 70ch; display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.msg { max-width: 88%; padding: 12px 15px; border-radius: 16px; font-size: 15px; line-height: 1.6; }
.msg p { margin: 0 0 8px; }
.msg p:last-child, .msg ul:last-child { margin-bottom: 0; }
.msg ul { margin: 0 0 8px; padding-left: 1.2em; }
.msg.bot { align-self: flex-start; background: var(--bg-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: color-mix(in srgb, var(--tint) 18%, var(--panel)); border: 1px solid color-mix(in srgb, var(--tint) 35%, transparent); border-bottom-right-radius: 6px; }
.msg.err { border-color: color-mix(in srgb, #e0615e 50%, transparent); color: #f0b3b1; }
.chat-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.chat-sources span { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-3); margin-right: 2px; }
.src-chip {
  font-size: 12.5px; padding: 4px 10px; border-radius: 999px; text-decoration: none; color: var(--text-2);
  background: var(--panel); border: 1px solid var(--line-2); transition: color .15s, border-color .15s;
}
.src-chip:hover { color: var(--text); border-color: var(--accent); }
.chat-link {
  color: color-mix(in srgb, var(--accent) 78%, #fff); font-weight: 600; text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}
.chat-link:hover { color: #fff; text-decoration-color: var(--accent); }

/* Chat fills the window like a messenger: header on top, conversation scrolls, input pinned at the bottom */
/* Höhe = Fenster minus obere Leiste (74px), sonst rutscht das Eingabefeld unter den Rand – die Seite scrollt hier nicht */

/* Zenkai-Guide header in the site's key-art style */

/* answers: small seal avatar, calmer typography */
.msg.bot { position: relative; margin-left: 42px; max-width: calc(100% - 42px); padding: 14px 17px; line-height: 1.68; }
.msg.bot::before {
  content: '導'; position: absolute; left: -42px; top: 2px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--jp); font-size: 15px; color: #fff;
  background: radial-gradient(circle at 30% 25%, rgba(244,112,63,.45), rgba(11,13,20,.9) 75%); box-shadow: 0 0 0 1.5px var(--accent-2);
}
.msg.bot p { margin-bottom: 10px; }
.msg b { color: #fff; font-weight: 700; }
.dots { display: inline-flex; gap: 4px; padding: 4px 0; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: blink 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.chat-suggest { max-width: 70ch; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chat-suggest[hidden] { display: none; }
.chip {
  border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2); border-radius: 999px;
  padding: 7px 13px; font-size: 13.5px; cursor: pointer; transition: border-color .15s, color .15s;
}
.chip:hover { color: #fff; border-color: var(--tint); }
.chat-form {
  max-width: 70ch; display: flex; align-items: flex-end; gap: 8px; padding: 8px; border-radius: 16px;
  border: 1px solid var(--line-2); background: var(--panel);
}
.chat-form:focus-within { border-color: var(--tint); }
.chat-form textarea {
  flex: 1; resize: none; border: 0; outline: none; background: none; color: var(--text); font: inherit;
  font-size: 15px; line-height: 1.5; padding: 7px 8px; max-height: 160px;
}
.chat-form textarea::placeholder { color: var(--text-3); }
.chat-send {
  width: 40px; height: 40px; flex: none; border-radius: 12px; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--tint); color: #0b0d14; transition: opacity .15s, transform .12s;
}
.chat-send:hover { transform: scale(1.05); }
.chat-send:disabled { opacity: .45; cursor: default; transform: none; }
.chat-send svg { width: 18px; height: 18px; }

/* ---------- Beginner banner + guide pages ---------- */
.banner {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 20px; margin-top: 22px;
  padding: 22px 26px; border-radius: 20px; text-decoration: none; color: var(--text);
  border: 1px solid color-mix(in srgb, var(--tint) 45%, var(--line-2));
  background: linear-gradient(110deg, color-mix(in srgb, var(--tint) 20%, var(--panel)), var(--bg-2) 75%);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.banner::before {
  content: ''; position: absolute; inset: 0; background: url('/assets/cardbg.webp') right center / cover no-repeat;
  opacity: .1; pointer-events: none;
}
.banner:hover { transform: translateY(-2px); border-color: var(--tint); box-shadow: 0 16px 40px color-mix(in srgb, var(--tint) 18%, rgba(0,0,0,.4)); }
.banner > * { position: relative; }
.banner + .banner { margin-top: 12px; }

.tip { margin: 0 0 18px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); }
/* Erste Schritte im Spiel */
.es kbd { display: inline-block; min-width: 20px; padding: 0 7px; border-radius: 6px; font: 700 12.5px/1.7 var(--ui); text-align: center; color: var(--text); background: var(--panel); border: 1px solid var(--line-2); border-bottom-width: 3px; vertical-align: 1px; white-space: nowrap; }
.es .es-check { margin: 18px 0 22px; padding: 16px 20px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--tint) 45%, transparent); background: color-mix(in srgb, var(--tint) 9%, var(--bg-2)); }
.es .es-check-h { font: 700 14px var(--ui); margin-bottom: 8px; }
.es .es-check ol { margin: 0; padding-left: 22px; }
.es .es-check li { margin: 4px 0; }
.es .es-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.es .es-jump a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); font: 600 13px var(--ui); color: inherit; text-decoration: none; }
.es .es-jump a:hover { border-color: var(--tint); }
.es h2 { scroll-margin-top: 80px; }
.es .es-bild { display: block; margin: 0 0 18px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.es .es-bild img { display: block; width: 100%; height: auto; }
.prose .tip h3 { margin: 0 0 6px; text-align: left; }
.tip p:last-of-type, .tip ul:last-of-type { margin-bottom: 0; }
.rule-ref { display: inline-block; margin-top: 10px; font-family: var(--ui); font-size: 13px; font-weight: 600; color: var(--tint); text-decoration: none; }
.rule-ref:hover { text-decoration: underline; }

.mistakes { max-width: 70ch; display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.mistake { display: flex; gap: 16px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); }
.mk-no {
  width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; font-weight: 700;
  color: var(--tint); background: color-mix(in srgb, var(--tint) 14%, transparent);
}
.mk-body { flex: 1; min-width: 0; }
.mk-body p { margin: 0 0 10px; line-height: 1.6; }
.mk-body p span { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 2px; }
.mk-wrong span { color: #e0615e; }
.mk-right span { color: #5fc9a6; }
.mk-why { font-size: 14px; color: var(--text-2); }
@media (max-width: 560px) {
  .banner { flex-direction: column; align-items: flex-start; padding: 18px; }
  .mistake { flex-direction: column; gap: 10px; }
}

/* ---------- Rules ---------- */
.rules { max-width: 70ch; display: flex; flex-direction: column; gap: 8px; }
.rule { border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); overflow: hidden; }
.rule[open] { border-color: color-mix(in srgb, var(--tint) 40%, var(--line)); }
.rule summary {
  list-style: none; cursor: pointer; padding: 13px 16px; display: flex; align-items: center; gap: 12px;
  font-size: 15.5px; color: var(--text); transition: background .12s;
}
.rule summary::-webkit-details-marker { display: none; }
.rule summary::after {
  content: ''; margin-left: auto; width: 8px; height: 8px; flex: none; border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3); transform: rotate(45deg) translateY(-2px); transition: transform .2s;
}
.rule[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.rule summary:hover { background: rgba(255,255,255,.03); }
.rule-body { padding: 2px 16px 16px; font-size: .95rem; line-height: 1.75; color: var(--text-2); }
.rule-body p { margin: 0 0 .8em; }
/* Kurzfassung großer Regeln (19.10.2026) */
.kurz { margin: 10px 0 16px; padding: 12px 14px 10px; border-radius: 10px; border: 1px solid color-mix(in srgb, #f4b33f 45%, var(--line));
  background: color-mix(in srgb, #f4b33f 9%, var(--bg-2)); color: var(--text); line-height: 1.6; }
.kurz-k { font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: #f4b33f; margin-bottom: 6px; }
.kurz ul { margin: 0; padding-left: 1.15em; }
.kurz li { margin: 0 0 .35em; }
.kurz-f { margin-top: 6px; font-size: .78rem; color: var(--text-3); }
.toc a[data-r] { white-space: normal; }
.src { max-width: 70ch; margin: 22px 0 0; font-size: 12.5px; color: var(--text-3); }

.disclaimer {
  max-width: 70ch; margin: 56px 0 0; padding: 16px 18px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255,255,255,.02);
  font-size: 12.5px; line-height: 1.7; color: var(--text-3);
}
.disclaimer b { color: var(--text-2); }
.disclaimer a { color: var(--accent); text-decoration: none; }
.disclaimer a:hover { text-decoration: underline; }

.view { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .reader { grid-template-columns: 1fr; }
  .toc { display: none; }
}
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  aside.side {
    position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 40;
    transform: translateX(-100%); transition: transform .25s ease; background: var(--bg-2);
  }
  body.nav-open aside.side { transform: none; box-shadow: 20px 0 60px rgba(0,0,0,.5); }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 30; opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .topbar {
    display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20;
    padding: 12px 16px; background: #0d101a; border-bottom: 1px solid var(--line);
  }
  .topbar b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .top-logo { width: 74px; flex: none; }

  .home { padding: 0 0 60px; }
  .hero-logo { width: 140px; margin-bottom: 18px; }
  .home section, .home .grid, .home .ost, .home .banner, .home h2, .home .disclaimer { margin-left: 16px; margin-right: 16px; }
  .stats { gap: 10px; }
  .stats div { padding: 8px 13px; }
  .reader, .results { padding: 22px 16px 70px; }
  .art-head { padding: 18px; border-radius: 18px; }
  .art-head .seal { width: 56px; height: 56px; font-size: 24px; }
  .art-head { min-height: 0; }
  .art-head { flex-wrap: wrap; }
  .tools { margin-left: 0; width: 100%; }
  .search kbd { display: none; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
}
/* ---------- Narration ---------- */
.narr {
  display: flex; align-items: center; gap: 14px; max-width: 70ch; margin: -8px 0 34px; padding: 14px 16px;
  border-radius: 16px; border: 1px solid color-mix(in srgb, var(--tint) 30%, var(--line-2));
  background: linear-gradient(135deg, color-mix(in srgb, var(--tint) 9%, var(--panel)), var(--bg-2));
}
.narr-play {
  width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--tint); color: #0b0d14; transition: transform .12s; box-shadow: 0 6px 20px color-mix(in srgb, var(--tint) 35%, transparent);
}
.narr-play:hover { transform: scale(1.06); }
.narr-play svg { width: 20px; height: 20px; }
.narr-mid { flex: 1; min-width: 0; }
.narr-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.narr-top b { font-weight: 600; font-size: 15px; }
.narr-top span { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.narr-sub { font-size: 12.5px; color: var(--text-2); margin: 1px 0 8px; }
.narr-mid input[type=range] { width: 100%; display: block; accent-color: var(--tint); }
.narr-tools { display: flex; align-items: center; gap: 2px; }
.speed-btn {
  min-width: 46px; height: 30px; border-radius: 8px; border: 1px solid var(--line-2); background: none; color: var(--text-2);
  cursor: pointer; font-size: 12.5px; font-variant-numeric: tabular-nums;
}
.speed-btn:hover { color: #fff; border-color: var(--tint); }
.skip-btn { position: relative; }
.skip-btn i { position: absolute; font: 600 8px var(--ui); font-style: normal; top: 50%; left: 50%; transform: translate(-50%, -42%); }
.prose .speaking { background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: -14px 0 0 color-mix(in srgb, var(--accent) 10%, transparent), 14px 0 0 color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 4px; transition: background .3s; }
.prose.narrating p, .prose.narrating h1, .prose.narrating h2, .prose.narrating h3 { cursor: pointer; }
.narr-vol { display: flex; align-items: center; gap: 8px; width: 100%; color: var(--text-3); padding-left: 62px; }
.narr-vol svg { width: 16px; height: 16px; flex: none; }
.narr-vol input { flex: 1; max-width: 260px; accent-color: var(--tint); }
.narr { flex-wrap: wrap; }
.listen-badge { color: var(--tint); display: inline-flex; vertical-align: -2px; margin-left: 4px; }
.listen-badge svg { width: 13px; height: 13px; }

.narr-mini {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; z-index: 44; width: min(520px, calc(100vw - 480px));
  display: none; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 999px;
  background: rgba(20,24,38,.96); backdrop-filter: blur(14px); border: 1px solid var(--line-2); box-shadow: 0 14px 40px rgba(0,0,0,.5);
}
.narr-mini.show { display: flex; animation: fade .2s ease; }
.narr-mini .narr-play { width: 40px; height: 40px; }
.narr-mini .narr-play svg { width: 16px; height: 16px; }
.narr-mini .mm { flex: 1; min-width: 0; cursor: pointer; }
.narr-mini .mm b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.narr-mini .mm small { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.narr-mini .mbar { height: 3px; border-radius: 3px; background: var(--line-2); margin-top: 5px; overflow: hidden; }
.narr-mini .mbar i { display: block; height: 100%; width: 0; background: var(--tint); }
@media (max-width: 820px) {
  .narr-mini { left: 16px; right: 16px; transform: none; width: auto; bottom: 84px; }
}
@media (max-width: 520px) {
  .narr { flex-wrap: wrap; }
  .narr-tools { width: 100%; justify-content: space-between; }
}

/* ---------- Music player ---------- */
.music-fab {
  position: fixed; right: 20px; top: 16px; z-index: 45; height: 44px; padding: 0 18px 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: linear-gradient(135deg, var(--accent), var(--accent-3)); color: #fff; cursor: pointer;
  display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(223,61,97,.4); transition: transform .2s, box-shadow .2s, opacity .2s;
}
.music-fab:hover { transform: scale(1.04); box-shadow: 0 14px 38px rgba(223,61,97,.55); }
.music-fab svg { width: 19px; height: 19px; flex: none; }
.music-fab { font-size: 14px; }
.music-fab.hidden { display: none; }
.music-fab.tucked { opacity: 0; transform: translateY(-12px) scale(.9); pointer-events: none; }
/* Gentle attention pulse until the player has been opened once. */
.music-fab.new::after {
  content: ''; position: absolute; inset: -4px; border-radius: 999px; border: 2px solid var(--accent);
  animation: ring 2.4s ease-out infinite; pointer-events: none;
}
@keyframes ring { 0% { opacity: .8; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.35); } }

.music-hint {
  position: fixed; right: 20px; top: 72px; z-index: 45; max-width: 260px; padding: 12px 14px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0,0,0,.5);
  font-size: 13px; line-height: 1.5; color: var(--text-2); display: none; animation: fade .3s ease;
}
.music-hint.show { display: block; }
.music-hint b { color: #fff; display: block; margin-bottom: 2px; font-size: 13.5px; }
.music-hint button { margin-top: 8px; border: 0; background: none; color: var(--accent); cursor: pointer; font-size: 12.5px; padding: 0; }

/* Home: soundtrack call-out */
.ost {
  display: flex; align-items: center; gap: 20px; margin-top: 18px; padding: 20px 22px; border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line-2));
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 12%, var(--panel)), var(--bg-2) 70%);
}
.ost-icon {
  width: 56px; height: 56px; flex: none; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-3)); box-shadow: 0 8px 24px rgba(223,61,97,.35);
}
.ost-icon svg { width: 26px; height: 26px; }
.ost-txt { flex: 1; min-width: 0; }
.ost-txt b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 3px; }
.ost-txt span { font-size: 13.5px; color: var(--text-2); }
.ost-btn {
  border: 0; border-radius: 999px; padding: 11px 20px; cursor: pointer; font-size: 14.5px; font-weight: 600; white-space: nowrap;
  background: #fff; color: #0b0d14; transition: transform .12s;
}
.ost-btn:hover { transform: scale(1.04); }
@media (max-width: 560px) {
  .ost { flex-wrap: wrap; gap: 14px; }
  .ost-btn { width: 100%; }
  .music-fab { padding: 0 18px 0 16px; font-size: 14px; }
  .music-hint { left: 16px; right: 16px; max-width: none; }
}
.player {
  position: fixed; right: 20px; top: 16px; z-index: 45; width: 360px; max-width: calc(100vw - 32px);
  background: rgba(20,24,38,.96); backdrop-filter: blur(14px); border: 1px solid var(--line-2); border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.55); padding: 14px; display: none;
}
.player.open { display: block; animation: dropIn .22s ease; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.pl-top { display: flex; gap: 14px; }
.pl-cover { width: 200px; height: 200px; flex: none; border-radius: 12px; overflow: hidden; background: #000; }
.pl-cover iframe, .pl-cover > div { width: 200px; height: 200px; display: block; border: 0; }
.pl-side { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pl-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pl-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.3px; color: var(--text-3); }
.icon-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: none; color: var(--text-2); cursor: pointer;
  display: grid; place-items: center; transition: color .12s, background .12s; flex: none;
}
.icon-btn:hover { color: #fff; background: rgba(255,255,255,.06); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.on { color: var(--accent); }
.pl-title { font-size: 17px; font-weight: 600; line-height: 1.25; margin-top: auto; overflow-wrap: anywhere; }
.pl-artist { font-size: 13px; color: var(--text-2); margin-top: 3px; }
.pl-links { display: flex; flex-direction: column; gap: 3px; margin-top: 10px; font-size: 12px; }
.pl-links a { color: var(--text-3); text-decoration: none; }
.pl-links a:hover { color: var(--accent); }
.pl-bar { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.pl-bar input { flex: 1; }
input[type=range] { -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: var(--line-2); outline: none; accent-color: var(--accent); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; cursor: pointer; }
input[type=range]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; }
.pl-ctrl { display: flex; align-items: center; justify-content: center; gap: 10px; }
.pl-play { width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: #0b0d14; cursor: pointer; display: grid; place-items: center; transition: transform .12s; }
.pl-play:hover { transform: scale(1.06); }
.pl-play svg { width: 20px; height: 20px; }
.pl-vol { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.pl-vol input { flex: 1; }
.pl-list { margin-top: 10px; max-height: 0; overflow-y: auto; transition: max-height .25s ease; border-top: 1px solid transparent; }
.pl-list.open { max-height: 240px; border-top-color: var(--line); }
.pl-track { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 6px; border: 0; background: none; cursor: pointer; text-align: left; border-radius: 8px; color: var(--text-2); font-size: 13.5px; }
.pl-track:hover { background: rgba(255,255,255,.05); color: #fff; }
.pl-track.cur { color: var(--accent); }
.pl-track small { margin-left: auto; color: var(--text-3); font-size: 11.5px; white-space: nowrap; }
.pl-track .no { width: 18px; color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .player { right: 16px; left: 16px; top: 64px; width: auto; max-width: none; }
  .pl-top { gap: 12px; }
}
@media (max-width: 400px) {
  .pl-top { flex-direction: column; }
  .pl-cover { margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Akademie · Hausordnung */
