/* Yami Tsume · Leseseite. Palette = 6-pipeline/higgsfield/STYLE_BLOCK.md (Website-Tokens) */
:root {
  --night-950: #0a0a0c;
  --night-900: #121216;
  --night-800: #1c1c22;
  --ink-100: #ececef;
  --ink-200: #d4d4da;
  --ink-300: #a7a7b0;
  --ink-500: #6e6e78;
  --blood-500: #8b0000;
  --blood-400: #b3261e;
  --cyan: #38e1e8;
  --amber: #ffb454;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --jp: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --measure: 36rem;
  --gutter: clamp(1rem, 5vw, 2.5rem);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--night-950);
  color: var(--ink-100);
  font-family: var(--serif);
  font-size: clamp(1.06rem, 0.98rem + 0.35vw, 1.22rem);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--blood-500); color: #fff; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink-100); color: var(--night-950); padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }

/* Kopfzeile */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem var(--gutter);
  font-family: var(--sans); font-size: .82rem; letter-spacing: .08em;
  background: linear-gradient(var(--night-950) 0%, rgba(10,10,12,.0) 100%);
  transition: transform .35s ease, background .35s ease;
}
.topbar.hide { transform: translateY(-100%); }
.brand { text-decoration: none; text-transform: uppercase; font-weight: 600; }
.brand span { font-family: var(--jp); color: var(--blood-400); margin-right: .35rem; letter-spacing: 0; }
.topbar nav { display: flex; gap: 1.2rem; }
.topbar nav a { text-decoration: none; color: var(--ink-300); }
.topbar nav a:hover, .topbar nav a:focus-visible { color: var(--ink-100); }
@media (max-width: 520px) { .topbar nav a:not(:first-child) { display: none; } }

.eyebrow { font-family: var(--sans); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-300); margin: 0 0 .8rem; }

/* Startseite */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.66); }
.hero-still { object-position: 38% 30%; transform: scale(1.08); animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.08) translateX(0); } to { transform: scale(1.14) translateX(-1.5%); } }
@media (min-width: 900px) { .hero-still { object-position: 60% 30%; } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,12,.2) 30%, var(--night-950) 96%); }
.hero-text { position: relative; z-index: 1; padding: 5.5rem var(--gutter) clamp(2.5rem, 8vh, 6rem); max-width: 46rem; }
@media (max-height: 820px) and (min-width: 700px) { .hero h1 { font-size: clamp(2.6rem, 1.5rem + 4.5vw, 4.6rem); } .premise { margin-bottom: 1.4rem; } }
.hero h1 { font-family: var(--jp); font-weight: 700; font-size: clamp(3rem, 2rem + 6vw, 6.4rem); line-height: .95; margin: 0 0 1.2rem; letter-spacing: .02em; }
.hero h1 .jp { display: block; font-size: .42em; color: var(--blood-400); letter-spacing: .3em; margin-bottom: .4rem; }
.premise { font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.5; color: var(--ink-200); margin: 0 0 2rem; max-width: 34rem; }
.leitfrage { font-family: var(--jp); font-style: italic; font-size: clamp(1rem, .95rem + .4vw, 1.2rem); color: var(--amber); margin: -1rem 0 2rem; max-width: 30rem; }
.cta { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .06em; text-decoration: none; background: var(--blood-500); color: #fff; padding: 1rem 1.7rem; border-radius: 2px; transition: background .2s; }
.cta:hover, .cta:focus-visible { background: var(--blood-400); }
.cta-sub { font-family: var(--sans); font-size: .8rem; color: var(--ink-300); margin-top: .9rem; }

.intro { max-width: var(--measure); margin: 0 auto; padding: 3.5rem var(--gutter) 1rem; font-size: 1.2em; color: var(--ink-200); }
.intro p:last-child { color: var(--ink-100); font-style: italic; }

.sec { font-family: var(--jp); font-weight: 500; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); margin: 0 0 1.5rem; }
.sec-lead { color: var(--ink-300); max-width: var(--measure); margin: -.5rem 0 2rem; }
.chapters, .world, .people, .facts { padding: 3rem var(--gutter); max-width: 76rem; margin: 0 auto; }

.ch-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.ch-card { position: relative; display: flex; flex-direction: column; justify-content: end; min-height: 26rem; padding: 1.5rem; text-decoration: none; overflow: hidden; border-radius: 3px; isolation: isolate; }
.ch-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s; filter: brightness(.7); }
.ch-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(10,10,12,.95)); }
.ch-card:hover img, .ch-card:focus-visible img { transform: scale(1.04); filter: brightness(.85); }
.ch-no { font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blood-400); }
.ch-title { font-family: var(--jp); font-size: 1.6rem; line-height: 1.2; margin: .35rem 0 .5rem; }
.ch-teaser { font-size: .95rem; color: var(--ink-300); line-height: 1.5; }

