/* =====================================================================
   QUINN'S DUNGEON
   Y2K-Web × Dark-Fantasy-Dungeon × Clubflyer
   Mobile first. Der Vibe lebt im Rahmen, Formulare bleiben ruhig.
   ===================================================================== */

:root {
  --void: #060708;
  --stone-0: #0c0e10;
  --stone-1: #13161a;
  --stone-2: #1b1f23;
  --line: #2b3137;
  --line-2: #3a424a;
  --text: #ebe7dc;
  --muted: #a3aab0;
  --acid: #c6ff3a;
  --acid-2: #9ad61a;
  --acid-glow: rgba(198, 255, 58, .35);
  --torch: #ffb04a;
  --ember: #ff6a2b;
  --parch: #ecdfbf;
  --parch-2: #d6c08f;
  --ink: #221910;
  --ink-2: #5a4630;
  --blood: #ff6b5a;
  --violet: #b9a6ff;
  --r: 6px;
  --tap: 48px;
  --amp-h: 128px;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --font-display: "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", sans-serif-condensed, Impact, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; scroll-padding-bottom: calc(var(--amp-h) + 32px); }
body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  font: 16px/1.55 var(--font-ui);
  background-color: #08090a;
  background-image:
    radial-gradient(ellipse 90% 40% at 50% 0%, rgba(255, 150, 60, .10), transparent 70%),
    linear-gradient(rgba(6, 7, 8, .62), rgba(6, 7, 8, .9)),
    url("/img/stone.svg");
  background-size: auto, auto, 240px 168px;
  padding-bottom: calc(var(--amp-h) + env(safe-area-inset-bottom) + 12px);
}
body.amp-collapsed { --amp-h: 52px; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--acid); text-underline-offset: 3px; }
a:hover { color: #e4ff9a; }
:focus-visible { outline: 3px solid var(--acid); outline-offset: 2px; border-radius: 3px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
b, strong { font-weight: 700; }
p { margin: 0 0 .9em; }
button, input, select, textarea { font: inherit; color: inherit; }

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; background: var(--acid); color: #000; padding: 10px 14px; border-radius: var(--r); font-weight: 700; }
.skip:focus { top: 8px; }

main { width: min(100% - 24px, 760px); margin: 0 auto; }
.center { text-align: center; }

/* ----------------------------------------------------------- Typo */
.chrome {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: condensed;
  text-transform: uppercase;
  letter-spacing: .03em;
  line-height: 1.02;
  color: #e8eef4;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .chrome {
    background: linear-gradient(180deg, #ffffff 0%, #c4ccd5 42%, #3a4149 50%, #e6f1ff 57%, #8e99a4 82%, #f5f8fb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 2px 0 #0d2a0f) drop-shadow(0 0 10px rgba(198, 255, 58, .18));
  }
}
@media (forced-colors: active) { .chrome { color: CanvasText; background: none; filter: none; } }
.h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); margin: .1em 0 .25em; }
.h2 { font-size: clamp(1.9rem, 7vw, 2.6rem); margin: 0 0 .5em; }
.h3 { font: 700 1.2rem/1.25 var(--font-ui); margin: 0 0 .5em; }
.h4 { font: 700 1rem/1.3 var(--font-ui); margin: 1em 0 .5em; color: var(--muted); }
.lead { font-size: 1.08rem; color: #f3f0e6; }
.fine { font-size: .86rem; color: var(--muted); }
.accent { color: var(--acid); font-weight: 600; }
.kicker { font: 600 .74rem/1.2 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--torch); margin: 0 0 6px; text-align: center; }

/* ----------------------------------------------------------- Marquee + Kopf */
.marquee {
  overflow: hidden; white-space: nowrap; background: #000;
  border-bottom: 1px solid #1f2d0f;
  font: 600 11px/24px var(--font-mono); letter-spacing: .22em; color: var(--acid);
}
.marquee-track { display: inline-flex; animation: marquee 38s linear infinite; }
.marquee-track span { padding-right: 2em; }
@keyframes marquee { to { transform: translateX(-50%); } }

