/* Login- und Konto-Seite im Comic-Stil des Spiels */
:root { --ink: #141414; --paper: #ffffff; --bg1: #4dabf7; --bg2: #845ef7; --yellow: #ffe14d; --red: #ff3b3b; --green: #2f9e44; --muted: #5c5f66; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); font-size: 15px; line-height: 1.45;
  background: radial-gradient(circle at 50% 20%, var(--bg1), var(--bg2) 75%); background-attachment: fixed;
  padding: 28px max(16px, env(safe-area-inset-right)) 40px max(16px, env(safe-area-inset-left));
}
.wrap { max-width: 520px; margin: 0 auto; display: grid; gap: 20px; }
.logo { display: block; width: min(360px, 90%); margin: 0 auto; }
.panel { background: var(--paper); border: 5px solid var(--ink); box-shadow: 9px 9px 0 var(--ink); padding: 18px 20px 20px; }
h1, h2, .btn, .tabs button { font-family: 'Bangers', Impact, 'Arial Black', sans-serif; font-weight: 400; letter-spacing: 0.04em; }
h1 { font-size: 34px; margin: 0 0 6px; }
h2 { font-size: 26px; margin: 0 0 8px; }
p { margin: 6px 0; }
.muted { color: var(--muted); font-size: 13.5px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tabs button { font-size: 19px; border: 3px solid var(--ink); background: #e9ecef; padding: 3px 12px; cursor: pointer; }
.tabs button.on { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
form { display: grid; gap: 10px; }
label { display: grid; gap: 3px; font-weight: 600; font-size: 13.5px; letter-spacing: 0.02em; }
input { font: inherit; font-size: 16px; padding: 8px 10px; border: 3px solid var(--ink); background: #fff; color: var(--ink); width: 100%; }
input:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
label.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
label.check input { width: auto; }
.btn { font-size: 21px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); padding: 5px 16px; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.btn.main { background: var(--yellow); }
.btn.danger { background: var(--red); color: #fff; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:disabled { opacity: 0.55; cursor: default; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.msg { min-height: 1.2em; font-size: 14px; font-weight: 600; }
.msg.err { color: #c92a2a; }
.msg.ok { color: var(--green); }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; font-family: ui-monospace, Consolas, monospace; font-size: 17px; background: #f1f3f5; border: 3px dashed var(--ink); padding: 10px 12px; }
.qr { width: 220px; max-width: 100%; background: #fff; border: 3px solid var(--ink); padding: 6px; }
.qr svg { display: block; width: 100%; height: auto; }
.secret { font-family: ui-monospace, Consolas, monospace; word-break: break-all; background: #f1f3f5; padding: 4px 8px; border: 2px solid var(--ink); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; border: 2px solid var(--ink); padding: 0 6px; background: var(--yellow); }
.badge.off { background: #e9ecef; }
.warn { border: 3px solid var(--red); background: #fff5f5; padding: 8px 10px; font-weight: 600; }
hr { border: 0; border-top: 3px solid var(--ink); margin: 6px 0; }
a { color: inherit; }
[hidden] { display: none !important; }
@media (max-width: 420px) { .codes { grid-template-columns: 1fr; } h1 { font-size: 28px; } }

/* ---- Konto-Seite: kompakte Kopfzeile + Reiter (Handy: oben, breit: Seitenleiste) ---- */
.wrap.acct { max-width: 980px; gap: 16px; }
.acct-head { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 18px; align-items: center; padding: 12px 16px; }
.logo.small { width: 150px; margin: 0; }
.acct-title h1 { font-size: 30px; margin: 0; line-height: 1; }
.acct-title p { margin: 4px 0 0; }
.acct-head .warn { grid-column: 1 / -1; margin: 4px 0 0; }
.acct-body { display: grid; grid-template-columns: 230px 1fr; gap: 16px; align-items: start; }
.acct-tabs { flex-direction: column; margin: 0; position: sticky; top: 12px; }
.acct-tabs button { text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 6px; background: var(--paper); box-shadow: 3px 3px 0 var(--ink); }
.acct-tabs button.on { background: var(--yellow); }
.acct-pane { min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.tfa-setup { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; margin-top: 12px; }
.tfa-steps { min-width: 0; display: grid; gap: 6px; }
@media (max-width: 760px) {
  .acct-head { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .acct-body { grid-template-columns: 1fr; }
  .acct-tabs { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; position: static; padding-bottom: 4px; }
  .acct-tabs button { flex: 0 0 auto; font-size: 17px; }
  .tfa-setup { grid-template-columns: 1fr; justify-items: center; }
  .tfa-steps { justify-items: stretch; width: 100%; }
}

/* Einladungscodes */
.inv-list { display: grid; gap: 6px; margin: 8px 0; }
.inv-row { display: grid; grid-template-columns: auto auto 1fr auto; gap: 6px 12px; align-items: center; border: 3px solid var(--ink); padding: 6px 10px; background: #fff; }
.inv-row.used { background: #f1f3f5; }
.inv-row.used code { text-decoration: line-through; color: var(--muted); }
.inv-row code { font-family: ui-monospace, Consolas, monospace; font-size: 16px; font-weight: 700; }
.inv-acts { display: flex; gap: 6px; }
.btn.small { font-size: 16px; padding: 2px 10px; }
textarea { font: 15px ui-monospace, Consolas, monospace; padding: 8px 10px; border: 3px solid var(--ink); width: 100%; }
details summary { cursor: pointer; margin: 8px 0; }
@media (max-width: 560px) { .inv-row { grid-template-columns: 1fr auto; } .inv-row .muted, .inv-acts { grid-column: 1 / -1; } }
