/* ZOFF! Testlabor – Tinte auf Papier, ein Signalrot für den Zoff */
:root {
  --paper: #f6f1e7;
  --paper-2: #ece5d6;
  --card: #fffdf8;
  --ink: #141210;
  --ink-2: #4a453e;
  --ink-3: #8a8378;
  --red: #e1402b;
  --red-ink: #b52b18;
  --yellow: #f2c230;
  --teal: #2f8f83;
  --ok: #2f7d4a;
  --warn: #b5651d;
  --line: 2px solid var(--ink);
  --shadow: 4px 4px 0 var(--ink);
  --sketch: 255px 12px 225px 12px / 12px 225px 12px 255px;
  --sketch-2: 12px 225px 12px 255px / 255px 12px 225px 12px;
  --head: "Arial Black", "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--paper); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper);
  background-image: radial-gradient(rgba(20,18,16,.05) 1px, transparent 1px);
  background-size: 18px 18px;
  color: var(--ink); font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 20px 56px; }
a { color: var(--ink); text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red-ink); }
h1, h2, h3 { font-family: var(--head); font-weight: 900; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 4.2vw, 44px); }
h2 { font-size: 22px; }
h3 { font-size: 16px; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .92em; }
code { background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }
.muted { color: var(--ink-3); }
.hint { color: var(--ink-2); font-size: 14px; }
.empty { color: var(--ink-2); font-style: italic; }
.spacer { flex: 1; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px; padding: 10px 20px;
  background: var(--paper); border-bottom: var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 42px; width: auto; display: block; }
