/* Nomopoly – neue Gestaltung der Spielansicht (Umbau Etappe 1).
   Flaches Brett in Hell (Tagblau auf Petrol) und Dunkel (Nachtblau auf Nachthimmel), Schrift Jost,
   Kacheln links und rechts. Alle Maße im Brett hängen an der Brettbreite (cqw = 1 % der Brettbreite). */
@font-face { font-family: Jost; font-weight: 400; font-display: swap; src: url(/assets/fonts/jost-400.woff2) format('woff2'); }
@font-face { font-family: Jost; font-weight: 500; font-display: swap; src: url(/assets/fonts/jost-500.woff2) format('woff2'); }
@font-face { font-family: Jost; font-weight: 600; font-display: swap; src: url(/assets/fonts/jost-600.woff2) format('woff2'); }
@font-face { font-family: Jost; font-weight: 700; font-display: swap; src: url(/assets/fonts/jost-700.woff2) format('woff2'); }
@font-face { font-family: Jost; font-weight: 800; font-display: swap; src: url(/assets/fonts/jost-800.woff2) format('woff2'); }
/* Für alte Stellen, die eine „dicke“ Schrift ohne Gewicht erwarten */
@font-face { font-family: JostDick; font-weight: 400; font-display: swap; src: url(/assets/fonts/jost-800.woff2) format('woff2'); }

