:root {
  /* NSV-Farben (wie nachbarschaftsverein: Gelb auf Creme, Schrift Inter) */
  --bg: #f7f5ef; --card: #ffffff; --ink: #1a1a1a; --muted: #6b7280; --line: rgba(15,17,22,.10);
  --accent: #ffc800; --accent-ink: #1a1a1a; --accent-soft: #fff4c2; --accent-deep: #b58a00;
  --good: #20a35a; --bad: #d64545;
  --radius: 18px; --shadow: 0 12px 36px rgba(15,17,22,.08);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: -0.011em;
}
h1, h2 { font-weight: 800; letter-spacing: -0.025em; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { min-height: 100vh; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1rem; color: var(--muted); font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
[hidden] { display: none !important; }

button {
  font: inherit; font-weight: 700; border: 0; border-radius: 12px; padding: .65em 1.1em; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); transition: transform .08s, filter .15s, opacity .15s;
}
button:hover:not(:disabled) { filter: brightness(1.05); }
button:active:not(:disabled) { transform: scale(.97); }
button:disabled { opacity: .5; cursor: default; }
button.ghost { background: var(--accent-soft); color: #6b5100; }
button.big { font-size: 1.1rem; padding: .8em 1.4em; }
button.small { font-size: .85rem; padding: .45em .8em; }
button.icon { padding: .55em .7em; }
button.linklike { background: none; color: var(--accent-deep); padding: .4em 0; text-decoration: underline; }
input {
  font: inherit; width: 100%; padding: .75em .9em; border: 2px solid var(--line); border-radius: 12px; background: #fff;
}
input:focus { outline: none; border-color: var(--accent); }
label { display: block; font-weight: 700; margin: 1em 0 .4em; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
.center { min-height: 100vh; display: grid; place-items: center; padding: 1rem; }
.join { width: min(420px, 100%); }
.join .logo { font-size: 3rem; }
.join button[type=submit] { width: 100%; margin-top: 1.2em; }
.swatches { display: flex; gap: .5em; flex-wrap: wrap; }
.sw { width: 36px; height: 36px; border-radius: 50%; padding: 0; border: 3px solid transparent; }
.sw.on { border-color: var(--ink); }

/* Layout */
.layout { max-width: 1280px; margin: 0 auto; padding: .75rem; display: flex; flex-direction: column; gap: .75rem; }
.top { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.15rem; }
.roomchip { background: var(--accent-soft); color: #6b5100; border-radius: 999px; padding: .25em .8em; font-size: .85rem; font-weight: 700; }
.players { display: flex; gap: .3em; flex: 1; flex-wrap: wrap; }
.actions { display: flex; gap: .4em; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 800; font-size: .9rem; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.avatar.me { outline: 2px solid var(--ink); }
.avatar.sm { width: 26px; height: 26px; font-size: .75rem; margin-right: .5em; vertical-align: middle; }
.banner { background: #fff1c2; border-radius: 12px; padding: .6em .9em; font-size: .9rem; }
.body { display: grid; grid-template-columns: 1fr 340px; gap: .75rem; align-items: start; }
@media (max-width: 860px) { .body { grid-template-columns: 1fr; } .brand span { display: none; } }

.video { background: #111; border-radius: var(--radius); overflow: hidden; padding: .5rem; display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; }
.video-inner { width: 100%; height: min(55vh, 480px); border-radius: 12px; overflow: hidden; }

/* Chat */
.chat { display: flex; flex-direction: column; height: min(60vh, 520px); }
@media (max-width: 860px) { .chat { height: 380px; position: static; } }
.chat-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .35em; padding-right: .3em; }
.msg { background: #faf4ec; border-radius: 12px; padding: .45em .7em; font-size: .93rem; word-wrap: break-word; }
.msg.mine { background: var(--accent-soft); }
.msg time { float: right; color: var(--muted); font-size: .72rem; margin-left: .5em; }
.chat-form { display: flex; gap: .4em; margin-top: .6em; }

/* Spielauswahl & Lobby */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.gcard { background: #fffaf4; color: var(--ink); border: 2px solid var(--line); text-align: left; display: flex; flex-direction: column; gap: .25em; padding: 1rem; border-radius: 16px; }
.gcard:hover { border-color: var(--accent); }
.gemoji { font-size: 2rem; }
.gcard small { color: var(--accent); font-weight: 800; }
.gdesc { font-weight: 400; color: var(--muted); font-size: .88rem; }
.seats { list-style: none; padding: 0; margin: 0 0 1em; display: flex; flex-direction: column; gap: .4em; }
.row { display: flex; gap: .5em; flex-wrap: wrap; align-items: center; margin-top: .75em; }
.again { justify-content: center; margin-top: 1.2em; }
.ghead { display: flex; align-items: center; gap: .6em; margin-bottom: .6em; }
.ghead h2 { flex: 1; margin: 0; }
.tag { background: #f3ebe1; border-radius: 999px; padding: .2em .7em; font-size: .85rem; display: inline-flex; align-items: center; gap: .35em; }
.tag.now { background: var(--ink); color: #fff; }

.game { display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.status { display: flex; align-items: center; gap: .5em; font-weight: 800; font-size: 1.08rem; text-align: center; }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex: none; }
.hint { color: var(--muted); font-size: .9rem; }

/* Tic-Tac-Toe */
.ttt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(340px, 90vw); }
.ttt .cell { aspect-ratio: 1; font-size: 3rem; background: #fbf3ea; border-radius: 14px; font-weight: 900; padding: 0; }
.ttt .cell:disabled { opacity: 1; }
.ttt .cell.win { background: #d9f6e4; }

/* Vier gewinnt */
.c4 { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; background: #2e5cb8; padding: 10px; border-radius: 16px; width: min(480px, 94vw); }
.c4 .hole { aspect-ratio: 1; border-radius: 50%; background: #fff7ee; padding: 0; display: grid; place-items: center; }
.c4 .hole:disabled { opacity: 1; }
.c4.active .hole:not(:disabled):hover { background: #ffe2cc; }
.c4 .chip { width: 100%; height: 100%; border-radius: 50%; box-shadow: inset 0 -4px 0 rgba(0,0,0,.18); }
.c4 .hole.last .chip { animation: drop .3s ease-out; }
.c4 .hole.win { box-shadow: 0 0 0 4px #fff; }
@keyframes drop { from { transform: translateY(-120%); } }

/* Mensch ärgere dich nicht */
.legend { display: flex; gap: .4em; flex-wrap: wrap; justify-content: center; }
.ludo { display: grid; grid-template-columns: repeat(11, 1fr); grid-template-rows: repeat(11, 1fr); gap: 3px; width: min(520px, 94vw); aspect-ratio: 1; background: #fff3d6; padding: 8px; border-radius: 16px; border: 3px solid #e7cf9e; }
.lf { border-radius: 50%; display: grid; place-items: center; }
.lf.track { background: #fff; border: 2px solid #d9c49a; }
.lf.track[style*="--c: #"] { background: color-mix(in srgb, var(--c) 35%, #fff); border-color: var(--c); }
.lf.home { background: color-mix(in srgb, var(--c) 30%, #fff); border: 2px solid var(--c); }
.lf.base { background: color-mix(in srgb, var(--c) 18%, #fff); border: 2px dashed var(--c); }
.ludo-center { display: grid; place-items: center; font-size: clamp(1.6rem, 6vw, 2.8rem); }
.pawn { width: 78%; height: 78%; border-radius: 50%; padding: 0; border: 2px solid rgba(0,0,0,.35); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.pawn:disabled { opacity: 1; }
.pawn.can { animation: pulse .9s infinite; outline: 3px solid #fff; box-shadow: 0 0 0 5px var(--ink); }
@keyframes pulse { 50% { transform: scale(1.15); } }
.ludo-bar { display: flex; align-items: center; gap: .8em; flex-wrap: wrap; justify-content: center; }
.ev { color: var(--muted); font-size: .95rem; }

/* Quiz */
.quiz { align-items: stretch; }
.qnum { color: var(--muted); font-weight: 700; }
.qtext { font-size: 1.4rem; }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; }
@media (max-width: 520px) { .opts { grid-template-columns: 1fr; } }
.opt { background: #fbf3ea; color: var(--ink); text-align: left; display: flex; gap: .6em; align-items: center; flex-wrap: wrap; padding: .9em 1em; border: 3px solid transparent; }
.opt:disabled { opacity: 1; }
.opt .L { background: var(--ink); color: #fff; border-radius: 8px; width: 1.7em; height: 1.7em; display: inline-grid; place-items: center; flex: none; }
.opt.picked { border-color: var(--accent); }
.opt.right { background: #d9f6e4; border-color: var(--good); }
.opt.wrong { opacity: .55; }
.opt .who { width: 100%; color: var(--muted); font-weight: 600; }
.scores { display: flex; flex-direction: column; gap: .3em; margin-top: .5em; }
.score { display: flex; align-items: center; gap: .5em; background: #faf4ec; border-radius: 10px; padding: .4em .7em; }
.score .sname { flex: 1; }

.toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .7em 1.1em; border-radius: 12px; z-index: 10; max-width: 90vw; text-align: center; }

/* Tabs, Online-Liste, Feed */
.main { display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.side { display: flex; flex-direction: column; gap: .75rem; }
.tabs { display: flex; gap: .4em; }
.tab { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.tab.on { background: var(--ink); color: #fff; }
.online { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .45em; }
.online li { display: flex; align-items: center; gap: .3em; }
.online .oname { flex: 1; font-weight: 700; }
.live { width: 10px; height: 10px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px #d9f6e4; }
.composer input { margin-top: .6em; }
.fpreview img { max-width: 100%; max-height: 260px; border-radius: 12px; margin-top: .6em; display: block; }
.posts { display: flex; flex-direction: column; gap: .75rem; }
.post header { display: flex; align-items: center; gap: .4em; margin-bottom: .6em; }
.post header b { flex: 1; }
.post img { width: 100%; border-radius: 12px; display: block; }
.post p { margin: .6em 0 0; }
.like { background: #fbf3ea; color: var(--ink); }
.like.on { background: #ffe1e6; }
.chat { position: static; }

/* Community Games */
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 700; color: var(--accent-deep); margin-bottom: .4em; }
.stack { display: flex; flex-direction: column; gap: .75rem; }
.banner.mod { background: #e7f6ec; }
.center-text { text-align: center; }
.tables { display: flex; flex-direction: column; gap: .5rem; }
.tablecard { display: flex; align-items: center; gap: .8rem; background: #fffdf6; border: 1px solid var(--line); border-radius: 14px; padding: .7rem .9rem; }
.tablecard .gemoji { font-size: 1.8rem; }
.tinfo { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tinfo .open { color: var(--good); font-weight: 700; }
.gcard small { color: var(--accent-deep); }
.solo-head { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.solo-head p { margin: 0; max-width: 520px; }
.hs { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .3em; }
.hs li { display: flex; align-items: center; gap: .6em; background: #faf8f2; border-radius: 10px; padding: .45em .8em; }
.hs li .sname { flex: 1; font-weight: 600; }
.hs li.me, .rank tr.me td { background: var(--accent-soft); }
.memory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: min(420px, 92vw); }
.mcard { aspect-ratio: 1; padding: 0; border-radius: 14px; background: linear-gradient(135deg, #ffd84d, #ffc800); font-size: 2rem; perspective: 600px; }
.mcard span { opacity: 0; transition: opacity .15s; }
.mcard.up { background: #fff; box-shadow: inset 0 0 0 2px var(--accent); }
.mcard.up span { opacity: 1; }
.mcard.ok { background: #e7f6ec; box-shadow: inset 0 0 0 2px var(--good); }
.seg { display: inline-flex; background: #f1eee6; border-radius: 12px; padding: 3px; }
.seg button { background: transparent; color: var(--ink); font-size: .85rem; padding: .45em .8em; }
.seg button.on { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.myrank { background: var(--accent-soft); border-radius: 12px; padding: .6em .9em; font-weight: 700; }
.rank { width: 100%; border-collapse: collapse; font-size: .95rem; }
.rank th { text-align: left; color: var(--muted); font-weight: 600; font-size: .8rem; padding: .4em .5em; border-bottom: 1px solid var(--line); }
.rank td { padding: .55em .5em; border-bottom: 1px solid var(--line); }
.rank td:first-child { width: 2.5em; }
.rules ul { margin: 0 0 .5em; padding-left: 1.2em; line-height: 1.7; }
.msg { position: relative; }
.msg .x { position: absolute; right: 4px; bottom: 2px; background: none; color: var(--bad); padding: 0 .3em; font-size: .8rem; }
.ghead { flex-wrap: wrap; }

/* Eingebettet in die NSV-Seite: keine Fensterhöhe erzwingen */
html.framed body, html.framed .center { min-height: 0; }
html.framed .center { padding: 2rem 1rem; }
html.framed body { background: transparent; }

/* Montagsmaler */
.mm { align-items: stretch; }
.mm-clock { margin-left: .4em; color: var(--ink); }
.mm-wrap { width: 100%; max-width: 640px; margin: 0 auto; border-radius: 14px; overflow: hidden; border: 2px solid var(--line); background: #fff; }
.mm-wrap.can { border-color: var(--accent); cursor: crosshair; }
.mm-canvas { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; touch-action: none; background: #fff; }
.mm-tools { display: flex; flex-wrap: wrap; gap: .35em; align-items: center; justify-content: center; }
.mm-col { width: 32px; height: 32px; border-radius: 50%; padding: 0; border: 2px solid rgba(0,0,0,.15); font-size: .9rem; }
.mm-col.on { outline: 3px solid var(--ink); outline-offset: 1px; }
.mm-size { width: 36px; height: 36px; padding: 0; background: #f1eee6; display: grid; place-items: center; }
.mm-size span { background: var(--ink); border-radius: 50%; display: block; }
.mm-size.on { background: var(--accent); }
.mm-log { display: flex; flex-direction: column; gap: .2em; font-size: .92rem; max-height: 180px; overflow-y: auto; }
.mm-log:empty { display: none; }

/* Stadt-Land-Fluss */
.slf { align-items: stretch; }
.slf-head { display: flex; align-items: center; gap: 1rem; }
.slf-letter { width: 64px; height: 64px; border-radius: 16px; background: var(--accent); display: grid; place-items: center; font-size: 2.2rem; font-weight: 800; flex: none; }
.slf-form { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; }
@media (max-width: 520px) { .slf-form { grid-template-columns: 1fr; } }
.slf-field { margin: 0; font-weight: 600; display: flex; flex-direction: column; gap: .25em; }
.slf-field span { font-size: .85rem; color: var(--muted); }
.slf-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6em; }
.slf-cat { background: #faf8f2; border-radius: 14px; padding: .7em; }
.slf-cat h3 { margin: 0 0 .4em; color: var(--ink); }
.slf-chips { display: flex; flex-direction: column; gap: .35em; }
.slf-chip { background: #fff; color: var(--ink); display: flex; align-items: center; gap: .5em; text-align: left; padding: .45em .7em; border: 2px solid transparent; font-weight: 600; }
.slf-chip:disabled { opacity: 1; }
.slf-chip span { flex: 1; }
.slf-chip.bad { text-decoration: line-through; color: var(--muted); background: #f6f3ee; }
.slf-chip.voted { border-color: var(--bad); }
.slf-chip b { color: var(--good); }

/* Hervorhebung: wartende Spieltische */
.tab { position: relative; }
.badge { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; padding: 0 .35em; margin-left: .4em; border-radius: 999px; background: var(--bad); color: #fff; font-size: .75rem; font-weight: 800; animation: pop 1.6s ease-in-out infinite; }
.waitbar { display: flex; flex-direction: column; gap: .4rem; }
.wait-item { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; background: linear-gradient(90deg, #ffe680, #fff4c2); border: 2px solid var(--accent); border-radius: 14px; padding: .55rem .8rem; box-shadow: 0 6px 20px rgba(255,200,0,.25); animation: glow 2s ease-in-out infinite; }
.wait-item.self { background: #fff; border-style: dashed; animation: none; box-shadow: none; }
.wait-item .wtext { flex: 1; min-width: 180px; }
.wait-item small { color: var(--muted); }
.wait-item .bell { font-size: 1.3rem; display: inline-block; animation: ring 2.4s ease-in-out infinite; }
.wait-item.self .bell { animation: none; }
.tablecard.waiting { border: 2px solid var(--accent); background: #fff8d6; animation: glow 2s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 4px rgba(255,200,0,.35); } }
@keyframes ring { 0%, 60%, 100% { transform: rotate(0); } 10%, 30%, 50% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-14deg); } }
@keyframes pop { 50% { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .wait-item, .tablecard.waiting, .badge, .wait-item .bell { animation: none; } }
.msg.sys { background: #fff4c2; border: 1px solid var(--accent); font-weight: 600; }
.chat-note { font-size: .72rem; color: var(--muted); text-align: center; margin: .4em 0 0; }

.tag.vid { background: #e7f0ff; color: #1d4ed8; font-weight: 600; }
button.tag.vid { border: 0; cursor: pointer; padding: .2em .7em; font-size: .85rem; border-radius: 999px; }

.hintbox { background: var(--accent-soft); border-radius: 10px; padding: .55em .75em; color: var(--ink) !important; }

.member-check { display: flex; align-items: flex-start; gap: .6em; font-weight: 600; margin: 1.1em 0 .2em; cursor: pointer; }
.member-check input { width: 1.25em; height: 1.25em; margin-top: .1em; accent-color: var(--accent-deep); flex: none; }
.member-check .muted { font-weight: 400; font-size: .85rem; }

/* ---------- Solo-Übersicht ---------- */
.solo-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.solo-tile { display: flex; flex-direction: column; align-items: flex-start; gap: .3em; text-align: left; background: #faf8f2; border: 1px solid var(--line); border-radius: 16px; padding: 1em; font-weight: 400; }
.solo-tile:hover { background: var(--accent-soft); }
.solo-tile .emoji { font-size: 1.8rem; }
.solo-tile b { font-size: 1.05rem; }
.solo-tile small { color: var(--muted); }
.solo-tile .pts { color: var(--accent-deep); font-weight: 700; margin-top: auto; }
.solo-tile.done { background: #eef9f1; }
.solo-tile.done .pts { color: var(--good); }
.hs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.hs li small { white-space: nowrap; }

/* ---------- Wort des Tages ---------- */
.wd-board { display: grid; gap: 6px; }
.wd-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.wd-tile { width: min(56px, 15vw); aspect-ratio: 1; display: grid; place-items: center; border: 2px solid #ddd6c4; border-radius: 10px; font-size: 1.6rem; font-weight: 800; background: #fff; text-transform: uppercase; }
.wd-tile.typed { border-color: #9a937f; }
.wd-tile.g { background: var(--good); border-color: var(--good); color: #fff; }
.wd-tile.y { background: #e0b300; border-color: #e0b300; color: #fff; }
.wd-tile.n { background: #a3a3a3; border-color: #a3a3a3; color: #fff; }
.wd-kb { display: flex; flex-direction: column; gap: 6px; width: min(520px, 96vw); }
.wd-krow { display: flex; gap: 4px; justify-content: center; }
.wd-key { flex: 1; max-width: 44px; padding: .8em 0; background: #ece7da; color: var(--ink); border-radius: 8px; font-size: .95rem; }
.wd-key.wide { max-width: 66px; flex: 1.5; }
.wd-key.g { background: var(--good); color: #fff; }
.wd-key.y { background: #e0b300; color: #fff; }
.wd-key.n { background: #b5b5b5; color: #fff; }

/* ---------- Sudoku ---------- */
.sd-grid { display: grid; grid-template-columns: repeat(9, 1fr); width: min(450px, 94vw); border: 3px solid var(--ink); border-radius: 8px; overflow: hidden; background: #fff; }
.sd-cell { aspect-ratio: 1; padding: 0; border-radius: 0; background: #fff; border-right: 1px solid #d6d1c4; border-bottom: 1px solid #d6d1c4; font-size: clamp(1rem, 4.6vw, 1.5rem); font-weight: 500; color: #2e5cb8; }
.sd-cell.given { color: var(--ink); font-weight: 800; }
.sd-cell.near { background: #f7f3e6; }
.sd-cell.same { background: var(--accent-soft); }
.sd-cell.sel { background: var(--accent); }
.sd-cell.bad { color: var(--bad); }
.sd-cell.br { border-right: 2px solid var(--ink); }
.sd-cell.bb { border-bottom: 2px solid var(--ink); }
.sd-cell:nth-child(9n) { border-right: 0; }
.sd-cell:nth-child(n+73) { border-bottom: 0; }
.sd-pad { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; width: min(450px, 94vw); }
.sd-key { padding: .75em 0; font-size: 1.2rem; background: #ece7da; color: var(--ink); }

/* ---------- Reaktionstest ---------- */
.rt-pad { width: min(480px, 94vw); height: 220px; border-radius: 20px; font-size: 1.4rem; font-weight: 800; color: #fff; touch-action: manipulation; user-select: none; }
.rt-pad.idle { background: #2e5cb8; }
.rt-pad.wait { background: var(--bad); }
.rt-pad.go { background: var(--good); }
.rt-pad.early { background: #e08a00; }
.rt-pad.done { background: var(--ink); }
.rt-list { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.rt-list li { background: #faf8f2; border-radius: 8px; padding: .3em .7em; font-weight: 700; }

/* ---------- Schätzfragen ---------- */
.est-form { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.est-form input { font: inherit; font-size: 1.2rem; padding: .6em .8em; border: 2px solid var(--line); border-radius: 12px; width: 12em; max-width: 60vw; text-align: right; }
.est-form input:focus { outline: none; border-color: var(--accent); }
.est-form input.err { border-color: var(--bad); }
.est-form .unit { font-weight: 700; color: var(--muted); }
.est-answer { font-size: 1.25rem; background: var(--accent-soft); padding: .6em 1.1em; border-radius: 14px; }
.est-list { display: flex; flex-direction: column; gap: .35rem; width: min(520px, 94vw); }
.est-row { display: flex; align-items: center; gap: .6em; background: #faf8f2; border-radius: 10px; padding: .45em .8em; }
.est-row .sname { flex: 1; font-weight: 600; }
.est-row.best { background: #e5f6ea; }

/* ---------- Schiffe versenken ---------- */
.sv-boards { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; width: 100%; }
.sv-board { display: flex; flex-direction: column; align-items: center; padding: .6rem; border-radius: 16px; border: 2px solid transparent; }
.sv-board.active { border-color: var(--accent); background: var(--accent-soft); }
.sv-board.mine .sv-grid { width: min(300px, 80vw); }
.sv-board h3 small { font-weight: 500; }
.sv-grid { display: grid; grid-template-columns: repeat(11, 1fr); gap: 2px; width: min(400px, 92vw); }
.sv-lab { display: grid; place-items: center; font-size: .7rem; font-weight: 700; color: var(--muted); }
.sv-cell { aspect-ratio: 1; padding: 0; border-radius: 4px; background: #cfe3f5; font-size: .85rem; color: #fff; }
.sv-cell:disabled { opacity: 1; cursor: default; }
.sv-cell:not(:disabled):hover { background: #ffe58a; }
.sv-cell.ship { background: #7b8594; }
.sv-cell.miss { background: #e7f0f8; color: #5b7fa6; }
.sv-cell.hit { background: #e0703c; }
.sv-cell.sunk { background: #8c2b1a; }
.sv-cell.last { outline: 3px solid var(--accent); outline-offset: -1px; }
.sv-fleet { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