.top {
  display: flex; align-items: center; gap: 6px;
  width: min(100% - 16px, 760px); margin: 8px auto 4px;
}
.brand {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  min-height: var(--tap); padding: 0 4px; text-decoration: none;
  font: 800 1rem/1 var(--font-mono); letter-spacing: .12em; color: var(--text);
}
.brand-star { width: 18px; height: 18px; color: var(--acid); }
.nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: 1 1 0; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 48px; max-width: 84px; min-height: var(--tap); padding: 4px 2px; border-radius: var(--r);
  color: var(--muted); text-decoration: none; font: 600 .66rem/1 var(--font-mono); letter-spacing: .04em; text-transform: uppercase;
  border: 1px solid transparent;
}
.nav a .ico { width: 20px; height: 20px; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav a[aria-current] { color: var(--acid); border-color: #2c3d14; background: rgba(198, 255, 58, .06); }
.lang {
  flex: none; min-width: var(--tap); min-height: var(--tap); border: 1px solid var(--line-2); background: var(--stone-1);
  border-radius: var(--r); font: 700 .78rem/1 var(--font-mono); letter-spacing: .1em; cursor: pointer;
}
.ico { width: 22px; height: 22px; display: inline-block; vertical-align: middle; image-rendering: pixelated; }
.ico.big { width: 40px; height: 40px; color: var(--acid); }

.ig-hint {
  width: min(100% - 24px, 760px); margin: 6px auto; display: flex; gap: 10px; align-items: flex-start;
  background: #16180f; border: 1px dashed #4d5f20; border-radius: var(--r); padding: 10px 12px; font-size: .88rem;
}
.ig-hint p { margin: 0; flex: 1; }
.ig-hint button { min-width: 36px; min-height: 36px; background: none; border: 0; font-size: 1.3rem; cursor: pointer; color: var(--muted); }

/* ----------------------------------------------------------- Fenster (Y2K) */
.win {
  position: relative;
  background: linear-gradient(180deg, rgba(20, 23, 27, .96), rgba(12, 14, 16, .97));
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255, 255, 255, .05), 0 14px 34px rgba(0, 0, 0, .55);
  margin: 0 0 18px;
}
.win-bar {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 10px;
  background: linear-gradient(90deg, #22340c 0%, #121a0c 45%, #14171b 100%);
  border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0;
  font: 600 11px/1.2 var(--font-mono); letter-spacing: .14em; color: var(--acid);
}
.win-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-btns { display: inline-flex; gap: 4px; }
.win-btns i {
  width: 16px; height: 14px; display: inline-grid; place-items: center; font: 10px/1 var(--font-mono); font-style: normal;
  color: #b8c0c8; background: linear-gradient(#2a3036, #15191c); border: 1px solid #454d55; border-radius: 2px;
}
.win-body { padding: 16px; }

/* ----------------------------------------------------------- Hero */
.hero { position: relative; margin-top: 10px; }
.hero-body { position: relative; overflow: hidden; padding: 26px 16px 18px; text-align: center; }
.logo { margin: 4px auto 8px; line-height: 0; }
.logo img { width: min(100%, 336px); filter: drop-shadow(0 0 14px rgba(198, 255, 58, .32)); }
.tagline { font: italic 500 1.12rem/1.4 var(--font-serif); color: #f2ecdc; margin: 6px auto 14px; max-width: 30ch; }
.corner { position: absolute; width: 110px; height: 110px; color: rgba(233, 220, 192, .5); pointer-events: none; }
.c-tl { top: 6px; left: 6px; }
.c-br { bottom: 6px; right: 6px; transform: rotate(180deg); }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; margin: 0 0 6px;
  border: 1px solid #344a12; border-radius: 99px; background: rgba(198, 255, 58, .06);
  font: 600 .8rem/1.2 var(--font-mono); letter-spacing: .06em; color: var(--acid);
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 8px var(--acid); }
.status-pill[data-state="closed"] { color: var(--torch); border-color: #5a3a12; background: rgba(255, 176, 74, .07); }
.status-pill[data-state="closed"] .dot { background: var(--torch); box-shadow: 0 0 8px var(--torch); }
.dungeon-note { font-size: .9rem; color: var(--muted); }
.cta { margin: 12px auto 8px; }

.torch {
  position: absolute; top: -30px; width: 220px; height: 260px; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(255, 158, 64, .34), rgba(255, 106, 43, .12) 55%, transparent 75%);
  animation: flicker 3.2s infinite steps(1);
}
.torch-l { left: -90px; }
.torch-r { right: -90px; animation-delay: -1.4s; }
.hero-win { z-index: 1; }
@keyframes flicker {
  0%, 100% { opacity: .95; } 12% { opacity: .78; } 24% { opacity: 1; } 37% { opacity: .84; }
  51% { opacity: .97; } 63% { opacity: .8; } 78% { opacity: .92; } 88% { opacity: .86; }
}

/* ----------------------------------------------------------- Ornamente */
.orn-div { display: block; width: 100%; max-width: 600px; height: auto; aspect-ratio: 10 / 1; margin: 6px auto 18px; color: var(--acid); opacity: .85; }
.orn-div.small { max-width: 200px; aspect-ratio: 200 / 32; }
.orn-div.ink { color: var(--ink-2); max-width: 220px; aspect-ratio: 200 / 32; opacity: .7; }
.orn-star { width: 18px; height: 18px; color: var(--acid); vertical-align: -3px; margin-right: 6px; }
.orn-big { width: 72px; height: 72px; color: var(--acid); display: block; margin: 0 auto 10px; }

/* ----------------------------------------------------------- Abschnitte */
.block { margin: 0 0 34px; }
.page-head { margin: 14px 0 10px; text-align: center; }
.page-head .lead { max-width: 40ch; margin-inline: auto; }

.scroll-card {
  position: relative; color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% 40%, var(--parch) 50%, var(--parch-2) 100%);
  border-radius: 4px; padding: 26px 20px 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .6), inset 0 0 40px rgba(110, 70, 20, .28);
}
.scroll-card::before, .scroll-card::after {
  content: ""; position: absolute; left: -6px; right: -6px; height: 14px; border-radius: 8px;
  background: linear-gradient(180deg, #b39b6a, #7b6440 60%, #4f3f27);
  box-shadow: 0 3px 6px rgba(0, 0, 0, .4);
}
.scroll-card::before { top: -7px; }
.scroll-card::after { bottom: -7px; }
.scroll-title { font: 700 1.5rem/1.15 var(--font-serif); margin: 0 0 12px; text-align: center; letter-spacing: .02em; }
.scroll-sub { font: 700 1.1rem/1.2 var(--font-serif); margin: 4px 0 6px; }
.rules { margin: 0; padding: 0 0 0 1.1em; list-style: "✦  "; }
.rules li { margin: 0 0 .7em; padding-left: .2em; }
.rules li::marker { color: #7a5a1e; }
.fit { margin: 0 0 .5em; }
.fit.good::before { content: "✓ "; font-weight: 800; color: #3e6b0a; }
.fit.bad::before { content: "✗ "; font-weight: 800; color: #9b2b1d; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: s; }
.steps li {
  counter-increment: s; position: relative; display: grid; grid-template-columns: 48px 1fr; grid-template-rows: auto auto;
  column-gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r);
  background: rgba(13, 15, 17, .85);
}
.steps li > :first-child { grid-row: span 2; width: 40px; height: 40px; color: var(--acid); justify-self: center; }
.steps li b::before { content: counter(s) ". "; color: var(--acid); font-family: var(--font-mono); }
.steps li span { color: var(--muted); font-size: .92rem; }

.grimoire { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.grim { margin: 0; }
.grim-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 3px; overflow: hidden; box-shadow: 0 8px 18px rgba(0, 0, 0, .55); }
.grim-btn img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--parch); }
.grim figcaption { font-size: .85rem; margin-top: 6px; color: var(--text); }
.grim figcaption small { color: var(--muted); }

.teasers { display: grid; gap: 12px; }
.teaser { display: block; text-decoration: none; color: var(--text); margin: 0; transition: transform .15s; }
.teaser:hover { transform: translateY(-2px); color: var(--text); }
.teaser .more { color: var(--acid); font: 600 .85rem var(--font-mono); letter-spacing: .08em; }
.teaser .more::after { content: " →"; }
.hall-strip { display: flex; gap: 6px; margin: 4px 0 10px; overflow: hidden; }
.hall-strip img { width: 64px; height: 80px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line-2); }