.clans { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); }
.clan { background: var(--night-900); border-top: 2px solid var(--accent); border-radius: 3px; overflow: hidden; }
.clan img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; filter: brightness(.75); }
.clan > div { padding: 1.25rem 1.4rem 1.5rem; }
.clan h3 { font-family: var(--jp); font-weight: 500; font-size: 1.35rem; margin: 0 0 .2rem; }
.clan h3 span { color: var(--accent); margin-right: .3rem; }
.clan-role { font-family: var(--sans); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-500); margin: 0 0 .8rem; }
.clan p { font-size: .98rem; line-height: 1.6; color: var(--ink-200); margin: 0; }

.people-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(46%, 12rem), 1fr)); }
.person { margin: 0; }
.person img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; border-radius: 3px; filter: brightness(.88); }
.person figcaption { padding: .6rem 0 0; font-family: var(--sans); font-size: .85rem; line-height: 1.4; }
.person figcaption span { display: block; color: var(--ink-300); font-size: .8rem; }

.facts ul { max-width: var(--measure); padding-left: 1.1rem; color: var(--ink-200); }
.facts li { margin-bottom: .9rem; }

/* Kapitel */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 30; }
.progress span { display: block; height: 100%; width: 0; background: var(--blood-400); }

.chapter-hero { position: relative; min-height: 92svh; display: grid; align-items: end; overflow: hidden; }
.chapter-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.72); transform: scale(1.06); animation: settle 2.4s cubic-bezier(.2,.7,.2,1) forwards; }
.chapter-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,12,.1) 30%, var(--night-950) 97%); }
@keyframes settle { to { transform: scale(1); } }
.chapter-hero-text { position: relative; z-index: 1; width: 100%; padding-top: 5rem; max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter) 2.5rem; }
.chapter-hero h1 { font-family: var(--jp); font-weight: 700; font-size: clamp(2.3rem, 1.6rem + 3.5vw, 4.4rem); line-height: 1.08; margin: 0 0 1rem; }
.teaser { font-size: 1.12em; color: var(--ink-200); line-height: 1.5; margin: 0 0 1rem; }
.meta { font-family: var(--sans); font-size: .8rem; letter-spacing: .06em; color: var(--ink-300); margin: 0; }

.listen { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: .9rem; max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: .75rem var(--gutter); background: rgba(10,10,12,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-family: var(--sans); font-size: .85rem; }
.listen-btn { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--ink-500); background: none; color: var(--ink-100); font: inherit; padding: .55rem 1rem .55rem .8rem; border-radius: 999px; cursor: pointer; min-height: 44px; }
.listen-btn:hover, .listen-btn:focus-visible { border-color: var(--ink-100); }
.listen-btn .ico { width: 0; height: 0; border-left: 10px solid var(--blood-400); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.listen.playing .ico { width: 10px; height: 12px; border: 0; border-left: 3px solid var(--blood-400); border-right: 3px solid var(--blood-400); }
.listen-bar { flex: 1; height: 2px; background: var(--night-800); cursor: pointer; }
.listen-bar span { display: block; height: 100%; width: 0; background: var(--ink-300); }
.listen-time { color: var(--ink-300); font-variant-numeric: tabular-nums; min-width: 3.2rem; text-align: right; }


.prose { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 2rem var(--gutter) 3rem; }
.prose p { margin: 0 0 1.25em; hyphens: manual; -webkit-hyphens: manual; overflow-wrap: break-word; }
.prose p.diary { font-style: italic; color: var(--ink-200); padding-left: 1.1rem; border-left: 1px solid var(--blood-500); }
.prose p.kanji { font-family: var(--jp); font-size: 2.6em; text-align: center; color: var(--blood-400); letter-spacing: .25em; margin: 2rem 0 .4rem; }
.prose p.codeline { text-align: center; }
.prose code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .82em; color: var(--cyan); }
.prose em { font-style: italic; }
.scene { font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-300); margin: 3.5rem 0 1.8rem; display: flex; align-items: center; gap: 1rem; }
.scene::before { content: ""; width: 1.6rem; height: 1px; background: var(--blood-400); flex: none; }
.scene:first-child { margin-top: 1rem; }

