/* Kinetari – visuelles System gemäß UX-Konzept v0.1, Kapitel 8. Mobile first. */

@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Zilla Slab"; src: url("../fonts/zilla-slab-latin-500-italic.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }

:root {
  --midnight: #16132F;
  --slate: #1E293B;
  --slate-2: #273449;
  --text: #F8F9FC;
  --muted: #B7BED0;
  --amber: #FFB703;
  --amber-ink: #241a00;
  --cyan: #00D2D3;
  --coral: #FF5C5C;
  --story: #C9A7FF;
  --story-glow: #FFD6F5;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --font-head: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --font-story: "Zilla Slab", Georgia, serif;
  --tap: 48px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(0, 210, 211, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(201, 167, 255, 0.12), transparent 60%),
    var(--midnight);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
}
body[data-story="einhorn"] {
  background:
    radial-gradient(900px 520px at 85% -5%, rgba(255, 214, 245, 0.16), transparent 60%),
    radial-gradient(900px 520px at -10% 40%, rgba(201, 167, 255, 0.18), transparent 60%),
    radial-gradient(700px 400px at 50% 110%, rgba(0, 210, 211, 0.10), transparent 60%),
    var(--midnight);
  background-attachment: fixed;
}

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 0.5rem; }
h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 1.2rem; font-weight: 700; margin-top: 1.6rem; }
h3 { font-size: 1.05rem; font-weight: 700; }
h1:focus { outline: none; }
p { margin: 0 0 0.75rem; }
a { color: var(--cyan); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--amber-ink); padding: 0.6rem 1rem; z-index: 50; }
.skip-link:focus { left: 1rem; top: 1rem; }

