/* ── Dame — Palastterrasse in Venedig: Nussbaum, Elfenbein, Ebenholz, Gold (Grundlage games/drop-four/css/spiel.css) ──────
   Das Brett selbst ist eine three.js-Szene (js/bild/szene.js); hier nur Kopf (Spieler mit Steinzahl), Knöpfe, Startbildschirm, Karten.
   Online-Bausteine erben die Farben über --on-*.
   Schriften aus fonts.hirsing.eu: Playfair Display (Titel), Lato (Bedienung). */
@font-face { font-family: 'Playfair Display'; font-weight: 700; font-display: swap; src: url('https://fonts.hirsing.eu/playfair-dispplay-v40-latin/playfair-display-v40-latin-700.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 400; font-display: swap; src: url('https://fonts.hirsing.eu/lato-v25-latin/lato-v25-latin-regular.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 700; font-display: swap; src: url('https://fonts.hirsing.eu/lato-v25-latin/lato-v25-latin-700.woff2') format('woff2'); }
:root {
  --lack: #120c0c; --lack2: #2a1414; --gold: #d8b25c; --gold-hell: #f6dc9a; --rot: #b3262e; --text: #f6ecd8; --leise: #bba98a;
  --titel: 'Playfair Display', Georgia, serif; --sans: 'Lato', system-ui, sans-serif;
  --oben: max(12px, env(safe-area-inset-top)); --unten: max(12px, env(safe-area-inset-bottom)); --rand: max(14px, env(safe-area-inset-left));
  --on-grund: rgba(30, 16, 14, 0.97); --on-text: var(--text); --on-leise: var(--leise); --on-akzent: var(--gold-hell); --on-akzent-text: #2a1404; --on-linie: rgba(216, 178, 92, 0.35);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { font-family: var(--sans); color: var(--text); user-select: none; -webkit-user-select: none;
  background: radial-gradient(ellipse 60% 70% at 50% 35%, #4a2618, #23120d 55%, #0b0605); }
button { font: inherit; color: inherit; cursor: pointer; }
.versteckt { display: none !important; }

.raum { position: fixed; inset: var(--oben) var(--rand) var(--unten); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.kopf { display: flex; align-items: center; gap: 14px; width: min(720px, calc(100% - 300px)); margin-top: 6px; padding: 8px 16px; border-radius: 999px; background: rgba(20, 10, 8, 0.6); border: 1px solid rgba(216, 178, 92, 0.25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.spieler { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; font-weight: 700; color: var(--leise); }
.spieler.rechts { justify-content: flex-end; }
.spieler img { width: 34px; height: 34px; border-radius: 50%; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)); }
.spieler span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spieler b { font-family: var(--titel); font-size: 22px; color: var(--gold-hell); }
.spieler.dran { color: var(--text); } .spieler.dran img { box-shadow: 0 0 0 3px var(--gold), 0 0 16px rgba(246, 220, 154, 0.7); }
.status { font-family: var(--titel); font-style: italic; font-size: clamp(16px, 1.8vw, 22px); text-align: center; white-space: nowrap; }
.knoepfe { position: fixed; top: var(--oben); right: var(--rand); display: flex; gap: 8px; z-index: 5; }
.rund { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid rgba(246, 220, 154, 0.4); background: rgba(30, 16, 14, 0.75); color: var(--gold-hell); }
.rund svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rund .strich-aus { display: none; } .rund.aus .strich-aus { display: inline; } .rund.aus .welle { display: none; }
body.im-menue .knoepfe, body.im-menue .kopf { visibility: hidden; }

/* Bühne: three.js-Szene füllt das Fenster (js/bild/szene.js), Kopf und Knöpfe liegen darüber */
#buehne { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; outline: none; }
.raum { z-index: 2; pointer-events: none; justify-content: flex-start; }
.raum > * { pointer-events: auto; }
/* Spielerfarbe im Kopf (kleiner Stein) und Steinzahl */
.stein { width: 26px; height: 26px; border-radius: 50%; flex: none; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6), inset 0 -3px 0 rgba(0, 0, 0, 0.25); }
.stein.w { background: radial-gradient(circle at 35% 30%, #fff, #e8dcc0 55%, #b8a888); } .stein.b { background: radial-gradient(circle at 35% 30%, #6a4a30, #2a1408 60%, #120804); }
.spieler small { color: var(--leise); font-size: 12px; } .spieler.dran .stein { box-shadow: 0 0 0 3px var(--gold), 0 0 16px rgba(246, 220, 154, 0.7); }
.sb-hinweis { margin: 6px 4px 0; font-size: 13px; color: var(--leise); }
/* Startbildschirm (Norm sb-*) */
.ebene { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 20; }
/* padding-top: Startkarte bleibt unter der GameZone-Pille, wenn sie bei niedriger Fensterhöhe die volle Höhe braucht (Prüfung 30.10.) */
.sb { justify-content: flex-start; padding-top: 60px; padding-left: clamp(16px, 7vw, 110px); background: linear-gradient(90deg, rgba(14, 7, 5, 0.95), rgba(14, 7, 5, 0.78) 40%, rgba(14, 7, 5, 0.1) 74%); }
.sb-karte { width: min(500px, calc(100% + 40px)); max-height: 100%; overflow-y: auto; padding: 8px 24px 24px; margin: 0 -20px; scrollbar-width: none; }
.sb-vortitel { font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); }
.sb-titel { margin: 4px 0 0; font-family: var(--titel); font-weight: 700; font-size: clamp(56px, 7.5vw, 104px); line-height: 1;
  background: linear-gradient(180deg, #fff3cf, var(--gold-hell) 45%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sb-unterzeile { margin: 10px 0 20px; color: var(--leise); font-family: var(--titel); font-style: italic; font-size: 17px; }
.sb-gruppe { margin: 0 0 13px; }
.sb-label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--gold-hell); margin-bottom: 6px; opacity: 0.85; }
.sb-wahl { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 240, 210, 0.05); border: 1px solid rgba(216, 178, 92, 0.3); }
.sb-wahl button { flex: 1; min-height: 38px; border: 0; border-radius: 999px; background: transparent; color: var(--leise); font-weight: 700; }
.sb-wahl button.an { background: linear-gradient(180deg, var(--gold-hell), var(--gold)); color: #2a1404; }
.sb-namen { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.sb-namen input { min-width: 0; padding: 9px 14px; border: 1px solid rgba(216, 178, 92, 0.3); border-radius: 999px; background: rgba(255, 240, 210, 0.06); color: var(--text); font: inherit; font-weight: 700; }
.sb-start { width: 100%; margin: 8px 0 14px; padding: 14px; border: 0; border-radius: 999px; font-family: var(--titel); font-weight: 700; font-size: 26px; color: #2a1404;
  background: linear-gradient(180deg, #fff1c8, var(--gold-hell) 40%, var(--gold)); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45); }
.sb-start:disabled { filter: grayscale(0.7); opacity: 0.6; cursor: default; }
.sb-hilfe { border: 1px solid rgba(216, 178, 92, 0.25); border-radius: 14px; padding: 10px 14px; font-size: 14px; color: var(--leise); background: rgba(255, 240, 210, 0.03); }
.sb-hilfe summary { color: var(--text); font-weight: 700; cursor: pointer; }
.sb-hilfe p { margin: 8px 0 0; line-height: 1.5; }
.sb-hilfe h2, .sb-hilfe h3, .sb-hilfe h4 { color: var(--text); }
.sb-sprache { margin-top: 12px; background: none; border: 1px solid rgba(216, 178, 92, 0.35); border-radius: 999px; padding: 6px 14px; color: var(--leise); font-size: 13px; }
#ende, #pause { background: rgba(8, 4, 3, 0.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.karte { width: min(420px, 100%); padding: 24px 26px; text-align: center; border-radius: 18px; background: radial-gradient(ellipse at 50% 0%, #3b1c16, #170b08); border: 1px solid rgba(246, 220, 154, 0.45); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6); }
.karte h2 { margin: 0 0 10px; font-family: var(--titel); font-size: 34px; color: var(--gold-hell); }
.karte p { margin: 6px 0; color: var(--leise); }
.karte a { color: var(--gold-hell); }
.knopf-gross { display: block; width: 100%; margin-top: 16px; padding: 12px; border: 0; border-radius: 999px; font-family: var(--titel); font-weight: 700; font-size: 22px; color: #2a1404; background: linear-gradient(180deg, var(--gold-hell), var(--gold)); }
.knopf-leise { display: block; width: 100%; margin-top: 8px; padding: 9px; border: 1px solid rgba(246, 220, 154, 0.3); border-radius: 999px; background: none; color: var(--leise); }
.knopf-gross[hidden], .knopf-leise[hidden] { display: none; }
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .raum { padding-top: 46px; }
  .kopf { flex-wrap: wrap; width: 100%; border-radius: 18px; } .status { order: 3; width: 100%; } .spieler img { width: 28px; height: 28px; }
  .sb { justify-content: center; align-items: flex-end; padding: 16px; background: linear-gradient(180deg, rgba(14, 7, 5, 0.25), rgba(14, 7, 5, 0.95) 45%); }
  .sb-titel { font-size: 60px; }
}

