:root {
  --bg: #14171f;
  --bg2: #1c2030;
  --bg3: #262b3d;
  --line: #33394f;
  --text: #e8eaf2;
  --muted: #9097ad;
  --accent: #5b8cff;
  --accent2: #7c5bff;
  --ok: #3ccf91;
  --warn: #ffb547;
  --err: #ff5d6c;
  --radius: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body { display: flex; flex-direction: column; min-height: 100vh; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
h1, h2 { margin: 0 0 .6rem; }
h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* ---------- Topbar */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem 1rem; background: var(--bg2); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.brand { font-size: 1.1rem; }
.brand span { color: var(--muted); }
.me { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.banner { background: var(--warn); color: #222; text-align: center; padding: .4rem; font-weight: 600; }

main { flex: 1; padding: 1rem; max-width: 1500px; width: 100%; margin: 0 auto; }

/* ---------- Buttons */
.btn {
  border: 1px solid var(--line); background: var(--bg3); padding: .5rem .9rem; border-radius: 10px;
  cursor: pointer; transition: filter .15s, transform .05s; white-space: nowrap;
}
.btn:hover:not(:disabled) { filter: brightness(1.2); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); border-color: transparent; color: #fff; font-weight: 600; }
.btn.ghost { background: transparent; }
.btn.small { padding: .3rem .6rem; font-size: .85rem; border-radius: 8px; }
.btn.danger { border-color: var(--err); color: var(--err); background: transparent; }
.btn.big { padding: .8rem 1.4rem; font-size: 1.1rem; }
.btn.active { outline: 2px solid var(--accent); }

input, select {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .7rem; outline: none;
}
input:focus, select:focus { border-color: var(--accent); }

.panel { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.panel-head h2 { margin: 0; }

/* ---------- Login */
.login-card { max-width: 440px; margin: 8vh auto; text-align: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; padding: 2rem 1.5rem; }
.login-card form { display: flex; gap: .5rem; margin: 1.2rem 0; }
.login-card input { flex: 1; font-size: 1.1rem; }
.login-games { color: var(--muted); font-size: .9rem; }

/* ---------- Lobby */
.lobby { display: grid; grid-template-columns: 260px 1fr 340px; gap: 1rem; align-items: start; }
@media (max-width: 1100px) { .lobby { grid-template-columns: 1fr 1fr; } .games-panel { grid-column: 1 / -1; order: -1; } }
@media (max-width: 700px) { .lobby { grid-template-columns: 1fr; } main { padding: .6rem; } }

.switch { display: flex; align-items: center; gap: .35rem; font-size: .85rem; cursor: pointer; color: var(--muted); }
.switch input { accent-color: var(--ok); width: 1.1rem; height: 1.1rem; }

.player-list { list-style: none; margin: .8rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
.pl { display: grid; grid-template-columns: 12px 1fr; column-gap: .5rem; padding: .4rem .5rem; border-radius: 8px; background: var(--bg3); }
.pl .dot { width: 10px; height: 10px; border-radius: 50%; align-self: center; background: var(--muted); grid-row: span 2; }
.pl .pname { font-weight: 600; }
.pl .pst { font-size: .8rem; color: var(--muted); grid-column: 2; }
.pl.me { outline: 1px solid var(--accent); }
.pl.looking .dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.pl.looking .pst { color: var(--ok); }
.pl.wait .dot { background: var(--warn); }
.pl.busy .dot { background: var(--err); }
.pl.watch .dot { background: var(--accent); }
.pl.offline { opacity: .45; }

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; margin-bottom: 1.4rem; }
.game-card { display: flex; gap: .8rem; padding: .9rem; background: var(--bg3); border: 1px solid var(--line); border-radius: var(--radius); }
.gicon { font-size: 2.2rem; line-height: 1; width: 2.6rem; text-align: center; }
.gname { font-weight: 700; font-size: 1.05rem; }
.gdesc { font-size: .82rem; color: var(--muted); margin: .25rem 0 .55rem; }
.gsizes { display: flex; gap: .35rem; flex-wrap: wrap; }

.table-list { display: flex; flex-direction: column; gap: .5rem; }
.tbl { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .6rem .8rem; background: var(--bg3); border-radius: 10px; border-left: 4px solid var(--ok); }
.tbl.tbl-playing { border-left-color: var(--err); }
.tbl.tbl-over { border-left-color: var(--muted); }
.tbl-seats { font-size: .85rem; color: var(--muted); }
.tbl-actions { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Chat */
.chat-panel { display: flex; flex-direction: column; height: calc(100vh - 110px); max-height: 720px; min-height: 360px; position: sticky; top: 70px; }
@media (max-width: 700px) { .chat-panel { height: 420px; position: static; } }
.chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; padding-right: .3rem; min-height: 120px; }
.msg { line-height: 1.35; word-wrap: break-word; }
.msg .time { color: var(--muted); font-size: .72rem; }
.msg b { color: var(--accent); }
.msg.mine b { color: var(--ok); }
.msg.system { color: var(--muted); font-style: italic; font-size: .84rem; }
.chat-form { display: flex; gap: .4rem; margin-top: .6rem; }
.chat-form input { flex: 1; min-width: 0; }

/* ---------- Tisch */
.table-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .8rem; }
.table-title { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.table-title h2 { margin: 0; font-size: 1.25rem; text-transform: none; letter-spacing: 0; color: var(--text); }
.seat-list { display: flex; gap: .4rem; flex-wrap: wrap; }
.seat { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .65rem; border-radius: 999px; background: var(--bg3); border: 2px solid transparent; font-size: .9rem; }
.seat .sdot { width: 11px; height: 11px; border-radius: 50%; background: var(--c); border: 1px solid #0006; }
.seat.turn { border-color: var(--warn); box-shadow: 0 0 10px #ffb54766; }
.seat.off { opacity: .5; }
.table-actions { display: flex; gap: .4rem; }
.table-body { display: grid; grid-template-columns: 1fr 320px; gap: 1rem; align-items: start; }
.table-body .over-banner { grid-column: 1 / -1; }
@media (max-width: 980px) { .table-body { grid-template-columns: 1fr; } .table-chat { height: 340px !important; position: static !important; } }
.table-chat { display: flex; flex-direction: column; height: calc(100vh - 170px); min-height: 360px; position: sticky; top: 70px; }
.tabs { display: flex; gap: .3rem; margin-bottom: .6rem; }
.tab { flex: 1; background: var(--bg3); border: 1px solid var(--line); border-radius: 8px; padding: .35rem; cursor: pointer; }
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tab.unread::after { content: " ●"; color: var(--warn); }
.over-banner { background: linear-gradient(135deg, #2b3a1f, #1f3a2f); border: 1px solid var(--ok); border-radius: var(--radius); padding: .8rem 1rem; font-weight: 600; }
.game-area { min-width: 0; }
.waiting { text-align: center; padding: 3rem 1rem; background: var(--bg2); border-radius: var(--radius); border: 1px dashed var(--line); }
.waiting .big { font-size: 3rem; }

/* ---------- Modal / Toast */
.modal { position: fixed; inset: 0; background: #000a; display: flex; align-items: center; justify-content: center; z-index: 50; padding: 1rem; }
.modal-box { background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 1.2rem; max-width: 420px; width: 100%; text-align: center; }
.modal-box h3 { margin-top: 0; }
.pick-row { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.toast { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); background: var(--bg3); border: 1px solid var(--line); padding: .7rem 1.1rem; border-radius: 12px; z-index: 60; box-shadow: 0 8px 30px #0008; max-width: 90vw; }
.toast.error { border-color: var(--err); }

/* ---------- Gemeinsame Spiel-Elemente */
.gstatus { margin: .6rem 0; font-weight: 600; min-height: 1.4em; }
.gstatus.myturn { color: var(--warn); }
.gbar { display: flex; gap: .4rem; flex-wrap: wrap; margin: .5rem 0; align-items: center; }
.glog { font-size: .82rem; color: var(--muted); background: var(--bg2); border-radius: 10px; padding: .5rem .7rem; max-height: 150px; overflow-y: auto; }
.glog div + div { margin-top: .15rem; }

/* ---------- Schach & Dame */
.board8 { display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); width: min(100%, 560px, calc(100vh - 250px)); aspect-ratio: 1; border: 4px solid #3b2f22; border-radius: 6px; user-select: none; min-width: 260px; }
.sq { position: relative; min-width: 0; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sq.l { background: #ecd8b4; }
.sq.d { background: #a97b52; }
.sq.last { box-shadow: inset 0 0 0 100px #f6e35a55; }
.sq.sel { box-shadow: inset 0 0 0 100px #5b8cff88; }
.sq.check { box-shadow: inset 0 0 0 100px #ff3b3b99; }
.sq.tgt::after { content: ""; position: absolute; width: 30%; height: 30%; border-radius: 50%; background: #0004; pointer-events: none; }
.sq.tgt.occ::after { width: 86%; height: 86%; background: transparent; border: 4px solid #0005; }
.sq .coord { position: absolute; font-size: .6rem; left: 2px; bottom: 1px; color: #0007; pointer-events: none; }
.cp { font-size: min(8vw, 48px); line-height: 1; pointer-events: none; }
.cp.w { color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000, 0 1px 3px #000; }
.cp.b { color: #111; text-shadow: 0 0 2px #fff8; }
.moves { font-family: ui-monospace, monospace; font-size: .82rem; color: var(--muted); max-height: 110px; overflow-y: auto; }
.chess-wrap, .ck-wrap { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.side { flex: 1; min-width: 220px; }

.ck { width: 78%; height: 78%; border-radius: 50%; pointer-events: none; display: flex; align-items: center; justify-content: center; font-size: min(5vw, 28px); }
.ck.p0 { background: radial-gradient(circle at 35% 35%, #fff, #d6d2c8); box-shadow: 0 3px 0 #9a958a, 0 4px 6px #0008; color: #b8860b; }
.ck.p1 { background: radial-gradient(circle at 35% 35%, #555, #151515); box-shadow: 0 3px 0 #000, 0 4px 6px #0008; color: #ffd54f; }
.sq.can .ck { outline: 3px solid #5b8cff; outline-offset: 2px; }
.sq.capt { box-shadow: inset 0 0 0 100px #ff3b3b44; }

/* ---------- Mau-Mau */
.mm-opps { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-bottom: 1rem; }
.mm-opp { background: var(--bg2); border: 2px solid var(--line); border-radius: 12px; padding: .5rem .8rem; text-align: center; min-width: 120px; }
.mm-opp.turn { border-color: var(--warn); }
.mm-backs { display: flex; justify-content: center; margin-top: .3rem; height: 46px; }
.mm-backs .card { margin-left: -22px; }
.mm-backs .card:first-child { margin-left: 0; }
.mm-center { display: flex; gap: 1.5rem; align-items: center; justify-content: center; margin: 1rem 0; flex-wrap: wrap; }
.mm-info { min-width: 160px; text-align: center; }
.mm-info .wish { font-size: 1.3rem; }
.mm-hand { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; padding: .6rem; background: var(--bg2); border-radius: var(--radius); }
.card {
  width: 64px; height: 92px; border-radius: 8px; background: #fff; color: #111; border: 1px solid #bbb;
  display: flex; flex-direction: column; justify-content: space-between; padding: 4px 6px; font-weight: 700;
  user-select: none; position: relative; box-shadow: 0 2px 4px #0006; flex-shrink: 0;
}
.card .cr { font-size: 1rem; line-height: 1; }
.card .cs { font-size: 1.9rem; text-align: center; line-height: 1; }
.card .cr2 { transform: rotate(180deg); align-self: flex-end; font-size: 1rem; line-height: 1; }
.card.red { color: #d32f2f; }
.card.back { background: repeating-linear-gradient(45deg, #3f51b5, #3f51b5 6px, #5c6bc0 6px, #5c6bc0 12px); border: 2px solid #fff; }
.card.mini { width: 32px; height: 46px; padding: 0; }
.card.big { width: 86px; height: 124px; }
.card.big .cs { font-size: 2.8rem; }
.card.play { cursor: pointer; transform: translateY(-8px); box-shadow: 0 0 0 3px var(--ok), 0 6px 10px #0008; }
.card.dim { opacity: .55; }
.card.pile { cursor: pointer; }
.card.pile .cnt { position: absolute; bottom: -1.4rem; left: 0; right: 0; text-align: center; color: var(--muted); font-size: .8rem; font-weight: 400; }
@media (max-width: 600px) { .card { width: 52px; height: 76px; } .card .cs { font-size: 1.5rem; } .card.big { width: 70px; height: 100px; } }

/* ---------- Mensch ärgere dich nicht */
.ludo-wrap { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.ludo-board { width: min(100%, 560px, calc(100vh - 230px)); min-width: 280px; aspect-ratio: 1; background: #f3e3b5; border-radius: 14px; border: 4px solid #8d6e3f; }
.ludo-board .piece { cursor: default; }
.ludo-board .piece.can { cursor: pointer; animation: pulse 0.9s infinite alternate; }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.18); } }
.ludo-board .piece { transform-box: fill-box; transform-origin: center; }
.die { width: 64px; height: 64px; background: #fff; border-radius: 12px; display: inline-grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 8px; box-shadow: 0 3px 0 #bbb, 0 4px 10px #0007; vertical-align: middle; }
.die i { width: 11px; height: 11px; border-radius: 50%; background: #222; align-self: center; justify-self: center; }
.die.small { width: 40px; height: 40px; padding: 5px; border-radius: 8px; }
.die.small i { width: 7px; height: 7px; }
.die.roll { cursor: pointer; }
.die.empty { opacity: .3; }

/* ---------- Inselsiedler */
.st-wrap { display: grid; grid-template-columns: minmax(300px, 1fr) 330px; gap: 1rem; align-items: start; }
@media (max-width: 1250px) { .st-wrap { grid-template-columns: 1fr; } }
.st-board { width: 100%; max-height: calc(100vh - 170px); background: radial-gradient(circle, #2d6fa3, #1a4a75); border-radius: 16px; user-select: none; display: block; }
.st-panel { display: flex; flex-direction: column; gap: .7rem; }
.st-box { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: .7rem; }
.st-box h4 { margin: 0 0 .5rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.st-res { display: flex; gap: .35rem; flex-wrap: wrap; }
.rchip { display: inline-flex; align-items: center; gap: .25rem; padding: .3rem .5rem; border-radius: 8px; background: var(--bg3); font-weight: 700; }
.rchip.zero { opacity: .45; }
.st-builds { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.st-builds .btn { text-align: left; white-space: normal; font-size: .85rem; }
.st-builds .btn small { display: block; opacity: .8; font-size: .75rem; }
.st-players { width: 100%; border-collapse: collapse; font-size: .85rem; }
.st-players td { padding: .25rem .3rem; border-bottom: 1px solid var(--line); }
.st-players tr.turn td { background: #ffb5471a; }
.st-players .pc { width: 12px; height: 12px; border-radius: 3px; display: inline-block; vertical-align: middle; border: 1px solid #0008; }
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: .25rem; text-align: center; font-size: .85rem; }
.stepper .col { background: var(--bg3); border-radius: 8px; padding: .25rem 0; }
.stepper button { background: none; border: 0; cursor: pointer; font-size: 1rem; padding: 0 .3rem; }
.stepper .val { font-weight: 700; }
.st-row { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; margin-top: .4rem; }
.st-row select { padding: .3rem .4rem; }
.devcards { display: flex; flex-wrap: wrap; gap: .35rem; }
.devcard { padding: .35rem .55rem; border-radius: 8px; background: #3b2f5e; border: 1px solid #6a55b0; font-size: .82rem; }
.devcard.new { opacity: .5; }
.st-board .hit { cursor: pointer; }
.st-board .vhit { fill: #fff; fill-opacity: .85; stroke: #000; stroke-width: .04; animation: blink 1s infinite alternate; }
.st-board .ehit { stroke: #fff; stroke-width: .2; stroke-dasharray: .12 .08; stroke-linecap: round; opacity: .9; animation: blink 1s infinite alternate; }
.st-board .hexhit { fill: #fff; fill-opacity: 0; stroke: #fff; stroke-width: .05; stroke-dasharray: .1 .08; }
.st-board .hexhit:hover { fill-opacity: .25; }
@keyframes blink { from { opacity: .45; } to { opacity: 1; } }
.trade-offer { background: #22324a; border: 1px solid var(--accent); }

/* ---------- Erweiterungen */
.cat-title { font-size: .95rem; margin: 1rem 0 .5rem; color: var(--text); }
.cat-title:first-child { margin-top: 0; }
.gcount { font-size: .78rem; font-weight: 400; }
.wins { font-size: .78rem; }
.urgent { color: var(--err) !important; font-weight: 700; }
.card-row { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; }
.card.joker { background: linear-gradient(135deg, #fff, #ffe9a8); color: #7b1fa2; }
.card.gs-eichel { color: #6d4c41; } .card.gs-gras { color: #2e7d32; } .card.gs-schellen { color: #e65100; } .card.gs-herz { color: #c62828; }
.card.sel { transform: translateY(-14px); box-shadow: 0 0 0 3px var(--warn), 0 6px 10px #0008; }
.card.clickable { cursor: pointer; }
.card.small { width: 48px; height: 70px; } .card.small .cs { font-size: 1.3rem; } .card.small .cr, .card.small .cr2 { font-size: .8rem; }
.felt { background: radial-gradient(ellipse at center, #1f6b45, #124a30); border-radius: 18px; padding: 1rem; border: 6px solid #5a3b1d; }
.seat-box { background: #0006; border-radius: 10px; padding: .4rem .6rem; border: 2px solid transparent; text-align: center; min-width: 110px; }
.seat-box.turn { border-color: var(--warn); }
.seat-box.out { opacity: .4; }
.seats-row { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: .8rem; }
.trick { display: flex; gap: .6rem; justify-content: center; align-items: flex-end; min-height: 120px; flex-wrap: wrap; margin: .8rem 0; }
.trick .tc { text-align: center; font-size: .78rem; color: #ddd; }
.score-table { border-collapse: collapse; width: 100%; font-size: .88rem; }
.score-table th, .score-table td { border-bottom: 1px solid var(--line); padding: .3rem .4rem; text-align: center; }
.score-table th:first-child, .score-table td:first-child { text-align: left; }
.score-table tr.total td { font-weight: 700; border-top: 2px solid var(--line); }
.score-table td.pick { cursor: pointer; color: var(--ok); font-weight: 700; background: #3ccf9118; }
.score-table td.pick:hover { background: #3ccf9140; }
.score-table th.me { color: var(--accent); }
.big-board { width: min(100%, 620px, calc(100vh - 220px)); min-width: 280px; aspect-ratio: 1; display: block; user-select: none; }
.wrap2 { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-start; }
.timer-big { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
/* Schiffe versenken */
.bs-wrap { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.bs-wrap h4 { margin: .3rem 0; font-size: .85rem; color: var(--muted); }
.bs-grid { display: grid; grid-template-columns: 18px repeat(10, minmax(22px, 32px)); gap: 2px; }
.bs-l { font-size: .7rem; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.bs-c { aspect-ratio: 1; background: #1d4f7c; border-radius: 3px; position: relative; }
.bs-c.click { cursor: pointer; } .bs-c.click:hover { background: #2a6aa3; }
.bs-c.ship { background: #8a93a6; }
.bs-c.reveal { background: #8a93a666; }
.bs-c.miss::after { content: "•"; color: #cfe3f5; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.bs-c.hit { background: #e53935; } .bs-c.hit::after { content: "✕"; color: #fff; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.bs-c.sunk { background: #6d1b1b; } .bs-c.sunk::after { content: "✕"; color: #ff8a80; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.bs-c.lastshot { outline: 2px solid var(--warn); }
/* Kniffel */
.kn-dice { gap: .6rem; }
.kn-die .die { cursor: default; }
.kn-die.held .die { box-shadow: 0 0 0 4px var(--warn), 0 3px 0 #bbb; transform: translateY(4px); }
.kn-die .die.roll { cursor: pointer; }
/* Legespiel */
.cc-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 1rem; align-items: start; }
@media (max-width: 1100px) { .cc-wrap { grid-template-columns: 1fr; } }
.cc-scroll { overflow: auto; max-height: calc(100vh - 170px); border-radius: 12px; background: #2f3b2a; }
.cc-board { display: block; }
.rm-melds { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.rm-meld { background: #0005; border-radius: 8px; padding: .3rem .4rem; display: flex; flex-direction: column; gap: .2rem; }
.rm-meld .card-row { gap: 2px; }
.card.mini { justify-content: center; align-items: center; }
.card.mini .cs, .card.mini .cr2 { display: none; }
.card.mini .cr { font-size: .74rem; text-align: center; }
/* Stadt-Land-Fluss */
.slf-head { display: flex; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.slf-letter { font-size: 3.4rem; font-weight: 900; width: 5.2rem; height: 5.2rem; display: flex; align-items: center; justify-content: center; border-radius: 18px; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.slf-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; margin-top: .6rem; }
.slf-form label { display: flex; flex-direction: column; gap: .2rem; font-weight: 600; }
.slf-form input { font-size: 1.05rem; }
.slf-form button { grid-column: 1 / -1; }
.slf-table td { vertical-align: top; }
.slf-bad { text-decoration: line-through; opacity: .5; }
.slf-pts { color: var(--ok); font-weight: 700; font-size: .8rem; }
/* Montagsmaler */
.mm-root { display: grid; grid-template-columns: 1fr 280px; gap: 1rem; }
@media (max-width: 900px) { .mm-root { grid-template-columns: 1fr; } }
.mm-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .5rem; font-size: 1.1rem; }
.mm-hint { font-family: ui-monospace, monospace; font-size: 1.4rem; letter-spacing: .1em; }
.mm-word { color: var(--warn); font-size: 1.3rem; }
.mm-canvas-wrap { position: relative; }
.mm-canvas { width: 100%; aspect-ratio: 4/3; background: #fff; border-radius: 12px; display: block; }
.mm-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.mm-choices { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; background: #000a; padding: 1rem; border-radius: 14px; pointer-events: auto; }
.mm-tools { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; align-items: center; }
.mm-color { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #555; cursor: pointer; }
.mm-color.on { outline: 3px solid var(--warn); }
.mm-side { display: flex; flex-direction: column; gap: .6rem; min-height: 420px; }
.mm-feed { background: var(--bg2); border-radius: 10px; padding: .5rem; max-height: 380px; }

.cat-filter { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .8rem; }
#gameGrid .game-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gdesc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 700px) {
  #gameGrid .game-grid { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .game-card { flex-direction: column; gap: .3rem; padding: .6rem; }
  .gicon { font-size: 1.6rem; width: auto; text-align: left; }
  .gdesc { -webkit-line-clamp: 2; font-size: .75rem; }
  .gname { font-size: .95rem; }
  .gcount { display: block; }
}