.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; color: var(--cyan); margin-bottom: 0.3rem; }
.lead { font-size: 1.08rem; color: #E3E7F2; }
.narrative { font-family: var(--font-story); font-style: italic; font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.note { font-size: 0.86rem; color: var(--muted); border-left: 3px solid var(--cyan); padding-left: 0.7rem; }

/* ---------- Kopfzeile und Fortschritt ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.6rem 1rem; padding-top: max(0.6rem, env(safe-area-inset-top));
  background: rgba(22, 19, 47, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--text); min-height: var(--tap); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: conic-gradient(from 200deg, var(--cyan), var(--story), var(--amber), var(--cyan));
  box-shadow: 0 0 18px rgba(0, 210, 211, 0.55);
  position: relative;
}
.brand-mark::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--midnight); }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: 0.02em; }
.save-state { margin-left: auto; font-size: 0.75rem; text-align: right; line-height: 1.2; white-space: nowrap; color: var(--muted); opacity: 0; transition: opacity 0.3s; }
.save-state.visible { opacity: 1; }
.save-state.error { color: var(--coral); opacity: 1; }
.topbar-link { white-space: nowrap; flex: 0 0 auto; color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.92rem; padding: 0.5rem 0.75rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14); min-height: 40px; display: inline-flex; align-items: center; }

.phases { padding: 0.6rem 1rem 0.2rem; max-width: 820px; width: 100%; margin: 0 auto; }
.phases ol { list-style: none; display: flex; gap: 0.3rem; padding: 0; margin: 0; }
.phases li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.2rem; font-size: 0.72rem; color: var(--muted); text-align: center; position: relative; }
.phases li::before { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: rgba(255, 255, 255, 0.1); z-index: -1; }
.phases li:first-child::before { display: none; }
.phase-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); background: var(--midnight); display: grid; place-items: center; font-size: 0.75rem; font-weight: 700; }
.phases li.done .phase-dot { background: var(--cyan); border-color: var(--cyan); color: var(--midnight); }
.phases li.current { color: var(--text); font-weight: 700; }
.phases li.current .phase-dot { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(255, 183, 3, 0.2); }
.phases li > a, .phases li > .phase-off { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; color: inherit; text-decoration: none; min-height: 44px; }
.phases li > a:hover .phase-dot { border-color: var(--cyan); }
.phases li.disabled { opacity: 0.45; }
.phase-label small { display: block; font-size: 0.62rem; font-weight: 400; color: var(--muted); }
.substep { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; }
.progress { flex: 1; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.progress span { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--cyan), var(--amber)); border-radius: 3px; transition: width 0.4s; }

main { flex: 1; width: 100%; max-width: 820px; margin: 0 auto; padding: 1rem 1rem 6.5rem; }
main:focus { outline: none; }
.loading { padding: 3rem 0; text-align: center; color: var(--muted); }
.foot { text-align: center; font-size: 0.75rem; color: var(--muted); padding: 1rem 1rem 5.5rem; max-width: 820px; margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: var(--tap); padding: 0.7rem 1.3rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem var(--font-body); text-decoration: none; cursor: pointer;
  color: var(--text); background: transparent;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.btn.primary { background: var(--amber); color: var(--amber-ink); box-shadow: 0 6px 20px rgba(255, 183, 3, 0.28); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(255, 183, 3, 0.4); }
.btn.secondary { border-color: var(--cyan); color: var(--cyan); }
.btn.secondary:hover { background: rgba(0, 210, 211, 0.1); }
.btn.ghost { border-color: rgba(255, 255, 255, 0.2); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn.danger { background: var(--coral); color: #2a0606; }
.btn.sm { min-height: 40px; padding: 0.45rem 0.95rem; font-size: 0.9rem; }
.btn.xl { min-height: 58px; padding: 0.9rem 2rem; font-size: 1.12rem; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: nowrap;
  padding: 0.75rem max(1rem, calc((100vw - 820px) / 2 + 1rem)); padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  background: rgba(22, 19, 47, 0.94); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.actions > :first-child + * { margin-left: auto; }
.actions .btn { white-space: nowrap; flex: 0 0 auto; }
.l-short { display: none; }
.icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; }
@media (max-width: 560px) {
  .actions .btn { padding-left: 0.9rem; padding-right: 0.9rem; min-width: 48px; }
  .actions .l-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .actions .l-short { display: inline; }
  .actions .icon { width: 1.45em; height: 1.45em; }
}
.cta-stack { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin: 1.2rem 0; }

/* ---------- Dialog und Toast ---------- */
dialog { border: none; border-radius: var(--radius); padding: 0; background: var(--slate); color: var(--text); max-width: min(520px, calc(100vw - 2rem)); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(8, 6, 24, 0.7); backdrop-filter: blur(3px); }
.dialog-body { padding: 1.4rem; }
.dialog-list { padding-left: 1.2rem; }
.dialog-list li { margin-bottom: 0.5rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }
.toast { position: fixed; left: 50%; bottom: 6rem; transform: translateX(-50%); background: var(--slate-2); padding: 0.7rem 1.2rem; border-radius: 999px; box-shadow: var(--shadow); z-index: 40; }

/* ---------- Portal (Marke) ---------- */
.portal { position: relative; width: 180px; height: 180px; margin: 0.5rem auto 1.4rem; }
.portal.hero { width: 220px; height: 220px; }
.portal.big { width: 240px; height: 240px; }
.portal .ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; }
.portal .r1 { border-top-color: var(--cyan); border-right-color: var(--cyan); box-shadow: 0 0 30px rgba(0, 210, 211, 0.35); animation: spin 9s linear infinite; }
.portal .r2 { inset: 18px; border-bottom-color: var(--story); border-left-color: var(--story); animation: spin 6s linear infinite reverse; }
.portal .r3 { inset: 40px; background: radial-gradient(circle, rgba(255, 214, 245, 0.55), rgba(201, 167, 255, 0.25) 45%, rgba(0, 210, 211, 0.05) 70%, transparent 72%); animation: pulse 3.2s ease-in-out infinite; }
.portal .spark { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 14px var(--amber); animation: float 4s ease-in-out infinite; }
.portal .s1 { top: 8%; left: 18%; }
.portal .s2 { top: 22%; right: 4%; animation-delay: -1s; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.portal .s3 { bottom: 10%; left: 6%; animation-delay: -2s; background: var(--story-glow); box-shadow: 0 0 14px var(--story-glow); }
.portal .s4 { bottom: 4%; right: 22%; animation-delay: -3s; }
.portal.spin .r1 { animation-duration: 2.4s; }
.portal.spin .r2 { animation-duration: 1.8s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(0.92); opacity: 0.8; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); opacity: 0.7; } 50% { transform: translateY(-10px); opacity: 1; } }

