/* Anmeldeseite und Rahmen um das Spiel. Farben wie im Spiel; Schrift vom Gerät (keine fremden Server). */
:root {
  color-scheme: dark;
  --ink: #14162b;
  --box: #1f2347;
  --box-2: #2b3163;
  --line: #f1e9c9;
  --text: #f1e9c9;
  --dim: #a3a9d0;
  --gold: #f4c542;
  --red: #e2584d;
  --green: #6fcf6b;
  --schrift: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Courier New', monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--ink); color: var(--text); font-family: var(--schrift); font-size: 16px; line-height: 1.35; -webkit-text-size-adjust: 100%; }
h1, h2 { margin: 0; font-size: 18px; letter-spacing: 0.04em; color: var(--gold); }
p { margin: 0 0 10px; }
a { color: var(--gold); }
button, input, textarea { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; background: var(--box-2); border: 2px solid var(--line); padding: 9px 12px; min-height: 40px; }
button:hover { background: #363d7a; }
button.haupt { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 700; }
button.haupt:hover { background: #ffd866; }
button:disabled { opacity: 0.55; cursor: default; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
input, textarea { width: 100%; background: var(--ink); border: 2px solid var(--line); padding: 9px 10px; font-size: 16px; }
label { display: block; margin: 12px 0 4px; color: var(--dim); font-size: 14px; }
.box { background: var(--box); border: 3px solid var(--line); box-shadow: inset 0 0 0 2px var(--ink); }
.klein { color: var(--dim); font-size: 13px; }
.fehler { color: var(--red); font-size: 14px; min-height: 0; margin-top: 4px; }
.meldung { margin-top: 12px; font-size: 14px; }
.meldung.schlecht { color: var(--red); }
.meldung.gut { color: var(--green); }

/* ---------- Anmeldung ---------- */
.eingang { min-height: 100%; display: flex; align-items: flex-start; justify-content: center; padding: 20px 12px 32px; }
.eingang .box { width: 100%; max-width: 420px; padding: 18px 16px 16px; }
.eingang .marke { font-size: 20px; color: var(--gold); letter-spacing: 0.06em; font-weight: 700; }
.eingang .unter { color: var(--dim); margin: 4px 0 14px; font-size: 14px; }
.reiter { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 4px; }
.reiter button[aria-selected='true'] { background: var(--gold); color: var(--ink); border-color: var(--gold); font-weight: 700; }
.eingang form button.haupt { width: 100%; margin-top: 16px; }
.eingang .fuss { margin-top: 16px; border-top: 2px solid var(--box-2); padding-top: 12px; }

/* ---------- Rahmen um das Spiel ---------- */
body.rahmen { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
.leiste { flex: none; display: flex; align-items: center; gap: 8px; padding: 5px 8px; background: var(--box); border-bottom: 3px solid var(--line); }
.leiste .punkt { flex: none; width: 10px; height: 10px; background: var(--dim); }
.leiste .punkt.gut { background: var(--green); }
.leiste .punkt.schlecht { background: var(--red); }
.leiste .wer { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.leiste .wer b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.leiste .wer small { color: var(--dim); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leiste button { flex: none; padding: 4px 9px; min-height: 34px; font-size: 13px; }
#spiel { flex: 1; min-height: 0; width: 100%; border: 0; display: block; background: var(--ink); }

.deck { position: fixed; inset: 0; z-index: 50; background: rgba(8, 9, 20, 0.88); display: flex; align-items: center; justify-content: center; padding: 12px; }
.deck .box { width: 100%; max-width: 460px; max-height: 100%; display: flex; flex-direction: column; padding: 16px; }
.deck .kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.deck .kopf button { padding: 4px 9px; min-height: 34px; font-size: 13px; }
.deck .knoepfe { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }

#intro .box { text-align: left; }
#intro .schritt { color: var(--dim); font-size: 12px; letter-spacing: 0.08em; margin-bottom: 6px; }
#intro h2 { font-size: 19px; margin-bottom: 10px; }
#intro p { font-size: 16px; white-space: pre-line; overflow-y: auto; min-height: 0; }

#feedback .box { height: min(560px, 100%); }
#feedbackListe { flex: 1; min-height: 60px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 2px 2px 8px; }
#feedbackListe .blase { align-self: flex-end; max-width: 92%; background: var(--box-2); border: 2px solid var(--line); padding: 7px 9px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
#feedbackListe .blase time { display: block; color: var(--dim); font-size: 11px; margin-top: 4px; text-align: right; }
#feedbackListe .leer { color: var(--dim); font-size: 14px; }
#feedbackText { min-height: 84px; resize: vertical; }
#feedback .zaehler { color: var(--dim); font-size: 12px; margin-right: auto; align-self: center; }