/* ----------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 18px; border-radius: var(--r); border: 1px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center;
  transition: transform .08s, box-shadow .15s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn.primary { background: var(--acid); color: #0a0c06; box-shadow: 0 0 0 1px #000, 0 0 18px var(--acid-glow); }
.btn.primary:hover { background: #d6ff6a; color: #000; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--acid); color: var(--acid); }
.btn.danger { background: transparent; color: var(--blood); border-color: #5c2a24; }
.btn.danger:hover { background: rgba(255, 107, 90, .1); }
.btn.big { min-height: 56px; font-size: 1.1rem; padding: 0 26px; }
.btn.wide { width: 100%; }
.btn.small { min-height: 40px; padding: 0 12px; font-size: .88rem; }
.btn .ico { width: 22px; height: 22px; }
.linkish { background: none; border: 0; padding: 8px 0; color: var(--acid); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 40px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.end { justify-content: flex-end; }
.row.center { justify-content: center; }
.stack { display: grid; gap: 8px; }

/* ----------------------------------------------------------- Formulare (ruhig) */
label, .f-label { font-weight: 600; }
.f-label { display: block; font-size: 1rem; margin: 0 0 4px; padding: 0; }
.f-label.sm { font-size: .9rem; margin-top: 12px; font-weight: 500; color: var(--muted); }
.hint { font-size: .86rem; color: var(--muted); margin: 0 0 8px; }
input[type="text"], input[type="email"], input[type="search"], input:not([type]), textarea, select {
  width: 100%; min-height: var(--tap); padding: 11px 13px; font-size: 16px;
  background: #0d1012; color: var(--text); border: 1px solid #39414a; border-radius: var(--r);
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--acid); box-shadow: 0 0 0 3px rgba(198, 255, 58, .2); }
input::placeholder, textarea::placeholder { color: #737b82; }
[aria-invalid="true"] { border-color: var(--blood) !important; }
fieldset[aria-invalid="true"], .field[aria-invalid="true"] { border-left: 3px solid var(--blood); padding-left: 10px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field { margin: 0 0 22px; }
.field.sub { margin: 12px 0 0; }
.ta-wrap { position: relative; }
.count { position: absolute; right: 8px; bottom: 6px; font: .72rem var(--font-mono); color: var(--muted); pointer-events: none; }
.code-input { font: 700 1.6rem/1 var(--font-mono) !important; letter-spacing: .35em; text-align: center; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.tight { gap: 6px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 99px;
  border: 1px solid #3a424a; background: #101315; font-weight: 500; font-size: .95rem; cursor: pointer; user-select: none;
}
.chip input:checked + span { background: var(--acid); color: #0a0c06; border-color: var(--acid); font-weight: 700; }
.chip input:focus-visible + span { outline: 3px solid var(--acid); outline-offset: 2px; }

.check { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 10px 0; font-weight: 400; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 1px 0 0; accent-color: var(--acid); }
.check.req span::after { content: " *"; color: var(--acid); }
.consents .fine { margin: 14px 0 0; }
.consents .fine.indent { margin: -6px 0 0 36px; }

.health { display: grid; gap: 12px; }
.yn legend { font-weight: 500; margin-bottom: 6px; }

.tip { border: 1px dashed #4d5f20; background: rgba(198, 255, 58, .05); border-radius: var(--r); padding: 12px 14px; margin: 0 0 22px; }
.tip p { margin: 0 0 .4em; font-size: .92rem; }
.tip-main { font-weight: 700; font-size: 1rem !important; color: var(--acid); }
.tip-good::before { content: "✓ "; color: var(--acid); font-weight: 800; }
.tip-bad { color: var(--muted); }
.tip-bad::before { content: "✗ "; color: var(--blood); font-weight: 800; }

.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { position: relative; width: 84px; height: 84px; border-radius: var(--r); overflow: hidden; border: 1px solid #39414a; background: #0d1012; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.add { display: grid; place-items: center; align-content: center; gap: 2px; cursor: pointer; color: var(--acid); border-style: dashed; text-align: center; }
.thumb.add span { font-size: 1.8rem; line-height: 1; }
.thumb.add small { font-size: .66rem; color: var(--muted); padding: 0 4px; }
.thumb.busy { display: grid; place-items: center; }
.thumb-x { position: absolute; top: 2px; right: 2px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .75); color: #fff; font-size: 1.1rem; cursor: pointer; }

.msg { padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); }
.msg.error { border-color: #6b2b23; background: rgba(255, 107, 90, .08); color: #ffd2cb; }
.msg.warn { border-color: #6b4b14; background: rgba(255, 176, 74, .08); color: #ffe3bd; }
.msg.ok { border-color: #3e5414; background: rgba(198, 255, 58, .06); }
.auth-inline { margin-top: 18px; padding: 16px; border: 1px solid #3e5414; border-radius: var(--r); background: rgba(198, 255, 58, .04); }
.captcha:empty { display: none; }
.loading { display: flex; justify-content: center; padding: 40px 0; color: var(--muted); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #2d3a14; border-top-color: var(--acid); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.switch { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .sw { flex: none; width: 46px; height: 26px; border-radius: 99px; background: #2a3036; border: 1px solid #454d55; position: relative; transition: background .15s; }
.switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #cfd5da; transition: transform .15s; }
.switch input:checked + .sw { background: var(--acid-2); border-color: var(--acid); }
.switch input:checked + .sw::after { transform: translateX(20px); background: #0a0c06; }
.switch input:focus-visible + .sw { outline: 3px solid var(--acid); outline-offset: 2px; }
.switch input:disabled + .sw { opacity: .4; }

/* ----------------------------------------------------------- Pergament-Zettel */
.wall { columns: 2 160px; column-gap: 14px; padding: 8px 2px 20px; }
.note {
  --rot: 0deg;
  position: relative; break-inside: avoid; display: block;
  margin: 18px 0 22px; padding: 26px 14px 16px;
  color: var(--ink); font-family: var(--font-serif);
  background:
    radial-gradient(140% 90% at 30% 20%, rgba(255, 255, 255, .35), transparent 45%),
    radial-gradient(120% 90% at 50% 45%, var(--parch) 52%, var(--parch-2) 100%);
  border-radius: 2px 3px 2px 4px;
  transform: rotate(var(--rot));
  box-shadow: 0 10px 18px rgba(0, 0, 0, .55), inset 0 0 26px rgba(120, 80, 30, .3);
  clip-path: polygon(0 1%, 8% 0, 22% 1.2%, 40% .2%, 57% 1%, 74% 0, 90% .8%, 100% 0, 99.4% 22%, 100% 47%, 99.2% 71%, 100% 100%, 84% 99%, 66% 100%, 47% 98.8%, 30% 100%, 12% 99.2%, 0 100%, .7% 74%, 0 50%, .6% 26%);
  cursor: pointer;
  transition: transform .2s;
}
.note:hover { transform: rotate(0deg) scale(1.01); }
.note .nail { position: absolute; top: 6px; left: 50%; width: 22px; height: 22px; transform: translateX(-50%); }
.note-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; border-bottom: 1px dashed rgba(90, 70, 48, .5); padding-bottom: 6px; }
.note-no { font: 800 .82rem/1 var(--font-mono); letter-spacing: .16em; color: #3b2a14; }
.note-who { font: italic .82rem/1.2 var(--font-serif); color: var(--ink-2); }
.note-idea { font-size: 1rem; line-height: 1.42; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.note.open .note-idea, .note-idea.full { -webkit-line-clamp: unset; display: block; }
.note-meta { font: .78rem/1.3 var(--font-mono); color: var(--ink-2); margin: 0 0 8px; }
.note-status { font: 700 .78rem/1.3 var(--font-mono); letter-spacing: .04em; margin: 0; color: #3b2a14; padding-right: 58px; min-height: 2.6em; }
.note .seal.stamp { position: absolute; right: 6px; bottom: 6px; width: 64px; height: 64px; transform: rotate(-14deg); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .4)); }
.note.own { box-shadow: 0 10px 18px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(110, 160, 20, .55), inset 0 0 26px rgba(120, 80, 30, .3); }
.note-refs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 8px; }
.ref { padding: 0; border: 1px solid rgba(60, 40, 20, .5); background: #0b0b0b; width: 56px; height: 56px; border-radius: 3px; overflow: hidden; cursor: zoom-in; }
.ref img { width: 100%; height: 100%; object-fit: cover; }
.note.wide { cursor: default; margin: 22px 0 28px; padding: 30px 18px 18px; }
.note.wide:hover { transform: rotate(var(--rot)); }
.note.big { max-width: 440px; margin: 30px auto 24px; padding: 40px 22px 22px; text-align: center; cursor: default; }
.note-title { font: 700 1.6rem/1.2 var(--font-serif); margin: 0 0 10px; }
.done-wrap { padding-top: 10px; }

.verdict-box { display: flex; gap: 12px; align-items: center; margin: 10px 0; }
.verdict-box .seal { width: 72px; height: 72px; transform: rotate(-10deg); flex: none; }
.verdict-label { font: 700 1.1rem/1.2 var(--font-serif); margin: 0; }
.verdict-d { margin: 0; color: var(--ink-2); font-size: .92rem; }
.quinn-says { margin: 10px 0; padding: 10px 12px; background: rgba(255, 255, 255, .35); border-left: 3px solid #6d8f12; font-size: 1rem; white-space: pre-wrap; }
.qs-label { display: block; font: 700 .72rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.steps-line { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 10px 0; font: .72rem/1 var(--font-mono); }
.steps-line li { padding: 5px 7px; border: 1px solid rgba(90, 70, 48, .4); border-radius: 99px; color: var(--ink-2); }
.steps-line li.on { background: #2c3a10; color: var(--acid); border-color: #2c3a10; }
.optins { display: grid; gap: 2px; margin: 8px 0; font-family: var(--font-ui); }
.optins .switch { color: var(--ink); }

.tabs { display: flex; gap: 6px; justify-content: center; margin: 0 0 6px; }
.tabs button {
  min-height: 44px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(12, 14, 16, .9);
  font: 600 .85rem var(--font-mono); letter-spacing: .06em; cursor: pointer; color: var(--muted);
}
.tabs button[aria-selected="true"] { color: #0a0c06; background: var(--acid); border-color: var(--acid); }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); column-span: all; }
.empty .btn { margin-top: 8px; }

.grid-2 { display: grid; gap: 14px; }
.grid-2.tight { gap: 10px; align-items: end; }

/* ----------------------------------------------------------- Hall of Fame */
.hall-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.hall-frame {
  margin: 0; padding: 8px; background: linear-gradient(145deg, #3b4148, #15191c 40%, #2a3036);
  border: 1px solid #000; border-radius: 4px; box-shadow: 0 12px 24px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.hall-frame img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid #000; }
.hall-frame figcaption { font: italic .88rem/1.3 var(--font-serif); padding: 8px 2px 2px; text-align: center; }

/* ----------------------------------------------------------- Thron (ruhig) */
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 8px; }
.filters input { grid-column: 1 / -1; }
.throne-list { display: grid; gap: 8px; margin-bottom: 22px; }
.tq { border: 1px solid var(--line); border-radius: var(--r); background: rgba(14, 16, 19, .96); }
.tq[open] { border-color: #3e5414; }
.tq summary {
  list-style: none; display: grid; grid-template-columns: auto 1fr auto auto; grid-template-areas: "no name flag seal" "meta meta age age";
  gap: 2px 10px; align-items: center; padding: 10px 12px; cursor: pointer; min-height: 56px;
}
.tq summary::-webkit-details-marker { display: none; }
.tq-no { grid-area: no; font: 700 .85rem var(--font-mono); color: var(--acid); }
.tq-name { grid-area: name; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tq-meta { grid-area: meta; font-size: .85rem; color: var(--muted); }
.tq-age { grid-area: age; font-size: .78rem; color: var(--muted); text-align: right; }
.tq-flag { grid-area: flag; width: 22px; height: 22px; border-radius: 50%; background: var(--blood); color: #000; font-weight: 800; display: grid; place-items: center; font-size: .8rem; }
.tq-seal { grid-area: seal; width: 28px; height: 28px; }
.tq-new { grid-area: seal; font: 700 .68rem var(--font-mono); letter-spacing: .1em; color: #0a0c06; background: var(--acid); padding: 3px 6px; border-radius: 3px; text-transform: uppercase; }
.tq-body { padding: 4px 12px 14px; border-top: 1px solid var(--line); }
.tq-idea { white-space: pre-wrap; font-size: 1.02rem; margin: 10px 0; }
.tq-body .ref { width: 76px; height: 76px; border-color: var(--line-2); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; font-size: .9rem; margin: 10px 0 14px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts dd.bad { color: var(--blood); font-weight: 600; }
.hnote { color: var(--text); font-weight: 400; font-style: italic; margin-top: 2px; }
.judge { border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px; display: grid; gap: 8px; }
.judge legend { padding: 0 6px; font: 700 .78rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--acid); }
.seal-pick { display: grid; gap: 6px; }
.seal-opt { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; font-weight: 400; }
.seal-opt input { position: absolute; opacity: 0; }
.seal-opt img { width: 48px; height: 48px; filter: grayscale(.85) brightness(.7); transition: filter .15s, transform .15s; }
.seal-opt span { display: grid; }
.seal-opt small { color: var(--muted); }
.seal-opt:has(input:checked) { border-color: var(--acid); background: rgba(198, 255, 58, .06); }
.seal-opt input:checked + img { filter: none; transform: rotate(-10deg) scale(1.08); }
.seal-opt input:focus-visible + img { outline: 3px solid var(--acid); border-radius: 50%; }
.tq-hall { margin: 14px 0; }
.hall-admin { display: grid; gap: 8px; margin-bottom: 10px; }
.ha { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; }
.ha img { width: 64px; height: 80px; object-fit: cover; border-radius: 3px; }

/* ----------------------------------------------------------- Footer */
.foot { text-align: center; padding: 10px 12px 24px; color: var(--muted); font-size: .88rem; }
.foot a { color: var(--text); }
.counter { margin: 0 0 10px; font: .8rem var(--font-mono); letter-spacing: .06em; }
.lcd {
  display: inline-block; padding: 3px 8px; margin-left: 6px; font: 700 1rem/1 var(--font-mono); letter-spacing: .28em;
  color: #9dff3a; background: #031002; border: 2px inset #2b3a1c; text-shadow: 0 0 6px rgba(157, 255, 58, .7);
}
.foot-links { margin: 0 0 12px; }
.badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.badge {
  width: 88px; height: 31px; display: grid; place-items: center; text-align: center;
  font: 700 8px/1.1 var(--font-mono); letter-spacing: .08em; border: 1px solid #000; box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .35), inset -1px -1px 0 rgba(0, 0, 0, .5);
}
.b1 { background: linear-gradient(#1c2b09, #3f6111); color: var(--acid); }
.b2 { background: linear-gradient(#2a1b40, #120b1c); color: var(--violet); }
.b3 { background: linear-gradient(#5a1a12, #24070a); color: #ffb3a8; }

/* ----------------------------------------------------------- Player (DUNGEON.AMP) */
.amp {
  position: fixed; left: 50%; bottom: calc(8px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 30;
  width: min(100% - 16px, 420px);
  background: linear-gradient(180deg, #2a3036, #15191c);
  border: 1px solid #000; border-radius: 5px;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .18), inset -1px -1px 0 rgba(0, 0, 0, .6), 0 10px 26px rgba(0, 0, 0, .7);
  font-family: var(--font-mono);
}
.amp-bar { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 4px 0 8px; background: linear-gradient(90deg, #22340c, #0f160a 60%, #1b2026); border-radius: 5px 5px 0 0; font-size: 10px; letter-spacing: .2em; color: var(--acid); }
.amp-name { flex: none; font-weight: 700; }
.amp-mini-title { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #8fa07a; letter-spacing: .06em; display: none; }
.amp-fold { margin-left: auto; width: 36px; height: 26px; background: linear-gradient(#2a3036, #15191c); border: 1px solid #454d55; border-radius: 2px; color: #cfd5da; font-size: 11px; cursor: pointer; }
.amp-body { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 6px 8px 8px; }
.amp-lcd { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; background: #020a02; border: 2px inset #2b3a1c; padding: 4px 8px; height: 28px; }
.amp-time { color: #9dff3a; font-size: 13px; font-weight: 700; text-shadow: 0 0 6px rgba(157, 255, 58, .6); }
.amp-ticker { overflow: hidden; white-space: nowrap; color: #9dff3a; font-size: 11px; letter-spacing: .08em; }
.amp-title { display: inline-block; }
.playing .amp-title { animation: ticker 14s linear infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }
.amp-viz { display: flex; gap: 2px; align-items: flex-end; height: 16px; }
.amp-viz i { width: 3px; height: 3px; background: linear-gradient(0deg, #3ccf2a, #e9ff3a 70%, #ff8a2a); }
.playing .amp-viz i { animation: viz .5s ease-in-out infinite alternate; }
.amp-viz i:nth-child(2n) { animation-delay: -.2s !important; animation-duration: .38s !important; }
.amp-viz i:nth-child(3n) { animation-delay: -.33s !important; animation-duration: .61s !important; }
@keyframes viz { from { height: 3px; } to { height: 16px; } }
.amp-ctrl { display: flex; align-items: center; gap: 4px; }
.amp-ctrl button {
  width: 44px; height: 40px; display: grid; place-items: center; cursor: pointer; color: #dfe5ea;
  background: linear-gradient(#3a424a, #1b1f23); border: 1px solid #000; border-radius: 3px;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, .2);
}
.amp-ctrl button:active { box-shadow: inset 1px 1px 3px rgba(0, 0, 0, .6); }
.amp-ctrl svg { width: 16px; height: 16px; }
.amp-ctrl .amp-play { color: var(--acid); }
.amp-vol { flex: 1; min-width: 60px; accent-color: var(--acid); height: 40px; }
.amp-mini-play { display: none; flex: none; width: 44px; height: 34px; place-items: center; cursor: pointer; color: var(--acid); background: linear-gradient(#3a424a, #1b1f23); border: 1px solid #000; border-radius: 3px; }
.amp-mini-play svg { width: 14px; height: 14px; }
.amp.collapsed .amp-body { display: none; }
.amp.collapsed .amp-bar { height: 44px; border-radius: 5px; }
.amp.collapsed .amp-mini-title { display: block; }
.amp.collapsed .amp-mini-play { display: grid; }
.amp.collapsed .amp-fold { height: 34px; width: 44px; }
.amp.collapsed { width: min(100% - 16px, 360px); }

/* ----------------------------------------------------------- Dialoge + Toast */
.dlg { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--stone-1); color: var(--text); padding: 0; width: min(100% - 32px, 420px); }
.dlg::backdrop, .lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.dlg-body { padding: 18px; }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100dvh; }
.lightbox img { display: block; max-width: 96vw; max-height: 88dvh; object-fit: contain; border-radius: 4px; }
.lb-close { position: fixed; top: 12px; right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .7); color: #fff; font-size: 1.3rem; cursor: pointer; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--amp-h) + 24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 40;
  max-width: min(100% - 32px, 460px); padding: 12px 16px; border-radius: var(--r);
  background: #0f1310; border: 1px solid #3e5414; color: var(--text); box-shadow: 0 10px 24px rgba(0, 0, 0, .6);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast[data-kind="error"] { border-color: #6b2b23; background: #1a0f0e; }

@media (max-width: 400px) { .brand span { display: none; } }

/* ----------------------------------------------------------- Rechtstexte */
.legal-page { padding-bottom: 24px; }
.legal-nav { margin-left: auto; font-size: .9rem; }
.legal { width: min(100% - 24px, 720px); margin: 10px auto 30px; padding: 20px 18px; background: rgba(12, 14, 16, .94); border: 1px solid var(--line); border-radius: var(--r); }
.legal h2 { font-size: 1.15rem; margin: 1.6em 0 .5em; color: var(--acid); }
.legal h2.chrome { font-size: 1.8rem; }
.legal h3 { font-size: 1rem; margin: 1.2em 0 .3em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal hr { border: 0; border-top: 1px dashed var(--line-2); margin: 2em 0; }

/* ----------------------------------------------------------- Grössere Screens */
@media (min-width: 640px) {
  .hero-body { padding: 34px 30px 24px; }
  .grimoire { grid-template-columns: repeat(3, 1fr); }
  .teasers { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .wall { columns: 3 200px; }
  .hall-grid { grid-template-columns: repeat(3, 1fr); }
  .filters { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .filters input { grid-column: auto; }
  .seal-pick { grid-template-columns: repeat(3, 1fr); }
  .seal-opt { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .corner { width: 150px; height: 150px; }
}

/* ----------------------------------------------------------- Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .marquee-track { transform: none; }
  .note:hover { transform: rotate(var(--rot)); }
}