/* ---------- Konto ---------- */
.token-chip { flex: 0 0 auto; white-space: nowrap; font-size: 0.8rem; font-weight: 700; color: var(--amber); text-decoration: none; padding: 0.3rem 0.65rem; border-radius: 999px; border: 1px solid rgba(255, 183, 3, 0.45); }
.auth { max-width: 420px; margin: 0 auto; text-align: center; padding-top: 1rem; }
.auth-form { text-align: left; background: var(--slate); border-radius: var(--radius); padding: 1.2rem; margin: 1rem 0; box-shadow: var(--shadow); }
.auth-form input { min-height: var(--tap); padding: 0.6rem 0.9rem; border-radius: var(--radius-sm); border: 2px solid rgba(255, 255, 255, 0.16); background: rgba(22, 19, 47, 0.7); color: var(--text); font: inherit; }
.auth-form input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(0, 210, 211, 0.25); }
.auth-form .btn.xl { width: 100%; }
.auth-form .cta-stack { justify-content: space-between; margin-bottom: 0; }
.portal.small { width: 120px; height: 120px; }
.account-box { background: var(--slate); border-radius: var(--radius); padding: 0.9rem 1.1rem; margin-bottom: 1rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.4rem 1.5rem; align-items: center; }
.account-box p { margin: 0; }
.token-count strong { color: var(--amber); font-family: var(--font-head); font-size: 1.3rem; }
.link-btn { background: none; border: 0; padding: 0; color: var(--cyan); font: inherit; text-decoration: underline; cursor: pointer; min-height: 32px; }

/* ---------- Titel mit Info-Symbol ---------- */
.title-row { display: flex; align-items: center; gap: 0.6rem; }
.title-row h1 { margin: 0; }
.info-btn {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--cyan); background: transparent; color: var(--cyan);
  font: italic 700 1rem var(--font-story); display: grid; place-items: center;
}
.info-btn[aria-expanded="true"] { background: var(--cyan); color: var(--midnight); }
.info-text { margin-top: 0.5rem; }
.title-row + * { margin-top: 0.8rem; }

/* ---------- Startseite ---------- */
.welcome { text-align: center; padding-top: 1rem; }
.welcome h1 { font-size: clamp(2rem, 7vw, 3rem); max-width: 16ch; margin: 0 auto 0.6rem; }
.welcome .lead { font-size: 1.25rem; }
.promise { list-style: none; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-top: 2rem; }
.promise li { background: rgba(30, 41, 59, 0.7); border-radius: var(--radius-sm); padding: 0.9rem; display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, 0.06); }
.promise strong { font-family: var(--font-head); font-size: 1.1rem; color: var(--amber); }
.promise span { color: var(--muted); font-size: 0.9rem; }

/* ---------- Meine Abenteuer ---------- */
.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.adventure-list { list-style: none; padding: 0; display: grid; gap: 1rem; }
.adventure-card { display: grid; grid-template-columns: 72px 1fr; gap: 0.9rem; background: var(--slate); border-radius: var(--radius); padding: 1rem; border: 1px solid rgba(255, 255, 255, 0.06); box-shadow: var(--shadow); }
.adventure-thumb { width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: var(--slate-2); display: grid; place-items: center; font-size: 2rem; }
.adventure-thumb img { width: 100%; height: 100%; object-fit: cover; }
.adventure-info h2 { margin: 0 0 0.2rem; font-size: 1.1rem; }
.adventure-info .meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.4rem; }
.adventure-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.status-chip { display: inline-block; padding: 0.2rem 0.7rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: rgba(255, 255, 255, 0.1); margin-right: 0.5rem; }
.status-draft .status-chip { background: rgba(183, 190, 208, 0.2); }
.status-generating .status-chip { background: rgba(201, 167, 255, 0.25); color: var(--story-glow); }
.status-ready_for_review .status-chip { background: rgba(0, 210, 211, 0.18); color: var(--cyan); }
.status-preparing .status-chip { background: rgba(255, 183, 3, 0.18); color: var(--amber); }
.status-ready .status-chip { background: var(--cyan); color: var(--midnight); }
.status-started .status-chip { background: var(--story); color: var(--midnight); }
.status-error .status-chip { background: rgba(255, 92, 92, 0.2); color: var(--coral); }
.status-chip::before { content: "● "; }
.empty { text-align: center; padding: 2rem; background: var(--slate); border-radius: var(--radius); }

/* ---------- Auswahlkarten (Anlass) ---------- */
.choice-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 1rem; }
.choice-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; text-align: left;
  padding: 1.4rem; min-height: 190px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--slate-2), var(--slate));
  border: 2px solid rgba(255, 255, 255, 0.08); color: var(--text); cursor: pointer; font: inherit;
  transition: transform 0.2s, border-color 0.2s;
}
.choice-card:hover { transform: translateY(-3px); border-color: var(--cyan); }
.choice-card.selected { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(255, 183, 3, 0.18); }
.choice-icon { font-size: 2.6rem; }
.choice-title { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; }
.choice-text { color: var(--muted); }