:root {
  --jost: 'Jost', system-ui, sans-serif;
  --kipp: 0deg;
  /* Brett hell: Tagblau */
  --b-tile: #f2f6fd; --b-mid: #e8eef9; --b-line: #3b4d72; --b-ink: #17223d; --b-ink2: #4a5a7c; --b-rand: rgba(255, 255, 255, .9);
  --b-stapel: #fff; --b-logorand: #3b4d72; --b-code: #2f5d9c; --b-los: #c8473f; --b-wrand: #3b4d72;
  /* Oberfläche hell: weiße Karten auf Petrol */
  --n-ink: #17223d; --n-ink2: #55617d; --n-karte: #fbfcff; --n-feld: #eef2fa; --n-rand: #17223d; --n-rot: #d63a30; --n-rotschrift: #d9534a;
  --n-seite: radial-gradient(ellipse at 50% 35%, #1f7f88, #11555d 60%, #0a3a40); --n-boden: #0e4850;
  --n-schatten: 0 18px 34px -14px rgba(0, 0, 0, .6), inset 0 -3px 0 rgba(23, 34, 61, .08);
}
html[data-thema='dunkel'] {
  /* Brett dunkel: Nachtblau mit hellem Schein */
  --b-tile: #182238; --b-mid: #121a2c; --b-line: #3b4d72; --b-ink: #eef3ff; --b-ink2: rgba(238, 243, 255, .8); --b-rand: rgba(255, 255, 255, .035);
  --b-stapel: #182238; --b-logorand: #0b0c0d; --b-code: #eef3ff; --b-los: #ff5a4e; --b-wrand: #0b1122;
  --glow: rgba(150, 185, 255, .55); --glow2: rgba(120, 160, 255, .2);
  /* Oberfläche dunkel: Glas auf Nachthimmel */
  --n-ink: #eaf0ff; --n-ink2: #a9b6d6; --n-karte: rgba(22, 32, 58, .62); --n-feld: rgba(255, 255, 255, .06); --n-rand: #0b1122; --n-rotschrift: #ff8a80;
  --n-seite: radial-gradient(ellipse at 50% 38%, #1d2c4f, #0b1122 62%, #060913); --n-boden: #0a0f1e;
  --n-schatten: 0 0 18px -6px rgba(120, 160, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .12), 0 16px 30px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- Seite ---------- */
body[data-view='game'] { --text: var(--jost); --dick: JostDick, var(--jost); --eng: var(--jost); --tinte: #17223d; --tinte-2: #55617d; --wolke: #eef2fa; --linie: #d7deea;
  font-family: var(--jost); color: var(--n-ink); background: none; }
html:has(> body[data-view]) { background: var(--n-boden); }
/* Hintergrund als feste Ebene (ein „fixed“-Hintergrund ruckelt am iPhone) */
body[data-view='game']::before { content: ''; position: fixed; inset: 0; background: var(--n-seite); z-index: -1; pointer-events: none; }
.spiel { height: 100dvh; display: grid; grid-template-columns: minmax(272px, 300px) minmax(min(100dvh - 28px, 100vw - 600px), 1fr) minmax(272px, 300px); gap: 14px; padding: 14px; }   /* beide Seiten gleich breit: Brett genau in der Mitte */
.spalte-l, .spalte-r { display: flex; flex-direction: column; gap: 14px; min-height: 0; min-width: 0; }
.spalte-r { overflow-y: auto; scrollbar-width: none; margin: -14px -8px -14px 0; padding: 14px 8px 14px 0; }
.buehne { display: grid; place-items: center; min-width: 0; min-height: 0; container-type: size; }
#brett-host { width: min(100cqw, 100cqh); }
.fuell { flex: 1; }

.kachel { background: var(--n-karte); border-radius: 14px; padding: 14px 15px; color: var(--n-ink); box-shadow: var(--n-schatten); flex: none; }
.kachel > h2 { margin: 0 0 10px; font: 700 15px/1.2 var(--jost); letter-spacing: .01em; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.kachel > h2[hidden] { display: none; }
html[data-thema='dunkel'] .kachel { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(170, 195, 255, .35); }
html[data-thema='dunkel'] .kachel > h2 { color: #eef3ff; text-shadow: 0 0 8px rgba(150, 185, 255, .55); font-weight: 600; }
.kleintext { font-size: 12.5px; color: var(--n-ink2); }

/* Knöpfe */
.kb { font: 800 15px/1.15 var(--jost); border: 2px solid var(--n-rand); border-radius: 10px; padding: 9px 16px; box-shadow: 0 3px 0 var(--n-rand); background: #fff; color: #17223d;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; position: relative; top: 0; transition: top .06s, box-shadow .06s, filter .15s; }
.kb.haupt { background: var(--n-rot); color: #fff; }
.kb.klein { font-size: 13px; padding: 6px 11px; box-shadow: 0 2px 0 var(--n-rand); }
.kb.warn { color: #c0392b; }
.kb:hover:not(:disabled) { filter: brightness(1.06); }
.kb:active:not(:disabled) { top: 2px; box-shadow: 0 1px 0 var(--n-rand); }
.kb:disabled { opacity: .45; }
.kb .ik, .rund .ik, .hk-titel .ik { display: inline-grid; width: 18px; height: 18px; flex: none; } .rund .ik { width: 16px; height: 16px; }
.ik svg { width: 100%; height: 100%; display: block; }
html[data-thema='dunkel'] .kb { box-shadow: 0 3px 0 var(--n-rand), 0 0 16px -2px rgba(214, 58, 48, .55); }
html[data-thema='dunkel'] .kb.weiss, html[data-thema='dunkel'] .kb:not(.haupt) { background: rgba(255, 255, 255, .04); color: #eaf0ff; border-color: rgba(234, 240, 255, .7); box-shadow: 0 0 10px -4px rgba(150, 185, 255, .5); }
html[data-thema='dunkel'] .kb.warn { color: #ff8a80; }
.knoepfe { display: flex; flex-direction: column; gap: 8px; }
.knoepfe.quer { flex-direction: row; flex-wrap: wrap; }
.knoepfe.quer .kb { flex: 1 1 auto; }
.hinweis { font-size: 13px; color: var(--n-ink2); margin-top: 8px; background: none; padding: 0; text-align: left; }
.hinweis.laeuft { letter-spacing: .3em; text-align: center; margin: 0; }

/* Linke Spalte */
.kopfkachel { display: flex; align-items: center; gap: 4px; padding: 9px 10px; }
.logo-k { background: var(--n-rot); border: 3px solid var(--n-rand); border-radius: 7px; padding: 3px 8px 1px; color: #fff; font: 800 17px/1.1 var(--jost); letter-spacing: .05em; text-transform: uppercase; text-shadow: 2px 2px 0 var(--n-rand); }
button.rund { width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--n-feld); color: var(--n-ink); display: grid; place-items: center; padding: 0; flex: none; transition: filter .15s; }
button.rund:hover { filter: brightness(.93); }
html[data-thema='dunkel'] button.rund { box-shadow: inset 0 0 0 1px rgba(170, 195, 255, .3); } html[data-thema='dunkel'] button.rund:hover { filter: brightness(1.5); }
.share { display: flex; gap: 8px; align-items: center; }
.share-link { flex: 1; min-width: 0; background: var(--n-feld); border-radius: 8px; padding: 7px 8px; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-thema='dunkel'] .share-link, html[data-thema='dunkel'] .seite .eingabe { box-shadow: inset 0 0 0 1px rgba(170, 195, 255, .3); }
.seite { flex: 0 1 380px; min-height: 220px; display: flex; flex-direction: column; padding: 10px 12px 12px; }   /* nicht bis ganz unten (Konzept) */
.reiterleiste { display: flex; gap: 4px; margin-bottom: 8px; }
.reiter { flex: 1; background: none; border: 0; padding: 6px; font: 700 14px var(--jost); color: var(--n-ink2); border-radius: 8px; }
.reiter.aktiv { color: var(--n-ink); background: var(--n-feld); }
.zahl { background: var(--n-rot); color: #fff; border-radius: 9px; font-size: 11px; padding: 0 6px; margin-left: 6px; font-weight: 800; }
.seite .chatliste, .seite .logliste { flex: 1; min-height: 0; overflow-y: auto; font-size: 13.5px; line-height: 1.35; scrollbar-width: thin; }
.seite .chatliste[hidden], .seite .logliste[hidden], .chat-ein[hidden] { display: none; }
.chatzeile { padding: 0 0 8px; overflow-wrap: anywhere; }
.chatzeile b { font-weight: 800; color: color-mix(in srgb, var(--farbe, #55617d) 65%, #000); }
html[data-thema='dunkel'] .chatzeile b { color: color-mix(in srgb, var(--farbe, #a9b6d6) 70%, #fff); }
.chat-ein { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 0; border: 0; }
/* Senden: runder roter Knopf mit weißem Pfeil (Stil wie die roten Knöpfe) */
.senden-rund { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #17223d; background: #d63a30; color: #fff; display: grid; place-items: center; padding: 0; box-shadow: 0 2px 0 #17223d; cursor: pointer; transition: transform .1s; }
.senden-rund .ik, .senden-rund svg { width: 17px; height: 17px; display: block; }
.senden-rund:hover { filter: brightness(1.06); } .senden-rund:active { transform: translateY(2px); box-shadow: none; }
/* Lautstärke-Regler am Lautsprecher-Knopf */
.ton-pop { position: fixed; z-index: 900; width: 240px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; color: #17223d; border: 2px solid #17223d; border-radius: 12px; box-shadow: 0 4px 0 #17223d, 0 16px 30px -12px rgba(0, 0, 0, .5); font-family: var(--jost); }
.ton-pop .ton-aus svg { width: 18px; height: 18px; display: block; opacity: .55; }
.ton-regler { flex: 1; accent-color: #d63a30; min-width: 0; }
.ton-zahl { font: 800 13px var(--jost); width: 46px; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.seite .eingabe { background: var(--n-feld); color: var(--n-ink); border: 0; border-radius: 8px; padding: 8px; font: 500 13px var(--jost); width: 100%; }
.seite .eingabe::placeholder { color: var(--n-ink2); }
.seite .eingabe:focus { outline: 2px solid var(--n-ink2); box-shadow: none; }
.logzeile { padding: 5px 8px; border-left: 4px solid var(--farbe); background: var(--n-feld); border-radius: 3px 8px 8px 3px; margin-bottom: 5px; font-size: 12.5px; line-height: 1.3; color: var(--n-ink); overflow-wrap: anywhere; }

/* Spieler */
.spielerliste { display: grid; gap: 2px; }
.pl { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 10px; cursor: pointer; }
.pl:hover { background: var(--n-feld); }
.pl { position: relative; padding-left: 14px; }
.pl .pl-farbe { position: absolute; left: 3px; top: 9px; bottom: 9px; width: 5px; border-radius: 3px; background: var(--farbe); box-shadow: 0 0 0 1px rgba(23, 34, 61, .25); }
.pl.dran { background: var(--n-feld); box-shadow: inset 0 0 0 2px var(--n-ink); }
html[data-thema='dunkel'] .pl.dran { background: rgba(150, 185, 255, .1); box-shadow: inset 0 0 0 1px rgba(170, 195, 255, .7), 0 0 12px -4px rgba(150, 185, 255, .6); }
.pl.pleite { opacity: .5; filter: grayscale(.9); }
.sp-kopf { width: 40px; height: 40px; display: grid; place-items: center; flex: none; }
.sp-kopf:has(.pupkopf) { width: 34px; height: auto; margin: 0 3px; }
.sp-kopf.winzig { width: 30px; height: 30px; display: inline-grid; vertical-align: middle; margin-right: .4em; } .sp-kopf.winzig:has(.pupkopf) { width: 25px; height: auto; margin: 0 .5em 0 2px; }
.sp-name { font-weight: 800; font-size: 14.5px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.du { font-size: 10.5px; background: var(--n-ink); color: var(--n-karte); border-radius: 20px; padding: 0 6px; margin-left: 6px; font-weight: 700; vertical-align: 1px; }
html[data-thema='dunkel'] .du { background: rgba(234, 240, 255, .85); color: #0b1122; }
.krone { color: #c08a16; }
.sp-geld { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; display: inline-block; transform-origin: 100% 50%; }
.sp-geld.rauf { animation: geldrauf .75s; } .sp-geld.runter { animation: geldrunter .75s; }
@keyframes geldrauf { 25% { color: #2e9d5c; transform: scale(1.18); } } @keyframes geldrunter { 25% { color: #d63a30; transform: scale(1.12) translateX(2px); } 45% { transform: scale(1.12) translateX(-2px); } }
.pl.pleite .sp-geld { font-size: 12px; font-weight: 600; }
html[data-thema='dunkel'] .sp-name, html[data-thema='dunkel'] .sp-geld { text-shadow: 0 0 6px rgba(150, 185, 255, .35); }
.sp-besitz { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.sp-besitz:empty, .sp-abz:empty { display: none; }
.sp-besitz i { width: 10px; height: 7px; border-radius: 1.5px; border: 1px solid var(--n-rand); }
.sp-besitz i.hyp { opacity: .3; }
.sp-abz { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.abz { display: inline-flex; align-items: center; gap: .1em; font-size: 10.5px; font-weight: 700; border-radius: 20px; padding: 0 7px; background: var(--n-feld); line-height: 1.5; white-space: nowrap; color: var(--n-ink); }
.abz .ic { width: 1.3em; margin: -.2em 0; }
.abz.stamm { background: #ffd45e; color: #17223d; } .abz.knast { background: #17223d; color: #fff; } .abz.weg { background: #fbdcd9; color: #a3271e; } .abz.voll, .abz.gutschein { background: #d5f1e0; color: #1b6b3f; } .abz.hyp { background: #dfe4ee; color: #55617d; } .abz.karte { background: #dbe8fb; color: #2f5d9c; } .abz.aussetzen { background: #ffeb8a; color: #5c4600; } .abz.mietfrei { background: #d5f1e0; color: #1b6b3f; }

/* Dein Zug */
.zugkarte[hidden] { display: none; }
.zugkarte > h2 { color: var(--n-rotschrift); }
html[data-thema='dunkel'] .zugkarte > h2 { color: #ff8a80; text-shadow: 0 0 10px rgba(255, 120, 110, .45); }
.feldmini { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--n-feld); border: 0; border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; font: 500 13px/1.25 var(--jost); color: var(--n-ink2); }
.feldmini i { width: 34px; height: 26px; border-radius: 4px; background: var(--farbe); border: 2px solid var(--n-rand); flex: none; }
.feldmini b { font-size: 15px; font-weight: 800; color: var(--n-ink); }
html[data-thema='dunkel'] .feldmini { box-shadow: inset 0 0 0 1px rgba(170, 195, 255, .2); } html[data-thema='dunkel'] .feldmini i { border-color: #eaf0ff; box-shadow: 0 0 10px color-mix(in srgb, var(--farbe) 60%, transparent); }
.versuche { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--n-ink2); background: var(--n-feld); border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; }
.marken { display: flex; gap: 6px; } .marken i { width: 14px; height: 14px; border-radius: 50%; background: var(--n-rot); border: 2px solid var(--n-rand); } .marken i.weg { background: transparent; opacity: .55; }
html[data-thema='dunkel'] .marken i { border-color: #eaf0ff; }
.schuld { background: #fde9e7; color: #17223d; border-radius: 10px; padding: 9px 11px; margin-bottom: 10px; text-align: left; box-shadow: inset 0 0 0 2px #e2a39d; max-width: none; }
.schuld-titel { font: 800 15px/1.2 var(--jost); } .schuld-text { font-size: 12.5px; font-weight: 500; margin-top: 3px; }
html[data-thema='dunkel'] .schuld { background: rgba(214, 58, 48, .16); color: #eaf0ff; box-shadow: inset 0 0 0 1.5px rgba(255, 138, 128, .7); }
/* Auktion (vorläufig in der Zug-Karte, das Ticker-Fenster folgt in Etappe 2) */
.auktion { display: grid; gap: 8px; border-top: 6px solid var(--farbe); border-radius: 8px; background: var(--n-feld); padding: 9px 10px 10px; text-align: left; }
.au-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; } .au-feld { font-weight: 800; font-size: 16px; } .au-bank { font-size: 12px; color: var(--n-ink2); }
.au-stand { font-size: 13.5px; } .au-betrag { font-weight: 800; font-size: 20px; color: #2e9d5c; display: inline-block; }
.au-zeit { height: 8px; background: rgba(120, 140, 180, .25); border-radius: 6px; overflow: hidden; } .au-zeit i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #d63a30, #e6cd58); border-radius: 6px; transition: width .1s linear; }
.auktion .hinweis { margin: 0; }

/* Handel-Kachel */
.hk-titel { display: inline-flex; align-items: center; gap: 7px; } .hk-titel .ik { display: none; }
.hk-rest { display: inline-flex; align-items: center; gap: 8px; } .hk-offen { display: none; font-weight: 500; font-size: 12.5px; color: var(--n-ink2); }
.badge { min-width: 18px; height: 18px; border-radius: 9px; background: var(--n-rot); color: #fff; font: 800 11px/18px var(--jost); text-align: center; padding: 0 5px; text-shadow: none; }
.badge[hidden] { display: none; }
.neu { font: 800 12.5px var(--jost); background: var(--n-rot); color: #fff; border: 2px solid var(--n-rand); border-radius: 8px; padding: 4px 10px; box-shadow: 0 2px 0 var(--n-rand); white-space: nowrap; text-shadow: none; }
html[data-thema='dunkel'] .neu { box-shadow: 0 2px 0 var(--n-rand), 0 0 12px -2px rgba(214, 58, 48, .5); }
.angebot { border-radius: 10px; background: var(--n-feld); padding: 8px 10px; margin-bottom: 8px; font-size: 12.5px; }
.angebot:last-child { margin-bottom: 0; } .angebot.meins { cursor: pointer; }
.angebot .wer { display: flex; align-items: center; gap: 5px; font-weight: 700; color: var(--n-ink2); margin-bottom: 4px; white-space: nowrap; overflow: hidden; }
.angebot .wer i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1.5px solid var(--n-rand); flex: none; }
.angebot .wer .an { margin-left: auto; font-weight: 700; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: #ffd45e; color: #17223d; }
.angebot .wer .an.grau { background: #d7deea; }
.angebot.beiseite { opacity: .8; box-shadow: inset 0 0 0 1.5px var(--n-rand); }
.angebot .was { font-weight: 800; color: var(--n-ink); font-size: 13px; line-height: 1.3; }
.angebot .was span { opacity: .6; font-weight: 700; }
.angebot .tun { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.angebot .tun .kb { font-size: 12px; padding: 4px 8px; box-shadow: 0 2px 0 var(--n-rand); }
.angebot.fuerdich { background: #fff6d8; box-shadow: inset 0 0 0 2px #e0b23a; }
html[data-thema='dunkel'] .angebot { box-shadow: inset 0 0 0 1px rgba(170, 195, 255, .18); }
html[data-thema='dunkel'] .angebot .wer i { border-color: #eaf0ff; }
html[data-thema='dunkel'] .angebot.fuerdich { background: rgba(255, 212, 94, .1); box-shadow: inset 0 0 0 1.5px rgba(255, 212, 94, .75), 0 0 14px -4px rgba(255, 212, 94, .5); }
html[data-thema='dunkel'] .angebot .wer .an.grau { background: rgba(255, 255, 255, .14); color: #dbe4ff; }

/* ---------- Brett ---------- */
.brett-raum { width: 100%; padding: 2.1%; }
.brett-box { container-type: inline-size; position: relative; }
.brett { --fw: calc(74cqw / var(--seite)); position: relative; width: 100%; aspect-ratio: 1; display: grid; grid-template-columns: 13cqw repeat(var(--seite), minmax(0, 1fr)) 13cqw; grid-template-rows: 13cqw repeat(var(--seite), minmax(0, 1fr)) 13cqw;
  background: var(--b-mid); user-select: none; -webkit-user-select: none; font-family: var(--jost); color: var(--b-ink);
  box-shadow: 0 0 0 .4cqw var(--b-line), 0 0 0 .5cqw rgba(59, 77, 114, .25), 0 3cqw 6cqw -2.4cqw rgba(0, 0, 0, .55); }
html[data-thema='dunkel'] .brett { box-shadow: 0 0 0 .4cqw var(--b-line), 0 0 0 .5cqw var(--glow), 0 0 3cqw rgba(110, 150, 255, .18), 0 3cqw 7cqw -2cqw rgba(0, 0, 0, .9); }
.feld { position: relative; background: none; border: 0; padding: 0; margin: 0; min-width: 0; min-height: 0; font: inherit; color: inherit; display: block; }
.fi { position: absolute; left: 50%; top: 50%; width: var(--fw); height: 13cqw; transform: translate(-50%, -50%) rotate(var(--dreh, 0deg)); background: var(--b-tile);
  box-shadow: inset 0 0 0 .2cqw var(--b-line), inset 0 0 0 .45cqw var(--b-rand); display: flex; flex-direction: column; align-items: center; text-align: center; }
.feld.links .fi { --dreh: 90deg; } .feld.oben .fi { --dreh: 180deg; } .feld.rechts .fi { --dreh: 270deg; }
.feld.ecke .fi { inset: 0; width: auto; height: auto; transform: none; overflow: hidden; display: block; }
.feld:hover .fi, .feld:focus-visible .fi { box-shadow: inset 0 0 0 .2cqw var(--b-line), inset 0 0 0 .55cqw rgba(214, 58, 48, .45); }
.feld:focus-visible { outline: 0; box-shadow: none; }
.bar { width: calc(100% - .4cqw); margin: .2cqw .2cqw 0; height: 2.7cqw; background: var(--farbe); border-bottom: .25cqw solid var(--b-line); flex: none; display: flex; justify-content: center; align-items: center; }
.hz { display: flex; gap: .1cqw; align-items: flex-end; }   /* Schatten steckt in den 3D-Bildern */
.bar .haus { height: 2.25cqw; width: auto; display: block; } .bar .hotel { height: 2.35cqw; width: auto; display: block; }
.fname { margin-top: .9cqw; font-weight: 700; font-size: 1.1cqw; line-height: 1.1; letter-spacing: .03em; text-transform: uppercase; padding: 0 .3cqw; max-width: 100%; hyphens: manual; overflow-wrap: anywhere; }
.fi .wappen { width: 2.2cqw; height: 2.2cqw; object-fit: contain; margin-top: .7cqw; pointer-events: none; filter: none; }
.preis { margin-top: auto; margin-bottom: .9cqw; font-weight: 600; font-size: 1.15cqw; line-height: 1; }
.brett .ic { display: block; width: 3.8cqw; height: 3.8cqw; margin-top: .8cqw; color: var(--b-ink); flex: none; vertical-align: 0; }
.brett .ic svg, .stapel svg { width: 100%; height: 100%; display: block; }
svg.sy * { stroke: var(--b-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.code { margin-top: .5cqw; font-size: 1cqw; font-weight: 800; color: var(--b-code); letter-spacing: .12em; border-top: .15cqw solid var(--b-code); border-bottom: .15cqw solid var(--b-code); padding: .1cqw .4cqw; line-height: 1.2; }
.besitz { position: absolute; bottom: -1.7cqw; left: .3cqw; right: .3cqw; height: .9cqw; border-radius: .3cqw; background: var(--besitzer, transparent); display: none; box-shadow: inset 0 .15cqw 0 rgba(255, 255, 255, .4), 0 .15cqw .2cqw rgba(0, 0, 0, .3); }
.besetzt .besitz { display: block; animation: plopp .4s; }
html[data-thema='dunkel'] .besetzt .besitz { box-shadow: inset 0 .15cqw 0 rgba(255, 255, 255, .4), 0 0 1cqw -.1cqw var(--besitzer); }
.feld.hypo .fi::after { content: 'HYP'; position: absolute; inset: .2cqw; background: repeating-linear-gradient(45deg, rgba(23, 34, 61, .6) 0 .5cqw, rgba(23, 34, 61, .4) .5cqw 1cqw); color: #fff; font-weight: 800; font-size: 1.4cqw; letter-spacing: .08em; display: grid; place-items: center; }
.marke { position: absolute; top: .3cqw; right: .3cqw; width: 2.4cqw; pointer-events: none; z-index: 2; }
.feld.gelandet .fi, .feld.baut .fi { animation: gelandet .7s; }
@keyframes gelandet { 30% { box-shadow: inset 0 0 0 .2cqw var(--b-line), inset 0 0 0 .8cqw #ffd45e; } }
/* Ecken */
.cin { position: absolute; left: 50%; top: 50%; width: 17.6cqw; height: 15cqw; margin: -7.5cqw 0 0 -8.8cqw; display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center; text-align: center; transform: rotate(var(--crot, 0deg)); }
.cin > :first-child { align-self: end; margin-bottom: .6cqw; } .cin > :last-child { align-self: start; margin-top: .5cqw; }
.cin .ic { width: 4.4cqw; height: 4.4cqw; margin: 0; }
.cn { font-weight: 800; font-size: 1.6cqw; line-height: 1.1; letter-spacing: .03em; text-transform: uppercase; }
.cs { font-size: .95cqw; font-weight: 600; color: var(--b-ink2); line-height: 1.2; }
.typ-go .cn { font-size: 4cqw; line-height: .9; color: var(--b-los); letter-spacing: .04em; }
.typ-go .ic.pfeil { width: 4.6cqw; height: 3cqw; color: var(--b-los); transform: rotate(180deg); }
.pottstand { font-size: 1.15cqw; font-weight: 800; color: var(--b-ink); font-variant-numeric: tabular-nums; }
.pottstand.aus { font-size: .8cqw; font-weight: 600; color: var(--b-ink2); max-width: 9cqw; }
/* Gefängnis: Zelle innen, außen der Winkel „Nur zu Besuch“ */
.zelle { position: absolute; right: 1.8cqw; top: .8cqw; width: 6cqw; height: 6cqw; border: .3cqw solid #17223d; border-radius: .8cqw; background: radial-gradient(circle at 50% 40%, #4a556b, #1d2330 75%); box-shadow: inset 0 .4cqw .8cqw rgba(0, 0, 0, .5); }
.typ-jail .cn { position: absolute; right: .4cqw; top: 7.5cqw; width: 9.4cqw; text-align: center; font-size: 1.2cqw; }
.stammplatz { position: absolute; right: .4cqw; top: 9cqw; width: 9.4cqw; text-align: center; font-size: .72cqw; font-weight: 700; line-height: 1.05; color: var(--b-ink2); }
.stammplatz:empty { display: none; }
.bl, .bu { position: absolute; background: rgba(222, 145, 76, .16); color: var(--b-ink); font: 800 .95cqw/1 var(--jost); letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; }
.bl { left: .2cqw; top: .2cqw; bottom: 3cqw; width: 2.8cqw; border-right: .15cqw dashed var(--b-line); }
.bl span { writing-mode: vertical-rl; transform: rotate(180deg); }
.bu { left: .2cqw; right: .2cqw; bottom: .2cqw; height: 2.8cqw; border-top: .15cqw dashed var(--b-line); justify-content: flex-start; padding-left: 3.8cqw; }
/* Mitte: Logo, Kartenstapel, Würfel */
.mitte { position: relative; min-width: 0; min-height: 0; box-shadow: 0 0 0 .2cqw var(--b-line); z-index: 1; }
.mitte-logo { position: absolute; left: 0; right: 0; top: 46%; transform: translateY(-50%); text-align: center; pointer-events: none; }
.lb { display: inline-block; background: #d63a30; border: .6cqw solid var(--b-logorand); border-radius: 1cqw; padding: 1cqw 3cqw .6cqw; box-shadow: 0 .6cqw 1.8cqw -.4cqw rgba(214, 58, 48, .45); }
.logo-name { display: block; color: #fff; font-size: 7.6cqw; font-weight: 800; letter-spacing: .05em; line-height: 1; text-transform: uppercase; text-shadow: .5cqw .5cqw 0 var(--b-logorand); }
.w2 { margin-top: 1.8cqw; font-size: 1.3cqw; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--b-ink2); }
html[data-thema='dunkel'] .lb { box-shadow: 0 0 2.2cqw rgba(214, 58, 48, .45), 0 .5cqw 0 rgba(0, 0, 0, .4); }
.stapel { position: absolute; width: 15cqw; height: 9.6cqw; }
.stapel > * { position: absolute; inset: 0; border-radius: .8cqw; background: var(--b-stapel); box-shadow: 0 0 0 .2cqw var(--b-line), 0 .6cqw 1.4cqw -.4cqw rgba(40, 60, 110, .35); }
.stapel > :nth-child(1) { transform: translate(.6cqw, .6cqw); } .stapel > :nth-child(2) { transform: translate(.3cqw, .3cqw); }
.stapel > div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4cqw; border-top: .8cqw solid var(--a); }
.stapel svg { width: 3.2cqw; height: 3.2cqw; } .stapel span { font-size: 1.1cqw; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.s-post { left: 4.6cqw; top: 7cqw; transform: rotate(-45deg); } .s-msg { left: 56.6cqw; top: 59cqw; transform: rotate(135deg); }
html[data-thema='dunkel'] .stapel > * { box-shadow: 0 0 0 .2cqw var(--b-line), 0 0 1.2cqw -.2cqw var(--glow), 0 .4cqw .8cqw rgba(0, 0, 0, .5); }
/* Leuchten im dunklen Brett */
html[data-thema='dunkel'] :is(.fname, .preis, .cn, .cs, .code, .w2, .stapel span, .bl, .bu) { text-shadow: 0 0 .6cqw var(--glow), 0 0 1.4cqw var(--glow2); }
html[data-thema='dunkel'] .typ-go .cn { text-shadow: 0 0 .8cqw rgba(255, 90, 78, .7), 0 0 1.8cqw rgba(255, 90, 78, .35); }
html[data-thema='dunkel'] .brett .ic, html[data-thema='dunkel'] .stapel svg { filter: drop-shadow(0 0 .4cqw var(--glow)); }
html[data-thema='dunkel'] .bar { filter: saturate(1.15) brightness(1.05); box-shadow: 0 0 1cqw -.2cqw var(--farbe); }
html[data-thema='dunkel'] .fi .wappen { filter: brightness(.95); }
/* Würfel und Status in der Brettmitte */
.hud { position: absolute; left: 50%; top: 66%; transform: translateX(-50%); width: 46cqw; display: grid; justify-items: center; gap: 1.1cqw; z-index: 5; }
.wuerfelplatz { display: flex; gap: 1.8cqw; }
.wuerfel { --w: clamp(22px, 5.2cqw, 50px); width: var(--w); height: var(--w); position: relative; transform-style: preserve-3d; }
.wuerfel[data-k='0'] { rotate: -8deg; } .wuerfel[data-k='1'] { rotate: 7deg; }
.wuerfel::before { content: ''; position: absolute; inset: 0; border-radius: 22%; background: var(--b-wrand); transform: translateY(calc(var(--w) * .09)) translateZ(calc(var(--w) * -.6)); }
html[data-thema='dunkel'] .wuerfel::before { box-shadow: 0 0 calc(var(--w) * .3) rgba(150, 185, 255, .35); }
.w3d { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.15, .7, .25, 1); }
.wf { position: absolute; inset: 0; background: #fbfaf6; border: calc(var(--w) * .055) solid var(--b-wrand); border-radius: 22%; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 11%; backface-visibility: hidden; }
.wf i { border-radius: 50%; margin: 9%; } .wf i.an { background: #17223d; }
.wf1 { transform: translateZ(calc(var(--w) / 2)); } .wf6 { transform: rotateY(180deg) translateZ(calc(var(--w) / 2)); } .wf2 { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); } .wf5 { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); }
.wf3 { transform: rotateX(90deg) translateZ(calc(var(--w) / 2)); } .wf4 { transform: rotateX(-90deg) translateZ(calc(var(--w) / 2)); }
.wuerfel.springt { animation: wurf .9s cubic-bezier(.3, 0, .4, 1); }
@keyframes wurf { 35% { translate: 0 calc(var(--w) * -.7); scale: 1.3; } 70% { translate: 0 0; scale: 1; } 82% { translate: 0 calc(var(--w) * -.12); } }
.wuerfel.pasch { animation: pasch .9s; } @keyframes pasch { 30%, 70% { scale: 1.25; } }
.wuerfel.pasch .wf { background: #ffe9a8; }
.status { font-weight: 700; font-size: clamp(11px, 1.8cqw, 16px); line-height: 1.2; text-align: center; color: var(--b-ink); background: none; box-shadow: none; padding: 0; border-radius: 0; max-width: 100%; }
.status:empty { display: none; } .status b { color: var(--n-rotschrift); font-weight: 800; }
html[data-thema='dunkel'] .status { text-shadow: 0 0 8px rgba(150, 185, 255, .5); }
#mitte-aktionen { display: grid; justify-items: center; } #mitte-aktionen:empty { display: none; }
.kb.wurf { font-size: clamp(13px, 1.9cqw, 16px); padding: .55em 1.75em; border-radius: 999px; box-shadow: 0 3px 0 var(--b-wrand), 0 8px 18px -6px rgba(214, 58, 48, .5); border-color: var(--b-wrand); animation: wurfpuls 2.2s ease-in-out infinite; }
@keyframes wurfpuls { 50% { box-shadow: 0 3px 0 var(--b-wrand), 0 0 0 6px rgba(214, 58, 48, .22), 0 8px 18px -6px rgba(214, 58, 48, .5); } }
/* Figuren, Gitter (bleiben bis Etappe 3/4 die alten, nur an das flache Brett angepasst) */
.figuren { z-index: 10; }
.figur { width: 4cqw; } .figur.sitzt { width: 3.2cqw; } .schild { font-family: var(--jost); font-size: .9cqw; }
.gitter { position: absolute; display: flex; justify-content: space-between; padding: 0 .7cqw; transform: none; border: 0; border-radius: .8cqw; pointer-events: none; z-index: 200; }
.gitter i { width: .36cqw; height: 100%; border-radius: .2cqw; background: linear-gradient(90deg, #11151f, #aab3c8 45%, #11151f); }
.gitter.zu { animation: gitterzu .5s; } @keyframes gitterzu { 0% { transform: translateY(-130%); opacity: 0; } 60% { transform: none; opacity: 1; } 78% { transform: translateY(-12%); } }
.gitter.auf { animation: gitterauf .9s; } @keyframes gitterauf { 30%, 70% { transform: translateY(-110%); opacity: .3; } }
.gitter.ruettelt { animation: ruetteln .5s; }
.brett.wackelt { animation: wackeln .45s; } @keyframes wackeln { 20% { transform: translate(-.8%, .4%) rotate(-.6deg); } 40% { transform: translate(.8%, -.4%) rotate(.6deg); } 60% { transform: translate(-.5%, 0); } 80% { transform: translate(.4%, 0); } }
@keyframes pleite { 25% { transform: translate(-50%, -130%) rotate(-14deg); filter: grayscale(1); } 100% { transform: translate(-50%, 60%) rotate(120deg) scale(.4); opacity: 0; filter: grayscale(1); } }
@keyframes plopp { from { transform: scale(.5); opacity: 0; } }

/* ---------- Fenster und Hinweise: vorläufig an den neuen Stil angeglichen (Neubau in Etappe 2) ---------- */
body[data-view='game'] h2 { font-family: var(--jost); font-weight: 800; }
body[data-view='game'] .knopf { font-family: var(--jost); font-weight: 800; font-size: 15px; border: 2px solid #17223d; border-radius: 10px; box-shadow: 0 3px 0 #17223d; background: #fff; color: #17223d; padding: 9px 16px; animation: none; transform: none; }
body[data-view='game'] .knopf.gelb, body[data-view='game'] .knopf.gruen { background: #d63a30; color: #fff; }
body[data-view='game'] .knopf.rot { color: #c0392b; }
body[data-view='game'] .knopf.gross { font-size: 17px; border-radius: 12px; }
body[data-view='game'] .knopf:hover:not(:disabled) { transform: none; filter: brightness(1.05); }
body[data-view='game'] .knopf:active:not(:disabled) { top: 2px; box-shadow: 0 1px 0 #17223d; }
body[data-view='game'] .dialog { border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); color: #17223d; }
body[data-view='game'] .dialog-ov { background: rgba(8, 20, 34, .55); }
body[data-view='game'] .dialog-kopf h2 { font-size: 20px; }
body[data-view='game'] .toast { border-radius: 12px; box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .6); font-family: var(--jost); font-weight: 700; color: #17223d; }
body[data-view='game'] .offline-hinweis { font-family: var(--jost); }
.dialog .sp-kopf { --n-rand: #17223d; }

/* ---------- Handy und Tablet hochkant: alles untereinander (H1) ---------- */
@media (max-width: 1180px) and (min-width: 900px) { .spiel { grid-template-columns: 236px minmax(0, 1fr) 236px; gap: 10px; padding: 10px; } .logo-k { font-size: 16px; } }
/* Am PC füllt das Spiel immer das ganze Fenster, nichts scrollt */
@media (min-width: 900px) { html:has(> body[data-view='game']) { overflow: hidden; } body[data-view='game'] .spiel { position: fixed; inset: 0; } }
@media (max-width: 899px) {
  .spiel { height: auto; min-height: 100dvh; display: flex; flex-direction: column; gap: 10px; padding: max(8px, env(safe-area-inset-top)) 8px calc(14px + env(safe-area-inset-bottom)); }
  .spalte-l, .spalte-r { display: contents; }
  .kopfkachel { order: 0; padding: 6px 8px; border-radius: 12px; } #spieler-k { order: 1; } .buehne { order: 2; } .zugkarte { order: 3; } .handel-k { order: 4; } .seite { order: 5; } .teilen { order: 6; }
  .logo-k { font-size: 16px; border-width: 2.5px; }
  /* Spieler: kompakte Reihe ganz oben */
  #spieler-k { background: none; box-shadow: none; padding: 0; border: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  #spieler-k > h2 { display: none; }
  .spielerliste { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .pl { flex: 1 0 76px; min-width: 0; grid-template-columns: 24px minmax(0, 1fr); grid-template-areas: 'kopf name' 'kopf geld'; gap: 0 5px; padding: 5px 6px 5px 4px; border-radius: 12px; background: var(--n-karte); box-shadow: 0 8px 16px -10px rgba(0, 0, 0, .6); }
  .pl:hover { background: var(--n-karte); }
  .pl.dran { background: var(--n-karte); box-shadow: inset 0 0 0 2px var(--n-ink), 0 8px 16px -10px rgba(0, 0, 0, .6); }
  html[data-thema='dunkel'] .pl { background: rgba(22, 32, 58, .72); box-shadow: 0 0 18px -6px rgba(120, 160, 255, .45), inset 0 0 0 1px rgba(170, 195, 255, .35); }
  html[data-thema='dunkel'] .pl.dran { box-shadow: inset 0 0 0 2px rgba(200, 215, 255, .9), 0 0 14px -2px rgba(150, 185, 255, .7); }
  .pl .sp-kopf { grid-area: kopf; width: 24px; height: 24px; } .pl .sp-kopf:has(.pupkopf) { width: 21px; height: auto; margin: 0 1px; } .pl-mitte { grid-area: name; min-width: 0; } .pl .sp-geld { grid-area: geld; font-size: 11.5px; font-weight: 700; color: var(--n-ink2); transform-origin: 0 50%; }
  .pl .sp-name { font-size: 12px; } .pl .sp-besitz, .pl .sp-abz, .pl .du, .pl .krone { display: none; }
  /* Brett in voller Breite */
  .buehne { container-type: inline-size; display: block; } #brett-host { width: 100%; max-width: 620px; margin: 0 auto; } .brett-raum { padding: 1.9%; }
  .kb.wurf { min-height: 36px; }
  .kachel { padding: 12px; }
  .zugkarte .knoepfe { flex-direction: row; flex-wrap: wrap; } .zugkarte .knoepfe .kb { flex: 1 1 40%; padding: 11px 12px; }
  /* Handel als Zeile, die sich aufklappen lässt */
  .handel-k > h2 { margin: 0; cursor: pointer; } .handel-k .hk-titel .ik { display: inline-grid; width: 22px; height: 22px; } .hk-offen { display: inline; }
  #handel-liste { display: none; margin-top: 10px; } .handel-k.offen #handel-liste { display: block; }
  .angebot .tun .kb { flex: 1; font-size: 13px; padding: 7px 10px; }
  .seite { flex: none; height: 300px; }
  .dialog-ov { padding: 0; place-items: end center; } .dialog, .dialog.klein, .dialog.schmal, .dialog.breit, .dialog.ende { width: 100%; max-height: 92dvh; border-radius: 18px 18px 0 0; animation-name: dialoghoch; }
  body[data-view='game'] .dialog { border-radius: 18px 18px 0 0; }
  .dialog-inhalt { padding: .6rem 1rem calc(1.2rem + env(safe-area-inset-bottom)); }
  .bz { grid-template-columns: minmax(0, 1fr) auto 50px; } .bz-knoepfe { grid-column: 1 / -1; justify-content: flex-end; }
}

/* Nachtmodus pausiert (thema.js): Umschalter ausblenden */
html[data-nacht-aus] #thema-knopf { display: none !important; }

/* Testrunde 3 (29.11.): Geld-Schild neben dem Spieler, Bankrott-Knopf, Schuld-Feld */
.geld-chip { position: fixed; z-index: 70; pointer-events: none; font: 800 15px/1 var(--jost); padding: 5px 10px 6px; border-radius: 999px; border: 2px solid #17223d; box-shadow: 0 2px 0 #17223d; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; animation: geldchip 2.4s ease-out forwards; }
.geld-chip.plus { background: #2fae64; } .geld-chip.minus { background: #d63a30; }
.geld-chip.oben { animation-name: geldchip-oben; }
@keyframes geldchip { 0% { opacity: 0; transform: translateX(10px) scale(.7); } 12% { opacity: 1; transform: translateX(0) scale(1.08); } 20% { transform: scale(1); } 80% { opacity: 1; transform: translateX(0); } 100% { opacity: 0; transform: translateX(-8px); } }
@keyframes geldchip-oben { 0% { opacity: 0; transform: translateY(8px) scale(.7); } 12% { opacity: 1; transform: translateY(0) scale(1.08); } 20% { transform: scale(1); } 80% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .geld-chip, .geld-chip.oben { animation: geldchip-ruhig 2.4s linear forwards; } @keyframes geldchip-ruhig { 0%, 85% { opacity: 1; } 100% { opacity: 0; } } }
.sp-fuss { display: flex; justify-content: flex-end; margin-top: 10px; }
.sp-fuss:empty { display: none; }
.feldmini.schuldfeld { margin-bottom: 8px; }
@media (max-width: 700px) { .sp-fuss { display: none; } }   /* am Handy: Aufgeben steht im Menü, Pleite gehen in „Dein Zug“ */