.plate { margin: 3.5rem calc(-1 * var(--gutter)); }
.plate img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 900px) { .plate { margin-left: -12vw; margin-right: -12vw; } }
.plate figcaption { font-family: var(--sans); font-size: .76rem; color: var(--ink-500); padding: .6rem var(--gutter) 0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s ease, transform 1.1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

.kodex, .vote { max-width: var(--measure); margin: 1rem auto 3rem; padding: 2rem var(--gutter); border-top: 1px solid var(--night-800); }
.kodex-label { font-family: var(--sans); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--blood-400); margin: 0 0 .8rem; }
.kodex-name { font-family: var(--jp); font-size: 1.5rem; margin: 0 0 .4rem; }
.kodex-quote { color: var(--ink-300); font-style: italic; margin: 0; }
.vote h2 { font-family: var(--jp); font-size: 1.7rem; font-weight: 500; margin: 0 0 1.5rem; }
.doors { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .9rem; }
.doors li { display: block; }
.door { all: unset; box-sizing: border-box; width: 100%; display: flex; gap: 1rem; background: var(--night-900); padding: 1.1rem 1.2rem; border-radius: 3px; border: 1px solid transparent; cursor: pointer; transition: border-color .2s, background .2s; }
.door:hover:not(:disabled), .door:focus-visible { border-color: var(--blood-400); }
.door:focus-visible { outline: 2px solid var(--blood-400); outline-offset: 2px; }
.door:disabled { cursor: default; }
.door.chosen { border-color: var(--blood-400); background: var(--night-800); }
.door-body { display: block; flex: 1; }
.door-title, .door-text { display: block; }
.door-text { font-size: .96rem; line-height: 1.55; color: var(--ink-200); }
.door-bar { display: block; height: 3px; margin-top: .8rem; background: var(--night-800); border-radius: 2px; overflow: hidden; }
.door-bar span { display: block; height: 100%; width: 0; background: var(--blood-400); transition: width .6s ease; }
.door-count { display: block; margin-top: .35rem; font-family: var(--sans); font-size: .8rem; color: var(--ink-300); }
.door-key { font-family: var(--jp); font-size: 1.6rem; color: var(--blood-400); line-height: 1.2; }
.door-title { font-weight: 600; margin: 0 0 .25rem; color: var(--ink-100, inherit); }
.doors p { margin: 0; font-size: .96rem; line-height: 1.55; color: var(--ink-200); }
.vote-how { font-family: var(--sans); font-size: .88rem; color: var(--ink-300); line-height: 1.6; }

.next { max-width: 52rem; margin: 0 auto; padding: 1rem var(--gutter) 5rem; }
.next-card { position: relative; display: flex; flex-direction: column; justify-content: end; min-height: 18rem; padding: 1.6rem; overflow: hidden; border-radius: 3px; text-decoration: none; isolation: isolate; background: var(--night-900); }
.next-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: brightness(.55); }
.next-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(10,10,12,.9)); }
.next-title { font-family: var(--jp); font-size: 1.8rem; line-height: 1.2; }
.next-card.soon { justify-content: center; text-align: center; min-height: 12rem; }
.next-card.soon a { margin-top: 1rem; font-family: var(--sans); font-size: .9rem; color: var(--blood-400); }

.site-footer { border-top: 1px solid var(--night-800); padding: 2.5rem var(--gutter) 5rem; font-family: var(--sans); font-size: .8rem; line-height: 1.6; color: var(--ink-500); }
.site-footer p { max-width: 44rem; }
.site-footer .brandline { color: var(--ink-300); letter-spacing: .1em; text-transform: uppercase; }
.site-footer .brandline span { font-family: var(--jp); color: var(--blood-400); }

.legal { max-width: var(--measure); margin: 0 auto; padding: 7rem var(--gutter) 4rem; }
.legal h1 { font-family: var(--jp); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-still { transform: none; }
}
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* Kapitelseiten: Kopfzeile scrollt mit weg, damit der Vorlese-Balken oben frei steht */
.is-chapter .topbar { position: absolute; }
.resume { position: fixed; left: var(--gutter); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 16; font-family: var(--sans); font-size: .76rem; letter-spacing: .06em; color: var(--ink-100); background: rgba(139,0,0,.92); border: 0; border-radius: 999px; padding: .6rem 1rem; cursor: pointer; min-height: 44px; }

