:root {
  --paper: #f6f1e7;
  --paper-2: #efe7d7;
  --card: #fffdf8;
  --ink: #1d2a24;
  --ink-2: #4a5a52;
  --line: #ddd2bd;
  --felt: #1f5c45;
  --felt-dark: #143d2e;
  --red: #b8322a;
  --brass: #c9a24a;
  --btn-red: var(--red);   /* filled buttons: background + text colour keep >= 4.5:1 contrast in every look */
  --on-btn-red: #fff;
  --btn-felt: var(--felt);   /* second filled button colour (e.g. "play with friends"), same contrast rule */
  --on-btn-felt: #fff;
  --radius: 14px;
  --btn-radius: 12px;      /* all text buttons: rounded rectangle (round icon buttons stay round) */
  --btn-radius-sm: 10px;   /* small buttons, chips, segment buttons */
  --shadow: 0 1px 2px rgba(29, 42, 36, .06), 0 8px 24px rgba(29, 42, 36, .08);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12191a; --paper-2: #182224; --card: #1c2729; --ink: #ece6d8; --ink-2: #a9b3ad;
    --line: #2c3a3c; --felt: #1f5c45; --felt-dark: #0e2a20; --red: #e0645b; --brass: #d8b462; --btn-red: #b8322a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; margin: 0 0 .4em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.15rem; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink-2); }
main { min-height: 70vh; padding-bottom: 64px; outline: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--felt-dark); color: #f6f1e7; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
/* Kopfzeile über die ganze Breite: Logo ganz links, Navigation ganz rechts */
@media (min-width: 761px) { .site-header .header-inner { width: calc(100% - 48px); } }
.nav a, .dropdown-btn { white-space: nowrap; }
/* Ab Tablet: Menüpunkte rechts, Suche zwischen „Anmelden“ und Sprache (nav wird für die Reihenfolge aufgelöst) */
@media (min-width: 761px) {
  .site-header .nav { display: contents; }
  .site-header .nav > * { order: 1; }
  .site-header .site-search { order: 2; margin-left: 0; }
  .site-header .nav > .lang-dd { order: 3; }
  .site-header .nav > .nav-play { margin-left: auto; }
}
@media (min-width: 1300px) { .site-header .header-inner { gap: 18px; } .site-header .nav a, .site-header .dropdown-btn { padding: 8px 12px; } }
@media (min-width: 761px) and (max-width: 1100px) { .site-header .nav a, .site-header .dropdown-btn { padding-left: 8px; padding-right: 8px; } .header-inner { gap: 10px; } }
@media (min-width: 761px) and (max-width: 920px) { .site-header .nav { gap: 0; } .site-header .header-inner { gap: 4px; } .add-game { display: none; } .site-header .nav a, .site-header .dropdown-btn { padding-left: 5px; padding-right: 5px; font-size: .85rem; } .site-header .header-inner { width: calc(100% - 24px); } .logo { font-size: 1.05rem; } .logo-mark { width: 34px; height: 34px; } }

/* Suche in der Kopfzeile */
.site-search { position: relative; flex: 1; max-width: 360px; margin-left: auto; }
.site-search input {
  width: 100%; height: 38px; padding: 0 14px 0 38px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.1); color: #fff; font: 500 .92rem var(--sans);
}
.site-search input::placeholder { color: rgba(246,241,231,.6); }
.site-search input:focus { outline: none; background: #fffdf8; color: #1d2a24; border-color: var(--brass); }
.site-search input:focus::placeholder { color: #7a857f; }
/* Löschen-X der Suche: eigene Farbe für Kontrast (Standard: Beige auf Grün, fokussiert Grün auf Weiß) */
.site-search { --ss-clear: #f6f1e7; }
.site-search:focus-within { --ss-clear: var(--felt); }
.site-search input::-webkit-search-cancel-button {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px; margin-left: 6px; cursor: pointer; background-color: var(--ss-clear);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 3.5l9 9m0-9l-9 9' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 3.5l9 9m0-9l-9 9' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ss-icon { position: absolute; left: 12px; top: 10px; color: rgba(246,241,231,.7); pointer-events: none; }
.site-search:focus-within .ss-icon { color: #4a5a52; }
.ss-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; z-index: 30;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  min-width: 300px; max-height: 70vh; overflow: auto;
}
.ss-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; }
.ss-list li[aria-selected="true"] a, .ss-list a:hover { background: var(--paper-2); }
.ss-ic { flex: none; width: 26px; text-align: center; font-size: 1rem; }
.ss-t { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-s { font-size: .78rem; color: var(--ink-2); max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-all { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.ss-all .ss-t { color: var(--red); }
.search-toggle { display: none; background: none; border: 0; color: #f6f1e7; padding: 8px; cursor: pointer; }
.term-hits { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.term-hit { display: block; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.term-hit:hover { border-color: var(--brass); }
.term-hit b { display: block; margin-bottom: 4px; }
.term-hit span { font-size: .9rem; color: var(--ink-2); }
.var-hit .var-play { display: block; margin-top: 6px; font-size: .8rem; font-weight: 600; color: var(--red); }
@media (max-width: 1000px) { .site-search { max-width: 240px; } }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.logo b { color: var(--brass); font-weight: 700; }
.logo-mark { width: 40px; height: 40px; flex: none; display: block; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a, .dropdown-btn {
  color: #f6f1e7; text-decoration: none; font: 500 .95rem var(--sans); padding: 8px 14px; border-radius: 999px;
  background: none; border: 0; cursor: pointer;
}
.nav a:hover, .dropdown-btn:hover { background: rgba(255,255,255,.08); }
.nav a.active, .dropdown-btn.active { background: rgba(201,162,74,.22); color: #fff; }
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; padding: 8px;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  display: none; max-height: 70vh; overflow: auto;
}
.dropdown-menu.open { display: block; }
.dropdown-menu { width: min(760px, calc(100vw - 32px)); max-height: 78vh; }
.dd-cols { columns: 3 200px; column-gap: 8px; }
.dd-group { break-inside: avoid; padding: 4px 0 8px; }
.dd-group b { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); padding: 6px 12px 4px; }
.dropdown-menu .dd-group a { padding: 5px 12px; }
.dropdown-menu a { display: block; color: var(--ink); padding: 8px 12px; border-radius: 8px; }
.dropdown-menu a:hover { background: var(--paper-2); }
.dropdown-menu a.all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; color: var(--felt); font-weight: 600; border-radius: 0 0 8px 8px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .dropdown-menu a.all { color: var(--brass); } }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #f6f1e7; margin: 5px 0; border-radius: 2px; }

@media (max-width: 760px) {
  .search-toggle { display: block; margin-left: auto; }
  .site-search {
    display: none; position: absolute; left: 0; right: 0; top: 64px; max-width: none; margin: 0;
    padding: 10px 16px 14px; background: var(--felt-dark); box-shadow: 0 8px 16px rgba(0,0,0,.2);
  }
  body.search-open .site-search { display: block; }
  .ss-icon { left: 28px; top: 20px; }
  .ss-list { left: 16px; right: 16px; min-width: 0; }
  .dd-cols { columns: 1; }
  .dropdown-menu { width: auto; }
  .dd-group b { color: rgba(246, 241, 231, .6); }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--felt-dark); padding: 8px 16px 16px; display: none; max-height: calc(100vh - 64px); overflow: auto;
  }
  .nav.open { display: flex; }
  .nav a, .dropdown-btn { padding: 12px 8px; border-radius: 8px; text-align: left; width: 100%; }
  .dropdown-menu { position: static; box-shadow: none; border: 0; background: rgba(255,255,255,.06); max-height: none; }
  .dropdown-menu a { color: #f6f1e7; }
  .dropdown-menu a:hover { background: rgba(255,255,255,.08); }
  .dropdown-menu a.all { color: var(--brass); border-color: rgba(255,255,255,.12); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border-radius: var(--btn-radius); font: 600 .95rem/1.25 var(--sans); letter-spacing: .005em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .12s, background-color .15s, border-color .15s, box-shadow .15s, filter .15s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.btn .ic { width: 1.15em; height: 1.15em; vertical-align: 0; }
.btn.primary { background: var(--btn-red); color: var(--on-btn-red);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 1px 2px rgba(0,0,0,.16), 0 6px 16px -8px color-mix(in srgb, var(--btn-red) 70%, transparent); }
.btn.primary:hover { background: color-mix(in srgb, var(--btn-red) 86%, #000); }
.btn.ghost { background: color-mix(in srgb, var(--ink) 4%, transparent); border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { background: color-mix(in srgb, var(--ink) 9%, transparent); border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.btn.small { min-height: 36px; padding: 7px 14px; border-radius: var(--btn-radius-sm); font-size: .88rem; margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; padding: 44px 0 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 600; color: var(--red); margin: 0 0 10px; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 56ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 20px 0; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.facts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-size: .92rem; font-weight: 500; }
/* Kasten „Blatt“: vier Karten des benötigten Blatts, leicht überlappend */
.deck-peek { display: block; margin: 8px 0 -4px -4px; line-height: 0; }
.deck-peek svg { width: auto; height: 72px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-art { margin: 0; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 14px 24px rgba(20, 40, 30, .25)); }
.hero-art figcaption { text-align: center; font-size: .85rem; color: var(--ink-2); margin-top: 8px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 20px; padding-top: 24px; } .hero-art { order: -1; } }

/* ---------- Sektionen & Kacheln ---------- */
.section { padding-top: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.section-head a { color: var(--red); font-weight: 600; text-decoration: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.tile {
  display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s;
}
.tile[hidden] { display: none; }
/* Favoriten-Herz unten rechts auf der Spielkachel (ohne Kreis, wie in „Meine Favoriten“) */
.tile { position: relative; }
.tile:has(> .tile-fav) .tile-body > p:last-child { padding-right: 30px; }
.tile-fav { position: absolute; right: 8px; bottom: 8px; width: 32px; height: 32px; display: grid; place-items: center; font-size: 1.2rem; color: var(--red); cursor: pointer; }
.tile-fav .fav-ico { transition: transform .15s; }
.tile-fav:hover .fav-ico { transform: scale(1.18); }
.tile-fav:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; border-radius: 50%; }
.tile-fav.pop .fav-ico { display: inline-block; animation: fav-pop .35s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 14px 32px rgba(29,42,36,.14); }
.tile-art { background: var(--felt-dark); padding: 6px; }
.tile-body { padding: 12px 16px 16px; }
.tile-body h3 { margin: 4px 0 2px; }
.tile-body p { margin: 0; font-size: .9rem; }
.tile-meta { display: flex; align-items: center; justify-content: space-between; min-height: 24px; }
.flag { font-size: 1.1rem; }
.badge { font-size: .72rem; font-weight: 700; color: #5a4310; background: #f3e2b5; padding: 3px 8px; border-radius: 999px; }

.countries { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.country {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; transition: border-color .15s, transform .15s;
}
.country:hover { border-color: var(--brass); transform: translateY(-2px); }
.country-flag { font-size: 2rem; line-height: 1; }
.country b { display: block; }
.country small { color: var(--ink-2); }
.countries.big .country { padding: 20px; }

.teaser {
  margin-top: 48px; padding: 32px; border-radius: var(--radius); color: #f6f1e7;
  background: radial-gradient(120% 140% at 0% 0%, #2a7556 0%, var(--felt-dark) 70%);
}
.teaser p { max-width: 60ch; margin: 0; opacity: .9; }

/* ---------- Unterseiten ---------- */
.page-head { padding: 36px 0 20px; }
.country-intro { max-width: 70ch; margin: 10px 0 0; color: var(--ink-2, var(--ink)); line-height: 1.55; }
.play-about > h2 { margin-bottom: 8px; }
.play-about > h3 { margin: 18px 0 6px; }
.play-about > ul { margin: 6px 0 10px; padding-left: 1.2em; line-height: 1.6; }
.search {
  width: 100%; max-width: 520px; margin-top: 8px; padding: 13px 18px; font: inherit; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line); border-radius: 999px;
}
.search:focus { outline: none; border-color: var(--brass); }
.empty { color: var(--ink-2); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.filter { font: 600 .88rem var(--sans); padding: 7px 14px; border-radius: var(--btn-radius-sm); border: 1.5px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.filter span { font-weight: 500; color: var(--ink-2); margin-left: 2px; }
.filter:hover { border-color: var(--brass); }
.filter.active { background: var(--felt); border-color: var(--felt); color: #fff; }
.filter.active span { color: rgba(255,255,255,.75); }
.region { padding-top: 22px; }
.region h2 { font-size: 1.3rem; margin-bottom: 12px; }
.crumbs { padding-top: 22px; font-size: .9rem; color: var(--ink-2); }
.crumbs a { color: var(--red); text-decoration: none; }
.h1-flag { font-size: .9em; }

.game-head { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: start; padding: 18px 0 28px; }
.alt { color: var(--ink-2); margin-top: -4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .85rem; padding: 5px 12px; border-radius: var(--btn-radius-sm); background: var(--paper-2); text-decoration: none; border: 1px solid var(--line); }
.chip:hover { border-color: var(--brass); }
@media (max-width: 900px) { .game-head { grid-template-columns: 1fr; } .game-head .hero-art, .game-head .walkthrough-wrap { order: -1; } }

.game-body { display: grid; grid-template-columns: 220px 1fr; gap: 40px; border-top: 1px solid var(--line); padding-top: 28px; }
.toc { position: sticky; top: 84px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: .9rem; }
.toc b { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); margin-bottom: 6px; }
.toc a { text-decoration: none; padding: 5px 10px; border-left: 2px solid var(--line); color: var(--ink-2); }
.toc a:hover { color: var(--ink); border-color: var(--red); }
.toc a.toc-active { color: var(--ink); border-color: var(--red); font-weight: 600; }
/* Printer button beside the first rules heading: outside the text column when there is room, otherwise at the heading's end */
.rules h2.has-print { position: relative; }
.print-round { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink-2); cursor: pointer; box-shadow: var(--shadow); vertical-align: middle; transition: color .15s, border-color .15s; }
.print-round:hover, .print-round:focus-visible { color: var(--red); border-color: var(--red); outline: none; }
.print-round:active { transform: scale(.94); }
.rules h2.has-print .print-round { float: right; margin: -4px 0 0 12px; }
@media (min-width: 1100px) {
  .rules h2.has-print .print-round { float: none; position: absolute; top: 50%; left: calc(100% + 24px); margin: 0; transform: translateY(-50%); }
  .rules h2.has-print .print-round:active { transform: translateY(-50%) scale(.94); }
}
@media (max-width: 900px) { .game-body { grid-template-columns: 1fr; } .toc { display: none; } }

.rules { max-width: 72ch; }
.rules section { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px dashed var(--line); }
.rules section:last-of-type { border-bottom: 0; }
.rules h2 { font-size: 1.4rem; }
.rules p { margin: 0 0 .7em; }
.rules ol, .rules ul { padding-left: 1.3em; margin: 0 0 .7em; }
.rules li { margin-bottom: .5em; }
.rules ol li::marker { color: var(--red); font-weight: 700; }
/* ---------- Spielen gegen den Computer ---------- */
.game-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.game-actions .btn.small { margin-top: 0; }
.play-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 14px; }
.play-head h1 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.play-teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; background: radial-gradient(120% 140% at 100% 0%, #8f2a24 0%, #5e1c18 75%); }
.eyebrow.light { color: #f2c94c; }
.play-area { margin: 0 auto; }
.play-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 22px; align-items: start; }
.play-main { min-width: 0; }
.play-score { position: sticky; top: 84px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.play-score h3 { margin: 0 0 2px; }
.play-score > p { margin: 0 0 10px; font-size: .85rem; }
.play-score table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.play-score th { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); text-align: left; padding: 4px 3px; border-bottom: 1px solid var(--line); }
.play-score td { padding: 7px 3px; border-bottom: 1px solid var(--line); }
.play-score tr.me td { font-weight: 700; color: var(--felt); }
.play-score .num, .mm-result .num { text-align: right; font-variant-numeric: tabular-nums; }
.play-score p.small { margin: 10px 0 0; font-size: .8rem; line-height: 1.45; }
.mm-result p.small { font-size: .82rem; margin: 10px 0 0; }
.mm-setup { max-width: 560px; margin: 10px auto; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.mm-setup h2 { margin-bottom: 16px; }
.mm-field { margin-bottom: 16px; }
.mm-field > span { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); margin-bottom: 6px; }
.mm-check { display: flex; gap: 10px; align-items: center; margin: 6px 0; cursor: pointer; }
.mm-check input { width: 18px; height: 18px; accent-color: var(--felt); }
.mm-hint { font-size: .9rem; }
.mm-stats { margin: 12px 0 0; font-size: .9rem; }
.mm-table {
  display: grid; grid-template-columns: 1fr 1.6fr 1fr; grid-template-areas: ". top ." "left center right" "status status status";
  align-items: center; gap: 12px; padding: 26px 22px 16px; border-radius: 32px; border: 12px solid #6b4a2b;
  background: radial-gradient(70% 70% at 50% 45%, #2a7556, #174836); color: #fff; min-height: 470px;
}
.mm-opp { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mm-top { grid-area: top; } .mm-left { grid-area: left; } .mm-right { grid-area: right; }
.mm-backs svg { height: 84px; width: auto; }
.mm-name { font-size: .85rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.3); white-space: nowrap; }
.mm-opp.active .mm-name { background: #c9a24a; color: #1d2a24; box-shadow: 0 0 0 3px rgba(242,201,76,.35); }
.mm-mau { color: #f2c94c; }
.mm-opp.active .mm-mau { color: #8f2a24; }
.mm-center { grid-area: center; display: flex; justify-content: center; align-items: center; gap: 28px; }
.mm-stock { background: none; border: 0; color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font: 600 .82rem var(--sans); padding: 4px; border-radius: 12px; }
.mm-stock:not([disabled]):hover { background: rgba(255,255,255,.08); }
.mm-stock:not([disabled]) svg { filter: drop-shadow(0 0 8px rgba(242,201,76,.55)); }
.mm-stock[disabled] { cursor: default; opacity: .85; }
.mm-stock svg { height: 140px; width: auto; }
.mm-discard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mm-discard .mm-card svg { height: 158px; width: auto; }
.mm-topcard.flip svg { animation: mm-drop .45s ease-out; }
@keyframes mm-drop { from { transform: translateY(-30px) rotate(-8deg); opacity: .3; } }
.mm-wish { font-size: .78rem; font-weight: 700; background: #f2c94c; color: #1d2a24; padding: 3px 10px; border-radius: 999px; }
.mm-status { grid-area: status; text-align: center; margin: 4px 0 0; font-weight: 600; min-height: 1.5em; }
.mm-hand { display: flex; justify-content: safe center; flex-wrap: nowrap; padding: 26px 8px 4px; overflow-x: auto; min-height: 180px; }
.mm-handcard { position: relative; background: none; border: 0; padding: 0; margin-left: -26px; cursor: default; transition: transform .15s; flex: none; }
.mm-handcard:first-child { margin-left: 0; }
.mm-handcard svg { height: 150px; width: auto; display: block; }
.mm-hand.mine .mm-handcard:not(.ok) { opacity: .55; }
.mm-handcard.ok { transform: translateY(-12px); cursor: pointer; }
.mm-handcard.ok svg { filter: drop-shadow(0 0 7px rgba(201,162,74,.9)); }
.mm-handcard.ok:hover, .mm-handcard.ok:focus-visible { transform: translateY(-22px); outline: none; }
.mm-handcard.drawn { transform: translateY(-22px); }
.mm-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 16px; }
.mm-wishpick { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.mm-wishpick button { background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 8px 10px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; font: 600 .85rem var(--sans); color: var(--ink); }
.mm-wishpick button:hover { border-color: var(--brass); }
.mm-wishpick svg { height: 76px; width: auto; }
.mm-result { max-width: 420px; margin: 0 auto 16px; padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.mm-result table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.mm-result th, .mm-result td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.mm-result tr.win td { font-weight: 700; color: var(--felt); }
.mm-log { max-width: 640px; margin: 0 auto; font-size: .88rem; }
/* Arschloch */
.ar-tops { display: flex; justify-content: center; gap: 48px; }
.ar-center { flex-direction: column; gap: 10px; min-height: 190px; }
.ar-trick { min-height: 160px; display: flex; align-items: center; justify-content: center; }
.ar-trick svg { height: 160px; width: auto; }
.ar-trick.old { opacity: .45; }
.ar-trick.flip svg { animation: mm-drop .45s ease-out; }
.ar-empty { display: block; width: 104px; height: 150px; border: 2px dashed rgba(255,255,255,.28); border-radius: 12px; }
.ar-pick { display: flex; gap: 18px; justify-content: center; }
.ar-pickcard { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 12px; transition: transform .15s; }
.ar-pickcard svg { height: 150px; width: auto; display: block; filter: drop-shadow(0 0 8px rgba(242,201,76,.8)); }
.ar-pickcard:hover, .ar-pickcard:focus-visible { transform: translateY(-8px); outline: none; }
.ar-info { font-size: .85rem; font-weight: 600; padding: 3px 12px; border-radius: 999px; background: rgba(0,0,0,.28); min-height: 1.4em; }
.ar-info:empty { visibility: hidden; }
.ar-badge { white-space: nowrap; font-size: .74rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.16); }
.ar-badge.done { background: #f2c94c; color: #1d2a24; }
.ar-hand .mm-handcard.ok { transform: none; cursor: pointer; }
.ar-hand .mm-handcard.ok svg { filter: none; }
.ar-hand .mm-handcard.ok:hover, .ar-hand .mm-handcard.ok:focus-visible { transform: translateY(-10px); outline: none; }
.ar-hand .mm-handcard.sel { transform: translateY(-24px); }
.ar-hand .mm-handcard.sel svg { filter: drop-shadow(0 0 8px rgba(242,201,76,1)); }
.ar-hand .mm-handcard.drawn:not(.sel) svg { filter: drop-shadow(0 0 6px rgba(120,190,255,.95)); }
.ar-hand .mm-handcard { margin-left: -34px; }
.ar-hand.many .mm-handcard { margin-left: -46px; }
.ar-hand .mm-handcard:first-child { margin-left: 0 !important; }
@media (max-width: 1000px) {
  .play-layout { grid-template-columns: 1fr; }
  .play-score { position: static; }
}
.mm-log summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.mm-log ol { list-style: none; padding: 8px 0 0; margin: 0; max-height: 220px; overflow: auto; }
.mm-log li { padding: 3px 0; border-bottom: 1px dashed var(--line); }
.mm-log li.me { font-weight: 600; }
@media (max-width: 640px) {
  .mm-table { grid-template-columns: 1fr 1fr; grid-template-areas: "left right" "top top" "center center" "status status"; border-width: 7px; padding: 12px 8px 10px; min-height: 0; }
  .mm-table:has(.mm-top):not(:has(.mm-left)) { grid-template-areas: "top top" "center center" "status status"; }
  .mm-backs svg { height: 46px; }
  .mm-stock svg { height: 90px; } .mm-discard .mm-card svg { height: 100px; }
  .mm-handcard svg { height: 110px; }
  .mm-handcard { margin-left: -34px; }
  .ar-hand .mm-handcard svg { height: 104px; }
  .ar-hand .mm-handcard { margin-left: -48px; }
  .ar-hand.many .mm-handcard { margin-left: -56px; }
  .ar-tops { gap: 6px; flex-wrap: wrap; }
  .ar-table .mm-name { font-size: .74rem; padding: 3px 8px; }
  .ar-tops .mm-backs svg { height: 38px; }
  .ar-trick svg { height: 110px; } .ar-trick { min-height: 112px; } .ar-center { min-height: 0; }
  .ar-empty { width: 72px; height: 104px; }
  .ar-pickcard svg { height: 104px; }
}

/* Interaktive Spielszene */
.walkthrough-wrap { min-width: 0; }
.wt-kicker { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.walkthrough { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; outline: none; }
.walkthrough:focus-visible { box-shadow: 0 0 0 3px var(--brass); }
.wt-stage { position: relative; background: var(--felt-dark); padding: 6px; }
.wt-stage svg { width: 100%; height: auto; display: block; }
/* Bild vergrößern: Lupe als Hinweis, Klick zeigt die Bilderreihe groß über der Seite */
.wt-stage { cursor: zoom-in; }
.wt-stage::after { content: ""; position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; pointer-events: none; z-index: 4;
  background: rgba(0,0,0,.38) center / 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E"); opacity: .85; transition: opacity .15s; }
.wt-stage:hover::after { opacity: 1; }
html.wt-zoomed { overflow: hidden; }
.walkthrough.wt-zoom { position: fixed; z-index: 1300; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(1400px, 96vw); max-height: 96dvh; overflow: auto;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.72), 0 20px 60px rgba(0,0,0,.5); }
.walkthrough.wt-zoom .wt-stage { cursor: zoom-out; }
.walkthrough.wt-zoom .wt-stage svg { max-height: calc(96dvh - 300px); }
.walkthrough.wt-zoom .wt-stage::after { top: 12px; bottom: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6.5 6.5l11 11M17.5 6.5l-11 11'/%3E%3C/svg%3E"); }
@media (max-width: 640px) {
  .walkthrough.wt-zoom { width: 100vw; max-height: 100dvh; border-radius: 0; }
  .walkthrough.wt-zoom .wt-stage svg { max-height: none; }
}
.wt-spot {
  position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid #fff; background: #c9a24a; color: #1d2a24; font: 800 .9rem var(--sans); cursor: pointer;
  box-shadow: 0 0 0 0 rgba(242, 201, 76, .7); animation: wt-pulse 2s infinite; z-index: 2;
}
.wt-spot:hover, .wt-spot.open { background: #f2c94c; animation: none; }
.wt-spot:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@keyframes wt-pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 201, 76, .7); } 70% { box-shadow: 0 0 0 12px rgba(242, 201, 76, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 201, 76, 0); } }
.wt-pop {
  position: absolute; z-index: 3; width: min(250px, 70%); margin: 22px 0 0 -20px; padding: 10px 12px;
  background: #fffdf8; color: #1d2a24; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.3); font-size: .86rem; line-height: 1.45;
}
.wt-pop b { display: block; margin-bottom: 2px; }
.wt-pop.left { transform: translateX(-100%); margin-left: 20px; }
.wt-pop.up { transform: translateY(-100%); margin-top: -22px; }
.wt-pop.left.up { transform: translate(-100%, -100%); }
.wt-panel { padding: 14px 18px 16px; }
.wt-meta { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.wt-panel h3, .wt-panel .wt-h { margin: 4px 0 6px; font-size: 1.25rem; }
.wt-panel p { margin: 0 0 12px; font-size: .95rem; min-height: 4.4em; }
.wt-panel p.wt-tip { min-height: 0; margin: -4px 0 12px; padding: 8px 12px; font-size: .88rem; border-left: 3px solid var(--red); background: color-mix(in srgb, var(--red) 7%, transparent); border-radius: 0 6px 6px 0; }
.wt-controls { display: flex; align-items: center; gap: 12px; }
.wt-controls .btn { margin: 0; }
.wt-controls .btn[disabled] { opacity: .4; cursor: default; }
.wt-progress { flex: 1; height: 6px; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.wt-progress span { display: block; height: 100%; background: var(--brass); transition: width .3s; }
.cg-fly { animation: cg-fly .55s cubic-bezier(.2,.8,.3,1); }
@keyframes cg-fly { from { transform: translate(var(--fx), var(--fy)) scale(.9); opacity: .6; } }
.cg-pop { animation: cg-pop .4s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes cg-pop { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cg-fly, .cg-pop, .wt-spot { animation: none; } }

/* Varianten-Umschalter */
.variants { margin: -8px 0 26px; padding: 16px 18px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); }
.variants-label { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg-btn {
  padding: 8px 16px; border-radius: var(--btn-radius-sm); border: 1.5px solid var(--line); background: var(--card);
  text-decoration: none; font-weight: 600; font-size: .92rem; transition: border-color .12s, background .12s;
}
.seg-btn:hover { border-color: var(--brass); }
.seg-btn.active { background: var(--felt); border-color: var(--felt); color: #fff; }
.variant-desc { margin: 10px 0 0; font-size: .95rem; }
.var-badge {
  display: inline-block; vertical-align: middle; margin-left: 10px; font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; background: #f3e2b5; color: #5a4310;
}
.rules section.sec-changed { border-left: 3px solid var(--brass); padding-left: 16px; margin-left: -19px; }
.toc a.toc-changed { border-left-color: var(--brass); color: var(--ink); font-weight: 600; }
.facts .fact-changed { border-color: var(--brass); background: rgba(201, 162, 74, .12); }
.print-only { display: none; }
@media (max-width: 900px) { .rules section.sec-changed { margin-left: 0; } }

.special-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-top: 16px; }
.sc { margin: 0; display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px 12px 10px; break-inside: avoid; }
.sc-art { flex: none; display: flex; justify-content: center; min-width: 86px; }
.sc-art svg { height: 112px; width: auto; filter: drop-shadow(0 3px 6px rgba(29, 42, 36, .15)); }
.sc figcaption b { display: block; font-family: var(--serif); font-size: 1.05rem; margin-bottom: 2px; }
.sc figcaption p { margin: 0; font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 520px) { .special-cards { grid-template-columns: 1fr; } .sc-art svg { height: 96px; } }
.note { background: var(--paper-2); border-left: 3px solid var(--brass); padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: .92rem; }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.4em; }
code { background: var(--paper-2); padding: 1px 6px; border-radius: 4px; font-size: .9em; }

/* ---------- FAQ ---------- */
.faq-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.faq-jump a { font-size: .85rem; padding: 6px 12px; border-radius: var(--btn-radius-sm); border: 1px solid var(--line); background: var(--card); text-decoration: none; }
.faq-jump a:hover { border-color: var(--brass); }
.faq { max-width: 820px; }
.faq-group { padding-top: 22px; }
.faq-group[hidden] { display: none; }
.term { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.term[hidden] { display: none; }
.term summary {
  list-style: none; cursor: pointer; padding: 14px 44px 14px 18px; position: relative;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
}
.term summary::-webkit-details-marker { display: none; }
.term summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--red); font-weight: 400; transition: transform .15s;
}
.term[open] summary::after { content: "–"; }
.term summary:hover .term-title { color: var(--red); }
.term-title { font-weight: 600; }
.term-aka { font-size: .85rem; color: var(--ink-2); }
.term-body { padding: 0 18px 16px; color: var(--ink); }
.term-body p { margin: 0 0 10px; max-width: 68ch; }
.term-body .chips { align-items: center; }
.small-label { font-size: .82rem; margin-right: 2px; }
:target.term, .term[open] { border-color: var(--brass); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 36px; color: var(--ink-2); font-size: .88rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--ink); }

/* ---------- Ausführliche Regeln (Markdown, js/md.js) ---------- */
.rules-mode { margin: -8px 0 22px; }
.md-rules h2 { font-size: 1.4rem; margin-top: 1.6em; padding-top: 1.1em; border-top: 1px dashed var(--line); scroll-margin-top: 90px; }
.md-body > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.md-rules h3 { font-size: 1.1rem; margin: 1.2em 0 .5em; }
.md-rules ol ol, .md-rules ol ul, .md-rules ul ul { margin: .4em 0 0; }
.md-rules .md-q { margin: 1.1em 0 .3em; }
/* Fachbegriffe in den Regeln (TermLinks) + Erklär-Popup */
.term-link { color: var(--red); text-decoration: underline dotted; text-decoration-color: currentColor; text-decoration-thickness: 2px; text-underline-offset: 3px; cursor: help; }
.term-link:hover, .term-link[aria-expanded="true"] { text-decoration-style: solid; }
.term-pop { position: fixed; z-index: 60; box-sizing: border-box; max-width: calc(100vw - 32px); padding: 14px 40px 14px 16px; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); box-shadow: var(--shadow), 0 12px 32px rgba(0, 0, 0, .18); font-family: var(--sans); font-size: .95rem; line-height: 1.45; }
.term-pop[hidden] { display: none; }
.term-pop-t { display: block; font-family: var(--serif); font-size: 1.1rem; }
.term-pop-aka { display: block; color: var(--ink-2); font-size: .85rem; margin-top: 2px; }
.term-pop p { margin: .5em 0 .6em; }
.term-pop-cards { margin: 8px 0 2px; }
.term-pop-cards svg { display: block; height: 88px; width: auto; filter: drop-shadow(0 2px 3px rgba(0,0,0,.14)); }
.term-pop-more { color: var(--red); font-weight: 600; text-decoration: none; }
.term-pop-more:hover { text-decoration: underline; }
.term-pop-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); font-size: .9rem; cursor: pointer; }
.term-pop-x:hover { background: var(--paper-2); color: var(--ink); }
@media print { .term-link { text-decoration: none; color: inherit; } .term-pop { display: none !important; } }
.md-table { overflow-x: auto; margin: 0 0 1em; }
.md-cards { margin: 0 0 1.2em; display: grid; gap: 10px; }
.md-cards-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.md-cards-label { flex: 0 0 11em; font-size: .92em; line-height: 1.3; }
.md-cards-list { display: flex; flex-wrap: wrap; gap: 5px; }
.md-cards-list .term-card svg { height: 84px; }
@media (max-width: 640px) { .md-cards-label { flex-basis: 100%; } .md-cards-list .term-card svg { height: 64px; } .md-cards-row { gap: 4px; } }
@media print { .md-cards { display: none; } }
/* Kartenbilder in Regeltexten ([[k:…]]): je Wert eine überlappende Gruppe, Gruppen umbrechen statt zu scrollen */
.md-k { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 6px 0 2px; }
p > .md-k:only-child { margin: 0; }
.md-k-g { display: inline-block; flex: none; line-height: 0; }
.md-k-g svg { display: block; height: 84px; width: auto; max-width: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.18)); }
.md-table td .md-k-g svg { height: 76px; }
@media (max-width: 640px) { .md-k-g svg, .md-table td .md-k-g svg { height: 60px; } .md-k { gap: 4px 8px; } }
@media print { .md-k { display: none; } }
.md-table table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.md-table th, .md-table td { overflow-wrap: break-word; text-align: left; vertical-align: top; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.md-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.md-table tbody tr:nth-child(odd) td { background: var(--paper-2); }
.md-pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; line-height: 1.35; background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; margin: 0 0 1em; }
.md-loading { padding: 20px 0; }
.rule-card { display: none; }
[data-mode-pane][hidden] { display: none !important; }

/* Regelkarte: genau eine DIN-A4-Seite, zwei Spalten */
@media print {
  html.print-card body > *:not(main), html.print-card main > *, html.print-card .game > * { display: none !important; }
  html.print-card main, html.print-card main > article.game { display: block !important; margin: 0; padding: 0; }
  html.print-card .rule-card { display: block !important; column-count: 2; column-gap: 9mm; font-size: 10pt; line-height: 1.3; color: #000; }
  html.print-card .rule-card h1 { column-span: all; font-size: 17pt; margin: 0 0 2mm; }
  html.print-card .rule-card h1 + p { column-span: all; margin: 0 0 3mm; padding-bottom: 2mm; border-bottom: 1px solid #000; }
  html.print-card .rule-card h2 { font-size: 11.5pt; margin: 2.5mm 0 1mm; break-after: avoid; }
  html.print-card .rule-card ol, html.print-card .rule-card ul { margin: 0 0 1.5mm; padding-left: 4.5mm; }
  html.print-card .rule-card li { margin: 0 0 .7mm; break-inside: avoid; }
  html.print-card .rule-card p { margin: 0 0 1.5mm; }
}
@page { size: A4 portrait; margin: 12mm; }

/* ---------- Druck ---------- */
@media print {
  .print-only { display: block; }
  .variants { background: none; border: 0; padding: 0; margin: 0 0 12px; }
  .site-header, .site-footer, .no-print, .crumbs { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .game-head { grid-template-columns: 1fr 1fr; }
  .game-head .hero-art { order: 0; }
  .game-body { display: block; border: 0; }
  .rules { max-width: none; }
  .rules section { break-inside: avoid-page; }
  .hero-art svg { filter: none; }
  .wt-spot, .wt-pop, .wt-controls { display: none !important; }
}

/* ---------- PlayKit: gemeinsamer Spieltisch ---------- */
.pk-setup { max-width: 640px; margin: 10px auto; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.pk-setup h2 { margin-bottom: 16px; }
.pk-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.pk-names label { display: flex; flex-direction: column; gap: 3px; }
.pk-names small { font-size: .72rem; color: var(--ink-2); }
.pk-names input { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); min-width: 0; }
.pk-names input:focus { outline: 2px solid var(--brass); outline-offset: 1px; }
.pk-design { margin: 6px 0 18px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.pk-design summary { cursor: pointer; font-weight: 600; }
.pk-design[open] summary { margin-bottom: 12px; }
.pk-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(0,0,0,.25); }
.pk-preview { min-height: 0 !important; display: flex !important; gap: 14px; justify-content: center; align-items: center; padding: 14px !important; border-width: 8px !important; }
.pk-preview svg { height: 92px; width: auto; }
/* Tischfarben */
.tbl-gruen { --felt1: #2a7556; --felt2: #174836; --rim: #6b4a2b; }
.tbl-blau { --felt1: #2d5f8f; --felt2: #173554; --rim: #5a3d26; }
.tbl-rot { --felt1: #8a2f34; --felt2: #521a1e; --rim: #3b2a1c; }
.tbl-anthrazit { --felt1: #4a5257; --felt2: #25292c; --rim: #17191b; }
.tbl-holz { --felt1: #a0703f; --felt2: #6b4523; --rim: #3e2714; }
.tbl-sand { --felt1: #b79a62; --felt2: #806638; --rim: #574326; }
.mm-table.tbl-gruen, .mm-table.tbl-blau, .mm-table.tbl-rot, .mm-table.tbl-anthrazit, .mm-table.tbl-holz, .mm-table.tbl-sand,
.pk-swatch.tbl-gruen, .pk-swatch.tbl-blau, .pk-swatch.tbl-rot, .pk-swatch.tbl-anthrazit, .pk-swatch.tbl-holz, .pk-swatch.tbl-sand {
  background: radial-gradient(70% 70% at 50% 45%, var(--felt1), var(--felt2)); border-color: var(--rim);
}
.mm-table.tbl-holz { background: repeating-linear-gradient(92deg, rgba(0,0,0,.05) 0 3px, transparent 3px 11px), radial-gradient(70% 70% at 50% 45%, var(--felt1), var(--felt2)); }
/* Tisch */
.pk-table { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); }
.pk-side { display: flex; flex-direction: column; gap: 14px; align-items: center; }
.pk-table.many .mm-backs svg { height: 62px; }
.pk-center { flex-direction: column; gap: 10px; min-height: 200px; text-align: center; }
.pk-center .pk-card svg { height: 120px; width: auto; }
.pk-center .pk-cards svg { height: 120px; width: auto; }
.pk-center.flip .pk-trick figure:last-child svg { animation: mm-drop .45s ease-out; }
.pk-center .small-cards svg { height: 80px; }
.pk-trick { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; align-items: flex-end; min-height: 150px; }
.pk-trick figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.pk-trick figure.win svg { filter: drop-shadow(0 0 8px rgba(242,201,76,.95)); }
.pk-trick figure.dim { opacity: .55; }
.pk-trick figcaption { font-size: .74rem; font-weight: 600; background: rgba(0,0,0,.28); padding: 1px 8px; border-radius: 999px; }
.pk-trick.empty { align-items: center; }
.pk-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; align-items: center; }
.pk-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 3px 11px; border-radius: 999px; background: rgba(0,0,0,.3); }
.pk-pill.gold { background: #f2c94c; color: #1d2a24; }
/* Pokerchips (PlayKit.Chips, Zeichnung in illustrations.js): Farben fest im SVG – bewusst in allen Looks gleich, damit die Werte erkennbar bleiben */
.cp-stack { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.cp-svg { display: block; flex: none; }
.cp-amt { font-size: .85rem; font-weight: 700; color: #fff; background: rgba(0,0,0,.34); padding: 1px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.cp-ico { vertical-align: -2px; flex: none; }
.cp-ico-rim { fill: #121c18; stroke: #d9b45a; stroke-width: 1.4; }
.cp-ico-notch { fill: none; stroke: #b3261e; stroke-width: 2.4; stroke-dasharray: 3.2 3.2; }
.cp-ico-hub { fill: none; stroke: #d9b45a; stroke-width: 1; }
.cp-bet { min-height: 46px; display: flex; align-items: center; justify-content: center; }
.cp-pot.cp-empty { display: inline-block; width: 48px; height: 36px; }
.mm2-fly > .cp-svg { width: 100% !important; height: 100% !important; }
/* Trump: light disc with the real suit symbol + small label + suit name (PlayKit.trumpBadge) */
.pk-trump { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: var(--btn-radius-sm);
  background: rgba(0,0,0,.34); box-shadow: inset 0 0 0 1px rgba(242,201,76,.55); color: #fff; line-height: 1.1; }
.pk-trump-sym { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: #fffdf8;
  box-shadow: 0 0 0 2px #f2c94c, 0 2px 6px rgba(0,0,0,.3); }
.pk-trump-sym svg { width: 20px; height: 20px; }
.pk-trump-t { display: flex; flex-direction: column; }
.pk-trump-t small { font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.pk-trump-t b { font-size: .92rem; font-weight: 800; color: #f2c94c; }
.pk-trump.none { padding-left: 12px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.pk-trump.none .pk-trump-t b { color: #fff; }
.pk-trump .pk-card svg { height: 38px !important; }
[data-look="neo"] .pk-trump { box-shadow: inset 0 0 0 1px rgba(62,230,255,.5); }
[data-look="neo"] .pk-trump-sym { box-shadow: 0 0 0 2px var(--cyan), 0 0 10px rgba(62,230,255,.4); }
[data-look="neo"] .pk-trump-t b { color: var(--cyan); }
.pk-pill .pk-card svg, .pk-pill .pk-cards svg { height: 34px !important; }
.pk-zone { border: 1px dashed rgba(255,255,255,.3); border-radius: 12px; padding: 6px 8px; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.pk-zone > small { font-size: .7rem; opacity: .8; font-weight: 600; letter-spacing: .03em; }
.pk-zone .pk-cards svg, .pk-zone .pk-card svg { height: 70px !important; }
.pk-melds { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 100%; }
.pk-melds .pk-cards svg { height: 64px !important; }
.pk-choice { background: none; border: 2px solid transparent; border-radius: 12px; padding: 2px; cursor: pointer; color: inherit; font: inherit; }
.pk-choice:hover, .pk-choice:focus-visible { border-color: #f2c94c; outline: none; }
.pk-choice.on { border-color: #f2c94c; background: rgba(242,201,76,.15); }
.pk-mini { border-collapse: collapse; font-size: .8rem; margin: 0 auto; }
.pk-mini th, .pk-mini td { padding: 2px 8px; border-bottom: 1px solid rgba(255,255,255,.15); }
.pk-team { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.pk-team.t0 { background: #6fc3ff; } .pk-team.t1 { background: #ff9d6f; }
.pk-mybar { display: flex; gap: 8px; align-items: center; justify-content: center; margin: 10px 0 -8px; font-size: .9rem; flex-wrap: wrap; }
.pk-mybar .ar-badge { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.pk-mybar .ar-badge.done { background: #f2c94c; color: #1d2a24; border-color: #f2c94c; }
.pk-hand .mm-handcard.ok { transform: none; cursor: pointer; }
.pk-hand .mm-handcard.ok svg { filter: none; }
.pk-hand.mine .mm-handcard.ok svg { filter: drop-shadow(0 0 5px rgba(201,162,74,.85)); }
.pk-hand .mm-handcard.ok:hover, .pk-hand .mm-handcard.ok:focus-visible { transform: translateY(-12px); outline: none; }
.pk-hand .mm-handcard.sel { transform: translateY(-24px); }
.pk-hand .mm-handcard.sel svg { filter: drop-shadow(0 0 9px rgba(242,201,76,1)) !important; }
.pk-hand.lots .mm-handcard { margin-left: -60px; }
.pk-result h3 { margin-top: 0; }
.pk-result table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pk-result th, .pk-result td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.pk-result td.num, .pk-result th.num { text-align: right; }
.pk-result tr.win td { font-weight: 700; color: var(--felt); }
.pk-result .pk-cards svg { height: 60px; }
.pk-extra { margin-top: 10px; }
@media (max-width: 640px) {
  .pk-table { grid-template-columns: 1fr 1fr; grid-template-areas: "left right" "top top" "center center" "status status"; }
  .pk-side { gap: 6px; }
  .pk-center { min-height: 0; }
  .pk-center .pk-card svg, .pk-center .pk-cards svg { height: 84px; }
  .pk-trick { min-height: 100px; gap: 6px; }
  .pk-zone .pk-cards svg, .pk-zone .pk-card svg { height: 50px !important; }
  .pk-melds .pk-cards svg { height: 46px !important; }
  .pk-hand.lots .mm-handcard { margin-left: -62px; }
  .pk-table .mm-backs svg { height: 38px; }
}
.pk-badges { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }

/* Sevens: Auslage als Raster */
.sv-grid { border-collapse: separate; border-spacing: 3px; margin: 0 auto; font-weight: 700; font-size: .85rem; }
.sv-grid th { color: #fff; font-size: 1.1rem; padding: 0 4px; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.sv-grid th.red { color: #ffb4b4; }
.sv-grid td { width: 26px; height: 34px; text-align: center; border-radius: 4px; background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.25); color: #222; }
.sv-grid td.seven { border-style: solid; }
.sv-grid td.on { background: #fffdf6; border: 1px solid #d8d2c2; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
@media (max-width: 560px) { .sv-grid td { width: 19px; height: 26px; font-size: .7rem; } .sv-grid { border-spacing: 2px; } }

/* „Spiel hinzufügen“ */
.add-game {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(201,162,74,.6); background: rgba(201,162,74,.14); color: #f6f1e7; font: 600 .88rem var(--sans); white-space: nowrap;
}
.add-game span[aria-hidden] { font-size: 1.15rem; line-height: 1; color: var(--brass); }
.add-game:hover { background: rgba(201,162,74,.28); }
.add-game:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
@media (max-width: 760px) { .add-game { height: 32px; } }
@media (max-width: 380px) { .logo span { font-size: 1.1rem; } .header-inner { gap: 10px; } }

.sg-dialog { width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.sg-dialog::backdrop { background: rgba(10, 20, 16, .55); }
.sg-form { display: flex; flex-direction: column; max-height: calc(100vh - 32px); }
.sg-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 22px 24px 12px; border-bottom: 1px solid var(--line); }
.sg-head h2 { font-family: var(--serif); margin: 0 0 4px; font-size: 1.5rem; }
.sg-head p { margin: 0; font-size: .93rem; }
.sg-x { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.sg-x:hover { background: var(--paper-2); }
.sg-body { overflow-y: auto; padding: 8px 24px 16px; }
.sg-body fieldset { border: 0; margin: 14px 0 0; padding: 0; }
.sg-body legend { font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.sg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.sg-field { display: flex; flex-direction: column; gap: 5px; font-size: .9rem; }
.sg-field.wide { grid-column: 1 / -1; }
.sg-field > span { font-weight: 600; }
.sg-field small.muted { font-weight: 400; }
.sg-req { color: var(--red); font-style: normal; }
.sg-hint { color: var(--ink-2); font-size: .8rem; }
.sg-field input, .sg-field select, .sg-field textarea {
  width: 100%; box-sizing: border-box; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: 400 .95rem var(--sans);
}
.sg-field textarea { resize: vertical; min-height: 56px; line-height: 1.45; }
.sg-field input:focus, .sg-field select:focus, .sg-field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(201,162,74,.25); }
.sg-field :user-invalid { border-color: var(--red); }
.sg-honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sg-consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: .88rem; }
.sg-consent input { margin-top: 3px; flex: none; }
.sg-msg { margin: 12px 0 0; font-size: .9rem; }
.sg-msg:empty { display: none; }
.sg-msg.err { padding: 10px 12px; border-radius: 10px; background: rgba(184,50,42,.1); color: var(--red); }
.sg-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--line); }
.sg-foot .btn { margin: 0; }
.sg-done { text-align: center; padding: 36px 8px 28px; }
.sg-check { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--felt); color: #fff; font-size: 1.6rem; }
.sg-done h3 { font-family: var(--serif); font-size: 1.4rem; margin: 0 0 6px; }
@media (max-width: 600px) {
  .sg-grid { grid-template-columns: 1fr 1fr; }
  .sg-field:not(.half) { grid-column: 1 / -1; }
  .sg-head, .sg-body, .sg-foot { padding-left: 16px; padding-right: 16px; }
  .sg-dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .sg-form { max-height: 100dvh; height: 100%; }
  .sg-body { flex: 1; }
}

/* Feste Tischgröße (PlayKit.fitTable): Höhe inklusive Rand und Innenabstand */
.tbl-fixed { box-sizing: border-box; }

/* ================= Mau-Mau: großer Spieltisch ================= */
.mm2-layout { grid-template-columns: minmax(0, 1fr) 250px; }
.mm2-table {
  --felt1: #2a7556; --felt2: #123d2b;
  position: relative; display: grid; color: #fff; border-radius: 26px;
  grid-template-columns: minmax(130px, 1fr) minmax(0, 2.4fr) minmax(130px, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  grid-template-areas: ". top ." "left center right" "status status status" "me me me";
  gap: 10px 14px; padding: 18px 18px 14px; min-height: clamp(560px, 74vh, 800px);
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .11 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    radial-gradient(85% 75% at 50% 42%, var(--felt1), var(--felt2));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 0 0 0 7px rgba(0,0,0,.18), inset 0 0 0 8px rgba(226,178,58,.35), inset 0 0 90px rgba(0,0,0,.35), 0 18px 40px rgba(20,30,25,.28);
  overflow: hidden;
}
.mm2-table.tbl-blau { --felt1: #2d5f8f; --felt2: #142d4a; }
.mm2-table.tbl-rot { --felt1: #8a2f34; --felt2: #4a171b; }
.mm2-table.tbl-anthrazit { --felt1: #4a5257; --felt2: #202427; }
.mm2-table.tbl-holz { --felt1: #a0703f; --felt2: #5e3c1e; }
.mm2-table.tbl-sand { --felt1: #b79a62; --felt2: #745b31; }

.mm2-seat { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.mm2-top { grid-area: top; } .mm2-left { grid-area: left; } .mm2-right { grid-area: right; }
.mm2-backs { min-height: 124px; display: flex; align-items: center; justify-content: center; }
.mm2-backs svg { height: 124px; width: auto; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); }
.mm2-left .mm2-backs svg { transform: rotate(90deg); }
.mm2-right .mm2-backs svg { transform: rotate(-90deg); }
.mm2-left .mm2-backs, .mm2-right .mm2-backs { min-height: 190px; }
.mm2-tag { display: inline-flex; align-items: baseline; gap: 8px; padding: 5px 14px; border-radius: 999px; background: rgba(0,0,0,.32); font-size: .86rem; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.mm2-tag b { font-weight: 700; letter-spacing: .01em; }
.mm2-tag span { color: rgba(255,255,255,.7); font-size: .8rem; }
.mm2-seat.active .mm2-tag, .mm2-me.active .mm2-tag { background: #e2b23a; color: #1d2a24; box-shadow: 0 0 0 4px rgba(226,178,58,.28); }
.mm2-seat.active .mm2-tag span, .mm2-me.active .mm2-tag span { color: rgba(29,42,36,.75); }
.mm2-mau { font-style: normal; font-weight: 800; color: #f2c94c; }
.mm2-seat.active .mm2-mau { color: #8f2a24; }

.mm2-center { grid-area: center; display: flex; align-items: center; justify-content: center; gap: clamp(20px, 5vw, 56px); }
.mm2-stock, .mm2-discard { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mm2-stock { background: none; border: 0; padding: 6px; color: #fff; font: inherit; cursor: default; border-radius: 14px; }
.mm2-pile { position: relative; display: block; width: 116px; height: 156px; }
.mm2-pile > svg, .mm2-pile > .mm2-under svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mm2-prev { position: absolute; inset: 0; transform: rotate(var(--r)); }
.mm2-prev svg { width: 100%; height: 100%; display: block; }
.mm2-under { position: absolute; inset: 0; transform: translate(-3px, -4px); opacity: .9; }
.mm2-stock.can { cursor: pointer; }
.mm2-stock.can .mm2-pile > svg { filter: drop-shadow(0 0 10px rgba(242,201,76,.75)); }
.mm2-stock.can:hover .mm2-pile > svg { transform: translateY(-3px); transition: transform .15s; }
.mm2-lbl { font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.82); letter-spacing: .03em; min-height: 1.6em; display: flex; align-items: center; }
.mm2-slot { position: absolute; inset: 10px 9px; border: 2px dashed rgba(255,255,255,.25); border-radius: 10px; }
.mm2-discard .mm2-pile.flip > svg { animation: mm2-land .42s cubic-bezier(.2,.8,.3,1); }
@keyframes mm2-land { from { transform: translateY(-36px) rotate(-10deg) scale(1.06); opacity: .4; } }
.mm2-wish { display: inline-flex; align-items: center; gap: 6px; background: #fffdf8; color: #1d2a24; padding: 3px 10px 3px 8px; border-radius: 999px; font-weight: 700; box-shadow: 0 0 0 2px var(--brass), 0 2px 6px rgba(0,0,0,.25); }
.mm2-wish svg { width: 14px; height: 14px; }

.mm2-status { grid-area: status; justify-self: center; margin: 0; padding: 7px 18px; border-radius: 999px; background: rgba(0,0,0,.28); font-weight: 600; text-align: center; min-height: 1.5em; max-width: 100%; }

.mm2-me { grid-area: me; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tag tag" "hand side"; align-items: end; gap: 6px 12px; padding-top: 4px; }
.mm2-me > .mm2-tag { grid-area: tag; justify-self: center; }
.mm2-hand { grid-area: hand; display: flex; justify-content: center; align-items: flex-end; min-height: 196px; padding: 26px 4px 4px; min-width: 0; }
.mm2-side { grid-area: side; display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; }
.mm2-side:empty { display: none; }
.mm2-card { position: relative; flex: none; background: none; border: 0; padding: 0; cursor: default; transition: transform .16s ease, opacity .2s; }
.mm2-card svg { display: block; height: 168px; width: auto; filter: drop-shadow(0 4px 6px rgba(0,0,0,.28)); }
.mm2-card.hidden { visibility: hidden; }
.mm2-hand.mine .mm2-card:not(.ok) svg { filter: brightness(.82) saturate(.85) drop-shadow(0 4px 6px rgba(0,0,0,.28)); }
.mm2-card.ok { cursor: pointer; transform: translateY(-14px); }
.mm2-card.ok:hover, .mm2-card.ok:focus-visible { transform: translateY(-28px); outline: none; z-index: 2; }
.mm2-card.ok:focus-visible svg { filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 6px rgba(255,255,255,.9)); }
.mm2-card.drawn { transform: translateY(-28px); }
/* Neu gezogene Karte: dünner leuchtender Rand für 3 Sekunden */
.mm2-card.fresh::after {
  content: ""; position: absolute; left: 10.3%; top: 7.7%; width: 79.4%; height: 84.6%; border-radius: 9%/6.3%;
  border: 2px solid #8fe6ff; box-shadow: 0 0 8px 2px rgba(110,215,255,.85), inset 0 0 6px rgba(110,215,255,.5);
  pointer-events: none; animation: mm2-fresh 3s linear var(--age, 0ms) both;
}
@keyframes mm2-fresh { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }

.mm2-maubtn, .mm2-keep {
  border: 0; border-radius: var(--btn-radius); padding: 11px 18px; font: 700 .95rem var(--sans); cursor: pointer; white-space: nowrap;
  background: #fffdf6; color: #1d2a24; box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.mm2-maubtn { background: #e2b23a; }
.mm2-maubtn.on { background: #8f2a24; color: #fff; }
.mm2-maubtn:hover, .mm2-keep:hover { filter: brightness(1.05); transform: translateY(-1px); }

/* „Mau!“ nach der vorletzten Karte: wandert --mau-ms lang über den Tisch, der Balken zeigt die Restzeit.
   --mau-at (negativ) hält Position und Balken bei einem erneuten Zeichnen an der richtigen Stelle. */
.mm2-maufly { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.mm2-maunow {
  position: absolute; left: 50%; top: 40%; translate: -50% -50%; pointer-events: auto; overflow: hidden;
  border: 0; border-radius: var(--btn-radius); padding: 14px 28px 18px; cursor: pointer;
  font: 800 1.45rem/1 var(--sans); letter-spacing: .02em; background: #e2b23a; color: #1d2a24;   /* wie der frühere Mau-Knopf: auf jedem Tischfilz gut sichtbar */
  box-shadow: 0 0 0 3px rgba(255,255,255,.85), 0 8px 22px rgba(0,0,0,.4);
  animation: var(--mau-path) var(--mau-ms) linear var(--mau-at) both;
}
.mm2-maufly.p1 { --mau-path: mau-p1; } .mm2-maufly.p2 { --mau-path: mau-p2; } .mm2-maufly.p3 { --mau-path: mau-p3; }
.mm2-mautime { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: #8f2a24; transform-origin: left; animation: mau-time var(--mau-ms) linear var(--mau-at) both; }
.mm2-maunow:hover { filter: brightness(1.08); }
@keyframes mau-time { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes mau-p1 { 0% { left: 50%; top: 45%; } 20% { left: 20%; top: 18%; } 40% { left: 78%; top: 30%; } 60% { left: 30%; top: 62%; } 80% { left: 72%; top: 70%; } 100% { left: 18%; top: 40%; } }
@keyframes mau-p2 { 0% { left: 50%; top: 45%; } 20% { left: 80%; top: 62%; } 40% { left: 22%; top: 28%; } 60% { left: 70%; top: 16%; } 80% { left: 25%; top: 68%; } 100% { left: 78%; top: 42%; } }
@keyframes mau-p3 { 0% { left: 50%; top: 45%; } 20% { left: 26%; top: 66%; } 40% { left: 60%; top: 14%; } 60% { left: 82%; top: 55%; } 80% { left: 18%; top: 22%; } 100% { left: 58%; top: 70%; } }
@media (max-width: 640px) { .mm2-maunow { font-size: 1.25rem; padding: 12px 22px 16px; } }
@media (prefers-reduced-motion: reduce) { .mm2-maunow { animation: none; left: 50%; top: 45%; } }
.mm2-status.err { background: #fffdf6; color: #b8322a; }

/* Wunschfarbe – Farbwahl als kleine Spielkarten (Farben wie auf den Kartenfronten) */
.mm2-wishpick {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); z-index: 5;
  padding: 14px 18px 18px; border-radius: var(--radius); background: rgba(0,0,0,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.45), inset 0 0 0 1px color-mix(in srgb, var(--brass) 55%, transparent);
  text-align: center; animation: mm2-pop .2s ease-out;
}
.mm2-wishpick p { margin: 0 0 12px; font: 700 .75rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.78); }
.mm2-wishpick > div { display: flex; gap: 12px; }
.mm2-wishpick button { width: 78px; aspect-ratio: 5 / 7; padding: 10px 4px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; cursor: pointer; background: #fffdf8; border: 1px solid rgba(0,0,0,.12); box-shadow: 0 4px 10px rgba(0,0,0,.3);
  color: #1d2a24; font: 700 .72rem var(--sans); letter-spacing: .06em; text-transform: uppercase; transition: transform .15s, box-shadow .15s; }
.mm2-wishpick button svg { width: 40px; height: 40px; }
.mm2-wishpick button:hover, .mm2-wishpick button:focus-visible { transform: translateY(-6px); box-shadow: 0 0 0 3px var(--brass), 0 10px 18px rgba(0,0,0,.35); outline: none; }
@keyframes mm2-pop { from { transform: translate(-50%, -46%) scale(.94); opacity: 0; } }

/* Mischen */
.mm2-shuffle { position: absolute; inset: 0; }
.mm2-shuffle > span { position: absolute; inset: 0; animation: mm2-riffle 1s cubic-bezier(.45,.05,.4,1) calc(var(--i) * 18ms) 2 both; }
.mm2-shuffle > span svg { width: 100%; height: 100%; display: block; }
.mm2-shuffle > span.l { --dx: -62px; --r: -14deg; }
.mm2-shuffle > span.r { --dx: 62px; --r: 14deg; }
@keyframes mm2-riffle {
  0% { transform: translate(0, calc(var(--i) * -.6px)); }
  30% { transform: translate(var(--dx), -10px) rotate(var(--r)); }
  48% { transform: translate(calc(var(--dx) * .9), -4px) rotate(calc(var(--r) * .6)); }
  78% { transform: translate(0, calc(var(--i) * -1.4px - 6px)); }
  100% { transform: translate(0, calc(var(--i) * -.6px)); }
}
/* fliegende Karten (Austeilen, erste Karte) */
.mm2-fly { position: fixed; z-index: 60; pointer-events: none; transform-origin: center; perspective: 600px; }
.mm2-fly svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 8px rgba(0,0,0,.3)); }
.mm2-fly-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.mm2-fly-back, .mm2-fly-face { position: absolute; inset: 0; backface-visibility: hidden; }
.mm2-fly-face { transform: rotateY(180deg); }

@media (max-width: 1100px) { .mm2-layout { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .mm2-table { grid-template-columns: 1fr 1fr; grid-template-areas: "left right" "top top" "center center" "status status" "me me"; padding: 12px 8px 10px; min-height: 0; gap: 8px; border-radius: 18px; }
  .mm2-table.seats-2 { grid-template-areas: "top top" "center center" "status status" "me me"; }
  .mm2-left .mm2-backs svg, .mm2-right .mm2-backs svg { transform: none; }
  .mm2-left .mm2-backs, .mm2-right .mm2-backs, .mm2-backs { min-height: 62px; }
  .mm2-backs svg { height: 62px; }
  .mm2-tag { font-size: .78rem; padding: 4px 10px; }
  .mm2-pile { width: 78px; height: 105px; }
  .mm2-center { padding: 6px 0; }
  .mm2-hand { min-height: 142px; padding-top: 20px; }
  .mm2-card svg { height: 118px; }
  .mm2-me { grid-template-columns: 1fr; grid-template-areas: "tag" "hand" "side"; }
  .mm2-side { flex-direction: row; justify-content: center; padding-bottom: 4px; }
  .mm2-status { font-size: .86rem; padding: 6px 12px; }
  .mm2-wishpick { width: calc(100% - 24px); max-width: 360px; padding: 12px; }
  .mm2-wishpick > div { justify-content: center; gap: 8px; }
  .mm2-wishpick button { width: auto; flex: 1; gap: 6px; }
  .mm2-wishpick button svg { width: 32px; height: 32px; }
  .mm2-shuffle > span.l { --dx: -40px; } .mm2-shuffle > span.r { --dx: 40px; }
}

/* Regeln als Vollbild-Fenster während eines Spiels */
html.modal-open, html.modal-open body { overflow: hidden; }
.rules-modal { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink); }
.rules-modal[open] { display: flex; flex-direction: column; animation: rm-in .18s ease-out; }
.rules-modal::backdrop { background: rgba(10, 20, 16, .5); }
@keyframes rm-in { from { opacity: 0; transform: translateY(12px); } }
.rules-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px 10px 20px; background: var(--felt-dark); color: #f6f1e7; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.rules-bar span { font-size: .95rem; }
/* Schließen-Knopf in dunklen Kopfleisten (Regeln, „Was können wir spielen?“): gezeichnetes Kreuz, exakt mittig */
.rules-close { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); color: #f6f1e7; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.rules-close svg { display: block; width: 18px; height: 18px; transition: transform .2s ease; }
.rules-close:hover { background: rgba(255,255,255,.14); border-color: var(--brass); color: #fff; }
.rules-close:hover svg { transform: rotate(90deg); }
.rules-close:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.rules-close:active { transform: scale(.94); }
[data-look="neo"] .rules-close { border-radius: 10px; }
[data-look="neo"] .rules-close:hover { border-color: var(--cyan); color: var(--cyan); }
[data-look="neo"] .rules-close:focus-visible { outline-color: var(--cyan); }
@media (prefers-reduced-motion: reduce) { .rules-close, .rules-close svg { transition: none; } .rules-close:hover svg { transform: none; } }
.rules-scroll { flex: 1; overflow-y: auto; padding: 24px 0 48px; overscroll-behavior: contain; }
.rules-modal .toc { top: 16px; }

/* ================= Klondike ================= */
.kl { --cw: 100px; }
.kl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 12px; }
.kl-bar .btn.small { margin-top: 0; }
.kl-bar .btn[disabled] { opacity: .45; cursor: default; }
.kl-switch { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; cursor: pointer; }
.kl-switch input { width: 18px; height: 18px; accent-color: var(--felt); }
.kl-stat { margin-left: auto; font-size: .92rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.kl-stat b { color: var(--ink); }
.kl-board {
  --felt1: #2a7556; --felt2: #123d2b;
  position: relative; padding: calc(var(--gap) * 1.6) calc(var(--gap) * 1.2) calc(var(--gap) * 3); border-radius: 22px; box-sizing: border-box;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .11 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    radial-gradient(85% 75% at 50% 40%, var(--felt1), var(--felt2));
  box-shadow: inset 0 0 0 7px rgba(0,0,0,.18), inset 0 0 0 8px rgba(226,178,58,.35), inset 0 0 90px rgba(0,0,0,.35), 0 18px 40px rgba(20,30,25,.25);
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
  isolation: isolate; /* own stacking context: card z-indexes must not rise above the sticky site header */
}
.kl-board.tbl-blau { --felt1: #2d5f8f; --felt2: #142d4a; } .kl-board.tbl-rot { --felt1: #8a2f34; --felt2: #4a171b; }
.kl-board.tbl-anthrazit { --felt1: #4a5257; --felt2: #202427; } .kl-board.tbl-holz { --felt1: #a0703f; --felt2: #5e3c1e; } .kl-board.tbl-sand { --felt1: #b79a62; --felt2: #745b31; }
.kl-top { display: flex; gap: var(--gap); margin: 0 auto calc(var(--gap) * 1.6); width: calc(var(--cw) * 7 + var(--gap) * 6); }
.kl-spacer { flex: 1 1 0; min-width: 0; }
.kl-slot { position: relative; flex: none; width: var(--cw); height: var(--ch); }
.kl-waste { width: calc(var(--cw) * 1.48); }
.kl-top--r { flex-direction: row-reverse; }   /* option "Stock: rechts" */
.kl-top--r .kl-card.drawn { animation-name: kl-draw-r; }
@keyframes kl-draw-r { from { transform: translateX(calc(var(--cw) * 1.1)) rotateY(80deg); } }
.kl-tab { display: grid; grid-template-columns: repeat(7, var(--cw)); gap: var(--gap); align-items: start; height: var(--tab-h); width: calc(var(--cw) * 7 + var(--gap) * 6); margin: 0 auto; }
.kl-col { position: relative; min-height: var(--ch); border-radius: 8px; }
.kl-card { position: absolute; left: 0; top: 0; width: var(--cw); height: var(--ch); border-radius: calc(var(--cw) * .08); filter: drop-shadow(0 2px 3px rgba(0,0,0,.28)); outline: none; }
.kl-card svg { display: block; width: 100%; height: 100%; }
.kl-card.up { cursor: pointer; touch-action: none; }   /* touch: drag the card instead of scrolling the page */
.kl-card.up:focus-visible { box-shadow: 0 0 0 3px #f2c94c; }
.kl-card.sel { box-shadow: 0 0 0 3px #f2c94c, 0 0 14px rgba(242,201,76,.8); }
.kl-card.dragging { z-index: 500 !important; filter: drop-shadow(0 12px 14px rgba(0,0,0,.4)); cursor: grabbing; transition: none; }
.kl-card.moved { z-index: 50; }
.kl-card.drawn { animation: kl-draw .22s ease-out; }
@keyframes kl-draw { from { transform: translateX(calc(var(--cw) * -1.1)) rotateY(80deg); } }
.kl-card.deal { animation: kl-deal .38s cubic-bezier(.2,.7,.3,1) both; }
@keyframes kl-deal { from { transform: translate(var(--dx), var(--dy)); opacity: .2; } }
.kl-shake { animation: kl-shake .32s; }
@keyframes kl-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.kl-under { transform: translate(-2px, -3px); opacity: .85; }
.kl-stock { border: 0; padding: 0; background: none; cursor: pointer; }
.kl-count { position: absolute; right: -6px; bottom: -8px; z-index: 20; min-width: 24px; padding: 2px 6px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font: 700 .72rem var(--sans); }
.kl-empty { position: absolute; inset: 0; border: 2px dashed rgba(255,255,255,.28); border-radius: calc(var(--cw) * .08); display: grid; place-items: center; }
.kl-empty span { font: 700 calc(var(--cw) * .32) var(--serif); color: rgba(255,255,255,.22); }
.kl-recycle span { font-family: var(--sans); color: rgba(255,255,255,.55); }
.kl-drop.can > .kl-empty, .kl-drop.over > .kl-empty { border-color: #f2c94c; background: rgba(242,201,76,.12); }
.kl-col.can, .kl-col.over { box-shadow: 0 0 0 2px rgba(242,201,76,.7); }
.kl-found.can, .kl-found.over { box-shadow: 0 0 0 2px rgba(242,201,76,.8); border-radius: 8px; }
.kl-finish { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 600; border: 0; border-radius: var(--btn-radius); padding: 11px 20px; background: #e2b23a; color: #1d2a24; font: 700 .95rem var(--sans); cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.kl-stuck { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; font-size: .85rem; text-align: center; width: max-content; max-width: 92%; }
.kl-win { position: absolute; inset: 0; z-index: 700; display: grid; place-items: center; background: rgba(8, 26, 18, .55); border-radius: 22px; animation: rm-in .25s ease-out; }
.kl-win > div { padding: 24px 32px; border-radius: 18px; background: var(--card); color: var(--ink); text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.kl-win h3 { font-family: var(--serif); font-size: 1.8rem; margin: 0 0 6px; }
.kl-win p { margin: 0 0 16px; color: var(--ink-2); }
.kl-opts { max-width: none; margin: 18px 0 0; }
.kl-opts summary { cursor: pointer; font-weight: 700; }
.kl-opts[open] summary { margin-bottom: 14px; }
.kl-opts .mm-field:has(.pk-names) { display: none; }
.kl-help { font-size: .88rem; margin-top: 12px; }
@media (max-width: 640px) {
  .kl-board { padding: 10px 6px 26px; border-radius: 14px; }
  .kl-stat { margin-left: 0; width: 100%; }
  .kl-switch { font-size: .82rem; }
  .kl-count { font-size: .62rem; right: -4px; bottom: -6px; }
}

/* Klondike: Mischen, Gewonnen/Verloren, Ton */
.kl-board.is-shuffling .kl-tab .kl-card, .kl-board.is-shuffling .kl-stock .kl-card, .kl-board.is-shuffling .kl-count { visibility: hidden; }
.kl-shuffle { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 40; display: flex; flex-direction: column; align-items: center; gap: 14px; pointer-events: none; }
.kl-shuffle .mm2-shuffle { position: relative; display: block; width: calc(var(--cw) * 1.15); height: calc(var(--ch) * 1.15); }
.kl-shuffle .mm2-shuffle > span { animation-duration: .8s; }
.kl-shuffle .mm2-shuffle > span svg { border-radius: calc(var(--cw) * .09); filter: drop-shadow(0 3px 5px rgba(0,0,0,.35)); }
.kl-shuffle .mm2-shuffle > span.l { --dx: calc(var(--cw) * -.75); } .kl-shuffle .mm2-shuffle > span.r { --dx: calc(var(--cw) * .75); }
.kl-shuffle p { margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(0,0,0,.35); color: #fff; font-weight: 600; font-size: .9rem; }
.kl-end { position: absolute; inset: 0; z-index: 700; display: grid; place-items: center; padding: 16px; border-radius: 22px; background: rgba(8, 26, 18, .6); animation: rm-in .25s ease-out; }
.kl-end.lose { background: rgba(30, 12, 12, .55); }
.kl-end-box { max-width: 420px; padding: 26px 30px 24px; border-radius: 20px; background: var(--card); color: var(--ink); text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.45); animation: kl-pop .35s cubic-bezier(.2,.9,.3,1.25); }
@keyframes kl-pop { from { transform: scale(.85); opacity: 0; } }
.kl-end-icon { font-size: 2.6rem; line-height: 1; margin-bottom: 6px; }
.kl-end h3 { font-family: var(--serif); font-size: 2rem; margin: 0 0 8px; }
.kl-end.win h3 { color: var(--felt); }
.kl-end.lose h3 { color: var(--red); }
.kl-end p { margin: 0 0 18px; color: var(--ink-2); line-height: 1.5; }
.kl-end-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.kl-end .btn { margin: 0; }
.snd-toggle { min-width: 104px; }
.wt-dots { display: flex; gap: 0; margin: -10px 0 6px -7px; flex-wrap: wrap; }
/* Tippfläche 24 × 24 px (Barrierefreiheit), sichtbarer Punkt 10 px */
.wt-dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.wt-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: transform .15s; }
.wt-dot.on::before { background: var(--brass); transform: scale(1.25); }

/* Sprachauswahl */
.dropdown-menu.lang-menu { width: 190px; right: 0; left: auto; padding: 6px; }
.lang-menu a { padding: 8px 12px; }
.lang-menu a.cur { font-weight: 700; background: var(--paper-2); }
.lang-btn .lang-cur { font-weight: 700; letter-spacing: .04em; }
.legal-note { margin-bottom: 18px; }
/* Schriften für Sprachen ohne lateinische Schrift (die eigenen Schriften enthalten nur lateinische Zeichen) */
html[lang="ar"] { --sans: "Inter", "Noto Sans Arabic", "Segoe UI", Tahoma, "Geeza Pro", sans-serif; --serif: "Noto Naskh Arabic", "Amiri", "Times New Roman", serif; }
html[lang="zh-Hans"] { --sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; --serif: "Fraunces", "Songti SC", "Noto Serif SC", "SimSun", serif; }
html[lang="ru"] { --sans: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --serif: "Fraunces", Georgia, "PT Serif", "Times New Roman", serif; }
html[lang="ar"] body, html[lang="zh-Hans"] body { line-height: 1.7; }
/* Rechts-nach-links (Arabisch): Spieltische und Kartenfächer bleiben links-nach-rechts */
html[dir="rtl"] .play-area, html[dir="rtl"] .walkthrough .wt-stage, html[dir="rtl"] .hero-art, html[dir="rtl"] .tile-art, html[dir="rtl"] .sc-art { direction: ltr; }
html[dir="rtl"] .play-area .mm2-status, html[dir="rtl"] .play-area .mm-status, html[dir="rtl"] .play-area .kl-bar, html[dir="rtl"] .play-area .mm-setup, html[dir="rtl"] .play-area .pk-prompt, html[dir="rtl"] .play-area .mm-log, html[dir="rtl"] .play-area .play-score { direction: rtl; }
html[dir="rtl"] .rules ol, html[dir="rtl"] .rules ul { padding-right: 1.4em; padding-left: 0; }
html[dir="rtl"] .toc a { border-left: 0; border-right: 2px solid var(--line); }
html[dir="rtl"] .toc a.toc-active, html[dir="rtl"] .toc a:hover { border-right-color: var(--red); }
html[dir="rtl"] .rules h2.has-print .print-round { float: left; margin: -4px 12px 0 0; }
@media (min-width: 1100px) { html[dir="rtl"] .rules h2.has-print .print-round { left: auto; right: calc(100% + 24px); } }

/* Übersetzte Seite: ganzer Text „Spiel hinzufügen“ auf breiten Bildschirmen, kurz „Spiel“ auf schmalen */
.search-toggle, .nav-toggle { flex-shrink: 0; }
.search-toggle svg { display: block; width: 22px; height: 22px; }

/* Schwimmen: Mitte zum Tauschen */
.sw-mids { display: flex; gap: 8px; justify-content: center; }
.sw-mid { display: inline-block; border-radius: 8px; }
button.sw-mid { background: none; border: 0; padding: 0; cursor: pointer; transition: transform .15s; }
.sw-mids.pickable .sw-mid { outline: 2px dashed rgba(242,201,76,.8); outline-offset: 3px; }
.sw-mids.pickable button.sw-mid:hover { transform: translateY(-6px); }
.sw-fresh svg { filter: drop-shadow(0 0 6px rgba(242,201,76,.9)); }
.sw-reveal figure.lose figcaption { color: #ffb4a8; font-weight: 700; }
.pk-result tr.lose td { color: #b8322a; font-weight: 600; }

/* ===== Größerer Spieltisch: eigene Hand liegt auf dem Tisch, größere Karten ===== */
.mm-table { grid-template-areas: ". top ." "left center right" "status status status" "me me me"; min-height: 620px; padding: 22px 18px 14px; }
.tbl-me { grid-area: me; min-width: 0; display: flex; flex-direction: column; align-items: center; border-top: 1px dashed rgba(255,255,255,.14); padding-top: 6px; }
.tbl-me .mm-hand { width: 100%; padding: 30px 4px 6px; min-height: 0; }
.tbl-me .pk-mybar { margin: 0; color: #fff; }
.tbl-me .pk-mybar > b { padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.3); }
.tbl-me .pk-mybar .ar-badge { background: rgba(255,255,255,.16); border: 0; color: #fff; }
.tbl-me .pk-mybar .ar-badge.done { background: #f2c94c; color: #1d2a24; }
/* Dimmen auf dem SVG statt auf dem Button: Safari schneidet gefilterte Buttons sonst am clip-path der Hand ab */
.tbl-me .mm-hand.mine .mm-handcard:not(.ok) { opacity: 1; }
.tbl-me .mm-hand.mine .mm-handcard:not(.ok) svg { filter: brightness(.8) saturate(.85) drop-shadow(0 4px 6px rgba(0,0,0,.28)); }
.tbl-me .mm-handcard svg { height: 178px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.28)); }
.tbl-me .pk-hand.mine .mm-handcard.ok svg { filter: drop-shadow(0 0 6px rgba(242,201,76,.9)); }
.pk-center { min-height: 230px; }
.pk-center .pk-card svg, .pk-center .pk-cards svg { height: 140px; }
.ar-trick svg { height: 176px; } .ar-trick { min-height: 176px; }
.mm-backs svg { height: 92px; }
.mm2-card svg { height: 184px; }
.mm2-hand { min-height: 214px; }
@media (max-width: 640px) {
  .mm-table { grid-template-areas: "left right" "top top" "center center" "status status" "me me"; min-height: 0; padding: 12px 6px 8px; border-width: 6px; border-radius: 22px; }
  .mm-table:has(.mm-top):not(:has(.mm-left)) { grid-template-areas: "top top" "center center" "status status" "me me"; }
  .pk-table { grid-template-areas: "left right" "top top" "center center" "status status" "me me"; }
  .tbl-me .mm-hand { padding: 26px 2px 4px; }
  .tbl-me .mm-handcard svg, .tbl-me .ar-hand .mm-handcard svg { height: 138px; }
  .pk-center .pk-card svg, .pk-center .pk-cards svg { height: 108px; }
  .ar-trick svg { height: 132px; } .ar-trick { min-height: 132px; }
  .ar-empty { width: 92px; height: 132px; }
  .ar-pickcard svg { height: 124px; }
  .pk-trick { min-height: 120px; }
  .pk-zone .pk-cards svg, .pk-zone .pk-card svg { height: 60px !important; }
  .mm-backs svg, .pk-table .mm-backs svg { height: 44px; }
  .mm2-card svg { height: 142px; }
  .mm2-hand { min-height: 168px; }
  .mm2-pile { width: 92px; height: 124px; }
  .play-main .mm-status { font-size: .88rem; }
}
@media (max-width: 640px) {
  .kl-board { margin: 0 -12px; border-radius: 10px; }
  .mm-table, .mm2-table { margin-left: -8px; margin-right: -8px; }
}
.pk-zone .sw-mids svg { height: 140px !important; width: auto; }
.pk-zone .sw-mids { gap: 12px; }
@media (max-width: 640px) {
  .pk-center { min-height: 0; }
  .pk-zone .sw-mids svg { height: 112px !important; }
  .pk-zone .sw-mids { gap: 6px; }
}
/* Misch-/Austeil-Animation in allen Spielen */
.mm-handcard.hidden { visibility: hidden; }
.pk-ghost { visibility: hidden; }
.pk-deck { display: flex; flex-direction: column; align-items: center; gap: 8px; }
/* Spieleliste (/spieleliste): schlichte A–Z-Linkliste */
.game-index { list-style: none; margin: 0 0 40px; padding: 0; columns: 3 220px; column-gap: 32px; }
.game-index li { break-inside: avoid; padding: 5px 0; border-bottom: 1px solid var(--line); }
.game-index a { color: var(--ink); text-decoration: none; font-weight: 500; }
.game-index a:hover { color: var(--felt); text-decoration: underline; }
/* Sprachwahl in der Fußzeile */
.footer-inner > p:first-child { align-self: center; }
.footer-row { width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 10px; border-top: 1px dashed var(--line); }
.footer-row p { margin: 0; }
@media (max-width: 640px) { .footer-row { display: block; } .footer-row .footer-links { margin-top: 12px; } }
.footer-lang label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.footer-lang select { font: 600 .9rem var(--sans); color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: var(--btn-radius-sm); padding: 6px 30px 6px 12px; cursor: pointer; }
@media (max-width: 760px) {
  .dropdown-menu.lang-menu { width: auto; }
  .lang-menu a.cur { background: rgba(226,178,58,.22); color: #fff; }
}
/* Rommé */
.rm-piles { display: flex; gap: 22px; justify-content: center; align-items: flex-end; }
.rm-pile { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 4px; color: #fff; font: inherit; border-radius: 12px; }
.rm-pile small { font-size: .78rem; font-weight: 600; opacity: .85; }
.rm-pile .pk-card svg, .rm-pile .pk-cards svg { height: 120px !important; }
button.rm-pile { cursor: pointer; }
button.rm-pile svg { filter: drop-shadow(0 0 8px rgba(242,201,76,.8)); }
button.rm-pile:hover { transform: translateY(-3px); transition: transform .15s; }
.rm-stage { border-color: #f2c94c; border-style: dashed; }
/* Vändtia: offene Karten liegen versetzt auf den verdeckten */
.vt-slots { display: flex; gap: 10px; justify-content: center; padding: 6px 0 4px; }
.vt-slot { position: relative; display: inline-block; width: 62px; height: 104px; }
.vt-down, .vt-up { position: absolute; left: 0; top: 0; background: none; border: 0; padding: 0; margin: 0; font: inherit; }
.vt-up { top: 14px; left: 6px; }
.vt-slot svg { height: 86px !important; width: auto; display: block; }
button.vt-down, button.vt-up { cursor: pointer; }
button.vt-down svg, button.vt-up svg { filter: drop-shadow(0 0 8px rgba(242,201,76,.85)); }
button.vt-down:hover, button.vt-up:hover { transform: translateY(-4px); transition: transform .15s; }
.tbl-me .vt-slot { width: 84px; height: 136px; }
.tbl-me .vt-slot svg { height: 116px !important; }
@media (max-width: 640px) {
  .vt-slot { width: 46px; height: 80px; }
  .vt-slot svg { height: 64px !important; }
  .tbl-me .vt-slot { width: 62px; height: 104px; }
  .tbl-me .vt-slot svg { height: 86px !important; }
}
/* Shanghai Rummy (Go): aufgefächerte Ablage – jede Karte lässt sich mit allen darüber aufnehmen */
.sh-fan { display: flex; flex-wrap: wrap; justify-content: center; max-width: min(560px, 92vw); row-gap: 6px; }
.sh-take { display: inline-flex; background: none; border: 0; padding: 0; margin: 0; font: inherit; }
.sh-take + .sh-take { margin-left: -52px; }
.sh-pile .sh-take .pk-card svg { height: 96px !important; width: auto; display: block; }
button.sh-take { cursor: pointer; transition: transform .15s; }
button.sh-take:hover, button.sh-take:focus-visible { transform: translateY(-8px); }
button.sh-take:hover ~ .sh-take { transform: translateY(-8px); }
.sh-pile.can .sh-take svg { filter: drop-shadow(0 0 6px rgba(242,201,76,.7)); }
@media (max-width: 640px) {
  .sh-pile .sh-take .pk-card svg { height: 74px !important; }
  .sh-take + .sh-take { margin-left: -40px; }
}

@media (max-width: 640px) {
  .rm-pile .pk-card svg, .rm-pile .pk-cards svg { height: 92px !important; }
  .rm-row .pk-card svg { height: 72px !important; }
  .rm-row .pk-card + .pk-card { margin-left: -35px; }
  .rm-melds { gap: 5px; }
}

/* Auslagen vor den Spielern (Rommé) + breiter Tisch */
.play-layout.wide { grid-template-columns: minmax(0, 1fr); }
.play-layout.wide .play-score { position: static; max-width: 640px; }
.pk-table.wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.25fr); min-height: 680px; }
.pk-table.wide .mm-top.ar-tops { gap: 18px; align-items: flex-start; }
.pk-table.wide .mm-top .mm-opp { flex: 1 1 0; min-width: 0; }
.pk-seatzone { width: 100%; min-width: 0; margin-top: 4px; }
/* Koi-Koi: gesammelte Karten je Kartentyp kompakt in einer Reihe */
.kk-taken { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.kk-taken .pk-zone { flex-direction: row; padding: 3px 6px; gap: 4px; }
.kk-taken .pk-zone .pk-cards svg { height: 46px !important; width: auto !important; }
@media (max-width: 640px) { .kk-taken { gap: 3px; } .kk-taken .pk-zone { padding: 2px 3px; } .kk-taken .pk-zone .pk-cards svg { height: 32px !important; width: auto !important; } }
.tbl-me .pk-seatzone { margin: 0 0 8px; }
.rm-melds { display: flex; flex-wrap: wrap; gap: 6px 8px; justify-content: center; }
.rm-meld { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; margin: 0; padding: 4px 6px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.12); color: #fff; font: inherit; }
.rm-meld small { font-size: .7rem; font-weight: 700; color: #f2c94c; }
.rm-row .pk-card svg { height: 84px !important; width: auto; display: block; }
.rm-row .pk-card + .pk-card { margin-left: -42px; }
.pk-side .rm-row .pk-card svg, .mm-top .rm-row .pk-card svg { height: 74px !important; }
.pk-side .rm-row .pk-card + .pk-card, .mm-top .rm-row .pk-card + .pk-card { margin-left: -38px; }
.pk-table.many .mm-top .rm-row .pk-card svg { height: 62px !important; }
.pk-table.many .mm-top .rm-row .pk-card + .pk-card { margin-left: -33px; }
@media (max-width: 640px) {
  .pk-table.wide { grid-template-columns: minmax(0, 1fr); grid-template-areas: "left" "top" "right" "center" "status" "me"; min-height: 0; }
  .pk-table.wide .pk-side { flex-direction: column; }
  .pk-table.wide .mm-top.ar-tops { flex-direction: column; gap: 10px; }
  .pk-table.wide .mm-opp { width: 100%; }
  .rm-row .pk-card svg, .pk-side .rm-row .pk-card svg, .mm-top .rm-row .pk-card svg, .pk-table.many .mm-top .rm-row .pk-card svg { height: 62px !important; }
  .rm-row .pk-card + .pk-card, .pk-side .rm-row .pk-card + .pk-card, .mm-top .rm-row .pk-card + .pk-card, .pk-table.many .mm-top .rm-row .pk-card + .pk-card { margin-left: -32px; }
  .rm-melds { gap: 4px 5px; }
}
.rm-row { display: flex; align-items: flex-start; }
.rm-meld .rm-row, .rm-stage .rm-row { justify-content: center; }
.tbl-me .mm-hand .muted { color: rgba(255,255,255,.65); align-self: center; }
/* Neu gezogene Karte: kurz einfliegen + 3 Sekunden leuchtender Rand (alle Spiele) */
.mm-handcard.fresh svg { animation: hand-new .55s cubic-bezier(.2,.8,.3,1.15) var(--age, 0ms) both; }
@keyframes hand-new { from { transform: translateY(-46px) scale(1.08); opacity: .15; } }
.mm-handcard.fresh::after {
  content: ""; position: absolute; left: 10.3%; top: 7.7%; width: 79.4%; height: 84.6%; border-radius: 9%/6.3%;
  border: 2px solid #8fe6ff; box-shadow: 0 0 8px 2px rgba(110,215,255,.85), inset 0 0 6px rgba(110,215,255,.5);
  pointer-events: none; animation: mm2-fresh 3s linear var(--age, 0ms) both;
}
@media (prefers-reduced-motion: reduce) { .mm-handcard.fresh svg { animation: none; } }
/* Räuber-Rommé */
button.rm-steal { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; border-radius: 6px; transition: transform .15s; position: relative; }
.rm-row button.rm-steal + button.rm-steal { margin-left: -44px; }
.pk-side .rm-row button.rm-steal + button.rm-steal, .mm-top .rm-row button.rm-steal + button.rm-steal { margin-left: -38px; }
.pk-table.many .mm-top .rm-row button.rm-steal + button.rm-steal { margin-left: -33px; }
.rm-row button.rm-steal .pk-card + .pk-card { margin-left: 0; }
button.rm-steal:hover, button.rm-steal:focus-visible { transform: translateY(-10px); z-index: 2; outline: none; }
button.rm-steal:hover svg, button.rm-steal:focus-visible svg { filter: drop-shadow(0 0 6px rgba(242,201,76,.95)); }
.rm-meld.rm-bad { border: 2px dashed #ff8a7a; background: rgba(160,30,20,.18); }
.rm-badtag { color: #ffb4a8 !important; font-size: .68rem; font-weight: 700; }
@media (max-width: 640px) {
  .rm-row button.rm-steal + button.rm-steal, .pk-side .rm-row button.rm-steal + button.rm-steal, .mm-top .rm-row button.rm-steal + button.rm-steal, .pk-table.many .mm-top .rm-row button.rm-steal + button.rm-steal { margin-left: -32px; }
}
/* Rommé: Tisch in der Web-Ansicht breiter als der Inhaltsbereich, größere Auslagen */
@media (min-width: 1100px) {
  .play-layout.wide { width: min(1560px, 100vw - 48px); margin-left: calc((100% - min(1560px, 100vw - 48px)) / 2); }
}
.rm-row .pk-card svg { height: 106px !important; }
.rm-row .pk-card + .pk-card, .rm-row button.rm-steal + button.rm-steal { margin-left: -52px; }
.pk-side .rm-row .pk-card svg, .mm-top .rm-row .pk-card svg { height: 98px !important; }
.pk-side .rm-row .pk-card + .pk-card, .mm-top .rm-row .pk-card + .pk-card,
.pk-side .rm-row button.rm-steal + button.rm-steal, .mm-top .rm-row button.rm-steal + button.rm-steal { margin-left: -48px; }
.pk-table.many .mm-top .rm-row .pk-card svg { height: 84px !important; }
.pk-table.many .mm-top .rm-row .pk-card + .pk-card, .pk-table.many .mm-top .rm-row button.rm-steal + button.rm-steal { margin-left: -42px; }
.rm-row button.rm-steal .pk-card + .pk-card { margin-left: 0; }
@media (max-width: 640px) {
  .rm-row .pk-card svg, .pk-side .rm-row .pk-card svg, .mm-top .rm-row .pk-card svg, .pk-table.many .mm-top .rm-row .pk-card svg { height: 76px !important; }
  .rm-row .pk-card + .pk-card, .pk-side .rm-row .pk-card + .pk-card, .mm-top .rm-row .pk-card + .pk-card, .pk-table.many .mm-top .rm-row .pk-card + .pk-card,
  .rm-row button.rm-steal + button.rm-steal, .pk-side .rm-row button.rm-steal + button.rm-steal, .mm-top .rm-row button.rm-steal + button.rm-steal, .pk-table.many .mm-top .rm-row button.rm-steal + button.rm-steal { margin-left: -40px; }
}
/* Aktionsknöpfe links neben dem Spieltisch (Web-Ansicht), damit Tisch und Aktionen gleichzeitig sichtbar sind */
.pk-board { display: flex; flex-direction: column; }
.pk-flash { margin: 0; padding: 8px 12px; border-radius: 10px; background: #fde6e2; color: #8f2a24; font-size: .88rem; font-weight: 600; border: 1px solid #f3b9b0; width: 100%; text-align: center; }
@media (min-width: 1100px) {
  .play-layout.pk-layout { width: min(1560px, 100vw - 48px); margin-left: calc((100% - min(1560px, 100vw - 48px)) / 2); }
  .pk-board { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: start; }
  .pk-board > .pk-actions { order: -1; position: sticky; top: 84px; flex-direction: column; flex-wrap: nowrap; align-items: stretch; margin: 0; padding: 12px; gap: 8px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
  .pk-board > .pk-actions .btn { width: 100%; justify-content: center; text-align: center; white-space: normal; line-height: 1.25; padding: 10px 12px; }
  .pk-board > .pk-actions .pk-flash { text-align: left; }
}
.pk-btn.off { opacity: .45; filter: grayscale(.4); cursor: help; box-shadow: none; }
@media (min-width: 1100px) {
  .pk-board > .pk-actions { gap: 6px; padding: 10px; }
  .pk-board > .pk-actions .btn { padding: 8px 10px; font-size: .9rem; }
}
.rm-meld.can-lay { border: 2px solid #f2c94c; background: rgba(242,201,76,.12); }
.rm-laybtn { border: 0; border-radius: var(--btn-radius-sm); padding: 3px 10px; margin-bottom: 2px; background: #f2c94c; color: #1d2a24; font: 700 .72rem var(--sans); cursor: pointer; white-space: nowrap; }
.rm-laybtn:hover { filter: brightness(1.06); }
/* Ton-Schalter (rechts oben) und Partie abbrechen (links oben) direkt auf dem Spieltisch */
.mm-table, .mm2-table { position: relative; }
.mm-table:has(> .tbl-corner) { padding-top: 54px; }
.mm2-table:has(> .tbl-corner) { padding-top: 54px; }
.tbl-corner { position: absolute; top: 12px; z-index: 6; }
.tbl-corner.tl { left: 14px; } .tbl-corner.tr { right: 14px; }
.tbl-btn { border: 0; border-radius: 999px; padding: 6px 13px; background: rgba(0,0,0,.32); color: #fff; font: 600 .8rem var(--sans); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); white-space: nowrap; }
.tbl-btn:hover, .tbl-btn:focus-visible { background: rgba(0,0,0,.48); outline: none; }
@media (max-width: 640px) {
  .mm-table:has(> .tbl-corner), .mm2-table:has(> .tbl-corner) { padding-top: 46px; }
  .tbl-corner { top: 8px; } .tbl-corner.tl { left: 8px; } .tbl-corner.tr { right: 8px; }
  .tbl-btn { padding: 5px 10px; font-size: .74rem; }
}
.pk-actions:not(:has(*)) { display: none !important; }
@media (min-width: 1100px) {
  .pk-board > .mm-table { grid-column: 2; grid-row: 1; }
  .pk-board > .pk-actions { grid-column: 1; grid-row: 1; }
}
/* Spielverlauf am PC rechts neben dem Tisch, unter den Punkten (falls vorhanden); mobil unter dem Tisch bzw. unter den Punkten */
@media (min-width: 1100px) {
  .play-score > .mm-log { max-width: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
  .play-score.pk-noscore > .mm-log { margin: 0; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
  .play-score > .mm-log summary { color: var(--ink); }
  .play-score > .mm-log ol { max-height: 40vh; font-size: .84rem; }
}
/* Rommé (breiter Tisch): obere Spieler über die ganze Breite verteilen, Auslagen nebeneinander */
@media (min-width: 641px) {
  .pk-table.wide { grid-template-areas: "top top top" "left center right" "status status status" "me me me"; }
  .pk-table.wide .mm-top.ar-tops { justify-content: space-around; gap: 24px; width: 100%; }
  .pk-table.wide .mm-top .mm-opp { flex: 1 1 0; max-width: 520px; }
  .pk-table.wide .mm-top .rm-melds { flex-wrap: wrap; justify-content: center; }
}
/* Popup am Partieende */
.end-pop { position: fixed; inset: 0; z-index: 950; border-radius: 0; background: rgba(8, 26, 18, .55); }
.end-pop.lose { background: rgba(30, 12, 12, .5); }
.end-pop .kl-end-box { position: relative; width: min(440px, 100%); }
.end-x { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.end-x:hover { background: var(--paper-2); color: var(--ink); }
.end-btns { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 6px; }
.end-btns .btn { margin: 0; justify-content: center; text-align: center; }
/* Popup an einer Handkarte */
.tbl-me { position: relative; }
.card-pop { position: absolute; z-index: 30; transform: translate(-50%, -100%); display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 14px; background: var(--card); box-shadow: 0 10px 28px rgba(0,0,0,.35); animation: cardpop-in .15s ease-out; }
@keyframes cardpop-in { from { opacity: 0; transform: translate(-50%, calc(-100% + 8px)); } }
.card-pop::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: var(--card); transform: translateX(-50%) rotate(45deg); }
.card-pop-btn { position: relative; z-index: 1; border: 0; border-radius: var(--btn-radius); padding: 9px 16px; background: var(--btn-red); color: var(--on-btn-red); font: 700 .92rem var(--sans); white-space: nowrap; cursor: pointer; }
.card-pop-btn:hover { filter: brightness(1.08); }
.card-pop-btn.off { opacity: .5; filter: grayscale(.4); cursor: help; }
/* Rommé: eigene Hand etwas kleiner, Gegner und Auslagen größer */
.pk-table.wide .tbl-me .mm-handcard svg { height: 150px; }
.pk-table.wide .mm-backs svg { height: 108px; }
.pk-table.wide .rm-row .pk-card svg { height: 116px !important; }
.pk-table.wide .rm-row .pk-card + .pk-card, .pk-table.wide .rm-row button.rm-steal + button.rm-steal { margin-left: -57px; }
.pk-table.wide .pk-side .rm-row .pk-card svg, .pk-table.wide .mm-top .rm-row .pk-card svg { height: 110px !important; }
.pk-table.wide .pk-side .rm-row .pk-card + .pk-card, .pk-table.wide .mm-top .rm-row .pk-card + .pk-card,
.pk-table.wide .pk-side .rm-row button.rm-steal + button.rm-steal, .pk-table.wide .mm-top .rm-row button.rm-steal + button.rm-steal { margin-left: -54px; }
.pk-table.wide.many .mm-top .rm-row .pk-card svg { height: 96px !important; }
.pk-table.wide.many .mm-top .rm-row .pk-card + .pk-card, .pk-table.wide.many .mm-top .rm-row button.rm-steal + button.rm-steal { margin-left: -47px; }
.pk-table.wide.many .mm-backs svg { height: 92px; }
.rm-row button.rm-steal .pk-card + .pk-card { margin-left: 0; }
@media (max-width: 640px) {
  .pk-table.wide .tbl-me .mm-handcard svg { height: 124px; }
  .pk-table.wide .mm-backs svg, .pk-table.wide.many .mm-backs svg { height: 54px; }
  .pk-table.wide .rm-row .pk-card svg, .pk-table.wide .pk-side .rm-row .pk-card svg, .pk-table.wide .mm-top .rm-row .pk-card svg, .pk-table.wide.many .mm-top .rm-row .pk-card svg { height: 82px !important; }
  .pk-table.wide .rm-row .pk-card + .pk-card, .pk-table.wide .pk-side .rm-row .pk-card + .pk-card, .pk-table.wide .mm-top .rm-row .pk-card + .pk-card, .pk-table.wide.many .mm-top .rm-row .pk-card + .pk-card,
  .pk-table.wide .rm-row button.rm-steal + button.rm-steal, .pk-table.wide .pk-side .rm-row button.rm-steal + button.rm-steal, .pk-table.wide .mm-top .rm-row button.rm-steal + button.rm-steal, .pk-table.wide.many .mm-top .rm-row button.rm-steal + button.rm-steal { margin-left: -43px; }
}
/* Werkzeuge links neben der eigenen Hand (z. B. Vorschlag, Sortieren) */
.pk-handrow { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; }
.pk-handrow > .pk-hand { flex: 1 1 auto; min-width: 0; }
.pk-handtools { flex: none; display: flex; flex-direction: column; gap: 8px; }
.pk-tool { text-align: left; }
.pk-tool.off { opacity: .5; }
@media (max-width: 640px) {
  .pk-handrow { flex-direction: column; align-items: stretch; gap: 4px; }
  .pk-handtools { flex-direction: row; justify-content: center; }
}
.pk-handtools { align-items: flex-start; }
/* Gegnerzüge sichtbar machen */
.rm-new svg { animation: rm-new-glow 2.2s ease-out both; }
@keyframes rm-new-glow { 0%, 55% { filter: drop-shadow(0 0 10px rgba(255,214,90,1)) drop-shadow(0 0 4px rgba(255,214,90,1)); } 100% { filter: drop-shadow(0 0 4px rgba(255,214,90,.6)); } }
.ar-badge.act { background: #8fe6ff; color: #0e2b36; animation: badge-pop .35s cubic-bezier(.2,.9,.3,1.3); }
@keyframes badge-pop { from { transform: scale(.6); opacity: 0; } }
/* Vorgemerkte Kombinationen: Rauskommen-Popup und ✕ zum Zurücknehmen */
.rm-stage { position: relative; }
.rm-staged { position: relative; display: inline-flex; }
.rm-unstage { position: absolute; top: -8px; right: -8px; z-index: 3; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #fff; color: #8f2a24; font: 800 .95rem/24px var(--sans); box-shadow: 0 2px 6px rgba(0,0,0,.35); cursor: pointer; padding: 0; }
.rm-unstage:hover { background: #8f2a24; color: #fff; }
.rm-outpop { position: absolute; left: 50%; top: -10px; transform: translate(-50%, -100%); z-index: 5; border: 0; border-radius: var(--btn-radius); padding: 10px 18px; background: var(--btn-red); color: var(--on-btn-red); font: 700 .95rem var(--sans); white-space: nowrap; cursor: pointer; box-shadow: 0 0 0 4px rgba(255,255,255,.95), 0 10px 26px rgba(0,0,0,.35); animation: cardpop-in2 .2s ease-out, outpop-pulse 1.6s ease-in-out .3s infinite alternate; }
.rm-outpop::after { content: ""; position: absolute; left: 50%; bottom: -9px; width: 12px; height: 12px; background: var(--btn-red); transform: translateX(-50%) rotate(45deg); box-shadow: 3px 3px 0 1px rgba(255,255,255,.95); }
@keyframes cardpop-in2 { from { opacity: 0; transform: translate(-50%, calc(-100% + 8px)); } }
@keyframes outpop-pulse { to { box-shadow: 0 0 0 4px rgba(255,255,255,.95), 0 0 22px rgba(255,120,100,.9); } }
.rm-stage .pk-melds { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 14px; }
/* Status-Symbole statt „draußen / noch nicht draußen“ */
.ar-badge.st-ok, .ar-badge.st-no { width: 22px; height: 22px; padding: 0; display: inline-grid; place-items: center; border-radius: 50%; font-size: .8rem; font-weight: 900; border: 0; }
.ar-badge.st-ok { background: #2fae5f; color: #fff; }
.ar-badge.st-no { background: #c8433a; color: #fff; }
.pk-mybar { align-items: center; }
/* Fehlermeldung in der Statuszeile des Tisches */
.mm-status.has-flash { background: none; }
.mm-status .pk-flash { display: inline-block; width: auto; max-width: 100%; padding: 7px 14px; border-radius: 999px; background: #fde6e2; color: #8f2a24; border: 1px solid #f3b9b0; font-size: .9rem; animation: badge-pop .3s ease-out; }
.mm-status:empty { min-height: 0; margin: 0; }
/* Rommé mobil: Gegner kompakt, Spielfeld und eigene Karten im Vordergrund */
@media (max-width: 640px) {
  .pk-table.wide { gap: 6px; }
  .pk-table.wide .mm-backs { display: none; }
  .pk-table.wide .pk-side, .pk-table.wide .mm-top.ar-tops { gap: 6px; }
  .pk-table.wide .mm-opp { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 4px 6px; padding: 4px 6px; border-radius: 12px; background: rgba(0,0,0,.12); }
  .pk-table.wide .mm-opp.active { box-shadow: inset 0 0 0 2px rgba(242,201,76,.7); }
  .pk-table.wide .mm-opp .mm-name { font-size: .74rem; padding: 3px 9px; }
  .pk-table.wide .mm-opp .pk-badges { flex-wrap: nowrap; }
  .pk-table.wide .mm-opp .ar-badge.act { font-size: .66rem; }
  .pk-table.wide .mm-opp .pk-seatzone { flex-basis: 100%; margin-top: 2px; }
  .pk-table.wide .mm-opp .rm-melds { justify-content: flex-start; gap: 4px; }
  .pk-table.wide .mm-opp .rm-meld { padding: 2px 4px; }
  .pk-table.wide .pk-side .rm-row .pk-card svg, .pk-table.wide .mm-top .rm-row .pk-card svg, .pk-table.wide.many .mm-top .rm-row .pk-card svg { height: 60px !important; }
  .pk-table.wide .pk-side .rm-row .pk-card + .pk-card, .pk-table.wide .mm-top .rm-row .pk-card + .pk-card, .pk-table.wide.many .mm-top .rm-row .pk-card + .pk-card,
  .pk-table.wide .pk-side .rm-row button.rm-steal + button.rm-steal, .pk-table.wide .mm-top .rm-row button.rm-steal + button.rm-steal, .pk-table.wide.many .mm-top .rm-row button.rm-steal + button.rm-steal { margin-left: -31px; }
  .pk-table.wide .rm-pile .pk-card svg, .pk-table.wide .rm-pile .pk-cards svg { height: 84px !important; }
  .pk-table.wide .pk-center { gap: 6px; }
}

/* ===== Neue Spiele: Krieg, Schwarzer Peter, Go Fish, Daifugō, Gin Rommé, Pinochle, Poker ===== */
.kr-table { display: flex; align-items: center; justify-content: center; gap: 22px; min-height: 170px; }
.kr-side { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.kr-side figcaption { font-size: .74rem; font-weight: 600; background: rgba(0,0,0,.28); padding: 1px 8px; border-radius: 999px; }
.kr-side.win .kr-up svg { filter: drop-shadow(0 0 9px rgba(242,201,76,.95)); }
.kr-stack { display: flex; align-items: flex-end; }
.kr-stack .pk-card + .pk-card { margin-left: -84px; }
.kr-stack .kr-down svg { height: 118px !important; transform: rotate(-4deg); }
.kr-vs { font-size: 1.6rem; font-weight: 800; color: #f2c94c; text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.sp-pick { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sp-pick > small, .sp-pairs small, .gf-stock small { font-size: .76rem; font-weight: 600; opacity: .85; }
.sp-fan { display: flex; justify-content: center; flex-wrap: nowrap; max-width: 100%; padding: 8px 6px 0; }
.sp-back { background: none; border: 0; padding: 0; cursor: pointer; transition: transform .15s; }
.sp-back + .sp-back { margin-left: -58px; }
.sp-back svg { height: 130px; width: auto; filter: drop-shadow(0 3px 5px rgba(0,0,0,.3)); }
.sp-back:hover, .sp-back:focus-visible { transform: translateY(-14px); outline: none; }
.sp-back:hover svg, .sp-back:focus-visible svg { filter: drop-shadow(0 0 9px rgba(242,201,76,.95)); }
.sp-mid { display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 150px; }
.sp-pairs { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sp-pairs .pk-cards svg { height: 96px !important; }
.sp-pairs .pk-cards svg + svg { margin-left: -40px; }
.gf-mid { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; min-height: 160px; }
.gf-stock { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gf-stock .pk-cards svg + svg { margin-left: -100px; }
.gf-ask { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 320px; }
.gf-bubble { background: #fff; color: #1d2a24; font-weight: 700; padding: 8px 14px; border-radius: 16px 16px 16px 4px; box-shadow: 0 3px 10px rgba(0,0,0,.25); }
.gf-answer { font-weight: 800; padding: 3px 12px; border-radius: 999px; }
.gf-answer.yes { background: #2e9d5b; color: #fff; }
.gf-answer.no { background: #2b6cb0; color: #fff; }
.gf-fly { display: flex; }
.gf-fly .pk-card svg { height: 70px !important; }
.gf-fly .pk-card + .pk-card { margin-left: -36px; }
.gf-books { font-size: .8rem; }
.gf-book { background: rgba(0,0,0,.28); padding: 2px 10px; border-radius: 999px; }
.df-pile figure > .pk-card + .pk-card { margin-left: -46px; }
.df-pile figure { flex-direction: row; flex-wrap: wrap; justify-content: center; }
.df-pile figcaption { flex-basis: 100%; text-align: center; }
.gr-dead { border-color: rgba(255,120,120,.5); }
.gr-dead small { color: #ffb4b4; }
.pn-melds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 640px; width: 100%; }
.pn-melds .pk-zone span { font-size: .8rem; line-height: 1.35; }
.pk-board5 { display: flex; gap: 8px; justify-content: center; min-height: 150px; align-items: center; }
.pk-b.empty { width: 96px; height: 140px; border-radius: 10px; border: 2px dashed rgba(255,255,255,.22); }
.pk-show { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pk-show .pk-cards svg { height: 74px !important; }
.pk-show small { font-size: .72rem; font-weight: 700; color: #f2c94c; }
@media (max-width: 640px) {
  .kr-stack .kr-down svg { height: 90px !important; }
  .kr-stack .pk-card + .pk-card { margin-left: -64px; }
  .sp-back svg { height: 96px; }
  .sp-back + .sp-back { margin-left: -46px; }
  .sp-pairs .pk-cards svg { height: 70px !important; }
  .gf-mid { gap: 10px; min-height: 120px; }
  .gf-bubble { font-size: .85rem; padding: 6px 10px; }
  .pk-board5 { gap: 4px; min-height: 112px; }
  .pk-board5 .pk-card svg { height: 92px !important; }
  .pk-b.empty { width: 62px; height: 90px; }
  .df-pile figure > .pk-card + .pk-card { margin-left: -38px; }
  .pn-melds { grid-template-columns: 1fr; }
  .pk-show .pk-cards svg { height: 52px !important; }
}
/* farbige Text-Badges (Partei, Status) */
.ar-badge.tg-ok { background: #2fae5f; color: #fff; border: 0; }
.ar-badge.tg-no { background: #c8433a; color: #fff; border: 0; }
.pk-center .pk-board5 .pk-card svg { height: 128px; }
@media (max-width: 640px) { .pk-center .pk-board5 .pk-card svg { height: 84px; } }
html, body { overflow-x: clip; }
/* iOS Safari: the root needs a real overflow value so a too-wide element can never widen the page (and make it start zoomed) */
html { overflow-x: hidden; }
/* Zufälliges Spiel: Name (und Bild) führen zur Spielseite */
.hero-link { color: inherit; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 2px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .25s; }
.hero-link:hover, .hero-link:focus-visible { background-size: 100% 2px; }
.hero-art-link { display: block; color: inherit; }
@media (max-width: 900px) { .hero-art-link { order: -1; } }
/* Tischdesign „Wie Vorschau“: Bezug/Rahmen kommen als Variablen aus dem Vorschaubild des Spiels */
.mm-table.tbl-auto, .pk-swatch.tbl-auto { background: radial-gradient(70% 70% at 50% 45%, var(--felt1), var(--felt2)); border-color: var(--rim); }
/* Kachel: Testrunde beim Darüberfahren */
.tile-art { position: relative; }
.tile-art .tile-frame { position: absolute; inset: 6px; animation: tile-fade .3s ease both; }
/* Kachelbild (Karten + Spielname) über dem Spieltisch; beim Darüberfahren/Fokus wird der Tisch mit Testrunde sichtbar */
.tile-art .tile-cover { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: cover; border-radius: 10px; z-index: 1; transition: opacity .35s ease; pointer-events: none; }
.tile-art.has-cover:hover .tile-cover, .tile-art.has-cover:focus-within .tile-cover, .tile:focus-visible .tile-cover, .tile-art.playing .tile-cover { opacity: 0; }
.tile-art .tile-frame { z-index: 2; }
/* stand-in for the table illustration until it is rendered on hover/focus (same aspect ratio as the SVG) */
.tile-art .tile-ph { display: block; aspect-ratio: 600 / 370; }
.tile-art .tile-play { z-index: 3; }
.tile-art .tile-frame svg { width: 100%; height: 100%; display: block; }
@keyframes tile-fade { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.tile-play { position: absolute; right: 12px; bottom: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; color: #1d2a24; background: rgba(255,253,248,.9); box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: opacity .2s; pointer-events: none; }
.tile-art.playing .tile-play { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .tile-art .tile-frame { animation: none; } }

/* ---------- Partie fortsetzen / Weiterspielen / Statistik ---------- */
.pk-resume { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 18px; padding: 12px 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--felt) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--felt) 35%, var(--line)); }
.pk-resume > div { flex: 1 1 180px; display: flex; flex-direction: column; line-height: 1.3; }
.pk-resume small { color: var(--ink-2); }
.resume-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.resume-card { display: flex; align-items: center; gap: 12px; padding: 10px; text-decoration: none; color: inherit; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .15s; }
.resume-card:hover { transform: translateY(-2px); }
.resume-art { flex: 0 0 96px; border-radius: 8px; overflow: hidden; background: var(--felt-dark); line-height: 0; }
.resume-art svg { width: 100%; height: auto; display: block; }
.resume-txt { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.resume-txt small { color: var(--ink-2); }
.resume-go { margin-top: 4px; font-weight: 600; color: var(--felt); font-size: .92em; }
@media (prefers-color-scheme: dark) { .resume-go { color: var(--brass); } }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 6px 0 22px; }
.stat-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.stat-tile b { display: block; font: 700 1.9rem/1.1 var(--serif); }
.stat-tile span { color: var(--ink-2); font-size: .92em; }
.stat-table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-table { width: 100%; border-collapse: collapse; font-size: .95em; }
.stat-table th, .stat-table td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.stat-table th:first-child, .stat-table td:first-child { text-align: left; }
.stat-table th { font-weight: 600; color: var(--ink-2); font-size: .88em; }
.stat-table tr:last-child td { border-bottom: 0; }
.stat-saves { padding-left: 1.2em; }
.stat-reset-row { margin-top: 18px; }
.play-balance { margin: -4px 0 10px; font-size: .92em; color: var(--ink-2); }
@media (max-width: 640px) {
  .stat-table th:nth-child(4), .stat-table td:nth-child(4), .stat-table th:nth-child(7), .stat-table td:nth-child(7), .stat-table th:nth-child(8), .stat-table td:nth-child(8) { display: none; }
}
.stat-table-wrap + h2, .stat-tiles + h2 { margin-top: 30px; }

/* ---------- Runde Tisch-Knöpfe: ✕ abbrechen (links oben), Lautsprecher (rechts oben) ----------
   Gleiche Größe, Abstand --tbl-inset vom Tischrand → liegen immer innerhalb der goldenen Rahmenlinie (8 px) */
:root { --tbl-inset: 16px; --tbl-ibtn: 44px; --tbl-ibtn-bg: rgba(0,0,0,.34); --tbl-ibtn-bg-hover: rgba(0,0,0,.52); --tbl-ibtn-fg: #fff; --tbl-ibtn-ring: rgba(255,255,255,.22); --tbl-ibtn-danger: #b8322a; }
@media (max-width: 640px) { :root { --tbl-inset: 12px; --tbl-ibtn: 38px; } }
.tbl-corner.tl, .tbl-corner.tr { top: var(--tbl-inset); }
.tbl-corner.tl { left: var(--tbl-inset); } .tbl-corner.tr { right: var(--tbl-inset); }
.tbl-btn.tbl-x, .tbl-btn.tbl-snd { display: inline-flex; align-items: center; justify-content: center; min-width: 0; width: var(--tbl-ibtn); height: var(--tbl-ibtn); padding: 0;
  border-radius: 999px; background: var(--tbl-ibtn-bg); color: var(--tbl-ibtn-fg); box-shadow: inset 0 0 0 1.5px var(--tbl-ibtn-ring), 0 2px 6px rgba(0,0,0,.25);
  font-size: .85rem; line-height: 1; transition: width .15s, background .15s, transform .1s; }
.tbl-btn.tbl-x:hover, .tbl-btn.tbl-x:focus-visible, .tbl-btn.tbl-snd:hover, .tbl-btn.tbl-snd:focus-visible { background: var(--tbl-ibtn-bg-hover); outline: none; box-shadow: inset 0 0 0 1.5px var(--tbl-ibtn-fg), 0 2px 6px rgba(0,0,0,.25); }
.tbl-btn.tbl-x:active, .tbl-btn.tbl-snd:active { transform: scale(.93); }
.tbl-btn.tbl-x .ic { width: calc(var(--tbl-ibtn) * .48); height: calc(var(--tbl-ibtn) * .48); vertical-align: 0; }
.tbl-btn.tbl-snd .ic { width: calc(var(--tbl-ibtn) * .58); height: calc(var(--tbl-ibtn) * .58); vertical-align: 0; }
.tbl-btn.tbl-x.armed { width: auto; padding: 0 16px; background: var(--tbl-ibtn-danger); box-shadow: 0 2px 6px rgba(0,0,0,.3); font-weight: 700; }
@media (max-width: 640px) { .tbl-btn.tbl-x.armed { padding: 0 12px; font-size: .78rem; } }
/* Radio-Knopf links neben dem Ton-Knopf: gleiche Größe, eigenes Symbol; Senderwahl als kleines Popup darunter */
.tbl-corner.tr { display: flex; align-items: flex-start; gap: 8px; }
.tbl-radio { position: relative; }
.tbl-btn.tbl-radio-btn.on { box-shadow: inset 0 0 0 2px var(--brass, var(--tbl-ibtn-fg)), 0 2px 6px rgba(0,0,0,.25); }
.tbl-radio[data-state="loading"] .tbl-radio-btn .ic { opacity: .6; }
.tbl-radio-pop { position: absolute; top: 100%; right: 0; padding-top: 6px; min-width: 210px; max-width: 260px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 8; }
.tbl-radio.hov .tbl-radio-pop, .tbl-radio:hover .tbl-radio-pop, .tbl-radio:focus-within .tbl-radio-pop, .tbl-radio.open .tbl-radio-pop { opacity: 1; visibility: visible; transform: none; }
.trp-in { background: var(--tbl-ibtn-bg-hover); color: var(--tbl-ibtn-fg); border-radius: var(--btn-radius); padding: 8px; box-shadow: inset 0 0 0 1.5px var(--tbl-ibtn-ring), 0 6px 16px rgba(0,0,0,.35); backdrop-filter: blur(4px); }
.trp-title { font-size: .78rem; font-weight: 700; padding: 2px 6px 6px; opacity: .9; }
.trp-list { display: flex; flex-direction: column; gap: 4px; }
.trp-st { display: flex; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; text-align: left; padding: 6px 8px; border: 0; border-radius: var(--btn-radius-sm); background: transparent; color: inherit; font: inherit; font-size: .84rem; cursor: pointer; box-shadow: inset 0 0 0 1px var(--tbl-ibtn-ring); }
.trp-st small { font-size: .72rem; opacity: .75; }
.trp-st:hover, .trp-st:focus-visible { background: var(--tbl-ibtn-bg); outline: none; box-shadow: inset 0 0 0 1.5px var(--tbl-ibtn-fg); }
.trp-st[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--brass, var(--tbl-ibtn-fg)); font-weight: 700; }
.trp-status { margin: 6px 6px 2px; font-size: .74rem; min-height: 0; }
.trp-status:empty { display: none; }
/* Platz oben, damit die Knöpfe weder Rahmen noch Spielerplätze berühren */
.mm-table:has(> .tbl-corner), .mm2-table:has(> .tbl-corner) { padding-top: calc(var(--tbl-inset) + var(--tbl-ibtn) + 6px); }
.kl-board:has(> .tbl-corner) { padding-top: max(calc(var(--gap) * 1.6), calc(var(--tbl-inset) + var(--tbl-ibtn) + 10px)); }

/* ---------- Teilen ---------- */
.share-btn { display: inline-flex; align-items: center; gap: 6px; }
/* Mobil: Teilen-Symbol rechts in der Brotkrumen-Zeile der Spielseite */
.nf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.crumbs-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.crumb-share { display: none; }
@media (max-width: 760px) {
  .crumb-share { display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; margin-top: 22px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--red); cursor: pointer; box-shadow: var(--shadow); }
  .crumb-share:active { transform: scale(.94); }
}
.share-pop button[data-act] { display: flex; align-items: center; gap: 10px; }
.share-pop button[data-act] .share-ic { flex: none; }
.share-ic { flex: none; }
.play-head-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.share-pop { position: fixed; z-index: 1000; min-width: 190px; display: flex; flex-direction: column; padding: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 34px rgba(0,0,0,.2); animation: share-in .12s ease-out; }
.share-pop a, .share-pop button { display: block; text-align: left; padding: 9px 12px; border: 0; background: none; border-radius: 8px; color: var(--ink); font: 500 .92rem var(--sans); text-decoration: none; cursor: pointer; }
.share-pop a:hover, .share-pop button:hover, .share-pop a:focus-visible, .share-pop button:focus-visible { background: var(--paper-2); outline: none; }
.share-pop .share-copy { font-weight: 600; border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 4px; }
@keyframes share-in { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- Weitere Spiele (Bridge, Tractor, Kletterspiele, Chinesisches Poker, Lotería, Mus, Bank) ---------- */
.tr-multi { display: inline-flex; align-items: flex-end; }
.tr-multi > .pk-card + .pk-card { margin-left: -62px; }
.pk-trick .tr-multi > .pk-card + .pk-card { margin-left: -70px; }
.tr-trick figure { min-width: 0; }
.br-auction { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 440px; margin: 0 auto 8px; }
.br-bid { display: inline-flex; flex-direction: column; align-items: center; min-width: 54px; padding: 4px 8px; border-radius: 10px; background: rgba(0,0,0,.3); color: #fff; font: 700 .9rem var(--sans); line-height: 1.2; }
.br-bid small { font-weight: 500; font-size: .68rem; opacity: .75; }
.br-bid.pass { opacity: .55; }
.br-dummy { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-bottom: 6px; }
.br-dummy small, .cp-row small { color: rgba(255,255,255,.8); font-size: .72rem; font-weight: 600; }
.br-dummy .pk-cards svg { height: 70px !important; width: auto; }
.cp-rows { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cp-row { min-width: 160px; }
.cp-mini { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.cp-mini .pk-cards svg { height: 38px; width: auto; }
.mus-lances { flex-wrap: wrap; justify-content: center; }
.lot-wrap { display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; }
.lot-tabla { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px; background: #f6efe0; border-radius: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.lot-cell { position: relative; display: block; line-height: 0; }
.lot-tabla .pk-card svg { height: 78px !important; width: auto !important; }
.lot-cell.on::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 16px; margin: -8px 0 0 -11px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #c08a5a, #6b3f1d); box-shadow: 0 1px 2px rgba(0,0,0,.5); }
.lot-cell.now { outline: 2px solid #f2c94c; outline-offset: 1px; border-radius: 4px; }
.lot-big svg { height: 140px !important; width: auto !important; }
.lot-mini { display: grid; grid-template-columns: repeat(4, 8px); gap: 2px; }
.lot-mini i { width: 8px; height: 8px; border-radius: 2px; background: rgba(255,255,255,.25); }
.lot-mini i.on { background: #f2c94c; }
.bj-bank { min-width: 120px; }
.ab-win { box-shadow: 0 0 0 2px #f2c94c; border-radius: 10px; }
@media (max-width: 640px) {
  .lot-tabla .pk-card svg { height: 58px !important; }
  .lot-big svg { height: 100px !important; }
  .tr-multi > .pk-card + .pk-card, .pk-trick .tr-multi > .pk-card + .pk-card { margin-left: -50px; }
  .br-bid { min-width: 44px; font-size: .8rem; }
}

/* ===== Spielen im Vordergrund (Okt. 2026): Menü „Spielen“, Sofort spielen, Spielen-Übersicht, mobile Leisten ===== */
/* Kopfzeile: „Spielen“ hervorgehoben; mobil eigener Knopf, „Spiel hinzufügen“ wandert ins Menü */
.nav a.nav-play { color: #f6f1e7; font-weight: 600; }
.nav a.nav-play::before { content: "▶ "; color: var(--brass); font-size: .8em; }
.hdr-play { display: none; flex: none; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--btn-radius-sm);
  background: var(--btn-red); color: var(--on-btn-red); font: 600 .88rem var(--sans); text-decoration: none; white-space: nowrap; }
.hdr-play:hover { background: #9e2a23; }
.hdr-play span[aria-hidden] { font-size: .75rem; }
.nav-add { display: none; }
@media (max-width: 760px) {
  .hdr-play { display: inline-flex; }
  .header-inner > .add-game { display: none; }
  .nav-add { display: block; padding: 12px 8px; border: 0; border-radius: 8px; background: transparent; color: #f6f1e7;
    font: inherit; text-align: left; width: 100%; cursor: pointer; }
  .nav-add span[aria-hidden] { color: var(--brass); font-weight: 700; }
  .nav-add:hover { background: rgba(255,255,255,.08); }
}

/* Sofort spielen: großer Startknopf, Einstellungen eingeklappt */
.btn.pk-go { display: flex; justify-content: center; width: 100%; min-height: 52px; padding: 12px 20px; font-size: 1.05rem; margin: 0 0 12px; }
.pk-resume + h2 + .btn.pk-go, .pk-resume ~ .btn.pk-go { padding: 12px 20px; font-size: 1rem; }
.pk-adjust { border: 1px solid var(--line); border-radius: 12px; margin: 0; }
.pk-adjust > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 12px 14px; }
.pk-adjust > summary::-webkit-details-marker { display: none; }
.pk-adjust > summary::after { content: "▾"; margin-left: auto; color: var(--ink-2); transition: transform .2s; }
.pk-adjust[open] > summary::after { transform: rotate(180deg); }
.pk-adjust-t { font-weight: 600; }
.pk-adjust > summary small { color: var(--ink-2); font-size: .82rem; }
.pk-adjust-in { padding: 4px 14px 2px; border-top: 1px solid var(--line); }
.pk-adjust-in > .mm-field:first-child { margin-top: 12px; }
.pk-setup .mm-stats, .mm-setup .mm-stats { margin: 12px 0 0; text-align: center; }
@media (max-width: 640px) { .pk-setup, .mm-setup:not(details) { padding: 18px 16px; } .pk-setup h2, .mm-setup h2 { margin-bottom: 12px; font-size: 1.3rem; } }

/* Spielseite: fester Spielen-Knopf unten (nur schmale Bildschirme) */
.sticky-play { display: none; }
@media (max-width: 900px) {
  .sticky-play { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--paper) 70%, transparent); transform: translateY(110%); transition: transform .25s ease; pointer-events: none; }
  .sticky-play.show { transform: none; pointer-events: auto; }
  .sticky-play .btn { display: flex; justify-content: center; width: 100%; max-width: 520px; margin: 0 auto; padding: 14px 20px; font-size: 1.02rem; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
  body.has-sticky .site-footer { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .sticky-play { transition: none; } }

/* Startseite & Übersicht: Kartenreihen auf dem Handy waagerecht wischen statt endlos scrollen */
@media (max-width: 640px) {
  .grid.top-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 4px 16px 14px; scrollbar-width: none; }
  .grid.top-row::-webkit-scrollbar { display: none; }
  .grid.top-row > .tile { flex: 0 0 72%; scroll-snap-align: start; }
  .countries { grid-template-columns: 1fr 1fr; gap: 8px; }
  .countries .country { padding: 10px; }
}

/* Spielen-Übersicht */
.section-sub { margin: -6px 0 14px; }
.prow { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pcard { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.pcard:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 12px 26px rgba(29,42,36,.14); }
.pcard-art { display: block; border-radius: 8px; overflow: hidden; background: var(--felt-dark); }
.pcard-art svg { display: block; width: 100%; height: auto; }
.pcard-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.pcard-txt b { font-size: 1rem; }
.pcard-txt small { font-size: .8rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pcard-go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-red); color: var(--on-btn-red); font-size: .8rem; }
@media (max-width: 640px) {
  .prow { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: none; }
  .prow::-webkit-scrollbar { display: none; }
  .prow > .pcard { flex: 0 0 80%; scroll-snap-align: start; }
}
.play-fam { margin: 0 0 18px; }
.play-fam h3 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px; font-family: var(--sans); }
.play-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.play-chip { padding: 7px 12px; border-radius: var(--btn-radius-sm); border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-size: .9rem; }
.play-chip:hover { border-color: var(--red); color: var(--red); }
.teaser .btn.ghost.light { color: #fff; border-color: rgba(255,255,255,.45); }
.teaser .btn.ghost.light:hover { background: rgba(255,255,255,.1); }
/* Kopfzeile mobil: Platz für Spielen-Knopf schaffen */
@media (max-width: 440px) {
  .header-inner { gap: 8px; }
  .logo { gap: 6px; font-size: 1.12rem; }
  .logo-mark { width: 32px; height: 32px; }
  .hdr-play { padding: 0 10px; height: 30px; font-size: .84rem; }
  .countries .country { gap: 8px; }
  .countries .country-flag { font-size: 1.5rem; }
}
@media (max-width: 640px) { .countries .country { flex-wrap: nowrap; } .countries .country > span:last-child { min-width: 0; } .countries .country small { display: block; font-size: .78rem; } }

/* Weltkugel bei „Anderes Spiel“ (js/globe.js) */
.globe-fly { position: absolute; z-index: 30; cursor: pointer; -webkit-tap-highlight-color: transparent; background: var(--paper); border-radius: 22px;
  opacity: 0; transition: opacity .25s ease, transform .5s ease; }
.globe-fly.on { opacity: 1; }
.globe-fly.out { opacity: 0; transform: scale(1.08); }
.globe-fly canvas { display: block; }
.globe-label { position: absolute; left: 50%; bottom: 6%; transform: translate(-50%, 8px); padding: 7px 16px; border-radius: 999px;
  background: var(--felt-dark); color: #f6f1e7; font: 600 1rem var(--sans); white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.25);
  opacity: 0; transition: opacity .3s ease, transform .3s ease; }
.globe-label.on { opacity: 1; transform: translate(-50%, 0); }
.hero.hero-spin .hero-text { opacity: .3; transition: opacity .3s ease; }
.hero.hero-in .hero-text { animation: hero-in .5s ease both; }
@keyframes hero-in { from { opacity: .3; transform: translateY(6px); } to { opacity: 1; transform: none; } }
html.globe-busy #reroll { pointer-events: none; opacity: .6; }
@media (prefers-reduced-motion: reduce) { .hero.hero-in .hero-text { animation: none; } }
.hero.hero-spin .hero-art { opacity: 0; transition: opacity .25s ease; }

/* Favoriten (♡) und eigene Varianten */
.fav-btn .fav-ico { color: var(--red); font-size: 1.05em; line-height: 1; }
.btn.fav-btn.on { border-color: rgba(184,50,42,.45); background: rgba(184,50,42,.07); }
.fav-btn.pop .fav-ico { display: inline-block; animation: fav-pop .35s ease; }
@keyframes fav-pop { 40% { transform: scale(1.45); } }
.play-head-btns .fav-btn { margin-top: 0; }
.pcard { position: relative; }
.pcard-fav { position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%;
  font-size: 1.15rem; cursor: pointer; }
.pcard-fav .fav-ico { transition: transform .15s; }
.pcard-fav:hover .fav-ico { transform: scale(1.18); }
.pcard-fav:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.pcard .pcard-go { margin-top: 18px; }
.pk-myvars { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.pk-myvars-t { width: 100%; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.pk-myvar { display: inline-flex; border: 1px solid var(--line); border-radius: var(--btn-radius-sm); overflow: hidden; background: var(--card); }
.pk-myvar button { border: 0; background: transparent; color: var(--ink); font: 600 .9rem var(--sans); padding: 8px 12px; cursor: pointer; }
.pk-myvar .pk-myvar-go:hover { background: var(--paper-2); color: var(--red); }
.pk-myvar .pk-myvar-x { padding: 8px 10px; color: var(--ink-2); border-left: 1px solid var(--line); font-weight: 400; }
.pk-myvar .pk-myvar-x.armed { background: var(--btn-red); color: var(--on-btn-red); font-size: .8rem; }
.pk-savevar { margin: 6px 0 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.pk-savevar .btn.small { margin-top: 0; }
.pk-savevar-form { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; }
.pk-savevar-in { display: flex; gap: 8px; }
.pk-savevar-in input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-weight: 400; }
.pk-savevar-in .btn.small { margin-top: 0; }
.myvar-chip small { color: var(--ink-2); font-size: .78rem; margin-left: 4px; }
.play-head-btns .btn.fav-btn { padding: 8px 14px; font-size: .88rem; }
.globe-fly:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.globe-fly.out-fast { opacity: 0; transition: opacity .18s ease; }
.globe-skip { position: absolute; top: 10px; right: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(20,61,46,.08);
  color: var(--ink-2); font: 600 .78rem var(--sans); opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.globe-skip.on { opacity: 1; }
.globe-fly:hover .globe-skip { background: rgba(20,61,46,.16); color: var(--ink); }

/* Kartenbeispiele im FAQ-Glossar */
.term-cards { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 4px 0 12px; }
.term-card svg { display: block; height: 96px; width: auto; filter: drop-shadow(0 2px 3px rgba(0,0,0,.12)); }
.term-deck { margin: 4px 0 12px; }
/* Eine Farbe/Reihe immer in einer Zeile; alle Reihen eines Blatts nutzen dieselbe Kartenbreite
   (--n = Karten der Reihe, --w = Karten der längsten Reihe des Blatts) */
.term-deck-row { --gap: 6px; display: grid; justify-content: start; margin-bottom: 8px; gap: var(--gap);
  grid-template-columns: repeat(var(--n, 13), calc((100% - (var(--w, 13) - 1) * var(--gap)) / var(--w, 13)));
  max-width: calc(var(--w, 13) * 64px + (var(--w, 13) - 1) * var(--gap)); }
.term-deck .term-card { min-width: 0; }
.term-deck .term-card svg { width: 100%; height: auto; }
.term-deck-n { margin: 2px 0 0; font-size: .85rem; }
@media (max-width: 640px) { .term-card svg { height: 78px; } .term-deck-row { --gap: 2px; } }

/* ---------- Startseite: „Was können wir spielen?“ (Knopf über dem Zufallsspiel, Popup, Ergebnisse) ---------- */
.fit-launch { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 22px; padding: 12px 14px; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; }
.fit-launch .btn { margin: 0; }
.fit-launch-txt { color: var(--ink-2); font-size: .95rem; }
.fit-launch-txt a { color: var(--red); font-weight: 600; text-decoration: none; }
.fit { scroll-margin-top: 80px; }
/* „Was können wir spielen?“: fester Knopf unten rechts; mobil nur das Symbol */
.fit-fab { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 800; display: inline-flex; align-items: center; justify-content: center; gap: 0;
  height: 48px; padding: 0 13px; border: 0; border-radius: 50%; background: var(--felt); color: #fff;
  font: 600 .92rem var(--sans); cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.22); transition: transform .15s, box-shadow .15s, gap .2s, padding .2s, border-radius .2s; }
/* Text fährt erst bei Maus-Hover/Tastaturfokus aus (nur Geräte mit Hover) */
.fit-fab-t, .dice-fab-t { display: inline-block; max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; transition: max-width .25s ease, opacity .2s ease; }
@media (hover: hover) {
  .fit-fab:hover, .fit-fab:focus-visible, .dice-fab:hover, .dice-fab:focus-visible { gap: 8px; border-radius: var(--btn-radius); }
  .fit-fab:hover, .fit-fab:focus-visible { padding-right: 18px; }
  .dice-fab:hover, .dice-fab:focus-visible { padding-right: 16px; }
  .fit-fab:hover .fit-fab-t, .fit-fab:focus-visible .fit-fab-t, .dice-fab:hover .dice-fab-t, .dice-fab:focus-visible .dice-fab-t { max-width: 260px; opacity: 1; }
}
.fit-fab .ic { width: 22px; height: 22px; flex: none; }
.fit-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.28); }
.fit-fab:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
/* Spielseiten: nur das Symbol, damit der Knopf möglichst wenig vom Tisch verdeckt */
html.in-game .fit-fab { width: 48px; height: 48px; padding: 0; border-radius: 50%; justify-content: center; opacity: .9; }
html.in-game .fit-fab .fit-fab-t { display: none; }
html.in-game .fit-fab:hover { opacity: 1; }
@media (max-width: 640px) {
  .fit-fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 52px; height: 52px; padding: 0; border-radius: 50%; justify-content: center; }
  .fit-fab-t, .dice-fab-t { display: none; }
}
/* Zufälliges Spiel: fester Würfel direkt über „Was können wir spielen?“ (.fit-fab), gleiche rechte Kante */
.dice-fab { position: fixed; right: 20px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 800; display: inline-flex; align-items: center; justify-content: center; gap: 0;
  height: 48px; padding: 0 11px; border: 0; border-radius: 50%; background: var(--felt); color: #fff; cursor: pointer;
  font: 600 .92rem var(--sans); box-shadow: 0 6px 20px rgba(0,0,0,.22); transition: transform .15s, box-shadow .15s, opacity .2s, gap .2s, padding .2s, border-radius .2s; }
.dice-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.28); }
.dice-fab:hover .dice-ic { transform: rotate(-12deg); }
.dice-fab .dice-ic { flex: none; transition: transform .15s; }
.dice-fab:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.dice-fab .dice-ic { width: 26px; height: 26px; }
.dice-pip { fill: var(--felt); }
.dice-fab.away { opacity: 0; pointer-events: none; transition: none; }
.dice-fab.rolling .dice-ic { animation: dice-roll .52s cubic-bezier(.3,.6,.4,1); }
@keyframes dice-roll { 0% { transform: none; } 40% { transform: translateY(-6px) rotate(-200deg); } 100% { transform: rotate(-360deg); } }
.dice-fly { position: fixed; z-index: 40; pointer-events: none; color: #fff; transform-origin: 50% 50%; filter: drop-shadow(0 4px 10px rgba(0,0,0,.3)); }
.dice-fly .dice-ic { display: block; width: 100%; height: 100%; }
.dice-fly .dice-ic rect { transition: rx .4s ease; }
.dice-fly.morph { opacity: 0; transition: opacity .4s ease .05s; }
.dice-fly.morph .dice-ic rect { rx: 9px; }
html.globe-busy .dice-fab { pointer-events: none; }
html.in-game .dice-fab { opacity: .9; }
@media (max-width: 640px) { .dice-fab { right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 52px; height: 52px; padding: 0; } }
@media (max-width: 900px) {
  body.has-sticky .dice-fab { bottom: calc(144px + env(safe-area-inset-bottom)); }
  body:has(.lang-hint) .dice-fab, body:has(.a2hs.in) .dice-fab { display: none; }
}
@media (max-width: 1099px) { html.in-game .dice-fab { display: none; } }
@media (prefers-reduced-motion: reduce) { .dice-fab, .dice-fab:hover, .fit-fab-t, .dice-fab-t { transition: none; transform: none; } }
@media (max-width: 900px) {
  body.has-sticky .fit-fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
  body:has(.lang-hint) .fit-fab, body:has(.a2hs.in) .fit-fab { display: none; }
}
[data-look="neo"] .fit-fab, [data-look="neo"] .dice-fab { background: rgba(7,10,20,.85); color: var(--cyan); border: 1px solid var(--cyan); border-radius: 14px; box-shadow: 0 0 18px rgba(62,230,255,.25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
[data-look="neo"] .dice-pip { fill: #070a14; }
.fit-dlg-count { margin: 18px 0 8px; }
.fit-dlg-list { list-style: none; margin: 0 0 12px; padding: 0; columns: 2 200px; column-gap: 24px; }
.fit-dlg-list li { break-inside: avoid; display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.fit-dlg-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.fit-dlg-list a:hover { color: var(--felt); text-decoration: underline; }
.fit-dlg-list small { color: var(--ink-2); white-space: nowrap; }
.fit-dialog { display: none; flex-direction: column; overflow: hidden; }
.fit-dialog[open] { display: flex; }
.fit-dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--felt-dark); color: #f6f1e7; }
.fit-dlg-head h2 { margin: 0; font-size: 1.25rem; color: inherit; }
.fit-dlg-body { padding: 16px 20px 6px; overflow-y: auto; flex: 1 1 auto; }
.fit-dlg-sub { margin: 0 0 14px; }
.fit-dlg-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--card); }
.fit-dlg-foot .btn { margin: 0; }
.fit-dlg-foot .btn[disabled] { opacity: .5; cursor: not-allowed; }
.fit-row + .fit-row { margin-top: 16px; }
.fit-label { display: block; font-weight: 700; margin-bottom: 8px; }
.fit-label small { font-weight: 500; color: var(--ink-2); margin-left: 6px; }
.fit-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fit-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; font: 600 .9rem var(--sans); padding: 8px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.fit-chip small { font-weight: 500; font-size: .76rem; color: var(--ink-2); }
.fit-chip:hover { border-color: var(--brass); }
.fit-chip.active { background: var(--felt); border-color: var(--felt); color: #fff; }
.fit-chip.active small { color: rgba(255,255,255,.78); }
.fit-num .fit-chip { min-width: 46px; align-items: center; border-radius: 999px; }
.fit-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 12px; }
.fit-head-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.fit-head-btns .btn { margin: 0; }
.fit-hint { margin: 0; }
.fit-more { text-align: center; margin: 16px 0 0; }
@media (max-width: 640px) {
  .fit-launch { margin-top: 14px; padding: 10px 12px; }
  .fit-launch .btn { width: 100%; justify-content: center; }
  .fit-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; }
  .fit-dlg-body { padding: 14px 14px 6px; }
  .fit-dlg-foot { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); }
  .fit-chip { padding: 7px 11px; font-size: .86rem; }
  .fit-num { gap: 6px; }
  .fit-num .fit-chip { min-width: 0; flex: 1 1 0; padding: 7px 0; }
}

/* Rückgängig: rundes Symbol unten links auf dem Spielfeld */
.tbl-corner.bl { top: auto; bottom: var(--tbl-inset); left: var(--tbl-inset); }
/* same look as ✕ and the sound toggle (.tbl-x / .tbl-snd) */
.tbl-btn.tbl-undo { position: relative; display: inline-flex; align-items: center; justify-content: center; width: var(--tbl-ibtn); height: var(--tbl-ibtn); padding: 0;
  border-radius: 999px; background: var(--tbl-ibtn-bg); color: var(--tbl-ibtn-fg); box-shadow: inset 0 0 0 1.5px var(--tbl-ibtn-ring), 0 2px 6px rgba(0,0,0,.25);
  line-height: 1; transition: background .15s, transform .1s, opacity .15s; }
.tbl-btn.tbl-undo:hover:not([disabled]), .tbl-btn.tbl-undo:focus-visible { background: var(--tbl-ibtn-bg-hover); outline: none; box-shadow: inset 0 0 0 1.5px var(--tbl-ibtn-fg), 0 2px 6px rgba(0,0,0,.25); }
.tbl-btn.tbl-undo:active:not([disabled]) { transform: scale(.93); }
.tbl-btn.tbl-undo .ic { width: calc(var(--tbl-ibtn) * .56); height: calc(var(--tbl-ibtn) * .56); vertical-align: 0; }
.tbl-btn.tbl-undo[disabled] { opacity: .4; cursor: default; }
/* kleines Popup mit dem Namen in der eingestellten Sprache */
.tbl-btn.tbl-undo[data-tip]::after {
  content: attr(data-tip); position: absolute; left: calc(100% + 10px); top: 50%; transform: translate(-4px, -50%);
  padding: 5px 10px; border-radius: 8px; background: #1d2a24; color: #fff; font: 600 .82rem var(--sans); white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
}
.tbl-btn.tbl-undo[data-tip]:hover::after, .tbl-btn.tbl-undo[data-tip]:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
html[dir="rtl"] .tbl-btn.tbl-undo[data-tip]::after { left: auto; right: calc(100% + 10px); }
@media (hover: none) { .tbl-btn.tbl-undo[data-tip]::after { display: none; } }
.kl-board:has(> .tbl-corner.bl) { padding-bottom: max(calc(var(--gap) * 3), calc(var(--tbl-inset) + var(--tbl-ibtn) + 10px)); }
@media (max-width: 640px) {
  .kl-board:has(> .tbl-corner.bl) { padding-bottom: calc(var(--tbl-inset) + var(--tbl-ibtn) + 10px); }
}

/* „Als App speichern“ (js/a2hs.js): Hinweis-Blatt am unteren Rand, nur Handy/Tablet */
.nav-app[hidden] { display: none !important; }
.a2hs { position: fixed; z-index: 1200; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 460px; margin: 0 auto; padding: 18px 18px 14px; border-radius: 18px; background: var(--card); color: var(--ink);
  box-shadow: 0 -4px 30px rgba(0,0,0,.18), 0 18px 50px rgba(0,0,0,.28); border: 1px solid var(--line);
  transform: translateY(calc(100% + 40px)); opacity: 0; transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s; font: .95rem/1.45 var(--sans); }
.a2hs.in { transform: none; opacity: 1; }
.a2hs-x { position: absolute; top: 8px; inset-inline-end: 8px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--paper-2); color: var(--ink-2); font-size: 15px; cursor: pointer; }
.a2hs-head { display: flex; gap: 12px; align-items: center; padding-inline-end: 34px; margin-bottom: 10px; }
.a2hs-head img { width: 52px; height: 52px; border-radius: 12px; flex: none; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.a2hs-head h2 { margin: 0 0 2px; font: 700 1.08rem/1.25 var(--serif); }
.a2hs-head p { margin: 0; color: var(--ink-2); font-size: .88rem; }
.a2hs > p { margin: 6px 0 4px; }
.a2hs-steps { margin: 4px 0 6px; padding: 0; list-style: none; counter-reset: a2hs; }
.a2hs-steps li { position: relative; padding: 7px 0 7px 36px; counter-increment: a2hs; border-top: 1px solid var(--line); }
[dir="rtl"] .a2hs-steps li { padding: 7px 36px 7px 0; }
.a2hs-steps li:first-child { border-top: 0; }
.a2hs-steps li::before { content: counter(a2hs); position: absolute; inset-inline-start: 0; top: 7px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--felt); color: #fff; font: 700 .8rem/24px var(--sans); text-align: center; }
.a2hs-ic { display: inline-block; width: 20px; height: 20px; vertical-align: -4px; margin: 0 2px; color: #0a7aff; }
.a2hs-key { display: inline-block; min-width: 20px; padding: 0 4px; border-radius: 5px; background: var(--paper-2); font-weight: 700; text-align: center; }
.a2hs-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.a2hs-go { flex: 1 1 100%; justify-content: center; }
.a2hs-later, .a2hs-never { flex: 1; min-height: 40px; border: 1px solid var(--line); border-radius: var(--btn-radius-sm); background: transparent; color: var(--ink);
  font: 600 .9rem var(--sans); cursor: pointer; }
.a2hs-never { border-color: transparent; color: var(--ink-2); font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .a2hs { transition: none; } }

/* ================= Online spielen (Mau-Mau, Arschloch): Tisch anlegen, Lobby, Spieltisch ================= */
.mm2-tops { grid-area: top; display: flex; justify-content: center; gap: clamp(16px, 5vw, 56px); min-width: 0; }
.mm2-tops .mm2-seat { flex: 0 1 auto; }
.ol-setup input[type="text"], .ol-lobby input[type="text"] { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); }
.ol-setup input[type="text"]:focus, .ol-lobby input[type="text"]:focus { outline: 2px solid var(--brass); outline-offset: 1px; }
.ol-lead { margin: -6px 0 18px; }
.ol-note { margin: 10px 0 0; font-size: .85rem; }
.ol-error { margin: 10px 0 0; color: var(--red); font-weight: 600; }
.ol-wait { text-align: center; padding: 48px 0; }
.ol-code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .08em; }
.ol-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ol-invite { margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--brass); border-radius: var(--radius); background: color-mix(in srgb, var(--brass) 9%, var(--card)); }
.ol-invite p { margin: 0 0 8px; font-weight: 600; }
.ol-link { display: flex; gap: 8px; margin-bottom: 10px; }
.ol-link input { flex: 1; min-width: 0; font-size: .9rem !important; }
.ol-link .btn { white-space: nowrap; }
.ol-join { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0 0 18px; padding: 14px 16px; border-radius: var(--radius); background: var(--paper-2); }
.ol-join .mm-field { flex: 1 1 200px; margin: 0; }
.ol-join p { margin: 0; }
.ol-seats { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ol-seat { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.ol-seat.me { border-color: var(--felt); box-shadow: inset 3px 0 0 var(--felt); }
.ol-seat.open { border-style: dashed; background: transparent; }
.ol-ico { font-size: 1.15rem; width: 1.6em; text-align: center; flex: none; }
.ol-who { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ol-seat .btn { flex: none; }
.ol-tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.ol-tag.ok { background: #2fae5f; color: #fff; }
.ol-tag.no { background: #c8433a; color: #fff; }
.ol-fill { margin: 0 0 16px; }
.ol-rules { margin: 4px 0 10px; font-size: .92rem; }
.ol-waithost { margin: 0 0 12px; }
.btn.ol-entry { display: flex; justify-content: center; width: 100%; margin: -4px 0 12px; }
.btn.ol-startbtn.off { opacity: .55; }
.ol-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 0 0 10px; font-size: .9rem; color: var(--ink-2); }
/* Bedenkzeit: Pille mit Sekunden und ablaufendem Balken (--p = Anteil der Restzeit) */
.ol-timer { position: relative; display: inline-flex; align-items: center; margin-left: 6px; padding: 0 8px; min-width: 44px; height: 22px; border-radius: 999px; background: rgba(0,0,0,.4); color: #fff; font-weight: 700; font-size: .82rem; font-variant-numeric: tabular-nums; overflow: hidden; vertical-align: middle; }
.ol-timer b { position: relative; z-index: 1; font-weight: 700; }
.ol-timer i { position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p, 1) * 100%); background: #f2c94c; transition: width 1s linear; }
.ol-timer.mine { background: rgba(31, 92, 69, .9); box-shadow: 0 0 0 2px #f2c94c; }
.ol-timer.hot { background: #c8433a; animation: ol-pulse 1s ease-in-out infinite; }
.ol-timer.hot i { background: #fff; }
.ol-strike { position: sticky; top: 76px; z-index: 30; box-shadow: 0 6px 18px rgba(0,0,0,.12); margin: 0 0 10px; padding: 10px 14px; border-radius: 12px; background: #fff3cd; color: #5a4310; border: 1px solid #e8cf7a; font-size: .92rem; }
.ol-strike.out { background: #fde3e1; color: #7a1f1a; border-color: #f0b4ae; }
@keyframes ol-pulse { 50% { transform: scale(1.08); } }
.ol-off { margin-left: 6px; color: #f2c94c; }
.ol-specbacks svg { height: 110px; width: auto; }
.ar-pickcard.off { cursor: default; }
.ar-pickcard.off svg { filter: none; }
.ol-actions { margin: 14px 0 0; flex-direction: row; }
.ol-readywait { flex-basis: 100%; text-align: center; margin: 0 !important; }
.ol-lost { position: sticky; top: 8px; z-index: 30; margin: 0 auto 10px; max-width: 460px; padding: 8px 14px; border-radius: 999px; background: #c8433a; color: #fff; font-weight: 600; text-align: center; }
.ol-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; box-shadow: var(--shadow); animation: ol-in .2s ease-out; }
@keyframes ol-in { from { opacity: 0; transform: translate(-50%, 8px); } }
@media (max-width: 760px) {
  .mm2-tops { gap: 10px; }
  .ol-link { flex-direction: column; }
  .ol-seat { flex-wrap: wrap; }
  .ol-specbacks svg { height: 70px; }
}
.ol-sub { margin: -10px 0 16px; }
.ol-invited { flex-basis: 100%; margin: 0 !important; font-weight: 600; }
.ol-lobby .linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--red); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.ol-seat .btn { margin: 0; }
/* Arschloch mit 6–7 Spielern: obere Reihe über die ganze Tischbreite */
.ar-table.many .ar-tops { grid-column: 1 / -1; gap: 18px; min-width: 0; }
.ar-table.many .ar-tops .mm-backs svg { height: 70px; }
@media (max-width: 760px) { .ar-table.many .ar-tops { gap: 6px; } .ar-table.many .ar-tops .mm-backs svg { height: 34px; } }

/* Solitär: Tipp (Glühbirne unten rechts), Hervorhebung des nächsten Zugs, „kein Lösungsweg“ */
.kl-shuffle .mm2-shuffle > span { animation-iteration-count: infinite; }
.tbl-corner.br { top: auto; bottom: var(--tbl-inset); right: var(--tbl-inset); }
.tbl-btn.kl-hint[data-tip]::after { left: auto; right: calc(100% + 10px); transform: translate(4px, -50%); }
.tbl-btn.kl-hint[data-tip]:hover::after, .tbl-btn.kl-hint[data-tip]:focus-visible::after { transform: translate(0, -50%); }
html[dir="rtl"] .tbl-btn.kl-hint[data-tip]::after { right: auto; left: calc(100% + 10px); }
.tbl-btn.kl-hint.busy { animation: kl-hint-busy .9s ease-in-out infinite; }
@keyframes kl-hint-busy { 50% { opacity: .55; transform: scale(.92); } }
.kl-card.hint { box-shadow: 0 0 0 3px #7fd3ff, 0 0 18px rgba(127,211,255,.9); animation: kl-hint-pulse 1.1s ease-in-out infinite; }
.kl-stock.hint .kl-card:last-of-type, .kl-stock.hint .kl-empty { box-shadow: 0 0 0 3px #7fd3ff, 0 0 18px rgba(127,211,255,.9); animation: kl-hint-pulse 1.1s ease-in-out infinite; border-radius: 8px; }
.kl-drop.hintdst::before { content: ""; position: absolute; left: -4px; right: -4px; top: -4px; height: calc(var(--ch) + 8px); border-radius: 10px; border: 3px dashed #7fd3ff; pointer-events: none; z-index: 0; }
.kl-col.kl-drop.hintdst::before { top: auto; bottom: -4px; }
@keyframes kl-hint-pulse { 50% { box-shadow: 0 0 0 3px #7fd3ff, 0 0 4px rgba(127,211,255,.4); } }
.kl-stuck { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 650; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; max-width: calc(100% - 150px); padding: 9px 14px; border-radius: 16px; background: rgba(20, 20, 20, .82); color: #fff; font: 600 .9rem var(--sans); text-align: center; box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.kl-stuck .btn { margin: 0; }
@media (max-width: 640px) {
  .tbl-corner.br { bottom: var(--tbl-inset); right: var(--tbl-inset); }
  .kl-stuck { bottom: 8px; max-width: calc(100% - 116px); font-size: .82rem; padding: 7px 10px; }
}

/* Online-Lobby: Teams je Platz (PlayKit-Teamspiele) */
.ol-tag.t0 { background: #d8eefc; color: #0d4a73; } .ol-tag.t1 { background: #ffe3d6; color: #7a2e0e; }
.ol-up { min-width: 34px; padding-inline: 8px; }

/* ---------- Rundenergebnis als Popup AUF dem Spieltisch (PlayKit.tablePop, alle Spiele mit mehreren Runden) ---------- */
.tbl-pop { position: absolute; z-index: 25; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow: auto;
  padding: 18px 20px 16px; border-radius: 18px; background: var(--card); color: var(--ink); box-shadow: 0 18px 50px rgba(0,0,0,.45); animation: tblpop-in .22s ease-out; }
@keyframes tblpop-in { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } }
.tbl-pop .pk-result, .tbl-pop .mm-result { max-width: none; margin: 0; padding: 0; background: none; border: 0; }
.tbl-pop .pk-result h3, .tbl-pop .mm-result h3 { margin: 0 28px 10px 0; }
.tbl-pop-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.tbl-pop-toggle { position: absolute; top: 8px; right: 8px; min-width: 32px; height: 32px; padding: 0 10px; border: 0; border-radius: 999px; background: rgba(0,0,0,.07); color: inherit; font: 700 .9rem var(--sans); cursor: pointer; }
.tbl-pop.min { top: auto; bottom: 12px; width: auto; padding: 0; overflow: visible; background: none; box-shadow: none; animation: none; transform: translateX(-50%); }
.tbl-pop.min .tbl-pop-body { display: none; }
.tbl-pop.min .tbl-pop-toggle { position: static; height: 38px; padding: 0 18px; background: var(--btn-red); color: var(--on-btn-red); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
@media (max-width: 640px) { .tbl-pop { padding: 14px 12px 12px; } .tbl-pop .pk-result table, .tbl-pop .mm-result table { font-size: .84rem; } }

/* ---------- Entscheidungen direkt auf dem Spieltisch (z. B. Schwimmen: Karten behalten / die anderen drei nehmen) ---------- */
.pk-tblchoice { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 2px 0 8px; padding: 8px 10px; border-radius: 16px; background: rgba(0,0,0,.28); animation: tblpop-in2 .2s ease-out; }
@keyframes tblpop-in2 { from { opacity: 0; transform: translateY(6px); } }
.pk-tblchoice .btn { min-height: 42px; }
.pk-tblchoice .btn.ghost { background: rgba(255,255,255,.92); color: #1d2a24; border-color: transparent; }
@media (max-width: 640px) { .pk-tblchoice { gap: 6px; padding: 6px; } .pk-tblchoice .btn { flex: 1 1 auto; min-height: 40px; padding-left: 12px; padding-right: 12px; } }
.pk-tblchoice.many { max-width: 640px; }
.pk-tblchoice.many .btn { min-height: 36px; padding: 6px 12px; font-size: .88rem; flex: 0 0 auto; }

/* =====================================================================================
   Wählbare Looks der Website (Fußzeile „Look“, gespeichert in cgz-look, gesetzt als html[data-look])
   Standard = ohne Attribut. Spieltische und Kartenbilder bleiben in allen Looks unverändert.
   ===================================================================================== */
.footer-look { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: 18px; }
.footer-look .fl-label { font-weight: 600; color: var(--ink); }
.footer-look button { font: 600 .85rem var(--sans); color: var(--ink); background: var(--card); border: 1.5px solid var(--line); border-radius: var(--btn-radius-sm); padding: 5px 12px; min-height: 32px; cursor: pointer; }
.footer-look button:hover { border-color: var(--brass); }
.footer-look button[aria-pressed="true"] { background: var(--felt); border-color: var(--felt); color: #fff; }
@media (max-width: 640px) { .footer-look { margin: 10px 0 0; display: flex; } }

/* ---------- Retro „Spielsalon“: Papier, Flaschengrün, Weinrot, Messing; Playfair Display + Libre Baskerville ---------- */
html:root[data-look="retro"] {
  --paper: #f3e9d2; --paper-2: #eadcbc; --card: #fbf6ea; --ink: #2b1d14; --ink-2: #5c4632; --line: #d6c39a;
  --felt: #1f4d3a; --felt-dark: #1f3b2e; --red: #7a1f2b; --brass: #b08d3c; --radius: 4px;
  --shadow: 0 2px 0 #d6c39a;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Libre Baskerville", Georgia, serif;
  --caps: "Cormorant SC", "Playfair Display", Georgia, serif;
  color-scheme: light;
}
[data-look="retro"] body { font-size: 15.5px; line-height: 1.65; }
[data-look="retro"] h1, [data-look="retro"] h2, [data-look="retro"] h3 { letter-spacing: 0; color: var(--felt-dark); }
[data-look="retro"] .site-header { border-bottom: 4px double var(--brass); box-shadow: none; }
[data-look="retro"] .logo { font-weight: 700; letter-spacing: .02em; }
[data-look="retro"] .logo b { color: #d9b25c; }
[data-look="retro"] .nav a, [data-look="retro"] .dropdown-btn, [data-look="retro"] .add-game, [data-look="retro"] .hdr-play, [data-look="retro"] .nav-add { font-family: var(--caps); font-weight: 700; font-size: 1.05rem; letter-spacing: .06em; border-radius: 3px; }
[data-look="retro"] .nav a.active, [data-look="retro"] .dropdown-btn.active { background: transparent; color: #d9b25c; box-shadow: inset 0 -2px 0 #d9b25c; border-radius: 0; }
[data-look="retro"] .site-search input { border-radius: 3px; font-style: italic; }
[data-look="retro"] .btn { font-family: var(--caps); font-weight: 700; font-size: 1.05rem; letter-spacing: .07em; border-radius: 2px; }
[data-look="retro"] .btn.primary { box-shadow: 0 0 0 1px var(--paper), 0 0 0 2px var(--red); }
[data-look="retro"] .btn.primary:hover, [data-look="retro"] .hdr-play:hover { background: #5e1621; }
[data-look="retro"] .btn.ghost { border-color: var(--felt-dark); color: var(--felt-dark); }
[data-look="retro"] .eyebrow, [data-look="retro"] .facts dt, [data-look="retro"] .toc b, [data-look="retro"] .dd-group b { font-family: var(--caps); font-size: .95rem; letter-spacing: .14em; }
[data-look="retro"] .eyebrow::before, [data-look="retro"] .eyebrow::after { content: " ◆ "; color: var(--brass); }
[data-look="retro"] .facts { gap: 0; border-top: 1px solid var(--brass); border-bottom: 1px solid var(--brass); }
[data-look="retro"] .facts div { background: none; border: 0; border-radius: 0; border-left: 1px solid var(--line); }
[data-look="retro"] .facts div:first-child { border-left: 0; padding-left: 0; }
[data-look="retro"] .fit-launch { border: 1px solid var(--brass); outline: 1px solid var(--brass); outline-offset: 4px; border-radius: 0; }
[data-look="retro"] .section-head { border-bottom: 3px double var(--brass); padding-bottom: 8px; }
[data-look="retro"] .section-head a, [data-look="retro"] .crumbs a { font-family: var(--caps); font-size: 1.05rem; letter-spacing: .06em; }
[data-look="retro"] .tile { padding: 7px; border-color: var(--brass); }
[data-look="retro"] .tile:hover { box-shadow: 0 2px 0 var(--brass), 0 10px 22px rgba(43,29,20,.18); }
[data-look="retro"] .tile-art { box-shadow: inset 0 0 0 1px var(--brass); }
[data-look="retro"] .badge { background: transparent; border: 1px solid var(--brass); color: var(--red); font-family: var(--caps); font-size: .85rem; letter-spacing: .08em; border-radius: 2px; }
[data-look="retro"] .country, [data-look="retro"] .term-hit, [data-look="retro"] .chip, [data-look="retro"] .filter, [data-look="retro"] .fit-chip, [data-look="retro"] .search { border-radius: 3px; }
[data-look="retro"] .filter, [data-look="retro"] .fit-chip { font-family: var(--caps); font-size: 1rem; letter-spacing: .05em; }
[data-look="retro"] .teaser { background: var(--felt-dark); border-radius: 0; box-shadow: inset 0 0 0 1px var(--brass), inset 0 0 0 7px var(--felt-dark), inset 0 0 0 8px var(--brass); }
[data-look="retro"] .rules h2 { border-bottom: 1px solid var(--line); padding-bottom: 4px; }
[data-look="retro"] .site-footer { background: #e9dcbd; border-top: 4px double var(--brass); }
[data-look="retro"] .footer-look button, [data-look="retro"] .footer-lang select { border-radius: 3px; }

/* ---------- Klassisch: dunkles Flaschengrün, Creme-Schrift, Messing; Fraunces + Inter (nur Variablen, unabhängig vom System-Dunkelmodus) ---------- */
html:root[data-look="classic"] {
  --paper: #0f1714; --paper-2: #18241f; --card: #18241f; --ink: #eef2ee; --ink-2: #9fb0a6; --line: #2c3d35;
  --felt: #1f5c45; --felt-dark: #0b120f; --red: #e0645b; --brass: #d8b462;
  --btn-red: #b8322a; --on-btn-red: #fff; --btn-felt: var(--felt); --on-btn-felt: #fff;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.3);
  color-scheme: dark;
}
[data-look="classic"] .site-header { border-bottom: 1px solid var(--line); }
[data-look="classic"] .tile { border-color: var(--line); }
[data-look="classic"] .tile:hover { border-color: var(--brass); }
/* Klassisch – Startseite: Hero mit Seitenliste „Top in Deutschland“, Kacheln mit „Spielen“ (Markup nur bei data-look=classic, siehe classicHero in app.js) */
[data-look="classic"] .cl-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; padding: 8px 0 28px; }
[data-look="classic"] .cl-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: center; min-height: 420px; padding: 36px 44px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: radial-gradient(ellipse at 70% 45%, #2f7a5a 0, #1b5a43 45%, #0d2c20 100%); color: #fff; }
[data-look="classic"] .cl-stage::before { content: ""; position: absolute; inset: 14px; border: 2px dashed rgba(216,180,98,.4); border-radius: 12px; pointer-events: none; }
[data-look="classic"] .cl-copy { position: relative; }
[data-look="classic"] .cl-stage .eyebrow { color: var(--brass); }
[data-look="classic"] .cl-stage .hero-title { font-size: clamp(2rem, 4vw, 2.9rem); margin-bottom: 10px; }
[data-look="classic"] .cl-stage .hero-link { color: #fff; text-decoration: none; }
[data-look="classic"] .cl-stage .lead { color: #dfe9e3; }
[data-look="classic"] .cl-meta { margin: 0 0 16px; font-size: .9rem; color: #c5d4cb; }
[data-look="classic"] .cl-stage .btn.ghost { background: rgba(255,255,255,.14); border-color: transparent; color: #fff; }
[data-look="classic"] .cl-art { position: relative; display: block; }
[data-look="classic"] .cl-art .hero-art svg { filter: drop-shadow(0 12px 22px rgba(0,0,0,.45)); }
[data-look="classic"] .cl-side { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
[data-look="classic"] .cl-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--btn-radius); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
[data-look="classic"] .cl-item:hover, [data-look="classic"] .cl-item.on { background: var(--paper-2); }
[data-look="classic"] .cl-item:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
[data-look="classic"] .cl-th { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; background: linear-gradient(135deg, #2f7a5a, #0d2c20); color: #fff; font: 700 1.2rem var(--serif); }
[data-look="classic"] .cl-it { min-width: 0; display: flex; flex-direction: column; }
[data-look="classic"] .cl-it b { font-size: .95rem; }
[data-look="classic"] .cl-it small { font-size: .78rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-look="classic"] .cl-rank { margin-left: auto; flex: none; font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(216,180,98,.18); color: var(--brass); }
@media (max-width: 900px) {
  [data-look="classic"] .cl-hero { grid-template-columns: minmax(0, 1fr); }
  [data-look="classic"] .cl-stage { grid-template-columns: minmax(0, 1fr); padding: 24px 22px; min-height: 0; }
  [data-look="classic"] .cl-art { order: -1; }
  [data-look="classic"] .cl-side { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
  [data-look="classic"] .cl-side li { flex: none; width: 190px; }
  [data-look="classic"] .cl-item { background: var(--card); border: 1px solid var(--line); }
}

/* ---------- Futuristisch „Neon Table“: dunkles Raster, Cyan/Magenta, Glasflächen; Space Grotesk + Inter + JetBrains Mono ---------- */
html:root[data-look="neo"] {
  --paper: #070a14; --paper-2: #121a2e; --card: #0d1426; --ink: #e8ecf7; --ink-2: #a9b1c6; --line: #222c45;
  --felt: #0e6475; --felt-dark: #070a14; --red: #ff4fd8; --brass: #3ee6ff; --radius: 18px;
  --cyan: #3ee6ff; --mag: #ff4fd8; --btn-red: var(--mag); --on-btn-red: #04121a; --btn-felt: var(--cyan); --on-btn-felt: #04121a;
  --shadow: 0 0 0 1px rgba(62,230,255,.06), 0 12px 30px rgba(0,0,0,.45);
  --serif: "Space Grotesk", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
[data-look="neo"] body { background-color: #070a14; background-image: linear-gradient(rgba(62,230,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(62,230,255,.045) 1px, transparent 1px); background-size: 48px 48px; }
[data-look="neo"] h1, [data-look="neo"] h2, [data-look="neo"] h3 { letter-spacing: -.025em; color: #f4f7ff; }
[data-look="neo"] h1 { letter-spacing: -.04em; }
[data-look="neo"] .site-header { background: rgba(7,10,20,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(62,230,255,.2); box-shadow: none; }
[data-look="neo"] .logo { font-weight: 700; letter-spacing: -.01em; }
[data-look="neo"] .nav a, [data-look="neo"] .dropdown-btn { color: #c3cadc; }
[data-look="neo"] .nav a.active, [data-look="neo"] .dropdown-btn.active { background: rgba(62,230,255,.12); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(62,230,255,.4); }
[data-look="neo"] .nav a.nav-play::before { color: var(--cyan); }
[data-look="neo"] .add-game { border-color: rgba(62,230,255,.35); }
[data-look="neo"] .hdr-play { background: var(--cyan); color: #04121a; }
[data-look="neo"] .site-search input { border-radius: 12px; background: rgba(255,255,255,.04); border-color: rgba(195,202,220,.18); }
[data-look="neo"] .site-search input:focus { background: #0d1426; color: var(--ink); border-color: var(--cyan); }
[data-look="neo"] .site-search input:focus::placeholder { color: #8c95ae; }
[data-look="neo"] .site-search:focus-within .ss-icon { color: var(--cyan); }
[data-look="neo"] .site-search, [data-look="neo"] .site-search:focus-within { --ss-clear: var(--cyan); }
[data-look="neo"] .btn { border-radius: var(--btn-radius); font-family: var(--serif); font-weight: 700; }
[data-look="neo"] .btn.primary, [data-look="neo"] .btn.primary:hover { background: var(--cyan); color: #04121a; box-shadow: 0 0 24px rgba(62,230,255,.45); }
[data-look="neo"] .btn.primary:hover { filter: brightness(1.08); }
[data-look="neo"] .btn.ghost { border-color: rgba(195,202,220,.28); }
[data-look="neo"] .btn.ghost:hover { background: rgba(62,230,255,.08); border-color: rgba(62,230,255,.5); }
[data-look="neo"] .eyebrow, [data-look="neo"] .facts dt, [data-look="neo"] .toc b, [data-look="neo"] .dd-group b, [data-look="neo"] .badge { font-family: var(--mono); font-weight: 500; letter-spacing: .1em; }
[data-look="neo"] .eyebrow { color: var(--mag); }
[data-look="neo"] .eyebrow::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--mag); box-shadow: 0 0 10px var(--mag); vertical-align: 1px; }
[data-look="neo"] .facts div, [data-look="neo"] .fit-launch, [data-look="neo"] .country, [data-look="neo"] .term-hit { background: rgba(255,255,255,.035); border-color: rgba(195,202,220,.13); }
[data-look="neo"] .fit-launch { border-radius: 18px; }
[data-look="neo"] .section-head h2::before { content: "// "; color: var(--cyan); font-family: var(--mono); font-weight: 500; font-size: .55em; vertical-align: .35em; }
[data-look="neo"] .section-head a, [data-look="neo"] .crumbs a, [data-look="neo"] .fit-launch-txt a { color: var(--cyan); }
[data-look="neo"] .tile { border-radius: 20px; background: rgba(255,255,255,.035); border-color: rgba(195,202,220,.13); }
[data-look="neo"] .tile:hover { border-color: rgba(62,230,255,.5); box-shadow: 0 0 0 1px rgba(62,230,255,.25), 0 0 30px rgba(62,230,255,.18); }
[data-look="neo"] .tile-art { background: #0b1324; border-bottom: 1px solid rgba(62,230,255,.18); }
[data-look="neo"] .badge { background: rgba(255,79,216,.12); color: #ff8be6; }
[data-look="neo"] .country:hover, [data-look="neo"] .term-hit:hover, [data-look="neo"] .chip:hover, [data-look="neo"] .filter:hover, [data-look="neo"] .fit-chip:hover { border-color: rgba(62,230,255,.55); }
[data-look="neo"] .filter.active, [data-look="neo"] .fit-chip.active, [data-look="neo"] .footer-look button[aria-pressed="true"] { background: rgba(62,230,255,.14); border-color: var(--cyan); color: var(--cyan); }
[data-look="neo"] .filter.active span { color: #a8f4ff; }
[data-look="neo"] .search, [data-look="neo"] .chip, [data-look="neo"] .filter, [data-look="neo"] .fit-chip { border-radius: 12px; }
[data-look="neo"] .search:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(62,230,255,.15); }
[data-look="neo"] .teaser { background: #0b1324; border: 1px solid rgba(62,230,255,.3); box-shadow: 0 0 50px rgba(62,230,255,.12); border-radius: 28px; }
[data-look="neo"] .toc a:hover, [data-look="neo"] .toc a.toc-active { border-color: var(--cyan); }
[data-look="neo"] .rules ol li::marker { color: var(--cyan); }
[data-look="neo"] .dropdown-menu, [data-look="neo"] .ss-list { background: #0d1426; border-color: rgba(62,230,255,.22); }
[data-look="neo"] .dropdown-menu a.all { color: var(--cyan); }
[data-look="neo"] .fit-dlg-head { background: #0b1324; border-bottom: 1px solid rgba(62,230,255,.25); }
[data-look="neo"] .site-footer { border-top: 1px solid rgba(62,230,255,.2); }
[data-look="neo"] .footer-look button, [data-look="neo"] .footer-lang select { border-radius: 10px; }
/* Spieltische behalten in allen Looks ihre Schriften und Farben */
[data-look] .mm-table, [data-look] .mm2-table, [data-look] .kl-board, [data-look] .tbl-pop, [data-look] .card-pop {
  --serif: "Fraunces", Georgia, "Times New Roman", serif; --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
[data-look] .mm-table h1, [data-look] .mm-table h2, [data-look] .mm-table h3, [data-look] .mm2-table h3 { color: inherit; letter-spacing: -.01em; }
[data-look="retro"] .nav a, [data-look="retro"] .dropdown-btn { font-size: .98rem; letter-spacing: .03em; padding: 8px 10px; white-space: nowrap; }
[data-look="retro"] .add-game { white-space: nowrap; font-size: .98rem; letter-spacing: .03em; }
/* „Spiel hinzufügen“ in der Kopfzeile: nur ein „+“, der Text klappt beim Darüberfahren bzw. bei Tastaturfokus auf */
.add-game { gap: 0; padding: 0; width: auto; min-width: 34px; justify-content: center; transition: background .15s, padding .2s; }
.add-game .add-plus { width: 32px; text-align: center; font-size: 1.25rem; font-weight: 700; }
.add-game .add-label { max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; transition: max-width .25s ease, opacity .2s ease, padding .25s ease; }
.add-game:hover, .add-game:focus-visible { padding-right: 12px; }
.add-game:hover .add-label, .add-game:focus-visible .add-label { max-width: 16em; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .add-game .add-label, .add-game { transition: none; } }
.add-game .add-label { color: inherit; font-size: .88rem; line-height: 1; }
/* „+ Spiel hinzufügen“ sieht aus wie die übrigen Menüpunkte oben (Spielen, Alle Spiele, Länder …): gleiche Schrift, kein Rahmen */
.add-game { height: auto; min-width: 0; padding: 8px 12px; border: 0; background: none; color: #f6f1e7; font: 500 .95rem var(--sans); border-radius: 999px; }
.add-game:hover, .add-game:focus-visible { background: rgba(255,255,255,.08); padding-right: 14px; }
.add-game .add-plus { width: auto; font-size: .95rem; font-weight: 700; line-height: 1; color: var(--brass); }
.add-game .add-label { font: inherit; line-height: inherit; }
.add-game:hover .add-label, .add-game:focus-visible .add-label { padding-left: 6px; }
[data-look="neo"] .add-game { border: 0; color: #c3cadc; }
[data-look="neo"] .add-game:hover, [data-look="neo"] .add-game:focus-visible { background: rgba(62,230,255,.08); }
[data-look="retro"] .add-game { border: 0; font-size: .98rem; }
[data-look="retro"] .add-game:hover { background: rgba(255,255,255,.08); }
.add-game span.add-label[aria-hidden] { color: inherit; font-size: inherit; font-weight: inherit; }
.add-game span.add-plus[aria-hidden] { font-size: .95rem; }
/* Hinweis auf die Sprachfassung (deutsche Adresse, Browser in anderer Sprache) */
.lang-hint { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 900; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; width: min(560px, calc(100% - 24px)); padding: 12px 16px; border-radius: 16px; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(0,0,0,.22); font-size: .95rem; }
.lang-hint .btn.small { margin: 0; }
.lang-hint .lh-x { border: 0; background: none; color: var(--ink-2); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 4px 8px; min-width: 32px; min-height: 32px; }

/* Patiencen (play-patience.js): frei angeordnete Stapel auf dem Solitär-Tisch */
.pt-area { position: relative; margin: 0 auto; }
.pt-hide { visibility: hidden; }
.pt-pile { position: absolute; border-radius: calc(var(--cw) * .08); }
.pt-pile.can, .pt-pile.over { box-shadow: 0 0 0 2px rgba(242,201,76,.8); }
.pt-pile.pt-stock { cursor: pointer; }
.pt-pile.pt-grid .kl-empty { border-style: solid; border-color: rgba(255,255,255,.18); background: rgba(0,0,0,.12); }
.pt-c { cursor: default; touch-action: none; }
.pt-c.pt-drag { cursor: pointer; }
.pt-c.pt-cur { cursor: pointer; box-shadow: 0 0 0 3px #f2c94c, 0 0 16px rgba(242,201,76,.85); border-radius: calc(var(--cw) * .08); }
.pt-c.pt-last { box-shadow: 0 0 0 2px rgba(255,255,255,.85); border-radius: calc(var(--cw) * .08); }
.pt .kl-finish.pt-action, .pt .kl-finish.pt-auto { background: #f4ecd8; }
/* Spit */
.sp-name { margin: 0 auto 8px; text-align: center; color: #fff; font-size: .9rem; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.sp-name:not(.sp-top) { margin: 8px auto 0; }
.sp-stuck { color: #f2c94c; font-weight: 700; }
.sp .kl-finish.sp-spit { font-size: 1.15rem; padding: 12px 28px; animation: kl-hint-pulse 1.1s ease-in-out infinite; }
/* Kings in the Corner: Kreuz mit vier Ecken um den Stapel */
.kc-grid { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 14px; justify-content: center; align-items: center; }
.kc-cell { position: relative; display: grid; place-items: center; min-width: 74px; min-height: 104px; border-radius: 10px; }
.pk-center .kc-cell .pk-card svg { height: 96px; }
.kc-cell.ok { box-shadow: 0 0 0 3px #f2c94c, 0 0 14px rgba(242,201,76,.7); cursor: pointer; }
.kc-under { position: absolute; transform: translate(-6px, -8px); opacity: .9; }
.kc-under .pk-card svg { height: 96px; }
.kc-empty { display: grid; place-items: center; width: 68px; height: 96px; border: 2px dashed rgba(255,255,255,.3); border-radius: 8px; color: rgba(255,255,255,.35); font: 700 1.4rem var(--serif); }
.kc-n { position: absolute; right: -6px; bottom: -6px; padding: 1px 6px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font: 700 .7rem var(--sans); }
.kc-mv { position: absolute; left: -8px; top: -8px; z-index: 3; width: 28px; height: 28px; border: 0; border-radius: 50%; background: #f2c94c; color: #1d2a24; font-weight: 700; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.kc-stock .pk-cards svg { height: 96px; }
@media (max-width: 640px) {
  .kc-grid { gap: 6px 8px; }
  .kc-cell { min-width: 52px; min-height: 74px; }
  .pk-center .kc-cell .pk-card svg, .kc-under .pk-card svg, .kc-stock .pk-cards svg { height: 70px; }
  .kc-empty { width: 48px; height: 70px; }
}
.pt-pile .kl-count { z-index: 400; }

/* Konto (js/account.js, Seite /konto) */
.nav a.nav-account[hidden] { display: none; }
.acc-points { padding-left: 1.2em; }
.acc-points li { margin: 6px 0; }
.acc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-actions .btn.small, .acc-del { margin-top: 0; }
.acc-del.armed { background: var(--btn-red); border-color: var(--btn-red); color: var(--on-btn-red); }
.acc-err { border-left-color: var(--red); }
.acc-ok { border-left-color: #2e7d4f; }
.muted.small { font-size: .86rem; }

/* ---------- Spiel-Baukasten (/baukasten, nur für den Betreiber) ---------- */
.bk { padding-top: 28px; }
.bk-head h1 { margin-bottom: .2em; }
.bk-head .muted { max-width: 62ch; margin: 0; }
.bk-bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin: 22px 0 18px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.bk-bar-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bk-bar .btn.small, .bk .btn.small { margin-top: 0; }
.bk-pick { display: flex; flex-direction: column; gap: 4px; font-size: .82rem; min-width: 220px; }
.bk select, .bk .bk-text, .bk .bk-num { font: 500 .92rem var(--sans); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 10px; min-height: 40px; max-width: 100%; }
.bk select:focus, .bk .bk-text:focus, .bk .bk-num:focus { outline: none; border-color: var(--brass); }
.bk .bk-text { width: min(100%, 360px); }
.bk .bk-num { width: 88px; }
.bk-newsel { font-weight: 600 !important; border-color: var(--red) !important; }
.bk-danger { color: var(--red) !important; }
.bk-import { cursor: pointer; }
.bk-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
@media (min-width: 1000px) { .bk-grid { grid-template-columns: minmax(0, 1fr) 340px; } .bk-side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; } }
.bk-sec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); }
.bk-sec > summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; }
.bk-sec > summary::-webkit-details-marker { display: none; }
.bk-sec > summary::after { content: "▾"; color: var(--ink-2); transition: transform .2s; }
.bk-sec:not([open]) > summary::after { transform: rotate(-90deg); }
.bk-sec h2 { font-size: 1.12rem; margin: 0; }
.bk-body { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.bk-row { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-start; }
.bk-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.bk-field > small { font-size: .78rem; max-width: 34ch; }
.bk-lab { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.bk-ctl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bk-chk { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; cursor: pointer; min-height: 36px; }
.bk-chk input { width: 18px; height: 18px; accent-color: var(--felt); }
.bk-note { font-size: .86rem; margin: 0; }
.bk-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.bk-mode, .bk-deck { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; font: 600 .95rem var(--sans); }
.bk-mode small, .bk-deck small { font-weight: 500; font-size: .78rem; color: var(--ink-2); line-height: 1.35; }
.bk-mode:hover, .bk-deck:hover { border-color: var(--brass); }
.bk-mode.active, .bk-deck.active { border-color: var(--felt); background: var(--felt); color: #fff; }
.bk-mode.active small, .bk-deck.active small { color: rgba(255,255,255,.8); }
.bk-decks { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.bk-deck { align-items: center; text-align: center; padding: 10px 8px; }
.bk-deck-img { height: 92px; display: flex; align-items: center; justify-content: center; }
.bk-deck-img svg { height: 92px; width: auto; }
.bk-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bk-chip { font: 600 .84rem var(--sans); padding: 6px 12px; border-radius: var(--btn-radius-sm); border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; min-height: 34px; }
.bk-chip:hover { border-color: var(--brass); }
.bk-chip.active { background: var(--felt); border-color: var(--felt); color: #fff; }
.bk-values { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.bk-val { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 4px 4px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: .86rem; }
.bk-val .bk-num { width: 64px; min-height: 34px; padding: 4px 6px; }
.bk-item { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px 44px 14px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.bk-del { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; font-size: .85rem; }
.bk-del:hover { color: var(--red); border-color: var(--red); }
.bk-del.sm { position: static; width: 26px; height: 26px; font-size: .75rem; }
.bk-card { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.bk-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bk-w { font: 700 .78rem var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--red); min-width: 44px; }
.bk-thens { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.bk-then { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bk-then .bk-w { min-width: 0; color: var(--ink-2); }
.bk-side { display: flex; flex-direction: column; gap: 12px; }
.bk-sum, .bk-warn { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.bk-sum h3 { margin-bottom: 8px; }
.bk-sum ul, .bk-warn ul { margin: 0; padding-left: 18px; font-size: .9rem; display: flex; flex-direction: column; gap: 6px; }
.bk-warn { border-color: var(--brass); background: color-mix(in srgb, var(--brass) 12%, var(--card)); }
.bk-warn b { display: block; margin-bottom: 6px; }
.btn.bk-test { width: 100%; justify-content: center; padding: 14px 18px; font-size: 1.02rem; }
.bk-playwrap { margin-top: 28px; scroll-margin-top: 80px; }
.bk-playhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.bk-playhead h2 { margin: 0; }
.bk-melds { flex-wrap: wrap; justify-content: center; gap: 8px; }
.bk-meld small { color: rgba(255,255,255,.8); }
.bk-lock { max-width: 460px; margin: 0 auto; padding-top: 60px; text-align: center; }
.bk-lockform { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.bk-lockform .bk-text { flex: 1; min-width: 200px; }
@media (max-width: 640px) {
  .bk-bar { flex-direction: column; align-items: stretch; }
  .bk-pick { min-width: 0; }
  .bk-item { padding-right: 40px; }
  .bk select { max-width: calc(100vw - 110px); }
}

/* ---------- Verwaltung auf /konto (nur Admin-Konto) ---------- */
.adm { margin: 28px 0; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.adm h2 { margin-top: 0; }
.adm-claim { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-in { font: 500 .92rem var(--sans); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; min-height: 40px; width: 100%; max-width: 320px; }
.adm-in:focus { outline: none; border-color: var(--brass); }
.adm-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .adm-grid { grid-template-columns: 1fr 1fr; } }
.adm-block h3 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.adm-block h3 small { font: 500 .8rem var(--sans); }
.adm-list { list-style: none; margin: 10px 0 0; padding: 0; max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.adm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.adm-row:last-child { border-bottom: 0; }
.adm-row.off span { opacity: .55; text-decoration: line-through; }
.adm-tg { flex: none; font: 600 .8rem var(--sans); min-width: 108px; min-height: 34px; padding: 4px 12px; border-radius: var(--btn-radius-sm); border: 1.5px solid var(--felt); background: var(--felt); color: #fff; cursor: pointer; }
.adm-row.off .adm-tg { background: transparent; color: var(--red); border-color: var(--red); }
.adm-tg:disabled { opacity: .6; }
.adm-row[hidden] { display: none; }

/* ==========================================================================
   Startseite 2026-11: kurzer Einstieg, ruhigeres Zufallsspiel, weniger Kästen
   (nur Variablen – gilt in Standard und Futuristisch)
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
svg.ic { display: inline-block; flex: none; vertical-align: -3px; }

.intro { padding: 40px 0 8px; max-width: 780px; }
.intro-claim { font-size: clamp(1.75rem, 3.6vw, 2.6rem); margin: 0 0 .3em; }
.intro-sub { margin: 0 0 18px; color: var(--ink-2); font-size: 1.08rem; max-width: 60ch; }
.intro .fit-launch, [data-look] .intro .fit-launch { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin: 0; padding: 0; background: none; border: 0; outline: 0; border-radius: 0; }
.fit-launch[hidden], [data-look] .intro .fit-launch[hidden] { display: none; }
.intro .fit-launch-txt { flex-basis: 100%; font-size: .92rem; }

.hero { padding: 36px 0 28px; border-top: 1px solid var(--line); margin-top: 28px; }
.resume-sec + .hero { margin-top: 8px; }
/* Startseite ab 1800 px: „Weiterspielen“ als Leiste im freien linken Rand, Partien untereinander */
@media (min-width: 1800px) {
  main.wrap { position: relative; }
  .resume-side { position: absolute; top: 0; bottom: 0; right: calc(100% + 36px); width: 250px; padding-top: 48px; }
  .resume-side .resume-inner { position: sticky; top: 84px; }
  .resume-side .section-head { flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 12px; }
  .resume-side .section-head h2 { font-size: 1.35rem; margin: 0; }
  .resume-side .section-head a { font-size: .9rem; }
  .resume-side .resume-list { grid-template-columns: 1fr; gap: 10px; }
  .resume-side .resume-card { gap: 10px; padding: 8px; }
  .resume-side .resume-card:hover { transform: translateX(2px); }
  .resume-side .resume-art { flex-basis: 72px; }
  .resume-side .resume-txt { font-size: .92rem; }
  .resume-side .resume-txt small { font-size: .82rem; }
  .resume-side + .hero { margin-top: 28px; }
}
.hero-title { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 .25em; }
.hero .lead { margin: 0 0 14px; }
.hero-meta { margin: 0 0 22px; display: grid; gap: 6px; }
.hero-meta div { display: flex; gap: 10px; align-items: baseline; }
.hero-meta dt { color: var(--ink-2); flex: none; }
.hero-meta dd { margin: 0; font-weight: 500; }
.hero-meta .hero-kind { font-size: .88rem; color: var(--ink-2); gap: 6px; }
.hero-meta .hero-kind dd { font-weight: 400; }
.hero .actions { margin: 0; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; margin-top: 14px; }
.linkbtn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 2px; min-height: 44px; border: 0; background: none; cursor: pointer;
  font: 600 .9rem var(--sans); color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.linkbtn:hover { color: var(--red); text-decoration-color: currentColor; }
.linkbtn:focus-visible, .btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.linkbtn .share-ic { width: 16px; height: 16px; }
.btn.hero-share { padding: 12px 22px; font-size: 1rem; }
.btn.hero-share .share-ic { width: 20px; height: 20px; }
/* Vorschaubild: Tisch bleibt (gleiches Design wie am Spieltisch), nur der Schatten wird leiser */
.hero .hero-art svg { filter: drop-shadow(0 6px 10px rgba(20, 40, 30, .14)); }
@media (max-width: 900px) {
  .intro { padding-top: 24px; }
  .hero { padding-top: 20px; margin-top: 20px; }
}
@media (max-width: 640px) {
  .intro .fit-launch .btn { flex: 1 1 100%; justify-content: center; }
  .hero .actions .btn { flex: 1 1 auto; justify-content: center; }
}
/* „+“ oben links: als runder Knopf erkennbar (Rahmen), Beschriftung klappt beim Darüberfahren/Fokus auf */
@media (min-width: 1001px) {
  .add-game { box-shadow: inset 0 0 0 1.5px rgba(201,162,74,.55); padding: 6px 9px; }
  .add-game:hover, .add-game:focus-visible { padding-right: 14px; }
}
.nav .ic { vertical-align: -4px; }
.nav .ic + span, .lang-btn .ic { margin-left: 2px; }
/* Kopfzeile 1001–1599 px: Menüpunkte enger, Konto nur als Symbol – das Suchfeld behält Platz */
@media (min-width: 1001px) and (max-width: 1599px) {
  .header-inner { gap: 12px; }
  .nav { gap: 0; }
  .nav a, .dropdown-btn { padding: 8px 10px; }
  .site-search { min-width: 190px; }
}
@media (min-width: 761px) and (max-width: 1299px) {
  .nav-account .acc-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Sehr schmale Handys (≤ 380 px): Kopfzeile darf nicht breiter als der Bildschirm werden */
@media (max-width: 380px) {
  .header-inner { gap: 6px; }
  .hdr-play { padding: 0; width: 32px; justify-content: center; }
  .hdr-play span:not([aria-hidden]) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .search-toggle, .nav-toggle { padding: 8px 6px; }
}
@media (max-width: 340px) { .logo span { font-size: .98rem; } .logo-mark { width: 28px; height: 28px; } }
/* Spielseiten: kein Doppeltipp-Zoom */
html.in-game, html.in-game body { touch-action: manipulation; }

/* Favoriten-Herz auf der Spielseite: mobil links neben „Teilen“, am PC rechts neben dem Spielnamen */
.crumb-btns { display: flex; align-items: center; gap: 10px; flex: none; }
.fav-round { display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--red); cursor: pointer; box-shadow: var(--shadow); }
.fav-round .fav-heart { display: block; width: 20px; height: 20px; }
.fav-round .fav-heart path { fill: transparent; transition: fill .15s; }
.fav-round.on .fav-heart path { fill: currentColor; }
.fav-round:hover, .fav-round:focus-visible { border-color: var(--red); outline: none; }
.fav-round:active { transform: scale(.94); }
.fav-round.pop .fav-heart { animation: fav-pop .35s ease; }
.title-row { display: flex; align-items: center; gap: 14px; }
.title-row h1 { min-width: 0; }
/* Spieltitel einzeilig (app.js, fitTitles); nur sehr lange Namen auf schmalen Bildschirmen brechen um */
.game-head > div { min-width: 0; }
.title-row h1.fit { flex: 0 1 auto; white-space: nowrap; }
.title-row h1.fit.fit-wrap { white-space: normal; text-wrap: balance; }
.eyebrow-link { color: inherit; text-decoration: none; }
.eyebrow-link:hover, .eyebrow-link:focus-visible { text-decoration: underline; }
/* Detail page: round play buttons inside the facts grid – red "vs. computer", felt green "with friends" (online games only) */
/* Landesmusik (js/music.js): Play-Knopf + bis zu 3 Sender, nur Design-Variablen */
.music-box { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 20px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.music-box[hidden] { display: none; }
.mb-play { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--btn-red); color: var(--on-btn-red); }
.mb-play:focus-visible, .mb-st:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.music-box[data-state="loading"] .mb-play { opacity: .75; }
.mb-main { min-width: 0; flex: 1; }
.mb-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }
.mb-stations { display: flex; flex-wrap: wrap; gap: 6px; }
.mb-st { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 10px; min-height: 36px; border: 1px solid var(--line); border-radius: var(--btn-radius-sm); background: none; color: var(--ink); font: 600 .85rem/1.2 var(--sans); cursor: pointer; text-align: start; }
.mb-st small { font-weight: 500; font-size: .72rem; color: var(--ink-2); }
.mb-st[aria-checked="true"] { border-color: var(--brass); background: rgba(201, 162, 74, .12); }
.mb-status { margin: 6px 0 0; font-size: .85rem; min-height: 1.2em; }
.music-box[data-state="error"] .mb-status { color: var(--red); }
.mb-note { margin: 2px 0 0; font-size: .72rem; line-height: 1.35; }
.facts div.fact-play { display: grid; place-items: center; padding: 0; border: 0; background: none; box-shadow: none; }
.facts div.fact-play.fp-two { grid-column: span 2; }
/* two buttons: same 2-column rhythm as the facts grid, so each circle sits centred under the box above */
.facts div.fact-play.fp-two { place-items: stretch; }
.fact-play.fp-two dd { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; justify-items: center; }
.fact-play dd { margin: 0; display: flex; justify-content: center; align-items: flex-start; gap: 22px; }
.fp-btn { --fp-bg: var(--btn-red); --fp-fg: var(--on-btn-red); display: flex; flex-direction: column; align-items: center; gap: 8px; width: 128px; color: var(--ink); text-decoration: none; text-align: center; outline: none; }
.fp-btn.fp-friends { --fp-bg: var(--btn-felt); --fp-fg: var(--on-btn-felt); }
.fp-circ { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--fp-bg); color: var(--fp-fg); box-shadow: var(--shadow); transition: transform .15s ease, filter .15s ease; }
.fp-cap { font: 700 .85rem/1.25 var(--sans); }
.fp-cap small { display: block; font-weight: 400; font-size: .78rem; color: var(--ink-2); }
.fp-btn:hover .fp-circ, .fp-btn:focus-visible .fp-circ { filter: brightness(1.08); transform: scale(1.04); }
.fp-btn:focus-visible .fp-circ { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--fp-bg); }
.fp-btn:active .fp-circ { transform: scale(.96); }
@media (hover: none), (max-width: 760px) {
  .facts div.fact-play, .facts div.fact-play.fp-two { grid-column: 1 / -1; justify-items: center; }
  .facts div.fact-play.fp-two { justify-items: stretch; }
  .fp-circ { width: 80px; height: 80px; }
  .fp-circ .ic { width: 40px; height: 40px; }
}
.crumb-fav { display: none; }
@media (max-width: 760px) {
  .crumb-fav { display: inline-grid; margin-top: 22px; }
  .title-fav, .title-share { display: none; }
}

/* iOS zoomt beim Antippen eines Eingabefelds mit weniger als 16 px Schrift automatisch hinein (≈ 9 %) – auf Touch-Geräten daher mind. 16 px */
@media (hover: none) and (pointer: coarse), (max-width: 760px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea { font-size: max(16px, 1em) !important; }
}

/* ---------- Spielseite: Herz + Teilen als runde Symbole über dem rechten Tischrand, „Regeln ansehen“ seitlich ---------- */
.play-head-btns { align-items: center; margin-inline-end: var(--play-head-pad, 0px); }
.share-round { display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--red); cursor: pointer; box-shadow: var(--shadow); }
.share-round:hover, .share-round:focus-visible { border-color: var(--red); outline: none; }
.share-round:active { transform: scale(.94); }
/* „Regeln“ as a small book: dark spine left, cover with a brass frame, page edges right */
.book-btn { position: relative; display: inline-flex; align-items: stretch; flex: none; height: 46px; margin: 0; padding: 0 5px 0 0; border: 0; background: none; color: var(--on-btn-felt); cursor: pointer;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.22)); transition: transform .15s; }
.book-btn::after { content: ""; position: absolute; top: 4px; bottom: 4px; right: 0; width: 9px; border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(180deg, var(--card) 0 2px, color-mix(in srgb, var(--ink) 22%, var(--card)) 2px 3px); }
.book-cover { position: relative; z-index: 1; display: grid; place-items: center; min-width: 86px; padding: 0 14px 0 22px; border-radius: 3px 6px 6px 3px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--btn-felt) 62%, #000) 0 9px, rgba(255,255,255,.18) 9px 10px, var(--btn-felt) 10px); }
.book-cover::before { content: ""; position: absolute; inset: 5px 6px 5px 15px; border: 1px solid color-mix(in srgb, var(--brass) 80%, transparent); border-radius: 3px; pointer-events: none; }
.book-title { font: 700 .95rem/1 var(--serif); letter-spacing: .02em; white-space: nowrap; }
.book-btn:hover { transform: translateY(-2px) rotate(-2deg); }
.book-btn:active { transform: translateY(0); }
.book-btn:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }
html[dir="rtl"] .book-btn { padding: 0 0 0 5px; }
html[dir="rtl"] .book-btn::after { right: auto; left: 0; border-radius: 3px 0 0 3px; }
html[dir="rtl"] .book-cover { padding: 0 22px 0 14px; border-radius: 6px 3px 3px 6px; background: linear-gradient(270deg, color-mix(in srgb, var(--btn-felt) 62%, #000) 0 9px, rgba(255,255,255,.18) 9px 10px, var(--btn-felt) 10px); }
html[dir="rtl"] .book-cover::before { inset: 5px 15px 5px 6px; }
.play-rail { text-align: center; }
/* full rules below the table (same content as the rules dialog) */
.play-about { max-width: none; }
.play-about > h3, .play-about > ul { max-width: 76ch; }
.play-rules-inline .game-head { margin-top: 0; }
/* mit Punkte-Karte: Knopf direkt unter der Karte, läuft sticky mit */
.play-score:has(> .play-rules) { margin-bottom: 60px; }
.play-score > .play-rules { position: absolute; left: 0; top: calc(100% + 12px); }
.play-layout.wide .play-score:has(> .play-rules) { margin-bottom: 0; }
.play-layout.wide .play-score > .play-rules { position: static; margin-top: 14px; }
/* ohne Punkte-Karte: eigene Leiste rechts neben dem Tisch */
.play-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 22px; align-items: start; }
/* Grid item with margin:auto would shrink to its content; patience boards size cards from their own width → keep the full column */
.play-wrap > .play-area { width: 100%; min-width: 0; }
/* Reserve roughly the setup screen's height while the game script loads, so the rules below don't jump (CLS) */
.play-area:empty, .play-area > .play-loading { min-height: 350px; box-sizing: border-box; margin: 0; }
@media (min-width: 761px) { .play-area:empty, .play-area > .play-loading { min-height: 580px; } }
.play-area > .play-loading.tall { min-height: 600px; }
@media (min-width: 761px) { .play-area > .play-loading.tall { min-height: 810px; } }
/* Full rules below the table are always longer than a screen: hold that space while they load */
.play-rules-inline > .rules-loading { min-height: 100vh; margin: 0; }
/* Patiencen: Tisch in der Web-Ansicht breiter als der Inhaltsbereich (wie Rommé / PlayKit-Tische) */
@media (min-width: 1100px) {
  .play-wrap:has(.kl-board) { width: min(1560px, 100vw - 48px); margin-left: calc((100% - min(1560px, 100vw - 48px)) / 2); }
}
.play-wrap:has(.play-score) { display: block; }
.play-wrap:has(.play-score) > .play-rail { display: none; }
.play-rail { position: sticky; top: 84px; }
@media (max-width: 1000px) {
  .play-wrap { grid-template-columns: minmax(0, 1fr); }
  .play-rail { position: static; display: flex; justify-content: center; }
  .play-rail .play-rules { width: auto; }
  .play-score:has(> .play-rules) { margin-bottom: 0; }
  .play-score > .play-rules { position: static; margin-top: 14px; }
}

/* Feuerwerk bei gewonnenen Partien (play/kit.js, Fx.fireworks) */
.pk-fireworks { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 2500; pointer-events: none; }
.card-pop-btn:disabled { opacity: .5; filter: grayscale(.4); cursor: not-allowed; }
/* Arschloch: Platz zwischen „Passen“ und der Hand, damit das Karten-Popup den Knopf nicht verdeckt */
.ar-table > .tbl-me { position: relative; padding-top: 118px; }
.ar-table > .tbl-me > .pk-tblchoice { position: absolute; top: 4px; left: 0; right: 0; width: fit-content; margin: 0 auto; z-index: 5; }
@media (max-width: 640px) { .ar-table > .tbl-me { padding-top: 110px; } }
/* Spielseiten auf Handy/Tablet: Knopf nicht über den Handkarten, sondern oben rechts in der Brotkrumen-Zeile (scrollt mit) */
@media (max-width: 900px) {
  html.in-game .fit-fab { position: absolute; top: 78px; bottom: auto; right: 16px; width: 40px; height: 40px; min-height: 0; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
  html.in-game .fit-fab .ic { width: 19px; height: 19px; }
}

/* Kopfzeile, Feinschliff 2026-11-05: Spielen-Knopf als kräftige gelbe Pille, „Spiel hinzufügen“ als Karten-Symbol,
   ab 1001 px Menü direkt neben dem Logo (Suche füllt den Platz, Sprache ganz rechts) */
.nav a.nav-play { border-radius: var(--btn-radius-sm); background: #ffd23f; color: #14261d; font-weight: 800; font-size: 1rem; padding: 9px 20px; box-shadow: 0 0 0 3px rgba(255,210,63,.22), 0 4px 14px rgba(255,210,63,.28); transition: transform .15s, box-shadow .15s, background .15s; }
.nav a.nav-play::before { content: "▶ "; color: #14261d; font-size: .78em; }
.nav a.nav-play:hover, .nav a.nav-play.active { background: #ffe066; color: #14261d; transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(255,210,63,.3), 0 6px 18px rgba(255,210,63,.38); }
[data-look="neo"] .nav a.nav-play { background: var(--cyan); color: #04121a; box-shadow: 0 0 0 3px rgba(62,230,255,.2), 0 0 18px rgba(62,230,255,.35); }
[data-look="neo"] .nav a.nav-play::before { color: #04121a; }
[data-look="neo"] .nav a.nav-play:hover, [data-look="neo"] .nav a.nav-play.active { background: #7af0ff; color: #04121a; }
@media (min-width: 1001px) {
  .site-header .header-inner { justify-content: flex-start; }
  .site-header .nav > .nav-play { margin-left: 10px; }
  .site-header .site-search { flex: 1 1 auto; max-width: 520px; }
  .site-header .nav > .lang-dd { margin-left: auto; }
}
@media (min-width: 1600px) { .site-header .header-inner { gap: clamp(18px, 1.6vw, 34px); } }
/* „Spiel hinzufügen“: Kartenstapel mit Plus, goldener Umriss; Text klappt beim Darüberfahren auf */
.add-game { padding: 5px 8px; color: var(--brass); background: rgba(255,255,255,.06); border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(201,162,74,.35); }
.add-game .add-plus { display: inline-flex; color: var(--brass); }
.add-game .add-plus svg { display: block; transition: transform .2s; }
.add-game .add-label { color: #f6f1e7; }
.add-game:hover, .add-game:focus-visible { background: rgba(201,162,74,.18); box-shadow: inset 0 0 0 1px rgba(201,162,74,.7); padding-right: 12px; }
.add-game:hover .add-plus svg { transform: rotate(-6deg) scale(1.06); }
[data-look="neo"] .add-game { color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(62,230,255,.35); }
[data-look="neo"] .add-game .add-plus { color: var(--cyan); }
[data-look="neo"] .add-game .add-plus svg rect:nth-of-type(2) { fill: #070a14; }
@media (min-width: 1600px) { .site-header .site-search { max-width: 640px; } }
@media (min-width: 1001px) and (max-width: 1199px) { .nav a.nav-play { padding: 8px 14px; font-size: .95rem; } }
@media (min-width: 761px) and (max-width: 1000px) { .nav a.nav-play { padding: 7px 12px; font-size: .9rem; } }
/* Handy: „Spielen“ in der Kopfzeile ebenfalls gelb */
.hdr-play { background: #ffd23f; color: #14261d; font-weight: 800; box-shadow: 0 0 0 2px rgba(255,210,63,.25); }
.hdr-play:hover { background: #ffe066; }
@media (min-width: 1001px) and (max-width: 1199px) { .site-header .site-search { min-width: 140px; } .site-header .header-inner { gap: 8px; } .site-header .nav a:not(.nav-play), .site-header .dropdown-btn { padding-left: 8px; padding-right: 8px; } }
@media (min-width: 1001px) and (max-width: 1099px) { .logo { font-size: 1.15rem; } .nav a.nav-play { padding: 8px 12px; } }
@media (min-width: 1001px) and (max-width: 1099px) { .site-header .site-search { min-width: 110px; } }

/* FAQ-Knopf zwischen Suche und Sprache (ab Tablet); im Handy-Menü normaler Eintrag vor der Sprache */
@media (min-width: 761px) {
  .site-header .nav > .nav-faq { order: 3; }
  .site-header .nav > .lang-dd { order: 4; margin-left: 0; }
  .site-header .nav > .nav-faq { margin-left: auto; }
}
.nav a.nav-faq { display: inline-flex; align-items: center; gap: 6px; }
@media (min-width: 1001px) and (max-width: 1199px) { .site-header .site-search { min-width: 100px; } }
@media (min-width: 761px) and (max-width: 1000px) { .nav a.nav-faq .ic { display: none; } }

/* Feste Tischgröße: die Mitte hat einen festen Platz, ihr Inhalt wird hineinskaliert (play/kit.js, fitCenter) */
.mm-table.pk-table > .pk-center { position: relative; display: block; min-height: 190px; align-self: stretch; }
.pk-center-in { position: absolute; left: 0; right: 0; top: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  transform: translateY(-50%) scale(var(--s, 1)); transform-origin: 50% 50%; }
.pk-table.wide .pk-center-in { gap: 6px; }
.pk-measuring .pk-center-in { display: none; }
@media (max-width: 640px) { .mm-table.pk-table > .pk-center { min-height: 150px; } }
/* Feste Tischgröße: Platz für die Auswahl-Knöpfe über der eigenen Hand ist immer reserviert (sie verschieben nichts) */
.mm-table.pk-table > .tbl-me { position: relative; padding-top: 62px; }
.mm-table.pk-table > .tbl-me > .pk-tblchoice { position: absolute; top: 4px; left: 0; right: 0; width: fit-content; max-width: 100%; margin: 0 auto; z-index: 5; }
@media (max-width: 640px) { .mm-table.pk-table > .tbl-me { padding-top: 54px; } }

/* Favoriten: Herz in der Kopfzeile (ab Tablet nur Symbol), Überschrift „Meine Favoriten“ als Link */
.nav a.nav-favs { display: inline-flex; align-items: center; gap: 6px; }
@media (min-width: 761px) {
  .nav-favs .favs-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.section-head h2 a.head-link { color: inherit; text-decoration: none; }
.section-head h2 a.head-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Setup vor der Partie (PlayKit.compactSetup): ab 1100 px „Anpassen“ links, „Design“ rechts, ohne Scrollen ---------- */
.play-head-rules { display: none; }
.pk-cols { display: flex; flex-direction: column; gap: 12px; }
.pk-cols > .pk-design { margin: 0; }
@media (min-width: 1100px) {
  /* Setup sichtbar: „Regeln ansehen“ in die Titelzeile, Setup nutzt die volle Breite */
  .play-wrap:has(.pk-split) { display: block; }
  .play-wrap:has(.pk-split) > .play-rail { display: none; }
  body:has(.pk-split) .play-head-rules { display: inline-flex; }
  .play-head-rules .play-rules { width: auto; white-space: nowrap; }
  .pk-split.pk-setup, .pk-split.mm-setup { max-width: 1080px; padding: 18px 22px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .pk-split > * { grid-column: 1 / -1; }
  /* Titel steht schon als h1 über dem Setup → hier nur für Screenreader */
  .pk-split > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pk-split > .btn.pk-go:has(+ .ol-entry), .pk-split > .btn.pk-go + .ol-entry { grid-column: auto; margin: 0 0 14px; min-height: 52px; align-items: center; }
  .pk-split > .btn.pk-go:has(+ .ol-entry) { padding-block: 0; }
  /* same columns + gap as the start/online buttons above, so both rows line up exactly */
  .pk-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  /* beide Bereiche immer offen: Kopfzeile als Überschrift, kein Auf-/Zuklappen */
  .pk-cols details > summary { cursor: default; pointer-events: none; }
  .pk-cols > .pk-adjust > summary { padding: 10px 14px; }
  .pk-cols > .pk-adjust > summary::after, .pk-cols > .pk-adjust > summary small { display: none; }
  .pk-cols .pk-design { padding: 10px 14px 14px; }
  .pk-cols .pk-design > summary { list-style: none; }
  .pk-cols .pk-design > summary::-webkit-details-marker { display: none; }
  .pk-cols .mm-field { margin-bottom: 10px; }
  /* links: Beschriftung neben den Knöpfen statt darüber – spart pro Einstellung eine Zeile */
  .pk-cols .pk-adjust-in > .mm-field { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 10px; align-items: center; }
  .pk-cols .pk-adjust-in > .mm-field > span { margin: 0; line-height: 1.3; }
  .pk-cols .pk-adjust-in > .mm-field > :not(span) { grid-column: 2; }
  .pk-cols .pk-adjust-in > .mm-field > .mm-hint { margin: 4px 0 0; }
  .pk-cols .pk-adjust-in > .mm-field:has(.pk-names) { align-items: start; }
  .pk-cols .pk-adjust-in > .mm-field:has(.pk-names) > span { padding-top: 4px; }
  .pk-cols .seg-btn { padding-block: 5px; }
  .pk-cols .mm-check { margin: 2px 0; }
  .pk-cols .pk-adjust-in > .mm-field:first-child { margin-top: 10px; }
  .pk-cols .mm-hint { margin: 4px 0 8px; font-size: .84rem; line-height: 1.4; }
  .pk-cols .pk-names { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px 8px; }
  .pk-cols .pk-names small { font-size: .68rem; }
  .pk-cols .pk-names input { padding: 5px 9px; }
  .pk-cols .pk-preview { padding: 6px !important; border-width: 6px !important; }
  .pk-cols .pk-preview svg { height: 70px; }
  .pk-cols .pk-savevar { margin-bottom: 10px; }
  .pk-colside { display: flex; flex-direction: column; gap: 10px; }
  .pk-colside > .pk-design { margin: 0; }
  .pk-colside > .mm-hint { margin: 0; padding: 0 4px; font-size: .82rem; line-height: 1.4; }
}
/* niedrige Desktop-Fenster: Kopfzeile über dem Setup verkleinern */
@media (min-width: 1100px) and (max-height: 860px) {
  body:has(.pk-split) .play-head { padding: 4px 0 8px; }
  body:has(.pk-split) .play-head h1 { font-size: 1.9rem; }
  body:has(.pk-split) .crumbs { margin-bottom: 0; }
  .pk-split > .btn.pk-go:has(+ .ol-entry), .pk-split > .btn.pk-go + .ol-entry { min-height: 44px; margin-bottom: 10px; }
  .pk-cols .pk-preview svg { height: 64px; }
  .pk-cols .pk-names input { padding-block: 3px; }
}

/* Schwimmen: Leben als Pixel-Herzen – übrige rot, verlorene blau */
:root { --heart-on: #e0262f; --heart-on-shine: #ff9a96; --heart-off: #1d3a9e; --heart-off-shine: #1d3a9e; --heart-line: #fff; }
.ar-badge.sw-lives { background: none; padding: 0; display: inline-flex; align-items: center; }
.pk-mybar .ar-badge.sw-lives { background: none; border: 0; }
.sw-hearts { display: inline-flex; align-items: center; gap: 2px; vertical-align: middle; white-space: nowrap; }
.sw-heart { width: 22px; height: 20px; flex: none; filter: drop-shadow(0 1px 0 rgba(0,0,0,.45)); }
.sw-heart .o { fill: var(--heart-line); }
.sw-heart .f { fill: var(--heart-on); }
.sw-heart .h { fill: var(--heart-on-shine); }
.sw-heart.lost .f, .sw-heart.lost .h { fill: var(--heart-off); }
.sw-heart.lost .h { fill: var(--heart-off-shine); }
.pk-result .sw-heart { width: 14px; height: 12px; }
/* Spiele ohne Punkte-Karte (z. B. Schwimmen): rechts nur „Regeln ansehen“, der Tisch wird breiter */
.play-layout:has(> .pk-noscore) { grid-template-columns: minmax(0, 1fr) 190px; }
.play-score.pk-noscore { padding: 0; background: none; border: 0; box-shadow: none; }
.play-score.pk-noscore > .play-rules { position: static; }
.play-score.pk-noscore > .mm-log { margin-top: 12px; }
.play-score.pk-noscore:has(> .play-rules) { margin-bottom: 0; }
@media (max-width: 1000px) { .play-layout:has(> .pk-noscore) { grid-template-columns: minmax(0, 1fr); } .play-score.pk-noscore { display: flex; flex-wrap: wrap; justify-content: center; } .play-score.pk-noscore > .mm-log { flex: 1 1 100%; max-width: 640px; } .play-score.pk-noscore .play-rules { width: auto; } }
/* Wenig Karten auf dem Tisch (Schwimmen, Poker, Mus …): Kartenrückseiten der Gegner größer (PlayKit BIG_OPP) */
.pk-table.big-opp .mm-backs svg { height: 132px; }
.pk-table.big-opp.many .mm-backs svg { height: 108px; }
@media (max-width: 640px) {
  .pk-table.big-opp .mm-backs svg { height: 64px; }
  .pk-table.big-opp.many .mm-backs svg { height: 54px; }
}
/* Schwimmen: keine Leben mehr → Herzen schaukeln auf Pixel-Wasser, das ihr unteres Drittel bedeckt */
:root { --swim-water: rgba(64, 164, 238, .85); --swim-crest: #d6f1ff; }
.sw-hearts.swim { position: relative; padding: 0 3px 2px; overflow: hidden; border-radius: 2px; }
.sw-hearts.swim .sw-heart { animation: sw-bob 2.4s ease-in-out infinite; transform-origin: 50% 80%; }
.sw-hearts.swim .sw-heart:nth-child(2) { animation-delay: -.8s; }
.sw-hearts.swim .sw-heart:nth-child(3) { animation-delay: -1.6s; }
.sw-water { position: absolute; left: 0; right: 0; bottom: -1px; height: 10px; pointer-events: none; overflow: hidden; }
.sw-water svg { display: block; height: 100%; width: auto; aspect-ratio: 66 / 4; max-width: none; }
.sw-water .w { fill: var(--swim-water); }
.sw-water .c { fill: var(--swim-crest); }
.sw-wave { animation: sw-wave 1.6s steps(6) infinite; }
.pk-result .sw-water { height: 6px; }
@keyframes sw-bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-2px) rotate(4deg); } }
@keyframes sw-wave { from { transform: translateX(0); } to { transform: translateX(-6px); } }
@media (prefers-reduced-motion: reduce) { .sw-hearts.swim .sw-heart, .sw-wave { animation: none; } }
/* Schwimmen – Aufdecken: Gegnerkarten offen, beste Hand mit Pixel-Krone und Leuchten, Verlierer abgeblendet */
:root { --win-glow: #ffd54a; --crown: #ffcf3a; --crown-line: #6b4a00; --crown-gem: #e0262f; }
.mm-backs.pk-open svg { animation: sw-flip .45s ease-out both; transform-origin: 50% 50%; }
@keyframes sw-flip { from { transform: perspective(400px) rotateY(90deg); opacity: .4; } to { transform: none; opacity: 1; } }
.mm-opp.sw-win .mm-backs, .tbl-me.sw-win .pk-hand { filter: drop-shadow(0 0 10px var(--win-glow)) drop-shadow(0 0 3px var(--win-glow)); }
.mm-opp.sw-lose .mm-backs, .tbl-me.sw-lose .pk-hand { opacity: .55; filter: grayscale(.35); }
.ar-badge.sw-crown { background: none; border: 0; padding: 0; display: inline-flex; align-items: center; }
.sw-crown-ic { width: 26px; height: 16px; filter: drop-shadow(0 1px 0 rgba(0,0,0,.45)); animation: sw-crown 1.2s ease-in-out infinite alternate; }
.sw-crown-ic .o { fill: var(--crown-line); }
.sw-crown-ic .y { fill: var(--crown); }
.sw-crown-ic .r { fill: var(--crown-gem); }
@keyframes sw-crown { from { transform: translateY(0); } to { transform: translateY(-2px); } }
.ar-badge.sw-val { font-variant-numeric: tabular-nums; }
.ar-badge.sw-val.win { background: var(--win-glow); color: #3a2a00; }
.tbl-pop.late { animation: tbl-pop-late .35s ease-out var(--pop-delay, 0ms) both; }
@keyframes tbl-pop-late { from { opacity: 0; transform: translate(-50%, -46%); visibility: hidden; } to { opacity: 1; transform: translate(-50%, -50%); visibility: visible; } }
@media (prefers-reduced-motion: reduce) { .mm-backs.pk-open svg, .sw-crown-ic { animation: none; } }
.pk-result tr.win td { font-weight: 700; }

/* ---------- Aktionsknöpfe auf dem Tisch und am Karten-Popup: plastische „Spielknöpfe“ ---------- */
:root { --btn-light: #fbfaf5; --on-btn-light: #1d2a24; }
.pk-tblchoice { background: none; padding: 4px; gap: 10px; }
.pk-tblchoice .btn, .card-pop-btn {
  min-height: 46px; padding: 10px 22px; border: 0; border-radius: var(--btn-radius); font: 700 .95rem var(--sans); letter-spacing: .01em;
  transition: transform .1s ease, box-shadow .1s ease, filter .12s ease; }
.pk-tblchoice .btn.primary, .card-pop-btn {
  background: linear-gradient(180deg, color-mix(in srgb, var(--btn-red) 78%, #fff) 0%, var(--btn-red) 55%);
  color: var(--on-btn-red);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--btn-red) 55%, #000), 0 8px 18px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.35); }
.pk-tblchoice .btn.ghost {
  background: linear-gradient(180deg, var(--btn-light) 0%, color-mix(in srgb, var(--btn-light) 86%, #000) 100%);
  color: var(--on-btn-light);
  box-shadow: 0 4px 0 color-mix(in srgb, var(--btn-light) 55%, #000), 0 8px 18px rgba(0,0,0,.28), inset 0 1px 0 #fff; }
.pk-tblchoice .btn:hover, .card-pop-btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.pk-tblchoice .btn:active, .card-pop-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.35), 0 3px 8px rgba(0,0,0,.25); }
.pk-tblchoice .btn:focus-visible, .card-pop-btn:focus-visible { outline: 3px solid var(--win-glow, #ffd54a); outline-offset: 2px; }
.pk-tblchoice .btn.off, .card-pop-btn.off, .card-pop-btn:disabled { transform: none; box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.card-pop { padding: 10px; gap: 10px; border-radius: 18px; }
@media (max-width: 640px) { .pk-tblchoice .btn, .card-pop-btn { min-height: 42px; padding: 8px 14px; font-size: .9rem; } }
.pk-tblchoice.many .btn { min-height: 38px; padding: 7px 14px; }

/* Wenig Karten (big-opp): größere Handkarten, Mitte darf über 100 % wachsen (kit.js fitCenter) */
.pk-table.big-opp .mm-handcard svg { height: 190px; }
@media (max-width: 640px) { .pk-table.big-opp .mm-handcard svg { height: 128px; } }

/* Schwimmen: Gewinnerhand 150 % mit Krone darüber */
/* ganzer Platz wächst (Karten, Name, Leben bleiben zusammen) – oben nach unten, seitlich zur Tischmitte hin */
.mm-opp.sw-win { position: relative; z-index: 6; transform: scale(1.5); transform-origin: 50% 0; transition: transform .35s ease-out; }
.mm-left .mm-opp.sw-win { transform-origin: 0 50%; }
.mm-right .mm-opp.sw-win { transform-origin: 100% 50%; }
.mm-opp.sw-win .mm-backs { position: relative; }
.tbl-me.sw-win .pk-hand { transform: scale(1.5); transform-origin: 50% 100%; transition: transform .35s ease-out; position: relative; z-index: 6; }
.tbl-me.sw-win .pk-handrow { position: relative; }
/* Krone schräg auf der linken oberen Ecke des Kartenfächers */
.pk-mark { position: absolute; left: 50%; top: -6px; transform: translate(-150%, 0) rotate(-18deg); z-index: 7; pointer-events: none; line-height: 0; }
.tbl-me .pk-mark { top: auto; bottom: calc(100% * 1.5 - 30px); }
.sw-crown-ic.big { width: 44px; height: 27px; }
@media (prefers-reduced-motion: reduce) { .mm-opp.sw-win, .tbl-me.sw-win .pk-hand { transition: none; } }
.mm-table.pk-table.big-opp { padding-top: 40px; }
@media (max-width: 640px) { .mm-opp.sw-win { transform: scale(1.25); } .tbl-me.sw-win .pk-hand { transform: scale(1.25); } .sw-crown-ic.big { width: 34px; height: 21px; } }

/* Schwimmen: Krone neben dem Gewinnernamen im Ergebnis */
.sw-namecrown { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sw-namecrown .sw-crown-ic { width: 20px; height: 12px; animation: none; flex: none; }

/* Schwimmen: verlorenes Herz platzt – rot, aufblähen, Pixel-Splitter fliegen weg, danach blau */
.sw-burst { position: relative; display: inline-flex; line-height: 0; }
.sw-burst .sw-heart { animation: sw-burst-heart 1.1s steps(1, end) .5s both; }
.sw-burst .sw-heart .f, .sw-burst .sw-heart .h { animation: sw-burst-fill 1.1s steps(1, end) .5s both; }
.sw-burst i { position: absolute; left: 50%; top: 45%; width: 4px; height: 4px; margin: -2px 0 0 -2px; background: var(--heart-on); box-shadow: 0 0 0 1px var(--heart-line);
  opacity: 0; animation: sw-shard .7s ease-out .95s both; }
.sw-burst i:nth-child(2) { --dx: -16px; --dy: -14px; }
.sw-burst i:nth-child(3) { --dx: 16px; --dy: -14px; }
.sw-burst i:nth-child(4) { --dx: -20px; --dy: 4px; }
.sw-burst i:nth-child(5) { --dx: 20px; --dy: 4px; }
.sw-burst i:nth-child(6) { --dx: -8px; --dy: 16px; }
.sw-burst i:nth-child(7) { --dx: 8px; --dy: 16px; }
/* Pixel-Stufen statt weichem Zoom, passend zum Herz-Design */
@keyframes sw-burst-heart {
  0% { transform: scale(1); } 15% { transform: scale(1.2); } 30% { transform: scale(1.4); } 40% { transform: scale(1.55) rotate(-6deg); }
  45% { transform: scale(.7); } 60% { transform: scale(1.1); } 75% { transform: scale(1); } }
@keyframes sw-burst-fill { 0%, 40% { fill: var(--heart-on); } 45%, 100% { fill: var(--heart-off); } }
@keyframes sw-shard { 0% { opacity: 0; transform: translate(0, 0); } 1% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(var(--dx) * 1.3), calc(var(--dy) * 1.3)); } }
@media (prefers-reduced-motion: reduce) { .sw-burst .sw-heart, .sw-burst .sw-heart .f, .sw-burst .sw-heart .h { animation: none; } .sw-burst i { display: none; } }
.sw-hearts.swim:has(.sw-burst) { overflow: visible; }

/* Alle Spiele: Spielknöpfe (Tisch-Auswahl, Karten-Popup, Aktionen, Ergebnis) beim Überfahren in Messing statt nur heller */
:root { --btn-hover: #e2bd5c; --on-btn-hover: #241a00; }
:is(.pk-tblchoice .btn, .card-pop-btn, .pk-actions .btn, .mm-actions .btn, .tbl-pop .btn, .mm-table .btn, .mm2-table .btn):is(:hover, :focus-visible):not(:disabled):not(.off):not([aria-disabled="true"]) {
  background: linear-gradient(180deg, color-mix(in srgb, var(--btn-hover) 70%, #fff) 0%, var(--btn-hover) 60%);
  color: var(--on-btn-hover); border-color: transparent; filter: none;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--btn-hover) 50%, #000), 0 8px 18px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.5); }

/* ===== Fächer-Darstellung der Handkarten ===== */
/* --fan-h: Kartenhöhe pro Kontext; --fan-angle: je Karte per JS gesetzt   */

/* Kartenhöhe-Variablen pro Kontext (überschreibt die kontext-spez. px-Angaben oben) */
.tbl-me          { --fan-h: 178px; }
.mm2-me          { --fan-h: 184px; }
.pk-table.wide .tbl-me { --fan-h: 150px; }
@media (max-width: 640px) {
  .tbl-me          { --fan-h: 138px; }
  .mm2-me          { --fan-h: 142px; }
  .pk-table.wide .tbl-me { --fan-h: 124px; }
}

/* Unterer Tisch-Innenabstand als gemeinsame Variable: Die Hand reicht durch ihn hindurch bis an die
   Innenkante des Rahmens (Padding-Box). Der Rahmen selbst bleibt unverändert und wird nicht überdeckt. */
.mm-table  { --tbl-pad-b: 14px; padding-bottom: var(--tbl-pad-b); }
.mm2-table { --tbl-pad-b: 14px; padding-bottom: var(--tbl-pad-b); }
@media (max-width: 640px) { .mm-table { --tbl-pad-b: 8px; } }
@media (max-width: 760px) { .mm2-table { --tbl-pad-b: 10px; } }
/* Die Zeile „me“ wird im Raster höher als ihr Inhalt (Tisch-Mindesthöhe); align-items:center auf dem Tisch
   zentrierte die Hand darin und ließ unten einen Streifen frei. Jetzt sitzt sie am unteren Zeilenrand. */
.mm-table > .tbl-me { align-self: end; }

/* Handbereich: Höhe = 45 % der Kartenhöhe + unterer Tisch-Innenabstand; Karten oben bündig;
   unten hart an der Innenkante des Rahmens abgeschnitten (negativer Außenabstand gleicht den Abstand aus) */
.tbl-me .mm-hand {
  align-items: flex-start;
  height: calc(var(--fan-h) * 0.45 + var(--tbl-pad-b, 0px));
  overflow: visible;
  /* kein clip-path: den harten unteren Rand setzt der Tisch (overflow: clip); clip-path + Filter/Transform wird in Safari uneinheitlich geschnitten */
  padding: 0 8px;
  min-height: 0;
}
.tbl-me > .mm-hand, .tbl-me > .pk-handrow { margin-bottom: calc(-1 * var(--tbl-pad-b, 0px)); }
@media (max-width: 640px) {
  .tbl-me .mm-hand { padding: 0 4px; }
}

/* Rotation aller Handkarten um die untere Kartenmitte (Fächerpivot weit außerhalb) */
.tbl-me .mm-handcard {
  transform: rotate(var(--fan-angle, 0deg));
  transform-origin: center bottom;
}
/* spielbare Karte: leicht herausgehoben + Rotation */
.tbl-me .mm-handcard.ok {
  transform: translateY(-12px) rotate(var(--fan-angle, 0deg));
}
.tbl-me .mm-handcard.ok:hover,
.tbl-me .mm-handcard.ok:focus-visible {
  transform: translateY(-22px) rotate(var(--fan-angle, 0deg));
  outline: none;
}
/* gewählte / gerade gezogene Karte */
.tbl-me .mm-handcard.sel {
  transform: translateY(-24px) rotate(var(--fan-angle, 0deg));
}
.tbl-me .mm-handcard.drawn:not(.sel) {
  transform: translateY(-22px) rotate(var(--fan-angle, 0deg));
}

/* ===== Mau-Mau (mm2): gleiche Fächerlogik ===== */
.mm2-hand {
  align-items: flex-start;
  margin-bottom: calc(-1 * var(--tbl-pad-b, 0px));
  height: calc(var(--fan-h) * 0.45 + var(--tbl-pad-b, 0px));
  min-height: 0;
  overflow: visible;   /* kein clip-path (Safari): den unteren Rand schneidet der Tisch mit overflow: clip */
  padding: 0 4px;
}
/* Schmale Fenster: Die Seitenleiste (Aktionsknöpfe) liegt unter der Hand. Ist sie leer (nur Leerraum im Markup),
   blieben 6 px Zeilenabstand + 4 px Innenabstand unter der Hand frei – dann reichte sie nicht bis an den Rahmen. */
@media (max-width: 760px) {
  .mm2-side:not(:has(*)) { display: none; }
  .mm2-me { row-gap: 0; }                       /* Abstand als Außenabstand, damit eine leere Seitenleiste keinen Zeilenabstand hinterlässt */
  .mm2-hand { margin-top: 6px; }
  .mm2-side { margin-top: 6px; }
}
.mm2-card {
  transform: rotate(var(--fan-angle, 0deg));
  transform-origin: center bottom;
}
.mm2-card.ok {
  transform: translateY(-14px) rotate(var(--fan-angle, 0deg));
}
.mm2-card.ok:hover,
.mm2-card.ok:focus-visible {
  transform: translateY(-28px) rotate(var(--fan-angle, 0deg));
  outline: none;
  z-index: 2;
}
.mm2-card.drawn {
  transform: translateY(-28px) rotate(var(--fan-angle, 0deg));
}

/* ===== Nicht spielbare Handkarten =====
   Solange man am Zug ist, sind Karten, die nach den Regeln nicht gelegt werden dürfen, klar als gesperrt erkennbar:
   deutlich ausgegraut und abgedunkelt, mit Sperr-Cursor. Wert und Farbzeichen oben links bleiben lesbar.
   Technisch gesperrt sind sie zusätzlich: `disabled` am Knopf, Prüfung in den Klick-Handlern und in apply()/canPlay. */
.tbl-me .mm-hand.mine .mm-handcard:not(.ok):not(.hidden),
.mm2-hand.mine .mm2-card:not(.ok):not(.hidden) {
  opacity: 1;
  filter: none;   /* Safari: Filter auf dem Button schneidet gedrehte Karten ab → Graufilter liegt auf dem SVG */
  cursor: not-allowed;
}
.tbl-me .mm-hand.mine .mm-handcard:not(.ok):not(.hidden) svg,
.mm2-hand.mine .mm2-card:not(.ok):not(.hidden) svg {
  filter: grayscale(.85) brightness(.74) contrast(.92) drop-shadow(0 4px 6px rgba(0,0,0,.28));
}

/* Kartenhöhe der eigenen Hand folgt --fan-h (wird je nach Kartenzahl von PlayKit.sizeHand gesetzt) */
.pk-table .tbl-me .mm-hand .mm-handcard svg { height: var(--fan-h); }

/* Mau-Mau: Kartenhöhe der eigenen Hand folgt --fan-h (von sizeHand je nach Kartenzahl gesetzt) */
.mm2-me .mm2-card svg { height: var(--fan-h); }
@media (max-width: 760px) { .mm2-me { --fan-h: 118px; } }
/* Tische dürfen nicht scrollbar sein: Die Handkarten ragen (am unteren Rand abgeschnitten) über den Tisch hinaus; bei Fokus/Hover
   schob der Browser sonst den Inhalt des overflow:hidden-Tisches nach oben, und die Hand rutschte vom Rahmen weg. `clip` verhindert das. */
.mm2-table, .mm-table, .pk-table { overflow: clip; }

/* Tischmitte: Karten in Zonen (Crib, Startkarte, Mittelkarte, Ablage ...) so groß wie die übrigen Mittelkarten.
   Die Basisregel .pk-zone (70 px / mobil 50 px, !important) gilt weiter für Zonen bei den Gegnern. Rommé (.wide) bleibt ausgenommen. */
.pk-table:not(.wide) .pk-center .pk-row > .pk-zone { padding: 8px 12px 10px; gap: 6px; min-width: 0; }
.pk-table:not(.wide) .pk-center .pk-row > .pk-zone > small { font-size: .78rem; }
.pk-table:not(.wide) .pk-center .pk-row > .pk-zone:not(:has(.small-cards)) .pk-cards svg,
.pk-table:not(.wide) .pk-center .pk-row > .pk-zone:not(:has(.small-cards)) .pk-card svg { height: 140px !important; width: auto; max-width: 100%; }
/* Auslagen (mehrere Gruppen nebeneinander): etwas größer, aber so, dass viele Gruppen noch Platz haben */
.pk-table:not(.wide) .pk-center .pk-melds .pk-zone .pk-cards svg,
.pk-table:not(.wide) .pk-center .pk-melds .pk-zone .pk-card svg { height: 96px !important; width: auto; max-width: 100%; }
.pk-table:not(.wide) .pk-center .pk-melds > .pk-cards svg { height: 96px !important; width: auto; max-width: 100%; }
@media (max-width: 640px) {
  .pk-table:not(.wide) .pk-center .pk-row > .pk-zone { padding: 6px 8px 8px; }
  .pk-table:not(.wide) .pk-center .pk-row > .pk-zone:not(:has(.small-cards)) .pk-cards svg,
  .pk-table:not(.wide) .pk-center .pk-row > .pk-zone:not(:has(.small-cards)) .pk-card svg { height: 108px !important; }
  .pk-table:not(.wide) .pk-center .pk-melds .pk-zone .pk-cards svg,
  .pk-table:not(.wide) .pk-center .pk-melds .pk-zone .pk-card svg,
  .pk-table:not(.wide) .pk-center .pk-melds > .pk-cards svg { height: 70px !important; }
}

/* Freier Platz im festen Tisch geht an die Mitte (nicht an Status-/Hand-Zeilen): Mitte = 1fr in jedem Layout */
.mm-table.pk-table { grid-template-rows: auto minmax(0, 1fr) auto auto; }
@media (max-width: 640px) {
  .mm-table.pk-table { grid-template-rows: auto auto minmax(0, 1fr) auto auto; }
  .mm-table.pk-table:has(.mm-top):not(:has(.mm-left)) { grid-template-rows: auto minmax(0, 1fr) auto auto; }
  .mm-table.pk-table.wide { grid-template-rows: auto auto auto minmax(0, 1fr) auto auto; }
}
/* Zwei Spieler (keine Seitenplätze): Mitte und Gegner nutzen die volle Tischbreite */
@media (min-width: 641px) {
  .mm-table.pk-table:not(.wide):not(:has(> .mm-left, > .mm-right)) { grid-template-areas: "top top top" "center center center" "status status status" "me me me"; }
}
/* Mit Seitenplätzen: Seiten etwas schmaler, Mitte breiter (Gegnerhände sind Fächer und brauchen wenig Breite) */
@media (min-width: 641px) {
  .mm-table.pk-table:not(.wide):has(> .mm-left, > .mm-right) { grid-template-columns: minmax(0, .8fr) minmax(0, 2.4fr) minmax(0, .8fr); }
}

/* Kachel-Aktionen: „Spielen“ (rot gefüllt) und „Regeln“ (Umriss) */
.tile-actions { display: flex; gap: 8px; margin-top: 12px; padding-right: 40px; }
.tile-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 14px; border-radius: var(--btn-radius-sm);
  font: 700 .85rem var(--sans); cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.tile-btn-play { background: var(--btn-red); color: var(--on-btn-red); }
.tile-btn-play:hover { filter: brightness(1.1); }
.tile-btn-play:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tile-btn-rules { background: transparent; color: var(--ink); border-color: var(--line); }
.tile:hover .tile-btn-rules { border-color: var(--ink); }


/* Karten drucken: Vorschau im Dialog und Druckbögen (A4, 3 × 3 Karten à 63 × 88 mm) */
.pc-prevbox { margin-top: 16px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pc-page { position: relative; width: 300px; max-width: 100%; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.pc-page.portrait { width: 190px; }
.pc-pc { position: absolute; display: block; outline: .5px solid #8a8a8a; }
.pc-pc svg { display: block; width: 100%; height: 100%; }
.pc-prevnote { margin: 0; font-size: .85rem; }
#print-sheets { display: none; }
@page cards { size: A4 portrait; margin: 0; }
@media print {
  html.print-cards body > *:not(#print-sheets) { display: none !important; }
  html.print-cards, html.print-cards body { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  html.print-cards #print-sheets { display: block; }
  .pc-sheet { page: cards; position: relative; overflow: hidden; break-after: page; background: #fff; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pc-sheet:last-child { break-after: auto; }
  .pc-card { position: absolute; outline: .15mm solid #8a8a8a; }
  .pc-card svg { display: block; width: 100%; height: 100%; }
  .pc-mark { position: absolute; display: block; }
}
