/* ==========================================================================
   Wizard – Gestaltung
   Layout-Konzept: Spieltisch von oben. Der Filz ist die Fläche, Papier liegt
   darauf (Spielkarten, Stichblock). Rahmen bekommt nur, was man anfasst oder
   was sich abheben muss. Zahlen stehen in Tabellenziffern, damit Spalten
   ruhig bleiben. Messing markiert genau eins: wer dran ist bzw. was gewinnt.
   ========================================================================== */

@font-face {
  font-family: "Young Serif";
  src: url("/fonts/young-serif-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("/fonts/alegreya-sans-500.woff2") format("woff2");
  font-weight: 400 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("/fonts/alegreya-sans-700.woff2") format("woff2");
  font-weight: 600 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Alegreya Sans";
  src: url("/fonts/alegreya-sans-800.woff2") format("woff2");
  font-weight: 800 900; font-style: normal; font-display: swap;
}

:root {
  /* --- Grundfarben (6) --- */
  --filz: #0f241d;        /* Spieltisch: Grundfläche */
  --elfenbein: #f1ebdc;   /* Kartenkarton und heller Text auf Filz */
  --tinte: #1b201c;       /* Druckfarbe auf Papier */
  --messing: #d9a84f;     /* am Zug, Gewinn, Hauptaktion */
  --zinnober: #ef7a63;    /* Fehler, Minuspunkte, Warnung (auf Filz) */
  --salbei: #8fcf9f;      /* erfüllt, Pluspunkte (auf Filz) */

  /* --- Druckfarben der vier Völker --- */
  --c-b: #2d5bb0;  /* Menschen */
  --c-g: #2e7a4b;  /* Elfen */
  --c-r: #c23b2c;  /* Zwerge */
  --c-y: #e8b220;  /* Riesen */
  --c-z: #1c1d2b;  /* Zauberer: Nachtblau-Schwarz */
  --c-n: #d3ccb8;  /* Narr: ungebleichter Karton */

  /* --- abgeleitet: Filz-Stufen und Linien --- */
  --filz-tief: #0a1b15;
  --filz-hoch: #163329;
  --filz-hoeher: #1d4034;
  --papier: #f1ebdc;

  /* --- semantisch (wird auf Papier umgestellt, siehe .paper) --- */
  --fg: var(--elfenbein);
  --fg-2: #a3b6aa;                       /* Nebentext auf Filz, 7:1 */
  --fg-3: #74897d;                       /* nur Deko/Platzhalter */
  --line: rgba(241, 235, 220, .13);
  --line-strong: rgba(241, 235, 220, .26);
  --surface: var(--filz-hoch);
  --plus: var(--salbei);
  --minus: var(--zinnober);
  --accent: var(--messing);
  --on-accent: #1d1607;

  /* --- Schrift-Rollen --- */
  --f-display: "Young Serif", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --f-text: "Alegreya Sans", "Gill Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --f-num: var(--f-text);   /* Zahlen: gleiche Schrift, aber Tabellenziffern */

  /* --- Maße --- */
  --r-s: 4px;    /* Marken, Mini-Karten */
  --r-m: 8px;    /* Knöpfe, Felder, Kacheln */
  --r-l: 14px;   /* Blätter, Dialoge */
  --gutter: 16px;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left, 0px);
  --sar: env(safe-area-inset-right, 0px);
  --ease-out: cubic-bezier(.2, .8, .25, 1);
  --ease-land: cubic-bezier(.3, 1.35, .5, 1);
  color-scheme: dark;
}

/* Papier: Stichblock, Rundenzettel, Hinweise. Alle Bausteine darin passen sich an. */
.paper {
  --fg: var(--tinte);
  --fg-2: #585e57;
  --fg-3: #8d9087;
  --line: rgba(27, 32, 28, .14);
  --line-strong: rgba(27, 32, 28, .3);
  --surface: #e7e0cd;
  --plus: #1d6b3d;
  --minus: #ad3220;
  --accent: #8a5f12;
  color: var(--fg);
  background: var(--papier);
  color-scheme: light;
}

/* ---------- Grundlagen ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--filz); }
html, body { margin: 0; height: 100%; }
body {
  /* Filz: leichte Lampe über der Tischmitte und feine Faser */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .95 0 0 0 0 .92 0 0 0 0 .86 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23f)'/%3E%3C/svg%3E"),
    radial-gradient(120% 70% at 50% 38%, #143128 0%, var(--filz) 55%, var(--filz-tief) 100%) fixed,
    var(--filz);
  color: var(--fg);
  font-family: var(--f-text);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  font-variant-numeric: lining-nums;
  word-spacing: .06em;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
  overscroll-behavior: none;
  font-synthesis: none;
}
input, textarea, .prose { -webkit-user-select: text; user-select: text; }
button { font: inherit; color: inherit; touch-action: manipulation; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--fg-2); }
.small { font-size: 14px; }
.center { text-align: center; }
.num { font-family: var(--f-num); font-variant-numeric: lining-nums tabular-nums; }
.ico { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.sym { width: 1em; height: 1em; fill: currentColor; flex: none; display: block; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ts { font-weight: 700; }
.t-b { color: #8db0f2; } .t-g { color: #86d19f; } .t-r { color: #f2907f; } .t-y { color: #f2c75a; }
.paper .t-b { color: var(--c-b); } .paper .t-g { color: var(--c-g); } .paper .t-r { color: var(--c-r); } .paper .t-y { color: #8f6a00; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--messing); outline-offset: 2px; border-radius: var(--r-s); }
.paper :focus-visible { outline-color: var(--tinte); }

#app {
  max-width: 540px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(16px + var(--sat)) calc(var(--gutter) + var(--sar)) calc(16px + var(--sab)) calc(var(--gutter) + var(--sal));
}

/* Kleine Überschrift über Gruppen (Kapitälchen-Anmutung) */
.lbl, .eyebrow {
  display: block; font-size: 12.5px; font-weight: 700; color: var(--fg-2);
  letter-spacing: .09em; text-transform: uppercase; line-height: 1.2;
}

/* ==========================================================================
   BAUSTEINE (auch für neue Seiten: Anmelden, Konto, Bestenliste, Profil,
   Impressum, Datenschutz). Kurzanleitung:

   Seitenlayout
     <div class="page">
       <header class="page-head">
         <button class="back" data-act="…" aria-label="Zurück">‹ svg ›</button>
         <h1 class="page-title">Bestenliste</h1>
         <span class="page-action">…optional…</span>
       </header>
       <section class="section"> <h2 class="lbl">Abschnitt</h2> … </section>
     </div>

   Formular
     <form class="form">
       <div class="field [invalid]">
         <label for="x">E-Mail</label>
         <input id="x" class="input" aria-describedby="x-err">
         <p class="field-hint">Freiwillig</p>
         <p class="field-error" id="x-err">So stimmt die Adresse nicht. Bitte prüfen.</p>
       </div>
       <button class="btn primary block">Anmelden</button>
     </form>

   Knöpfe: .btn.primary | .btn.secondary | .btn.ghost | .btn.link ;
           Größen .small / .big ; volle Breite .block ; nur Symbol: .icon-btn

   Tabs (Seitenbereiche):   <div class="tabs" role="tablist">
                              <button role="tab" aria-selected="true">Gesamt</button> …</div>
   Segmentschalter (Option): <div class="seg"><button class="on">Leicht</button>…</div>

   Rangliste:
     <div class="table-scroll"><table class="rank-table">
       <thead><tr><th class="rk">#</th><th>Name</th>
                  <th class="n" aria-sort="descending"><button class="sort">Punkte</button></th></tr></thead>
       <tbody><tr class="me"><td class="rk">1</td><td class="who">Anna</td><td class="n">412</td></tr></tbody>
     </table></div>
     Zahlen: Klasse .n (rechtsbündig, Tabellenziffern). Kopf klebt beim Scrollen.

   Kennzahlen (Profil):
     <dl class="kpis"><div class="kpi"><dt>Partien</dt><dd>48</dd><span class="kpi-sub">davon 12 gewonnen</span></div>…</dl>

   Fließtext (Impressum, Datenschutz): <article class="prose"> h1/h2/h3/p/ul/a </article>

   Papierfläche (hell, für Zahlen): Klasse .paper an einem Container.
   ========================================================================== */

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--r-m); cursor: pointer;
  font-family: var(--f-text); font-weight: 700; font-size: 16px; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: transform .1s ease, background-color .15s, border-color .15s, color .15s, opacity .15s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: var(--messing); color: var(--on-accent); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18); }