/* Runde 4: Hörleiste, Schriftgröße, Status, Teilen */
.listen { gap: .6rem; }
.listen-btn { padding: .65rem 1.1rem .65rem .95rem; font-weight: 600; }
.ambience, .fontsize { font-family: var(--sans); font-size: .78rem; color: var(--ink-300); background: none; border: 1px solid var(--night-800); border-radius: 999px; padding: 0 .85rem; min-height: 44px; min-width: 44px; cursor: pointer; }
.ambience[aria-pressed="true"] { color: var(--ink-100); border-color: var(--blood-400); }
.fontsize { font-family: var(--serif); font-size: .95rem; }
html[data-fs="1"] .prose { font-size: 1.12em; }
html[data-fs="2"] .prose { font-size: 1.25em; }
@media (max-width: 700px) {
  .chapter-hero { min-height: 62svh; }
  .chapter-hero h1 { font-size: 2.1rem; }
  .teaser { font-size: 1em; }
  .listen-time { display: none; }
}
.status-line { font-family: var(--sans); font-size: .85rem; color: var(--ink-300); margin: -.6rem 0 1.6rem; }
.status-line a { color: var(--ink-100); }
.ch-state { position: absolute; top: 1rem; right: 1rem; font-family: var(--sans); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; background: rgba(10,10,12,.75); color: var(--ink-100); padding: .35rem .6rem; border-radius: 2px; }
.ch-state.done { color: var(--ink-300); }
.share { max-width: var(--measure); margin: 0 auto 2rem; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; gap: .75rem; font-family: var(--sans); font-size: .85rem; }
.share-btn, .cal { background: none; color: var(--ink-200); border: 1px solid var(--night-800); border-radius: 999px; padding: .7rem 1.1rem; min-height: 44px; cursor: pointer; text-decoration: none; font: inherit; }
.share-btn:hover, .cal:hover { border-color: var(--ink-500); color: var(--ink-100); }
.next-card { min-height: 22rem; }
.next-teaser { font-size: .98rem; color: var(--ink-200); margin: .5rem 0 1rem; max-width: 34rem; }
.next-cta { align-self: flex-start; font-family: var(--sans); font-weight: 600; font-size: .9rem; background: var(--blood-500); color: #fff; padding: .85rem 1.3rem; border-radius: 2px; }
.kodex.alltag { border-top: 0; margin-top: -2rem; }
.kodex.alltag .kodex-label { color: var(--amber); }
.kodex.alltag .kodex-name { font-size: 1.3rem; line-height: 1.35; }

/* Immersion: Ritual, Ton, Kodex-Fortschritt, Akten, Bewegung */
.ritual { position: fixed; inset: 0; z-index: 60; background: var(--night-950); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: var(--gutter); }
.ritual[hidden] { display: none; }
.ritual-jp { font-family: var(--jp); font-size: clamp(4rem, 3rem + 8vw, 8rem); color: var(--blood-400); margin: 0 0 1.5rem; opacity: 0; animation: ink 2.4s ease forwards .2s; letter-spacing: .1em; }
.ritual-line { font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); color: var(--ink-200); margin: 0 0 .6rem; opacity: 0; animation: ink 1.6s ease forwards; max-width: 32rem; }
.ritual-line:nth-of-type(2) { animation-delay: 1.4s; } .ritual-line:nth-of-type(3) { animation-delay: 2.6s; color: var(--ink-100); font-style: italic; }
.ritual-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; opacity: 0; animation: ink 1s ease forwards 3.6s; }
.ritual-quiet { font-family: var(--sans); font-size: .9rem; color: var(--ink-300); background: none; border: 1px solid var(--night-800); border-radius: 2px; padding: 0 1.2rem; min-height: 48px; cursor: pointer; }
.ritual.leaving { animation: fadeout .9s ease forwards; }
@keyframes ink { from { opacity: 0; filter: blur(6px); transform: translateY(6px); } to { opacity: 1; filter: none; transform: none; } }
@keyframes fadeout { to { opacity: 0; visibility: hidden; } }
.sound, .nav-chat { font-family: var(--sans); font-size: .82rem; letter-spacing: .06em; color: var(--ink-300); background: none; border: 0; cursor: pointer; padding: 0; text-decoration: none; }
.nav-chat { color: var(--amber); }
.sound[aria-pressed="true"] { color: var(--ink-100); }
.sound[aria-pressed="true"]::after { content: " ●"; color: var(--blood-400); }
@media (max-width: 520px) { .topbar nav a:not(.nav-chat) { display: none; } .topbar nav { gap: .9rem; } }
.kodex-progress { padding: 3rem var(--gutter); max-width: 76rem; margin: 0 auto; }
.kp-count { color: var(--ink-100); }
.kp-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.kp-card { position: relative; padding: 1.4rem; border: 1px solid var(--night-800); border-radius: 4px; background: var(--night-900); min-height: 9rem; overflow: hidden; }
.kp-card .kp-name, .kp-card .kp-alltag { filter: blur(7px); opacity: .5; transition: filter .8s, opacity .8s; user-select: none; }
.kp-name { font-family: var(--jp); font-size: 1.25rem; margin: 1.6rem 0 .4rem; }
.kp-alltag { color: var(--amber); margin: 0; font-size: .98rem; }
.kp-lock { position: absolute; top: 1rem; left: 1.4rem; font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-500); }
.kp-card.open { border-color: var(--blood-500); }
.kp-card.open .kp-name, .kp-card.open .kp-alltag { filter: none; opacity: 1; user-select: auto; }
.kp-card.open .kp-lock { color: var(--blood-400); }
.person .akte-text { display: none; color: var(--ink-200); font-size: .8rem; margin-top: .4rem; }
.person .akte-lock { display: block; color: var(--ink-500); font-size: .74rem; margin-top: .4rem; }
.person.open .akte-text { display: block; } .person.open .akte-lock { display: none; }
.person img { transition: filter .8s; } .person[data-unlock]:not(.open) img { filter: brightness(.45) grayscale(.6); }
.chat-teaser { display: block; max-width: var(--measure); margin: 0 auto 1.5rem; padding: 1.2rem var(--gutter); text-decoration: none; border-top: 1px solid var(--night-800); border-bottom: 1px solid var(--night-800); }
.chat-teaser span:last-child { font-family: var(--jp); font-size: 1.3rem; color: var(--ink-100); }
.chat-teaser:hover span:last-child { color: var(--amber); }
/* Bewegung: Szenenbilder atmen langsam (Kamerafahrt per Code statt Video) */
.plate { overflow: hidden; }
.plate img { transform: scale(1.06); transition: transform 9s cubic-bezier(.2,.6,.2,1); }
.plate.in img { transform: scale(1); }
.ch-card img { animation: drift 30s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) { .ritual-jp, .ritual-line, .ritual-actions { opacity: 1; animation: none; } .plate img { transform: none; } }
@media (max-width: 520px) { .topbar nav a.nav-chat { display: inline; } .topbar nav a.nav-chat { font-size: .78rem; } }
/* Runde 5: Kodex-Wahl, lebende Akten, Türen */
.kp-wahl { margin-top: 1rem; display: none; }
.kp-card.open .kp-wahl { display: block; }
.kp-q { font-family: var(--sans); font-size: .85rem; color: var(--ink-300); margin: 0 0 .6rem; }
.kp-wahl button { display: block; width: 100%; text-align: left; font-family: var(--sans); font-size: .85rem; color: var(--ink-100); background: var(--night-950); border: 1px solid var(--night-800); border-radius: 4px; padding: .65rem .8rem; margin-bottom: .45rem; min-height: 44px; cursor: pointer; }
.kp-wahl button.on { border-color: var(--amber); }
.kp-reply { font-style: italic; color: var(--ink-100); margin: .4rem 0 0; font-size: .95rem; }
.kp-reply::before { content: "Yami: "; font-style: normal; color: var(--blood-400); font-family: var(--sans); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.dossier .akte-text { display: none; }
.dossier .akte-text.seen { display: block; }
.dossier b { color: var(--blood-400); font-weight: 600; margin-right: .3rem; }
.ch-card img { animation: none; }
.door { display: flex; gap: 1rem; width: 100%; text-align: left; background: var(--night-900); border: 1px solid transparent; color: inherit; font: inherit; padding: 1.1rem 1.2rem; border-radius: 3px; cursor: pointer; }
.door:hover, .door:focus-visible { border-color: var(--ink-500); }
.door.on { border-color: var(--blood-400); background: #1a0d0d; }
.doors li { display: block; padding: 0; background: none; }
.door-title { display: block; font-weight: 600; margin: 0 0 .25rem; }
.door-text { display: block; font-size: .96rem; line-height: 1.55; color: var(--ink-200); }
.door-mine { font-family: var(--sans); font-size: .9rem; color: var(--amber); }
.ritual-again { background: none; border: 0; color: var(--ink-500); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

.neu-hier { max-width: var(--measure); margin: 1.5rem auto 0; padding: 1.1rem var(--gutter); background: var(--night-900); border-left: 3px solid var(--blood-400); border-radius: 3px; font-family: var(--sans); font-size: .92rem; line-height: 1.55; color: var(--ink-200); }
.neu-hier p { margin: 0 0 .8rem; }
.neu-hier .cta { display: inline-block; }

/* Drei Gesichter (Leitfrage) */
.faces { max-width: 72rem; margin: 0 auto; padding: 3rem var(--gutter) 1rem; }
.faces-grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
.faces figure { margin: 0; position: relative; overflow: hidden; border-radius: 4px; background: var(--night-900); }
.faces img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; transition: transform 1.2s ease, filter 1.2s ease; filter: saturate(.9) brightness(.92); }
.faces figure:hover img { transform: scale(1.03); filter: none; }
.faces figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .9rem; font-family: var(--sans); font-size: .82rem; letter-spacing: .04em; color: var(--ink-100); background: linear-gradient(transparent, rgba(5,5,7,.85)); }
.faces figcaption span { font-family: var(--jp); color: var(--blood-400); margin-right: .35rem; }
@media (max-width: 700px) { .faces-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; } .faces figure { scroll-snap-align: start; } }
.hero-still { object-position: 75% 30%; }