/* ---------- Story-Karussell (Kreisanordnung) ---------- */
.carousel { position: relative; margin: 0.5rem -1rem 0; }
.carousel:focus-visible { outline-offset: -3px; }
.carousel-stage {
  position: relative; height: 420px; perspective: 1100px; transform-style: preserve-3d;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.story-card {
  position: absolute; top: 10px; left: 50%; width: 260px; height: 400px; margin-left: -130px;
  perspective: 1200px; cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s, filter 0.4s;
  --rx: 0deg; --ry: 0deg; --gx: 50%;
}
.story-card[data-pos="0"] { transform: translateX(0) translateZ(0); z-index: 3; }
.story-card[data-pos="-1"] { transform: translateX(-58%) translateZ(-160px) rotateY(32deg); z-index: 2; opacity: 0.7; filter: brightness(0.7); }
.story-card[data-pos="1"] { transform: translateX(58%) translateZ(-160px) rotateY(-32deg); z-index: 2; opacity: 0.7; filter: brightness(0.7); }
.story-card[data-pos="hidden"] { transform: translateZ(-320px) scale(0.7); opacity: 0; z-index: 1; pointer-events: none; }
.flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.story-card.flipped .flip-inner { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 22px; overflow: hidden; text-align: center;
  background: linear-gradient(165deg, #2b2457, var(--slate));
  border: 2px solid rgba(255, 214, 245, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), inset 0 0 0 6px rgba(22, 19, 47, 0.6);
}
.story-card.active .face { border-color: var(--story-glow); }
.face.front::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.22) var(--gx), transparent 70%);
  mix-blend-mode: overlay;
}
.face.back { transform: rotateY(180deg); padding: 0.9rem 1rem 0.6rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.45rem; }
.face.back h3 { font-size: 1.1rem; margin: 0; }
.face.back p { margin: 0; }
.face.back .narrative { font-size: 0.88rem; line-height: 1.4; }
.face.back .btn { width: 100%; margin-top: 0.2rem; }
.card-facts { font-size: 0.82rem; color: var(--cyan); font-weight: 600; }
.card-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.3rem; }
.card-chips li { font-size: 0.74rem; padding: 0.15rem 0.55rem; border-radius: 999px; background: rgba(201, 167, 255, 0.18); color: var(--story-glow); }
.fixed-value { margin: 0; font-weight: 600; }
.example { margin: -0.3rem 0 0.9rem; padding: 0.2rem 0.8rem; }
.example ul { padding-left: 1.1rem; margin: 0.2rem 0 0.6rem; font-size: 0.9rem; }
.example img { width: 100%; border-radius: var(--radius-sm); margin-bottom: 0.6rem; }
.card-hit { all: unset; display: flex; flex-direction: column; width: 100%; height: 100%; cursor: pointer; }
.card-hit:focus-visible { outline: 3px solid var(--cyan); outline-offset: -6px; border-radius: 22px; }
.card-art { flex: 1; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, rgba(255, 214, 245, 0.35), transparent 70%); }
.card-art img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.card-symbol { font-size: 5rem; filter: grayscale(0.4); }
.card-caption { padding: 0.8rem 1rem 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.15rem; text-align: center; background: linear-gradient(0deg, rgba(22, 19, 47, 0.95), rgba(22, 19, 47, 0.75)); }
.card-kicker { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
.card-title { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; line-height: 1.2; }
.card-hint { font-size: 0.75rem; color: var(--muted); }
.story-card.placeholder .face { border-style: dashed; border-color: rgba(255, 255, 255, 0.2); }
.carousel-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(30, 41, 59, 0.85); color: var(--text); font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.carousel-nav.prev { left: 0.5rem; }
.carousel-nav.next { right: 0.5rem; }
.carousel-status { text-align: center; margin-top: 0.3rem; }
.motion-permission { display: block; margin: 0 auto; }

/* ---------- Storyüberblick ---------- */
.overview-hero { display: grid; gap: 1rem; align-items: center; }
.overview-hero img { width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 0 60px rgba(255, 214, 245, 0.25); }
.fact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin: 1.2rem 0 0.8rem; }
.fact-grid > div { background: rgba(30, 41, 59, 0.8); border-radius: var(--radius-sm); padding: 0.75rem 0.9rem; }
.fact-grid dt { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.fact-grid dd { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips li { background: rgba(201, 167, 255, 0.16); color: var(--story-glow); padding: 0.35rem 0.8rem; border-radius: 999px; font-size: 0.9rem; }

/* ---------- Teilnehmende ---------- */
.kid-list { list-style: none; padding: 0; display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 0.8rem 0; }
.kid-card { position: relative; border-radius: var(--radius); padding: 1rem; background: var(--slate); border-top: 6px solid var(--cyan); box-shadow: var(--shadow); }
.kid-card.tone-1 { border-top-color: var(--story); }
.kid-card.tone-2 { border-top-color: var(--amber); }
.kid-card.tone-3 { border-top-color: #7EE0A0; }
.kid-card.tone-4 { border-top-color: #FF9DC8; }
.kid-card.bday { grid-column: 1 / -1; background: linear-gradient(140deg, rgba(255, 183, 3, 0.18), var(--slate) 60%); border-top-color: var(--amber); }
.kid-badge { font-family: var(--font-head); font-weight: 800; color: var(--amber); margin-bottom: 0.4rem; }
.kid-card .remove { margin-top: 0.3rem; }

/* ---------- Formularfelder ---------- */
.field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.9rem; border: none; padding: 0; }
.field-label { font-weight: 700; font-size: 0.95rem; }
.req { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.field-help { margin: 0; font-size: 0.85rem; color: var(--muted); }
.field input[type="text"], .field input[type="number"] {
  min-height: var(--tap); padding: 0.6rem 0.9rem; border-radius: var(--radius-sm);
  border: 2px solid rgba(255, 255, 255, 0.16); background: rgba(22, 19, 47, 0.7); color: var(--text); font: inherit;
}
.field input:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(0, 210, 211, 0.25); }
.field input[aria-invalid="true"] { border-color: var(--coral); }
.field-error { color: var(--coral); font-size: 0.86rem; font-weight: 600; }
.field-error:empty, .soft-hint:empty, .field-status:empty { display: none; }
.soft-hint { color: var(--amber); font-size: 0.85rem; }
.field-status { font-size: 0.82rem; font-weight: 700; color: var(--amber); }
.field-status::before { content: "● "; }
.field.missing input[type="text"] { border-color: rgba(255, 183, 3, 0.55); }
.form-error { color: var(--coral); font-weight: 700; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { min-height: 40px; padding: 0.35rem 0.9rem; border-radius: 999px; border: 1px solid rgba(0, 210, 211, 0.5); background: transparent; color: var(--cyan); font: 600 0.9rem var(--font-body); cursor: pointer; }
.chip:hover { background: rgba(0, 210, 211, 0.12); }
.radio-group { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.radio-group legend { margin-bottom: 0.4rem; }
.radio-pill { display: inline-flex; align-items: center; gap: 0.4rem; min-height: var(--tap); padding: 0.4rem 1rem; border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.16); cursor: pointer; }
.radio-pill:has(input:checked) { border-color: var(--amber); background: rgba(255, 183, 3, 0.1); }
.radio-pill input, .radio-card input, .check-item input, .big-check input, .confirm-line input, .demo-toggle input { flex: 0 0 auto; width: 22px; height: 22px; accent-color: var(--amber); }
.detail-form { background: var(--slate); border-radius: var(--radius); padding: 1.1rem; margin: 1rem 0; }

/* ---------- Umfang ---------- */
.scope-card { background: var(--slate); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.scope-count { font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.scope-count output { font-size: 3rem; font-weight: 800; color: var(--amber); line-height: 1; }
input[type="range"] { width: 100%; height: var(--tap); accent-color: var(--amber); cursor: pointer; }
.scale { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--muted); }
.fact-grid.two { grid-template-columns: repeat(2, 1fr); }
.station-preview { list-style: none; padding: 0; display: grid; gap: 0.4rem; }
.station-preview li, .summary-list li { display: flex; gap: 0.7rem; align-items: center; background: rgba(30, 41, 59, 0.7); padding: 0.6rem 0.8rem; border-radius: var(--radius-sm); }
.nr { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--story); color: var(--midnight); font-weight: 800; font-family: var(--font-head); }

/* ---------- Badges, Hinweise ---------- */
.badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.76rem; font-weight: 700; background: rgba(255, 183, 3, 0.18); color: var(--amber); vertical-align: middle; }
.badge.search { background: rgba(126, 224, 160, 0.16); color: #9BF0B8; }
.badge.screen { background: rgba(0, 210, 211, 0.16); color: var(--cyan); }
.badge.soft { background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.badge.warn { background: rgba(255, 92, 92, 0.16); color: #FF9C9C; }
.safety { font-size: 0.9rem; background: rgba(255, 183, 3, 0.08); border-left: 3px solid var(--amber); padding: 0.5rem 0.75rem; border-radius: 0 8px 8px 0; }
.notice { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; flex-wrap: wrap; background: rgba(0, 210, 211, 0.1); border: 1px solid rgba(0, 210, 211, 0.35); border-radius: var(--radius-sm); padding: 0.75rem 1rem; margin: 0.8rem 0; }
.notice p { margin: 0; }
.notice.warn { background: rgba(255, 92, 92, 0.08); border-color: rgba(255, 92, 92, 0.45); display: block; }
.info-box { background: rgba(30, 41, 59, 0.75); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 1.2rem 0; }
.info-box h2 { margin-top: 0; font-size: 1.05rem; }
.info-box ul { padding-left: 1.2rem; margin: 0; }
.demo-toggle { display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--muted); min-height: var(--tap); }
.demo-flag { font-size: 0.82rem; color: var(--muted); border: 1px dashed rgba(255, 255, 255, 0.2); border-radius: var(--radius-sm); padding: 0.6rem 0.8rem; max-width: 520px; margin: 1.5rem auto 0; }

/* ---------- Aufgaben-Timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 1rem 0; }
.tl-item { display: grid; grid-template-columns: 40px 1fr; gap: 0.8rem; position: relative; padding-bottom: 0.8rem; scroll-margin-top: 140px; }
.tl-item::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 0; width: 2px; background: linear-gradient(var(--story), transparent); }
.tl-item:last-child::before { display: none; }
.tl-marker { margin-top: 4px; width: 40px; height: 40px; border-radius: 50%; background: var(--story); color: var(--midnight); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; box-shadow: 0 0 18px rgba(201, 167, 255, 0.5); }
.tl-goal { display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; }
.tl-goal { margin: 0.35rem 0 0.5rem; }
.chosen-card { background: var(--slate); border: 2px solid var(--amber); border-radius: var(--radius); padding: 0.8rem 1rem; box-shadow: 0 0 0 4px rgba(255, 183, 3, 0.08), var(--shadow); }
.chosen-label { margin: 0 0 0.2rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }
.chosen-title { margin: 0 0 0.2rem; font-weight: 700; font-size: 1.02rem; }
.chosen-action { margin: 0 0 0.4rem; color: #DCE1EE; font-size: 0.93rem; }
.chosen-card .more { background: transparent; padding: 0; }
.chosen-card .more summary { min-height: 40px; font-size: 0.88rem; color: var(--cyan); }
.chosen-card .btn { margin: 0.2rem 0 0.3rem; }
.alt-list { list-style: none; padding: 0; margin: 0.6rem 0 0; display: grid; gap: 0.4rem; }
.alt-list::before { content: "Alternativen"; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.alt-option { display: flex; align-items: center; justify-content: space-between; gap: 0.7rem; padding: 0.5rem 0.7rem; border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(30, 41, 59, 0.45); opacity: 0.85; }
.alt-option:hover, .alt-option:focus-within { opacity: 1; border-color: var(--cyan); }
.alt-option.custom { border-style: dashed; border-color: rgba(201, 167, 255, 0.45); }
.alt-text { font-size: 0.88rem; }
.alt-text strong { font-weight: 600; }
.alt-text p { margin: 0.1rem 0 0; color: var(--muted); font-size: 0.85rem; }
.alt-option .btn { flex: 0 0 auto; }
.time-bar { margin: 0.6rem 0 1rem; }
.field textarea {
  min-height: 90px; padding: 0.6rem 0.9rem; border-radius: var(--radius-sm); resize: vertical;
  border: 2px solid rgba(255, 255, 255, 0.16); background: rgba(22, 19, 47, 0.7); color: var(--text); font: inherit;
}
.field textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(0, 210, 211, 0.25); }
.field.missing textarea { border-color: rgba(255, 183, 3, 0.55); }
.tl-result { color: var(--muted); font-size: 0.88rem; }
.variant-card { background: var(--slate); border-radius: var(--radius); padding: 1rem 1.1rem; border: 2px solid var(--amber); box-shadow: var(--shadow); }
.variant-card h3 { margin-bottom: 0.3rem; }
.badges { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.variant-facts { display: grid; gap: 0.55rem; margin: 0.7rem 0 0; }
.variant-facts dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--cyan); font-weight: 700; }
.variant-facts dd { margin: 0; }
.consequence { background: rgba(255, 183, 3, 0.1); border-left: 3px solid var(--amber); padding: 0.6rem 0.8rem; border-radius: 0 8px 8px 0; margin: 0.7rem 0 0; font-size: 0.92rem; }
.alternatives { margin-top: 0.7rem; }

/* ---------- Übersicht / Checklisten ---------- */
.summary-list { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.summary-text { flex: 1; }
.summary-text p { margin: 0; }
.summary-text .goal { font-weight: 700; }
.dots { display: flex; gap: 0.5rem; margin: 0.4rem 0 1rem; }
.dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; color: var(--text); border: 2px solid rgba(255, 255, 255, 0.25); font-weight: 700; }
.dot.ok { background: var(--cyan); border-color: var(--cyan); color: var(--midnight); }
.dot.current { box-shadow: 0 0 0 4px rgba(255, 183, 3, 0.35); border-color: var(--amber); }
.checklist { list-style: none; padding: 0; display: grid; gap: 0.6rem; margin: 1rem 0; }
.checklist li { display: flex; gap: 0.8rem; align-items: center; background: var(--slate); padding: 0.8rem 1rem; border-radius: var(--radius-sm); flex-wrap: wrap; }
.checklist li > div { flex: 1; min-width: 180px; }
.checklist li p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.check-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
.checklist .ok .check-icon { background: var(--cyan); color: var(--midnight); }
.checklist .open .check-icon { background: var(--amber); color: var(--amber-ink); }
.jump-list { padding-left: 1.2rem; }
.jump-list li { margin-bottom: 0.4rem; }

/* ---------- Erstellung ---------- */
.generate { text-align: center; padding-top: 1rem; }
.gen-message { font-size: 1.25rem; min-height: 3.2em; color: var(--story-glow); }
.generate.error h1 { color: var(--coral); }
.generate.error .portal .r1 { border-top-color: var(--coral); border-right-color: var(--coral); }

/* ---------- Durchsicht ---------- */
.review-timeline { list-style: none; padding: 0; display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0 0 1rem; }
.review-timeline a, .review-timeline span { min-width: 44px; height: 44px; padding: 0 0.6rem; border-radius: 999px; display: grid; place-items: center; text-decoration: none; color: var(--text); border: 2px solid rgba(255, 255, 255, 0.2); font-weight: 700; font-size: 0.9rem; }
.review-timeline span { opacity: 0.4; }
.review-timeline .done { background: var(--cyan); color: var(--midnight); border-color: var(--cyan); }
.review-timeline .current { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255, 183, 3, 0.3); }
.review-timeline .changed { border-color: var(--coral); }
.review-card { background: var(--slate); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.review-card section { border-top: 1px solid rgba(255, 255, 255, 0.08); margin-top: 1rem; padding-top: 0.4rem; }
.review-card h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--cyan); margin-top: 0.6rem; }
blockquote { margin: 0.4rem 0 0.6rem; padding: 0.7rem 1rem; background: rgba(201, 167, 255, 0.1); border-left: 4px solid var(--story); border-radius: 0 12px 12px 0; font-size: 1.12rem; }
.hints { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.hint { background: rgba(0, 210, 211, 0.1); padding: 0.6rem 0.8rem; border-radius: 10px; }
.hint-level { font-weight: 800; color: var(--cyan); margin-right: 0.4rem; }
details { background: rgba(255, 255, 255, 0.04); border-radius: 10px; padding: 0.2rem 0.8rem; }
details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--muted); }
details p { margin: 0 0 0.6rem; }
.spell { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.spell span { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; padding: 0.3rem 0.8rem; border-radius: 999px; background: linear-gradient(135deg, rgba(255, 214, 245, 0.25), rgba(201, 167, 255, 0.25)); color: var(--story-glow); }
.ritual strong { color: var(--story-glow); font-family: var(--font-head); }
.media-grid { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.media { margin: 0.4rem 0; }
.media img, .media video { width: 100%; border-radius: var(--radius-sm); background: #000; display: block; }
.media figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; }
.media-placeholder { border: 2px dashed rgba(255, 255, 255, 0.2); border-radius: var(--radius-sm); padding: 1.5rem; text-align: center; color: var(--muted); }

/* ---------- Vorbereitung ---------- */
.tabs { display: flex; gap: 0.4rem; overflow-x: auto; margin: 0.6rem 0 1rem; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; padding: 0 1rem; border-radius: 999px; text-decoration: none; color: var(--text); border: 1px solid rgba(255, 255, 255, 0.18); font-weight: 600; }
.tab.active { background: var(--cyan); color: var(--midnight); border-color: var(--cyan); }
.prep-group { background: var(--slate); border-radius: var(--radius); padding: 0.4rem 1.1rem 1rem; margin-bottom: 0.9rem; }
.prep-group h2 { display: flex; align-items: center; gap: 0.6rem; font-size: 1.05rem; margin-top: 0.8rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.check-item label, .big-check, .confirm-line { display: flex; align-items: center; gap: 0.7rem; min-height: var(--tap); cursor: pointer; }
.check-item.done span { text-decoration: line-through; color: var(--muted); }
.check-item.stale { background: rgba(255, 92, 92, 0.07); border-radius: 10px; padding: 0 0.5rem 0.4rem; }
.template-box { margin-top: 0.8rem; padding: 0.8rem; border-radius: var(--radius-sm); background: rgba(255, 255, 255, 0.04); }
.hide-card { background: var(--slate); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 0.9rem; border-left: 6px solid var(--story); box-shadow: var(--shadow); }
.hide-card.done { border-left-color: var(--cyan); opacity: 0.85; }
.hide-card.stale { border-left-color: var(--coral); }
.hide-card header { display: flex; align-items: center; gap: 0.6rem; }
.hide-card header h2 { margin: 0; }
.hide-card .sym { font-size: 1.6rem; }
.hide-card dl { display: grid; gap: 0.4rem; margin: 0.8rem 0; }
.hide-card dt { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.hide-card dd { margin: 0; font-weight: 600; }
.hide-actions { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.big-check { font-weight: 700; font-size: 1.05rem; }
.ready-banner { background: linear-gradient(135deg, rgba(0, 210, 211, 0.2), rgba(201, 167, 255, 0.2)); border: 1px solid var(--cyan); border-radius: var(--radius); padding: 1rem 1.2rem; font-weight: 700; margin: 1rem 0; }

/* ---------- Stationsänderung ---------- */
.variant-choice { border: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.6rem; }
.variant-choice legend { font-weight: 700; margin-bottom: 0.5rem; }
.radio-card { display: flex; gap: 0.8rem; align-items: flex-start; background: var(--slate); border-radius: var(--radius-sm); padding: 0.9rem; border: 2px solid rgba(255, 255, 255, 0.1); cursor: pointer; }
.radio-card.selected { border-color: var(--amber); }
.consequences { background: rgba(255, 183, 3, 0.07); border: 1px solid rgba(255, 183, 3, 0.4); border-radius: var(--radius); padding: 0.6rem 1.1rem 0.9rem; margin: 1rem 0; }
.consequences h2 { margin-top: 0.4rem; font-size: 1.05rem; }
.consequences h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--amber); margin: 0.8rem 0 0.2rem; }
.consequences ul { margin: 0; padding-left: 1.2rem; }

/* ---------- Start und Übergabe ---------- */
.start-view { text-align: center; padding-top: 1rem; }
.start-portrait { width: 180px; height: 180px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 6px rgba(255, 214, 245, 0.3), 0 0 60px rgba(255, 214, 245, 0.45); margin-bottom: 1rem; }
.start-confirm { background: var(--slate); border-radius: var(--radius); padding: 1.2rem; margin-top: 1rem; display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
body.fullscreen .topbar, body.fullscreen .foot, body.fullscreen .phases { display: none; }
.handoff { min-height: 85vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.handoff h1 { font-size: clamp(2.6rem, 10vw, 4.5rem); background: linear-gradient(90deg, var(--story-glow), var(--amber), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.handoff .lead { font-size: 1.4rem; }
.parent-link { margin-top: 2rem; color: var(--muted); font-size: 0.85rem; padding: 0.8rem; }

@media (max-width: 420px) {
  .topbar { gap: 0.5rem; padding-left: 0.75rem; padding-right: 0.75rem; }
  .brand-name { font-size: 1.1rem; }
  .topbar-link { font-size: 0.85rem; padding: 0.4rem 0.65rem; }
  .save-state { font-size: 0.7rem; }
}

/* ---------- Größere Bildschirme ---------- */
@media (min-width: 720px) {
  main { padding-top: 1.5rem; }
  .overview-hero { grid-template-columns: 280px 1fr; }
  .overview-hero img { max-height: 320px; }
  .fact-grid { grid-template-columns: repeat(4, 1fr); }
  .carousel-stage { height: 470px; }
  .story-card { width: 300px; height: 450px; margin-left: -150px; }
  .story-card[data-pos="-1"] { transform: translateX(-75%) translateZ(-160px) rotateY(32deg); }
  .story-card[data-pos="1"] { transform: translateX(75%) translateZ(-160px) rotateY(-32deg); }
  .adventure-card { grid-template-columns: 88px 1fr auto; align-items: center; }
  .adventure-thumb { width: 88px; height: 88px; }
  .adventure-actions { grid-column: auto; flex-direction: column; align-items: stretch; }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .flip-inner { transform: none; }
  .story-card.flipped .flip-inner { transform: rotateY(180deg); }
  .story-card.flipped .face.front { visibility: hidden; }
}
