/* ==========================================================================
   Welt „Arstotzka“ – Grenzposten in Pixeloptik: Oliv, Papier, Stempelgrün und -rot.
   Keine runden Ecken, harte Kanten, Schreibmaschinen- und Pixelschrift.
   ========================================================================== */
html[data-theme="arstotzka"] {
  font-size: 17px;
  --night: #25271f;
  --gold: #d7c68f;
  --gold-hi: #efe2b0;
  --gold-lo: #8a8058;
  --gold-grad: linear-gradient(#d7c68f, #d7c68f);
  --acc: 215 198 143;
  --acc-hi: 239 226 176;
  --shade: 20 21 16;
  --warn: 194 74 54;
  --line: rgb(215 198 143 / .22);
  --line-strong: rgb(215 198 143 / .5);
  --text: #ddd4b8;
  --text-dim: #a19e89;
  --text-faint: #75745f;
  --verdigris: #7fae4f;
  --amber: #d7a13a;
  --vermilion: #d05a42;
  --on-acc: #f1ead3;
  --ital: normal;
  --f-display: 'Pixelify Sans', 'Courier New', monospace;
  --f-caps: 'Pixelify Sans', 'Courier New', monospace;
  --f-body: 'VT323', 'Courier New', monospace;
  --f-mono: 'VT323', 'Courier New', monospace;
  --f-prose: var(--f-body);
  --plate-1: #3a3d31;
  --plate-2: #30332a;
  --panel-1: #2f3128;
  --panel-2: #272920;
  --placeholder: rgb(221 212 184 / .35);
  --stamp-ok: #6f9a45;
  --stamp-no: #b8412f;
}
[data-theme="arstotzka"] *, [data-theme="arstotzka"] *::before, [data-theme="arstotzka"] *::after { border-radius: 0 !important; }
[data-theme="arstotzka"] body { font-size: 21px; line-height: 1.3; background: var(--night); }
[data-theme="arstotzka"] .sky {
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, transparent 40%, rgb(0 0 0 / .45)),
    repeating-conic-gradient(#282a21 0 25%, #25271f 0 50%) 0 0 / 8px 8px;
}
[data-theme="arstotzka"] .sky::after { background: repeating-linear-gradient(0deg, rgb(0 0 0 / .14) 0 2px, transparent 2px 4px); }

/* ---------- Grundbausteine ---------- */
[data-theme="arstotzka"] .plate { border: 2px solid #15160f; box-shadow: 0 0 0 2px #4d5240, 8px 8px 0 rgb(0 0 0 / .45); background: linear-gradient(180deg, var(--plate-1), var(--plate-2)); }
[data-theme="arstotzka"] .plate::before { inset: 6px; border: 1px dashed rgb(215 198 143 / .18); }
[data-theme="arstotzka"] .plate::after { display: none; }
[data-theme="arstotzka"] .btn-gold, [data-theme="arstotzka"] .btn-ghost { font-weight: 600; letter-spacing: .08em; font-size: .82rem; }
[data-theme="arstotzka"] .btn-gold {
  color: #f1ead3;
  background: var(--stamp-ok);
  clip-path: none;
  border: 2px solid #15160f;
  box-shadow: inset -3px -3px 0 #4d6f30, inset 3px 3px 0 #8cbc5c;
  text-shadow: 2px 2px 0 #3c5725;
}
[data-theme="arstotzka"] .btn-gold::after { display: none; }
[data-theme="arstotzka"] .btn-gold.danger { color: #f1ead3; background: var(--stamp-no); box-shadow: inset -3px -3px 0 #7c2a1d, inset 3px 3px 0 #d8735c; text-shadow: 2px 2px 0 #5e1f15; }
[data-theme="arstotzka"] .btn-gold:hover:not(:disabled) { filter: brightness(1.12); }
[data-theme="arstotzka"] .btn-gold:active:not(:disabled) { box-shadow: inset 3px 3px 0 #4d6f30; transform: translate(1px, 1px); }
[data-theme="arstotzka"] .btn-ghost { color: var(--text); background: #2f3228; border: 2px solid #8a8670; box-shadow: inset -2px -2px 0 #23251d; }
[data-theme="arstotzka"] .btn-ghost:hover:not(:disabled) { background: #3a3d31; border-color: var(--gold); }
[data-theme="arstotzka"] .icon-btn { border: 2px solid #5e6548; background: #2f3228; }
[data-theme="arstotzka"] input, [data-theme="arstotzka"] textarea { background: #1c1d17; border: 2px solid #5e6548; color: #e6ddc0; font-size: 1.3rem; }
[data-theme="arstotzka"] textarea { font-size: 1.15rem; line-height: 1.25; }
[data-theme="arstotzka"] input:focus, [data-theme="arstotzka"] textarea:focus { border-color: var(--gold); box-shadow: 4px 4px 0 rgb(0 0 0 / .4); }
[data-theme="arstotzka"] .field > span { font-weight: 500; letter-spacing: .06em; font-size: .78rem; }
[data-theme="arstotzka"] .field > span em { font-size: 1rem; }
[data-theme="arstotzka"] .check { font-size: 1.15rem; }
[data-theme="arstotzka"] .check input { transform: none; border: 2px solid var(--gold); }
[data-theme="arstotzka"] .check input:checked { background: var(--stamp-ok); box-shadow: inset 0 0 0 3px #1c1d17; }
[data-theme="arstotzka"] .face.front { background: var(--grain, none) 0 0 / 120px, #dcd0ae; box-shadow: 0 0 0 2px #1d1c17, 5px 5px 0 rgb(0 0 0 / .4); }
[data-theme="arstotzka"] .face.back { background: #3c4131; box-shadow: 0 0 0 2px #1d1c17, 5px 5px 0 rgb(0 0 0 / .4); }
[data-theme="arstotzka"] .ar-vt { font-family: 'VT323', monospace; }
[data-theme="arstotzka"] .ar-px { font-family: 'Pixelify Sans', monospace; font-weight: 700; }
[data-theme="arstotzka"] .ic { stroke-linecap: square; stroke-linejoin: miter; stroke-width: 2; }

/* ---------- Startseite ---------- */
[data-theme="arstotzka"] .hero-bg { inset: 0; opacity: 1; }
[data-theme="arstotzka"] .hero-ar { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
[data-theme="arstotzka"] .wordmark {
  font-weight: 700;
  color: var(--gold);
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  text-shadow: 5px 5px 0 #15160f;
  filter: none;
  font-size: clamp(3.4rem, 8vw, 8.4rem);
  letter-spacing: .02em;
  line-height: 1;
}
[data-theme="arstotzka"] .wordmark-logo { width: .42em; top: -.02em; }
[data-theme="arstotzka"] .wordmark-logo svg { image-rendering: pixelated; }
[data-theme="arstotzka"] .tagline { font-size: clamp(1.3rem, 2vw, 1.9rem); color: var(--gold-hi); }
[data-theme="arstotzka"] .lede { font-size: 1.45rem; color: #c8c0a4; }
[data-theme="arstotzka"] .eyebrow { font-size: .75rem; letter-spacing: .2em; }
[data-theme="arstotzka"] .eyebrow i { transform: none; }
[data-theme="arstotzka"] .or { font-size: 1.25rem; }
[data-theme="arstotzka"] .code-input { font-size: 1.5rem; }
[data-theme="arstotzka"] .steps { background: #1c1d17; border-color: #15160f; }
[data-theme="arstotzka"] .step b { background: none; color: var(--stamp-ok); font-size: 2.4rem; }
[data-theme="arstotzka"] .step h3 { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; }
[data-theme="arstotzka"] .step p { font-size: 1.3rem; }
[data-theme="arstotzka"] .section-title { font-weight: 700; color: var(--gold); background: none; text-shadow: 4px 4px 0 #15160f; }
[data-theme="arstotzka"] .section-sub { font-size: 1.35rem; }
[data-theme="arstotzka"] .gallery figcaption b { font-size: .8rem; letter-spacing: .06em; }
[data-theme="arstotzka"] .gallery figcaption span { font-size: 1.3rem; }
[data-theme="arstotzka"] .foot { font-size: 1.3rem; }
[data-theme="arstotzka"] .foot i { transform: none; }
[data-theme="arstotzka"] .scroll-cue { font-size: .7rem; }

/* ---------- Kopfleiste ---------- */
[data-theme="arstotzka"] .topbar { background: #1a1b15; border-bottom: 4px solid #3c4131; }
[data-theme="arstotzka"] .topbar::after { display: none; }
[data-theme="arstotzka"] .brand .logo { image-rendering: pixelated; }
[data-theme="arstotzka"] .brand-name { color: var(--gold); background: none; font-weight: 700; font-size: 1.35rem; }
[data-theme="arstotzka"] .session-title { font-family: var(--f-body); font-size: 1.7rem; font-weight: 400; }
[data-theme="arstotzka"] .code-chip { font-family: var(--f-mono); font-size: 1.35rem; font-weight: 400; border: 2px solid #5e6548; background: #23251d; }
[data-theme="arstotzka"] .code-label { font-family: var(--f-caps); }
[data-theme="arstotzka"] .me-chip { border: 2px solid #5e6548; }
[data-theme="arstotzka"] .me-chip .me-name { font-size: 1.25rem; }
[data-theme="arstotzka"] .badge { font-size: .8rem; }
[data-theme="arstotzka"] .conn { font-size: 1.35rem; background: var(--stamp-no); color: #f1ead3; border: 0; }

/* ---------- Schreibtisch im Häuschen ---------- */
[data-theme="arstotzka"] .table::before {
  background:
    repeating-linear-gradient(0deg, rgb(0 0 0 / .06) 0 4px, transparent 4px 12px),
    linear-gradient(180deg, #51493b, #463f33);
  box-shadow:
    0 0 0 4px #15160f,
    0 0 0 10px #3a352b,
    0 0 0 12px #15160f,
    14px 16px 0 12px rgb(0 0 0 / .35);
}
[data-theme="arstotzka"] .table-ring .r-grid { fill: none; stroke: var(--gold); stroke-opacity: .05; stroke-width: .6; }
[data-theme="arstotzka"] .table-ring .r1, [data-theme="arstotzka"] .table-ring .r2 { fill: none; stroke: var(--gold); stroke-opacity: .22; stroke-width: 1.4; }
[data-theme="arstotzka"] .table-ring .r-text { font-family: var(--f-mono); font-size: 11px; fill: var(--gold); fill-opacity: .32; letter-spacing: 1px; }
[data-theme="arstotzka"] .table-ring .r-lab text { font-family: var(--f-mono); font-size: 11px; fill: var(--gold); fill-opacity: .35; }
[data-theme="arstotzka"] .table-ring .r-emblem { opacity: .1; }

[data-theme="arstotzka"] .ticket-key { font-family: var(--f-mono); font-size: 1.2rem; font-weight: 400; background: #1c1d17; border: 2px solid #5e6548; }
[data-theme="arstotzka"] .ticket-title { font-family: var(--f-display); font-weight: 600; color: #efe6c8; text-shadow: 3px 3px 0 rgb(0 0 0 / .45); font-size: clamp(1.15rem, 1.7vw, 1.8rem); }
[data-theme="arstotzka"] .progress span { font-size: .72rem; }
[data-theme="arstotzka"] .pip { transform: none; border: 2px solid var(--gold); width: 10px; height: 10px; }
[data-theme="arstotzka"] .pip.on { background: var(--stamp-ok); border-color: var(--stamp-ok); box-shadow: none; }
[data-theme="arstotzka"] .hint { font-size: 1.25rem; }
[data-theme="arstotzka"] .timer { font-family: var(--f-mono); font-size: 1.5rem; font-weight: 400; background: #1c1d17; border: 2px solid #5e6548; }
[data-theme="arstotzka"] .verdict-label { font-size: .72rem; }
[data-theme="arstotzka"] .verdict { font-weight: 700; color: var(--gold-hi); text-shadow: 3px 3px 0 #15160f; }
[data-theme="arstotzka"] .verdict span { font-family: var(--f-body); font-weight: 400; font-size: .62em; }
[data-theme="arstotzka"] .omen { font-size: 1.35rem; color: #c9c1a2; }
[data-theme="arstotzka"] .stats { font-size: 1.2rem; }
[data-theme="arstotzka"] .stat b { font-family: var(--f-display); font-size: 1.2rem; }
[data-theme="arstotzka"] .agree { font-size: .66rem; border-width: 2px; }
[data-theme="arstotzka"] .a-uni { color: var(--verdigris); background: rgb(127 174 79 / .12); box-shadow: none; }
[data-theme="arstotzka"] .a-chaos { color: #ef7a60; background: rgb(184 65 47 / .15); }
[data-theme="arstotzka"] .chip b { font-family: var(--f-display); font-size: 1rem; }
[data-theme="arstotzka"] .chip small { font-size: 1rem; }
[data-theme="arstotzka"] .outliers { font-size: 1.2rem; }
[data-theme="arstotzka"] .verdict-card .face.front { box-shadow: 0 0 0 2px #1d1c17, 8px 8px 0 rgb(0 0 0 / .45); }

/* Stempel auf der Entscheidung */
[data-theme="arstotzka"] .stamp { font-family: var(--f-display); }

[data-theme="arstotzka"] .avatar {
  font-family: var(--f-display);
  background: hsl(var(--hue) 22% 42%);
  box-shadow: 0 0 0 2px #15160f, 0 0 0 4px #5e6548, 4px 4px 0 4px rgb(0 0 0 / .35);
  text-shadow: 2px 2px 0 rgb(0 0 0 / .45);
}
[data-theme="arstotzka"] .seat.voted .avatar { box-shadow: 0 0 0 2px #15160f, 0 0 0 5px var(--verdigris), 4px 4px 0 5px rgb(0 0 0 / .35); }
[data-theme="arstotzka"] .seat .name { font-size: 1.15rem; background: #1c1d17; line-height: 1.1; padding: .05rem .4rem; }
[data-theme="arstotzka"] .seat .host-mark { background: var(--gold); box-shadow: 0 0 0 2px #15160f; }
[data-theme="arstotzka"] .seat .tick { background: var(--verdigris); }
[data-theme="arstotzka"] .slot::before { border: 2px dashed rgb(215 198 143 / .3); }
[data-theme="arstotzka"] .slot .mine { font-family: var(--f-mono); font-size: 1.2rem; font-weight: 400; background: var(--gold); }
[data-theme="arstotzka"] .slot.up.winner .face.front { box-shadow: 0 0 0 2px #1d1c17, 0 0 0 5px var(--verdigris), 5px 5px 0 5px rgb(0 0 0 / .4); }
[data-theme="arstotzka"] .ghost { border: 2px dashed #5e6548; font-size: 1.1rem; }

[data-theme="arstotzka"] .hand-card.picked .face.front { box-shadow: 0 0 0 3px var(--verdigris), 0 0 0 6px #15160f, 6px 6px 0 6px rgb(0 0 0 / .35); }
[data-theme="arstotzka"] .hand.locked .hand-card { filter: grayscale(.8) brightness(.5); }

/* ---------- Akten ---------- */
[data-theme="arstotzka"] .scrolls { border-left: 4px solid #15160f; }
[data-theme="arstotzka"] .scrolls-head { border-bottom: 2px solid #15160f; }
[data-theme="arstotzka"] .scrolls-title h2 { color: var(--gold); background: none; font-weight: 700; font-size: 1.6rem; }
[data-theme="arstotzka"] .scrolls-meta { font-size: 1.2rem; }
[data-theme="arstotzka"] .ticket.current { border: 2px solid var(--gold); background: rgb(215 198 143 / .08); }
[data-theme="arstotzka"] .ticket.current::before { background: var(--gold); box-shadow: none; }
[data-theme="arstotzka"] .t-key { font-size: 1.05rem; font-weight: 400; }
[data-theme="arstotzka"] .t-title { font-size: 1.2rem; line-height: 1.1; }
[data-theme="arstotzka"] .t-num { font-family: var(--f-mono); font-size: 1.4rem; }
[data-theme="arstotzka"] .seal {
  color: var(--verdigris);
  background: rgb(127 174 79 / .08);
  border: 3px solid var(--verdigris);
  box-shadow: none;
  text-shadow: none;
  font-family: var(--f-display);
  transform: rotate(-8deg);
}
[data-theme="arstotzka"] .scrolls-empty p { font-size: 1.3rem; }

/* ---------- Überlagerungen ---------- */
[data-theme="arstotzka"] .dlg h2 { font-weight: 700; color: var(--gold-hi); text-shadow: 3px 3px 0 #15160f; font-size: 1.8rem; }
[data-theme="arstotzka"] .fine, [data-theme="arstotzka"] .preview { font-size: 1.15rem; }
[data-theme="arstotzka"] .preview code { font-size: 1.1rem; }
[data-theme="arstotzka"] .toast { font-size: 1.35rem; border: 2px solid var(--gold); box-shadow: 5px 5px 0 rgb(0 0 0 / .5); }
[data-theme="arstotzka"] .pop-item { font-size: 1.25rem; }
[data-theme="arstotzka"] .pop-note { font-size: 1.1rem; }
[data-theme="arstotzka"] .pop-head small { font-size: 1rem; }

@media (max-width: 760px), (max-height: 520px) and (orientation: landscape) {
  [data-theme="arstotzka"] .hand-wrap { background: #1a1b15; border-top: 4px solid #3c4131; }
  [data-theme="arstotzka"] .hero-bg { opacity: .55; }
}

[data-theme="arstotzka"] .center .btn-gold, [data-theme="arstotzka"] .center .btn-ghost { font-size: .68rem; padding-inline: .9em; letter-spacing: .04em; }
[data-theme="arstotzka"] .worlds { border: 2px solid #5e6548; box-shadow: 6px 6px 0 rgb(0 0 0 / .4); }
[data-theme="arstotzka"] .gallery figcaption span { font-size: 1.35rem; line-height: 1.1; }