/* Startvideo nach Tageszeit (wie auf der alten Seite): Handy vollflächig, ab Tablet hochkant rechts */
.hero-film { object-position: 50% 25%; }
@media (min-width: 900px) {
  .hero-film { left: auto; right: 0; width: min(58vw, 820px); filter: saturate(.9) brightness(.8); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
}
/* Chat-Knopf unten rechts mit bewegtem Porträt */
.chat-fab { position: fixed; right: var(--gutter); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 17; display: flex; align-items: center; gap: .6rem; padding: .3rem .9rem .3rem .3rem; border-radius: 999px; background: rgba(10,10,12,.88); border: 1px solid var(--blood-400); color: var(--ink-100); text-decoration: none; font-family: var(--sans); font-size: .8rem; letter-spacing: .04em; box-shadow: 0 8px 28px rgba(0,0,0,.5); }
.chat-fab video { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.chat-fab:hover, .chat-fab:focus-visible { background: rgba(139,0,0,.92); }
@media (max-width: 520px) { .chat-fab span { display: none; } .chat-fab { padding: .3rem; } }
.ritual:not([hidden]) ~ .chat-fab, body.reading-audio .chat-fab { display: none; }
/* Figuren nach Clans */
.clan-label { font-family: var(--sans); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--blood-400); margin: 2.2rem 0 1rem; font-weight: 600; }
.person-blank { display: grid; place-items: center; aspect-ratio: 3 / 4; width: 100%; border-radius: 3px; background: var(--night-900); color: var(--night-800); font-family: var(--jp); font-size: 3.2rem; }
.person.shadow img { filter: brightness(.22) grayscale(1) blur(1.5px); }
.person.shadow figcaption strong { color: var(--ink-300); }
.person.known img { filter: brightness(.85); }

/* Runde Website 1 (Agentur): Ortszeile, lesbarer Hinweis am Knopf, Welt-Auftakt, Portale, Beziehungen */
.ortszeile { font-family: var(--jp); font-size: .82rem; letter-spacing: .08em; color: var(--ink-300); margin: 0 0 1.4rem; opacity: .85; }
.cta-sub { font-size: .92rem; color: var(--ink-200); }
.intro .leitfrage { margin: 0 0 1.4rem; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); }
.world-h { font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem); }
.world-threat { font-family: var(--jp); font-size: 1.15rem; color: var(--ink-100); margin: -.4rem 0 1.8rem; }
.world-threat strong { color: #38e1e8; font-weight: 500; letter-spacing: .08em; }
.clan-film { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; display: block; filter: brightness(.75); background: var(--night-900); }
.portals { max-width: 52rem; margin: 0 auto; padding: 0 var(--gutter) 5rem; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.portal { position: relative; display: flex; flex-direction: column; justify-content: end; min-height: 9.5rem; padding: 1rem 1.1rem; border-radius: 3px; overflow: hidden; text-decoration: none; isolation: isolate; color: var(--ink-100); }
.portal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: brightness(.5); transition: transform .8s ease, filter .8s ease; }
.portal::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 20%, rgba(10,10,12,.9)); }
.portal:hover img, .portal:focus-visible img { transform: scale(1.05); filter: brightness(.62); }
.portal-t { font-family: var(--jp); font-size: 1.25rem; }
.portal-s { font-family: var(--sans); font-size: .8rem; color: var(--ink-300); margin-top: .2rem; }
.person .rels { display: block; margin-top: .5rem; border-top: 1px solid var(--night-800); padding-top: .4rem; }
.person .rels span { display: block; color: var(--ink-300); font-size: .76rem; }
.person[data-unlock]:not(.open) .rels { display: none; }
.chat-fab { transition: transform .35s ease, opacity .35s ease; }
.chat-fab.away { transform: translateY(140%); opacity: 0; pointer-events: none; }
@media (max-width: 520px) { .topbar nav a.nav-chat { display: none; } }