.brand span { font-family: var(--head); font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); }
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.topbar nav a, .linkbtn {
  font: 600 15px var(--body); color: var(--ink); text-decoration: none;
  padding: 6px 10px; border-radius: 8px; background: none; border: 0; cursor: pointer;
}
.topbar nav a:hover, .linkbtn:hover { background: var(--paper-2); color: var(--ink); }
.topbar nav a.is-on { box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
form.inline { display: inline; margin: 0; }

/* ---------- Bausteine ---------- */
.card {
  background: var(--card); border: var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px;
}
.card.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.card.danger { border-color: var(--red-ink); box-shadow: 4px 4px 0 var(--red-ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: 800 15px var(--body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  color: #fff; background: var(--ink); border: var(--line);
  border-radius: var(--sketch); padding: 11px 22px;
  transition: transform .08s ease, box-shadow .08s ease, background .15s;
  box-shadow: 3px 3px 0 var(--red);
}
.btn:hover { color: #fff; background: var(--red); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); border-radius: var(--sketch-2); }
.btn.ghost:hover { background: var(--yellow); color: var(--ink); }
.btn.small { font-size: 13px; padding: 6px 12px; }
.btn.danger { background: var(--red-ink); box-shadow: 3px 3px 0 var(--ink); }

.badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #e3f0e6; color: var(--ok); }
.badge:is(a) { text-decoration: none; }
.badge:is(a):hover { background: #c9e6d2; color: var(--ok); }
.badge.muted { background: var(--paper-2); color: var(--ink-2); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--ink); }
.pill.st-aktiv { background: #d9efe0; }
.pill.st-bald { background: #fbefc4; }
.pill.st-pausiert { background: #eee; color: var(--ink-3); border-color: var(--ink-3); }
.pill.warn { background: #fde1d9; border-color: var(--red-ink); color: var(--red-ink); }

/* ---------- Formulare ---------- */
.stack { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 5px; font-weight: 700; font-size: 14px; }
input, select, textarea {
  font: 16px var(--body); color: var(--ink); background: #fff;
  border: 2px solid var(--ink); border-radius: 8px; padding: 9px 11px; width: 100%;
}
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible {
  outline: 3px solid var(--yellow); outline-offset: 2px;
}
input[type=file] { border-style: dashed; background: var(--paper); padding: 12px; }
label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
label.check input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--red); }
.error { background: #fde1d9; border-left: 4px solid var(--red); padding: 10px 14px; border-radius: 6px; font-weight: 600; }
.error.wide { max-width: 1180px; }
.flash { margin: 0 0 22px; padding: 12px 16px; border: var(--line); border-radius: 10px; font-weight: 700; background: #d9efe0; box-shadow: 3px 3px 0 var(--ink); }
.flash-warn { background: #fbefc4; }
.flash-info { background: #fff; border-style: dashed; font-family: var(--mono); }
.sub { margin: 18px 0 0; font-size: 14px; color: var(--ink-2); text-align: center; }

/* ---------- Startseite ---------- */
body.center main { display: flex; flex-direction: column; align-items: center; }
body.center .card.narrow { width: 100%; }
.hero { text-align: center; max-width: 640px; margin: 8px auto 30px; }
.logo-big { width: min(300px, 70vw); height: auto; display: block; margin: 0 auto 26px; }
.logo-mid { width: 150px; height: auto; display: block; margin: 0 auto 14px; }
.kicker { display: inline-block; font-family: var(--head); text-transform: uppercase; letter-spacing: .3em; font-size: 13px; background: var(--red); color: #fff; padding: 4px 10px 4px 13px; transform: rotate(-2deg); margin-bottom: 18px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 520px; margin: 0 auto; }
.card.narrow h1 { text-align: center; }

/* ---------- Lobby ---------- */
.intro { max-width: 720px; margin-bottom: 30px; }
.intro p { font-size: 17px; color: var(--ink-2); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.game { background: var(--card); border: var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .12s ease, box-shadow .12s ease; }
.game:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.game:nth-child(3n+1) { transform: rotate(-.6deg); }
.game:nth-child(3n+2) { transform: rotate(.5deg); }
.game:nth-child(3n+1):hover, .game:nth-child(3n+2):hover { transform: rotate(0) translate(-2px, -2px); }
.cover { position: relative; display: block; aspect-ratio: 16 / 10; border-bottom: var(--line); overflow: hidden; text-decoration: none; background: var(--red); }
.tone-1 .cover { background: var(--yellow); }
.tone-2 .cover { background: var(--teal); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slides { position: absolute; inset: 0; background: var(--ink); }
.slides img { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.slides img.is-on { opacity: 1; }
.dots { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 6px; z-index: 2; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink); opacity: .65; transition: opacity .3s, transform .3s; }
.dots i.is-on { opacity: 1; background: var(--red); transform: scale(1.2); }
.cover-title {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 18px 20px;
  font-family: var(--head); font-size: clamp(26px, 3vw, 34px); line-height: 1; color: var(--ink);
  text-transform: uppercase; letter-spacing: -.02em;
}
.tone-0 .cover-title, .tone-2 .cover-title { color: var(--paper); }
.cover::after { /* Pinselstrich-Andeutung */
  content: ""; position: absolute; right: -30px; top: 22px; width: 190px; height: 16px;
  background: currentColor; color: rgba(20,18,16,.85); transform: rotate(-14deg);
  border-radius: 40% 60% 50% 70%; opacity: .9;
}
.cover:has(img)::after { display: none; }
.stamp { z-index: 2; }
.stamp {
  position: absolute; top: 16px; left: 16px; font-family: var(--head); text-transform: uppercase; font-size: 14px; letter-spacing: .12em;
  color: var(--ink); background: var(--paper); border: var(--line); padding: 4px 10px; transform: rotate(-4deg);
}
.st-bald .cover, .st-pausiert .cover { filter: saturate(.55); }
.game-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.game-body h2 { font-size: 21px; margin-bottom: 6px; }
.tagline { color: var(--ink-2); margin-bottom: 12px; }
.meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; }
.meta li { font-size: 13px; font-weight: 700; border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 10px; }
.actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Spielen: Spiel und Feedback nebeneinander, volle Fensterhöhe ---------- */
body.play { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
body.play main { max-width: none; padding: 0; flex: 1; min-height: 0; display: flex; flex-direction: column; }
body.play .foot { display: none; }
body.play .flash { margin: 10px 14px; }
.play-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 390px; transition: grid-template-columns .25s ease; }
.play-layout.side-closed { grid-template-columns: minmax(0, 1fr) 0; }
.play-layout.side-closed .side { visibility: hidden; }
.stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--ink); }
.stage-bar { display: flex; align-items: center; gap: 6px 10px; padding: 6px 10px; background: var(--ink); color: var(--paper); flex-wrap: wrap; flex: none; }
.stage-bar a, .stage-bar .linkbtn { color: var(--paper); font-size: 14px; }
.stage-bar .linkbtn:hover { background: #2c2925; color: #fff; }
.stage-bar .linkbtn[aria-pressed="false"] { color: var(--ink-3); }
.stage-bar .back { text-decoration: none; font-weight: 600; }
.stage-bar strong { font-family: var(--head); font-size: 15px; }
.fb-toggle { background: var(--red) !important; color: #fff !important; }
.play-layout:not(.side-closed) .fb-toggle { background: transparent !important; box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.ver { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.frame-wrap { position: relative; flex: 1; min-height: 0; background: #fff; }
.frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.stage:fullscreen .frame-wrap { flex: 1; }

.side { min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--card); border-left: var(--line); }
.side-tabs { position: sticky; top: 0; z-index: 2; display: flex; align-items: stretch; background: var(--paper); border-bottom: var(--line); }
.side-tabs [role=tab] { flex: 1; font: 800 14px var(--body); color: var(--ink-2); background: none; border: 0; padding: 12px 8px; cursor: pointer; }
.side-tabs [role=tab].is-on { color: var(--ink); background: var(--card); box-shadow: inset 0 -3px 0 var(--red); }
.side-close { flex: none; width: 44px; font: 400 24px/1 var(--body); background: none; border: 0; border-left: 1px solid var(--paper-2); cursor: pointer; color: var(--ink-2); }
.side-close:hover { color: var(--red-ink); }
.pane { padding: 18px 20px 28px; }
.pane .focus { margin: 0 0 18px; }
.fb-done { background: #d9efe0; border: var(--line); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.fb .scale { gap: 6px; }
.fb .scale label span { padding: 7px 2px; }
.fb textarea { min-height: 60px; }
.prose { color: var(--ink-2); }
.focus { margin-top: 18px; padding: 14px 16px; background: #fbefc4; border: 2px dashed var(--ink); border-radius: 10px; }
.focus h3 { margin-bottom: 6px; font-size: 15px; }

fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; padding: 0; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale legend { grid-column: 1 / -1; }
.scale small { grid-column: 1 / -1; display: flex; justify-content: space-between; color: var(--ink-3); font-size: 12px; margin-top: -2px; }
.scale label, .pills label { display: block; position: relative; cursor: pointer; }
.scale input, .pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.scale label span, .pills label span {
  display: block; text-align: center; font-weight: 800; padding: 9px 4px; background: #fff;
  border: 2px solid var(--ink); border-radius: var(--sketch-2); transition: background .12s, transform .08s;
}
.scale label:nth-child(odd) span { border-radius: var(--sketch); }
.scale label span:hover, .pills label span:hover { background: var(--paper-2); }
.scale input:checked + span, .pills input:checked + span { background: var(--red); color: #fff; transform: rotate(-2deg) scale(1.04); box-shadow: 2px 2px 0 var(--ink); }
.scale input:focus-visible + span, .pills input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills legend { width: 100%; }
.pills label span { padding: 7px 14px; font-weight: 700; }

/* ---------- Konto ---------- */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; align-items: start; }

/* ---------- Admin ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 26px; border-bottom: var(--line); }
.tabs a { text-decoration: none; font-weight: 800; padding: 9px 16px; border: var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--paper-2); margin-bottom: -2px; }
.tabs a.is-on { background: var(--card); position: relative; }
.tabs a.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--card); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stats div { background: var(--card); border: var(--line); border-radius: 12px; padding: 14px 16px; }
.stats div:first-child { background: var(--yellow); }
.stats b { display: block; font-family: var(--head); font-size: 28px; line-height: 1.1; }
.stats span { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.table-wrap { overflow-x: auto; margin: 0 -4px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); padding: 8px 10px; border-bottom: var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--paper-2); vertical-align: middle; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.is-dim td { color: var(--ink-3); }
tr.is-sel td { background: #fbefc4; }
td .btn + .btn, td form + form, td .btn + form { margin-left: 4px; }
.inline-form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.inline-form input { max-width: 320px; }
.inline-form p { width: 100%; margin: 0; }
.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.grid-form.four { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.grid-form .span2 { grid-column: 1 / -1; }
.grid-form .end { display: flex; align-items: flex-end; }
.upload { background: var(--paper); border: 2px dashed var(--ink); border-radius: 12px; padding: 16px; }
.upload h3 { margin-bottom: 4px; }
.cover-preview { max-width: 240px; border: var(--line); border-radius: 8px; }
.danger-zone { margin-top: 24px; border-top: 1px dashed var(--ink-3); padding-top: 14px; }
.danger-zone summary { cursor: pointer; color: var(--red-ink); font-weight: 700; }
.filters { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; }
.filters label { min-width: 200px; }
.fb-mini { border-bottom: 1px solid var(--paper-2); padding: 12px 0; }
.fb-mini p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.fb-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.score { margin-left: auto; font-size: 13px; font-weight: 700; }
.sym { display: inline-block; width: 18px; font-weight: 900; color: var(--red-ink); }
.fb-list .card { padding: 18px 20px; margin-bottom: 16px; box-shadow: 3px 3px 0 var(--ink); }
.fb-scores { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.fb-scores span { font-size: 13px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 10px; }
.fb-text { margin-top: 10px; }
.fb-text h4 { margin: 0 0 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.fb-text p { margin: 0; }

.uses-field { display: flex; flex-direction: column; gap: 6px; }
.uses-field input:disabled { opacity: .4; }
label.check.small { font-size: 13px; }
label.check.small input { width: 16px; height: 16px; }
.img-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 10px; }
.img-slot { position: relative; display: flex; flex-direction: column; gap: 8px; background: var(--paper); border: 2px dashed var(--ink); border-radius: 10px; padding: 10px; }
.img-slot img, .img-empty { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; border: 1.5px solid var(--ink); }
.img-empty { display: grid; place-items: center; color: var(--ink-3); font-size: 13px; background: var(--card); border-style: dashed; }
.img-num { position: absolute; top: 4px; left: 4px; z-index: 1; font: 900 13px var(--head); background: var(--ink); color: var(--paper); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.img-slot input[type=file] { padding: 6px; font-size: 12px; }
.analytics { border: var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 24px; background: var(--ink); }
.analytics iframe { display: block; width: 100%; height: 80vh; min-height: 520px; border: 0; background: #fff; }

table.matrix th.mcol { text-align: center; vertical-align: bottom; white-space: normal; min-width: 120px; text-transform: none; letter-spacing: 0; }
.mtitle { display: block; font: 800 13px var(--body); color: var(--ink); margin-bottom: 4px; }
.mall { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.mall .linkbtn { font-size: 12px; padding: 2px 4px; }
td.mcell { text-align: center; }
.small { font-size: 12px; }
.tick { display: inline-block; position: relative; cursor: pointer; }
.tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick span { display: inline-block; width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 8px; background: #fff; transition: background .12s, transform .08s; }
.tick input:checked + span { background: var(--red); box-shadow: 2px 2px 0 var(--ink); transform: rotate(-3deg); }
.tick input:checked + span::after { content: "✓"; display: block; color: #fff; font: 900 18px/26px var(--body); text-align: center; }
.tick input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }

.plat-tag { position: absolute; top: 12px; right: 12px; z-index: 3; display: flex; gap: 2px; padding: 3px; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 2px 2px 0 var(--ink); }
.plat-tag > span { display: flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 7px; font-size: 13px; line-height: 1.2; color: var(--ink); }
.plat-tag > span + span { border-left: 1.5px solid var(--paper-2); border-radius: 0 7px 7px 0; }
.ico { flex: none; vertical-align: -2px; }
.plat-pick .ico { margin: 0 2px; }
.plat-tag b { font: 800 11px var(--body); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 560px) { .ico { flex: none; vertical-align: -2px; }
.plat-pick .ico { margin: 0 2px; }
.plat-tag b { display: none; } }
.plat-warn { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--warn); }
.plat-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 14px; border-bottom: 2px solid var(--ink); }
.plat-banner .linkbtn { color: var(--ink) !important; margin-left: auto; }
.plat-pick { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.plat-pick legend { width: 100%; }
.plat-pick .hint { width: 100%; font-weight: 400; }

/* ---------- Rechtliches ---------- */
.prose-page h2 { font-size: 17px; margin-top: 1.4em; }
.prose-page p { color: var(--ink-2); }
.todo { background: #fbefc4; border: 2px dashed var(--ink); padding: 8px 12px; border-radius: 8px; font-weight: 700; color: var(--ink) !important; }

/* ---------- Fuß ---------- */
.foot { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; padding: 22px 20px 30px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--paper-2); }
.foot a { color: var(--ink-2); }

/* ---------- Schmal ---------- */
@media (max-width: 900px) {
  .grid-form { grid-template-columns: 1fr; }
  .play-layout, .play-layout.side-closed { grid-template-columns: minmax(0, 1fr); position: relative; }
  .side { position: absolute; inset: 0 0 0 auto; width: min(420px, 100%); z-index: 5; box-shadow: -6px 0 0 rgba(20,18,16,.25); transform: translateX(0); transition: transform .25s ease; }
  .play-layout.side-closed .side { transform: translateX(105%); }
}
@media (max-width: 560px) {
  main { padding: 20px 16px 40px; }
  .topbar { padding: 8px 12px; gap: 8px; }
  .brand img { height: 30px; }
  .topbar nav a, .linkbtn { padding: 6px 7px; font-size: 14px; }
  .card { padding: 18px; }
  .grid { grid-template-columns: 1fr; }
  .game:nth-child(n) { transform: none; }
  .stage-bar .ver, #fs { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
