:root {
  --bg: #0b1311;
  --surface: #101a17;
  --raised: #17241f;
  --line: #2a3b34;
  --ink: #f3efe2;
  --ink-2: #b6c0b6;
  --ink-3: #849186;
  --gold: #e6c15a;
  --plus: #4fd08f;
  --minus: #f27a6e;
  --paper: #f5f0e1;
  --board-ink: #1c2a24;
  --felt: #123a2d;
  --radius: 14px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(120% 90% at 30% 0%, #15251f 0%, var(--bg) 62%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
input, select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  width: 100%;
  min-width: 0;
}
input:focus-visible, button:focus-visible, .cell:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
label { display: block; font-size: 13px; color: var(--ink-2); }
label > input, label > select { margin-top: 5px; color: var(--ink); font-size: 16px; }
[hidden] { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px; border-radius: 11px;
  background: var(--raised); border: 1px solid var(--line); font-weight: 600;
  text-decoration: none; color: var(--ink); transition: transform .1s, background .15s;
}
.btn:hover { background: #1f2f29; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #1d1a0d; }
.btn.primary:hover { background: #f0cf72; }
.btn.danger { color: var(--minus); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .4; cursor: default; }
.err { color: var(--minus); font-size: 14px; min-height: 19px; margin: 8px 0 0; }

/* Figuren */
.tk {
  --c: #666; display: inline-grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--c); color: #fff; box-shadow: inset 0 0 0 2px #ffffff40;
}
.tk .tk-ico { width: 64%; height: 64%; }
.tk.sm { width: 26px; height: 26px; }
.tk.lg { width: 58px; height: 58px; }
.tk.bank { background: #33443c; font: 600 13px var(--serif); color: var(--gold); }

/* Brett */
.board { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 18px 60px #0009, 0 0 0 1px #0007; }
.b-edge { fill: var(--board-ink); }
.b-mark { font: 600 72px var(--serif); fill: var(--gold); letter-spacing: 6px; }
.tv .b-mark { display: none; }
.f-bg { fill: var(--paper); stroke: var(--board-ink); stroke-width: 1.500; }
.f-name { font: 600 15.500px var(--sans); fill: var(--board-ink); letter-spacing: -.1px; }
.f-price { font: 500 14px var(--sans); fill: #47564e; font-variant-numeric: tabular-nums; }
.f-small { font: 600 15px var(--sans); fill: var(--board-ink); }
.f-corner { font: 700 22px var(--serif); fill: var(--board-ink); }
.f-corner.big { font-size: 54px; fill: #c6352e; letter-spacing: 1px; }
.f-q { font: 700 24px var(--serif); fill: #d8562c; }
.f-q.big { font-size: 42px; }
.f-focus { fill: none; stroke: none; pointer-events: none; }
.cell[role="button"] { cursor: pointer; outline: none; }
.cell[role="button"]:hover .f-bg { fill: #fff9e8; }
.cell.mortgaged .f-bg { fill: #cfc8b4; }
.cell.mortgaged text { opacity: .55; }
.cell.landed .f-focus { stroke: var(--gold); stroke-width: 5; animation: landed 1.8s ease-in-out infinite; }
.token { transition: transform .17s cubic-bezier(.3, .7, .3, 1); filter: drop-shadow(0 4px 5px #0007); pointer-events: none; }
.t-pulse { opacity: 0; stroke-width: 3; }
.token.turn .t-pulse { animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { opacity: .9; r: 25px; } 100% { opacity: 0; r: 40px; } }
@keyframes landed { 50% { stroke-opacity: .35; } }

.board-wrap { position: relative; container-type: inline-size; aspect-ratio: 1; }
.center {
  position: absolute; inset: 16%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 2.200cqw; padding: 3cqw;
  pointer-events: none;
}
.c-mark { font: 600 6.400cqw var(--serif); letter-spacing: .08em; color: var(--gold); }
.c-sub { font-size: 1.900cqw; color: #c9d8cc; letter-spacing: .14em; text-transform: uppercase; }
.c-turn { display: flex; align-items: center; gap: 1.400cqw; font-size: 3cqw; font-weight: 600; }
.c-turn .tk { width: 6cqw; height: 6cqw; }
.c-tx { min-height: 11cqw; display: flex; flex-direction: column; gap: .5cqw; align-items: center; }
.c-tx b { font: 600 5.400cqw var(--serif); }
.c-flow { display: flex; align-items: center; gap: 1cqw; color: #d7e2d9; font-size: 2.400cqw; }
.c-flow .tk { width: 4.200cqw; height: 4.200cqw; font-size: 1.900cqw; }
.c-tx span { font-size: 2.300cqw; color: #d7e2d9; }
.c-tx.pop { animation: pop .5s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }

/* TV */
.tv { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 22px; height: 100dvh; padding: 20px; overflow: hidden; }
.tv-board { height: calc(100dvh - 40px); aspect-ratio: 1; }
.tv-side { display: grid; grid-template-rows: auto auto minmax(0, 1fr) minmax(0, 1.200fr); gap: 14px; min-width: 0; min-height: 0; }
.tv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tv-head h1 { font-size: 22px; }
.tv-head .meta { color: var(--ink-3); font-size: 14px; display: flex; align-items: center; gap: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--plus); display: inline-block; }
.dot.off { background: var(--minus); animation: landed 1s infinite; }
.pcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pcard {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center;
  padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s;
}
.pcard .tk { grid-row: span 2; }
.pcard.turn { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.pcard.broke .p-bal { color: var(--minus); }
.p-name { font-size: 15px; color: var(--ink-2); display: flex; justify-content: space-between; gap: 8px; white-space: nowrap; overflow: hidden; }
.p-name small { color: var(--ink-3); font-size: 13px; }
.p-bal { font: 600 clamp(24px, 2.300vw, 40px)/1.05 var(--serif); }
.delta {
  position: absolute; right: 14px; bottom: 10px; font-weight: 700; font-size: 20px; pointer-events: none;
  animation: float 2.2s ease-out forwards;
}
.delta.plus { color: var(--plus); }
.delta.minus { color: var(--minus); }
@keyframes float { 0% { opacity: 0; transform: translateY(10px); } 12% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0; transform: translateY(-16px); } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; min-height: 0; display: flex; flex-direction: column; }
.panel h2 { font: 600 13px var(--sans); color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.chart { position: relative; flex: 1; min-height: 0; }
.chart svg { display: block; position: absolute; inset: 0 0 26px 0; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-grid.zero { stroke: var(--ink-3); }
.ch-axis, .ch-label { font: 500 12px var(--sans); fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.ch-label { fill: var(--ink-2); }
.ch-line { fill: none; stroke-width: 2; stroke-linejoin: round; }
.ch-end { stroke: var(--surface); stroke-width: 2; }
.ch-cross { stroke: var(--ink-3); stroke-dasharray: 3 3; }
.ch-legend { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12px; color: var(--ink-2); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg i, .ch-tip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ch-tip { position: absolute; top: 4px; background: #000c; border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; font-size: 13px; pointer-events: none; min-width: 170px; }
.th { color: var(--ink-3); margin-bottom: 3px; white-space: nowrap; }
.tr { display: flex; align-items: center; gap: 7px; }
.tr b { margin-left: auto; padding-left: 12px; }

.ledger { list-style: none; margin: 0; padding: 0 8px 0 0; overflow: auto; flex: 1; min-height: 0; scrollbar-width: thin; }
.lr { display: grid; grid-template-columns: 44px auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid #ffffff0d; }
.lr:first-child { border-top: 0; }
.lr.new { animation: rowin .5s ease-out; }
@keyframes rowin { from { opacity: 0; transform: translateX(14px); background: #e6c15a22; } }
.lr-time { color: var(--ink-3); font-size: 13px; }
.lr-who { display: inline-flex; align-items: center; gap: 4px; }
.lr-arrow { color: var(--ink-3); font-size: 13px; }
.lr-text { min-width: 0; display: flex; flex-direction: column; }
.lr-text b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-text small { color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lr-amount { font-weight: 700; white-space: nowrap; }
.lr-amount.plus { color: var(--plus); }
.lr-amount.minus { color: var(--minus); }
.empty { color: var(--ink-3); padding: 12px 0; text-align: center; }

@media (max-aspect-ratio: 1/1) {
  .tv { display: block; height: auto; overflow: visible; padding: 14px; }
  .tv-board { height: auto; width: 100%; margin-bottom: 14px; }
  .tv-side { display: flex; flex-direction: column; }
  .panel.chartp { height: 260px; }
  .panel.ledgerp { max-height: 60vh; }
}

/* Start */
.start { max-width: 1120px; margin: 0 auto; padding: 32px 18px 60px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.04; margin-bottom: 12px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p { color: var(--ink-2); margin: 0 0 22px; max-width: 46ch; }
.hero .board-wrap { max-width: 460px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.card + .card { margin-top: 16px; }
.card h2 { font-size: 22px; margin-bottom: 14px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper b { font: 600 26px var(--serif); min-width: 2ch; text-align: center; }
.stepper div { display: flex; align-items: center; gap: 10px; }
.round { width: 44px; height: 44px; border-radius: 50%; background: var(--raised); border: 1px solid var(--line); font-size: 22px; }
.seat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 10px; }
.tokpick { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 1 / -1; padding: 8px; background: var(--raised); border-radius: 12px; }
.tokpick button:disabled { opacity: .25; }
.tokpick .sel .tk { box-shadow: 0 0 0 2px var(--gold); }
.colpick { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; padding: 2px 8px 8px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; }
.swatch.sel { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--gold); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; background: var(--raised); border-radius: 12px; margin-top: 12px; }
.seg button { min-height: 42px; border-radius: 9px; font-weight: 600; color: var(--ink-2); }
.seg button.on { background: var(--gold); color: #1d1a0d; }
@media (max-width: 860px) {
  .start { grid-template-columns: minmax(0, 1fr); padding-top: 22px; }
  .hero .board-wrap { display: none; }
}

/* Bank */
.bankapp { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100dvh; max-width: 1380px; margin: 0 auto; }
.bank-board { display: none; }
.bank-main { min-width: 0; display: flex; flex-direction: column; min-height: 100dvh; }
.bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; position: sticky; top: 0; z-index: 5; background: #0b1311ee; backdrop-filter: blur(8px); }
.bar h1 { font-size: 18px; }
.bar .spacer { flex: 1; }
.iconbtn { min-height: 38px; padding: 0 12px; border-radius: 9px; background: var(--raised); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; }
.iconbtn:disabled { opacity: .35; }
.strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 14px 10px; scrollbar-width: none; }
.chip { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-align: left; }
.chip.turn { border-color: var(--gold); }
.chip .tk { width: 34px; height: 34px; }
.chip small { display: block; color: var(--ink-3); font-size: 12px; line-height: 1.1; }
.chip b { display: block; font-weight: 700; line-height: 1.15; }
.view { flex: 1; padding: 6px 14px 92px; }
.sec { margin-bottom: 16px; }
.sec > h3, .lbl { font: 600 13px var(--sans); color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 8px; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(5, 1fr); background: #101a17f5; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs button { min-height: 58px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.tabs button.on { color: var(--gold); box-shadow: inset 0 2px 0 var(--gold); }

.turnhead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.turnhead h2 { font-size: 24px; }
.turnhead small { color: var(--ink-3); display: block; }
.dice { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.dice button { min-height: 52px; border-radius: 11px; background: var(--raised); border: 1px solid var(--line); font: 600 20px var(--serif); }
.dice button:active { background: var(--gold); color: #1d1a0d; }
.hint { padding: 14px; border-radius: var(--radius); background: var(--raised); border: 1px solid var(--line); margin-bottom: 14px; }
.hint h4 { margin: 0 0 3px; font: 600 18px var(--serif); }
.hint p { margin: 0 0 11px; color: var(--ink-2); font-size: 14px; }
.hint .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.hint .acts:empty { display: none; }
.twobtn { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }

.who { display: flex; flex-wrap: wrap; gap: 7px; }
.who button { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px 5px 5px; min-height: 44px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); font-weight: 600; }
.who button .tk { width: 32px; height: 32px; }
.who button.on { background: #e6c15a26; border-color: var(--gold); }
.amount { font: 600 34px var(--serif); text-align: center; padding: 8px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-top: 8px; }
.quick button, .notes button { min-height: 42px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.notes { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.notes button { padding: 0 12px; }
.notes button.on { border-color: var(--gold); color: var(--gold); }
.swap { display: flex; justify-content: flex-end; margin: -2px 0 6px; }

.group { margin-bottom: 14px; }
.group-h { height: 6px; border-radius: 3px; margin-bottom: 4px; }
.fieldrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 9px 2px; text-align: left; border-bottom: 1px solid #ffffff0d; min-height: 50px; }
.fieldrow small { color: var(--ink-3); display: block; font-size: 13px; }
.fieldrow .own { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }

.sheet-bg { position: fixed; inset: 0; z-index: 20; background: #0009; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: min(520px, 100%); max-height: 88dvh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
.sheet .bandtop { height: 10px; border-radius: 5px; margin-bottom: 12px; }
.sheet h2 { font-size: 24px; margin-bottom: 3px; }
.sheet p { color: var(--ink-2); margin: 0 0 14px; font-size: 14px; }
.sheet .close { margin-top: 12px; }
.rents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 14px; font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.rents div { display: flex; justify-content: space-between; }
.rents .on { color: var(--gold); font-weight: 700; }
.housebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }

.playerrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #ffffff0d; }
.playerrow.out { opacity: .5; }
.playerrow small { color: var(--ink-3); display: block; }
.linkrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }

.toast { position: fixed; left: 50%; bottom: 76px; transform: translateX(-50%); z-index: 30; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; animation: pop .25s; max-width: calc(100% - 28px); }
.toast.bad { background: var(--minus); }

@media (min-width: 980px) {
  .bankapp { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 22px; padding: 0 20px; }
  .bank-board { display: flex; align-items: center; position: sticky; top: 0; height: 100dvh; padding: 18px 0; }
  .bank-board .board-wrap { width: min(100%, calc(100dvh - 36px)); margin: 0 auto; }
  .view { padding-bottom: 86px; }
  .tabs { position: sticky; bottom: 0; }
  .sheet-bg { align-items: center; }
  .sheet { border-radius: 18px; }
  .toast { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Viele Spieler: Karten rücken enger zusammen */
.pcards[data-n="5"], .pcards[data-n="6"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcards[data-n="7"], .pcards[data-n="8"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pcards.many .pcard { grid-template-columns: minmax(0, 1fr); padding: 10px; }
.pcards.many .tk { grid-row: auto; width: 34px; height: 34px; }
.pcards.many .p-name small { display: none; }
.pcards.many .p-bal { font-size: clamp(20px, 1.700vw, 30px); }
@media (max-aspect-ratio: 1/1) {
  .pcards[data-n] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Der Buchen-Knopf bleibt über der Tab-Leiste sichtbar */
#payGo { position: sticky; bottom: 70px; z-index: 2; box-shadow: 0 6px 18px #0009; }

/* Handy hochkant: Betrag bekommt die volle Kartenbreite */
@media (max-aspect-ratio: 1/1) {
  .pcard { grid-template-columns: minmax(0, 1fr); padding: 10px 12px; }
  .pcard .tk { grid-row: auto; width: 36px; height: 36px; }
  .p-name small { display: none; }
  .p-bal { font-size: 24px; }
}

.lead { font-style: normal; font-size: 12px; font-weight: 700; color: var(--gold); margin-left: 6px; }
.flag { font-size: 12px; color: var(--ink-3); margin-left: 6px; }
.pcard.broke .flag { color: var(--minus); }

/* Würfeln */
.rollhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rollhead h3 { font: 600 13px var(--sans); color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.toggle { min-height: 38px; padding: 0 16px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); font-weight: 600; }
.toggle.on { background: var(--gold); border-color: var(--gold); color: #1d1a0d; }
.dice button:disabled { opacity: .3; }
.why { display: block; color: var(--ink-3); font-size: 13px; }
.sheet .why { margin: 0 0 10px; }
.housebar .why { margin: 2px 0 0; }

/* Versteigerung, Bank */
.sheet.auc { padding-top: 12px; }
.auc .bandtop { height: 7px; margin-bottom: 8px; }
.auc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.auc-head h2 { font-size: 21px; margin: 0; }
.auc-head small { color: var(--ink-3); }
.auc-clock { text-align: right; line-height: 1; white-space: nowrap; }
.auc-clock b { font: 600 36px var(--serif); }
.auc-clock small { margin-left: 3px; }
.auc-bar { height: 6px; border-radius: 3px; background: var(--raised); overflow: hidden; margin: 8px 0; }
.auc-bar i { display: block; height: 100%; background: var(--gold); transition: width .2s linear; }
.auc-bar i.low { background: var(--minus); }
.auc-high { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 34px; margin-bottom: 8px; }
.auc-high span { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }
.auc-high b { font: 600 25px var(--serif); }
.auc-input { font: 600 20px var(--sans); text-align: center; padding: 9px; }
.auc-steps { grid-template-columns: repeat(3, 1fr); margin-bottom: 8px; }
.auc-steps button { font-size: 13px; }
.auc .err { margin: 0 0 6px; }
.seatbids { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.seatbid { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 5px 8px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); text-align: left; min-width: 0; }
.seatbid:active { background: #e6c15a33; }
.seatbid:disabled { opacity: .4; }
.seatbid.lead-seat { border-color: var(--gold); }
.seatbid .tk { width: 34px; height: 34px; }
.seatbid span:last-child { min-width: 0; }
.seatbid b, .seatbid small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seatbid small { color: var(--ink-3); font-size: 12px; }
.auc .close { min-height: 40px; margin-top: 8px; font-size: 14px; }

/* Versteigerung, TV */
.center.in-auction > .c-mark, .center.in-auction > .c-sub, .center.in-auction > .c-turn, .center.in-auction > .c-tx { display: none; }
.c-auc { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 1.400cqw; }
.c-name { font: 600 5cqw var(--serif); color: var(--gold); }
.c-clock { width: 70%; }
.c-clock b { font: 600 8cqw/1 var(--serif); }
.c-clock .auc-bar { height: 1cqw; border-radius: 1cqw; background: #ffffff22; margin: 1cqw 0 0; }
.c-bids { list-style: none; margin: 0; padding: 0; font-size: 2cqw; color: #c9d8cc; min-height: 5cqw; }

/* Regeln */
.rules { display: grid; gap: 10px; }
.rule { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 13px; break-inside: avoid; }
.rule h3 { font-size: 17px; color: var(--gold); margin-bottom: 3px; }
.rule p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.rulesbox { max-width: 760px; margin: 0 auto; padding: 18px 14px 26px; }
.rulesbox h1 { font-size: 30px; }
.rulesbox > p { color: var(--ink-2); margin: 4px 0 14px; }
.rulesbox .btn { position: sticky; bottom: 12px; margin-top: 14px; box-shadow: 0 6px 18px #0009; }
.rulestv { position: fixed; inset: 0; z-index: 10; background: var(--bg); padding: 2.200vh 2vw; overflow: auto; }
.rulestv h1 { font-size: 3.400vh; margin-bottom: .6vh; color: var(--gold); }
.rulestv .rules { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1vh .8vw; }
.rulestv .rule { padding: 1.200vh 1vw; }
.rulestv .rule h3 { font-size: 2.300vh; }
.rulestv .rule p { font-size: 1.800vh; line-height: 1.32; }
@media (max-aspect-ratio: 1/1) {
  .rulestv .rules { grid-template-columns: minmax(0, 1fr); }
  .rulestv .rule h3 { font-size: 17px; }
  .rulestv .rule p { font-size: 14px; }
}

/* Endstand */
.endtitle { font-size: 26px; margin-bottom: 10px; color: var(--gold); }
.rank { list-style: none; margin: 0; padding: 0; width: 100%; }
.rank li { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid #ffffff14; }
.rank b { margin-left: auto; }
.c-auc .rank { width: 80%; font-size: 2.600cqw; text-align: left; }
.c-auc .rank .tk { width: 4cqw; height: 4cqw; }

/* Hausregeln */
.toggle-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px solid #ffffff0d; color: var(--ink); cursor: pointer; }
.toggle-row input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--gold); }
.toggle-row b { display: block; font-weight: 600; }
.toggle-row small { color: var(--ink-3); font-size: 13px; }
.rule.houserule { border-color: #e6c15a66; }
.f-pot { font: 700 14px var(--sans); fill: #c6352e; }

/* Timer, Pleite, Bauen */
.auc-tools { display: flex; gap: 6px; margin-top: 8px; }
.auc-tools .btn { flex: 1; min-height: 40px; padding: 0 6px; font-size: 13px; }
.aucpill { position: fixed; left: 50%; bottom: 70px; transform: translateX(-50%); z-index: 25; padding: 11px 18px; border-radius: 999px; background: var(--gold); color: #1d1a0d; font-weight: 700; box-shadow: 0 6px 18px #0009; white-space: nowrap; }
.hint.debt { border-color: var(--minus); }
.levels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-bottom: 10px; }
.levels button { min-height: 50px; padding: 3px 1px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); line-height: 1.1; min-width: 0; }
.levels button b { display: block; font-size: 16px; }
.levels button small { font-size: 10px; color: var(--ink-3); white-space: nowrap; overflow: hidden; display: block; }
.levels button.on { border-color: var(--gold); opacity: 1; }
.levels button:disabled:not(.on) { opacity: .35; }
.round.sm { width: 34px; height: 34px; font-size: 18px; }
.round:disabled { opacity: .35; }

/* Handelsfenster */
.sheet.deal { width: min(760px, 100%); max-height: 94dvh; padding-top: 12px; }
.sheet.deal h2 { font-size: 21px; margin-bottom: 8px; }
.dealgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; }
.dealside { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 8px; border-radius: 12px; background: var(--raised); }
.dealhead { display: flex; flex-wrap: wrap; gap: 4px; }
.dealhead button { padding: 2px; border-radius: 50%; }
.dealhead button.on { box-shadow: 0 0 0 2px var(--gold); }
.dealside > .why { font-size: 12px; }
.dealside input { padding: 8px; }
.dealcards { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 13px; margin: 6px 0; }
.dealcards span:last-child { display: flex; gap: 5px; }
.dealrows { display: flex; flex-direction: column; gap: 3px; max-height: 34dvh; overflow: auto; }
.dealrow { display: grid; grid-template-columns: 7px minmax(0, 1fr); gap: 7px; align-items: stretch; width: 100%; padding: 5px 7px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); text-align: left; font-size: 13px; }
.dealrow i { border-radius: 3px; }
.dealrow small { display: block; color: var(--ink-3); font-size: 11px; }
.dealrow.on { border-color: var(--gold); background: #e6c15a26; }
.dealrow:disabled { opacity: .45; }

/* Statistik, QR, Replay */
.stats { margin: 12px 0 0; display: grid; gap: 4px; }
.stats div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.stats dt { color: var(--ink-3); }
.stats dd { margin: 0; font-weight: 600; text-align: right; }
.c-auc .stats { width: 80%; margin: .6cqw 0 0; gap: .2cqw; }
.c-auc .stats div { font-size: 1.700cqw; }
.c-auc .rank li { padding: .5cqw 0; }
.tv-qr { position: absolute; right: 15.500%; bottom: 15.500%; width: 9cqw; background: #fff; padding: .3cqw; border-radius: .6cqw; text-align: center; color: #123a2d; }
.tv-qr svg { display: block; width: 100%; height: auto; }
.tv-qr small { display: block; font: 700 1cqw var(--sans); }
.center.in-auction ~ .tv-qr { display: none; }
.replaybar { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 9; width: min(760px, calc(100% - 24px)); display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: #0b1311f2; border: 1px solid var(--line); box-shadow: 0 8px 30px #000a; }
.replaybar input { flex: 1; min-width: 80px; padding: 0; accent-color: var(--gold); }
.replaybar span { flex: 1.4; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-aspect-ratio: 1/1) {
  .tv-qr { display: none; }
  .replaybar { flex-wrap: wrap; }
  .replaybar span { flex-basis: 100%; }
}

/* Regelfenster */
.rulehead { grid-column: 1 / -1; font-size: 20px; color: var(--ink); margin: 6px 0 0; }
.rulestv .rulehead { font-size: 2.800vh; margin: .6vh 0 0; }
.sheet.rules-sheet { display: flex; flex-direction: column; width: min(620px, 100%); height: 88dvh; }
.rules-sheet .seg { margin: 6px 0 10px; }
.rules-scroll { flex: 1; min-height: 0; overflow: auto; margin-bottom: 10px; }

/* Karten */
.cardrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 7px 10px; margin-bottom: 5px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); text-align: left; }
.cardrow:active { background: #e6c15a33; }
.cardrow small { flex: none; max-width: 48%; color: var(--gold); font-size: 13px; text-align: right; }
.c-card { padding: 1cqw 2cqw; border-radius: 1cqw; background: #fff5d6; color: #2a2412; box-shadow: 0 .6cqw 2cqw #0007; max-width: 80%; animation: pop .4s cubic-bezier(.2, 1.3, .4, 1); }
.c-card.chest { background: #d9ecf7; }
.c-card small { display: block; font: 600 1.700cqw var(--sans); color: #7a5a14; }
.c-card.chest small { color: #2f6db3; }
.c-card b { font: 600 2.900cqw var(--serif); }
.center.in-auction > .c-card { display: none; }

.housepick { margin-bottom: 12px; padding: 4px 13px 8px; border: 1px solid #e6c15a66; border-radius: var(--radius); background: var(--surface); }