.bisher { max-width: var(--measure); margin: 1.2rem auto 0; padding: 0 var(--gutter); font-family: var(--sans); }
.bisher summary { cursor: pointer; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--blood-400); padding: .6rem 0; list-style: none; }
.bisher summary::-webkit-details-marker { display: none; }
.bisher summary::after { content: " +"; } .bisher[open] summary::after { content: " –"; }
.bisher p { font-family: var(--serif); font-style: italic; color: var(--ink-200); line-height: 1.7; margin: .2rem 0 1rem; border-left: 2px solid var(--night-800); padding-left: 1rem; }

.eure-wahl { max-width: var(--measure); margin: 2.2rem auto .4rem; font-family: var(--sans); color: var(--blood-400); }
.eure-wahl summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .6rem; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; }
.eure-wahl summary::-webkit-details-marker { display: none; }
.eure-wahl p { font-size: .9rem; color: var(--ink-200); margin: .6rem 0 0; }
.eure-wahl span { font-family: var(--jp); font-size: 1.1rem; letter-spacing: 0; border: 1px solid var(--blood-400); border-radius: 50%; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; }

.bisher summary small { text-transform: none; letter-spacing: 0; color: var(--ink-300); font-size: .78rem; margin-left: .5rem; }
.nachtzeile { font-style: italic; color: var(--ink-300); }

/* Hikarus Kranich */
.kranich { max-width: var(--measure); margin: 1.6rem auto 2.4rem; padding: 0 var(--gutter); font-family: var(--sans); }
.kranich-open { font-family: var(--sans); font-size: .82rem; letter-spacing: .08em; color: var(--ink-100); background: none; border: 1px solid var(--blood-400); border-radius: 999px; padding: .6rem 1.1rem; cursor: pointer; min-height: 44px; }
.kranich-body img { width: 100%; height: auto; border-radius: 3px; margin: 1rem 0 .6rem; box-shadow: 0 12px 40px rgba(0,0,0,.6); }
.kranich-note { font-family: var(--serif); font-style: italic; color: var(--ink-300); margin: 0 0 1rem; }
.kranich-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; }
.kranich-form label { width: 100%; font-size: .82rem; color: var(--ink-300); }
.kranich-form input { flex: 1 1 12rem; min-height: 46px; background: var(--night-900); border: 1px solid var(--night-800); color: var(--ink-100); border-radius: 3px; padding: 0 .9rem; font-family: var(--sans); font-size: 1rem; letter-spacing: .12em; text-transform: uppercase; }
.kranich-msg { min-height: 1.4em; color: var(--blood-400); font-size: .88rem; }
.kranich-hint { background: none; border: 0; color: var(--ink-300); text-decoration: underline; cursor: pointer; padding: .4rem 0; font-family: var(--sans); }
.kranich-hints { color: var(--ink-200); font-size: .9rem; line-height: 1.55; padding-left: 1.2rem; }
.kranich-share a, .cta-secondary { color: var(--ink-300); font-size: .86rem; }
.kranich-page { max-width: 46rem; margin: 0 auto; padding: 6rem 0 4rem; }
.kranich-page h1 { font-family: var(--jp); font-size: clamp(2rem, 1.6rem + 2vw, 3rem); margin: 0 0 .6rem; }
.fund-end { font-family: var(--jp); font-size: 1.2rem; color: var(--ink-100); margin-top: 2.4rem; }