.btn.primary:hover:not(:disabled) { background: #e4b763; }
.paper .btn.primary { background: var(--tinte); color: var(--papier); box-shadow: none; }
.paper .btn.primary:hover:not(:disabled) { background: #2d342f; }
.btn.secondary { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn.secondary:hover:not(:disabled) { background: rgba(241, 235, 220, .06); border-color: var(--fg-2); }
.paper .btn.secondary:hover:not(:disabled) { background: rgba(27, 32, 28, .05); }
.btn.ghost { background: transparent; color: var(--fg-2); font-weight: 600; }
.btn.ghost:hover:not(:disabled) { color: var(--fg); }
.btn.link {
  background: none; color: var(--accent); min-height: 44px; padding: 0 4px; font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.btn.big { min-height: 56px; font-size: 17px; }
.btn.block, .btn.big { width: 100%; }
.btn.small { min-height: 40px; padding: 0 12px; font-size: 14.5px; gap: 6px; }
.icon-btn {
  width: 44px; height: 44px; flex: none; border: 0; border-radius: var(--r-m); cursor: pointer;
  background: transparent; color: var(--fg-2); display: grid; place-items: center;
}
.icon-btn:hover { background: rgba(241, 235, 220, .07); color: var(--fg); }
.icon-btn .ico { width: 20px; height: 20px; }

/* ---------- Formular ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 14px; font-weight: 700; color: var(--fg); }
.field-hint { font-size: 13.5px; color: var(--fg-2); }
.field-error { display: none; font-size: 14px; color: var(--minus); font-weight: 600; }
.field.invalid .field-error { display: block; }
.field.invalid .input { border-color: var(--minus); }
.input {
  width: 100%; height: 50px; padding: 0 14px;
  background: var(--filz-tief); color: var(--fg);
  border: 1px solid var(--line-strong); border-radius: var(--r-m);
  font-family: var(--f-text); font-size: 18px; font-weight: 500;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--fg-3); font-weight: 400; }
.input:focus { outline: none; border-color: var(--messing); box-shadow: 0 0 0 3px rgba(217, 168, 79, .22); }
.paper .input { background: #fbf8f0; }

/* ---------- Seitenlayout ---------- */
.page { display: flex; flex-direction: column; gap: 24px; }
.page-head { display: flex; align-items: center; gap: 8px; min-height: 48px; margin-left: -10px; }
.page-head .back { width: 44px; height: 44px; border: 0; background: none; color: var(--fg); border-radius: var(--r-m); display: grid; place-items: center; cursor: pointer; }
.page-head .back:hover { background: rgba(241, 235, 220, .07); }
.page-title { font-family: var(--f-display); font-weight: 400; font-size: 26px; letter-spacing: -.005em; flex: 1; min-width: 0; }
.page-action { flex: none; }
.section { display: flex; flex-direction: column; gap: 10px; }

/* ---------- Tabs & Segmentschalter ---------- */
.tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"] {
  flex: none; border: 0; background: none; cursor: pointer; color: var(--fg-2);
  font-weight: 700; font-size: 15px; padding: 10px 0 11px; min-height: 44px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs [role="tab"][aria-selected="true"] { color: var(--fg); border-bottom-color: var(--messing); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-m); padding: 2px; align-self: flex-start; gap: 2px; }
.seg button {
  border: 0; background: transparent; color: var(--fg-2); padding: 0 12px; min-height: 34px;
  border-radius: 6px; font-size: 14px; font-weight: 700; cursor: pointer;
}
.seat .seg button { min-height: 30px; padding: 0 11px; font-size: 13.5px; }
.seg button.on, .seg button[aria-pressed="true"] { background: var(--elfenbein); color: var(--tinte); }

/* ---------- Ranglisten-Tabelle ---------- */
.table-scroll { overflow: auto; max-height: 70vh; margin: 0 calc(-1 * var(--gutter)); }
.rank-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.rank-table th, .rank-table td { padding: 11px 8px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rank-table th:first-child, .rank-table td:first-child { padding-left: var(--gutter); }
.rank-table th:last-child, .rank-table td:last-child { padding-right: var(--gutter); }
.rank-table thead th {
  position: sticky; top: 0; z-index: 1; background: var(--filz);
  font-size: 12.5px; font-weight: 700; color: var(--fg-2); letter-spacing: .08em; text-transform: uppercase;
}
.rank-table .rk { width: 2.5em; font-family: var(--f-num); font-variant-numeric: lining-nums tabular-nums; color: var(--fg-2); }
.rank-table .who { font-weight: 700; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; }
.rank-table .n { text-align: right; font-family: var(--f-num); font-variant-numeric: lining-nums tabular-nums; }
.rank-table tr.me td { background: rgba(217, 168, 79, .1); }
.rank-table tbody tr:nth-child(-n+3) .rk { color: var(--messing); font-weight: 700; }
.rank-table .sort { border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; padding: 0; }
.rank-table th[aria-sort] .sort::after { content: ""; display: inline-block; margin-left: 4px; border: 4px solid transparent; vertical-align: 1px; }
.rank-table th[aria-sort="descending"] .sort::after { border-top-color: currentColor; border-bottom: 0; }
.rank-table th[aria-sort="ascending"] .sort::after { border-bottom-color: currentColor; border-top: 0; }
.rank-table th[aria-sort] { color: var(--fg); }

/* ---------- Kennzahlen ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.kpi { background: var(--filz); padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi dt { order: 2; font-size: 13.5px; color: var(--fg-2); font-weight: 600; }
.kpi dd { order: 1; margin: 0; font-family: var(--f-num); font-variant-numeric: lining-nums tabular-nums; font-weight: 700; font-size: 28px; line-height: 1.1; }
.kpi-sub { order: 3; font-size: 13px; color: var(--fg-3); }
@media (min-width: 480px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Fließtext ---------- */
.prose { max-width: 66ch; font-size: 16px; line-height: 1.6; }
.prose h1 { font-family: var(--f-display); font-weight: 400; font-size: 28px; margin: 0 0 16px; }
.prose h2 { font-size: 18px; margin: 28px 0 8px; }
.prose h3 { font-size: 16px; margin: 20px 0 6px; }
.prose p, .prose ul, .prose ol { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose address { font-style: normal; }

/* ---------- Marken ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 3px; flex: none;
  font-size: 11.5px; font-weight: 700; line-height: 1; padding: 4px 6px 3px; border-radius: var(--r-s);
  color: var(--fg-2); border: 1px solid var(--line-strong); letter-spacing: .04em;
}
.badge .ico { width: 12px; height: 12px; }
.badge.host { color: var(--messing); border-color: rgba(217, 168, 79, .45); }
.badge.you { color: var(--tinte); background: var(--elfenbein); border-color: var(--elfenbein); }
.badge.off { color: var(--zinnober); border-color: rgba(239, 122, 99, .45); }
.hint { color: var(--fg-2); font-size: 14.5px; }

.center-msg { min-height: 70vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--fg-2); }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--messing); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.waiting { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--fg-2); min-height: 48px; font-weight: 600; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ==========================================================================
   SPIELKARTEN
   Aufbau wie gedruckt: Kartonrand, darin das farbige Druckfeld mit feiner
   Innenlinie. Eckzeichen oben links (bleibt im Fächer sichtbar), großes
   Volkssymbol unten rechts. Größe über --cw (Kartenbreite).
   ========================================================================== */
.card {
  --panel: var(--c-n);
  --ink: var(--elfenbein);
  position: relative; flex: none;
  width: var(--cw); height: calc(var(--cw) * 1.45);
  border-radius: calc(var(--cw) * .085);
  background: #f4efe2;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 4px 10px -3px rgba(0, 0, 0, .55);
  font-family: var(--f-display);
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: calc(var(--cw) * .05);
  border-radius: calc(var(--cw) * .045);
  background: var(--panel);
  box-shadow: inset 0 0 0 calc(var(--cw) * .028) var(--panel), inset 0 0 0 calc(var(--cw) * .04) rgba(241, 235, 220, .5);
}
.card.s-b { --panel: var(--c-b); }
.card.s-g { --panel: var(--c-g); }
.card.s-r { --panel: var(--c-r); }
.card.s-y { --panel: var(--c-y); --ink: #2a1e02; }
.card.s-y::before { box-shadow: inset 0 0 0 calc(var(--cw) * .028) var(--panel), inset 0 0 0 calc(var(--cw) * .04) rgba(42, 30, 2, .35); }
.card .ci {
  position: absolute; z-index: 1; top: calc(var(--cw) * .1); left: calc(var(--cw) * .1);
  width: calc(var(--cw) * .36);
  display: flex; flex-direction: column; align-items: center; gap: calc(var(--cw) * .03); line-height: .9;
}
.card .ci b { font-weight: 400; font-size: calc(var(--cw) * .34); letter-spacing: -.06em; font-variant-numeric: lining-nums; }
.card .ci .sym { width: calc(var(--cw) * .2); height: calc(var(--cw) * .2); }
.card .cc {
  position: absolute; z-index: 1; right: calc(var(--cw) * .11); bottom: calc(var(--cw) * .11);
  width: calc(var(--cw) * .5); height: calc(var(--cw) * .5); opacity: .95;
}
/* Volksname nur auf großen Karten (Einblendung) */
.card .cf {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: calc(var(--cw) * .085);
  text-align: center; font-family: var(--f-text); font-weight: 700; font-size: calc(var(--cw) * .085);
  letter-spacing: .14em; text-transform: uppercase; opacity: .8;
}
.card.big .cc { bottom: calc(var(--cw) * .2); right: 50%; transform: translateX(50%); width: calc(var(--cw) * .44); height: calc(var(--cw) * .44); }

/* Zauberer: Nachtfeld mit gravierten Strahlen, Messing-Z */
.card.wiz { --panel: var(--c-z); --ink: var(--messing); }
.card.wiz::before {
  background:
    repeating-conic-gradient(from -2deg at 50% 118%, rgba(217, 168, 79, .2) 0 1.6deg, transparent 1.6deg 7deg),
    radial-gradient(90% 60% at 50% 100%, #2b2b45 0%, var(--c-z) 70%);
  box-shadow: inset 0 0 0 calc(var(--cw) * .028) var(--c-z), inset 0 0 0 calc(var(--cw) * .04) rgba(217, 168, 79, .7);
}
/* Narr: ungebleichter Karton mit Schraffur, Tinten-N */
.card.fool { --panel: var(--c-n); --ink: var(--tinte); }
.card.fool::before {
  background: repeating-linear-gradient(135deg, rgba(27, 32, 28, .14) 0 1px, transparent 1px calc(var(--cw) * .07)), var(--c-n);
  box-shadow: inset 0 0 0 calc(var(--cw) * .028) var(--c-n), inset 0 0 0 calc(var(--cw) * .04) rgba(27, 32, 28, .35);
}
.card.wiz .ci b, .card.fool .ci b { font-size: calc(var(--cw) * .3); }
.card.wiz .cc, .card.fool .cc {
  width: auto; height: auto; font-size: calc(var(--cw) * .66); line-height: .8;
  right: calc(var(--cw) * .13); bottom: calc(var(--cw) * .14);
}
.card.wiz .cc { text-shadow: 0 0 calc(var(--cw) * .12) rgba(217, 168, 79, .35); }
.card.fool .cc { background: var(--c-n); padding: 0 calc(var(--cw) * .03); }
.card.big.wiz .cc, .card.big.fool .cc { right: 50%; transform: translateX(50%); bottom: calc(var(--cw) * .24); }

/* Leerer Platz im Stich */
.card.empty {
  background: transparent; box-shadow: none;
  border: 1.5px dashed rgba(241, 235, 220, .2);
}
.card.empty::before { display: none; }

/* Rückseite (Kartenzahl der Gegner) */
.cb {
  width: 9px; height: 13px; border-radius: 2px; display: inline-block; flex: none;
  background: repeating-linear-gradient(45deg, var(--messing) 0 1px, var(--c-z) 1px 3px);
  box-shadow: 0 0 0 1.5px #f4efe2;
}

/* Mini-Karte: Trumpf in der Kopfzeile */
.mini {
  --cw: 30px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 30px; height: 42px; flex: none; position: relative;
  border-radius: 4px; background: #f4efe2; color: var(--elfenbein);
  font-family: var(--f-display); font-size: 15px; line-height: 1;
  box-shadow: 0 2px 5px -1px rgba(0, 0, 0, .5);
}
.mini::before { content: ""; position: absolute; inset: 2px; border-radius: 2.5px; background: var(--panel, var(--c-n)); }
.mini > * { position: relative; }
.mini b { font-weight: 400; }
.mini .sym { width: 11px; height: 11px; }
.mini.s-b { --panel: var(--c-b); } .mini.s-g { --panel: var(--c-g); } .mini.s-r { --panel: var(--c-r); }
.mini.s-y { --panel: var(--c-y); color: #2a1e02; }
.mini.wiz { --panel: var(--c-z); color: var(--messing); font-size: 17px; }
.mini.fool { --panel: var(--c-n); color: var(--tinte); font-size: 17px; }
.mini.none { background: transparent; box-shadow: none; border: 1.5px dashed var(--line-strong); color: var(--fg-3); }
.mini.none::before { display: none; }

/* ==========================================================================
   START
   ========================================================================== */
.start {
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  min-height: calc(100dvh - 32px - var(--sat) - var(--sab)); padding: 2vh 0 8vh;
}
.brand { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 12px; }
.wordmark {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(36px, 11.6vw, 54px); line-height: .95; min-width: 0;
  letter-spacing: -.02em; color: var(--elfenbein);
}
.tagline { grid-column: 1 / -1; color: var(--fg-2); font-size: 16px; max-width: 30ch; }
.fan { position: relative; width: 112px; height: 84px; margin-right: 4px; }
.fan .card { --cw: 50px; position: absolute; bottom: 0; transform-origin: 50% 120%; }
.fan .card:nth-child(1) { left: 6px; transform: rotate(-16deg); }
.fan .card:nth-child(2) { left: 30px; transform: rotate(-2deg) translateY(-4px); }
.fan .card:nth-child(3) { left: 54px; transform: rotate(13deg); }

.start-form { display: flex; flex-direction: column; gap: 16px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--fg-2); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.join-row { display: flex; gap: 8px; }
.code-input {
  text-transform: uppercase; letter-spacing: .32em; font-family: var(--f-display); font-weight: 400;
  font-size: 22px; text-align: center; min-width: 0; flex: 1; padding-left: calc(14px + .32em);
}
.code-input::placeholder { letter-spacing: .32em; font-family: var(--f-text); font-size: 17px; font-weight: 600; color: var(--fg-3); }
.join-row .btn { flex: none; }
.invite-box { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.foot { font-size: 14px; color: var(--fg-2); }

/* Spiel-Code als Reihe kleiner Karten */
.code-big { display: flex; gap: 6px; }
.code-big span {
  display: grid; place-items: center; width: 44px; height: 58px;
  border-radius: 5px; background: #f4efe2; color: var(--tinte);
  font-family: var(--f-display); font-size: 30px; line-height: 1;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 4px 10px -3px rgba(0, 0, 0, .55), inset 0 0 0 3px #f4efe2, inset 0 0 0 4px rgba(27, 32, 28, .22);
}

/* Deine Spiele */
.my-games { display: flex; flex-direction: column; gap: 0; }
.my-games .lbl { margin-bottom: 6px; }
.my-game {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.my-game:last-child { border-bottom: 1px solid var(--line); }
.my-game .mg-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.my-game .mg-title { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.my-game .mg-code { font-family: var(--f-display); font-weight: 400; font-size: 19px; letter-spacing: .08em; }
.my-game .mg-sub { color: var(--fg-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-game .tag { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--messing); }
.my-game .btn { flex: none; }

/* ==========================================================================
   LOBBY
   ========================================================================== */
.lobby { display: flex; flex-direction: column; gap: 24px; padding-bottom: 8px; }
.lobby-head { display: flex; flex-direction: column; gap: 12px; }
.lobby-head .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.code-actions { display: flex; gap: 8px; }
.list-head { display: flex; justify-content: space-between; align-items: baseline; }
.list-head .num { color: var(--fg-2); font-size: 14px; }
.seats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.seat {
  display: flex; align-items: center; gap: 12px; min-height: 60px;
  padding: 8px 0; border-top: 1px solid var(--line);
}
.seat:last-child { border-bottom: 1px solid var(--line); }
.seat.is-off { opacity: .6; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--filz-hoeher); color: var(--elfenbein);
  font-family: var(--f-display); font-size: 17px; line-height: 1;
}
.seat.is-bot .avatar { background: transparent; border: 1px solid var(--line-strong); color: var(--fg-2); }
.seat.empty .avatar { background: transparent; border: 1.5px dashed var(--line-strong); }
.seat.empty .seat-main { color: var(--fg-3); }
.seat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.seat-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.seat-name .nm { font-weight: 700; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bot-add { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bot-add .btn { padding: 0 6px; }
.lobby .section > .small { margin-top: 2px; }
.cta {
  position: sticky; bottom: 0; z-index: 5;
  margin: 0 calc(-1 * var(--gutter)) calc(-16px - var(--sab));
  padding: 20px var(--gutter) calc(16px + var(--sab));
  background: linear-gradient(to bottom, rgba(15, 36, 29, 0), var(--filz) 34%);
  display: flex; flex-direction: column; gap: 10px;
}

/* ==========================================================================
   SPIEL
   ========================================================================== */
body[data-screen="game"] { overflow: hidden; }
.screen-game {
  height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 10px;
  padding-top: calc(8px + var(--sat)) !important; padding-bottom: calc(8px + var(--sab)) !important;
  overflow: hidden;
}
.topbar { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.round { display: flex; flex-direction: column; gap: 1px; }
.round b { font-family: var(--f-display); font-weight: 400; font-size: 24px; line-height: 1; }
.round b .muted { font-family: var(--f-num); font-variant-numeric: lining-nums tabular-nums; font-size: 14px; letter-spacing: 0; }
.tl { display: block; font-size: 11px; color: var(--fg-2); text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.trump { display: inline-flex; align-items: center; gap: 8px; line-height: 1.15; margin-right: auto; padding-left: 12px; border-left: 1px solid var(--line); }
.trump .ts { font-weight: 700; font-size: 15px; }
.trump .none { font-weight: 600; font-size: 14.5px; color: var(--fg-2); }
.top-actions { display: flex; align-items: center; gap: 2px; margin-right: -8px; }

/* Gegner */
.opps { display: grid; gap: 6px; }
.opps.cols1 { grid-template-columns: 1fr; }
.opps.cols2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opps.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opp {
  position: relative; min-width: 0; padding: 7px 9px 6px; border-radius: var(--r-m);
  background: rgba(241, 235, 220, .045);
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; gap: 3px; font-size: 13px;
  transition: box-shadow .2s, background-color .2s;
}
.opp.turn { box-shadow: inset 0 0 0 2px var(--messing); background: rgba(217, 168, 79, .08); }
.opp.won { background: rgba(217, 168, 79, .2); box-shadow: inset 0 0 0 1px rgba(217, 168, 79, .5); }
.opp .on { display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 14.5px; min-width: 0; }
.opp .on .ico { width: 14px; height: 14px; color: var(--fg-2); }
.opp .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.opp .os { display: flex; align-items: center; gap: 5px; min-height: 18px; white-space: nowrap; overflow: hidden; }
.lab { font-size: 12px; color: var(--fg-2); font-weight: 600; }
.opp .os b, .bidval { font-family: var(--f-num); font-variant-numeric: lining-nums tabular-nums; font-weight: 700; font-size: 14px; }
.of { color: var(--fg-2); font-weight: 500; }
.opp .ox { display: flex; align-items: center; gap: 0 6px; font-size: 12.5px; color: var(--fg-2); min-height: 16px; }
.opp .pts { margin-left: auto; color: var(--fg); font-family: var(--f-num); font-variant-numeric: lining-nums tabular-nums; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.cards-left { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-num); font-variant-numeric: lining-nums tabular-nums; }
.flag { display: inline-flex; align-items: center; gap: 3px; color: var(--fg-2); font-weight: 600; font-size: 12px; white-space: nowrap; overflow: hidden; }
.flag .ico { width: 13px; height: 13px; }
.flag.off { color: var(--zinnober); }
.dealer {
  flex: none; display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%;
  border: 1px solid var(--messing); color: var(--messing);
  font-family: var(--f-text); font-size: 10px; font-weight: 800; line-height: 1;
}
.ok { color: var(--plus); }
.overbid { color: var(--minus); }

/* Stichmarken: ● geholt, ○ noch offen, rot = zu viel */
.opp .tk-ok { color: var(--salbei); }
.opp .tk-ok .of { color: inherit; }
.opp .tk-over { color: var(--minus); }
.opp .tk-over .of { color: inherit; }

/* Tisch */
.table {
  position: relative; flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 22px; padding: 30px 8px 12px;
  background: radial-gradient(80% 70% at 50% 50%, rgba(241, 235, 220, .05), rgba(0, 0, 0, .12));
  box-shadow: inset 0 0 0 1px rgba(241, 235, 220, .06), inset 0 2px 18px rgba(0, 0, 0, .25);
  overflow: hidden;
}
.table::after {
  content: ""; position: absolute; inset: 7px; border-radius: 16px; pointer-events: none;
  border: 1px dashed rgba(241, 235, 220, .07);
}
.table.bidding { padding-top: 14px; overflow-y: auto; align-items: flex-start; }
.table.bidding > * { margin: auto 0; }
.last-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px; border: 0; cursor: pointer;
  background: rgba(10, 27, 21, .6); color: var(--fg-2); font-size: 12.5px; font-weight: 700;
  padding: 0 10px; border-radius: var(--r-s); min-height: 30px;
}
.last-btn:hover { color: var(--fg); }
.last-btn .ico { width: 14px; height: 14px; }

.trick { --cw: 64px; --vw: min(100vw, 540px); display: flex; justify-content: center; gap: 7px; width: 100%; position: relative; z-index: 1; }
.trick.n6 { --cw: min(56px, calc((var(--vw) - 78px) / 6)); gap: 4px; }
.trick.n5 { --cw: min(60px, calc((var(--vw) - 78px) / 5)); gap: 5px; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 7px; width: calc(var(--cw) + 2px); min-width: 0; flex: none; }
.slot .sn { font-size: 12.5px; color: var(--fg-2); max-width: calc(var(--cw) + 6px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.slot .card { transition: transform .35s var(--ease-out), filter .35s, box-shadow .35s; }
.trick.done .slot:not(.win) .card { filter: brightness(.62) saturate(.7); transform: scale(.94); }
.slot.win .card {
  transform: translateY(-8px);
  box-shadow: 0 0 0 2px var(--messing), 0 10px 22px -4px rgba(0, 0, 0, .6), 0 0 26px rgba(217, 168, 79, .35);
  animation: winlift .5s var(--ease-land);
}
.slot.win .sn { color: var(--messing); font-weight: 800; }
@keyframes winlift { from { transform: translateY(0); box-shadow: 0 0 0 0 var(--messing); } }
.slot.turn .card.empty { border-color: var(--messing); border-style: solid; animation: pulse 1.6s ease-in-out infinite; }
.slot.turn .sn { color: var(--messing); }
@keyframes pulse { 50% { background: rgba(217, 168, 79, .12); } }
.lt { padding: 10px 0 6px; }

/* Karte landet im Stich */
.card.enter { animation: dealTop .42s var(--ease-land) both; }
.card.enter-me { animation: dealMe .42s var(--ease-land) both; }
@keyframes dealTop { from { transform: translateY(-42px) rotate(-8deg) scale(.9); opacity: 0; } 40% { opacity: 1; } }
@keyframes dealMe { from { transform: translateY(90px) rotate(6deg) scale(1.05); opacity: 0; } 35% { opacity: 1; } }

/* Ansage */
.bidpanel { width: 100%; display: flex; flex-direction: column; gap: 12px; align-items: stretch; position: relative; z-index: 1; }
.bp-title { font-family: var(--f-display); font-weight: 400; font-size: 21px; text-align: center; }
.bids { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.bid {
  flex: 0 0 auto; width: 50px; height: 50px; border-radius: var(--r-m); border: 1px solid var(--line-strong); background: rgba(10, 27, 21, .5);
  color: var(--fg); font-family: var(--f-num); font-variant-numeric: lining-nums tabular-nums; font-size: 19px; font-weight: 700; cursor: pointer;
  transition: transform .08s, background-color .15s, color .15s;
}
.bid:hover:not(:disabled) { background: rgba(241, 235, 220, .1); }
.bid:active:not(:disabled) { transform: translateY(1px); }
.bid.no {
  color: var(--fg-3); background: transparent; border-style: dashed; cursor: not-allowed;
  text-decoration: line-through; text-decoration-color: var(--zinnober); text-decoration-thickness: 2px;
}
.bid.picked { background: var(--messing); border-color: var(--messing); color: var(--on-accent); opacity: 1 !important; }
.bid:disabled:not(.no):not(.picked) { opacity: .45; }
.bp-info { text-align: center; font-size: 14.5px; color: var(--fg-2); }
.bp-info b { color: var(--fg); font-family: var(--f-num); font-variant-numeric: lining-nums tabular-nums; }
.bp-hint { text-align: center; font-size: 14px; color: var(--fg); }
.bp-hint b { color: var(--zinnober); font-family: var(--f-num); font-variant-numeric: lining-nums tabular-nums; }
.bidwait { text-align: center; display: grid; gap: 4px; position: relative; z-index: 1; color: var(--fg-2); }
.big-num { font-family: var(--f-display); font-size: 64px; line-height: 1; color: var(--elfenbein); }
.bw-sum { margin-top: 12px; font-size: 14.5px; }
.bw-sum b { color: var(--fg); font-family: var(--f-num); font-variant-numeric: lining-nums tabular-nums; }

/* Status & eigene Leiste */
.status {
  text-align: center; min-height: 24px; font-size: 16px; padding: 0 4px; color: var(--fg-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.status b { color: var(--fg); }
.status .go, .status .tip { color: var(--messing); }
.status .win, .status.done b { color: var(--messing); }
.status.mine { animation: nudge .5s ease; }
@keyframes nudge { 30% { transform: translateY(-2px); } }
.mybar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 12px; border-radius: var(--r-m);
  box-shadow: inset 0 0 0 1px var(--line); background: rgba(241, 235, 220, .045);
  transition: box-shadow .2s, background-color .2s;
}
.mybar.turn { box-shadow: inset 0 0 0 2px var(--messing); background: rgba(217, 168, 79, .08); }
.me-name { font-weight: 700; font-size: 15.5px; display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.me-stats { display: flex; gap: 16px; white-space: nowrap; }
.me-stats > span { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.me-stats .tl { font-size: 10.5px; }
.me-stats b { color: var(--fg); font-family: var(--f-num); font-variant-numeric: lining-nums tabular-nums; font-size: 17px; line-height: 1.1; }
.me-stats b.ok { color: var(--plus); }
.me-stats b.overbid { color: var(--minus); }

/* Hand */
.hand-wrap { position: relative; flex: none; }
.hand { position: relative; width: 100%; --cw: 64px; }
.hand .card { position: absolute; cursor: default; transition: transform .18s var(--ease-out), filter .18s, box-shadow .18s, top .2s, left .2s; }
.hand-wrap.active .card.playable { cursor: pointer; }
.hand .card.dim { filter: brightness(.42) saturate(.45); }
.hand .card.sel {
  z-index: 100 !important; transform: translateY(-18px);
  box-shadow: 0 0 0 2px var(--messing), 0 14px 26px -6px rgba(0, 0, 0, .65);
}
.hand .card.going { transform: translateY(-48px) scale(.92); opacity: 0; transition: transform .22s ease-in, opacity .22s ease-in; }
@media (hover: hover) {
  .hand-wrap.active .card.playable:not(.sel):hover { transform: translateY(-8px); }
}
@keyframes fadein { from { opacity: 0; } }

/* ==========================================================================
   STICHBLOCK (Rundenende und Punkteblock) – Papier
   ========================================================================== */
#sheet.show {
  position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(6, 15, 12, .5); animation: fadein .2s ease;
}
.sheet-card {
  width: 100%; max-width: 540px;
  border-radius: var(--r-l) var(--r-l) 0 0;
  padding: 20px calc(var(--gutter) + var(--sar)) calc(16px + var(--sab)) calc(var(--gutter) + var(--sal));
  display: flex; flex-direction: column; gap: 16px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .45);
  animation: up .32s var(--ease-out);
}
@keyframes up { from { transform: translateY(40%); opacity: 0; } }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sheet-head h2 { font-family: var(--f-display); font-weight: 400; font-size: 26px; margin-top: 4px; }
.sheet-head .eyebrow { color: var(--fg-2); }

.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: lining-nums tabular-nums; }
.tbl th { font-size: 11.5px; color: var(--fg-2); font-weight: 700; letter-spacing: .07em; text-transform: uppercase; text-align: right; padding: 6px 6px; border-bottom: 1.5px solid var(--fg); }
.tbl td { text-align: right; padding: 10px 6px; border-bottom: 1px solid var(--line); font-family: var(--f-num); font-variant-numeric: lining-nums tabular-nums; font-size: 16px; }
.tbl .nm { text-align: left; font-family: var(--f-text); font-weight: 700; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 0; }
.tbl tr.me td { background: rgba(217, 168, 79, .2); }
.tbl .tot { font-weight: 800; padding-right: 0; }
.tbl td.hitc { color: var(--plus); }
.plus { color: var(--plus); font-weight: 700; }
.minus { color: var(--minus); font-weight: 700; }

/* ---------- Overlays (Punkteblock, letzter Stich) ---------- */
#overlay.show { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: calc(12px + var(--sat)) 10px calc(12px + var(--sab)); }
.ov-back { position: absolute; inset: 0; background: rgba(6, 15, 12, .72); animation: fadein .15s ease; }
.ov-card {
  position: relative; width: 100%; max-width: 540px; max-height: 100%;
  display: flex; flex-direction: column; border-radius: var(--r-l);
  background: var(--filz-hoch); box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 0 0 1px var(--line);
  animation: pop .22s var(--ease-out);
}
.ov-card.score { background: var(--papier); }
.ov-card.last { max-width: 440px; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }
.ov-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 8px 4px 18px; }
.ov-head h2 { font-family: var(--f-display); font-weight: 400; font-size: 23px; }
.ov-body { padding: 4px 16px 16px; overflow: auto; min-height: 0; }
.ov-body > p { margin: 10px 0; }
.legend { margin: 0 0 10px !important; color: var(--fg-2); }
.ov-actions { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.leave-game { width: 100%; min-height: 44px; font-size: 15px; }

/* Der Punkteblock: Spalten je Spieler, Zeilen je Runde, wie auf dem Block */
.score-scroll {
  overflow: auto; max-height: 68vh; border-top: 1.5px solid var(--fg); border-bottom: 1.5px solid var(--fg);
}
.score { border-collapse: separate; border-spacing: 0; width: 100%; font-family: var(--f-num); font-variant-numeric: lining-nums tabular-nums; }
.score th, .score td { padding: 6px 2px; text-align: center; border-bottom: 1px solid rgba(45, 91, 176, .2); }
.score td + td { border-left: 1px solid var(--line); }
.score thead th {
  position: sticky; top: 0; z-index: 2; background: var(--papier);
  font-family: var(--f-text); font-size: 13px; font-weight: 700; color: var(--fg);
  max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border-bottom: 1.5px solid var(--fg); padding: 8px 4px;
}
.score thead th.me { text-decoration: underline; text-decoration-color: var(--messing); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.score th.rd { position: sticky; left: 0; z-index: 1; background: var(--papier); color: var(--fg-2); font-size: 13px; font-weight: 500; width: 34px; border-right: 1.5px solid rgba(173, 50, 32, .5); }
.score thead th.rd { z-index: 3; }
.score td { min-width: 50px; }
.score td.me { background: rgba(217, 168, 79, .16); }
.score .sc { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.15; }
.score .bt { display: block; font-size: 11.5px; color: var(--fg-2); }
.score .sc.minus { color: var(--fg); }
.score .sc.minus::after { content: ""; }
.score td .bt b { font-weight: 700; }
.score tr:last-child td, .score tr:last-child th { border-bottom: 0; }

/* ==========================================================================
   SPIELENDE
   ========================================================================== */
.over { display: flex; flex-direction: column; gap: 20px; padding-top: 3vh; }
.over-head { display: flex; flex-direction: column; gap: 8px; }
.over h1 { font-family: var(--f-display); font-weight: 400; font-size: 34px; line-height: 1.08; }
.ranking { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rank {
  display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.rank:first-child { border-top: 1px solid var(--line); }
.rank .rk { width: 28px; text-align: left; font-family: var(--f-num); font-variant-numeric: lining-nums tabular-nums; font-weight: 700; color: var(--fg-2); flex: none; }
.rank .rk .ico { width: 20px; height: 20px; }
.rank .rn { flex: 1; font-weight: 700; font-size: 17px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.rank .rs { font-family: var(--f-num); font-variant-numeric: lining-nums tabular-nums; font-weight: 700; font-size: 20px; }
.rank.winner { padding: 16px 0; }
.rank.winner .rk, .rank.winner .rs { color: var(--messing); }
.rank.winner .rn { font-family: var(--f-display); font-weight: 400; font-size: 24px; }
.rank.winner .rs { font-size: 26px; }
.over-actions { display: flex; flex-direction: column; gap: 10px; }

/* ==========================================================================
   EINBLENDUNG VOR JEDER RUNDE
   ========================================================================== */
#intro { display: none; }
#intro.show {
  display: flex; position: fixed; inset: 0; z-index: 70; align-items: center; justify-content: center;
  padding: calc(16px + var(--sat)) var(--gutter) calc(16px + var(--sab));
  background: rgba(6, 15, 12, .8); animation: fadein .2s ease;
}
.intro-card {
  width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 18px;
  padding: 24px 22px 18px; border-radius: var(--r-l);
  background: var(--filz-hoch); box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 0 0 1px var(--line);
  animation: pop .25s var(--ease-out);
}
.intro-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.intro-round { display: flex; flex-direction: column; gap: 2px; }
.intro-round b { font-family: var(--f-display); font-weight: 400; font-size: 64px; line-height: .9; color: var(--elfenbein); }
.intro-round .of-total { color: var(--fg-2); font-size: 15px; }
.intro-cards { text-align: right; color: var(--fg-2); font-size: 15px; }
.intro-cards b { display: block; font-family: var(--f-num); font-variant-numeric: lining-nums tabular-nums; font-size: 26px; color: var(--fg); line-height: 1.1; }
.intro-trump { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro-trump p { margin: 0; font-size: 16px; line-height: 1.4; }
.intro-trump .tl { margin-bottom: 2px; }
.intro-trump .ts { font-family: var(--f-display); font-weight: 400; font-size: 26px; }
.intro-trump .card.big { --cw: 78px; flex: none; animation: flip .6s .15s var(--ease-out) both; }
@keyframes flip { from { transform: perspective(500px) rotateY(-90deg) translateY(-10px); } }
.intro-first { font-size: 16px; }
.intro-first .go { color: var(--messing); }
.intro-bar { height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.intro-bar i { display: block; height: 100%; background: var(--messing); transform-origin: left; animation: introbar linear forwards; }
@keyframes introbar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ==========================================================================
   PAUSE
   ========================================================================== */
#pause { display: none; }
#pause.show {
  display: flex; position: fixed; inset: 0; z-index: 80; align-items: center; justify-content: center;
  padding: calc(16px + var(--sat)) var(--gutter) calc(16px + var(--sab)); background: rgba(6, 15, 12, .55);
}
#pause.show.full { background: rgba(6, 15, 12, .92); }
.pause-card {
  width: 100%; max-width: 360px; padding: 22px 20px 18px; display: flex; flex-direction: column; gap: 12px;
  border-radius: var(--r-l); background: var(--filz-hoch);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 0 0 1px var(--line);
  animation: pop .2s var(--ease-out);
}
.pause-card h2 { font-family: var(--f-display); font-weight: 400; font-size: 24px; }
.pause-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--messing); color: var(--messing); }
.pause-ico .ico { width: 18px; height: 18px; }
.pause-list { list-style: none; margin: 0; padding: 0; }
.pause-list li { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.pause-list li:first-child { border-top: 1px solid var(--line); }
.pause-list .plus { font-weight: 700; }
.pause-card .row2 { display: flex; gap: 8px; }
.pause-card .row2 .btn { flex: 1; }
.pause-card .count { font-family: var(--f-num); font-variant-numeric: lining-nums tabular-nums; color: var(--messing); font-weight: 700; }
.pause-meter { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.pause-meter i { display: block; height: 100%; background: var(--messing); }

/* ---------- Toast & Verbindung ---------- */
#toast {
  position: fixed; left: 50%; top: calc(14px + var(--sat)); z-index: 100;
  transform: translate(-50%, -16px); opacity: 0; pointer-events: none;
  max-width: min(calc(100vw - 32px), 440px); width: max-content;
  background: var(--papier); color: var(--tinte); font-weight: 600; font-size: 15px;
  padding: 11px 16px; border-radius: var(--r-m); box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  transition: transform .22s var(--ease-out), opacity .2s ease;
}
#toast.show { transform: translate(-50%, 0); opacity: 1; }
#conn {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: #7d2a1c; color: #ffe9e2; text-align: center; font-size: 14.5px; font-weight: 700;
  padding: 10px 16px calc(10px + var(--sab));
}
#conn[hidden] { display: none; }

/* ==========================================================================
   SEITEN (Konto, Bestenliste, Profil, Impressum, Datenschutz)
   Gleiche Bausteine wie oben; hier nur, was die Seiten zusätzlich brauchen.
   ========================================================================== */
.page-title:focus { outline: none; }
.lead { color: var(--fg-2); font-size: 16px; margin-top: -10px; max-width: 46ch; }
.inline-link { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.nowrap { white-space: nowrap; }
.break { overflow-wrap: anywhere; }
.na { color: var(--fg-3); }
.page-wait { min-height: 40vh; }
@media (min-width: 800px) {
  #app.screen-page:has(.page-wide) { max-width: 900px; }
  .page-wide .table-scroll { margin: 0; border-radius: var(--r-m); box-shadow: inset 0 0 0 1px var(--line); }
}

/* Startseite: schmale Leiste oben, Fußzeile unten */
#app.screen-start { display: flex; flex-direction: column; }
.screen-start .start { flex: 1; min-height: 0; }
.topnav { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin: -6px -8px 0; }
.topnav-acc { display: flex; align-items: center; }
.topnav-link {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 8px; border-radius: var(--r-m);
  color: var(--fg-2); font-size: 15px; font-weight: 700; text-decoration: none; min-width: 0;
}
.topnav-link:hover { color: var(--fg); }
.topnav-link .ico { width: 17px; height: 17px; }
.topnav-link.strong { color: var(--messing); }
.me-link { color: var(--fg); max-width: 60%; }
.me-link .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-link .ico { color: var(--fg-2); }
.topnav-ph { width: 1px; }
.site-foot { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 18px 0 2px; font-size: 14px; color: var(--fg-3); }
.site-foot .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--fg-3); }
.site-foot a { color: var(--fg-2); text-decoration: none; padding: 6px 2px; }
.site-foot a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.playing-as { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.playing-as p { font-size: 15.5px; color: var(--fg-2); }
.playing-as b { color: var(--fg); }

/* Hinweisleiste (z. B. E-Mail nicht bestätigt) */
.notice {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px 6px; border-radius: var(--r-m);
  background: rgba(217, 168, 79, .07); box-shadow: inset 0 0 0 1px rgba(217, 168, 79, .32);
  font-size: 15px;
}
.notice-ico { color: var(--messing); padding-top: 1px; }
.notice-body { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.notice-body .btn.link { margin-left: -4px; min-height: 40px; }

/* Formular-Ergänzungen */
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 52px; }
.pw-toggle {
  position: absolute; top: 3px; right: 3px; width: 44px; height: 44px; border: 0; border-radius: 6px;
  background: transparent; color: var(--fg-2); display: grid; place-items: center; cursor: pointer;
}
.pw-toggle:hover { color: var(--fg); }
.pw-toggle .ico { width: 20px; height: 20px; }
.form-error {
  display: flex; gap: 10px; align-items: flex-start; padding: 11px 13px; border-radius: var(--r-m);
  background: rgba(239, 122, 99, .1); box-shadow: inset 0 0 0 1px rgba(239, 122, 99, .42);
  font-size: 15px; font-weight: 600; color: var(--fg);
}
.form-error[hidden] { display: none; }
.form-error .ico { color: var(--zinnober); margin-top: 1px; }
.form-link { align-self: center; }
.form .hint { font-size: 14px; }
.alt { display: flex; flex-direction: column; gap: 14px; }
.btn.loading:not(.link) { position: relative; }
.btn.loading:disabled { opacity: 1; cursor: progress; }
.btn.loading .btn-label { visibility: hidden; }
.btn.loading:not(.link)::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
.btn.link.loading { opacity: .6; }
.btn.danger { background: var(--zinnober); color: #2a0d07; }
.btn.danger:hover:not(:disabled) { background: #f48d78; }
.btn.danger-outline { background: transparent; color: var(--zinnober); border-color: rgba(239, 122, 99, .45); align-self: flex-start; }
.btn.danger-outline:hover:not(:disabled) { background: rgba(239, 122, 99, .08); }
.row-actions { display: flex; gap: 8px; }
.row-actions .btn { flex: 1; }

/* Erledigt / Fehler als eigene Ansicht */
.page-done { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 8px; }
.page-done-ico {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--messing); color: var(--messing);
}
.page-done-ico .ico { width: 22px; height: 22px; }
.page-done-title { font-family: var(--f-display); font-weight: 400; font-size: 25px; line-height: 1.15; }
.page-done .muted { font-size: 16px; max-width: 44ch; }
.page-done .muted b { color: var(--fg); }
.page-done-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 8px; }

/* Konto */
.avatar.big { width: 52px; height: 52px; font-size: 24px; }
.acc-head, .profile-head { display: flex; align-items: center; gap: 14px; margin-top: -8px; }
.acc-id { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.acc-name { font-family: var(--f-display); font-size: 22px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.facts { margin: 0; display: flex; flex-direction: column; }
.facts > div { display: flex; flex-direction: column; gap: 2px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts > div:first-child { border-top: 1px solid var(--line); }
.facts dt { font-size: 13.5px; color: var(--fg-2); font-weight: 600; }
.facts dd { margin: 0; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.badge.ok-badge { color: var(--salbei); border-color: rgba(143, 207, 159, .45); }
.acc-list { gap: 0; margin-top: -24px; }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-row {
  width: 100%; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 2px;
  border: 0; background: none; color: var(--fg); font-weight: 700; font-size: 16px; text-align: left; cursor: pointer;
}
.acc-row > .ico:first-child { color: var(--fg-2); }
.acc-row span { flex: 1; }
.acc-row > .ico:last-child { color: var(--fg-3); transition: transform .2s var(--ease-out); }
.acc-item.is-open .acc-row > .ico:last-child { transform: rotate(90deg); }
.acc-panel { padding: 4px 0 20px; }
.danger-zone { padding-top: 6px; }
.danger-box {
  padding: 16px; border-radius: var(--r-m);
  background: rgba(239, 122, 99, .06); box-shadow: inset 0 0 0 1px rgba(239, 122, 99, .4);
}
.danger-box > p { font-size: 15px; color: var(--fg-2); }
.danger-box > p b { color: var(--fg); }

/* Bestenliste */
.lb-controls { display: flex; flex-direction: column; gap: 14px; margin-top: -6px; }
.lb-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; min-height: 40px; }
.sort-pick { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.sort-pick .lbl { white-space: nowrap; }
.select-wrap { position: relative; display: inline-block; }
.select-wrap::after {
  content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; margin-top: -6px; pointer-events: none;
  border-right: 2px solid var(--fg-2); border-bottom: 2px solid var(--fg-2); transform: rotate(45deg);
}
.input.select {
  appearance: none; -webkit-appearance: none; height: 40px; width: auto; min-width: 150px;
  padding: 0 38px 0 12px; font-size: 16px; font-weight: 700; cursor: pointer;
}
.lb-body { display: flex; flex-direction: column; gap: 10px; }
.lb-scroll { transition: opacity .15s; background: var(--filz); }
.lb-scroll.is-loading { opacity: .5; }
.lb-table .rk { width: 52px; min-width: 52px; max-width: 52px; }
.lb-table thead .rk, .lb-table thead .who { z-index: 3; }
.lb-table .rk, .lb-table .who { position: sticky; background: var(--filz); z-index: 2; }
.lb-table .rk { left: 0; }
.lb-table .who { left: 52px; box-shadow: inset -1px 0 0 var(--line); padding-right: 14px; }
.lb-table tbody .who { max-width: 44vw; }
.lb-table tr.me td { background: #233122; }
.lb-table .who a { color: inherit; text-decoration: none; }
.lb-table .who a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lb-table .who .badge { margin-left: 6px; vertical-align: 2px; }
.lb-table td.n { font-weight: 500; }
.lb-table td.sorted { font-weight: 700; }
.lb-table th.n { padding-left: 14px; }
.lb-table .sort { min-height: 32px; }
.table-note { font-size: 13.5px; }
.table-note:empty { display: none; }

/* Leerer Zustand: drei leere Kartenplätze */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 8px 8px; }
.empty .muted { max-width: 36ch; }
.empty-title { font-family: var(--f-display); font-size: 22px; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.empty-cards { position: relative; width: 96px; height: 66px; margin-bottom: 8px; }
.empty-cards span {
  position: absolute; bottom: 0; left: 30px; width: 36px; height: 52px; border-radius: 4px;
  border: 1.5px dashed rgba(241, 235, 220, .26); transform-origin: 50% 120%;
}
.empty-cards span:nth-child(1) { transform: rotate(-15deg); }
.empty-cards span:nth-child(2) { transform: translateY(-3px); border-color: rgba(217, 168, 79, .55); }
.empty-cards span:nth-child(3) { transform: rotate(15deg); }
.empty-line { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 15.5px; }

/* Profil */
.profile-head .acc-id { flex-direction: row; align-items: center; gap: 10px; }
.kpi.wide { grid-column: 1 / -1; }
.section > .seg { margin-top: 2px; }
.game-list { list-style: none; margin: 0; padding: 0; }
.game-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.game-row:first-child { border-top: 1px solid var(--line); }
.gr-place { width: 26px; flex: none; font-family: var(--f-num); font-variant-numeric: lining-nums tabular-nums; font-weight: 700; color: var(--fg-2); }
.gr-place .ico { width: 20px; height: 20px; color: var(--messing); }
.gr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.gr-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; font-weight: 700; }
.gr-title .of { font-weight: 500; color: var(--fg-2); font-size: 14.5px; }
.gr-board { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); margin-left: 4px; }
.gr-sub { color: var(--fg-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-pts { font-family: var(--f-num); font-variant-numeric: lining-nums tabular-nums; font-weight: 700; font-size: 19px; }
.game-row.win .gr-pts, .game-row.win .gr-title { color: var(--messing); }

/* Fließtext-Ergänzungen */
.prose-lead { font-size: 17px; color: var(--fg); }
.prose .pending { color: var(--fg-2); font-style: italic; }
.prose code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em; background: rgba(241, 235, 220, .08); padding: 1px 5px; border-radius: var(--r-s); }
.prose h2:first-child { margin-top: 0; }

/* Spielende: Hinweis auf Konto / Statistik */
.over-note { text-align: center; font-size: 14.5px; color: var(--fg-2); margin-top: -4px; }

/* ---------- Anpassungen ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .intro-bar i { animation-duration: 3.3s !important; }
}
@media (min-width: 700px) {
  .start, .lobby, .over { padding-top: 7vh; }
  .wordmark { font-size: 64px; }
}
@media (max-height: 700px) {
  .screen-game { gap: 7px; }
  .opp { padding: 5px 8px 4px; gap: 2px; }
  .table { padding-top: 26px; }
  .mybar { padding: 6px 12px; }
  .bids { gap: 4px; }
  .bid { width: 40px; height: 42px; font-size: 17px; }
  .bidpanel { gap: 10px; }
  .bp-title { font-size: 19px; }
}
@media (max-width: 380px) {
  .mybar { padding-left: 10px; padding-right: 10px; }
  .me-stats { gap: 12px; }
  .me-stats b { font-size: 16px; }
  .fan { width: 96px; }
  .fan .card { --cw: 44px; }
  .fan .card:nth-child(2) { left: 26px; }
  .fan .card:nth-child(3) { left: 46px; }
  .code-big span { width: 40px; height: 54px; font-size: 27px; }
}
@media (max-width: 400px) {
  .topbar { gap: 8px; }
  .trump { padding-left: 8px; }
  .top-actions .btn-t { display: none; }
  .top-actions .btn.small { padding: 0 10px; }
}

/* Bereits offenes Fenster wird aktualisiert: keine neue Einblend-Animation */
.still, .still > * { animation: none !important; }

/* iPhone-Safari im Browser-Tab: Platz für die schwebende Leiste unten */
.ios-tab { --bar: 64px; }
.ios-tab .sheet-card { padding-bottom: calc(16px + var(--sab) + var(--bar)); max-height: 92dvh; }

/* Rundenende-Tabelle: gleicher Innenabstand links/rechts, Zahlen bündig unter den Überschriften */
.tbl th, .tbl td { padding-left: 8px; padding-right: 8px; }
.tbl th:first-child, .tbl td:first-child { padding-left: 12px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 12px; }

/* Reihenfolge im Stich */
.card.empty { position: relative; }
.card.empty .ord {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-display); font-size: calc(var(--cw) * .42); color: var(--fg-2); opacity: .45;
}
.slot.turn .card.empty .ord { color: var(--messing); opacity: 1; }
.status .then { color: var(--fg-2); font-weight: 500; }

/* Übersicht der Ansagen */
.bids-title { font-size: 44px !important; }
.bids-list { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.bids-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 700; }
.bids-list li b { font-family: var(--f-display); font-weight: 400; font-size: 30px; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.bids-list li.me span { color: var(--messing); }
.intro-cards .of { color: var(--fg-2); font-size: 18px; }

/* Ansage-Reihenfolge (gleiche Optik wie die Plätze im Stich) */
.bo { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 62px)); justify-content: center; gap: 6px; width: 100%; }
.bo-slot { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.bo-box {
  width: 100%; height: 50px; display: grid; place-items: center; border-radius: 8px;
  border: 1.5px dashed var(--line); color: var(--fg-2);
}
.bo-box b { font-family: var(--f-display); font-weight: 400; font-size: 28px; line-height: 1; color: var(--elfenbein); }
.bo-ord { font-family: var(--f-display); font-size: 22px; opacity: .45; }
.bo-done .bo-box { border-style: solid; border-color: rgba(240, 233, 216, .35); background: rgba(240, 233, 216, .06); }
.bo-cur .bo-box { border-style: solid; border-color: var(--messing); animation: pulse 1.6s ease-in-out infinite; }
.bo-cur .bo-ord { color: var(--messing); opacity: 1; }
.bo-name { font-size: 12.5px; font-weight: 700; color: var(--fg); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-cur .bo-name { color: var(--messing); }
.bo-tag { min-height: 13px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--messing); white-space: nowrap; }
.bidwait { gap: 14px; width: 100%; }
.bidwait .bw-sum b { color: var(--fg); }

/* Ansage-Reihe: immer gleich groß, nur auf sehr kleinen Bildschirmen kompakter */
@media (max-height: 700px) { .bo-box { height: 38px; } .bo-box b { font-size: 21px; } .bo-tag { min-height: 11px; font-size: 9.5px; } }

/* Ansage-Phase: Reihe fest oben verankert, damit nichts springt */
.table.bidding > .bid-stage {
  margin: 0; align-self: flex-start; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding-top: clamp(4px, 5vh, 48px);
}

/* Kleine Bildschirme: Ansage-Phase enger, damit Reihe und Knöpfe ohne Scrollen passen */
@media (max-height: 700px) {
  .table.bidding { padding-top: 8px; padding-bottom: 8px; }
  .table.bidding > .bid-stage { padding-top: 0; gap: 10px; }
  .bidpanel { gap: 8px; }
  .bp-title { font-size: 18px; }
  .bid { width: 44px; height: 44px; flex-basis: 44px; }
  .bp-info, .bp-hint { font-size: 13.5px; }
}