/* Yamis Tokyo */
.karte { margin-top: 2.6rem; }
.karte-bild { position: relative; max-width: 34rem; }
.karte-bild img { width: 100%; height: auto; display: block; border-radius: 3px; }
.ort { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; background: none; border: 0; cursor: pointer; padding: 0; }
.ort span { display: block; width: 12px; height: 12px; margin: 16px; border-radius: 50%; background: var(--blood-400); box-shadow: 0 0 0 4px rgba(179,38,30,.25); }
.ort.on span { background: #ececef; box-shadow: 0 0 0 5px rgba(179,38,30,.6); }
.ort-karte, .orte-liste li { font-family: var(--sans); font-size: .9rem; line-height: 1.55; color: var(--ink-200); }
.ort-karte { max-width: 34rem; margin: .8rem 0; padding: .9rem 1rem; background: var(--night-900); border-left: 2px solid var(--blood-400); }
.ort-karte strong, .orte-liste strong { display: block; color: var(--ink-100); }
.ort-karte a, .orte-liste a { color: var(--blood-400); font-size: .84rem; }
.orte-liste { margin-top: .8rem; } .orte-liste summary { cursor: pointer; color: var(--ink-300); font-family: var(--sans); font-size: .86rem; }
.orte-liste ul { list-style: none; padding: 0; } .orte-liste li { padding: .5rem 0; border-bottom: 1px solid var(--night-800); }
.ort-aussen { font-family: var(--sans); font-size: .9rem; color: var(--ink-200); }
.ort-aussen .kodex-label { display: block; margin-bottom: .2rem; }

.hero-zeile { font-family: var(--jp); font-style: italic; font-size: clamp(1.15rem, 1rem + .8vw, 1.55rem); line-height: 1.35; color: var(--ink-100); margin: -.4rem 0 1.1rem; max-width: 34rem; min-height: 2.7em; }

/* Die zweite Stadt: Aufnahmeprüfung, Akte, KAGAMI */
.welt { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 6rem var(--gutter) 4rem; }
.welt-hinweis { font-family: var(--sans); font-size: .85rem; color: var(--ink-300); }
.welt .szene p { margin: 0 0 1.1rem; }
.schritt { font-family: var(--sans); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-500); }
.wahl { display: grid; gap: .7rem; margin: 1.6rem 0; }
.wahl-btn { text-align: left; font: inherit; font-size: 1rem; color: var(--ink-100); background: var(--night-900); border: 1px solid #2a2a33; border-radius: 3px; padding: 1rem 1.1rem; cursor: pointer; transition: border-color .2s, background .2s; }
.wahl-btn:hover, .wahl-btn:focus-visible { border-color: var(--blood-400); background: var(--night-800); outline: none; }
.wahl-btn.vorschlag { border-color: #4a2a2a; }
.ausweis { margin: 1.5rem 0; padding: 2rem 1.5rem; border: 1px solid #33333d; background: radial-gradient(circle at 50% 30%, rgba(139,0,0,.28), transparent 65%), var(--night-900); text-align: center; }
.ausweis-kopf { font-family: var(--sans); font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--blood-400); margin: 0; }
.ausweis-jp { font-family: var(--jp); font-size: clamp(4.5rem, 3rem + 8vw, 7rem); line-height: 1.1; margin: .6rem 0 0; }
.ausweis-name { font-size: 1.6rem; margin: 0; }
.ausweis-name small { font-size: .9rem; color: var(--ink-300); }
.ausweis-zeile { font-family: var(--sans); color: var(--amber); letter-spacing: .08em; margin: 1rem 0 .4rem; }
.ausweis-grenze { font-style: italic; margin: 0; }
.ausweis-fuss { font-family: var(--sans); font-size: .7rem; color: var(--ink-500); margin: 1.4rem 0 0; }
.urteil { font-size: 1.15rem; }
.konsequenz .kodex-label, .akte .kodex-label { display: block; margin-bottom: .2rem; }
.aktionen { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1.5rem; }
.cta-secondary { display: inline-block; font-family: var(--sans); font-size: .9rem; color: var(--ink-100); border: 1px solid #3a3a44; background: transparent; padding: .9rem 1.3rem; border-radius: 2px; text-decoration: none; cursor: pointer; }
.cta-secondary:hover { border-color: var(--ink-300); }
.akte section { margin: 0 0 2.2rem; }
.akte-id { text-align: center; padding: 1.5rem; border: 1px solid #2a2a33; background: var(--night-900); }
.akte-id.leer { text-align: left; }
.akte-liste, .trophaeen { padding-left: 1.1rem; margin: 0; }
.trophaeen li { font-style: italic; margin: 0 0 .4rem; }
.lagebericht { border-left: 2px solid var(--blood-400); padding-left: 1rem; }
.kagami-label { color: var(--cyan); }
.is-kagami .welt { --kag: var(--cyan); }
.kagami-intro { font-size: 1.12rem; }
.kagami-frage { border-top: 1px solid #22222a; padding: .9rem 0; }
.kagami-frage summary { cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: 1rem; }
.kagami-frage summary::marker { color: var(--cyan); }
.kagami-antwort p { margin: .7rem 0 0; color: var(--ink-200); }
.kagami-spiegel { margin-top: 3rem; padding: 1.4rem; border: 1px solid rgba(56,225,232,.25); background: rgba(56,225,232,.04); }
.spiegel-out p { font-family: var(--sans); font-size: .95rem; margin: .6rem 0 0; }
.linkbtn { font: inherit; color: var(--cyan); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.fehlt .sec { font-size: clamp(2rem, 1.5rem + 3vw, 3.4rem); }
.zweite-stadt { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 4rem var(--gutter); }
.yami-spur { margin: 0 0 1.4rem; padding: 1rem 1.1rem; border: 1px solid #3a2a2a; background: var(--night-900); }
.yami-spur p { margin: 0 0 .7rem; }
.dokumente { display: grid; gap: 1rem; margin: 1.5rem 0; }
.doku { margin: 0; padding: 1rem 1.1rem; background: #15151a; border: 1px solid #2a2a33; }
.doku figcaption { font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-300); margin-bottom: .6rem; }
.doku pre { margin: 0; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .85rem; white-space: pre-wrap; color: var(--ink-200); }
.doku.notiz p { font-family: var(--jp); font-style: italic; }
.doku.brief p { font-family: var(--sans); font-size: .95rem; }
.faehigkeit-fund { border-left: 2px solid var(--amber); padding: .2rem 0 .2rem 1rem; margin: 1.2rem 0; }
.faehigkeit-fund .kodex-label { color: var(--amber); }
.antwort { font-style: italic; min-height: 1.5em; }
.grenze-urteil { font-family: var(--sans); font-weight: 600; }
.grenze-urteil.gehalten { color: var(--cyan); }
.grenze-urteil.gebrochen { color: var(--blood-400); }
.grenze-urteil span { display: block; font-family: var(--serif); font-weight: 400; font-style: italic; color: var(--ink-200); }
.welt .cta { margin: .4rem .4rem 0 0; }
.kagami-antwort p.kagami-stimme, .kagami-stimme { margin-top: .9rem; padding-left: .8rem; border-left: 2px solid var(--cyan); color: var(--cyan); font-style: italic; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.untersuchung { margin: 1.4rem 0; }
.funde { display: grid; gap: .8rem; margin-top: 1rem; }
.nachklang { margin-top: 1.6rem; padding-left: 1rem; border-left: 2px solid var(--ink-300); }
.archiv-eintrag { margin: 0 0 2.4rem; padding: 1.2rem 1.2rem .6rem; border: 1px solid rgba(56,225,232,.2); background: #121218; }
.archiv-eintrag blockquote { margin: .6rem 0; font-size: 1.15rem; }
.fassungen summary { cursor: pointer; font-family: var(--sans); font-size: .9rem; color: var(--ink-300); margin: .8rem 0; }
.fassung blockquote { color: var(--ink-300); text-decoration: line-through; text-decoration-color: rgba(200,60,60,.6); }
.system-vermerk { font-family: var(--sans); font-size: .82rem; letter-spacing: .02em; color: var(--ink-300); border-top: 1px dashed #2f2f38; padding-top: .6rem; }
.ort-variante { color: var(--ink-100); font-style: italic; }
.ort.veraendert span { box-shadow: 0 0 0 3px rgba(56,225,232,.45); }
.faces figcaption { line-height: 1.45; letter-spacing: .01em; padding-top: 3.5rem; background: linear-gradient(transparent, rgba(5,5,7,.92) 45%); }
.faces figcaption strong { display: block; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .25rem; }
.intro p:last-child { font-style: normal; }
.intro p strong { color: var(--ink-100); font-family: var(--sans); font-size: .78em; letter-spacing: .12em; text-transform: uppercase; display: block; margin-bottom: .2rem; }
.schatten-liste { margin-top: 2rem; }
.schatten-liste summary { cursor: pointer; font-family: var(--sans); font-size: .95rem; color: var(--ink-200); }
.schatten-liste .people-grid { margin-top: 1rem; }
