/* =========================================================================
   Hexheim – Design
   Farben & Maße als Variablen: hier zentral ändern, wirkt überall.
   ========================================================================= */

:root {
  /* Ränder für Notch / Kamera-Loch / Home-Leiste (Handy) – überall über diese Variablen */
  --sa-t: env(safe-area-inset-top, 0px); --sa-r: env(safe-area-inset-right, 0px);
  --sa-b: env(safe-area-inset-bottom, 0px); --sa-l: env(safe-area-inset-left, 0px);
  --bg-deep: #071a2b;
  --bg: #0c2a42;
  --panel: rgba(12, 38, 60, 0.82);
  --panel-solid: #0f304b;
  --panel-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f6f0e2;
  --muted: #9fb6c8;
  --gold: #f4c55a;
  --gold-2: #e2a23b;
  --gold-dark: #a96d1c;
  --danger: #e2583f;
  --ok: #57c472;
  --sea: #1d6a92;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --font-display: 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--bg-deep); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(47, 143, 184, 0.35), transparent 60%),
    radial-gradient(900px 600px at 110% 20%, rgba(244, 197, 90, 0.10), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16zM28 64l28 16v32M28 64 0 80v32' fill='none' stroke='%23ffffff' stroke-opacity='.035' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: 0.01em; }

/* ---------- Kopfzeile ---------- */

header {
  position: sticky; top: 0; z-index: 8;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 18px;
  background: rgba(7, 26, 43, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
h1 { margin: 0; font-size: 1.35rem; display: flex; align-items: center; gap: 10px; }
h1 a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.logo { width: 34px; height: 34px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)); }
.brand { background: linear-gradient(180deg, #fff6dc, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Bedienelemente ---------- */

select, button, input, a.button {
  font: inherit;
  font-size: 0.92rem;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04));
  color: var(--text);
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
input, select { background: rgba(0, 0, 0, 0.25); }
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244, 197, 90, 0.25); }
select option { background: var(--panel-solid); color: var(--text); }
button, a.button { cursor: pointer; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
button:hover:not(:disabled), a.button:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07)); border-color: rgba(255, 255, 255, 0.28); }
button:active:not(:disabled), a.button:active { transform: translateY(1px); }
button:disabled { opacity: 0.38; cursor: not-allowed; }

button.primary, a.button.primary {
  background: linear-gradient(180deg, #ffd978 0%, var(--gold-2) 100%);
  border-color: #ffe09a;
  color: #2a1a04;
  box-shadow: 0 4px 14px rgba(226, 162, 59, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
button.primary:hover:not(:disabled), a.button.primary:hover { background: linear-gradient(180deg, #ffe39a 0%, #f0b24c 100%); }
button.ghost { background: transparent; border-color: transparent; box-shadow: none; }
button.ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }
button.active { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(244, 197, 90, 0.55); background: rgba(244, 197, 90, 0.16); }
button.mini { padding: 0 10px; line-height: 1.3; font-size: 0.9rem; }

.hint { margin: 0; font-size: 0.82rem; color: var(--muted); }
.swatch { width: 14px; height: 14px; border-radius: 4px; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35); }

/* ---------- Karten / Panels ---------- */

.card, .panel, .sidebar section {
  background: var(--panel);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card { padding: 20px; width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 12px; }
.card h2 { margin: 0; font-size: 1.25rem; }
.card h3 { margin: 6px 0 0; font-size: 0.95rem; color: var(--muted); }
.card label { display: flex; flex-direction: column; gap: 5px; font-size: 0.9rem; color: var(--muted); }
.card input, .card select { width: 100%; padding: 9px 12px; color: var(--text); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 30;
  background: linear-gradient(180deg, #fffaf0, #efe1c0); color: #2b2418;
  padding: 11px 18px; border-radius: 12px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); max-width: calc(100% - 32px); margin: 0;
  animation: toast-in 0.25s ease-out;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- Startseite ---------- */

.hero { text-align: center; padding: 48px 16px 8px; }
.hero-logo { width: 120px; height: 120px; filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.hero h2 {
  margin: 12px 0 4px; font-size: clamp(2.2rem, 7vw, 3.6rem); line-height: 1;
  background: linear-gradient(180deg, #fff8e2 20%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(120, 70, 10, 0.55));
}
.hero p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.landing { display: flex; flex-wrap: wrap; gap: 18px; padding: 28px 16px 40px; justify-content: center; align-items: stretch; }
.landing-error { text-align: center; color: #ffb09e; }
.invite { display: flex; gap: 6px; }
.invite input { flex: 1; min-width: 0; }

/* ---------- Spielansicht ---------- */

/* Links: Spieler + Chat, rechts: Brett, unten: Leiste. Alles passt ins Fenster. */
.game-layout {
  display: grid; gap: 14px; padding: 12px 16px 0;
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-areas: "players main" "bar bar";
  align-items: start;
}
.game-main #board { height: calc(100vh - 335px); min-height: 320px; max-width: none; }
.players-col { max-height: calc(100vh - 265px); overflow-y: auto; }
.players-col .chat-box .chat-list { max-height: 170px; min-height: 50px; }
.players-col .chat-box .log { max-height: 220px; }
.players-col .chat-box .tabs button { font-size: 0.8rem; padding: 5px 3px; }
.game-main { grid-area: main; min-width: 0; padding: 0; }
.game-layout .sidebar { grid-area: side; }
.players-col { grid-area: players; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.players-col section {
  background: var(--panel); backdrop-filter: blur(8px); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.players-col h2 { margin: 0; font-size: 1.1rem; display: flex; justify-content: space-between; align-items: baseline; }
@media (max-width: 1000px) {
  .game-layout { grid-template-columns: 250px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .game-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "bar" "players"; }
  .game-main #board { height: auto; min-height: 0; }
  .players-col { max-height: none; overflow: visible; }
}

#board {
  display: block; width: 100%; max-width: 900px; height: auto; margin: 0 auto;
  border-radius: 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

#turn-banner {
  background: var(--panel); border: 1px solid var(--border); border-left: 8px solid #888;
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  box-shadow: var(--shadow);
}
#turn-banner.mine {
  background: linear-gradient(90deg, rgba(87, 196, 114, 0.28), rgba(12, 38, 60, 0.85) 70%);
  animation: banner-glow 2.4s ease-in-out infinite;
}
@keyframes banner-glow { 50% { box-shadow: 0 0 0 2px rgba(87, 196, 114, 0.35), var(--shadow); } }

/* Seitenleiste */
.sidebar { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.sidebar section { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.sidebar h2 { margin: 0; font-size: 1.05rem; }
.sidebar h3 { margin: 4px 0 0; font-size: 0.88rem; color: var(--muted); }
.sidebar label { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; color: var(--muted); }
.sidebar label.check { flex-direction: row; align-items: center; gap: 6px; color: var(--text); }
.sidebar input:not([type=checkbox]):not([type=range]):not([type=color]) { width: 100%; padding: 6px 9px; }
.sidebar .row { display: flex; gap: 8px; }
.sidebar .row > label { flex: 1; min-width: 0; }

/* Spieler-Karten */
.player-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.player-card {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border); border-left: 6px solid #888;
  border-radius: 12px; padding: 9px 12px; transition: box-shadow 0.2s ease;
}
.player-card.current { box-shadow: 0 0 0 2px var(--gold), 0 6px 18px rgba(244, 197, 90, 0.2); }
.player-card.offline { opacity: 0.55; }
.pc-head { display: flex; align-items: center; gap: 8px; }
.pc-head .pname { font-weight: 800; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-head .vp, .winner-list .vp {
  font-family: var(--font-display); font-weight: 800;
  background: linear-gradient(180deg, #fff6dc, #f0d79a); color: #3a2706;
  border-radius: 8px; padding: 1px 9px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

/* Verlauf & Chat */
.tabs { display: flex; gap: 4px; background: rgba(0, 0, 0, 0.25); border-radius: 10px; padding: 3px; }
.tabs button { flex: 1; padding: 5px 8px; border: none; background: transparent; box-shadow: none; position: relative; }
.tabs button.on { background: rgba(255, 255, 255, 0.12); }
.badge {
  position: absolute; top: -4px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--danger); color: #fff; font-size: 0.72rem; line-height: 18px; font-weight: 800;
}
.log { margin: 0; padding-left: 20px; font-size: 0.85rem; max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; color: #dfe7ee; }
.log li::marker { color: var(--muted); }
.chat { display: flex; flex-direction: column; gap: 8px; }
.chat-list { list-style: none; margin: 0; padding: 0; max-height: 260px; min-height: 80px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.chat-msg { background: var(--panel-2); border-radius: 10px; padding: 6px 9px; font-size: 0.88rem; border-left: 4px solid #888; word-wrap: break-word; }
.chat-msg.mine { background: rgba(244, 197, 90, 0.10); }
.chat-msg .who { font-weight: 800; margin-right: 6px; }
.chat-msg .time { float: right; font-size: 0.72rem; color: var(--muted); margin-left: 6px; }
.chat-empty { color: var(--muted); font-size: 0.85rem; text-align: center; padding: 14px 0; }
.chat-form { display: flex; gap: 6px; }
.chat-form input { flex: 1; min-width: 0; }

/* Leiste unten */
.bottom-bar {
  grid-area: bar; position: sticky; bottom: 0; z-index: 5;
  background: rgba(7, 26, 43, 0.9); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-bottom: none;
  border-radius: 20px 20px 0 0; padding: 12px 14px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45);
  display: flex; flex-direction: column; gap: 12px;
}
.panels { display: flex; flex-wrap: wrap; gap: 10px; }
.panels:empty, .panels:not(:has(> :not([hidden]))) { display: none; }
.panel { padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; flex: 1 1 320px; animation: panel-in 0.2s ease-out; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
.panel h2 { margin: 0; font-size: 1.05rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; }
#robber-panel { border-color: rgba(226, 88, 63, 0.7); box-shadow: 0 0 0 1px rgba(226, 88, 63, 0.4), var(--shadow); }
#robber-body { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
button.victim { border-left: 10px solid var(--swatch, #1d4866); }

.hand-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; min-height: 142px; padding: 4px 4px 2px; }
.hand, .dev-hand { display: flex; gap: 7px; flex-wrap: wrap; }

/* Rohstoffkarten */
/* Illustrierte Karte: Bild (cardart.js) als Hintergrund, Name im Band unten */
.res-card {
  --w: 66px; --stack: 0 0 0 transparent;
  position: relative; flex: none;
  width: var(--w); height: calc(var(--w) * 1.4); padding: 0; border: none; border-radius: calc(var(--w) * 0.11);
  background: var(--art) center / 100% 100% no-repeat; color: #2a2014;
  box-shadow: var(--stack), 0 5px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s cubic-bezier(.3, 1.4, .5, 1), box-shadow 0.18s, filter 0.18s;
  overflow: visible; cursor: pointer;
}
/* Allgemeiner Button-Hover darf das Kartenbild nicht ersetzen */
button.res-card, button.res-card:hover:not(:disabled), button.res-card:focus { background: var(--art) center / 100% 100% no-repeat; border: none; }
.res-card.stack2 { --stack: 4px -3px 0 -1px rgba(255, 255, 255, 0.5), 4px -3px 0 0 rgba(0, 0, 0, 0.25); }
.res-card.stack3 { --stack: 4px -3px 0 -1px rgba(255, 255, 255, 0.55), 4px -3px 0 0 rgba(0, 0, 0, 0.25), 8px -6px 0 -2px rgba(255, 255, 255, 0.35), 8px -6px 0 -1px rgba(0, 0, 0, 0.2); }
.res-card .label {
  position: absolute; left: 0; right: 0; bottom: calc(var(--w) * 0.082); height: calc(var(--w) * 0.21);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: calc(var(--w) * 0.135); letter-spacing: 0.02em;
}
.res-card .shine { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.res-card .shine::after {
  content: ''; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent); transform: skewX(-15deg);
}
.res-card:hover { transform: translateY(-12px) scale(1.08) rotate(-2deg); z-index: 3;
  box-shadow: var(--stack), 0 16px 26px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 22px rgba(255, 230, 150, 0.55); }
.res-card:hover .shine::after { animation: card-shine 0.7s ease-out; }
@keyframes card-shine { to { left: 130%; } }
.res-card:not([tabindex="-1"]):active { transform: translateY(-6px) scale(1.02); }
.res-card[tabindex="-1"] { cursor: default; }
.res-card.dim { opacity: 0.35; filter: saturate(0.4); }
.res-card.small { --w: 54px; }
.res-card.small .label { display: none; }
.res-card.small:hover { transform: translateY(-5px) scale(1.05); }
#hand .res-card { --w: 92px; }
#hand { gap: 12px; padding-top: 6px; }

/* Entwicklungskarten */
.dev-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 70px; height: 84px; padding: 4px 2px; border-radius: 10px;
  background: linear-gradient(160deg, #6a4fa8, #2f1f57); border: 2px solid rgba(255, 255, 255, 0.35); color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}
.dev-card .icon { font-size: 1.5rem; }
.dev-card .label { font-size: 0.66rem; font-weight: 800; }
.dev-card .count { font-size: 0.75rem; opacity: 0.8; }
.dev-card.playable { border-color: var(--gold); box-shadow: 0 0 16px rgba(244, 197, 90, 0.55); animation: card-glow 1.8s ease-in-out infinite; }
@keyframes card-glow { 50% { box-shadow: 0 0 6px rgba(244, 197, 90, 0.3); } }
.dev-hand .dev-card { width: 92px; height: 129px; border-radius: 10px; transition: transform 0.18s cubic-bezier(.3, 1.4, .5, 1); }
.dev-hand .dev-card .icon { font-size: 2.1rem; }
.dev-hand .dev-card:hover { transform: translateY(-10px) scale(1.06) rotate(1.5deg); }
.dev-card.playable:hover { transform: translateY(-3px); }
.dev-card.victory { background: linear-gradient(160deg, #c9a43a, #6b4f12); }
.dev-card:disabled { opacity: 0.6; cursor: default; }

/* Aktionen */
.action-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dice {
  font-size: 1.7rem; white-space: nowrap; min-width: 86px; font-family: var(--font-display);
  display: inline-block; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
.dice.rolling { animation: dice-roll 0.7s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes dice-roll {
  0% { transform: rotate(0) scale(1); }
  25% { transform: rotate(-30deg) scale(1.45); }
  55% { transform: rotate(18deg) scale(1.15); }
  100% { transform: rotate(0) scale(1); }
}
.build-buttons { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
#end-turn { margin-left: auto; padding: 10px 18px; font-size: 1rem; }
#roll-btn { padding: 10px 18px; font-size: 1rem; }

/* Handel */
.trade-cards { display: flex; gap: 7px; flex-wrap: wrap; }
.trade-slot { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.trade-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.responses { display: flex; flex-direction: column; gap: 6px; }

/* Siegerbildschirm */
.overlay {
  position: fixed; inset: 0; z-index: 20; background: rgba(3, 12, 22, 0.75); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.winner-card { max-width: 480px; text-align: left; animation: pop 0.4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { from { transform: scale(0.8); opacity: 0; } }
.winner-card h2 { font-size: 1.8rem; text-align: center; color: var(--gold); }
.winner-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.winner-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--panel-2); border-radius: 10px; padding: 9px 12px; }
.winner-list li:first-child { box-shadow: 0 0 0 2px var(--gold); }
.winner-list .pname { font-weight: 800; }
.winner-list .extras { font-size: 0.8rem; color: var(--muted); flex: 1; }

/* ---------- Lobby: Einstellungen, Bots, Anleitung ---------- */

.lobby2 {
  display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px;
  max-width: 1180px; margin: 0 auto; padding: 18px 16px 32px; align-items: start;
}
.lobby-box {
  background: var(--panel); backdrop-filter: blur(8px); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px;
}
.lobby-box h2 { margin: 0 0 10px; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.lobby-box h3 { margin: 0 0 8px; font-size: 0.95rem; color: var(--muted); }
.lobby-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 72px; }
.lobby-head { display: flex; align-items: center; justify-content: space-between; }
.lobby-head h2 { margin: 0; }
.seat-count { font-size: 0.8rem; font-family: var(--font-body); font-weight: 800; background: rgba(0, 0, 0, 0.3); border-radius: 999px; padding: 2px 9px; color: var(--muted); }
.mini-btn { padding: 4px 10px; font-size: 0.82rem; }

/* Sitzplätze */
.seats { list-style: none; margin: 12px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.seat {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 10px 8px 12px;
  border-radius: 12px; background: linear-gradient(90deg, color-mix(in srgb, var(--seat, #888) 22%, transparent), rgba(255, 255, 255, 0.03) 70%);
  border: 1px solid var(--border); border-left: 5px solid var(--seat, transparent);
}
/* nur wer wirklich neu dazukommt, gleitet herein – nicht bei jeder Änderung */
.seat.enter { animation: seat-in 0.35s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes seat-in { from { opacity: 0; transform: translateX(-12px); } }
.seat.offline { opacity: 0.55; }
.seat-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.seat-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat-badges { display: flex; gap: 4px; align-items: center; font-size: 0.72rem; }
.seat-badges:empty { display: none; }
.badge-you { background: var(--gold); color: #2a1a04; border-radius: 6px; padding: 0 6px; font-weight: 800; }
.badge-off { color: #ffb09e; }
.badge-host { font-size: 0.85rem; }
.ready-pill {
  font-size: 0.75rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  background: rgba(0, 0, 0, 0.3); color: var(--muted);
}
.ready-pill.on { background: rgba(87, 196, 114, 0.2); color: #9be58c; box-shadow: inset 0 0 0 1px rgba(87, 196, 114, 0.5); }
.seat.empty { background: transparent; border: 2px dashed rgba(255, 255, 255, 0.13); border-left-width: 2px; animation: none; }
.seat.empty .seat-name { color: var(--muted); font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.ghost-avatar { background: rgba(255, 255, 255, 0.06) !important; color: var(--muted) !important; box-shadow: none !important; text-shadow: none; }
.seat-actions { display: flex; gap: 4px; }

.color-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--border); }
.color-dots { display: flex; gap: 7px; flex-wrap: wrap; }
.color-dot {
  width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}
.color-dot:hover:not(:disabled) { transform: scale(1.12); }
.color-dot.active { border-color: #fff; box-shadow: 0 0 0 3px var(--gold), inset 0 -3px 0 rgba(0, 0, 0, 0.25); }
.color-dot:disabled { opacity: 0.25; }

.lobby-chat .chat-list { height: 190px; }

/* Rechte Seite */
.lobby-main { display: flex; flex-direction: column; gap: 14px; }
.invite-strip {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between;
  padding: 12px 14px; border-radius: 12px;
  background: linear-gradient(90deg, rgba(244, 197, 90, 0.16), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(244, 197, 90, 0.35);
}
.invite-strip .invite { flex: 1 1 300px; max-width: 460px; }
.invite-strip input { padding: 9px 12px; }
.map-preview {
  position: relative; border-radius: 14px; overflow: hidden; background: #1d6a92; min-height: 250px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
#map-preview { display: block; width: 100%; height: 290px; }
.map-list { display: flex; flex-direction: column; gap: 6px; max-height: 270px; overflow-y: auto; padding-right: 2px; }

.settings-title { margin: 4px 0 0 !important; }
.rule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.rule { background: var(--panel-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.rule-head { display: flex; align-items: center; gap: 7px; font-weight: 700; flex-wrap: wrap; }
.rule-head .hint { font-weight: 600; width: 100%; }
.rule-icon { font-size: 1.1rem; }
.seg { display: flex; background: rgba(0, 0, 0, 0.3); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button {
  flex: 1; padding: 6px 4px; font-size: 0.84rem; border: none; background: transparent; border-radius: 8px; box-shadow: none; white-space: nowrap;
}
.seg button.on { background: linear-gradient(180deg, #ffd978, var(--gold-2)); color: #2a1a04; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.rule.locked .seg button:disabled { opacity: 0.5; cursor: default; }
.rule.locked .seg button.on:disabled { opacity: 1; }

.start-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end;
  padding-top: 12px; border-top: 1px solid var(--border);
}
.start-bar .hint { flex: 1; min-width: 200px; font-size: 0.9rem; }
.ready-btn { min-width: 220px; }
.ready-btn.on { background: linear-gradient(180deg, #7ad88f, #3fa85a); border-color: #9be58c; color: #08260f; box-shadow: 0 4px 14px rgba(87, 196, 114, 0.35); }
#start-btn { min-width: 220px; }
#start-btn:not(:disabled) { animation: start-glow 1.8s ease-in-out infinite; }
@keyframes start-glow { 50% { box-shadow: 0 4px 22px rgba(244, 197, 90, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.6); } }

@media (max-width: 900px) {
  .lobby2 { grid-template-columns: 1fr; }
  .lobby-side { position: static; order: 2; }
  .map-list { max-height: none; }
}
@media (max-width: 600px) {
  .lobby2 { padding: 12px 12px 24px; }
  .ready-btn, #start-btn { width: 100%; }
  #map-preview { height: 220px; }
}

.card input[type=checkbox] { width: auto; }
button.big { padding: 12px 18px; font-size: 1.05rem; }
button.kick { margin-left: auto; color: #ff9b8a; }
.tutorial-cta { margin-top: 4px; background: linear-gradient(90deg, rgba(244, 197, 90, 0.18), rgba(255, 255, 255, 0.04)); border-color: rgba(244, 197, 90, 0.5); }

.tutorial-card { max-width: 520px; animation: pop 0.3s cubic-bezier(.3, 1.6, .5, 1); }
.tut-body { line-height: 1.55; font-size: 0.98rem; min-height: 190px; }
.tut-body ul, .tut-body ol { padding-left: 20px; margin: 6px 0; }
.tut-body p { margin: 8px 0; }
.tut-body .hot { color: #ff7a66; font-weight: 800; }
.tut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.tut-grid span { background: var(--panel-2); border-radius: 8px; padding: 6px 8px; }
.tut-costs { border-collapse: collapse; width: 100%; }
.tut-costs td { padding: 7px 6px; border-bottom: 1px solid var(--border); }
.tut-dots { display: flex; gap: 6px; justify-content: center; }
.tut-dots .dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.2); border: none; }
.tut-dots .dot.on { background: var(--gold); }
.tut-nav { justify-content: space-between; }

/* ---------- Spiel: Timer, Zoom, Emotes, Animationen ---------- */

#turn-banner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#banner-text { flex: 1; min-width: 200px; }
.timer { position: relative; flex: 0 0 160px; height: 24px; border-radius: 12px; background: rgba(0, 0, 0, 0.35); overflow: hidden; }
#timer-bar { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #57c472, #9be58c); transition: width 0.25s linear; }
#timer-text { position: relative; display: block; text-align: center; font-size: 0.85rem; font-weight: 800; line-height: 24px; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.timer.urgent #timer-bar { background: linear-gradient(90deg, #e2583f, #ff9b6a); }
.timer.urgent { animation: urgent 0.6s ease-in-out infinite alternate; }
@keyframes urgent { to { box-shadow: 0 0 0 2px rgba(226, 88, 63, 0.7); } }

/* AFK-Warnung oben auf dem Brett */
.afk-warn {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 6;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  max-width: calc(100% - 32px); padding: 8px 12px; border-radius: 12px;
  background: rgba(30, 22, 14, 0.88); color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  font-size: 0.85rem; font-weight: 700;
}
.afk-warn[hidden] { display: none; }
.afk-row { display: flex; align-items: center; gap: 8px; }
.afk-bar { position: relative; width: 110px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.18); overflow: hidden; flex: 0 0 auto; }
.afk-bar > i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #f0b43c, #ffd27a); transition: width 0.25s linear; }
.afk-row.urgent .afk-bar > i { background: linear-gradient(90deg, #e2583f, #ff9b6a); }
.afk-row.urgent { animation: urgent 0.6s ease-in-out infinite alternate; border-radius: 6px; }
.afk-strikes { color: #ffd27a; font-weight: 800; }

.board-wrap { position: relative; }
#board { touch-action: none; }
#board { cursor: grab; }
#board.dragging, #board.dragging * { cursor: grabbing !important; }
.zoom-controls { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.zoom-controls button { width: 38px; height: 38px; padding: 0; border-radius: 50%; font-size: 1.1rem; background: rgba(7, 26, 43, 0.75); backdrop-filter: blur(6px); }

.emote-bar { display: flex; flex-wrap: wrap; gap: 2px; }
.emote-btn { padding: 2px 5px; font-size: 1.15rem; }
.player-card { position: relative; }
@keyframes emote {
  0% { opacity: 0; transform: translateY(10px) scale(0.5); }
  15% { opacity: 1; transform: translateY(0) scale(1.15); }
  75% { opacity: 1; transform: translateY(-8px) scale(1); }
  100% { opacity: 0; transform: translateY(-22px) scale(0.9); }
}

.fly-card {
  position: fixed; left: 0; top: 0; z-index: 40; width: 32px; height: 44px; pointer-events: none;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  background: linear-gradient(160deg, #fffaf0, #eadbb8); border: 2px solid #fff; border-radius: 7px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}
#board .pop { animation: piece-pop 0.5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes piece-pop { from { transform: scale(0.2); opacity: 0; } }
@keyframes road-pop { 0% { opacity: 0.9; } 100% { opacity: 0; stroke-width: 22; } }

.spectator-bar {
  grid-area: bar; position: sticky; bottom: 0; text-align: center; padding: 12px;
  background: rgba(7, 26, 43, 0.9); border-radius: 16px 16px 0 0; border: 1px solid var(--border); font-weight: 700;
}

/* Statistik */
.stats h3 { margin: 6px 0 4px; font-size: 0.88rem; color: var(--muted); }
.dice-chart { display: flex; gap: 3px; height: 130px; align-items: stretch; }
.dc-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.dc-track { position: relative; flex: 1; width: 100%; background: rgba(255, 255, 255, 0.05); border-radius: 4px; display: flex; align-items: flex-end; }
.dc-bar { width: 100%; background: linear-gradient(180deg, var(--gold), var(--gold-2)); border-radius: 4px 4px 0 0; transition: height 0.4s ease; }
.dc-col.seven .dc-bar { background: linear-gradient(180deg, #ff8a6a, #e2583f); }
.dc-exp { position: absolute; left: -1px; right: -1px; height: 2px; background: #fff; opacity: 0.7; }
.dc-count { font-size: 0.7rem; color: var(--muted); height: 12px; }
.dc-label { font-size: 0.78rem; font-weight: 800; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.stats-table th, .stats-table td { padding: 5px 4px; text-align: center; border-bottom: 1px solid var(--border); }
.stats-table td:first-child, .stats-table th:first-child { text-align: left; white-space: nowrap; }
.stats-table .swatch { display: inline-block; vertical-align: -2px; }
.winner-card .stats { max-height: 40vh; overflow-y: auto; overflow-x: hidden; }
.winner-card .stats .hint { overflow-wrap: anywhere; }
.stats-table td:first-child { white-space: normal; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Spielerkarten (links, groß) ---------- */

.players-col .player-cards { gap: 10px; }
.players-col .player-card { padding: 12px 14px; border-left-width: 7px; border-radius: 14px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: #fff;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25), 0 2px 6px rgba(0, 0, 0, 0.35); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.players-col .pc-head { gap: 10px; }
.players-col .pc-head .pname { font-size: 1.05rem; }
.players-col .pc-head .vp { font-size: 1.05rem; padding: 2px 10px; }
.pc-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 9px; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 3px; background: rgba(0, 0, 0, 0.25); border-radius: 8px; padding: 3px 4px; font-size: 0.85rem; }
.chip b { font-family: var(--font-display); font-weight: 800; font-size: 1rem; }
.player-card.current .avatar { animation: avatar-glow 1.6s ease-in-out infinite; }
@keyframes avatar-glow { 50% { box-shadow: 0 0 0 4px rgba(244, 197, 90, 0.55), 0 2px 6px rgba(0, 0, 0, 0.35); } }

/* Karten gleiten von rechts in die Spielerkarte */
.swipe-card {
  position: fixed; left: 0; top: 0; z-index: 41; width: 26px; height: 36px; pointer-events: none;
  display: grid; place-items: center; font-size: 1rem; border-radius: 6px; border: 2px solid #fff;
  background: linear-gradient(160deg, var(--c1, #fffaf0), var(--c2, #eadbb8));
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
}
.swipe-card.back { background: repeating-linear-gradient(45deg, #6a4fa8, #6a4fa8 4px, #5a4194 4px, #5a4194 8px); color: #fff; }
.swipe-card[data-res="holz"] { --c1: #9fd88f; --c2: #3d8b45; }
.swipe-card[data-res="lehm"] { --c1: #f2b48a; --c2: #c25f31; }
.swipe-card[data-res="wolle"] { --c1: #e4f7c8; --c2: #8fcc5c; }
.swipe-card[data-res="getreide"] { --c1: #fff0a8; --c2: #e0b22c; }
.swipe-card[data-res="erz"] { --c1: #e1e5ec; --c2: #868c98; }

/* Chat schmaler/kleiner */
.sidebar .chat-list { max-height: 190px; min-height: 60px; }
.sidebar .log { max-height: 200px; }
.sidebar .tabs button { font-size: 0.82rem; padding: 5px 4px; }

/* ---------- Würfel ---------- */

.die {
  --die-accent: #ffffff;
  width: 30px; height: 30px; padding: 4px; border-radius: 7px; display: grid; grid-template-columns: repeat(3, 1fr);
  background: linear-gradient(145deg, #ffffff, #e9e4d8); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15), 0 3px 8px rgba(0, 0, 0, 0.4);
}
.die .pip { border-radius: 50%; margin: 1.5px; }
.die .pip.on { background: radial-gradient(circle at 35% 35%, #555, #15181f); }
.die.big { width: 72px; height: 72px; padding: 9px; border-radius: 15px; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.15), inset 0 0 0 3px var(--die-accent), 0 12px 24px rgba(0, 0, 0, 0.5); }
.die.big .pip { margin: 3px; }
.dice { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 1.2rem; }
.dice .dice-total { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; min-width: 26px; text-align: center;
  background: rgba(0, 0, 0, 0.3); border-radius: 8px; padding: 1px 8px; }
.dice .dice-total.seven { color: #ff8a6a; }
.dice.rolling { animation: none; }
.dice.rolling .die { animation: die-wobble 0.6s ease-out; }
.dice.rolling .die:nth-child(2) { animation-delay: 0.06s; }
@keyframes die-wobble {
  0% { transform: rotate(0) translateY(0); } 25% { transform: rotate(-25deg) translateY(-8px); }
  55% { transform: rotate(18deg) translateY(0); } 80% { transform: rotate(-6deg); } 100% { transform: rotate(0); }
}
.dice-roll {
  position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); z-index: 6; pointer-events: none;
  display: flex; align-items: center; gap: 18px;
}
.dice-roll .die { will-change: transform; }
.dice-sum {
  font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; color: #fff; min-width: 64px; text-align: center;
  background: rgba(7, 26, 43, 0.85); border: 3px solid var(--gold); border-radius: 18px; padding: 2px 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}
.dice-sum.seven { border-color: #e2583f; color: #ffb09e; }

/* ---------- Räuber versetzen ---------- */

.robber-dim { fill: rgba(4, 14, 24, 0.55); pointer-events: none; }
.robber-option { cursor: pointer; }
.robber-option .spot-hex { fill: rgba(255, 90, 60, 0.08); stroke: #ff6a4d; stroke-width: 4; stroke-dasharray: none; animation: robber-pulse 1.2s ease-in-out infinite; }
.robber-option:hover .spot-hex { fill: rgba(255, 90, 60, 0.28); stroke: #ffd650; stroke-width: 6; animation: none; }
.robber-option .robber-ghost { opacity: 0; transition: opacity 0.15s; }
.robber-option:hover .robber-ghost { opacity: 0.95; }
.robber-option .robber-label { opacity: 0; transition: opacity 0.15s; }
.robber-option:hover .robber-label { opacity: 1; }
.robber-label rect { fill: rgba(7, 26, 43, 0.92); stroke: #ff6a4d; stroke-width: 1.5; }
.robber-label text { fill: #fff; font-family: var(--font-body); font-weight: 800; font-size: 11px; text-anchor: middle; dominant-baseline: central; }
@keyframes robber-pulse { 50% { stroke-opacity: 0.35; } }

/* ---------- Hand: nur vorhandene Rohstoffe ---------- */

.res-card .count { position: absolute; top: -9px; right: -9px; z-index: 1; min-width: 28px; height: 28px; line-height: 24px; padding: 0 6px;
  border-radius: 14px; background: #1d2633; color: #fff; border: 2px solid #fff; font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); }
.res-card.small .count { min-width: 22px; height: 22px; line-height: 18px; font-size: 0.78rem; top: -7px; right: -7px; }
.res-card.appear { animation: card-appear 0.5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes card-appear { from { transform: translateY(30px) scale(0.6); opacity: 0; } }
.hand-empty { color: var(--muted); font-size: 0.9rem; align-self: center; padding: 8px 4px; }

/* ---------- Handels-Popup oben rechts ---------- */

.offer-popup {
  --accent: var(--gold);
  position: fixed; top: 74px; right: 18px; z-index: 25; width: 330px; max-width: calc(100vw - 24px);
  background: rgba(10, 32, 50, 0.96); backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong); border-top: 5px solid var(--accent);
  border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.offer-popup.enter { animation: popup-in 0.45s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes popup-in { from { transform: translateX(120%) rotate(4deg); opacity: 0; } }
.offer-popup:not(.answered) { animation-name: popup-in, popup-nudge; animation-duration: 0.45s, 2.4s; animation-delay: 0s, 1.5s; animation-iteration-count: 1, infinite; }
@keyframes popup-nudge { 0%, 88%, 100% { transform: none; } 92% { transform: translateX(-4px); } 96% { transform: translateX(3px); } }

/* ---------- Handy ---------- */

@media (max-width: 600px) {
  header { padding: 8px 10px; }
  h1 { font-size: 1.1rem; }
  .hide-sm { display: none; }
  .game-layout { padding: 8px 8px 0; gap: 8px; }
  #turn-banner { font-size: 0.92rem; padding: 9px 12px; }
  .timer { flex-basis: 100%; }
  #board { border-radius: 14px; }
  .bottom-bar { padding: 8px; gap: 8px; border-radius: 16px 16px 0 0; }
  .res-card, #hand .res-card { --w: 56px; }
  .res-card .label { font-size: 0.6rem; }
  .res-card:hover { transform: translateY(-6px) scale(1.04); }
  .dev-card, .dev-hand .dev-card { width: 56px; height: 78px; }
  .dev-card .label { font-size: 0.56rem; }
  .hand, .dev-hand, #hand { gap: 7px; }
  .hand-row { min-height: 86px; gap: 10px; }
  .build-buttons { flex-basis: 100%; order: 5; }
  #roll-btn, #end-turn { padding: 9px 12px; font-size: 0.92rem; }
  .dice { font-size: 1.3rem; min-width: 64px; }
  .panel { flex-basis: 100%; padding: 10px; }
  .settings { grid-template-columns: 1fr; }
  .zoom-controls button { width: 34px; height: 34px; }
}

/* ---------- Testbrett ---------- */

main { padding: 0 16px 16px; }
#map-description { margin: 10px 16px; color: var(--muted); }
#error { margin: 8px 16px; color: #ffb09e; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 6px 16px 0; }
.toolbar .group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.group-label { font-size: 0.85rem; color: var(--muted); }
.toolbar label.check { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; }
p.hint.toolbar-hint { margin: 8px 16px 10px; }
#score { margin-left: 8px; font-weight: 700; color: var(--text); }

/* ---------- Editor ---------- */

.editor-layout { display: flex; flex-wrap: wrap; gap: 16px; padding: 16px; align-items: flex-start; }
.editor-layout .sidebar { flex: 0 1 340px; }
.tool-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-grid button { padding: 5px 9px; font-size: 0.85rem; border-left: 10px solid var(--swatch, rgba(255, 255, 255, 0.2)); }
.tool-grid.numbers button { min-width: 40px; border-left-width: 1px; }
.pool-row { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; color: var(--text) !important; }
.pool-row > span:nth-child(2) { flex: 1; }
.pool-row input { width: 74px !important; }
.editor-main { flex: 1 1 480px; min-width: 0; }
.editor-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
#status.good { color: #9be58c; font-weight: 700; }
#status.warn { color: #ffb09e; font-weight: 700; }
#editor-board {
  display: block; width: 100%; max-height: 80vh; touch-action: none; user-select: none; cursor: crosshair;
  border-radius: 18px; background: #0d3550; box-shadow: var(--shadow);
}
.hex-edit-water { fill: #154462; stroke: #23597d; stroke-width: 2; }
.hex-edit-water:hover { fill: #1f5a80; }
.random-mark { font-family: var(--font-display); font-size: 30px; font-weight: 600; fill: rgba(60, 45, 20, 0.6); text-anchor: middle; dominant-baseline: central; }
.coast-edge { stroke: #ffd246; stroke-width: 6; stroke-dasharray: 6 5; stroke-linecap: round; pointer-events: none; }

/* =========================================================================
   SVG-Brett
   ========================================================================= */

.hex-land.plain { stroke: rgba(0, 0, 0, 0.35); stroke-width: 1.6; }
.tile-art, .hit-glow { pointer-events: none; }
.hit-glow { fill: rgba(255, 226, 122, 0); stroke: #ffe27a; stroke-width: 0; }
#board g.hit .hit-glow { animation: tile-hit 1.9s ease-out; }
@keyframes tile-hit {
  0%, 35% { fill: rgba(255, 226, 122, 0.28); stroke-width: 6; filter: drop-shadow(0 0 8px #ffd650); }
  100% { fill: rgba(255, 226, 122, 0); stroke-width: 0; }
}

.token { fill: #fffdf6; stroke: #e6dcc4; stroke-width: 1.4; }
.token-num { font-family: var(--font-display); font-weight: 800; font-size: 17px; fill: #22313f; text-anchor: middle; dominant-baseline: central; }
.token-num.hot { fill: #d8392b; }
.pip { fill: #22313f; }
.pip.hot { fill: #d8392b; }
.terrain-label {
  font-family: var(--font-body); font-size: 11px; font-weight: 800; text-anchor: middle;
  fill: #fff; stroke: rgba(0, 0, 0, 0.6); stroke-width: 2.5px; paint-order: stroke; pointer-events: none;
}
.road { stroke-width: 9; stroke-linecap: round; }

.pier { stroke: #6e4520; stroke-width: 6; stroke-linecap: round; }
.harbor-icon { font-size: 11px; text-anchor: middle; dominant-baseline: central; }
.harbor-rate { font-family: var(--font-display); font-size: 9.5px; font-weight: 600; fill: #22313f; text-anchor: middle; dominant-baseline: central; }
.harbor-rate.art { fill: #2b2015; font-size: 10.5px; }
.harbor-icon.art { font-size: 11px; }
/* Kontore dezent: etwas weniger Farbe, damit Felder und Figuren im Vordergrund bleiben */

.harbor-piers .subtle { opacity: 0.75; }

/* Anklickbare Stellen */
.spot { fill: rgba(255, 255, 255, 0.4); stroke: #fff; stroke-width: 2.5; cursor: pointer; animation: pulse 1.3s ease-in-out infinite; filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8)); }
.spot:hover { fill: rgba(255, 255, 255, 0.95); animation: none; }
@keyframes pulse { 50% { fill: rgba(255, 255, 255, 0.7); } }
/* Straßen-Vorschau beim Bauen (Farbe kommt als --ghost aus dem Code) */
.road-spot { cursor: pointer; }
/* Straßen-Vorschlag: kurze, pulsierende Kapsel in der Kantenmitte – Häuser bleiben sichtbar */
.road-spot .ghost-outline { stroke: #ffffff; stroke-width: 9; stroke-linecap: round; opacity: 0.85; }
.road-spot .ghost { stroke: var(--ghost, #ffd650); stroke-width: 5.5; stroke-linecap: round; }
.road-spot .ghost-shine { stroke: #ffffff; stroke-width: 1.6; stroke-linecap: round; opacity: 0.7; }
.road-spot .ghost-outline, .road-spot .ghost, .road-spot .ghost-shine {
  transform-box: fill-box; transform-origin: center; animation: spot-breathe 1.4s ease-in-out infinite;
}
.road-spot .ghost-preview {
  stroke: var(--ghost, #ffd650); stroke-width: 9; stroke-linecap: round; opacity: 0;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9)); transition: opacity 0.15s ease;
}
.road-spot .ghost-hit { stroke: transparent; stroke-width: 22; stroke-linecap: round; }
.road-spot:hover .ghost-preview { opacity: 0.85; }
.road-spot:hover .ghost-outline, .road-spot:hover .ghost, .road-spot:hover .ghost-shine { animation: none; opacity: 0; }
@keyframes spot-breathe { 0%, 100% { transform: scale(0.82); opacity: 0.75; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes ghost-dash { to { stroke-dashoffset: -8; } }
.spot-road { stroke: rgba(255, 214, 80, 0.85); stroke-width: 10; stroke-dasharray: 8 6; stroke-linecap: round; cursor: pointer; filter: drop-shadow(0 0 3px rgba(255, 214, 80, 0.8)); }
.spot-road:hover { stroke: #ffd650; stroke-dasharray: none; }
.spot.remove, .spot-road.remove { fill: rgba(255, 80, 60, 0.35); stroke: #ff6a55; animation: none; }
.spot-road.remove { stroke: rgba(255, 80, 60, 0.5); }
.spot.remove:hover { fill: rgba(255, 80, 60, 0.8); }
.spot-road.remove:hover { stroke: rgba(255, 80, 60, 0.95); }
.spot-hex { fill: rgba(226, 88, 63, 0.12); stroke: rgba(255, 130, 100, 0.85); stroke-width: 3; stroke-dasharray: 8 6; cursor: pointer; }
.spot-hex:hover { fill: rgba(226, 88, 63, 0.4); }


/* ---------- Spielende: Titel, Punkteverlauf, Replay ---------- */
.winner-card { max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; }
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.award {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--seat, #888) 25%, transparent), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border); border-left: 4px solid var(--seat, #888);
  animation: award-in 0.45s cubic-bezier(.3, 1.6, .5, 1) both;
}
.award > div { display: flex; flex-direction: column; min-width: 0; }
.award-icon { font-size: 1.7rem; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4)); }
@keyframes award-in { from { opacity: 0; transform: translateY(10px) scale(0.85); } }
.winner-section h3, .winner-section summary { margin: 0 0 6px; font-size: 0.92rem; color: var(--muted); cursor: pointer; }
.vp-curve { width: 100%; height: auto; display: block; background: rgba(0, 0, 0, 0.2); border-radius: 10px; }
.vp-curve .grid { stroke: rgba(255, 255, 255, 0.07); }
.vp-curve .goal { stroke: var(--gold); stroke-dasharray: 5 4; opacity: 0.7; }
.vp-curve .axis { fill: var(--muted); font-size: 10px; text-anchor: end; }
.vp-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; opacity: 0.85;
  stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw-line 1.6s ease-out 0.3s forwards; }
.vp-line.winner { stroke-width: 4; opacity: 1; filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5)); }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.vp-dot { stroke: #fff; stroke-width: 1.5; }

.replay-bar {
  position: absolute; left: 50%; top: 12px; transform: translateX(-50%); z-index: 5;
  display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 16px; border-radius: 999px;
  background: rgba(7, 26, 43, 0.88); backdrop-filter: blur(6px); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow); width: min(520px, calc(100% - 24px));
}
.replay-title { font-family: var(--font-display); font-weight: 800; color: var(--gold); white-space: nowrap; }
.replay-turn { font-weight: 800; font-size: 0.85rem; min-width: 56px; }
.replay-track { flex: 1; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.replay-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), #ffe39a); transition: width 0.2s linear; }
.seg-mini { padding: 2px; flex: none; }
.seg-mini button { padding: 3px 7px; font-size: 0.72rem; flex: none; }
#music-btn.off { opacity: 0.4; text-decoration: line-through; }
.fog-cloud { animation: fog-drift 5s ease-in-out infinite alternate; transform-box: fill-box; }
@keyframes fog-drift { to { translate: 2px -1px; } }

/* Würfel-Designs (freischaltbar) */
.skin-night .die { background: linear-gradient(160deg, #2b3550, #121726); }
.skin-night .die .pip.on { background: radial-gradient(circle at 35% 35%, #ffe9a8, #e2a23b); box-shadow: 0 0 6px rgba(244, 197, 90, 0.7); }
.skin-ruby .die { background: linear-gradient(160deg, #ff7d8a, #b3122b); }
.skin-ruby .die .pip.on { background: radial-gradient(circle at 35% 35%, #ffffff, #ffd5da); }
.skin-gold .die { background: linear-gradient(160deg, #fff1b8, #e2a23b 60%, #a96d1c); }
.skin-gold .die .pip.on { background: radial-gradient(circle at 35% 35%, #7a4a0e, #3b2205); }
/* Gründer (nur im Gründer-Paket): tiefes Violett mit Goldrand und goldenen Augen */
.skin-founder .die { background: linear-gradient(160deg, #6a3fb5, #2a1150); box-shadow: inset 0 0 0 3px #f2c14e, 0 6px 14px rgba(0, 0, 0, 0.45); }
.skin-founder .die .pip.on { background: radial-gradient(circle at 35% 35%, #fff6cf, #f2c14e 60%, #b07a1c); box-shadow: 0 0 6px rgba(242, 193, 78, 0.8); }
/* Champion (Top 3 einer Saison): Silber-Blau mit leuchtenden Augen */
.skin-champion .die { background: linear-gradient(160deg, #eef6ff, #9cc3e8 55%, #4f7fae); box-shadow: inset 0 0 0 3px #ffffff, 0 6px 14px rgba(0, 0, 0, 0.45); }
.skin-champion .die .pip.on { background: radial-gradient(circle at 35% 35%, #ffffff, #2d5f9a); box-shadow: 0 0 6px rgba(120, 180, 255, 0.9); }
.elo-change { font-size: 0.78rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.elo-change.up { color: #9be58c; background: rgba(87,196,114,.15); }
.elo-change.down { color: #ffb09e; background: rgba(226,88,63,.15); }
#notify-btn.off { opacity: 0.45; }

/* ---------- Startseite: Schnellspiel, Listen ---------- */
.home { align-items: flex-start; }
.home .card { max-width: 360px; }
.join-row { display: flex; gap: 6px; }
.join-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.profile-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border-strong); color: var(--text); text-decoration: none; font-weight: 700; }
.profile-chip .avatar { width: 30px; height: 30px; font-size: 1.05rem; background: rgba(244, 197, 90, 0.25); }
.avatar.small { width: 26px; height: 26px; font-size: 0.95rem; background: rgba(255, 255, 255, 0.1); box-shadow: none; }
.open-rooms, .rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.open-rooms li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--panel-2); }
.open-rooms li > div { display: flex; flex-direction: column; min-width: 0; }
.rank-list li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--panel-2); }
.rank-list .rank { width: 26px; text-align: center; font-weight: 800; }
.rank-list .rname { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list .rval { font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
.rank-list li.empty, .open-rooms li.empty { background: none; padding: 4px 0; }

/* ---------- Profil ---------- */
/* Aufbau: links Steckbrief (bleibt stehen), rechts Tabs. Abstände im 8er-Raster. */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pf { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; max-width: 1120px; margin: 0 auto; padding: 24px 16px 48px; align-items: start; }
.pf .card { max-width: none; }

.pf-side { position: sticky; top: 16px; align-items: center; text-align: center; gap: 16px; padding: 24px; }
/* Heller „Papier“-Grund: jede Knubbel-Farbe hebt sich gut ab */
.pf { --paper: radial-gradient(circle at 50% 35%, #fffaf0, #e9e1d0 80%); }
.pf-portrait { width: 168px; height: 168px; border-radius: 50%; overflow: hidden; flex: none;
  background: var(--paper); box-shadow: 0 0 0 4px var(--gold), 0 12px 28px rgba(0, 0, 0, 0.45); }
.pf-portrait img { width: 100%; height: 100%; display: block; }
.card label.pf-name { position: relative; width: 100%; display: block; }
.pf-name input { width: 100%; text-align: center; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--text);
  padding: 6px 32px; background: transparent; border: 1px solid transparent; border-radius: 10px; transition: background 0.15s, border-color 0.15s; }
.pf-name input:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--border); }
.pf-name input:focus { background: rgba(0, 0, 0, 0.25); }
.pf-edit { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: 0.95rem; }
.pf-name input:focus + .pf-edit { opacity: 0; }
.pf-id { margin-top: -10px; padding: 4px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; color: var(--muted); background: var(--panel-2); border: 1px solid var(--border); }
.pf-id b { color: var(--text); letter-spacing: 0.04em; }
.pf-stats { width: 100%; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pf-stats div { display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--border); }
.pf-stats dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--gold); line-height: 1.1; }
.pf-stats dt { font-size: 0.72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.pf-note { margin: 0; font-size: 0.78rem; }

.pf-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pf-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.pf-tabs button { flex: 1 0 auto; padding: 10px 16px; border-radius: 10px; border: none; background: transparent; color: var(--muted); font-size: 0.95rem; box-shadow: none; }
.pf-tabs button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.06); color: var(--text); border: none; }
.pf-tabs button.on, .pf-tabs button.on:hover:not(:disabled) { background: var(--panel-solid); color: var(--text); box-shadow: inset 0 -2px 0 var(--gold), 0 2px 8px rgba(0, 0, 0, 0.3); }
.pf-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 0.72rem; display: inline-grid; place-items: center; }
.pf-panel { gap: 24px; padding: 24px; }
.pf-group { display: flex; flex-direction: column; gap: 10px; }
.pf-group + .pf-group { padding-top: 20px; border-top: 1px solid var(--border); }
.pf-panel h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.pf-panel h3 .hint { text-transform: none; letter-spacing: 0; font-weight: 600; margin-left: auto; }

.unlock-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.unlock { flex-direction: column; gap: 4px; padding: 12px 8px; text-align: center; }
.unlock.locked { opacity: 0.55; filter: grayscale(0.7); }
.unlock.locked:disabled { opacity: 0.55; }
.unlock.active { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(244, 197, 90, 0.5); background: rgba(244, 197, 90, 0.12); }
.unlock:disabled:not(.locked) { opacity: 1; cursor: default; }
.u-preview { font-size: 2rem; min-height: 46px; display: grid; place-items: center; }
.u-preview.emojis { font-size: 1.1rem; letter-spacing: 2px; }
.u-preview .die { width: 40px; height: 40px; padding: 5px; }
.award-shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.shelf-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 10px 6px; border-radius: 12px; background: var(--panel-2); font-size: 0.8rem; }
.shelf-item.locked { opacity: 0.4; filter: grayscale(1); }

/* ---------- Geteilte Karte ---------- */
.share-page { display: flex; justify-content: center; padding: 24px 16px 40px; }
.share-card { max-width: 560px; }
.share-preview #map-preview { height: 320px; }
.stars-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stars { display: flex; gap: 2px; }
.star { font-size: 1.6rem; padding: 0 4px; background: none; border: none; color: rgba(255, 255, 255, 0.25); box-shadow: none; }
.star.on, .stars:hover .star { color: var(--gold); }
.stars .star:hover ~ .star { color: rgba(255, 255, 255, 0.25); }
.seat-name .seg-mini { align-self: flex-start; margin-top: 3px; }

/* ---------- Shop ---------- */
.demo-banner { margin: 0; padding: 9px 16px; text-align: center; font-size: 0.88rem; background: rgba(87, 196, 114, 0.14); border-bottom: 1px solid rgba(87, 196, 114, 0.35); color: #c9f2d1; }
.shop-page { max-width: 1100px; margin: 0 auto; padding: 22px 16px 48px; display: flex; flex-direction: column; gap: 18px; }
.plus-kicker { display: inline-block; font-weight: 800; color: #2a1a04; background: linear-gradient(180deg, #ffe39a, var(--gold-2)); border-radius: 999px; padding: 3px 12px; font-size: 0.85rem; }
.plus-status { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; background: rgba(244, 197, 90, 0.16); font-weight: 700; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-badge { position: absolute; top: -11px; right: 14px; background: var(--ok); color: #08260f; font-weight: 800; font-size: 0.75rem; padding: 3px 10px; border-radius: 999px; }
.plan-icon { font-size: 2rem; }
.shop-title { margin: 6px 0 0; font-size: 1.3rem; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.pack { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border); box-shadow: var(--shadow); }
.pack .hint { flex: 1; }
.pack.owned { border-color: rgba(87, 196, 114, 0.45); }
.pack-preview { height: 70px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); }
.color-dot.static { cursor: default; }
.owned-pill { align-self: flex-start; font-weight: 800; font-size: 0.85rem; color: #9be58c; background: rgba(87, 196, 114, 0.15); padding: 5px 12px; border-radius: 999px; }
.my-purchases { max-width: none; }
.cancel-btn { align-self: flex-start; border-color: rgba(226, 88, 63, 0.6); color: #ffb09e; }
.checkout-card, .thanks-card { max-width: 460px; }
.co-item { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--panel-2); }
.co-item .hint { margin: 2px 0 0; }
.co-price { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 8px; }
.co-price b { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold); }
.checkout-card label.check { flex-direction: row; align-items: flex-start; gap: 8px; color: var(--text); font-size: 0.85rem; }
.checkout-card label.check input { width: auto; margin-top: 3px; }
.thanks-card { text-align: center; align-items: center; animation: pop 0.4s cubic-bezier(.3, 1.6, .5, 1); }
.thanks-icon { font-size: 3.4rem; animation: float 3s ease-in-out infinite; }
@media (max-width: 480px) {
  .plans { grid-template-columns: 1fr; }
}

/* Plus-Abzeichen, Premium-Sperren */
.plus-badge { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-size: 0.7rem; background: linear-gradient(180deg, #ffe39a, var(--gold-2)); color: #2a1a04; box-shadow: 0 0 8px rgba(244, 197, 90, 0.6); }
.color-dot.premium-lock { position: relative; opacity: 0.5; }
.color-dot.premium-lock::after { content: ''; position: absolute; inset: 0; background: url(/emoji/1f512.webp) center / 62% no-repeat; }
.skin-crystal .die { background: linear-gradient(150deg, rgba(220, 245, 255, 0.95), rgba(140, 200, 255, 0.75) 55%, rgba(190, 150, 255, 0.85)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 0 14px rgba(150, 210, 255, 0.6); }
.skin-crystal .die .pip.on { background: radial-gradient(circle at 35% 35%, #ffffff, #5a6fd6); }
.shop-link { background: linear-gradient(180deg, rgba(244, 197, 90, 0.25), rgba(244, 197, 90, 0.08)); border-color: rgba(244, 197, 90, 0.55); }
.toast-link { color: #a8590b; font-weight: 800; }
.pname .plus-badge, .seat-badges .plus-badge { margin-left: 5px; vertical-align: 1px; }
.plus-badge.premium { background: linear-gradient(180deg, #e3d4ff, #8a5be0); box-shadow: 0 0 8px rgba(138, 91, 224, 0.7); }
.plus-badge.founder { background: linear-gradient(180deg, #7b4fc9, #2a1150); box-shadow: 0 0 0 1.5px #f2c14e, 0 0 8px rgba(242, 193, 78, 0.7); }

/* ---------- Abo-Stufen im Shop ---------- */
.tiers { display: flex; flex-direction: column; gap: 20px; padding: 28px; border-radius: 20px; border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(138, 91, 224, 0.16), rgba(244, 197, 90, 0.08) 60%, var(--panel)); }
.tiers-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.tiers-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.tiers-head .plus-kicker { align-self: center; }
.tiers-head .plus-status { margin: 0; }
.billing-toggle { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border); }
.billing-toggle button { padding: 8px 18px; border-radius: 999px; border: none; background: transparent; color: var(--muted); box-shadow: none; }
.billing-toggle button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.06); border: none; }
.billing-toggle button.on, .billing-toggle button.on:hover:not(:disabled) { background: var(--panel-solid); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.billing-toggle .save { font-size: 0.7rem; font-weight: 800; color: #2a1a04; background: var(--gold); border-radius: 999px; padding: 1px 7px; }
.tier-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 860px; width: 100%; margin: 0 auto; align-items: stretch; }
.tier-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 18px; background: var(--panel-solid); border: 2px solid var(--border-strong); }
.tier-card.tier-plus { border-color: rgba(244, 197, 90, 0.45); }
.tier-card.tier-premium { border-color: #9b74f0; box-shadow: 0 0 0 1px rgba(155, 116, 240, 0.3), 0 16px 40px rgba(90, 50, 170, 0.35);
  background: linear-gradient(170deg, rgba(138, 91, 224, 0.22), var(--panel-solid) 55%); }
.tier-card.current { outline: 3px solid var(--ok); outline-offset: 3px; }
.tier-ribbon { position: absolute; top: -12px; right: 20px; padding: 3px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; color: #fff;
  background: linear-gradient(180deg, #a885ff, #6a3fd0); box-shadow: 0 4px 12px rgba(106, 63, 208, 0.5); }
.tier-top { display: flex; align-items: center; gap: 12px; }
.tier-top h3 { margin: 0; font-size: 1.3rem; color: var(--text); }
.tier-icon { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; background: rgba(255, 255, 255, 0.08); }
.tier-step { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.tier-mine { margin-left: auto; font-size: 0.75rem; font-weight: 800; color: #9be58c; background: rgba(87, 196, 114, 0.15); padding: 4px 10px; border-radius: 999px; }
.tier-tagline { margin: 0; color: var(--muted); font-weight: 600; }
.tier-price b { font-family: var(--font-display); font-size: 2.2rem; color: var(--gold); line-height: 1; }
.tier-premium .tier-price b { color: #cdb6ff; }
.tier-price span { color: var(--muted); font-weight: 700; }
.tier-sub { margin-top: -6px; }
.tier-perks { list-style: none; margin: 4px 0 8px; padding: 12px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; flex: 1; font-weight: 700; font-size: 0.92rem; }
.tier-card .big { width: 100%; }
.tier-premium .primary { background: linear-gradient(180deg, #b593ff, #7446dc); border-color: #c9b0ff; color: #fff; box-shadow: 0 4px 14px rgba(116, 70, 220, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.tier-premium .primary:hover:not(:disabled) { background: linear-gradient(180deg, #c2a6ff, #7f52e6); }
.tier-note { text-align: center; }
.tier-looks { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tier-looks .theme-previews { width: 100%; max-width: 860px; }
.pack-tier { font-size: 0.78rem; text-align: center; }
@media (max-width: 720px) {
  .tiers { padding: 20px 16px; }
  .tier-cards { grid-template-columns: 1fr; }
  .tier-card.tier-premium { order: -1; }
}

/* ---------- Freunde ---------- */
.friends { display: flex; flex-direction: column; gap: 8px; }
.friend-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.friend-list li { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--panel-2); }
.friend-list li.empty { background: none; padding: 2px 0; }
.friend-list .avatar { position: relative; }
.friend-list .dot { position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: #5d6b78; border: 2px solid var(--panel-solid); }
.friend-list li.online .dot { background: var(--ok); box-shadow: 0 0 6px rgba(87, 196, 114, 0.8); }
.friend-list li:not(.online) { opacity: 0.7; }
.fname { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fname strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-request, .friend-invite { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: rgba(244, 197, 90, 0.12); border: 1px solid rgba(244, 197, 90, 0.35); font-size: 0.88rem; }
.friend-invite span { flex: 1; min-width: 150px; }
.friend-add { display: flex; gap: 6px; }
.friend-add input { flex: 1; min-width: 0; padding: 6px 10px; }
.code-btn { align-self: flex-start; font-size: 0.8rem; }
.friends.compact .friend-list { max-height: 170px; }
.invite-popup {
  position: fixed; left: 50%; top: 70px; transform: translateX(-50%); z-index: 40;
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; max-width: calc(100% - 24px);
  background: rgba(12, 38, 60, 0.96); border: 1px solid var(--gold); box-shadow: var(--shadow); animation: popup-in 0.35s cubic-bezier(.3, 1.5, .5, 1);
}
.invite-popup > div { display: flex; flex-direction: column; }
.invite-popup.friend-playing { border-color: #7fe08f; }
/* Einmalige Hinweise (Saison-Ergebnis, Geschenk) */
.notice-overlay { z-index: 60; }
.notice-card { max-width: 380px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 22px; }
.notice-icon { font-size: 3.4rem; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4)); }
.notice-card h2 { margin: 4px 0 0; }
.season-rewards { font-size: 0.8rem; margin-top: 10px; }
@keyframes popup-in { from { opacity: 0; transform: translate(-50%, -14px) scale(0.95); } }

/* Seefahrer & Burgen */
.ship-spot { cursor: pointer; }
.ship-spot-ring { fill: rgba(255, 255, 255, 0.18); stroke: var(--ghost, #fff); stroke-width: 2.5; stroke-dasharray: 4 3; animation: ship-ring 1.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ship-spot-icon { font-size: 15px; text-anchor: middle; pointer-events: none; }
.ship-spot:hover .ship-spot-ring { fill: rgba(255, 255, 255, 0.45); animation: none; }
@keyframes ship-ring { 50% { transform: scale(1.15); } }
.ship { animation: ship-bob 3s ease-in-out infinite; }
@keyframes ship-bob { 50% { translate: 0 -1.5px; } }
.spot.castle-spot { stroke: #f4c55a; }

/* Karten-Looks */
.twinkle { animation: twinkle 2.8s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: 0.25; } }
.firefly { animation: firefly 4.5s ease-in-out infinite alternate; }
@keyframes firefly { 0% { opacity: 0.2; translate: 0 0; } 50% { opacity: 1; } 100% { opacity: 0.35; translate: 8px -10px; } }
.plus-tag { font-size: 0.7rem; font-weight: 800; color: #2a1a04; background: linear-gradient(180deg, #ffe39a, var(--gold-2)); border-radius: 999px; padding: 1px 8px; vertical-align: 2px; }
.theme-swatch { width: 100%; border-radius: 10px; }
.theme-classic { background: linear-gradient(160deg, #2a86c2, #1b5e93); }
.theme-space { background: radial-gradient(circle at 70% 30%, rgba(255, 95, 210, 0.45), transparent 50%), linear-gradient(160deg, #141a44, #07081c); }
.theme-fantasy { background: radial-gradient(circle at 30% 70%, rgba(255, 232, 120, 0.4), transparent 45%), linear-gradient(160deg, #5a3aa8, #1d6f8c); }

/* ---------- Startseite (neu) ---------- */
.home2 { max-width: 980px; margin: 0 auto; padding: 0 16px 48px; display: flex; flex-direction: column; gap: 22px; }
.hero-small { padding: 26px 0 0; }
.hero-small .hero-logo { width: 92px; height: 92px; }
.play-box {
  display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 22px;
  background: var(--panel); border: 1px solid var(--border-strong); box-shadow: var(--shadow);
}
.name-row { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 0.9rem; }
.name-row input { padding: 11px 14px; font-size: 1.05rem; }
.big-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.huge-btn { padding: 22px 16px; font-size: 1.35rem; font-family: var(--font-display); font-weight: 800; border-radius: 16px; }
.huge-btn.alt { background: linear-gradient(180deg, #4fa9e0, #2a6fb0); border-color: #8fd0ff; color: #fff; box-shadow: 0 4px 14px rgba(42, 111, 176, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.huge-btn.alt:hover:not(:disabled) { background: linear-gradient(180deg, #62b6ea, #3179bd); }
.boards-btn { justify-content: center; padding: 12px; font-size: 1rem; background: rgba(255, 255, 255, 0.05); }
.boards-btn span { color: var(--muted); }

.promo { display: flex; flex-direction: column; gap: 12px; }
.promo-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.promo-head h2 { margin: 0; }
.promo-card {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px 12px; border-radius: 16px;
  text-decoration: none; color: #fff; overflow: hidden; min-height: 112px; border: 1px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.promo-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4); }
.promo-card .lock { position: absolute; top: 8px; right: 10px; font-style: normal; font-size: 0.9rem; background: rgba(0, 0, 0, 0.35); border-radius: 999px; padding: 2px 6px; }

.play-menu, .boards-menu { max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; }
.play-option { display: flex; align-items: center; gap: 14px; text-align: left; justify-content: flex-start; padding: 14px; border-radius: 14px; }
.play-option strong { display: block; font-size: 1.05rem; }
.play-option small { display: block; font-weight: 600; opacity: 0.8; font-size: 0.82rem; }
.po-icon { font-size: 1.8rem; width: 40px; text-align: center; }
.join-option { background: var(--panel-2); border: 1px solid var(--border-strong); }
.join-option > span:last-child { flex: 1; }
.join-option .join-row { margin-top: 6px; }
.board-tabs { display: flex; gap: 6px; }
.board-tabs button { flex: 1; }
.board-tabs button.on { border-color: var(--gold); background: rgba(244, 197, 90, 0.16); }
@media (max-width: 560px) {
  .big-actions { grid-template-columns: 1fr; }
  .huge-btn { padding: 16px; font-size: 1.2rem; }
}
.theme-previews { display: flex; gap: 8px; margin-top: 12px; }
.theme-prev { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.18); font-size: 1.3rem; }
.theme-prev strong { font-size: 0.9rem; }
.promo-card.owned .lock { background: rgba(87, 196, 114, 0.85); }

/* Hexheim-Logo */
.logo { width: 40px; height: 40px; object-fit: contain; }
.hero-logo.hexheim-logo { width: min(300px, 70vw); height: auto; margin-bottom: -6px; filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55)); }
.hero-small .hero-logo.hexheim-logo { width: min(260px, 64vw); height: auto; }

/* Vorschaubilder (echte Spielszenen) */
.promo-card { min-height: 170px; justify-content: flex-end; isolation: isolate; }
.promo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.4s ease; animation: img-in 0.5s ease both; }
.promo-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 14, 26, 0) 30%, rgba(4, 14, 26, 0.88) 100%); }
.promo-card:hover .promo-img { transform: scale(1.06); }
.promo-card strong { font-size: 1.05rem; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); }
@keyframes img-in { from { opacity: 0; } }

/* Shop: Unterstützer-Bereich & Bilder */
.support-hero { position: relative; overflow: hidden; border-radius: 22px; min-height: 300px; display: flex; align-items: flex-end; border: 1px solid rgba(244, 197, 90, 0.4); box-shadow: var(--shadow); isolation: isolate; }
.support-bg { position: absolute; inset: 0; z-index: -2; }
.support-img { width: 100%; height: 100%; object-fit: cover; animation: img-in 0.6s ease both, slow-pan 30s ease-in-out infinite alternate; }
@keyframes slow-pan { to { transform: scale(1.12) translateX(-3%); } }
.support-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 14, 28, 0.94) 0%, rgba(5, 14, 28, 0.75) 48%, rgba(5, 14, 28, 0.15) 100%); }
.support-copy { padding: 28px; max-width: 600px; display: flex; flex-direction: column; gap: 10px; }
.support-copy h2 { margin: 4px 0 0; font-size: clamp(1.5rem, 3.2vw, 2.2rem); line-height: 1.15; }
.support-text { margin: 0; color: #d6e3ee; line-height: 1.5; }
.support-goal { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 14px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.12); }
.goal-head { display: flex; justify-content: space-between; gap: 10px; font-size: 0.92rem; }
.goal-head span { color: var(--gold); font-weight: 800; }
.goal-track { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.goal-fill { height: 100%; background: linear-gradient(90deg, #f4c55a, #ffe39a); box-shadow: 0 0 12px rgba(244, 197, 90, 0.7); }
.pack-preview.has-img { position: relative; height: 150px; overflow: hidden; padding: 0; background: #0b2236; }
.pack-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; animation: img-in 0.5s ease both; }
.pack:hover .pack-img { transform: scale(1.07); }
.theme-prev { position: relative; overflow: hidden; height: 110px; padding: 0; align-items: flex-end; }
.tp-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tp-label { position: relative; display: flex; align-items: center; gap: 6px; padding: 6px 10px; margin: 8px; border-radius: 999px; background: rgba(5, 14, 28, 0.75); font-size: 1rem; }
@media (max-width: 640px) { .support-hero::before { background: linear-gradient(180deg, rgba(5, 14, 28, 0.35), rgba(5, 14, 28, 0.95) 55%); } .support-copy { padding: 20px 16px; } }
.support-copy .plus-kicker { align-self: flex-start; }
.music-wrap { position: relative; }
.music-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; display: flex; flex-direction: column; gap: 4px; min-width: 150px; padding: 10px; border-radius: 14px; background: rgba(12, 38, 60, 0.97); border: 1px solid var(--border-strong); box-shadow: var(--shadow); animation: popup-in-menu 0.2s ease-out; }
.music-menu strong { font-size: 0.8rem; color: var(--muted); padding: 0 4px 2px; }
.music-opt { justify-content: flex-start; background: transparent; border-color: transparent; }
.music-opt.on { border-color: var(--gold); background: rgba(244, 197, 90, 0.16); }
@keyframes popup-in-menu { from { opacity: 0; transform: translateY(-6px); } }
.editor-paywall { backdrop-filter: blur(7px); background: rgba(3, 12, 22, 0.72); }
.paywall-card { max-width: 460px; text-align: center; align-items: center; }
.paywall-icon { font-size: 3.2rem; }
.pack-preview.has-img { height: 0; padding-top: 65.6%; }
.promo-card { min-height: 0; aspect-ratio: 640 / 420; }
.promo-card strong { display: none; }
.promo-card::before { display: none; }
.music-menu { background: #0f304b; }

/* ---------- Werfen (Eier, Tomaten, Rosen …) ---------- */
.throw-open { padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: 0.82rem;
  background: linear-gradient(180deg, #ffe58a, #f0b93a); color: #3a2a06; border: 1px solid #ffeeb0; }
.throw-open:hover { filter: brightness(1.08); transform: translateY(-1px); }
.throw-pop { position: fixed; z-index: 60; width: min(340px, calc(100vw - 16px)); padding: 12px; border-radius: 16px;
  background: rgba(10, 30, 48, 0.97); border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  display: flex; flex-direction: column; gap: 8px; animation: panel-in 0.15s ease-out; }
.throw-head { display: flex; align-items: center; justify-content: space-between; }
.throw-wallet { text-decoration: none; color: #3a2a06; background: linear-gradient(180deg, #ffe58a, #f0b93a);
  padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: 0.85rem; }
.throw-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.throw-item { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.06); border: 2px solid transparent; }
.throw-item:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); }
.throw-item.on { border-color: var(--gold); background: rgba(244, 197, 90, 0.16); }
.throw-item.nice .ti-cost { color: #ff9fc0; }
.throw-item.locked { opacity: 0.55; }
.throw-item.locked .ti-icon { filter: grayscale(0.7); }
.ti-icon { font-size: 1.6rem; line-height: 1.1; }
.ti-name { font-size: 0.7rem; font-weight: 800; }
.ti-cost { font-size: 0.68rem; color: var(--gold); font-weight: 800; }
.throw-hint { margin: 0; font-size: 0.75rem; }
.throw-targets { display: flex; flex-wrap: wrap; gap: 6px; }
.throw-target { padding: 5px 10px; border-radius: 999px; border: 2px solid; font-weight: 700; font-size: 0.85rem; }
.throw-target:hover { background: rgba(255, 255, 255, 0.12); }

.player-card { position: relative; }
.quick-throw { opacity: 0; margin-left: auto; padding: 2px 7px; border-radius: 999px; font-size: 0.95rem; line-height: 1.2;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25); transition: opacity 0.15s, transform 0.15s; }
.player-card:hover .quick-throw { opacity: 1; }
.quick-throw:hover { transform: scale(1.2) rotate(-12deg); }
@media (hover: none) { .quick-throw { opacity: 0.8; } }

.throw-proj { position: fixed; left: 0; top: 0; z-index: 80; font-size: 2rem; pointer-events: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45)); }
.throw-splat { position: absolute; z-index: 4; width: 86px; height: 86px; transform: translate(-50%, -50%) scale(0.2);
  pointer-events: none; animation: splat-in 0.25s cubic-bezier(.2, 1.8, .4, 1) forwards; }
.throw-splat svg { width: 100%; height: 100%; }
.throw-splat .splat-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 1.5rem; }
.throw-splat.drip { animation: splat-in 0.25s forwards, splat-drip 2.8s ease-in forwards; }
@keyframes splat-in { to { transform: translate(-50%, -50%) scale(1); } }
@keyframes splat-drip { 0% { opacity: 1; } 70% { opacity: 0.9; transform: translate(-50%, -38%) scale(1, 1.15); } 100% { opacity: 0; transform: translate(-50%, -25%) scale(0.95, 1.3); } }
.player-card.hit { animation: card-hit 0.5s; }
@keyframes card-hit { 15% { transform: translateX(-7px) rotate(-1.5deg); } 35% { transform: translateX(6px) rotate(1deg); } 55% { transform: translateX(-4px); } 75% { transform: translateX(2px); } }
.player-card.loved { box-shadow: 0 0 0 2px #ff9fc0, 0 0 26px rgba(255, 140, 190, 0.6); transition: box-shadow 0.3s; }
.throw-spark { position: fixed; z-index: 80; pointer-events: none; font-size: 1.1rem; font-weight: 900; text-shadow: 0 0 8px currentColor; }

/* ---------- Shop: Hexmünzen ---------- */
.coin-shop { margin-top: 22px; grid-column: 1 / -1; width: 100%; max-width: none; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; }
.coin-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.coin-head h2 { margin: 0 0 4px; }
.coin-head p { margin: 0; }
.throw-list { display: flex; flex-wrap: wrap; gap: 6px; }
.throw-chip { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); font-size: 0.85rem; }
.throw-chip b { color: var(--gold); }
.coin-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.coin-pack { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 12px;
  border-radius: 16px; background: linear-gradient(170deg, rgba(244, 197, 90, 0.18), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(244, 197, 90, 0.4); }
.coin-pack:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35); }
.coin-pack p { margin: 0 0 6px; }
.coin-icon { font-size: 2.6rem; filter: drop-shadow(0 4px 8px rgba(244, 197, 90, 0.5)); }

/* ---------- Münzkonto ---------- */
.coin-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; text-decoration: none;
  background: linear-gradient(180deg, #ffe58a, #f0b93a); color: #3a2a06; font-weight: 800; border: 1px solid #ffeeb0;
  box-shadow: 0 2px 10px rgba(240, 185, 58, 0.3); }
.coin-chip b { font-family: var(--font-display); }
.coin-chip:hover { filter: brightness(1.08); }
.coin-chip.bump { animation: coin-bump 0.5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes coin-bump { 40% { transform: scale(1.18); } }
.coin-account { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: 14px; scroll-margin-top: 80px; }
.ca-card { display: flex; flex-direction: column; gap: 4px; justify-content: center; padding: 18px; border-radius: 16px;
  background: linear-gradient(150deg, #3b2c07, #1c1a10); border: 1px solid rgba(244, 197, 90, 0.5); }
.ca-label { font-weight: 800; font-size: 0.85rem; color: #ffe8a8; }
.ca-balance { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold); line-height: 1.1; }
.ca-ledger h3 { margin: 0 0 6px; font-size: 0.95rem; }
.coin-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow: auto; }
.coin-log li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); font-size: 0.85rem; }
.coin-log li.empty { display: block; }
.cl-date { color: var(--muted); font-size: 0.75rem; }
.coin-log li.in .cl-delta { color: #7fe08f; }
.coin-log li.out .cl-delta { color: #ff8a73; }
@media (max-width: 600px) { .coin-account { grid-template-columns: 1fr; } .coin-chip { padding: 5px 9px; } }

/* ---------- Lobby: Übersicht oben, Einstellungen in Reitern ---------- */
.game-summary { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 18px; align-items: stretch; padding: 14px;
  background: linear-gradient(135deg, rgba(244, 197, 90, 0.12), rgba(255, 255, 255, 0.02) 55%), var(--panel); }
.game-summary .map-preview { min-height: 0; }
.game-summary #map-preview { height: 100%; min-height: 210px; }
.summary-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.summary-kicker { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.game-summary h2 { margin: 0; font-family: var(--font-display); font-size: 1.6rem; }
.summary-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.sum-chip { padding: 5px 11px; border-radius: 999px; font-size: 0.84rem; font-weight: 700; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--border); }
.sum-chip.ext { background: rgba(244, 197, 90, 0.18); border-color: rgba(244, 197, 90, 0.5); color: #ffe6a6; }
.game-summary .start-bar { margin-top: auto; justify-content: flex-start; border-top: none; padding-top: 8px; }
.game-summary .start-bar .hint { flex-basis: 100%; margin: 0; order: 3; }
.lobby-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; margin-bottom: 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.28); }
.lobby-tab { flex: 1 1 auto; padding: 9px 12px; border: none; background: transparent; box-shadow: none; border-radius: 9px; font-weight: 700; color: var(--muted); }
.lobby-tab.on, .lobby-tab.on:hover:not(:disabled) { background: var(--panel-2); color: var(--text, #fff); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 -2px 0 var(--gold); }
.tab-count { margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: #2a1a04; font-size: 0.7rem; line-height: 18px; display: inline-block; }
.host-note { margin: -4px 0 10px; }
.lobby-pane[hidden] { display: none; }
.ext-grid .rule { padding: 14px; }
.ext-grid .rule-icon { font-size: 1.6rem; }
.rule.rule-on { border-color: rgba(244, 197, 90, 0.6); background: linear-gradient(160deg, rgba(244, 197, 90, 0.14), var(--panel-2)); }
.friends-title { margin: 16px 0 8px !important; }
@media (max-width: 700px) {
  .game-summary { grid-template-columns: 1fr; }
  .game-summary #map-preview { min-height: 190px; }
  .lobby-tab { flex: 1 1 40%; padding: 8px; font-size: 0.85rem; }
}

/* ---------- Lebendige Insel ---------- */
.ev-hex { pointer-events: none; }
.ev-hex.ev-boost { fill: rgba(255, 214, 90, 0.22); stroke: #ffd65a; stroke-width: 4; filter: drop-shadow(0 0 8px rgba(255, 214, 90, 0.9)); animation: ev-pulse 1.6s ease-in-out infinite; }
.ev-hex.ev-block { fill: rgba(40, 10, 10, 0.45); stroke: #ff5a3c; stroke-width: 4; stroke-dasharray: 10 6; filter: drop-shadow(0 0 6px rgba(255, 90, 60, 0.8)); }
@keyframes ev-pulse { 50% { stroke-opacity: 0.45; fill-opacity: 0.5; } }
.ev-badge { pointer-events: none; }
.ev-badge circle { fill: #10263a; stroke-width: 2.5; }
.ev-badge.ev-boost circle { stroke: #ffd65a; }
.ev-badge.ev-block circle { stroke: #ff5a3c; }
.ev-badge text { font-size: 15px; text-anchor: middle; dominant-baseline: central; }
.ev-x2 rect { fill: #ffd65a; stroke: #6b4a05; stroke-width: 1.5; }
.ev-x2 text { font-size: 12px; font-weight: 900; fill: #3a2a06; font-family: var(--font-display); }

.event-strip { position: absolute; left: 10px; top: 10px; right: 60px; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.ev-next, .ev-chip { pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 0.8rem;
  background: rgba(7, 26, 43, 0.82); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.15); }
.ev-next.soon { border-color: #ff9a3c; color: #ffd2a8; animation: ev-soon 1.2s ease-in-out infinite; }
@keyframes ev-soon { 50% { box-shadow: 0 0 14px rgba(255, 154, 60, 0.7); } }
.ev-chip small { color: var(--muted); font-weight: 700; }
.ev-chip.ev-boost { border-color: rgba(255, 214, 90, 0.7); }
.ev-chip.ev-block { border-color: rgba(255, 90, 60, 0.7); }
.ev-chip.ev-trade { border-color: rgba(120, 200, 255, 0.7); }

.event-banner { position: absolute; left: 50%; top: 50%; z-index: 20; width: min(440px, calc(100% - 32px)); display: flex; gap: 16px; align-items: center;
  padding: 18px 22px; border-radius: 22px; cursor: pointer; transform: translate(-50%, -50%);
  background: linear-gradient(150deg, rgba(20, 52, 78, 0.97), rgba(9, 24, 38, 0.97)); border: 2px solid #ffd65a;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 214, 90, 0.35);
  animation: eb-in 0.6s cubic-bezier(.2, 1.6, .4, 1); }
.event-banner.ev-block { border-color: #ff5a3c; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 90, 60, 0.4); }
.event-banner.ev-trade { border-color: #7cc8ff; }
.event-banner.out { animation: eb-out 0.5s ease-in forwards; }
@keyframes eb-in { from { opacity: 0; transform: translate(-50%, -50%) scale(0.4) rotate(-6deg); } }
@keyframes eb-out { to { opacity: 0; transform: translate(-50%, -80%) scale(0.9); } }
.eb-icon { font-size: 3.4rem; line-height: 1; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.5)); animation: eb-icon 1.2s ease-in-out infinite; }
@keyframes eb-icon { 50% { transform: scale(1.12) rotate(6deg); } }
.eb-body { display: flex; flex-direction: column; gap: 2px; }
.eb-kicker { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.eb-body strong { font-family: var(--font-display); font-size: 1.5rem; }
.eb-body p { margin: 2px 0 0; color: #d7e4ee; font-size: 0.92rem; }
@media (max-width: 600px) { .event-strip { right: 50px; } .ev-chip small { display: none; } .eb-icon { font-size: 2.4rem; } }

/* ---------- Lobby: Kartenauswahl mit Bildern + Spielart-Vorlagen ---------- */
.map-groups { display: flex; flex-direction: column; gap: 18px; }
.map-group-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.map-group-head h4 { margin: 0; font-size: 1rem; }
.map-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; }
.map-card { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; text-align: left;
  border-radius: 14px; border: 2px solid var(--border); background: var(--panel-2); transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.map-card:hover:not(:disabled) { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.45); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.4); background: var(--panel-2); }
.map-card.active, .map-card.active:hover:not(:disabled) { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244, 197, 90, 0.35), 0 10px 22px rgba(0, 0, 0, 0.4); transform: none; }
.map-card:disabled { cursor: default; opacity: 0.85; }
.map-card.too-small { opacity: 0.45; }
/* Gemalte Felder sind dunkler als die alten flachen – Vorschauen etwas aufhellen */
.mc-img img, #map-preview { filter: brightness(1.06) saturate(1.04); } /* Felder sind jetzt schon im Bild aufgehellt */
.map-card.locked .mc-img img { filter: saturate(0.45) brightness(0.92); }
.mc-img { aspect-ratio: 4 / 3; background: linear-gradient(160deg, #2f8fbf, #165b82); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-random { flex-direction: column; gap: 2px; background: radial-gradient(circle at 50% 40%, #3aa7d6, #124d70); }
.mc-random span { font-size: 2.6rem; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)); }
.mc-random small { font-weight: 800; color: #d8f1ff; }
.mc-body { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px 10px; }
.mc-body strong { font-size: 0.92rem; line-height: 1.2; }
.mc-meta { font-size: 0.76rem; color: var(--muted); }
.mc-flag { position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 800;
  background: var(--gold); color: #2a1a04; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); }
.mc-flag.lock { background: rgba(7, 26, 43, 0.85); color: #ffe39a; border: 1px solid rgba(244, 197, 90, 0.6); }
.mc-flag.small { background: rgba(7, 26, 43, 0.85); color: var(--muted); }

/* ---------- Startseite: zwei klare Wege, Freunde oben ---------- */
.huge-btn { display: flex; align-items: center; justify-content: flex-start; gap: 14px; text-align: left; padding: 18px 20px; }
.hb-icon { font-size: 2.2rem; line-height: 1; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.3)); }
.hb-text { display: flex; flex-direction: column; gap: 2px; }
.hb-text strong { font-size: 1.3rem; }
.hb-text small { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; opacity: 0.85; }
.friends-wrap { position: relative; }
#friends-btn .badge { margin-left: 4px; }
.friends-pop { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; width: min(380px, calc(100vw - 24px)); max-height: 70vh; overflow: auto;
  padding: 14px; border-radius: 16px; background: rgba(10, 30, 48, 0.98); border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); animation: popup-in-menu 0.15s ease-out; }
.friends-pop h2 { margin: 0; font-size: 1.1rem; }
.promo-card .promo-tag { display: block !important; position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 11px; border-radius: 999px;
  font-size: 0.78rem !important; font-weight: 800; letter-spacing: 0.02em; opacity: 1 !important; color: #ffe39a;
  background: rgba(5, 14, 28, 0.82); border: 1.5px solid rgba(244, 197, 90, 0.8); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
@media (max-width: 600px) { .friends-pop { position: fixed; left: 12px; right: 12px; top: 60px; width: auto; } }
/* Kartenkacheln: ganze Insel zeigen statt abschneiden */
.mc-img img { object-fit: contain; padding: 6px; box-sizing: border-box; }

/* ---------- Leistung: weniger Ruckeln ---------- */
/* Kartenkacheln: nur verschieben (läuft auf der Grafikkarte), Schatten nicht animieren */
.map-card { transition: transform 0.15s ease-out, border-color 0.15s; will-change: transform; contain: layout paint; }
.map-card:hover:not(:disabled) { box-shadow: none; }
.mc-img img { image-rendering: auto; }
/* Unschärfe hinter den Lobby-Boxen kostet bei jeder Bewegung viel Rechenzeit – die Boxen sind ohnehin fast deckend */
.lobby-box { backdrop-filter: none; -webkit-backdrop-filter: none; }
/* Kartenvorschau in der Lobby: keine Dauer-Animationen (Glühwürmchen, Funkeln) */
#map-preview *, #map-preview *::before, #map-preview *::after { animation: none !important; }
/* Start-Knopf: Leuchten über die Deckkraft eines Schattens statt den Schatten selbst zu animieren */
#start-btn:not(:disabled) { animation: none; position: relative; }
#start-btn:not(:disabled)::after { content: ''; position: absolute; inset: -3px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 22px rgba(244, 197, 90, 0.75); opacity: 0; animation: start-glow-o 1.8s ease-in-out infinite; }
@keyframes start-glow-o { 50% { opacity: 1; } }
/* Ereignis-Felder: Leuchten ohne Filter (Filter auf SVG sind teuer) */
.ev-hex.ev-boost, .ev-hex.ev-block { filter: none; }
.ev-hex.ev-boost { animation: ev-pulse-o 1.6s ease-in-out infinite; }
@keyframes ev-pulse-o { 50% { opacity: 0.55; } }
/* Kartenkacheln: Bild ist schon 4:3 mit Meer bis zum Rand – einfach füllen */
.mc-img img { object-fit: cover; padding: 0; }
/* Zufallskarten: gleiche Meer-Kachel wie alle anderen, Insel gedimmt, Würfel darüber */
.mc-img { position: relative; background: #1f6f9c; }
.mc-random { background: #1f6f9c; }
.mc-random img { filter: blur(2px) brightness(0.7); transform: scale(1.06); }
.mc-dice { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.mc-dice span { font-size: 2.4rem; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5)); }
.mc-dice small { font-weight: 800; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); }
.mc-random > span:not(.mc-dice) { display: none; }
.mc-random .mc-dice { font-size: 1rem; filter: none; }
.mc-random .mc-dice > span { font-size: 2.4rem; }
.mc-random .mc-dice small { font-size: 0.8rem; }
/* gleiche Meeresfarbe wie in den Kachelbildern – auch hinter den unscharfen Zufallskarten */
.mc-img, .mc-random { background: #267cb6; }
.mc-random img { filter: blur(2px) brightness(0.8); transform: scale(1.12); }
/* Zufallskarten: nicht mehr vergrößern (sonst rutscht die Insel aus der Mitte), nur weich zeichnen */
.mc-random img { transform: none; filter: blur(1.5px) brightness(0.8); }
/* Kacheln: Bild immer ganz oben (Knöpfe zentrieren sonst ihren Inhalt – das gab den Streifen oben) */
.map-card { justify-content: flex-start; }
.map-card .mc-img { flex: none; width: 100%; }

/* ---------- Rechtliches: Fußzeile, Impressum, Datenschutz ---------- */
.site-footer { text-align: center; padding: 22px 16px 30px; font-size: 0.82rem; color: var(--muted); }
.site-footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--text, #fff); }
.legal-page { max-width: 760px; margin: 0 auto; padding: 20px 16px; }
.legal h2 { margin-top: 0; }
.legal h3 { margin: 20px 0 6px; font-size: 1rem; }
.legal p, .legal li { line-height: 1.55; }
.legal a { color: var(--gold); }
.legal .todo { padding: 10px 14px; border-radius: 12px; background: rgba(244, 197, 90, 0.14); border: 1px solid rgba(244, 197, 90, 0.5); }
.beta-banner { background: rgba(87, 196, 114, 0.18) !important; border-color: rgba(87, 196, 114, 0.6) !important; }

/* ---------- Brett-Feinschliff: Zahlenplättchen, Räuber-Auswahl ---------- */
.token { fill: url(#token-face); stroke: #8a6a3a; stroke-width: 1; }
.token-num { font-size: 18px; fill: #2a2016; paint-order: stroke; stroke: rgba(255, 255, 255, 0.7); stroke-width: 2px; }
.token-num.hot { fill: #c62f22; }
.pip { fill: #4a3a26; }
/* Räuber versetzen: nur das Feld unter der Maus wird rot – sonst nur eine dezente Kontur */
.robber-dim { fill: rgba(4, 14, 24, 0.25); }
.robber-option .spot-hex { fill: transparent; stroke: rgba(255, 255, 255, 0.35); stroke-width: 2; stroke-dasharray: 6 6; animation: none; }
.robber-option:hover .spot-hex { fill: rgba(230, 60, 40, 0.38); stroke: #ff5a3c; stroke-width: 4; stroke-dasharray: none; }
/* Würfel: unten links in der Ecke statt mitten auf dem Brett – die getroffenen Felder bleiben sichtbar */
.dice-roll { left: 14px; top: auto; bottom: 14px; transform: scale(0.72); transform-origin: left bottom; gap: 12px; }
@media (max-width: 600px) { .dice-roll { transform: scale(0.55); } }

/* ---------- Fliegende Karten, Diebstahl, Ertrag ---------- */
/* Kartenrückseite: dunkelblau mit Goldrand und Hex-Muster */
.fly-card, .swipe-card { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; width: 48px; height: 68px; border-radius: 7px;
  background: var(--art) center / 100% 100% no-repeat; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55); border: none; font-size: 0; color: transparent; }
.fly-card.big { width: 60px; height: 84px; }
.fly-card.back, .swipe-card.back {
  background:
    radial-gradient(circle at 50% 50%, rgba(244, 197, 90, 0.9) 0 7px, transparent 8px),
    repeating-linear-gradient(60deg, rgba(255, 255, 255, 0.07) 0 3px, transparent 3px 9px),
    repeating-linear-gradient(-60deg, rgba(255, 255, 255, 0.07) 0 3px, transparent 3px 9px),
    linear-gradient(160deg, #1f4f7a, #0d2740);
  border: 2px solid #f4c55a; }
.swipe-card { width: 40px; height: 56px; }

/* "+2 [Karte]" an der Spielerkarte */
.gain-pop { position: absolute; right: 8px; top: -12px; z-index: 5; display: flex; gap: 4px; padding: 3px 6px; border-radius: 999px;
  background: rgba(7, 26, 43, 0.92); border: 1.5px solid var(--gold); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  animation: gain-pop 2.2s ease-out forwards; pointer-events: none; }
.gp-item { display: flex; align-items: center; gap: 2px; font-weight: 900; font-size: 0.8rem; color: #fff; }
.gp-card { display: inline-block; width: 15px; height: 21px; border-radius: 3px; background: var(--art) center / 100% 100% no-repeat; }
@keyframes gain-pop { 0% { opacity: 0; transform: translateY(8px) scale(0.6); } 12% { opacity: 1; transform: translateY(0) scale(1.1); } 20% { transform: scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }

/* Diebstahl-Banner (nur Dieb und Opfer) */
.steal-banner { position: absolute; left: 50%; top: 18%; z-index: 21; transform: translateX(-50%); display: flex; align-items: center; gap: 14px;
  padding: 12px 18px 12px 12px; border-radius: 18px; background: rgba(9, 24, 38, 0.96); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  animation: steal-in 0.5s cubic-bezier(.2, 1.6, .4, 1); pointer-events: none; }
.steal-banner.won { border: 2px solid #7fe08f; }
.steal-banner.lost { border: 2px solid #ff6a4d; }
.steal-banner.out { animation: eb-out 0.5s ease-in forwards; }
.sb-card { width: 56px; height: 78px; border-radius: 7px; background: var(--art) center / 100% 100% no-repeat; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5); transform: rotate(-6deg); }
.steal-banner.lost .sb-card { filter: grayscale(0.3); transform: rotate(8deg); }
.sb-text { display: flex; flex-direction: column; gap: 2px; }
.sb-text strong { font-family: var(--font-display); font-size: 1.35rem; }
.steal-banner.won strong { color: #9be58c; }
.steal-banner.lost strong { color: #ff9a85; }
@keyframes steal-in { from { opacity: 0; transform: translateX(-50%) scale(0.5) rotate(-4deg); } }

/* ---------- Handelsfenster (schwebt über der Hand) ---------- */
.bottom-bar { position: sticky; }
.trade2 { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); z-index: 30;
  width: min(760px, calc(100vw - 24px)); padding: 14px 16px 12px; border-radius: 20px;
  background: rgba(10, 30, 48, 0.97); border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 -6px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(244, 197, 90, 0.25); animation: panel-in 0.18s ease-out;
  display: flex; flex-direction: column; gap: 10px; }
.trade2[hidden] { display: none; }
.t2-head { display: flex; align-items: center; gap: 10px; }
.t2-head h2 { margin: 0; flex: 1; font-size: 1.15rem; }
.close-x { width: 34px; height: 34px; padding: 0; border-radius: 50%; }
.t2-body { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; }
.t2-side { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; }
.t2-side.give { background: rgba(226, 88, 63, 0.1); border: 1px solid rgba(226, 88, 63, 0.35); }
.t2-side.want { background: rgba(87, 196, 114, 0.1); border: 1px solid rgba(87, 196, 114, 0.35); }
.t2-label { font-weight: 800; font-size: 0.9rem; }
.t2-label small { font-weight: 600; color: var(--muted); }
.t2-arrow { align-self: center; font-size: 1.8rem; color: var(--gold); }
.t2-cards { display: flex; gap: 6px; justify-content: space-between; }
.t2-slot { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; min-width: 0; }
.t2-slot .res-card { --w: 50px; }
.t2-slot .res-card .count { min-width: 22px; height: 22px; line-height: 18px; font-size: 0.8rem; top: -7px; right: -7px; background: var(--gold); color: #2a1a04; }
.t2-slot.picked .res-card { box-shadow: 0 0 0 3px var(--gold), 0 6px 14px rgba(0, 0, 0, 0.45); }
.t2-slot.empty .res-card { opacity: 0.35; filter: grayscale(0.6); cursor: not-allowed; }
.t2-info { font-size: 0.66rem; color: var(--muted); text-align: center; white-space: nowrap; }
.t2-info.harbor { color: var(--gold); font-weight: 800; }
.t2-summary { margin: 0; text-align: center; font-weight: 700; font-size: 0.9rem; }
.t2-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.t2-actions button { padding: 11px; font-size: 0.98rem; }
.t2-rates { margin: 0; text-align: center; font-size: 0.78rem; }
@media (max-width: 700px) {
  .t2-body { grid-template-columns: 1fr; }
  .t2-arrow { transform: rotate(90deg); justify-self: center; font-size: 1.3rem; }
  .t2-slot .res-card { --w: 44px; }
  .t2-info { font-size: 0.6rem; }
}

/* ---------- Bau-Übersicht neben der Hand ---------- */
.cost-strip { margin-left: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 6px; align-content: end; min-width: 300px; }
#build-buttons:empty { display: none; }
@media (max-width: 900px) { .cost-strip { margin-left: 0; width: 100%; min-width: 0; } }

/* ---------- Spezialkarten mit Bild ---------- */
.dev-card.art { position: relative; padding: 0; border: none; background: var(--art) center / 100% 100% no-repeat; color: #2a2014;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.4); transition: transform 0.18s cubic-bezier(.3, 1.4, .5, 1); overflow: visible; }
button.dev-card.art:hover:not(:disabled), button.dev-card.art:focus { background: var(--art) center / 100% 100% no-repeat; }
.dev-card.art .label { position: absolute; left: 0; right: 0; bottom: 8%; height: 21%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 0.72rem; color: #2a2014; }
.dev-card.art .count { position: absolute; top: -8px; right: -8px; min-width: 24px; height: 24px; line-height: 20px; border-radius: 12px;
  background: #1d2633; color: #fff; border: 2px solid #fff; font-weight: 800; font-size: 0.8rem; text-align: center; opacity: 1; }
.dev-card.art .shine { position: absolute; inset: 0; border-radius: 10px; overflow: hidden; pointer-events: none; }
.dev-card.art .shine::after { content: ''; position: absolute; top: -20%; bottom: -20%; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent); transform: skewX(-15deg); }
.dev-card.art:hover .shine::after { animation: card-shine 0.7s ease-out; }
.dev-card.art.playable { box-shadow: 0 0 0 3px var(--gold), 0 0 18px rgba(244, 197, 90, 0.6); }
.dev-card.art:disabled { opacity: 0.75; }

/* Bau-Übersicht: direkt neben den Rohstoffkarten, immer in Farbe */
.cost-strip { margin-left: 0; align-self: flex-end; min-width: 280px; }

/* ---------- Spielerleiste neu ---------- */
.players-col .player-card { padding: 10px 12px; border-left-width: 6px; background: linear-gradient(100deg, color-mix(in srgb, var(--pcolor, #888) 16%, var(--panel-2)) 0%, var(--panel-2) 55%); }
.player-card.current { box-shadow: 0 0 0 2px var(--gold), 0 0 20px rgba(244, 197, 90, 0.3); }
.pc-head { display: flex; align-items: center; gap: 10px; }
.pc-avatar { position: relative; width: 44px; height: 44px; flex: none; display: grid; place-items: center; }
.pc-avatar .avatar { width: 36px; height: 36px; font-size: 1.1rem; position: relative; z-index: 1; }
.vp-ring { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--ring) var(--pct), rgba(255, 255, 255, 0.12) 0); }
.vp-ring::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--panel-2); }
.pc-who { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.pc-who .pname { font-weight: 800; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-sub { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.turn-pill { color: var(--gold); font-weight: 800; animation: turn-blink 1.4s ease-in-out infinite; }
@keyframes turn-blink { 50% { opacity: 0.55; } }
.off-pill { color: #ff9a85; font-weight: 800; }
.pc-vp { display: flex; align-items: baseline; gap: 1px; padding: 3px 10px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(244, 197, 90, 0.4); }
.pc-vp b { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold); line-height: 1; }
.pc-vp small { font-size: 0.75rem; color: var(--muted); font-weight: 800; }
.pc-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; }
.pc-chips .chip { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 3px 0; border-radius: 8px; background: rgba(0, 0, 0, 0.25); font-size: 0.8rem; }
.pc-awards { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.award-pill { padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; color: #2a1a04; background: linear-gradient(180deg, #ffe58a, #f0b93a); }
/* Eigene Karte */
.player-card.me { padding: 12px 14px; border-left-width: 8px; }
.player-card.me .pc-avatar { width: 52px; height: 52px; }
.player-card.me .pc-avatar .avatar { width: 42px; height: 42px; font-size: 1.3rem; }
.player-card.me .pc-vp b { font-size: 2rem; }
.me-goal { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.me-bar { flex: 1; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.me-bar span { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #f0b93a, #ffe58a); transition: width 0.6s ease; }
.me-left { font-size: 0.72rem; font-weight: 800; color: var(--muted); white-space: nowrap; }
.me-points { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.me-points li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 8px; font-size: 0.82rem; opacity: 0.6; }
.me-points li.has { opacity: 1; background: rgba(244, 197, 90, 0.08); }
.mp-label { display: flex; flex-direction: column; line-height: 1.15; }
.mp-label small { font-size: 0.68rem; color: var(--muted); }
.mp-vp { font-family: var(--font-display); color: var(--gold); }

/* ---------- Bau-Knöpfe (ersetzen die Kosten-Zeilen) ---------- */
.cost-strip { display: flex; gap: 8px; align-items: flex-end; min-width: 0; margin-left: 4px; grid-template-columns: none; }
.bb { position: relative; width: 70px; height: 78px; padding: 6px 4px 8px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  background: linear-gradient(180deg, #23435f, #172f45); border: 2px solid rgba(255, 255, 255, 0.12); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; cursor: pointer; overflow: visible; }
.bb:hover:not(:disabled) { background: linear-gradient(180deg, #2a4f6f, #1b3650); }
.bb .bb-svg { width: 52px; height: 42px; overflow: visible; }
.bb.ok { border-color: rgba(127, 224, 143, 0.75); background: linear-gradient(180deg, #2c5a4a, #1a3b33); box-shadow: 0 0 14px rgba(127, 224, 143, 0.35), 0 4px 10px rgba(0, 0, 0, 0.35); }
.bb.ok:hover:not(:disabled) { background: linear-gradient(180deg, #336a57, #1f463c); }
.bb.usable:hover { transform: translateY(-3px); }
.bb.active { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(244, 197, 90, 0.55); }
.bb-left { position: absolute; top: -8px; right: -8px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; line-height: 18px; text-align: center;
  font-size: 0.75rem; font-weight: 900; background: #0d2234; color: #fff; border: 2px solid rgba(255, 255, 255, 0.7); }
.bb-dots { display: flex; gap: 2px; }
.bb-dot { width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--c); background: transparent; box-sizing: border-box; }
.bb-dot.have { background: var(--c); box-shadow: 0 0 4px var(--c); }
.bb-tip { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(4px); z-index: 40; opacity: 0; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 12px; white-space: nowrap;
  background: rgba(8, 24, 38, 0.97); border: 1px solid var(--border); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5); transition: opacity 0.12s, transform 0.12s; }
.bb:hover .bb-tip { opacity: 1; transform: translateX(-50%) translateY(0); }
.bb-tip strong { font-size: 0.9rem; }
.bb-tip small { font-size: 0.72rem; color: var(--muted); }
.bb-tip-cards { display: flex; gap: 4px; }
.bb-tip-card { width: 30px; height: 42px; border-radius: 4px; background: var(--art) center / 100% 100% no-repeat; position: relative; opacity: 0.45; filter: saturate(0.5); }
.bb-tip-card.have { opacity: 1; filter: none; box-shadow: 0 0 0 2px #7fe08f; }
@media (max-width: 700px) { .bb { width: 56px; height: 66px; } .bb .bb-svg { width: 42px; height: 34px; } }

/* ---------- Sprechblasen-Emotes ("DU HUUI!", "Powernap") ---------- */
.emote-btn.text-emote { font-size: 0.72rem; font-weight: 900; padding: 3px 9px 4px; border-radius: 12px 12px 12px 3px; letter-spacing: 0.02em;
  background: #fff; color: #1d2633; border: 2px solid #1d2633; margin-left: 2px; }
.emote-btn.text-emote:hover:not(:disabled) { background: #fff6c2; color: #1d2633; transform: rotate(-3deg) scale(1.05); }
@keyframes speech-pop {
  0% { opacity: 0; transform: scale(0.3) rotate(-8deg); }
  12% { opacity: 1; transform: scale(1.12) rotate(3deg); }
  20% { transform: scale(1) rotate(-1deg); }
  85% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: translateY(-10px) scale(0.95); }
}

/* ---------- Titel: Längste Straße / Größte Armee ---------- */
.award-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 0; }
.award-card { --hc: #6b7a8a; display: flex; align-items: center; gap: 7px; padding: 7px 8px; border-radius: 12px; min-width: 0;
  background: rgba(255, 255, 255, 0.04); border: 1.5px dashed rgba(255, 255, 255, 0.18); }
.award-card.taken { border: 2px solid var(--hc); background: linear-gradient(135deg, color-mix(in srgb, var(--hc) 28%, transparent), rgba(255, 255, 255, 0.03)); }
.award-card.mine { box-shadow: 0 0 14px rgba(244, 197, 90, 0.45); }
.ac-icon { font-size: 1.4rem; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4)); }
.award-card:not(.taken) .ac-icon { filter: grayscale(0.8); opacity: 0.6; }
.ac-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.ac-text strong { font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-holder { display: flex; align-items: center; gap: 4px; font-size: 0.74rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--hc); flex: none; box-shadow: 0 0 0 1.5px #fff; }
.ac-free { font-size: 0.68rem; color: var(--muted); }
.ac-vp { font-family: var(--font-display); font-size: 0.85rem; color: var(--gold); padding: 1px 6px; border-radius: 8px; background: rgba(0, 0, 0, 0.3); }
.award-card:not(.taken) .ac-vp { opacity: 0.5; }

.award-banner { --hc: #f4c55a; position: absolute; left: 50%; top: 12%; z-index: 21; transform: translateX(-50%); display: flex; align-items: center; gap: 12px;
  padding: 12px 20px; border-radius: 18px; background: rgba(9, 24, 38, 0.96); border: 2.5px solid var(--hc);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 30px color-mix(in srgb, var(--hc) 50%, transparent);
  animation: steal-in 0.5s cubic-bezier(.2, 1.6, .4, 1); pointer-events: none; white-space: nowrap; }
.award-banner.out { animation: eb-out 0.5s ease-in forwards; }
.ab-icon { font-size: 2.4rem; }
.ab-text { display: flex; flex-direction: column; }
.ab-text strong { font-family: var(--font-display); font-size: 1.25rem; }
.ab-text small { color: var(--muted); font-weight: 700; }
.award-bar { grid-template-columns: 1fr; gap: 5px; }
.ac-text { flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ac-text strong { font-size: 0.82rem; }

/* ---------- Titel dezenter ---------- */
.award-bar { gap: 3px; margin: 6px 0 8px; }
.award-card, .award-card.taken { padding: 3px 8px; border-radius: 8px; border: none; background: rgba(255, 255, 255, 0.04); box-shadow: none; gap: 6px; }
.award-card.taken { background: rgba(255, 255, 255, 0.06); box-shadow: inset 3px 0 0 var(--hc); }
.award-card.mine { box-shadow: inset 3px 0 0 var(--hc); }
.ac-icon { font-size: 0.9rem; }
.ac-text strong { font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.award-card.taken .ac-text strong { color: inherit; }
.ac-holder { font-size: 0.72rem; font-weight: 700; }
.ac-dot { width: 7px; height: 7px; box-shadow: none; }
.ac-free { font-size: 0.66rem; }
.ac-vp { font-size: 0.7rem; padding: 0 5px; background: none; color: var(--muted); }
.award-card.taken .ac-vp { color: var(--gold); }
/* Hinweis beim Titelwechsel: kleine Pille oben statt großem Banner */
.award-banner { top: 12px; padding: 6px 14px; gap: 8px; border-radius: 999px; border-width: 1.5px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45); animation: panel-in 0.25s ease-out; }
.ab-icon { font-size: 1.1rem; }
.ab-text { flex-direction: row; align-items: baseline; gap: 8px; }
.ab-text strong { font-family: var(--font-body); font-size: 0.85rem; font-weight: 800; }
.ab-text small { font-size: 0.72rem; }

/* ---------- Handelsfenster aufgeräumt ---------- */
.trade2 { position: fixed; left: 50%; bottom: 180px; transform: translateX(-50%); width: min(700px, calc(100vw - 24px));
  padding: 14px 16px; gap: 12px; animation: none; z-index: 45; }
.trade2.opening { animation: trade-open 0.18s ease-out; }
@keyframes trade-open { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%); } }
.t2-head h2 { font-size: 1.05rem; }
.t2-body { gap: 10px; }
.t2-side { padding: 10px 10px 8px; gap: 8px; }
.t2-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.t2-side.give .t2-label { color: #ffb3a3; }
.t2-side.want .t2-label { color: #a8efb4; }
.t2-cards { gap: 6px; justify-content: space-between; }
.t2-slot { gap: 4px; }
.t2-slot .res-card.t2-card { --w: 48px; }
.t2-slot .res-card.t2-card .label { font-size: 0.5rem; }
.t2-slot .res-card.t2-card .count { min-width: 22px; height: 22px; line-height: 18px; font-size: 0.8rem; top: -8px; right: -8px; background: var(--gold); color: #2a1a04; border-color: #fff; }
.t2-slot .res-card.t2-card:hover { transform: translateY(-3px); }
.t2-slot.picked .res-card.t2-card { box-shadow: 0 0 0 2.5px var(--gold), 0 6px 14px rgba(0, 0, 0, 0.45); }
.t2-info { display: flex; flex-direction: column; align-items: center; gap: 1px; font-size: 0.68rem; line-height: 1.15; }
.t2-harbor { color: var(--gold); font-size: 0.66rem; }
.t2-arrow { font-size: 1.5rem; }
.t2-summary { font-size: 0.88rem; padding: 6px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.25); }
.t2-actions button { padding: 10px; font-size: 0.95rem; }
.t2-actions button:disabled { opacity: 0.45; }

/* Spielbrett: Zahlen & Beschriftungen nicht als Text markierbar (sonst wird beim Verschieben "kopiert") */
#board, #board *, .board-wrap { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* Zu viele Karten (über der Abgabe-Grenze): Karten-Anzeige leuchtet rot */
.pc-chips .chip.over-limit { color: #fff; background: rgba(226, 66, 48, 0.35); box-shadow: 0 0 0 1.5px #ff5a3c, 0 0 10px rgba(255, 90, 60, 0.55);
  animation: over-limit 2.4s ease-in-out infinite; }
@keyframes over-limit { 50% { box-shadow: 0 0 0 1.5px #ff5a3c, 0 0 16px rgba(255, 90, 60, 0.85); } }

/* Am Zug: weiches, langsames Leuchten um das Profilbild statt hartem Blinken */
.player-card.current .avatar { animation: avatar-soft 3.2s ease-in-out infinite; }
@keyframes avatar-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 197, 90, 0), 0 2px 6px rgba(0, 0, 0, 0.35); }
  50% { box-shadow: 0 0 10px 3px rgba(244, 197, 90, 0.38), 0 2px 6px rgba(0, 0, 0, 0.35); }
}
.turn-pill { animation: turn-soft 3.2s ease-in-out infinite; }
@keyframes turn-soft { 50% { opacity: 0.7; } }

/* ---------- Männchen als Profilbild ---------- */
/* Das SVG ist schon als Brustbild zugeschnitten – einfach füllen, nichts verschieben */
.avatar.char { padding: 0; overflow: hidden; display: inline-grid; place-items: center; background-color: #2f5a7c; position: relative; }
.avatar.char img { width: 100%; height: 100%; display: block; pointer-events: none; }
.avatar.tiny { width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; }
.friend-list .avatar.char .dot { position: absolute; right: -1px; bottom: -1px; z-index: 1; }
.profile-chip .avatar.char { width: 30px; height: 30px; }

/* Männchen-Editor: Kategorien oben, darunter große Kacheln mit Namen */
.ce-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ce-mini { display: none; width: 56px; height: 56px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 2px var(--gold); }
.ce-cats { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.ce-cat { padding: 8px 14px; border-radius: 999px; font-size: 0.9rem; background: var(--panel-2); border: 1px solid var(--border); color: var(--muted); box-shadow: none; }
.ce-cat.on, .ce-cat.on:hover:not(:disabled) { background: rgba(244, 197, 90, 0.16); border-color: rgba(244, 197, 90, 0.7); color: var(--text); }
.ce-cat-icon { font-size: 1rem; }
.ce-actions { display: flex; gap: 6px; }
.ce-actions button { padding: 8px 12px; font-size: 0.9rem; }
.ce-options { display: flex; flex-direction: column; gap: 20px; }
.ce-group { display: flex; flex-direction: column; gap: 10px; }
.ce-group h4 { margin: 0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.ce-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.ce-opt { position: relative; flex-direction: column; gap: 0; padding: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 1 / 1.12;
  background: var(--panel-2); border: 2px solid var(--border); box-shadow: none;
  transition: transform 0.12s, border-color 0.12s, background 0.12s; }
.ce-opt img { width: calc(100% - 12px); margin: 6px 6px 0; flex: 1; min-height: 0; aspect-ratio: 1; object-fit: contain; display: block; pointer-events: none;
  border-radius: 10px; background: var(--paper); }
.ce-opt-name { width: 100%; padding: 4px 4px 6px; font-size: 0.75rem; font-weight: 700; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ce-opt:hover:not(:disabled) { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.1); }
.ce-opt.on, .ce-opt.on:hover:not(:disabled) { border-color: var(--gold); background: rgba(244, 197, 90, 0.2); }
.ce-opt.on .ce-opt-name { color: var(--text); }
.ce-opt.on::after { content: '✓'; position: absolute; top: 5px; right: 5px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: #2a2014; font-size: 0.7rem; font-weight: 900; }
.ce-grid.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.ce-opt.swatch { width: 40px; height: 40px; aspect-ratio: auto; border-radius: 50%; background: var(--swatch); border: 3px solid rgba(255, 255, 255, 0.18); }
.ce-opt.swatch:hover:not(:disabled) { background: var(--swatch); border-color: rgba(255, 255, 255, 0.5); }
.ce-opt.swatch.on, .ce-opt.swatch.on:hover:not(:disabled) { background: var(--swatch); border-color: #fff; box-shadow: 0 0 0 3px var(--gold); }
.ce-opt.swatch.on::after { display: none; }
.ce-status { margin: 0; font-size: 0.8rem; }

@media (max-width: 860px) {
  .pf { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
  .pf-side { position: static; display: grid; grid-template-columns: auto minmax(0, 1fr); text-align: left; gap: 8px 16px; padding: 16px; }
  .pf-portrait { width: 96px; height: 96px; grid-row: span 3; box-shadow: 0 0 0 3px var(--gold), 0 8px 18px rgba(0, 0, 0, 0.4); }
  .pf-name input { text-align: left; padding: 4px 28px 4px 8px; font-size: 1.3rem; }
  .pf-id { justify-self: start; margin-top: 0; }
  .pf-stats { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .pf-note { grid-column: 1 / -1; }
  /* Vorschau wandert in den Editor, damit man das Männchen beim Bauen sieht */
  .pf-panel[data-panel="maennchen"] .ce-top { position: sticky; top: 0; z-index: 2; margin: -24px -24px 0; padding: 12px 16px; background: var(--panel-solid); border-radius: 14px 14px 0 0; border-bottom: 1px solid var(--border); }
  .ce-mini { display: block; }
}
@media (max-width: 520px) {
  .pf-panel { padding: 16px; }
  .pf-panel[data-panel="maennchen"] .ce-top { margin: -16px -16px 0; }
  .pf-tabs { display: grid; grid-template-columns: repeat(4, 1fr); }
  .pf-tabs button { flex-direction: column; gap: 2px; padding: 8px 4px; font-size: 0.78rem; position: relative; }
  .pf-tabs .pf-tab-icon { font-size: 1.15rem; }
  .pf-tabs .pf-badge { position: absolute; top: 4px; right: 8px; }
  /* Editor-Kopf: Vorschau + Knöpfe oben, Kategorien als wischbare Zeile darunter */
  .ce-top { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
  .ce-actions { justify-self: end; }
  .ce-cats { order: 3; grid-column: 1 / -1; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .ce-cat { flex: none; }
  .ce-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
  .ce-actions span { display: none; }
  .pf-stats dd { font-size: 1.1rem; }
}

/* ---------- Würfeln: groß unten rechts (wie „Zug beenden“) ---------- */
.action-row { position: relative; }
#roll-btn { order: 99; margin-left: auto; min-width: 230px; padding: 16px 28px; font-size: 1.35rem; font-family: var(--font-display); font-weight: 800;
  border-radius: 16px; animation: roll-ready 2.6s ease-in-out infinite; }
#roll-btn:not([hidden]) ~ #end-turn { margin-left: 8px; }
#end-turn { order: 100; min-width: 200px; padding: 14px 24px; font-size: 1.15rem; font-family: var(--font-display); font-weight: 800; border-radius: 16px; }
@keyframes roll-ready { 50% { box-shadow: 0 0 22px rgba(244, 197, 90, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.6); } }
@media (max-width: 600px) {
  #roll-btn, #end-turn { min-width: 0; flex: 1 1 100%; padding: 14px; font-size: 1.15rem; }
}

/* =====================================================================
   Spieltisch (v2): links groß das Brett, rechts Chat/Bank/Spieler,
   unten Hand + große Knöpfe. Alles passt in ein Fenster, nichts scrollt.
   ===================================================================== */
@media (min-width: 901px) {
  body.in-game { height: 100vh; height: 100dvh; overflow: hidden; }
  body.in-game .site-footer { display: none; }

  /* Kopfzeile wird zur schmalen Icon-Leiste am linken Rand */
  body.in-game > header { position: fixed; z-index: 20; left: 10px; top: 10px; bottom: 10px; width: 56px; padding: 10px 0;
    flex-direction: column; justify-content: flex-start; align-items: center; gap: 12px;
    background: rgba(7, 26, 43, 0.72); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); }
  body.in-game > header h1 { flex-direction: column; gap: 4px; font-size: 0.7rem; }
  body.in-game > header h1 .brand { display: none; }
  body.in-game > header h1 .hint { font-size: 0.62rem; text-align: center; line-height: 1.1; }
  body.in-game > header h1 .hint strong { display: block; font-size: 0.78rem; color: var(--text); }
  body.in-game > header .logo { width: 38px; height: 38px; }
  body.in-game > header .controls { flex-direction: column; flex-wrap: nowrap; gap: 8px; }
  body.in-game > header .controls > button, body.in-game > header .controls > .button,
  body.in-game > header .music-wrap > button { width: 42px; height: 42px; padding: 0; border-radius: 12px; font-size: 1.05rem; }
  body.in-game > header .hide-sm, body.in-game > header #conn-status:empty { display: none; }
  body.in-game > header #conn-status { font-size: 0.6rem; text-align: center; max-width: 52px; }
  body.in-game > header .coin-chip { flex-direction: column; gap: 0; padding: 5px 4px; width: 46px; font-size: 0.72rem; border-radius: 12px; }
  body.in-game > header .music-menu { left: calc(100% + 10px); right: auto; top: 0; }

  .game2 { height: 100vh; height: 100dvh; padding: 10px 10px 10px 78px; gap: 10px;
    grid-template-columns: minmax(0, 1fr) clamp(300px, 24vw, 360px); grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas: "main players" "bar players"; align-items: stretch; }
  .game2 .game-main { display: flex; min-height: 0; }
  .game2 .board-wrap { flex: 1; min-height: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
  .game2 .game-main #board { width: 100%; height: 100%; min-height: 0; max-width: none; border-radius: 22px; box-shadow: none; }

  /* Rechte Spalte: Chat füllt den Platz, Bank und Spieler darunter */
  .game2 .players-col { grid-area: players; max-height: none; min-height: 0; overflow: hidden; gap: 10px; }
  .game2 .players-col > section { padding: 10px; gap: 8px; box-shadow: none; }
  /* Chat bleibt kompakt (feste, kleine Höhe) – den Rest bekommen die Spieler */
  .game2 .chat-box { flex: 0 0 auto; }
  .game2 .players-col .chat-box .chat-list { height: clamp(70px, 14vh, 150px); min-height: 0; max-height: none; }
  .game2 .players-col .chat-box .log, .game2 .players-col .chat-box .stats { height: clamp(150px, 26vh, 260px); min-height: 0; max-height: none; overflow-y: auto; }
  .game2 .players-box { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
  .game2 .bottom-bar { grid-area: bar; position: relative; border-radius: 20px; border-bottom: 1px solid var(--border); }
}

/* Bank: kleine Karten mit Vorrat */
.bank-row { display: flex; align-items: center; gap: 6px; flex-direction: row !important; }
.bank-label { font-size: 1.3rem; margin-right: 2px; }
.bank-card { position: relative; flex: 1; max-width: 44px; aspect-ratio: 5 / 7; border-radius: 6px; background: var(--art) center / 100% 100% no-repeat;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.4); }
.bank-card b { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 20px; padding: 0 4px; border-radius: 10px; display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 900; background: #0d2234; color: #fff; border: 2px solid rgba(255, 255, 255, 0.75); }
.bank-card.empty { opacity: 0.35; filter: grayscale(0.8); }
.bank-card.dev { margin-left: 4px; }
.bank-card.dev.back { background: var(--art) center / contain no-repeat; box-shadow: none; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45)); }
/* Rohstoffkarten: ohne Schriftzug – das Bild füllt die ganze Karte */
.res-card .label { display: none; }

/* Spielerliste: kompakte Zeilen, eigene Karte unten etwas größer */
.game2 .players-box h2 { font-size: 0.95rem; }
.game2 .player-card { padding: 8px 10px; }
.game2 .player-card.me { padding: 10px 12px; margin-top: 4px; }
.game2 .pc-chips { margin-top: 6px; }
.me-details { margin-top: 8px; }
.me-details > summary { list-style: none; cursor: pointer; }
.me-details > summary::-webkit-details-marker { display: none; }
.me-details > summary .me-goal { margin-top: 0; }
.me-details > summary .me-left::after { content: ' ▾'; }
.me-details[open] > summary .me-left::after { content: ' ▴'; }

/* Würfel: groß unten rechts auf dem Brett, dort landet auch die Wurf-Animation */
.game2 .board-wrap > #dice { position: absolute; right: 14px; bottom: 14px; z-index: 4; gap: 10px; padding: 8px; border-radius: 18px;
  background: rgba(7, 26, 43, 0.55); backdrop-filter: blur(4px); pointer-events: auto; transition: opacity 0.2s; }
.game2 .board-wrap > #dice .die { width: 54px; height: 54px; padding: 7px; border-radius: 12px; }
.game2 .board-wrap > #dice .die .pip { margin: 2.5px; }
.game2 .board-wrap > #dice .dice-total { font-size: 1.6rem; padding: 2px 10px; }
.game2 .board-wrap:has(.dice-roll) > #dice { opacity: 0; }
.game2 .dice-roll { left: auto; right: 14px; bottom: 14px; top: auto; transform: scale(0.75); transform-origin: right bottom; }
.game2 .zoom-controls { top: 12px; bottom: auto; }

/* Unten: links die Karten, rechts Status + Knöpfe */
.game2 .hand-row { display: flex; flex-wrap: nowrap; align-items: flex-end; gap: 16px; min-height: 0; padding: 2px; }
.game2 .hand-cards { flex: 1; min-width: 0; display: flex; align-items: flex-end; gap: 14px; overflow-x: auto; overflow-y: visible; padding-top: 14px; }
.game2 #hand .res-card { --w: 84px; }
.game2 .dev-hand .dev-card { width: 84px; height: 118px; }
.game2 .act-col { flex: none; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.game2 #turn-banner { margin: 0; padding: 8px 14px; border-radius: 14px; border: 2px solid #888; border-left-width: 2px; box-shadow: none;
  background: rgba(255, 255, 255, 0.06); font-size: 0.98rem; display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.game2 #banner-text { min-width: 0; flex: 1; }
.game2 .timer { flex: 0 0 96px; }
.game2 .action-row { display: flex; flex-wrap: nowrap; gap: 8px; align-items: stretch; }
/* Bau-Knöpfe stehen direkt in der Knopfreihe (eine Zeile mit Handeln und Zug beenden) */
.game2 .cost-strip { display: contents; }
.game2 .bb, .game2 .act-btn { width: 78px; height: 86px; }
.act-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px 4px; border-radius: 14px;
  background: linear-gradient(180deg, #23435f, #172f45); border: 2px solid rgba(255, 255, 255, 0.12); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35); }
.act-btn .act-icon { font-size: 1.9rem; line-height: 1; }
.act-btn .act-label { font-size: 0.75rem; font-weight: 800; }
.act-btn.active { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(244, 197, 90, 0.55); }
.act-btn:disabled { opacity: 0.5; }
.game2 #roll-btn, .game2 #end-turn { order: 0; margin-left: 0; min-width: 190px; height: 86px; padding: 0 20px; font-size: 1.25rem; }
.game2 #roll-btn:not([hidden]) ~ #end-turn { margin-left: 0; }
.game2 #end-turn:disabled { background: rgba(255, 255, 255, 0.07); border-color: var(--border); color: var(--muted); font-size: 1rem; box-shadow: none; opacity: 1; }

/* Meer im klassischen Look: gemaltes Bild (public/sea/meer.jpg), ohne Animation.
   Der Farbverlauf ist nur zu sehen, bis das Bild geladen ist. */
.board-wrap.live-sea { background: linear-gradient(180deg, #2a86c2, #1b5e93); border-radius: 22px; overflow: hidden; isolation: isolate; }
.board-wrap.live-sea #board { background: transparent; }
/* Optionales Meer-Video (SEA_VIDEO in room.js, zurzeit aus): Bildinhalt ist ein Quadrat mitten im
   16:9-Video. Das Quadrat wird so groß wie die längere Brettseite → schwarze Balken liegen außerhalb. */
.sea-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; container-type: size; display: none;
  background: var(--sea-img, url('/sea/meer.jpg')) center / cover no-repeat; } /* --sea-img: Meerbild des Looks (room.js) */
.board-wrap.live-sea .sea-bg { display: block; }
.sea-bg video {
  position: absolute; top: 50%; left: 50%; height: 100cqmax; width: calc(100cqmax * 16 / 9);
  transform: translate(-50%, -50%); opacity: 0; transition: opacity 1.2s linear;
  filter: saturate(0.9) brightness(0.95);
}
.sea-bg video.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .sea-bg video { display: none !important; } }

/* ---------- Startseite: „Mehr Hexheim“ – drei kleine Kästchen, jedes führt in den Shop ---------- */
.promo-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
/* Kästchen: Bild oben, darunter kurzer, gut lesbarer Text */
.promo .promo-trio .promo-card { aspect-ratio: auto; min-height: 0; padding: 0; gap: 0; justify-content: flex-start; background: var(--panel-solid); border: 1px solid var(--border-strong); }
.promo .promo-trio .promo-card::before { display: none; }
.promo .promo-trio .promo-card .promo-art { display: block; position: relative; aspect-ratio: 640 / 420; overflow: hidden; opacity: 1; font-size: inherit; background: #1d6a92; }
.promo .promo-trio .promo-card .promo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform 0.4s ease; }
/* Zwei Bilder schräg geteilt; jedes so verschoben, dass seine Mitte in seiner Hälfte liegt */
/* (clip-path wandert mit der Verschiebung mit – daher sind die Schnittkanten um ±20 % versetzt angegeben) */
.promo-art.split .part-0 { clip-path: polygon(20% 0, 78% 0, 62% 100%, 20% 100%); transform: translateX(-20%); }
.promo-art.split .part-1 { clip-path: polygon(38% 0, 80% 0, 80% 100%, 22% 100%); transform: translateX(20%); }
.promo .promo-trio .promo-card:hover .promo-art:not(.split) .promo-img { transform: scale(1.05); }
.promo .promo-trio .promo-card:hover .promo-art.split .part-0 { transform: translateX(-20%) scale(1.04); }
.promo .promo-trio .promo-card:hover .promo-art.split .part-1 { transform: translateX(20%) scale(1.04); }
.promo-art.split::after { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(255, 255, 255, 0.9);
  clip-path: polygon(57.6% 0, 58.4% 0, 42.4% 100%, 41.6% 100%); }
.promo .promo-trio .promo-card .promo-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; opacity: 1; font-size: 1rem; }
.promo .promo-trio .promo-card .promo-body strong { display: block; font-size: 1.05rem; text-shadow: none; }
.promo .promo-trio .promo-card .promo-body > span { display: block; font-size: 0.85rem; color: var(--muted); opacity: 1; line-height: 1.35; }
.promo .promo-trio .promo-card .promo-tag { font-size: 0.7rem !important; padding: 3px 9px; top: 8px; left: 8px; }
/* Handy: Kästchen untereinander, Bild links klein, Text rechts */
@media (max-width: 560px) {
  .promo-trio { grid-template-columns: 1fr; gap: 8px; }
  .promo .promo-trio .promo-card { flex-direction: row; align-items: stretch; }
  .promo .promo-trio .promo-card .promo-art { flex: 0 0 42%; }
  .promo .promo-trio .promo-card .promo-body { justify-content: center; }
}

/* Easter Egg „/jakobus“: ganz kurz alles dunkelrot + Schriftzug */
.easter-jakobus { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(140, 0, 0, 0.8), rgba(60, 0, 0, 0.93));
  animation: jakobus-flash 1.8s ease-out forwards; }
.easter-jakobus span { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 8vw, 6.5rem); color: #ffdede; letter-spacing: 0.02em;
  text-shadow: 0 0 30px rgba(255, 40, 40, 0.9), 0 6px 0 #3a0000; transform: rotate(-4deg); animation: jakobus-text 1.8s cubic-bezier(.2, 1.6, .4, 1) forwards;
  padding: 0 16px; text-align: center; word-break: break-all; }
@keyframes jakobus-flash { 0% { opacity: 0; } 8% { opacity: 1; } 70% { opacity: 1; } 100% { opacity: 0; } }
@keyframes jakobus-text { 0% { transform: rotate(-4deg) scale(0.3); } 15% { transform: rotate(3deg) scale(1.12); } 25% { transform: rotate(-2deg) scale(1); } 100% { transform: rotate(-2deg) scale(1.04); } }
/* /goyson: schwarzer Blitz, weißer Schriftzug, kräftigeres Wackeln */
.easter-jakobus.boom { background: radial-gradient(circle at 50% 50%, rgba(40, 30, 30, 0.82), rgba(0, 0, 0, 0.95)); animation-duration: 2.3s; }
.easter-jakobus.boom span { color: #fff; text-shadow: 0 0 40px rgba(255, 200, 120, 0.85), 0 8px 0 #000; transform: none; animation: goyson-text 2.3s cubic-bezier(.15, 1.4, .3, 1) forwards; letter-spacing: 0.04em; }
@keyframes goyson-text { 0% { transform: scale(2.6); opacity: 0; filter: blur(8px); } 14% { transform: scale(0.94); opacity: 1; filter: none; } 22% { transform: scale(1.03); } 100% { transform: scale(1.06); } }
.easter-shake { animation: easter-shake 0.45s ease-in-out; }
.easter-shake.strong { animation: easter-shake 0.35s ease-in-out 2; }
@keyframes easter-shake { 0%, 100% { transform: none; } 20% { transform: translate(-8px, 4px); } 40% { transform: translate(7px, -5px); } 60% { transform: translate(-5px, -3px); } 80% { transform: translate(4px, 3px); } }

/* ---------- Karten auswählen (Handeln, Bank, Abgeben): rotes „−“ direkt auf der Karte ---------- */
.pick-slot { position: relative; display: inline-flex; }
.pick-minus { position: absolute; left: -8px; top: -8px; z-index: 4; width: 26px; height: 26px; padding: 0; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.15rem; font-weight: 900; line-height: 1; color: #fff;
  background: linear-gradient(180deg, #ff7a62, #d6452c); border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45); }
.pick-minus:hover:not(:disabled) { background: linear-gradient(180deg, #ff9078, #e2583f); border-color: #fff; transform: scale(1.12); }
.pick-slot.picked .res-card { box-shadow: 0 0 0 3px var(--gold), 0 6px 14px rgba(0, 0, 0, 0.45); }
.t2-slot .pick-slot { justify-content: center; }
.discard-actions { display: flex; gap: 8px; }
#robber-body .trade-cards { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }
#robber-body .res-card.small { --w: 56px; }
#robber-body .res-card .count { min-width: 34px; }

/* ---------- Handelsangebot: groß unten links über der Hand ---------- */
.offer-popup { top: auto; right: auto; width: min(370px, calc(100vw - 24px)); padding: 10px 12px; gap: 8px; border-top-width: 4px; border-radius: 16px; z-index: 28; }
@keyframes popup-in { from { transform: translateY(24px) scale(0.96); opacity: 0; } }
@keyframes popup-nudge { 0%, 88%, 100% { transform: none; } 92% { transform: translateY(-4px); } 96% { transform: translateY(2px); } }
.oc-head { display: flex; align-items: center; gap: 8px; }
.oc-head .avatar { width: 32px; height: 32px; box-shadow: 0 0 0 2px var(--accent); }
.oc-head strong { font-family: var(--font-display); font-weight: 800; font-size: 0.98rem; }
.oc-status { font-size: 0.74rem; color: var(--gold); font-weight: 700; }
.oc-trade { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; }
.oc-side { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border-radius: 12px; min-width: 0; }
.oc-side.get { background: rgba(87, 196, 114, 0.12); border: 1px solid rgba(87, 196, 114, 0.4); }
.oc-side.give { background: rgba(226, 88, 63, 0.1); border: 1px solid rgba(226, 88, 63, 0.38); }
.oc-label { font-size: 0.64rem; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.oc-arrow { font-size: 1.15rem; color: var(--gold); }
.oc-cards { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 5px; }
.oc-cards .res-card.small { --w: 36px; cursor: default; }
.oc-cards .res-card .count { min-width: 18px; height: 18px; line-height: 14px; font-size: 0.7rem; top: -6px; right: -6px; }
.oc-cards .res-card.small:hover { transform: none; }
.oc-answers { display: flex; flex-wrap: wrap; gap: 5px; }
.oc-answer { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 3px 9px 3px 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1.5px solid var(--border); }
.oc-answer .avatar { width: 22px; height: 22px; }
.oc-who { display: flex; flex-direction: column; line-height: 1.05; }
.oc-who strong { font-size: 0.76rem; }
.oc-who small { font-size: 0.66rem; color: var(--muted); font-weight: 700; }
.oc-answer.yes { border-color: rgba(127, 224, 143, 0.8); background: rgba(87, 196, 114, 0.16); }
.oc-answer.yes small { color: #9be58c; }
.oc-answer.no { border-color: rgba(226, 88, 63, 0.6); background: rgba(226, 88, 63, 0.1); opacity: 0.8; }
.oc-answer.no small { color: #ff9a85; }
.oc-answer.counter { border-color: rgba(244, 197, 90, 0.7); background: rgba(244, 197, 90, 0.1); border-radius: 16px; }
.oc-answer.counter small { color: var(--gold); }
.oc-answer.open small { animation: turn-blink 1.4s ease-in-out infinite; }
.oc-answer.me { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25); }
.oc-go { padding: 3px 10px; font-size: 0.74rem; border-radius: 999px; }
.oc-counter { display: flex; align-items: center; gap: 5px; flex-basis: 100%; padding-left: 28px; }
.oc-counter small { font-size: 0.64rem; color: var(--muted); font-weight: 800; }
.oc-counter .res-card.small { --w: 26px; }
.oc-buttons { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 6px; }
.oc-buttons.mine { grid-template-columns: 1fr; }
.oc-buttons button { padding: 7px 6px; font-size: 0.82rem; }
.oc-buttons .accept { background: linear-gradient(180deg, #7fe08f, #3fa654); border-color: #9cf0a9; color: #08260f; box-shadow: 0 4px 14px rgba(63, 166, 84, 0.35); }
.oc-buttons .decline:hover:not(:disabled) { background: rgba(226, 88, 63, 0.3); border-color: #e2583f; }
@media (max-width: 600px) {
  .offer-popup { left: 8px !important; width: min(340px, calc(100vw - 16px)); padding: 10px; }
  .oc-buttons { grid-template-columns: 1fr 1fr; }
  .oc-buttons .counter { grid-column: 1 / -1; }
  .oc-cards .res-card.small { --w: 34px; }
}

/* Emotes auf dem Brett: Männchen + Sprechblase unten links, stapeln sich nach oben */
.board-emotes { position: absolute; left: 14px; bottom: 14px; z-index: 7; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; pointer-events: none; max-width: calc(100% - 200px); }
.be-item { --pc: #888; display: flex; align-items: flex-end; gap: 8px; animation: be-in 0.45s cubic-bezier(.2, 1.5, .4, 1) both; }
.be-item.out { animation: be-out 0.45s ease-in forwards; }
.be-item .avatar { width: 46px; height: 46px; flex: none; box-shadow: 0 0 0 3px var(--pc), 0 6px 14px rgba(0, 0, 0, 0.45); }
.be-bubble { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 6px 14px 8px; border-radius: 18px 18px 18px 6px;
  background: #fff; color: #1d2633; border: 3px solid #1d2633; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); margin-bottom: 10px; }
.be-bubble::before { content: ''; position: absolute; left: -12px; bottom: 6px; width: 14px; height: 14px; background: #fff;
  border-left: 3px solid #1d2633; border-bottom: 3px solid #1d2633; transform: skewY(-30deg) rotate(15deg); border-radius: 0 0 0 3px; }
.be-name { font-size: 0.7rem; font-weight: 900; color: var(--pc); filter: brightness(0.75); line-height: 1; letter-spacing: 0.02em; }
.be-emote { font-size: 2.3rem; line-height: 1.1; }
.be-item.text .be-emote { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; white-space: nowrap; padding-top: 2px; }
@keyframes be-in { from { opacity: 0; transform: translateY(16px) scale(0.6); transform-origin: left bottom; } }
@keyframes be-out { to { opacity: 0; transform: translateY(-14px) scale(0.92); } }
@media (max-width: 600px) {
  .board-emotes { left: 8px; bottom: 8px; max-width: calc(100% - 110px); }
  .be-item .avatar { width: 34px; height: 34px; }
  .be-emote { font-size: 1.7rem; }
  .be-item.text .be-emote { font-size: 1.1rem; }
}

/* Rechte Spalte: deine Karte bleibt immer sichtbar (klebt unten), Emotes in einer Zeile, Titel nebeneinander */
@media (min-width: 901px) {
  .game2 .players-box { padding-bottom: 0 !important; }
  .game2 .player-card.me { position: sticky; bottom: 0; z-index: 2; margin-bottom: 10px;
    background: linear-gradient(100deg, color-mix(in srgb, var(--pcolor, #888) 22%, #10283d) 0%, #10283d 60%); }
  /* Alle Emotes sichtbar: kleine Knöpfe, die umbrechen */
  .game2 .emote-bar { flex-wrap: wrap; gap: 2px; }
  .game2 .emote-bar .emote-btn { padding: 1px 4px; font-size: 1.05rem; }
  .game2 .emote-bar .emote-btn.text-emote { font-size: 0.68rem; padding: 2px 7px 3px; }
  .game2 .emote-bar .throw-open { padding: 3px 9px; font-size: 0.8rem; }
  .game2 .award-bar { grid-template-columns: 1fr 1fr; gap: 6px; margin: 2px 0 4px; }
  .game2 .award-card { padding: 5px 7px; }
  .game2 .ac-free { display: none; }
}
/* Eigene Knopf-Bilder (public/build): füllen die Fläche über den Kostenpunkten */
.bb .bb-img { width: 54px; height: 46px; object-fit: contain; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45)); }
.act-btn .act-icon .bb-img { width: 46px; height: 40px; object-fit: contain; display: block; }
@media (max-height: 820px) { .game2 .bb .bb-img { width: 46px; height: 38px; } }

/* Handkarten immer nebeneinander (lieber wischen als umbrechen) */
.game2 #hand, .game2 .dev-hand { flex-wrap: nowrap; }
.game2 #hand > *, .game2 .dev-hand > * { flex: none; }
/* Mittlere Breite: Knöpfe unter die Karten, sonst bleibt für die Hand kaum Platz */
@media (min-width: 901px) and (max-width: 1279px) {
  .game2 .hand-row { flex-wrap: wrap; gap: 8px; }
  .game2 .hand-cards { flex-basis: 100%; }
  .game2 .act-col { flex: 1 1 100%; }
  .game2 #roll-btn, .game2 #end-turn { flex: 1; }
}

/* Niedrige Bildschirme (Laptops): alles etwas kleiner, damit Brett und Karten Platz haben */
@media (min-width: 901px) and (max-height: 820px) {
  .game2 #hand .res-card { --w: 68px; }
  .game2 .dev-hand .dev-card { width: 68px; height: 95px; }
  .game2 .bb, .game2 .act-btn { width: 66px; height: 72px; }
  .game2 .bb .bb-svg { width: 44px; height: 36px; }
  .game2 .act-btn .act-icon { font-size: 1.5rem; }
  .game2 #roll-btn, .game2 #end-turn { height: 72px; min-width: 170px; font-size: 1.1rem; }
  .game2 #turn-banner { padding: 6px 12px; font-size: 0.9rem; }
  .game2 .bottom-bar { padding: 8px 10px; gap: 8px; }
  .game2 .player-card:not(.me) .pc-chips { margin-top: 4px; }
  .game2 .player-card:not(.me) .pc-avatar { width: 36px; height: 36px; }
  .game2 .player-card:not(.me) .pc-avatar .avatar { width: 30px; height: 30px; }
  .game2 .player-card:not(.me) .pc-vp b { font-size: 1.2rem; }
  .game2 .players-col .chat-box .chat-list { height: clamp(60px, 11vh, 110px); }
}

/* Schmale Fenster / Handy: Brett oben, Leiste darunter (klebt unten), Spieler & Chat danach */
@media (max-width: 900px) {
  .game2 { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 8px 8px 0; }
  .game2 .game-main { order: 1; }
  .game2 .game-main #board { height: 58vh; min-height: 260px; }
  /* nicht kleben: die Leiste ist hier hoch und würde sonst über das Brett rutschen */
  .game2 .bottom-bar { order: 2; position: relative; bottom: auto; border-radius: 18px; border-bottom: 1px solid var(--border); }
  .game2 .players-col { order: 3; max-height: none; overflow: visible; padding-bottom: 12px; }
  .game2 .hand-row { flex-wrap: wrap; }
  .game2 .hand-cards { flex-basis: 100%; }
  .game2 .act-col { flex: 1 1 100%; }
  .game2 .action-row { flex-wrap: wrap; }
  .game2 .bb, .game2 .act-btn { width: 60px; height: 68px; }
  .game2 .act-btn .act-icon { font-size: 1.4rem; }
  .game2 #roll-btn, .game2 #end-turn { flex: 1 1 140px; min-width: 0; height: 68px; font-size: 1.05rem; }
  .game2 #hand .res-card { --w: 60px; }
  .game2 .dev-hand .dev-card { width: 60px; height: 84px; }
  .game2 .board-wrap > #dice .die { width: 38px; height: 38px; padding: 5px; }
  .game2 .board-wrap > #dice .dice-total { font-size: 1.2rem; }
  .game2 .chat-box .chat-list, .game2 .chat-box .log { max-height: 220px; }
  /* Kopfzeile im Spiel: eine Zeile, Knöpfe wischbar */
  body.in-game > header { flex-wrap: nowrap; gap: 8px; padding: 6px 8px; }
  body.in-game > header h1 .brand { display: none; }
  body.in-game > header .controls { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; min-width: 0; }
  body.in-game > header .controls > * { flex: none; }
}
@media (max-width: 600px) {
  .game2 .game-main #board { height: 46vh; min-height: 240px; }
  .game2 #hand .res-card { --w: 52px; }
  .game2 .dev-hand .dev-card { width: 52px; height: 73px; }
  .game2 .hand-cards { padding-top: 10px; gap: 8px; }
  .game2 #turn-banner { font-size: 0.85rem; padding: 6px 10px; }
  .game2 .bb, .game2 .act-btn { width: 58px; height: 62px; }
  .game2 #roll-btn, .game2 #end-turn { height: 58px; }
}

/* ---------- Vulkan ---------- */
.volcano-smoke circle { transform-box: fill-box; transform-origin: center; animation: volcano-smoke 3.3s ease-out infinite; }
@keyframes volcano-smoke {
  0% { transform: translate(0, 6px) scale(0.6); opacity: 0; }
  25% { opacity: 0.8; }
  100% { transform: translate(5px, -10px) scale(1.25); opacity: 0; }
}
.volcano-glow { animation: volcano-glow 2.6s ease-in-out infinite; }
@keyframes volcano-glow { 50% { opacity: 0.55; } }
.volcano-crack { animation: volcano-glow 3.4s ease-in-out infinite; }
.board-wrap.erupting #board { animation: volcano-quake 0.9s ease-out; }
.board-wrap.erupting .volcano-glow { animation: volcano-burst 1.6s ease-out; }
@keyframes volcano-quake {
  0%, 100% { transform: none; }
  15% { transform: translate(-5px, 2px); } 30% { transform: translate(5px, -2px); }
  45% { transform: translate(-3px, 1px); } 60% { transform: translate(3px, -1px); } 80% { transform: translate(-1px, 0); }
}
@keyframes volcano-burst { 0% { opacity: 1; } 20% { transform: scale(2.2); opacity: 1; } 100% { transform: none; opacity: 1; } }
.board-wrap.erupting .volcano-glow { transform-box: fill-box; transform-origin: center; }
.ev-next.ev-volcano { background: rgba(140, 40, 20, 0.85); color: #ffd9a8; }
@media (prefers-reduced-motion: reduce) {
  .volcano-smoke circle, .volcano-glow, .volcano-crack, .board-wrap.erupting #board { animation: none !important; }
}

/* Überraschungskarte: die Insel bleibt bis zum Start geheim */
.map-preview.mystery { display: flex; align-items: center; justify-content: center; }
.map-preview.mystery #map-preview { display: none; }
.mystery-island { display: none; }
.map-preview.mystery .mystery-island { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px; text-align: center; color: #e9f6ff; }
.mystery-island .mi-q { font-size: 3.4rem; font-weight: 800; line-height: 1; text-shadow: 0 4px 18px rgba(0, 0, 0, 0.35); animation: mystery-bob 2.4s ease-in-out infinite; }
.mystery-island small { opacity: 0.85; font-size: 0.85rem; }
@keyframes mystery-bob { 50% { transform: translateY(-6px) rotate(-4deg); } }

/* ---------- Sprachauswahl: Knopf + Fenster mit allen Sprachen ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; min-height: 0;
  border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.06);
  color: var(--text); font: 700 0.85rem var(--font-body); cursor: pointer; box-shadow: none; }
.lang-switch:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--gold); }
.lang-switch .lang-globe { line-height: 1; }
.lang-switch.compact { padding: 4px 9px; font-size: 0.75rem; letter-spacing: 0.04em; gap: 4px; }
.lang-pick { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 12px; }
.site-footer .lang-switch { vertical-align: middle; }
body.in-game > header .controls .lang-switch { flex-direction: column; gap: 2px; padding: 5px 4px; border-radius: 12px; }

.lang-overlay { z-index: 60; }
.lang-overlay[hidden] { display: none; }
.lang-dialog {
  width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; text-align: left;
  background: var(--ft-frame-bg, var(--panel)); border: 4px solid var(--ft-edge, var(--border-strong)); border-radius: 22px;
  box-shadow: var(--ft-frame-shadow, 0 12px 40px rgba(0, 0, 0, 0.5)); backdrop-filter: none;
  animation: pop 0.25s cubic-bezier(.3, 1.4, .5, 1);
}
.lang-dialog .panel-head h2 { color: var(--gold); margin: 0; }
.lang-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; margin: 14px 0 10px; }
.lang-tile {
  display: flex; align-items: center; gap: 10px; min-height: 0; padding: 10px 12px; text-align: left;
  border-radius: 14px; border: 3px solid var(--ft-out, #04121f); cursor: pointer; color: var(--text);
  background: linear-gradient(var(--ft-top, #12395a), var(--ft-bot, #0c2a42));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 4px 0 var(--ft-out, #04121f);
  font: 700 0.95rem var(--font-body); position: relative;
}
.lang-tile:hover:not(:disabled) { border-color: var(--gold); transform: translateY(-1px); }
.lang-tile:active:not(:disabled) { transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 2px 0 var(--ft-out, #04121f); }
.lang-tile .lang-code {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.1); font: 700 0.8rem var(--font-display); letter-spacing: 0.04em; color: var(--gold);
}
.lang-tile .lang-name { flex: 1; min-width: 0; }
.lang-tile .lang-state { position: absolute; top: -9px; right: 8px; padding: 1px 7px; border-radius: 999px; font-size: 0.66rem; font-weight: 800; }
.lang-tile .lang-state:empty { display: none; }
.lang-tile.on { border-color: var(--gold); background: linear-gradient(#ffd56a, var(--gold)); color: var(--ft-ink, #3a2306);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 4px 0 var(--ft-gold-dark, #a8741c); }
.lang-tile.on .lang-code { background: rgba(58, 35, 6, 0.15); color: var(--ft-ink, #3a2306); }
.lang-tile.on .lang-state { background: var(--ft-ink, #3a2306); color: var(--gold); }
.lang-tile.soon { cursor: default; opacity: 0.55; }
.lang-tile.soon .lang-state { background: #2c5577; color: #cfe3f3; }
.lang-note { margin: 4px 0 0; text-align: center; }

/* ---------- Leistung: flüssiges Spiel ----------
   Grundsatz: Nichts dauerhaft animieren, was der Browser neu malen muss (Schatten, Filter, Füllfarben).
   Leuchten läuft über die Deckkraft einer Ebene (das macht die Grafikkarte nebenbei). */
/* Brett verschieben/zoomen: nur über einen Transform (siehe panzoom.js). Das Brett ist immer ganz
   gezeichnet; der Rahmen um das Brett schneidet ab, was beim Zoomen hinausragt. */
#board { transform-origin: 50% 50%; }
.game2 .board-wrap { overflow: hidden; border-radius: 22px; }
#board.moved { box-shadow: none; border-radius: 0; }
#board.gesturing { will-change: transform; }
/* Unschärfe hinter Elementen im Spiel kostet bei jeder Änderung auf dem Brett viel Rechenzeit –
   die Flächen sind stattdessen etwas deckender */
body.in-game > header, .players-col section, .bottom-bar, .panel, .ev-next, .ev-chip, .zoom-controls button,
.game2 .board-wrap > #dice, .replay-bar, .offer-popup { -webkit-backdrop-filter: none; backdrop-filter: none; }
body.in-game > header { background: rgba(7, 26, 43, 0.92); }
.players-col section, .panel { background: rgba(12, 38, 60, 0.94); }
.ev-next, .ev-chip { background: rgba(7, 26, 43, 0.9); }
.zoom-controls button { background: rgba(7, 26, 43, 0.88); }
.game2 .board-wrap > #dice { background: rgba(7, 26, 43, 0.72); }
.replay-bar { background: rgba(7, 26, 43, 0.94); }
/* Dein Zug: Banner und Würfeln-Knopf leuchten über die Deckkraft eines festen Schattens */
#turn-banner.mine { animation: none; position: relative; }
#turn-banner.mine::after { content: ''; position: absolute; inset: -2px; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 0 2px rgba(87, 196, 114, 0.4); opacity: 0; animation: soft-glow 2.4s ease-in-out infinite; }
#roll-btn { position: relative; animation: none; }
#roll-btn::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 22px rgba(244, 197, 90, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.6); opacity: 0; animation: soft-glow 2.6s ease-in-out infinite; }
@keyframes soft-glow { 50% { opacity: 1; } }
/* Leuchten ohne Dauer-Animation */
.player-card.current .avatar { animation: none; box-shadow: 0 0 9px 2px rgba(244, 197, 90, 0.4), 0 2px 6px rgba(0, 0, 0, 0.35); }
.pc-chips .chip.over-limit, .dev-card.playable { animation: none; }
/* Bauplätze: ohne Filter, Puls nur über die Deckkraft */
.spot, .spot-road { filter: none; }
.spot { animation: spot-pulse-o 1.3s ease-in-out infinite; }
.spot:hover { opacity: 1; }
@keyframes spot-pulse-o { 50% { opacity: 0.6; } }
/* Schiffe wippen nicht dauerhaft (sonst wird das ganze Brett ständig neu gezeichnet) */
#board .ship { animation: none; }
/* Rundentimer: Balken wird skaliert statt in der Breite verändert (kein neues Layout) */
#timer-bar { right: 0; width: auto; transform-origin: left center; transition: transform 0.25s linear; }
/* Pulsieren auf dem Brett abgeschaltet: Jede Animation eines SVG-Elements (auch nur die Deckkraft)
   zwingt den Browser, das GANZE Brett mit allen Bildern in jedem Bild neu zu malen – das war
   beim Bauen und beim Räuber-Versetzen das Haupt-Ruckeln. Stattdessen feste, gut sichtbare Markierungen. */
#board .spot, #board .robber-option .spot-hex, #board .ev-hex { animation: none !important; }
#board .spot { opacity: 0.95; }
@media (max-width: 900px), (pointer: coarse) {
  #board .volcano-smoke circle, #board .volcano-glow, #board .volcano-crack { animation: none !important; }
}

/* ---------- Handy im Spiel: wie eine App ----------
   Oben eine schmale Spieler-Leiste, darunter das Brett (bekommt den ganzen freien Platz),
   unten deine Karten und Knöpfe. Chat, Verlauf, Statistik und Bank liegen in einer Leiste,
   die über den Knopf 💬 auf dem Brett hochklappt. Die Seite selbst scrollt nicht mehr. */
.sheet-btn, .sheet-backdrop, .sheet-close, .menu-btn, .players-toggle, .lobby-chat-toggle, .music-quick-wrap { display: none; }
@media (max-width: 900px), (max-height: 520px) and (orientation: landscape) {
  body.in-game { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
  body.in-game > header { flex: none; }
  body.in-game .game2 { flex: 1; min-height: 0; height: auto; display: flex; flex-direction: column; gap: 6px;
    padding: 6px 6px calc(6px + var(--sa-b)); overflow: hidden; }
  .game2 .players-col { display: contents; }

  /* Spieler-Leiste oben: kleine Karten nebeneinander, wischbar */
  .game2 .players-box { order: 0; flex: none; padding: 0 !important; background: none; border: 0; box-shadow: none; overflow: visible; }
  .game2 .players-box > h2, .game2 #award-bar, .game2 #game-spectators { display: none; }
  .game2 #game-players { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0; }
  .game2 #game-players::-webkit-scrollbar { display: none; }
  /* Karten teilen sich die Breite; bei vielen Spielern wird gewischt */
  .game2 #game-players .player-card { flex: 1 0 108px; min-width: 108px; display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 4px 6px 4px 5px; border-left-width: 4px; border-radius: 12px; margin: 0; position: relative; }
  .game2 #game-players .pc-head { width: 100%; }
  .game2 #game-players .pc-who { min-width: 0; }
  .game2 #game-players .pc-sub { display: none; } /* wer dran ist, zeigt der goldene Rahmen */
  .game2 #game-players .pc-awards { position: absolute; left: 2px; bottom: 1px; }
  .game2 #game-players .player-card.me { position: relative; bottom: auto; margin: 0; padding: 4px 8px 4px 6px; }
  .game2 #game-players .pc-head { gap: 6px; }
  .game2 #game-players .pc-avatar, .game2 #game-players .player-card.me .pc-avatar { width: 30px; height: 30px; }
  .game2 #game-players .pc-avatar .avatar, .game2 #game-players .player-card.me .pc-avatar .avatar { width: 24px; height: 24px; font-size: 0.8rem; }
  .game2 #game-players .pc-who { flex: 1; }
  .game2 #game-players .pc-who .pname { font-size: 0.8rem; max-width: none; }
  .game2 #game-players .pc-vp small { display: none; } /* „/10“ steht schon im Ring um den Avatar */
  .game2 #game-players .pc-sub { font-size: 0.65rem; }
  .game2 #game-players .pc-vp { padding: 1px 6px; border-radius: 8px; }
  .game2 #game-players .pc-vp b, .game2 #game-players .player-card.me .pc-vp b { font-size: 1.05rem; }
  .game2 #game-players .pc-vp small { font-size: 0.6rem; }
  /* nur die Kartenzahl zeigen (wichtig wegen der 7), Rest steht in der Statistik */
  .game2 #game-players .pc-chips { display: flex; justify-content: flex-end; margin: 0; gap: 0; }
  .game2 #game-players .pc-chips .chip { padding: 2px 6px; font-size: 0.72rem; }
  .game2 #game-players .pc-chips .chip:not(:first-child) { display: none; }
  .game2 #game-players .pc-awards { display: flex; gap: 2px; }
  .game2 #game-players .award-pill { font-size: 0; padding: 0; background: none; }
  .game2 #game-players .award-pill::first-letter { font-size: 0.85rem; }
  .game2 #game-players .me-details, .game2 #game-players .quick-throw, .game2 #game-players .kick { display: none; }

  /* Brett: füllt den Platz zwischen Leiste und Knöpfen */
  .game2 .game-main { order: 1; flex: 1; min-height: 0; display: flex; }
  .game2 .board-wrap { flex: 1; min-height: 0; border-radius: 16px; }
  .game2 .game-main #board, .game2 .game-main #board { height: 100%; min-height: 0; border-radius: 16px; }
  .game2 .zoom-controls { top: 8px; right: 8px; gap: 6px; }
  .game2 .zoom-controls button { width: 40px; height: 40px; }
  .game2 .board-wrap > #dice { right: 8px; bottom: 8px; padding: 5px; gap: 5px; border-radius: 12px; }
  .game2 .board-wrap > #dice .die { width: 30px; height: 30px; padding: 4px; border-radius: 8px; }
  .game2 .board-wrap > #dice .die .pip { margin: 1.5px; }
  .game2 .board-wrap > #dice .dice-total { font-size: 1rem; padding: 0 6px; }

  /* Knopf für Chat & Verlauf (links oben auf dem Brett) */
  .sheet-btn { display: grid; place-items: center; position: absolute; left: 8px; top: 8px; z-index: 5; width: 44px; height: 44px;
    padding: 0; border-radius: 50%; font-size: 1.25rem; background: rgba(7, 26, 43, 0.88); border: 1px solid var(--border-strong); }
  .sheet-btn .badge { position: absolute; top: -4px; right: -4px; }

  /* Chat & Co. als Leiste von unten */
  .game2 .chat-box, .game2 .bank-row { display: none; }
  body.sheet-open .game2 .chat-box { display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: 62vh; height: 62dvh; margin: 0; padding: 10px 10px calc(10px + var(--sa-b)); border-radius: 20px 20px 0 0;
    background: rgba(12, 38, 60, 0.98); border: 1px solid var(--border-strong); box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5); }
  body.sheet-open .game2 .chat-box .chat-list, body.sheet-open .game2 .chat-box .log,
  body.sheet-open .game2 .chat-box .stats { height: auto; flex: 1; min-height: 0; max-height: none; overflow-y: auto; }
  body.sheet-open .game2 .chat-box .tabs { display: flex; align-items: center; flex: none; }
  body.sheet-open .game2 #pane-chat:not([hidden]) { display: flex; flex-direction: column; flex: 1; min-height: 0; }
  body.sheet-open .game2 #pane-chat .emote-bar, body.sheet-open .game2 #pane-chat .chat-form { flex: none; }
  .sheet-close { margin-left: auto; width: 36px; height: 36px; padding: 0; }
  body.sheet-open .sheet-close { display: inline-grid; place-items: center; }
  body.sheet-open .sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(3, 12, 22, 0.55); }
  /* Die Bank-Übersicht sitzt in der Leiste über dem Chat */
  body.sheet-open .game2 .bank-row { display: flex; position: fixed; left: 10px; right: 10px; z-index: 41;
    bottom: calc(62vh + 8px); bottom: calc(62dvh + 8px); background: rgba(12, 38, 60, 0.98); border-radius: 14px; padding: 6px 8px; }

  /* Unten: Karten und Knöpfe kompakt */
  .game2 .bottom-bar { order: 2; flex: none; padding: 6px 8px; gap: 6px; border-radius: 16px; max-height: 46dvh; overflow-y: auto; }
  .game2 .hand-row { gap: 6px; }
  .game2 .hand-cards { padding-top: 8px; gap: 6px; }
  .game2 #hand .res-card { --w: 48px; }
  .game2 .dev-hand .dev-card { width: 48px; height: 67px; }
  .game2 .action-row { gap: 6px; }
  .game2 .bb, .game2 .act-btn { width: 54px; height: 58px; }
  .game2 #roll-btn, .game2 #end-turn { height: 54px; font-size: 1rem; }
  .game2 #turn-banner { padding: 5px 10px; font-size: 0.82rem; }
  .game2 .hand-empty { padding: 0 4px; font-size: 0.8rem; }
  .game2 .hand-cards:has(.hand-empty) { padding-top: 0; }
  .game2 .spectator-bar { order: 3; flex: none; }
}
/* Sehr kleine Handys: Karten noch etwas kleiner */
@media (max-width: 380px) {
  .game2 #hand .res-card { --w: 42px; }
  .game2 .bb, .game2 .act-btn { width: 48px; height: 54px; }
}

/* ---------- Kartenauswahl: Karte verlangt Spielmodus ---------- */
/* Kleine Symbole oben rechts auf dem Kartenbild: nötiger Spielmodus (blau) oder Besonderheit (orange) */
.mc-icons { position: absolute; top: 7px; right: 7px; display: flex; gap: 4px; }
.mc-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 0.85rem; line-height: 1;
  background: rgba(7, 26, 43, 0.88); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4); cursor: help; }
.mc-icon.need { border: 2px solid #6cc4ff; }
.mc-icon.feature { border: 2px solid #ff9a4d; }
.rule-head .rule-fixed { width: 100%; font-size: 0.78rem; font-weight: 700; color: #bfe6ff; }

/* ==================== Spieltisch-Look (dunkel) ====================
   Abgestimmt auf die gemalte Spielgrafik: dicke Rahmen mit 3D-Unterkante, Gold als Akzent,
   drückbare Knöpfe, Karten mit Goldrand. Farben bleiben das dunkle Meeresblau.
   Nur Optik – Aufteilung und Größen (z. B. das große Brett) bleiben, wie sie sind. */
:root {
  --ft-edge: #1d4f75;                 /* Rahmen */
  --ft-out: #04121f;                  /* dunkle Außenlinie / 3D-Kante */
  --ft-hi: rgba(255, 255, 255, 0.14); /* helle Innenkante */
  --ft-top: #12395a; --ft-bot: #0c2a42;
  --ft-gold-dark: #a8741c; --ft-ink: #3a2306;
  --ft-frame-bg: radial-gradient(120% 80% at 15% 0%, rgba(120, 190, 255, 0.1), transparent 60%), linear-gradient(180deg, var(--ft-top), var(--ft-bot));
  --ft-frame-shadow: inset 0 0 0 2px var(--ft-hi), inset 0 0 18px rgba(0, 0, 0, 0.35), 0 0 0 2px var(--ft-out), 0 6px 0 2px var(--ft-out), 0 12px 22px rgba(0, 0, 0, 0.35);
}

/* --- Rahmen: Seitenleiste, Spalte rechts, untere Leiste, Fenster, Lobby-Kästen --- */
body.in-game > header, body.in-game .players-col > section, body.in-game .bottom-bar, body.in-game .panel,
body.in-game .trade2, body.in-game .offer-popup, #lobby-view .lobby-box {
  background: var(--ft-frame-bg); border: 4px solid var(--ft-edge); border-radius: 18px; box-shadow: var(--ft-frame-shadow);
}
body.in-game .players-col { gap: 16px; padding-bottom: 8px; }
body.in-game .bank-row { padding: 8px 10px; }
/* Brett: gleicher Rahmen, Größe bleibt */
body.in-game .game2 .board-wrap { border: 4px solid var(--ft-edge); box-shadow: inset 0 0 0 2px var(--ft-hi), 0 0 0 2px var(--ft-out), 0 6px 0 2px var(--ft-out), 0 14px 26px rgba(0, 0, 0, 0.4); }

/* --- Reiter (Chat · Verlauf · Statistik): im Rahmen, Gold für den aktiven --- */
body.in-game .chat-box .tabs { background: rgba(0, 0, 0, 0.3); border-radius: 12px; padding: 4px; gap: 4px; }
body.in-game .chat-box .tabs button { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; border-radius: 9px; color: var(--muted); padding: 6px 8px; }
body.in-game .chat-box .tabs button:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
body.in-game .chat-box .tabs button.on { background: linear-gradient(180deg, #ffe08a, var(--gold)); color: var(--ft-ink); box-shadow: 0 3px 0 var(--ft-gold-dark); }
body.in-game .chat-box .tabs button.on .badge { background: var(--ft-ink); color: #fff; }

/* --- Spielerkarten --- */
body.in-game .player-card { border-radius: 14px; border: 2px solid rgba(255, 255, 255, 0.12); border-left-width: 6px; background: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)), #0f3150; }
body.in-game .player-card.current { background: linear-gradient(90deg, rgba(244, 197, 90, 0.2), rgba(244, 197, 90, 0.04)), #0f3150; border-color: var(--gold); border-left-color: var(--pcolor, var(--gold)); box-shadow: 0 0 14px rgba(244, 197, 90, 0.22); }
/* „am Zug“ als Wimpel in Spielerfarbe */
body.in-game .turn-pill { display: inline-block; padding: 0 11px 0 7px; margin-right: 4px; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 0.72rem;
  background: var(--pcolor, var(--gold)); clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 50%, 100% 100%, 0 100%); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35); animation: none; }
/* Siegpunkte als Goldschild */
body.in-game .pc-vp { flex-direction: column; align-items: center; justify-content: center; gap: 0; width: 46px; height: 52px; padding: 0 0 6px; border: none; border-radius: 0;
  background: linear-gradient(180deg, #ffd96b, var(--gold) 55%, #c98d22); clip-path: polygon(0 0, 100% 0, 100% 72%, 50% 100%, 0 72%); filter: drop-shadow(0 3px 0 var(--ft-out)); }
body.in-game .pc-vp b, body.in-game .player-card.me .pc-vp b { color: #fff; font-size: 1.35rem; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); }
body.in-game .pc-vp small { color: rgba(58, 35, 6, 0.85); font-size: 0.62rem; margin-top: -2px; }
body.in-game .player-card.me .pc-vp { width: 52px; height: 58px; }
body.in-game .pc-avatar .avatar { box-shadow: 0 0 0 2px var(--ft-out); }
body.in-game .pc-chips .chip { border: 2px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.28); font-weight: 800; }
/* Titel (Längste Straße / Größte Armee) */
body.in-game .award-card { border-radius: 10px; border: 2px dashed rgba(255, 255, 255, 0.16); background: transparent; box-shadow: none; }
body.in-game .award-card.taken { border: 2px solid var(--hc); background: color-mix(in srgb, var(--hc) 18%, transparent); box-shadow: none; }

/* --- Bank-Vorrat: kleine Karten mit Goldrand --- */
body.in-game .bank-card:not(.back) { border: 2px solid #fff3d0; box-shadow: 0 0 0 1.5px var(--ft-gold-dark), 0 3px 0 1.5px var(--ft-out); }
body.in-game .bank-card b { background: radial-gradient(circle at 35% 30%, #fff6cf, var(--gold) 70%); color: var(--ft-ink); border: 2px solid #5a3a0c; }

/* --- Handkarten: Goldrand, Anzahl als Goldmünze, Name als Schild darunter --- */
body.in-game #hand .res-card, body.in-game .dev-hand .dev-card.art {
  border: 3px solid #fff3d0; border-radius: 12px;
  box-shadow: var(--stack, 0 0 0 transparent), 0 0 0 2.5px var(--ft-gold-dark), 0 5px 0 2.5px var(--ft-out), 0 8px 14px rgba(0, 0, 0, 0.35);
}
body.in-game #hand .res-card:hover { border: 3px solid #fff3d0; }
body.in-game .dev-hand .dev-card.art.playable { box-shadow: 0 0 0 2.5px var(--gold), 0 5px 0 2.5px var(--ft-out), 0 0 18px rgba(244, 197, 90, 0.6); }
body.in-game .res-card .count, body.in-game .dev-card.art .count {
  min-width: 30px; height: 30px; line-height: 25px; top: -12px; right: -12px; border-radius: 15px;
  background: radial-gradient(circle at 35% 30%, #fff6cf, var(--gold) 70%); color: var(--ft-ink); border: 2.5px solid #5a3a0c; font-family: var(--font-display); font-weight: 800;
}
body.in-game #hand .res-card .label, body.in-game .dev-hand .dev-card.art .label {
  left: 50%; right: auto; bottom: -12px; height: auto; transform: translateX(-50%); padding: 1px 10px; border-radius: 999px; white-space: nowrap;
  font-size: 0.76rem; color: var(--ft-ink); background: linear-gradient(180deg, #fff3c4, var(--gold)); border: 2px solid #5a3a0c;
}
body.in-game .game2 .hand-cards { padding-bottom: 14px; }
body.in-game .hand-empty { color: var(--muted); font-weight: 700; }
/* Handkarten beim Drüberfahren: Die Leiste scrollt seitlich (overflow-x), dadurch wird sie auch oben
   abgeschnitten. Karte darum nur leicht anheben (von unten aus vergrößert, ohne Drehen) und oben
   genug Platz für Anheben + Münze lassen – sonst ragt sie in die Oberfläche und es springt ein Scrollbalken auf. */
body.in-game .game2 .hand-cards { overflow-y: hidden; padding-right: 14px; }
body.in-game .game2 #hand .res-card, body.in-game .game2 .dev-hand .dev-card { transform-origin: 50% 100%; }
body.in-game .game2 #hand .res-card:hover, body.in-game .game2 .dev-hand .dev-card:hover,
body.in-game .game2 #hand .res-card.small:hover { transform: translateY(-5px) scale(1.03); z-index: 2; }
@media (hover: hover) and (pointer: fine) {
  body.in-game .game2 .hand-cards:has(.res-card, .dev-card) { padding-top: 22px; }
}
/* Rundentimer: Zahl immer mittig in der Leiste, nie darüber hinaus */
body.in-game .timer { display: flex; align-items: center; justify-content: center; }
body.in-game #timer-text { line-height: 1; font-size: 0.72rem; white-space: nowrap; }

/* --- Bau-Kacheln und „Handeln“: dicke Kacheln, Gold-Leuchten wenn leistbar --- */
body.in-game .bb, body.in-game .act-btn {
  border: 3px solid var(--ft-out); border-radius: 16px; background: linear-gradient(180deg, #1b4a6e, #0f304b);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.15), 0 5px 0 var(--ft-edge), 0 5px 0 3px var(--ft-out);
  transition: transform 0.08s, box-shadow 0.08s, filter 0.12s;
}
body.in-game .bb:hover:not(:disabled), body.in-game .act-btn:hover:not(:disabled) { background: linear-gradient(180deg, #235a83, #133a59); }
body.in-game .bb:not(.ok) { filter: saturate(0.6) brightness(0.85); }
body.in-game .bb.ok, body.in-game .bb.ok:hover:not(:disabled) {
  border-color: #5a3a0c; background: linear-gradient(180deg, #2a6189, #163f60);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 0 5px 0 var(--ft-gold-dark), 0 5px 0 3px var(--ft-ink), 0 0 16px 2px rgba(242, 193, 78, 0.4);
}
body.in-game .bb.active { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), 0 5px 0 var(--ft-gold-dark), 0 5px 0 3px var(--ft-ink), 0 0 0 4px var(--gold), 0 0 18px rgba(244, 197, 90, 0.6); }
body.in-game .bb.usable:active, body.in-game .act-btn:active:not(:disabled) { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.15), 0 1px 0 var(--ft-edge), 0 1px 0 3px var(--ft-out); }
body.in-game .bb-left { min-width: 26px; height: 26px; line-height: 21px; top: -10px; right: -10px; border-radius: 13px;
  background: radial-gradient(circle at 35% 30%, #fff6cf, var(--gold) 70%); color: var(--ft-ink); border: 2.5px solid #5a3a0c; font-family: var(--font-display); font-weight: 800; }
body.in-game .bb-dot { border-color: var(--ft-out); border-width: 1.5px; background: color-mix(in srgb, var(--c) 35%, transparent); }
body.in-game .bb-dot.have { background: var(--c); box-shadow: none; }
body.in-game .bb-tip { background: var(--ft-frame-bg); border: 3px solid var(--ft-edge); border-radius: 14px; box-shadow: 0 0 0 2px var(--ft-out), 0 8px 18px rgba(0, 0, 0, 0.4); }
body.in-game .act-btn .act-label { font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; }

/* --- Große Knöpfe: Würfeln / Zug beenden --- */
body.in-game #roll-btn, body.in-game #end-turn:not(:disabled) {
  border: 3px solid var(--ft-ink); border-radius: 18px; color: #fff; font-family: var(--font-display); font-weight: 800;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35), 0 0 2px rgba(0, 0, 0, 0.4);
  background: linear-gradient(180deg, #ffe48f, #f2c14e 55%, #d29a2a);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45), inset 0 -4px 0 rgba(0, 0, 0, 0.15), 0 5px 0 var(--ft-gold-dark), 0 5px 0 3px var(--ft-ink), 0 10px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.08s, box-shadow 0.08s;
}
body.in-game #roll-btn:hover, body.in-game #end-turn:not(:disabled):hover { filter: brightness(1.06); background: linear-gradient(180deg, #ffe48f, #f2c14e 55%, #d29a2a); }
body.in-game #roll-btn:active, body.in-game #end-turn:not(:disabled):active { transform: translateY(4px);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.4), 0 1px 0 var(--ft-gold-dark), 0 1px 0 3px var(--ft-ink), 0 4px 8px rgba(0, 0, 0, 0.3); }
body.in-game #end-turn:disabled { border: 3px solid var(--ft-out); border-radius: 18px; background: rgba(0, 0, 0, 0.25); box-shadow: 0 4px 0 var(--ft-out); }

/* --- Statuszeile und Timer --- */
body.in-game.in-game .game2 #turn-banner { border-width: 3px; border-radius: 14px; background: rgba(0, 0, 0, 0.25); font-family: var(--font-display); font-weight: 800; }
body.in-game .game2 #turn-banner.mine { background: linear-gradient(90deg, rgba(87, 196, 114, 0.28), rgba(0, 0, 0, 0.2) 75%); }
body.in-game .timer { height: 20px; border-radius: 999px; background: rgba(0, 0, 0, 0.4); border: 3px solid var(--ft-out); }
body.in-game #timer-bar { background: linear-gradient(180deg, #8fe08a, #4fae5c); }
body.in-game .timer.urgent #timer-bar { background: linear-gradient(180deg, #ff9a8a, #d9534f); }

/* --- Würfel-Kasten und Zoom-Knöpfe auf dem Brett --- */
body.in-game .game2 .board-wrap > #dice { border: 3px solid var(--ft-edge); box-shadow: 0 0 0 2px var(--ft-out), 0 4px 0 2px var(--ft-out); background: rgba(7, 26, 43, 0.82); }
body.in-game .zoom-controls button { border: 3px solid var(--ft-edge); box-shadow: 0 0 0 2px var(--ft-out), 0 3px 0 2px var(--ft-out); }

/* --- Fenster: Angebot annehmen / ablehnen als dicke Knöpfe --- */
body.in-game .offer-popup .primary, body.in-game .trade2 .primary, body.in-game .panel .primary {
  border: 3px solid var(--ft-ink); border-radius: 14px; color: #fff; font-family: var(--font-display); font-weight: 800; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
  background: linear-gradient(180deg, #ffe48f, #f2c14e 55%, #d29a2a); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4), 0 4px 0 var(--ft-gold-dark), 0 4px 0 3px var(--ft-ink);
}
body.in-game .offer-popup .primary.accept { background: linear-gradient(180deg, #8fe08a, #5cb85c 55%, #3f8f42); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), 0 4px 0 #2f7a32, 0 4px 0 3px var(--ft-ink); }
body.in-game .offer-popup .decline { border: 3px solid var(--ft-ink); border-radius: 14px; color: #fff; font-weight: 700; background: linear-gradient(180deg, #f08a86, #d9534f 55%, #a83b37); box-shadow: 0 4px 0 #8f2a27, 0 4px 0 3px var(--ft-ink); }

/* --- Lobby: gleiche Reiter und Knöpfe --- */
#lobby-view .lobby-tabs { background: rgba(0, 0, 0, 0.3); }
#lobby-view .lobby-tab { font-family: var(--font-display); font-weight: 800; }
#lobby-view .lobby-tab.on, #lobby-view .lobby-tab.on:hover:not(:disabled) { background: linear-gradient(180deg, #ffe08a, var(--gold)); color: var(--ft-ink); box-shadow: 0 3px 0 var(--ft-gold-dark); }
#lobby-view .lobby-tab.on .tab-count { background: var(--ft-ink); color: #fff; }
#lobby-view #start-btn:not(:disabled), #lobby-view .ready-btn {
  border: 3px solid var(--ft-ink); border-radius: 18px; color: #fff; font-family: var(--font-display); font-weight: 800; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  background: linear-gradient(180deg, #ffe48f, #f2c14e 55%, #d29a2a); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45), 0 5px 0 var(--ft-gold-dark), 0 5px 0 3px var(--ft-ink), 0 10px 14px rgba(0, 0, 0, 0.3);
}
#lobby-view .ready-btn.on { background: linear-gradient(180deg, #8fe08a, #5cb85c 55%, #3f8f42); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.35), 0 5px 0 #2f7a32, 0 5px 0 3px var(--ft-ink); }
#lobby-view #start-btn:not(:disabled):active, #lobby-view .ready-btn:active { transform: translateY(4px); }
#lobby-view .map-card { border-radius: 14px; border: 3px solid var(--ft-edge); box-shadow: 0 0 0 2px var(--ft-out), 0 4px 0 2px var(--ft-out); }
#lobby-view .map-card.active { border-color: var(--gold); box-shadow: 0 0 0 2px var(--ft-out), 0 4px 0 2px var(--ft-gold-dark), 0 0 16px rgba(244, 197, 90, 0.4); }
body.in-game #hand .res-card .label, body.in-game .dev-hand .dev-card.art .label { display: flex; }
@media (max-width: 600px) { body.in-game .pc-vp, body.in-game .player-card.me .pc-vp { width: 34px; height: 40px; padding-bottom: 4px; } body.in-game .pc-vp b, body.in-game .player-card.me .pc-vp b { font-size: 1.05rem; } body.in-game .pc-vp small { display: none; } }

/* ==================== Startseite im Spieltisch-Look ====================
   Gleiche Bausteine wie Spiel und Lobby (Variablen --ft-* oben): dicke Rahmen mit 3D-Kante,
   Gold als Akzent, drückbare Knöpfe. Nur body.home – Spiel/Lobby/Handy-Spiel bleiben unberührt. */
body.home > header { border-bottom: 4px solid var(--ft-edge); box-shadow: 0 2px 0 var(--ft-out), 0 6px 16px rgba(0, 0, 0, 0.35); }
body.home > header .controls > a.button, body.home > header .controls > button, body.home > header .friends-wrap > button {
  border: 3px solid var(--ft-out); border-radius: 12px; background: linear-gradient(180deg, #1b4a6e, #0f304b);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.14), 0 3px 0 var(--ft-edge), 0 3px 0 3px var(--ft-out); font-family: var(--font-display); font-weight: 800;
}
body.home > header .controls > a.button:hover, body.home > header .friends-wrap > button:hover { background: linear-gradient(180deg, #235a83, #133a59); }
body.home > header .coin-chip, body.home > header .profile-chip { border: 3px solid var(--ft-out); box-shadow: 0 3px 0 var(--ft-out); }

/* Spielbereich: Rahmen wie im Spiel */
body.home .play-box, body.home .overlay .card, body.home .friends-pop {
  background: var(--ft-frame-bg); border: 4px solid var(--ft-edge); border-radius: 20px; box-shadow: var(--ft-frame-shadow);
}
body.home .play-box { padding: 20px 22px 24px; gap: 16px; }
body.home .name-row { font-family: var(--font-display); font-weight: 800; color: var(--gold); }
body.home .name-row input, body.home .overlay input { border: 3px solid var(--ft-out); border-radius: 12px; background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35); }
body.home .name-row input:focus, body.home .overlay input:focus { border-color: var(--gold); outline: none; }

/* Große Knöpfe: Gold (Online spielen) und Blau (Mit Freunden spielen), drückbar */
body.home .huge-btn {
  border: 3px solid var(--ft-ink); border-radius: 20px; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35), 0 0 2px rgba(0, 0, 0, 0.4);
  background: linear-gradient(180deg, #ffe48f, #f2c14e 55%, #d29a2a);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45), inset 0 -4px 0 rgba(0, 0, 0, 0.15), 0 6px 0 var(--ft-gold-dark), 0 6px 0 3px var(--ft-ink), 0 12px 18px rgba(0, 0, 0, 0.3);
  transition: transform 0.08s, box-shadow 0.08s, filter 0.12s;
}
body.home .huge-btn:hover:not(:disabled) { filter: brightness(1.06); background: linear-gradient(180deg, #ffe48f, #f2c14e 55%, #d29a2a); }
body.home .huge-btn.alt, body.home .huge-btn.alt:hover:not(:disabled) {
  border-color: var(--ft-out); background: linear-gradient(180deg, #62b6ea, #3a8fd0 55%, #2a6fb0);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.4), inset 0 -4px 0 rgba(0, 0, 0, 0.15), 0 6px 0 #1b4f80, 0 6px 0 3px var(--ft-out), 0 12px 18px rgba(0, 0, 0, 0.3);
}
body.home .huge-btn:active { transform: translateY(5px); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.4), 0 1px 0 var(--ft-gold-dark), 0 1px 0 3px var(--ft-ink), 0 4px 8px rgba(0, 0, 0, 0.3); }
body.home .huge-btn.alt:active { box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.35), 0 1px 0 #1b4f80, 0 1px 0 3px var(--ft-out), 0 4px 8px rgba(0, 0, 0, 0.3); }
body.home .hb-text small { opacity: 0.95; }

/* Kleinere Kachel-Knöpfe: Rangliste, Spielarten in den Fenstern, Reiter */
body.home .boards-btn, body.home .play-option, body.home .board-tabs button {
  border: 3px solid var(--ft-out); border-radius: 14px; background: linear-gradient(180deg, #1b4a6e, #0f304b); color: var(--text);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.14), 0 4px 0 var(--ft-edge), 0 4px 0 3px var(--ft-out);
  font-family: var(--font-display); font-weight: 800; transition: transform 0.08s, box-shadow 0.08s;
}
body.home .boards-btn:hover:not(:disabled), body.home .play-option:hover:not(:disabled), body.home .board-tabs button:hover:not(:disabled) { background: linear-gradient(180deg, #235a83, #133a59); }
body.home .boards-btn:active, body.home button.play-option:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 1px 0 var(--ft-edge), 0 1px 0 3px var(--ft-out); }
body.home .play-option.primary, body.home .play-option.primary:hover:not(:disabled), body.home .board-tabs button.on {
  border-color: var(--ft-ink); color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  background: linear-gradient(180deg, #ffe48f, #f2c14e 55%, #d29a2a);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45), 0 4px 0 var(--ft-gold-dark), 0 4px 0 3px var(--ft-ink);
}
body.home .play-option small { font-family: var(--font-body); }
body.home .join-option { cursor: default; }
body.home .join-option:active { transform: none; }
body.home .overlay .card .panel-head h2 { color: var(--gold); }

/* Listen (offene Räume, Rangliste) */
body.home .open-rooms li, body.home .rank-list li { border: 2px solid rgba(255, 255, 255, 0.1); border-radius: 12px; background: rgba(0, 0, 0, 0.22); }
body.home .open-rooms li.empty, body.home .rank-list li.empty { border: 0; background: none; }

/* „Mehr Hexheim“: Kacheln mit Rahmen, Etikett in Gold */
body.home .promo-head h2 { color: var(--gold); }
body.home .promo .promo-trio .promo-card {
  border: 4px solid var(--ft-edge); border-radius: 18px; background: var(--ft-frame-bg);
  box-shadow: inset 0 0 0 2px var(--ft-hi), 0 0 0 2px var(--ft-out), 0 6px 0 2px var(--ft-out), 0 12px 20px rgba(0, 0, 0, 0.35);
}
body.home .promo .promo-trio .promo-card:hover { transform: translateY(-3px); }
body.home .promo .promo-trio .promo-card .promo-art { border-bottom: 3px solid var(--ft-out); }
body.home .promo .promo-trio .promo-card .promo-body strong { font-family: var(--font-display); }
body.home .promo-card .promo-tag { background: linear-gradient(180deg, #ffe08a, var(--gold)) !important; color: var(--ft-ink) !important; border: 2px solid #5a3a0c !important; font-weight: 800; }
body.home .promo-card .lock { border: 2px solid var(--ft-out); }
body.home .promo-head .shop-link { border: 3px solid var(--ft-out); border-radius: 12px; background: linear-gradient(180deg, #1b4a6e, #0f304b); box-shadow: 0 3px 0 var(--ft-edge), 0 3px 0 3px var(--ft-out); font-family: var(--font-display); font-weight: 800; }
body.home .huge-btn:not(.alt), body.home .play-option.primary, body.home .board-tabs button.on { color: var(--ft-ink); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45); }

/* ==================== Sandbox (Karten-Editor) im Spieltisch-Look ====================
   Gleiche Bausteine wie Startseite, Lobby und Spiel (Variablen --ft-*). Nur body.sandbox. */
body.sandbox > header { border-bottom: 4px solid var(--ft-edge); box-shadow: 0 2px 0 var(--ft-out), 0 6px 16px rgba(0, 0, 0, 0.35); }
body.sandbox .sandbox-tag {
  font-size: 0.85rem; padding: 3px 12px; border-radius: 999px; color: var(--ft-ink); font-weight: 700;
  background: linear-gradient(180deg, #ffe08a, var(--gold)); border: 2px solid #5a3a0c; box-shadow: 0 2px 0 var(--ft-out);
}
/* Kästen der Seitenleiste und das Brett: dicke Rahmen mit 3D-Kante */
body.sandbox .sidebar section {
  background: var(--ft-frame-bg); border: 4px solid var(--ft-edge); border-radius: 18px; box-shadow: var(--ft-frame-shadow);
  backdrop-filter: none; padding: 14px 16px 16px; margin-bottom: 18px;
}
body.sandbox .sidebar h2 { color: var(--gold); margin: 0 0 8px; font-size: 1.15rem; }
body.sandbox .sidebar h3 { color: var(--gold); font-size: 0.95rem; margin: 12px 0 6px; }
body.sandbox .sidebar label { color: var(--muted); font-weight: 700; }
body.sandbox #editor-board {
  border: 4px solid var(--ft-edge); border-radius: 18px; background: #0b2c45;
  box-shadow: inset 0 0 0 2px var(--ft-hi), 0 0 0 2px var(--ft-out), 0 6px 0 2px var(--ft-out), 0 14px 26px rgba(0, 0, 0, 0.4);
}
/* Eingabefelder: dunkel eingelassen */
body.sandbox input:not([type=checkbox]):not([type=range]):not([type=color]), body.sandbox select {
  border: 3px solid var(--ft-out); border-radius: 12px; background: rgba(0, 0, 0, 0.3); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.35);
}
body.sandbox input:focus, body.sandbox select:focus { border-color: var(--gold); }
body.sandbox input[type=range] { accent-color: var(--gold); }
body.sandbox input[type=checkbox] { accent-color: var(--gold); }
/* Knöpfe: dicke, drückbare Kacheln */
body.sandbox button, body.sandbox a.button {
  border: 3px solid var(--ft-out); border-radius: 12px; background: linear-gradient(180deg, #1b4a6e, #0f304b);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.14), 0 4px 0 var(--ft-edge), 0 4px 0 3px var(--ft-out);
  font-family: var(--font-display); font-weight: 800; transition: transform 0.08s, box-shadow 0.08s;
}
body.sandbox button:hover:not(:disabled), body.sandbox a.button:hover { background: linear-gradient(180deg, #235a83, #133a59); border-color: var(--ft-out); }
body.sandbox button:active:not(:disabled), body.sandbox a.button:active {
  transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 1px 0 var(--ft-edge), 0 1px 0 3px var(--ft-out);
}
body.sandbox button.primary, body.sandbox button.primary:hover:not(:disabled) {
  border-color: var(--ft-ink); color: var(--ft-ink); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  background: linear-gradient(180deg, #ffe48f, #f2c14e 55%, #d29a2a);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45), 0 5px 0 var(--ft-gold-dark), 0 5px 0 3px var(--ft-ink), 0 10px 14px rgba(0, 0, 0, 0.3);
}
body.sandbox button.primary:active:not(:disabled) { box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.4), 0 1px 0 var(--ft-gold-dark), 0 1px 0 3px var(--ft-ink); }
/* Pinsel: Farbstreifen links bleibt, aktiver Pinsel in Gold */
body.sandbox .tool-grid { gap: 9px 7px; }
body.sandbox .tool-grid button { border-left: 10px solid var(--swatch, rgba(255, 255, 255, 0.2)); padding: 6px 10px; }
body.sandbox .tool-grid.numbers button { border-left-width: 3px; }
body.sandbox .tool-grid button.active, body.sandbox .tool-grid button.active:hover:not(:disabled) {
  border-color: var(--ft-ink); border-left-color: var(--swatch, var(--ft-ink)); color: var(--ft-ink);
  background: linear-gradient(180deg, #ffe08a, var(--gold));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 4px 0 var(--ft-gold-dark), 0 4px 0 3px var(--ft-ink), 0 0 12px rgba(244, 197, 90, 0.45);
}
body.sandbox .editor-actions { gap: 12px; margin-bottom: 16px; }
body.sandbox #status { font-family: var(--font-display); }
body.sandbox .editor-paywall .card { background: var(--ft-frame-bg); border: 4px solid var(--ft-edge); border-radius: 20px; box-shadow: var(--ft-frame-shadow); }
@media (max-width: 700px) {
  body.sandbox .editor-layout { padding: 12px; gap: 12px; }
  body.sandbox .editor-main { order: -1; flex-basis: 100%; }
  body.sandbox #editor-board { max-height: 62vh; }
}
/* Sandbox-Brett: Meer wie im Spiel, leere Wasserfelder nur als feines Raster */
body.sandbox #editor-board { background: #0b2c45 url(/sea/meer.jpg) center / cover; }
body.sandbox .hex-edit-water { fill: rgba(255, 255, 255, 0.05); stroke: rgba(255, 255, 255, 0.22); stroke-width: 1.5; }
body.sandbox .hex-edit-water:hover { fill: rgba(255, 255, 255, 0.16); }
body.sandbox .hex-land.plain { stroke: #a8834a; stroke-width: 3; }
/* Sandbox im Raum: Editor als Vollbild-Fenster über der Lobby */
.sandbox-overlay { position: fixed; inset: 0; z-index: 60; background: var(--bg-deep); }
.sandbox-overlay iframe { width: 100%; height: 100%; border: 0; display: block; }
body.sandbox-open { overflow: hidden; }
body.sandbox .only-in-room { display: none; }
body.sandbox.in-room .only-in-room { display: inline-flex; }
body.sandbox.in-room .not-in-room { display: none; }
/* Lobby: Sandbox-Kachel */
#lobby-view .map-card.sandbox-card .mc-img { background: radial-gradient(circle at 50% 40%, rgba(244, 197, 90, 0.25), transparent 70%), linear-gradient(180deg, #1b4a6e, #0c2a42); }

/* =====================================================================
   Handy 2.0 – Lobby schlank, im Spiel zählen nur Brett und Karten
   Gilt für Handys hochkant (schmal) UND quer (niedrig). Muss zu mobileQuery in room.js passen.
   ===================================================================== */
.desk-only { display: inline; }
@media (max-width: 900px), (max-height: 520px) and (orientation: landscape) {
  .desk-only { display: none; }

  /* ---------- Lobby: alles in einer Spalte, Start-Knopf klebt unten ---------- */
  body:not(.in-game) > header { flex-wrap: nowrap; gap: 8px; padding: 6px 8px; padding-top: max(6px, var(--sa-t)); }
  body:not(.in-game) > header h1 { font-size: 1rem; gap: 6px; flex: none; }
  body:not(.in-game) > header h1 .brand { display: none; }
  body:not(.in-game) > header .logo { width: 28px; height: 28px; }
  body:not(.in-game) > header .controls { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 6px; min-width: 0; }
  body:not(.in-game) > header .controls::-webkit-scrollbar { display: none; }
  body:not(.in-game) > header .controls > * { flex: none; }
  body:not(.in-game) > header .controls button, body:not(.in-game) > header .controls a.button { padding: 6px 9px; }

  #lobby-view.lobby2 { display: flex; flex-direction: column; align-items: stretch; gap: 10px; max-width: 720px; margin: 0 auto;
    padding: 8px 8px calc(96px + var(--sa-b)); }
  #lobby-view.lobby2 > * , #lobby-view .lobby-side > *, #lobby-view .lobby-main > * { min-width: 0; }
  #lobby-view .lobby-side, #lobby-view .lobby-main { display: contents; }
  #lobby-view .game-summary { order: 1; }
  #lobby-view .lobby-side > .lobby-box:first-child { order: 2; }
  #lobby-view .lobby-tabs-box { order: 3; }
  #lobby-view .lobby-chat { order: 4; }
  #lobby-view .tutorial-cta { display: none; }
  #lobby-view .lobby-box { padding: 10px; border-radius: 16px; }

  /* Übersicht: kleines Kartenbild links, Name + Regeln rechts */
  #lobby-view .game-summary { grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 8px; }
  #lobby-view .game-summary .map-preview { min-height: 0; height: 112px; border-radius: 12px; }
  #lobby-view .game-summary #map-preview { height: 112px; min-height: 0; }
  #lobby-view .mystery-island small { display: none; }
  #lobby-view .summary-kicker, #lobby-view #lobby-map-info { display: none; }
  #lobby-view .game-summary h2 { font-size: 1.15rem; line-height: 1.15; }
  #lobby-view .summary-chips { gap: 4px; margin: 2px 0 0; }
  #lobby-view .summary-chips > * { font-size: 0.7rem; padding: 2px 7px; }
  /* Bereit / Starten: feste Leiste am unteren Rand, immer erreichbar */
  #lobby-view .start-bar { position: fixed; left: 8px; right: 8px; bottom: calc(8px + var(--sa-b)); z-index: 30;
    max-width: 704px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 8px;
    background: var(--ft-frame-bg); border: 3px solid var(--ft-edge); border-radius: 18px; box-shadow: var(--ft-frame-shadow); }
  #lobby-view .start-bar .hint { order: -1; flex: 1 1 100%; min-width: 0; margin: 0; font-size: 0.72rem; text-align: center; }
  #lobby-view .start-bar .hint:empty { display: none; }
  #lobby-view .start-bar button { flex: 1 1 0; min-width: 0; width: auto; height: 50px; font-size: 1rem; padding: 0 10px; }
  #lobby-view .start-bar button[hidden] { display: none; }

  /* Spieler: schmale Zeilen */
  #lobby-view .seats { gap: 5px; margin: 8px 0 6px; }
  #lobby-view .seat { min-height: 44px; padding: 4px 8px; gap: 8px; }
  #lobby-view .seat .avatar { width: 30px; height: 30px; font-size: 0.85rem; }
  #lobby-view .seat .mini-btn, #lobby-view .seat-actions button { padding: 3px 7px; font-size: 0.76rem; }
  #lobby-view .color-row { padding-top: 6px; gap: 6px; }
  #lobby-view .color-row > .hint { display: none; }
  #lobby-view .color-dot { width: 26px; height: 26px; }

  /* Reiter: eine wischbare Zeile */
  #lobby-view .lobby-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-bottom: 8px; }
  #lobby-view .lobby-tabs::-webkit-scrollbar { display: none; }
  #lobby-view .lobby-tab { flex: none; padding: 7px 10px; font-size: 0.85rem; }
  #lobby-view .host-note:empty { display: none; }
  /* Karten: jede Gruppe als wischbare Reihe statt eines langen Rasters */
  #lobby-view .map-group-head .hint { display: none; }
  #lobby-view .map-group-head h4 { margin: 6px 0 6px; font-size: 0.95rem; }
  #lobby-view .map-cards { display: flex; grid-template-columns: none; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity;
    padding: 2px 2px 8px; scrollbar-width: none; }
  #lobby-view .map-cards::-webkit-scrollbar { display: none; }
  #lobby-view .map-card { flex: 0 0 132px; scroll-snap-align: start; }
  #lobby-view .map-card .mc-body strong { font-size: 0.82rem; }
  #lobby-view .rule-grid { grid-template-columns: 1fr; gap: 8px; }
  #lobby-view .rule { padding: 8px 10px; }

  /* Chat: zugeklappt, Antippen klappt auf */
  #lobby-view .lobby-chat h2 { margin: 0; }
  #lobby-view .lobby-chat-toggle { display: flex; align-items: center; gap: 8px; width: 100%; padding: 4px 2px; border: 0; background: none; box-shadow: none;
    font-family: var(--font-display); font-size: 1.05rem; color: var(--text); justify-content: flex-start; }
  #lobby-view .lobby-chat-toggle .chev { margin-left: auto; transition: transform 0.2s; }
  body.lobby-chat-open #lobby-view .lobby-chat-toggle .chev { transform: rotate(180deg); }
  body:not(.lobby-chat-open) #lobby-view .lobby-chat .chat { display: none; }
  body.lobby-chat-open #lobby-view .lobby-chat .chat { margin-top: 8px; }
  #lobby-view .lobby-chat .chat-list { height: 38dvh; }

  /* ---------- Spiel: Kopfzeile als Menü (☰), Brett + Karten bekommen den Platz ---------- */
  body.in-game > header { display: none; }
  body.in-game.menu-open > header { display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: 50; flex-wrap: wrap; gap: 8px;
    padding: max(8px, var(--sa-t)) 10px 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
  body.in-game.menu-open > header .controls { flex-wrap: wrap; overflow: visible; gap: 8px; }
  body.in-game.menu-open > header .controls .hide-sm { display: inline; }
  .game2 .menu-btn, .game2 .sheet-btn { display: grid; place-items: center; position: absolute; z-index: 6; width: 42px; height: 42px; padding: 0;
    border-radius: 50%; font-size: 1.15rem; background: rgba(7, 26, 43, 0.88); border: 3px solid var(--ft-edge); box-shadow: 0 0 0 2px var(--ft-out), 0 3px 0 2px var(--ft-out); }
  .game2 .menu-btn { left: 8px; top: 8px; }
  .game2 .sheet-btn { left: 8px; top: 60px; }
  .game2 .music-quick-wrap { display: block; position: absolute; z-index: 6; left: 8px; top: 112px; }
  .game2 .music-quick { display: grid; place-items: center; width: 42px; height: 42px; padding: 0;
    border-radius: 50%; font-size: 1.15rem; background: rgba(7, 26, 43, 0.88); border: 3px solid var(--ft-edge); box-shadow: 0 0 0 2px var(--ft-out), 0 3px 0 2px var(--ft-out); }
  .game2 .music-quick-wrap .music-menu { left: calc(100% + 8px); right: auto; top: 0; }
  .game2 .sheet-btn .badge { position: absolute; top: -5px; right: -5px; }
  body.in-game .game2 { padding-top: max(6px, var(--sa-t)); }

  /* Spielerleiste zu: nur Bild, Punkte und Kartenzahl – ganz schmal */
  .game2 .players-box { display: flex; flex-direction: row !important; align-items: center; gap: 6px; }
  .game2 .players-box > #game-players { flex: 1; min-width: 0; }
  body.players-open .game2 .players-box > #game-players { order: 0; }
  body.players-open .game2 .players-toggle { position: sticky; top: 0; }
  .game2 .players-toggle { display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; border-radius: 10px; font-size: 1rem;
    border: 3px solid var(--ft-out); background: linear-gradient(180deg, #1b4a6e, #0f304b); box-shadow: 0 3px 0 var(--ft-out); }
  body:not(.players-open) .game2 #game-players .player-card { flex: 1 1 0; min-width: 0; flex-direction: row; align-items: center; justify-content: center; gap: 3px; padding: 3px 4px; cursor: pointer; }
  /* Kartenzahl als kleines Abzeichen unten am Bild – so passen 4–6 Spieler in eine Zeile */
  body:not(.players-open) .game2 #game-players .pc-chips { position: absolute; left: 3px; bottom: -3px; margin: 0; z-index: 1; pointer-events: none; }
  body:not(.players-open) .game2 #game-players .pc-chips .chip { height: 15px; padding: 0 3px !important; gap: 1px; font-size: 0.58rem !important; line-height: 1;
    border: 1.5px solid rgba(255, 255, 255, 0.35); border-radius: 7px; background: rgba(4, 18, 31, 0.95); display: inline-flex; align-items: center; }
  body:not(.players-open) .game2 #game-players .pc-chips .chip:not(:first-child) { display: none !important; }
  body:not(.players-open) .game2 #game-players .player-card { position: relative; overflow: visible; }
  body:not(.players-open) .game2 #game-players .pc-who, body:not(.players-open) .game2 #game-players .pc-awards { display: none; }
  body:not(.players-open) .game2 #game-players .pc-head { width: auto; gap: 4px; }
  body:not(.players-open) .game2 #game-players .pc-avatar { width: 28px !important; height: 28px !important; }
  body:not(.players-open) .game2 #game-players .pc-avatar .avatar { width: 24px !important; height: 24px !important; }
  body:not(.players-open) .game2 #game-players .pc-vp { width: 26px !important; height: 30px !important; padding: 0 0 4px !important; }
  body:not(.players-open) .game2 #game-players .pc-vp b { font-size: 0.9rem !important; }
  body:not(.players-open) .game2 #game-players .pc-vp small { display: none; }
  body:not(.players-open) .game2 #game-players .pc-chips .chip { padding: 1px 5px; font-size: 0.68rem; }

  /* Spielerleiste auf: alle Infos als Liste über dem Brett */
  body.players-open .game2 .players-box { position: fixed; top: 0; left: 0; right: 0; z-index: 42; max-height: 78dvh; overflow-y: auto;
    padding: max(10px, var(--sa-t)) 10px 10px !important; align-items: flex-start;
    background: var(--ft-frame-bg) !important; border: 0; border-bottom: 4px solid var(--ft-edge) !important; border-radius: 0 0 20px 20px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55) !important; }
  body.players-open .game2 #game-players { flex-direction: column; overflow: visible; gap: 6px; }
  body.players-open .game2 #game-players .player-card { flex: none; width: 100%; padding: 6px 10px 6px 8px; cursor: default; }
  body.players-open .game2 #game-players .pc-sub { display: block; }
  body.players-open .game2 #game-players .pc-chips { justify-content: flex-start; flex-wrap: wrap; gap: 4px; }
  body.players-open .game2 #game-players .pc-chips .chip:not(:first-child) { display: inline-flex; }
  body.players-open .game2 #game-players .pc-awards { position: static; }
  body.players-open .game2 #game-players .award-pill { font-size: 0.72rem; padding: 1px 6px; background: rgba(0, 0, 0, 0.25); }
  body.players-open .game2 #award-bar { display: none; }
  body.players-open .sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 41; background: rgba(3, 12, 22, 0.55); }

  /* Unten: kompakt – Status als eine Zeile, Knöpfe in einer Reihe */
  .game2 .bottom-bar { padding: 5px 6px; gap: 5px; border-radius: 16px; }
  .game2 #turn-banner { padding: 3px 8px; font-size: 0.78rem; border-radius: 10px; min-height: 0; }
  .game2 #banner-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .game2 .timer { flex: 0 0 64px; height: 14px; }
  body.in-game .game2 .timer { height: 18px; }
  body.in-game .game2 #timer-text { font-size: 0.62rem; }
  .game2 .hand-empty { display: none; }
  .game2 .hand-cards:not(:has(.res-card:not(.hand-ghost), .dev-card)) { display: none; }
  .game2 .hand-cards { padding-top: 10px; gap: 6px; }
  .game2 .action-row { flex-wrap: nowrap; gap: 5px; }
  .game2 .bb, .game2 .act-btn { width: 48px; height: 54px; flex: none; border-radius: 12px; }
  .game2 .bb .bb-img { width: 38px; height: 32px; }
  .game2 .act-btn .act-icon .bb-img { width: 34px; height: 30px; }
  .game2 .act-btn .act-label { font-size: 0.62rem; }
  .game2 #roll-btn, .game2 #end-turn { flex: 1 1 auto; min-width: 0; height: 54px; padding: 0 8px; font-size: 0.9rem; line-height: 1.1; white-space: normal; border-radius: 14px; }
  .game2 .bb-left { min-width: 20px; height: 20px; line-height: 15px; top: -8px; right: -7px; font-size: 0.68rem; }
}

/* Sehr schmale Handys: Bau-Knöpfe noch etwas kleiner */
@media (max-width: 380px) {
  .game2 .bb, .game2 .act-btn { width: 44px; height: 50px; }
  .game2 #roll-btn, .game2 #end-turn { font-size: 0.82rem; }
}

/* ---------- Handy quer: Brett links über die volle Höhe, rechts Spieler, Karten und Knöpfe ---------- */
@media (max-height: 520px) and (orientation: landscape) {
  body.in-game .game2 { display: grid; height: 100dvh; gap: 6px;
    padding: 6px max(6px, var(--sa-r)) 6px max(6px, var(--sa-l));
    grid-template-columns: minmax(0, 1fr) clamp(250px, 38vw, 360px); grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "main players" "main bar"; }
  .game2 .game-main { grid-area: main; order: 0; height: 100%; }
  .game2 .players-box { grid-area: players; order: 0; }
  .game2 .bottom-bar { grid-area: bar; order: 0; max-height: none; min-height: 0; overflow-y: auto; align-self: stretch; }
  .game2 .hand-row { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 5px; height: 100%; }
  .game2 .hand-cards { flex: none; }
  .game2 .act-col { flex: 1 1 auto; justify-content: flex-end; }
  .game2 .action-row { flex-wrap: wrap; justify-content: flex-start; }
  .game2 #roll-btn, .game2 #end-turn { flex: 1 1 100%; height: 46px; }
  .game2 .spectator-bar { grid-column: 1 / -1; }
  /* Chat & Verlauf: Leiste von rechts statt von unten (das Brett bleibt links sichtbar) */
  body.sheet-open .game2 .chat-box { left: auto; top: 0; bottom: 0; right: 0; width: min(380px, 50vw); height: auto;
    border-radius: 20px 0 0 20px; padding-right: max(10px, var(--sa-r)); padding-bottom: 64px; }
  body.sheet-open .game2 .bank-row { left: auto; right: 0; bottom: 8px; width: min(380px, 50vw); padding-right: max(8px, var(--sa-r)); }
  body.players-open .game2 .players-box { left: auto; width: min(420px, 60vw); max-height: 100dvh; border-radius: 0 0 0 20px; }
  .game2 .board-wrap > #dice .die { width: 28px; height: 28px; }
  /* Lobby quer: Start-Leiste niedrig, Hinweis ausgeblendet (der Knopf ist dann ohnehin ausgegraut) */
  #lobby-view .start-bar { padding: 5px; bottom: calc(5px + var(--sa-b)); }
  #lobby-view .start-bar .hint { display: none; }
  #lobby-view .start-bar button { height: 40px; }
  #lobby-view.lobby2 { padding-bottom: calc(60px + var(--sa-b)); }
}

/* ---------- Handy-Feinschliff: Notch überall beachten, Bau-Knöpfe aufgeräumt ---------- */
@media (max-width: 900px), (max-height: 520px) and (orientation: landscape) {
  /* Alles, was über dem Brett schwebt, hält Abstand zu Notch / Kamera-Loch / Home-Leiste */
  body.in-game .game2 { padding-top: max(8px, var(--sa-t)); padding-left: max(6px, var(--sa-l)); padding-right: max(6px, var(--sa-r));
    padding-bottom: max(6px, var(--sa-b)); }
  body.in-game.menu-open > header { padding-left: max(10px, var(--sa-l)); padding-right: max(10px, var(--sa-r)); }
  body.players-open .game2 .players-box { padding-left: max(10px, var(--sa-l)) !important; padding-right: max(10px, var(--sa-r)) !important; }
  body.sheet-open .game2 .chat-box { padding-left: max(10px, var(--sa-l)); padding-right: max(10px, var(--sa-r)); }
  body.sheet-open .game2 .bank-row { left: max(10px, var(--sa-l)); right: max(10px, var(--sa-r)); }
  /* Leiste zu: nichts ragt über den oberen Rand hinaus */
  body:not(.players-open) .game2 #game-players { padding: 3px 2px 5px; overflow-y: hidden; }

  /* Knopfreihe: alle Knöpfe teilen sich die Breite gleichmäßig, Würfeln/Zug beenden bekommt etwas mehr */
  .game2 .action-row { gap: 5px; align-items: stretch; }
  .game2 .bb, .game2 .act-btn { flex: 1 1 0; width: auto; min-width: 0; max-width: 66px; height: 56px; padding: 4px 2px 5px; gap: 2px; justify-content: center; }
  .game2 #roll-btn, .game2 #end-turn { flex: 1.7 1 0; min-width: 76px; height: 56px; }
  .game2 .bb .bb-img { width: 100%; max-width: 40px; height: 30px; }
  /* Kostenpunkte: klein und mittig, umbrechen statt überstehen (Stadt hat 5) */
  .game2 .bb-dots { flex-wrap: wrap; justify-content: center; gap: 1.5px; max-width: 100%; line-height: 0; }
  .game2 .bb-dot { width: 6px; height: 6px; border-width: 1px; }
  /* Handeln: nur das Symbol – das Wort passte nicht hinein */
  .game2 .act-btn .act-label { display: none; }
  .game2 .act-btn .act-icon { font-size: 1.5rem; }
  .game2 .act-btn .act-icon .bb-img { width: 36px; height: 34px; }
  .game2 .bb-left { top: -7px; right: -5px; }
  /* Kosten-Tipp beim Drüberfahren gibt es am Handy nicht (kein Hover) – er schob die Leiste in die Breite */
  .game2 .bb-tip { display: none; }
  .game2 .bottom-bar { overflow-x: hidden; }
}
@media (max-height: 520px) and (orientation: landscape) {
  /* Quer: Knöpfe in einer Reihe, Würfeln/Zug beenden darunter über die ganze Breite */
  .game2 .action-row { flex-wrap: wrap; }
  .game2 #roll-btn, .game2 #end-turn { flex: 1 1 100%; height: 44px; }
  .game2 .bb, .game2 .act-btn { height: 52px; }
}

/* ==================== Shop im Spieltisch-Look ====================
   Gleiche Bausteine wie Startseite, Lobby und Spiel (Variablen --ft-*): dicke Rahmen mit 3D-Kante,
   Gold als Akzent, drückbare Knöpfe. Nur body.shop. Eigene Produktbilder: public/shop-img/ (siehe LIESMICH.md). */
body.shop > header { border-bottom: 4px solid var(--ft-edge); box-shadow: 0 2px 0 var(--ft-out), 0 6px 16px rgba(0, 0, 0, 0.35); }
body.shop > header .controls > a.button {
  border: 3px solid var(--ft-out); border-radius: 12px; background: linear-gradient(180deg, #1b4a6e, #0f304b);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.14), 0 3px 0 var(--ft-edge), 0 3px 0 3px var(--ft-out); font-family: var(--font-display); font-weight: 800;
}
body.shop > header .coin-chip { border: 3px solid var(--ft-out); box-shadow: 0 3px 0 var(--ft-out); }
body.shop .demo-banner { border-bottom: 3px solid var(--ft-out); font-weight: 700; }
body.shop .shop-page { gap: 26px; padding-top: 24px; }

/* Rahmen: großer Kasten oben, Abo-Bereich, Pakete, Münzen, Käufe */
body.shop .support-hero, body.shop .tiers, body.shop .pack, body.shop .coin-shop, body.shop .my-purchases {
  border: 4px solid var(--ft-edge); border-radius: 22px; box-shadow: var(--ft-frame-shadow);
}
body.shop .tiers, body.shop .pack, body.shop .coin-shop, body.shop .my-purchases { background: var(--ft-frame-bg); backdrop-filter: none; }
body.shop .support-hero { min-height: 330px; }
body.shop .support-hero::before { background: linear-gradient(90deg, rgba(4, 18, 31, 0.95) 0%, rgba(4, 18, 31, 0.78) 45%, rgba(4, 18, 31, 0.1) 100%); }
body.shop .support-goal { border: 3px solid var(--ft-out); background: rgba(4, 18, 31, 0.6); border-radius: 14px; }
body.shop .goal-track { height: 14px; border-radius: 999px; border: 2px solid var(--ft-out); background: rgba(0, 0, 0, 0.45); }
body.shop .goal-fill { border-radius: 999px; background: linear-gradient(180deg, #ffe48f, #f2c14e 55%, #d29a2a); }

/* Überschriften und Etiketten in Gold */
body.shop .plus-kicker { color: var(--ft-ink); background: linear-gradient(180deg, #ffe08a, var(--gold)); border: 2px solid #5a3a0c; box-shadow: 0 2px 0 var(--ft-out); }
body.shop .tiers-head h2, body.shop .shop-title, body.shop .coin-head h2, body.shop .my-purchases h2 { color: var(--gold); font-family: var(--font-display); }
body.shop .shop-title { font-size: 1.45rem; }

/* Monatlich / Jährlich: Reiter wie in der Lobby */
body.shop .billing-toggle { border: 3px solid var(--ft-out); background: rgba(0, 0, 0, 0.35); }
body.shop .billing-toggle button { font-family: var(--font-display); font-weight: 800; }
body.shop .billing-toggle button.on, body.shop .billing-toggle button.on:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffe08a, var(--gold)); color: var(--ft-ink); box-shadow: 0 3px 0 var(--ft-gold-dark); }
body.shop .billing-toggle button.on .save { background: var(--ft-ink); color: #fff; }

/* Abo-Karten: dicke Kacheln, Premium mit violettem Rand und Leuchten */
body.shop .tier-card { border: 4px solid var(--ft-out); border-radius: 20px; padding: 22px; background: linear-gradient(180deg, #16405f, #0c2a42);
  box-shadow: inset 0 0 0 2px var(--ft-hi), 0 6px 0 var(--ft-edge), 0 6px 0 4px var(--ft-out), 0 14px 26px rgba(0, 0, 0, 0.35); overflow: visible; }
body.shop .tier-card.tier-plus { border-color: #5a3a0c; box-shadow: inset 0 0 0 2px rgba(255, 224, 138, 0.25), 0 6px 0 var(--ft-gold-dark), 0 6px 0 4px var(--ft-ink), 0 14px 26px rgba(0, 0, 0, 0.35); }
body.shop .tier-card.tier-premium { border-color: #3b2370; background: linear-gradient(180deg, #2c2366, #12204a 60%, #0c2a42);
  box-shadow: inset 0 0 0 2px rgba(205, 182, 255, 0.25), 0 6px 0 #6a3fd0, 0 6px 0 4px #1d1040, 0 0 30px rgba(140, 100, 240, 0.35), 0 14px 26px rgba(0, 0, 0, 0.35); }
body.shop .tier-icon { border: 3px solid var(--ft-out); background: rgba(0, 0, 0, 0.3); box-shadow: 0 3px 0 var(--ft-out); }
body.shop .tier-ribbon { border: 2px solid #1d1040; box-shadow: 0 3px 0 #1d1040; font-family: var(--font-display); }
body.shop .tier-perks { border-top: 2px dashed rgba(255, 255, 255, 0.14); }
/* Optionales Bild oben in der Abo-Karte (shop-img/tier-plus, tier-premium) */
body.shop .tier-banner { display: none; }
body.shop .tier-banner.has-photo { display: block; margin: -22px -22px 4px; height: 150px; overflow: hidden; border-radius: 16px 16px 0 0; border-bottom: 3px solid var(--ft-out); }
body.shop .tier-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Pakete: Bild oben randlos, Titel in Display-Schrift */
body.shop .pack { padding: 0 0 16px; overflow: hidden; gap: 10px; transition: transform 0.15s; }
body.shop .pack:hover { transform: translateY(-3px); }
body.shop .pack > :not(.pack-preview) { margin-left: 16px; margin-right: 16px; }
body.shop .pack .pack-preview { border-radius: 0; border-bottom: 3px solid var(--ft-out); }
body.shop .pack strong { font-family: var(--font-display); font-size: 1.1rem; }
body.shop .pack.owned { border-color: #2f7a32; }
body.shop .owned-pill { border: 2px solid rgba(87, 196, 114, 0.5); }
body.shop .theme-prev { border: 3px solid var(--ft-edge); border-radius: 16px; box-shadow: 0 0 0 2px var(--ft-out), 0 4px 0 2px var(--ft-out); }
body.shop .tp-label { border: 2px solid var(--ft-out); font-family: var(--font-display); }

/* Knöpfe: drückbar – Gold für Kaufen, Blau für den Rest */
body.shop .shop-page button, body.shop .overlay button {
  border: 3px solid var(--ft-out); border-radius: 14px; background: linear-gradient(180deg, #1b4a6e, #0f304b); color: var(--text);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.14), 0 4px 0 var(--ft-edge), 0 4px 0 3px var(--ft-out);
  font-family: var(--font-display); font-weight: 800; transition: transform 0.08s, box-shadow 0.08s;
}
body.shop .billing-toggle button { border: 0; box-shadow: none; background: transparent; }
body.shop .shop-page button.primary, body.shop .overlay button.primary {
  border-color: var(--ft-ink); color: var(--ft-ink); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  background: linear-gradient(180deg, #ffe48f, #f2c14e 55%, #d29a2a);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45), 0 5px 0 var(--ft-gold-dark), 0 5px 0 3px var(--ft-ink), 0 10px 14px rgba(0, 0, 0, 0.3);
}
body.shop .tier-premium button.primary { border-color: #1d1040; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  background: linear-gradient(180deg, #c2a6ff, #8a5be0 55%, #6a3fd0); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.4), 0 5px 0 #4a2a9a, 0 5px 0 3px #1d1040, 0 10px 14px rgba(0, 0, 0, 0.3); }
body.shop .shop-page button:active:not(:disabled), body.shop .overlay button:active:not(:disabled) { transform: translateY(4px); }
body.shop .shop-page button:disabled { opacity: 0.7; transform: none; }
body.shop .cancel-btn { color: #ffb09e; }
body.shop .overlay button.ghost { border: 0; box-shadow: none; background: transparent; }

/* Hexmünzen */
body.shop .throw-chip { border: 2px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.25); font-weight: 700; }
body.shop .coin-pack { border: 3px solid var(--ft-out); border-radius: 18px; background: linear-gradient(180deg, #2b3d4f, #182838);
  box-shadow: inset 0 0 0 2px rgba(255, 224, 138, 0.18), 0 5px 0 var(--ft-gold-dark), 0 5px 0 3px var(--ft-out); overflow: visible; }
body.shop .coin-pack strong { font-family: var(--font-display); font-size: 1.1rem; }
body.shop .coin-art { display: grid; place-items: center; height: 84px; }
body.shop .coin-art.has-photo { width: calc(100% + 24px); margin: -16px -12px 4px; height: 120px; overflow: hidden; border-radius: 15px 15px 0 0; border-bottom: 3px solid var(--ft-out); }
body.shop .coin-art.has-photo .coin-icon { display: none; }
body.shop .coin-img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.shop .plan-badge { z-index: 2; border: 2px solid #08260f; box-shadow: 0 2px 0 #08260f; font-family: var(--font-display); }
body.shop .ca-card { border: 3px solid #5a3a0c; box-shadow: 0 4px 0 var(--ft-gold-dark), 0 4px 0 3px var(--ft-ink); }
body.shop .coin-log li { border: 2px solid rgba(255, 255, 255, 0.06); background: rgba(0, 0, 0, 0.22); }
body.shop .my-purchases .rank-list li { border: 2px solid rgba(255, 255, 255, 0.08); border-radius: 12px; background: rgba(0, 0, 0, 0.22); }

/* Kasse und Danke-Fenster */
body.shop .overlay .card { background: var(--ft-frame-bg); border: 4px solid var(--ft-edge); border-radius: 22px; box-shadow: var(--ft-frame-shadow); backdrop-filter: none; }
body.shop .overlay .card h2 { color: var(--gold); }
body.shop .co-item { border: 3px solid var(--ft-out); background: rgba(0, 0, 0, 0.3); }

/* Eigene Fotos: kein Schwenk (sie sind schon fertig gestaltet) */
body.shop img.photo.support-img { animation: img-in 0.6s ease both; }

@media (max-width: 720px) {
  body.shop .shop-page { padding: 14px max(10px, var(--sa-l)) 40px max(10px, var(--sa-r)); gap: 18px; }
  body.shop .support-hero { min-height: 0; }
  body.shop .support-hero::before { background: linear-gradient(180deg, rgba(4, 18, 31, 0.55), rgba(4, 18, 31, 0.95) 55%); }
  body.shop .support-copy { padding: 140px 16px 18px; }
  body.shop .tier-card { padding: 18px; }
  body.shop .tier-banner.has-photo { margin: -18px -18px 4px; }
  body.shop .coin-account { grid-template-columns: 1fr; }
  body.shop > header .controls { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
}
/* Shop: 5 Pakete passen auf dem PC in eine Reihe */
body.shop .packs { grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); }

/* ==================== Spielende im Spieltisch-Look ====================
   Siegerfenster: goldenes Titelband, Platzierung mit Medaillen-Nummern und Gold-Punktemünzen,
   Titel als Kacheln, drückbare Knöpfe (Revanche in Gold). Dazu die Replay-Leiste. */
#winner-overlay { background: rgba(3, 12, 22, 0.72); }
#winner-overlay .winner-card {
  max-width: 600px; padding: 0 0 18px; gap: 14px; overflow-x: hidden;
  background: var(--ft-frame-bg); border: 4px solid var(--ft-edge); border-radius: 24px; box-shadow: var(--ft-frame-shadow), 0 0 60px rgba(244, 197, 90, 0.18);
  backdrop-filter: none;
}
#winner-overlay .winner-card > :not(#winner-title) { margin-left: 18px; margin-right: 18px; }
/* Titelband oben: Gold, dunkle Schrift, Lichtkante */
#winner-overlay #winner-title {
  margin: 0; padding: 18px 20px 16px; font-size: clamp(1.4rem, 4.5vw, 2rem); line-height: 1.15; text-align: center;
  color: var(--ft-ink); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  background: radial-gradient(120% 140% at 50% 0%, #fff3c4 0%, #ffd96b 35%, #f2c14e 60%, #d29a2a 100%);
  border-bottom: 4px solid #5a3a0c; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.12), 0 4px 0 var(--ft-out);
}
/* Platzierung */
#winner-overlay .winner-list { counter-reset: place; gap: 8px; }
#winner-overlay .winner-list li {
  counter-increment: place; position: relative; gap: 10px; padding: 10px 12px 10px 48px; min-height: 52px;
  border: 3px solid var(--ft-out); border-radius: 14px; background: linear-gradient(180deg, #16405f, #0e2c46);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.08), 0 4px 0 var(--ft-out);
}
#winner-overlay .winner-list li::before {
  content: counter(place); position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; color: #fff;
  background: radial-gradient(circle at 35% 30%, #c8d3de, #7b8a99 70%); border: 2.5px solid var(--ft-out);
}
#winner-overlay .winner-list li:nth-child(2)::before { background: radial-gradient(circle at 35% 30%, #f2f5f8, #a9b6c3 70%); color: #25303b; }
#winner-overlay .winner-list li:nth-child(3)::before { background: radial-gradient(circle at 35% 30%, #f3c79a, #b4743e 70%); }
/* Sieger: goldener Rahmen, Krone, Leuchten */
#winner-overlay .winner-list li:first-child {
  border-color: #5a3a0c; background: linear-gradient(90deg, rgba(244, 197, 90, 0.28), rgba(244, 197, 90, 0.06) 70%), #12395a;
  box-shadow: inset 0 2px 0 rgba(255, 224, 138, 0.25), 0 4px 0 var(--ft-gold-dark), 0 4px 0 3px var(--ft-ink), 0 0 22px rgba(244, 197, 90, 0.35);
}
#winner-overlay .winner-list li:first-child::before { content: ''; background: url(/emoji/1f451.webp) center / 70% no-repeat, radial-gradient(circle at 35% 30%, #fff6cf, var(--gold) 70%); border-color: #5a3a0c; }
#winner-overlay .winner-list .pname { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
#winner-overlay .winner-list .extras { color: #c9d8e6; }
/* Siegpunkte als Goldmünze */
#winner-overlay .winner-list .vp {
  margin-left: auto; padding: 3px 12px; border-radius: 999px; font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
  color: var(--ft-ink); background: radial-gradient(circle at 35% 30%, #fff6cf, var(--gold) 70%); border: 2.5px solid #5a3a0c;
  box-shadow: 0 2px 0 var(--ft-out); white-space: nowrap;
}
#winner-overlay .elo-change { font-family: var(--font-display); font-weight: 800; padding: 1px 8px; border-radius: 999px; background: rgba(0, 0, 0, 0.3); }
/* Titel (Baumeister, Glückspilz …) als Kacheln */
#winner-overlay .awards { gap: 10px; }
#winner-overlay .award {
  border: 3px solid var(--ft-out); border-left: 6px solid var(--seat, #888); border-radius: 14px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--seat, #888) 26%, #12395a), #0e2c46 80%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.08), 0 4px 0 var(--ft-out);
}
#winner-overlay .award strong { font-family: var(--font-display); font-weight: 800; }
#winner-overlay .award .hint { color: #c9d8e6; }
/* Abschnitte: Punkteverlauf, Zahlen */
#winner-overlay .winner-section h3, #winner-overlay .winner-section summary { color: var(--gold); font-family: var(--font-display); font-weight: 800; font-size: 1rem; }
#winner-overlay .vp-curve { border: 3px solid var(--ft-out); border-radius: 14px; background: rgba(0, 0, 0, 0.32); }
#winner-overlay details.winner-section { border: 3px solid var(--ft-out); border-radius: 14px; background: rgba(0, 0, 0, 0.22); padding: 8px 12px; }
#winner-overlay details.winner-section summary { margin: 0; list-style: none; }
#winner-overlay details.winner-section summary::-webkit-details-marker { display: none; }
#winner-overlay details.winner-section summary::after { content: ' ▾'; }
#winner-overlay details.winner-section[open] summary { margin-bottom: 8px; }
#winner-overlay details.winner-section[open] summary::after { content: ' ▴'; }
/* Knöpfe: drückbare Kacheln, Revanche in Gold */
#winner-overlay .trade-buttons { gap: 10px; justify-content: center; }
#winner-overlay .trade-buttons > button, #winner-overlay .trade-buttons > a.button {
  flex: 1 1 140px; min-height: 48px; border: 3px solid var(--ft-out); border-radius: 14px; color: var(--text);
  background: linear-gradient(180deg, #1b4a6e, #0f304b); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.14), 0 4px 0 var(--ft-edge), 0 4px 0 3px var(--ft-out);
  font-family: var(--font-display); font-weight: 800; transition: transform 0.08s, box-shadow 0.08s;
}
#winner-overlay .trade-buttons > .primary, #winner-overlay .trade-buttons > .primary:hover:not(:disabled) {
  border-color: var(--ft-ink); color: var(--ft-ink); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  background: linear-gradient(180deg, #ffe48f, #f2c14e 55%, #d29a2a);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45), 0 5px 0 var(--ft-gold-dark), 0 5px 0 3px var(--ft-ink), 0 10px 14px rgba(0, 0, 0, 0.3);
}
#winner-overlay .trade-buttons > :active:not(:disabled) { transform: translateY(4px); }
#winner-overlay #rematch-hint { text-align: center; }
/* Replay-Leiste im gleichen Look */
.replay-bar { border: 3px solid var(--ft-edge); box-shadow: 0 0 0 2px var(--ft-out), 0 4px 0 2px var(--ft-out), var(--shadow); background: rgba(7, 26, 43, 0.95); }
.replay-track { height: 12px; border: 2px solid var(--ft-out); background: rgba(0, 0, 0, 0.4); }
.replay-fill { background: linear-gradient(180deg, #ffe48f, #f2c14e 55%, #d29a2a); }
@media (max-width: 600px) {
  #winner-overlay .winner-card { padding-bottom: 14px; max-height: calc(100dvh - 20px); }
  #winner-overlay .winner-card > :not(#winner-title) { margin-left: 12px; margin-right: 12px; }
  #winner-overlay .awards { grid-template-columns: 1fr; }
  #winner-overlay .winner-list li { padding-left: 44px; }
  #winner-overlay .trade-buttons > button, #winner-overlay .trade-buttons > a.button { flex-basis: calc(50% - 5px); }
}

/* ==================== Eigene Schrift für kleine Beschreibungen ====================
   Hinweise, Untertitel und Erklärtexte in einer verspielten Brettspiel-Handschrift (Patrick Hand) –
   statt der Standard-Schrift. Überschriften bleiben Fredoka, Zahlen und Knöpfe Nunito. */
:root { --font-hint: 'Patrick Hand', 'Nunito', system-ui, sans-serif; }
.hint, .tier-tagline, .support-text, .hb-text small, .play-option small, .goal-head + .goal-track + .hint,
.mc-meta, .rule-head .hint, .t2-rates, .tier-sub, .pack .hint, .award .hint, .summary-body .hint {
  font-family: var(--font-hint); font-weight: 400; font-synthesis: none; letter-spacing: 0.015em;
  /* Patrick Hand ist kleiner gezeichnet: auf die Größe der übrigen Schrift anheben */
  font-size-adjust: 0.52;
}
body.home .play-option small { font-family: var(--font-hint); }
/* Abo-Kopfbild: höher, Ausschnitt eher oben (Stern bzw. Diamant bleibt sichtbar) */
body.shop .tier-banner.has-photo { height: 200px; }
body.shop .tier-img { object-position: 50% 20%; }
/* Startseite: Untertitel unter dem Logo in der Brettspiel-Handschrift */
.hero > p { font-family: var(--font-hint); font-weight: 400; font-size-adjust: 0.52; letter-spacing: 0.02em; }

/* ==================== Shop 3: Status · Reiter · Kacheln ====================
   Oben dein Status, darunter 4 Reiter (Abo, Looks, Erweiterungen, Münzen), immer nur einer sichtbar. */
body.shop .shop3 { gap: 16px; max-width: 1100px; }
/* Statusleiste */
.shop-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px;
  background: var(--ft-frame-bg); border: 4px solid var(--ft-edge); border-radius: 18px; box-shadow: var(--ft-frame-shadow); }
.ss-me { display: flex; flex-direction: column; gap: 2px; margin-right: auto; min-width: 0; }
.ss-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ss-tier { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.ss-tier.t1 { color: var(--gold); } .ss-tier.t2 { color: #cdb6ff; } .ss-tier.beta { color: #9be58c; }
.ss-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 12px; text-decoration: none; color: var(--text);
  font-family: var(--font-display); font-weight: 800; border: 3px solid var(--ft-out); background: linear-gradient(180deg, #1b4a6e, #0f304b);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.14), 0 3px 0 var(--ft-edge), 0 3px 0 3px var(--ft-out); }
.ss-chip b { color: var(--gold); }
/* Reiter */
.shop-tabs { position: sticky; top: 64px; z-index: 6; display: flex; gap: 6px; padding: 6px; border-radius: 16px;
  background: rgba(4, 18, 31, 0.92); border: 3px solid var(--ft-out); box-shadow: 0 4px 0 var(--ft-out); overflow-x: auto; scrollbar-width: none; }
.shop-tabs::-webkit-scrollbar { display: none; }
body.shop .shop-tabs button { flex: 1 0 auto; border: 0; box-shadow: none; background: transparent; color: var(--muted); padding: 10px 14px; border-radius: 11px;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; white-space: nowrap; }
body.shop .shop-tabs button:hover:not(.on) { background: rgba(255, 255, 255, 0.06); color: var(--text); }
body.shop .shop-tabs button.on { background: linear-gradient(180deg, #ffe08a, var(--gold)); color: var(--ft-ink); box-shadow: 0 3px 0 var(--ft-gold-dark); }
body.shop .shop-tabs button:active { transform: none; }
/* Reiter-Inhalt */
.shop-pane { display: flex; flex-direction: column; gap: 16px; }
.shop-pane[hidden] { display: none !important; }
body.shop .shop-pane:not(.tiers) { padding: 18px; background: var(--ft-frame-bg); border: 4px solid var(--ft-edge); border-radius: 22px; box-shadow: var(--ft-frame-shadow); }
.pane-intro { font-size: 1rem; margin: 0; }
.pane-sub { margin: 6px 0 0; color: var(--gold); font-family: var(--font-display); font-size: 1.15rem; text-align: center; }
/* Kacheln: Bild oben, Etikett, Titel, Text – Knopf immer ganz unten */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
body.shop .shop-card { position: relative; display: flex; flex-direction: column; }
body.shop .shop-card .hint { flex: 1; }
body.shop .shop-card .card-foot { margin-top: auto; display: flex; }
body.shop .shop-card .card-foot:empty { display: none; }
body.shop .shop-card .card-foot button { flex: 1; min-height: 46px; }
.shop-tag { align-self: flex-start; margin-top: -26px !important; position: relative; z-index: 2; padding: 3px 10px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; border: 2px solid var(--ft-out); background: #0f304b; color: var(--text); box-shadow: 0 2px 0 var(--ft-out); }
.shop-tag.have { background: linear-gradient(180deg, #8fe08a, #4fae5c); color: #08260f; border-color: #1f5a24; }
.shop-tag.t1 { background: linear-gradient(180deg, #ffe08a, var(--gold)); color: var(--ft-ink); border-color: #5a3a0c; }
.shop-tag.t2 { background: linear-gradient(180deg, #c2a6ff, #8a5be0); color: #fff; border-color: #1d1040; }
body.shop .shop-card .pack-preview.has-img { height: 0; padding-top: 58%; }
/* Vergleichstabelle */
.compare-wrap { overflow-x: auto; max-width: 860px; width: 100%; margin: 0 auto; border: 3px solid var(--ft-out); border-radius: 16px; background: rgba(0, 0, 0, 0.25); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.compare th, .compare td { padding: 9px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); text-align: center; }
.compare td:first-child { text-align: left; font-weight: 700; }
.compare th { font-family: var(--font-display); font-weight: 800; color: var(--muted); }
.compare th.t1 { color: var(--gold); } .compare th.t2 { color: #cdb6ff; }
.compare th.mine { text-decoration: underline 3px; text-underline-offset: 5px; }
.compare td.yes { color: #9be58c; font-weight: 900; font-size: 1.1rem; }
.compare td.no { color: rgba(255, 255, 255, 0.25); }
.compare tbody tr:last-child td { border-bottom: 0; }
/* Unterstützen-Balken */
.support-strip { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 18px;
  background: linear-gradient(90deg, rgba(244, 197, 90, 0.16), rgba(4, 18, 31, 0.6)); border: 3px solid var(--ft-out); }
.ss-heart { font-size: 1.8rem; }
.ss-goal { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
/* Käufe: zugeklappt */
body.shop details.my-purchases > summary { list-style: none; cursor: pointer; }
body.shop details.my-purchases > summary::-webkit-details-marker { display: none; }
body.shop details.my-purchases > summary h2 { margin: 0; display: inline; }
body.shop details.my-purchases > summary::after { content: ' ▾'; color: var(--gold); }
body.shop details.my-purchases[open] > summary::after { content: ' ▴'; }
@media (max-width: 720px) {
  .shop-tabs { top: 56px; }
  body.shop .shop-tabs button { font-size: 0.9rem; padding: 9px 10px; }
  body.shop .shop-pane:not(.tiers) { padding: 12px; }
  .shop-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .compare { font-size: 0.82rem; } .compare th, .compare td { padding: 7px 6px; }
}
@media (max-width: 460px) { .shop-grid { grid-template-columns: 1fr; } }
/* Shop-Reiter am schmalen Handy: 2 × 2 statt einer zu langen Zeile */
@media (max-width: 520px) {
  .shop-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; overflow: visible; }
  body.shop .shop-tabs button { padding: 8px 6px; font-size: 0.88rem; }
}

/* Shop: zwei Knöpfe nebeneinander (Vorschau + Abo) */
body.shop .shop-card .card-foot.two { gap: 8px; }
/* Vorschau eines Karten-Looks: echtes Brett im Look, darunter Spezialkarten und Bau-Knöpfe */
.look-preview { z-index: 60; }
.look-preview .lp-card-box { max-width: 980px; width: calc(100% - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; gap: 12px; padding: 14px 16px 16px;
  background: var(--ft-frame-bg); border: 4px solid var(--ft-edge); border-radius: 22px; box-shadow: var(--ft-frame-shadow); backdrop-filter: none; }
.look-preview .panel-head { display: flex; align-items: center; justify-content: space-between; }
.look-preview .panel-head h2 { margin: 0; color: var(--gold); }
.look-preview .lp-close { font-size: 1.3rem; }
.lp-board { border: 4px solid var(--ft-edge); border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 2px var(--ft-out); background: #0b2c45; }
.lp-board svg { display: block; width: 100%; height: min(60dvh, 560px); }
.lp-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.lp-col { display: flex; flex-direction: column; gap: 6px; }
.lp-cards { display: flex; gap: 8px; flex-wrap: wrap; }
.lp-card { width: 66px; aspect-ratio: 100 / 140; border-radius: 9px; background: var(--art) center / 100% 100% no-repeat;
  box-shadow: 0 0 0 2.5px var(--ft-gold-dark), 0 4px 0 2.5px var(--ft-out); }
.lp-buttons { display: flex; gap: 8px; }
.lp-btn { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 14px; border: 3px solid var(--ft-out);
  background: linear-gradient(180deg, #1b4a6e, #0f304b); box-shadow: 0 4px 0 var(--ft-edge), 0 4px 0 3px var(--ft-out); }
.lp-btn img { width: 52px; height: 52px; object-fit: contain; }
body.shop .look-preview .lp-shuffle { align-self: flex-start; }
@media (max-width: 600px) { .lp-card { width: 50px; } .lp-btn { width: 52px; height: 52px; } .lp-btn img { width: 40px; height: 40px; } }
/* Vorschau-Karten: Name im Namensband unten */
.lp-card { position: relative; }
.lp-card b { position: absolute; left: 6%; right: 6%; bottom: 7%; text-align: center; font-family: var(--font-display); font-weight: 800;
  font-size: 0.58rem; line-height: 1.1; color: #2a1a04; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Karten: Bild füllt die Karte bis zum Rand, ein einziger Rahmen (CSS).
   Bild nur innerhalb des Rahmens (kein Durchscheinen an den runden Ecken), beim Drüberfahren kein
   zusätzlicher weißer Ring – der lief beim Vergrößern/Drehen versetzt zum Rahmen. */
.res-card, .dev-card.art { background-clip: padding-box !important; background-origin: padding-box !important;
  backface-visibility: hidden; transform: translateZ(0); }
.res-card:hover, body.in-game #hand .res-card:hover { box-shadow: var(--stack), 0 16px 26px rgba(0, 0, 0, 0.5), 0 0 22px rgba(255, 230, 150, 0.5); }
body.in-game #hand .res-card:hover, body.in-game .dev-hand .dev-card.art:hover {
  box-shadow: var(--stack, 0 0 0 transparent), 0 0 0 2.5px var(--ft-gold-dark), 0 5px 0 2.5px var(--ft-out), 0 14px 22px rgba(0, 0, 0, 0.45), 0 0 18px rgba(255, 230, 150, 0.45); }
.dev-card.art .shine, .res-card .shine { inset: 0; border-radius: inherit; }
/* Spezialkarten: Name als Schild unten auf dem (randlosen) Bild */
.dev-card.art .label { bottom: 6%; }
.lp-card { border: 2.5px solid #fff3d0; background-clip: padding-box; }
.lp-card b { left: 8%; right: 8%; bottom: 5%; padding: 1px 3px; border-radius: 999px; background: rgba(255, 243, 196, 0.92); border: 1.5px solid #5a3a0c; }

/* ==================== Profil im Spieltisch-Look ==================== */
body.profile > header { border-bottom: 4px solid var(--ft-edge); box-shadow: 0 2px 0 var(--ft-out), 0 6px 16px rgba(0, 0, 0, 0.35); }
body.profile > header .controls > a.button { border: 3px solid var(--ft-out); border-radius: 12px; background: linear-gradient(180deg, #1b4a6e, #0f304b);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.14), 0 3px 0 var(--ft-edge), 0 3px 0 3px var(--ft-out); font-family: var(--font-display); font-weight: 800; }
body.profile .pf .card { background: var(--ft-frame-bg); border: 4px solid var(--ft-edge); border-radius: 22px; box-shadow: var(--ft-frame-shadow); backdrop-filter: none; }
body.profile .pf-portrait { border: 4px solid #5a3a0c; box-shadow: 0 0 0 3px var(--gold), 0 6px 0 3px var(--ft-out), 0 0 30px rgba(244, 197, 90, 0.3); }
body.profile .pf-id { border: 2px solid var(--ft-out); background: rgba(0, 0, 0, 0.3); }
body.profile .pf-stats div { border: 3px solid var(--ft-out); background: rgba(0, 0, 0, 0.25); box-shadow: 0 3px 0 var(--ft-out); }
body.profile .pf-tabs { border: 3px solid var(--ft-out); background: rgba(4, 18, 31, 0.92); box-shadow: 0 4px 0 var(--ft-out); padding: 6px; gap: 6px; }
body.profile .pf-tabs button { font-family: var(--font-display); font-weight: 800; }
body.profile .pf-tabs button.on, body.profile .pf-tabs button.on:hover:not(:disabled) { background: linear-gradient(180deg, #ffe08a, var(--gold)); color: var(--ft-ink); box-shadow: 0 3px 0 var(--ft-gold-dark); }
body.profile .pf-panel h3 { color: var(--gold); font-family: var(--font-display); font-size: 1rem; text-transform: none; letter-spacing: 0; }
body.profile .pf-group + .pf-group { border-top: 2px dashed rgba(255, 255, 255, 0.12); }
/* Sammlung: dicke Kacheln, Auswahl golden */
body.profile .unlock { border: 3px solid var(--ft-out); border-radius: 16px; background: linear-gradient(180deg, #16405f, #0e2c46);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.08), 0 4px 0 var(--ft-out); font-family: var(--font-display); transition: transform 0.1s; }
body.profile .unlock:hover:not(:disabled) { transform: translateY(-2px); background: linear-gradient(180deg, #1c4a6c, #113350); }
body.profile .unlock.active { border-color: #5a3a0c; background: linear-gradient(180deg, rgba(244, 197, 90, 0.3), rgba(244, 197, 90, 0.08)), #12395a;
  box-shadow: 0 4px 0 var(--ft-gold-dark), 0 0 18px rgba(244, 197, 90, 0.35); }
body.profile .u-img { min-height: 64px; }
body.profile .u-img img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.4)); }
body.profile .u-img.u-wide img { width: 100%; height: 64px; object-fit: cover; border-radius: 10px; border: 2px solid var(--ft-out); filter: none; }
/* Erfolge: Titel als Medaillen */
body.profile .award-shelf { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
body.profile .shelf-item { border: 3px solid var(--ft-out); border-radius: 16px; background: linear-gradient(180deg, #16405f, #0e2c46); padding: 12px 6px 10px;
  box-shadow: 0 4px 0 var(--ft-out); font-family: var(--font-display); }
body.profile .shelf-item .award-icon { width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.7rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff6cf, var(--gold) 70%); border: 3px solid #5a3a0c; box-shadow: 0 3px 0 var(--ft-out); margin-bottom: 4px; }
body.profile .shelf-item.locked .award-icon { background: radial-gradient(circle at 35% 30%, #5d6b7a, #2d3946 70%); border-color: var(--ft-out); }
.pf-coin-note { margin: 0; }
.pf-coin-note b { color: var(--gold); }
/* Konto verbinden */
.link-providers { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
body.profile .provider.discord { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; color: #fff;
  border: 3px solid #23286b; background: linear-gradient(180deg, #7983f5, #5865f2 60%, #4752c4); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), 0 4px 0 #23286b;
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.provider svg { width: 26px; height: 26px; }
body.profile .provider:disabled { opacity: 0.6; cursor: not-allowed; }

/* ==================== Männchen-Editor im Spieltisch-Look ==================== */
body.profile .ce-cats { gap: 6px; padding: 5px; border-radius: 14px; background: rgba(0, 0, 0, 0.3); border: 3px solid var(--ft-out); }
body.profile .ce-cat { border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-family: var(--font-display); font-weight: 800; padding: 8px 12px; }
body.profile .ce-cat:hover:not(.on) { background: rgba(255, 255, 255, 0.07); color: var(--text); }
body.profile .ce-cat.on, body.profile .ce-cat.on:hover:not(:disabled) { background: linear-gradient(180deg, #ffe08a, var(--gold)); color: var(--ft-ink); box-shadow: 0 3px 0 var(--ft-gold-dark); }
body.profile .ce-actions button { border: 3px solid var(--ft-out); border-radius: 12px; background: linear-gradient(180deg, #1b4a6e, #0f304b);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.14), 0 3px 0 var(--ft-edge), 0 3px 0 3px var(--ft-out); font-family: var(--font-display); font-weight: 800; }
body.profile .ce-actions button:disabled { opacity: 0.5; }
body.profile .ce-group h4 { color: var(--gold); font-family: var(--font-display); font-weight: 800; font-size: 1rem; text-transform: none; letter-spacing: 0; }
/* Kacheln: dicker Rahmen, Bild auf hellem Papier, gewählte golden */
body.profile .ce-opt:not(.swatch) { border: 3px solid var(--ft-out); border-radius: 16px; background: linear-gradient(180deg, #16405f, #0e2c46);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.08), 0 4px 0 var(--ft-out); }
body.profile .ce-opt:not(.swatch) img { border-radius: 11px; background: radial-gradient(circle at 50% 38%, #fffaf0, #e9e1d0 80%); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.12); }
body.profile .ce-opt:not(.swatch):hover:not(:disabled) { background: linear-gradient(180deg, #1c4a6c, #113350); border-color: var(--ft-out); }
body.profile .ce-opt.on:not(.swatch), body.profile .ce-opt.on:not(.swatch):hover:not(:disabled) { border-color: #5a3a0c;
  background: linear-gradient(180deg, rgba(244, 197, 90, 0.35), rgba(244, 197, 90, 0.1)), #12395a; box-shadow: 0 4px 0 var(--ft-gold-dark), 0 0 16px rgba(244, 197, 90, 0.4); }
body.profile .ce-opt-name { font-family: var(--font-display); font-weight: 800; }
body.profile .ce-opt.on::after { background: linear-gradient(180deg, #ffe08a, var(--gold)); color: var(--ft-ink); border: 2px solid #5a3a0c; }
body.profile .ce-opt.swatch { border: 3px solid var(--ft-out); box-shadow: 0 3px 0 var(--ft-out); }
body.profile .ce-opt.swatch.on { border-color: #fff; box-shadow: 0 0 0 3px var(--gold), 0 3px 0 3px var(--ft-out); }
body.profile .pf-panel[data-panel="maennchen"] .ce-top { background: transparent; border-bottom: 0; }

/* ---------- Feste Icons statt Emojis (public/emoji, Fluent Emoji 3D, MIT) ----------
   emoji.js ersetzt Emojis in der Oberfläche durch <img class="emo">; die Bilder skalieren mit der Schrift. */
img.emo {
  display: inline-block; width: 1.25em; height: 1.25em; margin: 0 0.05em;
  vertical-align: -0.28em; object-fit: contain; pointer-events: none; user-select: none;
}
/* ==========================================================================
   Würfe 2.0: eigene Einschläge je Gegenstand (Ei zerbricht, Tomate spritzt,
   Torte rutscht, Fisch klatscht, Rose bleibt liegen, Konfetti, Krone)
   ========================================================================== */
.throw-piece { position: fixed; z-index: 81; pointer-events: none; transform: translate(-50%, -50%);
  font-size: 1.6rem; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35)); }
.throw-piece svg { display: block; width: 100%; height: 100%; }
.throw-piece.shell { width: 28px; height: 24px; }
.throw-piece.shell.flip svg { transform: scaleY(-1); }
.throw-piece.stem { width: 22px; height: 22px; }
.throw-piece.tin { width: 66px; height: 28px; }
.throw-piece.petal { width: 11px; height: 15px; filter: none; }
.throw-piece.juice { color: #e5382a; filter: none; }
.throw-piece.water { color: #8fd3f5; filter: none; }
.throw-piece.confetto { width: 8px; height: 13px; border-radius: 2px; filter: none; }
.throw-piece.confetto.round { width: 8px; height: 8px; border-radius: 50%; }
.throw-piece.spark { font-size: 1.05rem; font-weight: 900; text-shadow: 0 0 8px currentColor; filter: none; }
.throw-piece.flop { font-size: 2rem; }

.throw-word { position: fixed; z-index: 82; pointer-events: none; white-space: nowrap;
  font: 700 1.3rem/1 'Fredoka', system-ui, sans-serif; letter-spacing: 0.03em; color: var(--word, #fff);
  -webkit-text-stroke: 1.5px #2a1606; paint-order: stroke fill; text-shadow: 0 3px 0 #2a1606;
  transform: translate(-50%, -50%) rotate(var(--tilt, 0deg)); animation: throw-word 1.1s ease-out forwards; }
@keyframes throw-word {
  0% { transform: translate(-50%, -50%) rotate(var(--tilt)) scale(0.2); opacity: 0; }
  15% { transform: translate(-50%, -50%) rotate(var(--tilt)) scale(1.25); opacity: 1; }
  30% { transform: translate(-50%, -50%) rotate(var(--tilt)) scale(1); }
  80% { opacity: 1; }
  100% { transform: translate(-50%, -85%) rotate(var(--tilt)) scale(1); opacity: 0; }
}

.throw-splat.pie-slide { z-index: 6; animation: splat-in 0.2s cubic-bezier(.2, 1.8, .4, 1) forwards, pie-slide 4.2s ease-in forwards; }
@keyframes pie-slide {
  0%, 35% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  85% { transform: translate(-50%, -24%) scale(0.96, 1.12); opacity: 0.95; }
  100% { transform: translate(-50%, -6%) scale(0.9, 1.22); opacity: 0; }
}
.player-card.slapped { animation: card-slap 0.6s; }
@keyframes card-slap { 10% { transform: translateX(11px) rotate(3deg) scale(0.97); } 30% { transform: translateX(-8px) rotate(-2deg); }
  50% { transform: translateX(5px); } 70% { transform: translateX(-3px); } }

.throw-stay { position: absolute; z-index: 7; pointer-events: none; font-size: 1.7rem; line-height: 1;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.4)); transition: opacity 0.6s; }
.throw-stay.rose { transform: translate(-50%, -50%) rotate(-35deg); animation: rose-land 0.45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes rose-land { from { transform: translate(-50%, -160%) rotate(20deg) scale(1.4); } }
.throw-stay.crown { transform: translate(-50%, -78%) rotate(-8deg); animation: crown-drop 0.65s cubic-bezier(.3, 1.7, .5, 1) both; }
@keyframes crown-drop { from { transform: translate(-50%, -300%) rotate(-25deg) scale(1.5); opacity: 0; } }
.throw-stay.gone { opacity: 0; }

/* ==========================================================================
   Tastatur: sichtbarer Fokus, „Zum Inhalt springen“
   ========================================================================== */
:where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="tab"]):focus-visible {
  outline: 3px solid #ffd23f; outline-offset: 2px; border-radius: 8px;
  box-shadow: 0 0 0 6px rgba(255, 210, 63, 0.25);
}
html.kbd :where(a, button, input, select, textarea, summary, [tabindex], [role="button"], [role="tab"]):focus {
  outline: 3px solid #ffd23f; outline-offset: 2px;
}
:where(main, section)[tabindex="-1"]:focus { outline: none; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; border-radius: 12px;
  background: #ffd23f; color: #2a1606; font-weight: 800; text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: top 0.15s; }
.skip-link:focus { top: calc(10px + var(--sa-t, 0px)); }
@media (prefers-reduced-motion: reduce) {
  .throw-word, .throw-stay, .throw-splat { animation: none !important; }
}

/* ==========================================================================
   Rechtliches: Seiten, Fußzeile, Kasse, Meine Daten
   ========================================================================== */
.legal-meta { color: var(--muted); font-size: 0.85rem; margin-top: -6px; }
.legal-table-wrap { overflow-x: auto; margin: 6px 0 10px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 520px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.legal-table th { color: var(--gold, #f4c55a); font-weight: 800; }
.legal-form { padding: 12px 16px; border-radius: 12px; border: 2px dashed rgba(255, 255, 255, 0.25); background: rgba(0, 0, 0, 0.18); }
.legal-page h2[id] { scroll-margin-top: 80px; margin-top: 28px; }
.site-footer { line-height: 2; }
.site-footer .insta-link { white-space: nowrap; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; font-size: 0.88rem; }
.legal-links a { color: var(--muted); text-underline-offset: 3px; }
.legal-links a:hover { color: #fff; }
.checkout-card .check a { color: var(--gold, #f4c55a); }
.co-privacy { font-size: 0.8rem; margin: 2px 0 0; }
.co-privacy a { color: inherit; }
.data-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.data-actions .button { text-decoration: none; }
button.danger { background: linear-gradient(180deg, #e45a4f, #b8332a); color: #fff; border-color: #7d1d17; }
button.danger:hover { filter: brightness(1.08); }
.compare tr.free-row td:first-child { color: #9be09b; }
.pf-group .hint a, .legal-page a, .co-privacy a { color: var(--gold, #f4c55a); text-underline-offset: 3px; }

/* Nach dem Spiel: Knopf zum Weiterspielen im selben Raum (wenn das Siegerfenster zu ist) */
.again-bar { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 6; display: flex; gap: 8px;
  padding: 8px; border-radius: 16px; background: rgba(4, 18, 31, 0.9); border: 3px solid var(--ft-out, #04121f); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45); }
.again-bar button { white-space: nowrap; }

/* Handelsangebot: größer und besser lesbar (Karten, Schrift, Knöpfe) */
body.in-game .offer-popup { width: min(500px, calc(100vw - 24px)); padding: 14px 16px; gap: 12px; max-height: calc(100dvh - 140px); overflow-y: auto; }
body.in-game .offer-popup .oc-head .avatar { width: 44px; height: 44px; }
body.in-game .offer-popup .oc-head strong { font-size: 1.15rem; }
body.in-game .offer-popup .oc-status { font-size: 0.85rem; }
body.in-game .offer-popup .oc-trade { gap: 10px; }
body.in-game .offer-popup .oc-side { padding: 10px 12px; gap: 4px; }
body.in-game .offer-popup .oc-label { font-size: 0.75rem; }
body.in-game .offer-popup .oc-arrow { font-size: 1.6rem; }
body.in-game .offer-popup .oc-cards { gap: 12px; padding-top: 10px; }
body.in-game .offer-popup .oc-cards .res-card.small { --w: 54px; }
body.in-game .offer-popup .oc-cards .res-card .count { min-width: 22px; height: 22px; line-height: 17px; font-size: 0.8rem; top: -8px; right: -8px; }
body.in-game .offer-popup .oc-answer .avatar { width: 28px; height: 28px; }
body.in-game .offer-popup .oc-who strong { font-size: 0.88rem; }
body.in-game .offer-popup .oc-who small { font-size: 0.74rem; }
body.in-game .offer-popup .oc-counter .res-card.small { --w: 34px; }
body.in-game .offer-popup .oc-buttons { gap: 8px; }
body.in-game .offer-popup .oc-buttons button { padding: 11px 8px; font-size: 0.95rem; }
@media (max-width: 600px) {
  body.in-game .offer-popup { width: calc(100vw - 16px); padding: 12px; gap: 10px; }
  body.in-game .offer-popup .oc-cards .res-card.small { --w: 46px; }
  body.in-game .offer-popup .oc-head strong { font-size: 1.02rem; }
}

/* Eigenes Gegenangebot: goldener Rahmen, ursprüngliches Angebot klein darunter */
.oc-trade.is-counter { padding: 6px; border-radius: 14px; border: 2px dashed rgba(244, 197, 90, 0.7); background: rgba(244, 197, 90, 0.06); }
.oc-original { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; opacity: 0.75; }
.oc-original small { font-size: 0.7rem; color: var(--muted); font-weight: 800; }
.oc-original .oc-cards { padding-top: 4px; gap: 6px; }
body.in-game .offer-popup .oc-original .res-card.small { --w: 28px; }
body.in-game .offer-popup .oc-original .res-card .count { min-width: 16px; height: 16px; line-height: 12px; font-size: 0.62rem; top: -5px; right: -5px; }

/* Untere Leiste (Hand, Bau-Knöpfe, Aktionen) ein gutes Stück größer.
   zoom vergrößert alles darin gleichmäßig – Karten, Münzen, Knöpfe, Schrift – und passt die Breite an. */
/* Nur so weit, wie die Breite reicht – sonst bleibt für die Handkarten neben den Knöpfen kein Platz */
@media (min-width: 1500px) and (min-height: 760px) {
  body.in-game .game2 .bottom-bar { zoom: 1.2; }
}
@media (min-width: 1200px) and (max-width: 1499px) and (min-height: 700px) {
  body.in-game .game2 .bottom-bar { zoom: 1.1; }
}
@media (max-width: 900px) and (min-height: 640px) {
  body.in-game .game2 .bottom-bar { zoom: 1.12; }
}
/* Namensschild der ersten Karte ragt links über den Kartenrand – Platz lassen */
body.in-game .game2 .hand-cards { padding-left: 12px; }
/* Überlappende Hand (fitHand in room.js): die Karte unter der Maus kommt nach vorn */
body.in-game .game2 #hand .res-card, body.in-game .game2 .dev-hand .dev-card { position: relative; }
body.in-game .game2 #hand .res-card:hover, body.in-game .game2 .dev-hand .dev-card:hover { z-index: 60 !important; }
/* Sehr wenig Platz: Handkarten etwas kleiner, Abstände enger */
body.in-game .game2 .hand-cards.tight { gap: 8px; padding-left: 8px; padding-right: 8px; }
body.in-game .game2 .hand-cards.tight #hand { gap: 6px; }
body.in-game .game2 .hand-cards.tight #hand .res-card { --w: 64px; }
body.in-game .game2 .hand-cards.tight .dev-hand .dev-card { width: 64px; height: 90px; }

/* Profil: Karten-Looks als große Karten mit Banner */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.theme-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; border: 3px solid var(--ft-out, #04121f);
  background: linear-gradient(180deg, #16405f, #0e2c46); box-shadow: 0 5px 0 var(--ft-out, #04121f), 0 10px 22px rgba(0, 0, 0, 0.35); transition: transform 0.15s; }
.theme-card:hover { transform: translateY(-3px); }
.theme-card.active { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(244, 197, 90, 0.45), 0 5px 0 var(--ft-out, #04121f), 0 10px 26px rgba(244, 197, 90, 0.25); }
.th-art { position: relative; aspect-ratio: 3 / 1.45; overflow: hidden; }
.th-art > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.theme-card:hover .th-art > img { transform: scale(1.06); }
.theme-card.locked .th-art > img { filter: grayscale(0.55) brightness(0.75); }
.th-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(4, 14, 26, 0.88)); pointer-events: none; }
.th-title { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; display: flex; flex-direction: column; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); }
.th-title strong { font-family: var(--font-display); font-size: 1.25rem; color: #fff; }
.th-title small { color: #e8dcc0; font-weight: 700; font-size: 0.8rem; }
.th-badge { position: absolute; top: 10px; right: 10px; z-index: 1; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; border: 2px solid #5a3a0c; }
.th-badge.on { background: linear-gradient(180deg, #ffe08a, var(--gold)); color: #2a1a04; }
.th-badge.lock { background: rgba(4, 14, 26, 0.85); color: #fff3d0; border-color: rgba(255, 255, 255, 0.25); }
.th-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px; }
.th-actions button { padding: 9px 8px; }
.th-title img.emo { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -0.2em; position: static; transform: none; }
.th-actions img.emo { width: 1.1em; height: 1.1em; vertical-align: -0.2em; }
/* Look-Vorschau: Brett-Höhe passend zur Insel (auf schmalen Bildschirmen sonst abgeschnitten) */
@media (max-width: 600px) { .lp-board svg { height: auto; aspect-ratio: 648 / 570; } }
/* Look-Vorschau: zoombar wie im Spiel */
.lp-board { position: relative; }
.lp-board svg { touch-action: none; cursor: grab; transform-origin: 50% 50%; }
.lp-board svg.dragging { cursor: grabbing; }
.lp-board svg.gesturing { will-change: transform; }
.lp-zoom { top: 10px; right: 10px; bottom: auto; z-index: 2; }
.lp-zoom-hint { position: absolute; left: 10px; bottom: 8px; z-index: 2; padding: 2px 9px; border-radius: 999px; font-size: 0.72rem; font-weight: 700;
  color: #fff3d0; background: rgba(4, 14, 26, 0.7); pointer-events: none; }
@media (max-width: 600px) { .lp-zoom-hint { display: none; } }

/* Handkarten noch größer (bei Platzmangel fächern sie sich auf, siehe fitHand in room.js) */
@media (min-width: 901px) {
  body.in-game .game2 #hand .res-card { --w: 106px; }
  body.in-game .game2 .dev-hand .dev-card { width: 106px; height: 148px; }
  body.in-game .game2 .hand-cards.tight #hand .res-card { --w: 84px; }
  body.in-game .game2 .hand-cards.tight .dev-hand .dev-card { width: 84px; height: 118px; }
}
@media (min-width: 901px) and (max-height: 820px) {
  body.in-game .game2 #hand .res-card { --w: 88px; }
  body.in-game .game2 .dev-hand .dev-card { width: 88px; height: 123px; }
  body.in-game .game2 .hand-cards.tight #hand .res-card { --w: 72px; }
  body.in-game .game2 .hand-cards.tight .dev-hand .dev-card { width: 72px; height: 101px; }
}
@media (max-width: 900px) and (min-height: 521px) {
  body.in-game .game2 #hand .res-card { --w: 60px; }
  body.in-game .game2 .dev-hand .dev-card { width: 60px; height: 84px; }
  body.in-game .game2 .hand-cards.tight #hand .res-card { --w: 52px; }
  body.in-game .game2 .hand-cards.tight .dev-hand .dev-card { width: 52px; height: 73px; }
}
@media (max-width: 380px) and (min-height: 521px) {
  body.in-game .game2 #hand .res-card { --w: 54px; }
  body.in-game .game2 .dev-hand .dev-card { width: 54px; height: 76px; }
}


/* ⚙️ Einstellungen im Raum: ein Menü statt vieler kleiner Knöpfe */
.settings-menu { min-width: 250px; gap: 8px; }
.settings-menu .set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 0.9rem; }
.settings-menu .set-row.set-col { flex-wrap: wrap; }
.settings-menu .set-row > span:first-child { color: var(--text); }
.settings-menu .set-row button { width: auto !important; height: auto !important; padding: 6px 12px !important; border-radius: 10px !important; font-size: 0.9rem !important; white-space: nowrap; }
.settings-menu .set-row .music-wrap { display: flex; flex-direction: column; align-items: flex-end; }
/* Untermenüs (Musik, Look) klappen im Menü auf statt als eigenes Fenster */
.settings-menu .music-menu, body.in-game > header .settings-menu .music-menu {
  position: static; margin-top: 6px; min-width: 0; box-shadow: none; padding: 6px; border-radius: 10px; background: rgba(0, 0, 0, 0.25); animation: none; }
.settings-menu .music-menu strong { display: none; }
.settings-menu .lang-switch { flex-direction: row !important; }
@media (min-width: 901px) {
  body.in-game > header .settings-wrap > #settings-btn { width: 42px; height: 42px; padding: 0; border-radius: 12px; font-size: 1.05rem; }
}
/* Handy: Einstellungen klappen unter der Kopfzeile über die ganze Breite auf */
@media (max-width: 900px) {
  .settings-wrap { position: static; }
  .settings-menu { left: 10px !important; right: 10px !important; top: auto !important; margin-top: 8px; min-width: 0; }
  header { position: relative; }
}
.settings-menu .set-row.set-col { align-items: flex-start; }
.settings-menu .set-row.set-col > span:first-child { padding-top: 7px; }
/* Startseite am Handy: Kopfzeile ohne Sandbox (Profi-Funktion, steht in der Kartenwahl im Raum) – alles passt in eine Zeile */
@media (max-width: 600px) {
  body.home #sandbox-link { display: none; }
}


/* Lobby: Feinheiten zugeklappt unter den Regeln */
.fine-rules { margin-top: 14px; border-top: 2px dashed rgba(255, 255, 255, 0.12); padding-top: 10px; }
.fine-rules > summary { cursor: pointer; font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; list-style: none; padding: 6px 0; }
.fine-rules > summary::-webkit-details-marker { display: none; }
.fine-rules > summary::after { content: ' ▾'; color: var(--muted); }
.fine-rules[open] > summary::after { content: ' ▴'; }
.fine-rules > .rule-grid { margin-top: 8px; }


/* ==================== Ruhigere Schrift ====================
   Überschriften, Knöpfe und Hinweise in Nunito (statt der runden Fredoka und der Handschrift Patrick Hand):
   freundlich, aber weniger comichaft. */
:root { --font-hint: var(--font-body); }
.hint, .tier-tagline, .support-text, .hb-text small, .play-option small, .goal-head + .goal-track + .hint,
.mc-meta, .rule-head .hint, .t2-rates, .tier-sub, .pack .hint, .award .hint, .summary-body .hint, .hero > p {
  font-size-adjust: none; letter-spacing: 0; font-weight: 600;
}
h1, h2, h3 { letter-spacing: -0.01em; }
/* Lobby: weitere Karten zugeklappt */
.more-maps { margin-top: 10px; border-top: 2px dashed rgba(255, 255, 255, 0.12); padding-top: 8px; }
.more-maps > summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 10px; padding: 8px 0; font-family: var(--font-display); font-weight: 800; font-size: 1rem; }
.more-maps > summary::-webkit-details-marker { display: none; }
.more-maps > summary::after { content: '▾'; color: var(--muted); margin-left: auto; }
.more-maps[open] > summary::after { content: '▴'; }

/* ==================== Ruhiger Stil: Kopfzeile, Spieler-Kästen, „Neu hier?“ ====================
   Statt dicker dunkler Rahmen mit 3D-Kante: dünne helle Linie, weicher Schatten, flache Knöpfe. */
:root {
  --calm-bg: linear-gradient(180deg, #123554, #0d2a43);
  --calm-line: rgba(255, 255, 255, 0.1);
  --calm-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
/* Kopfzeile auf allen Seiten */
:is(body.home, body.shop, body.profile, body.in-game, body) > header {
  border-bottom: 1px solid var(--calm-line); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
:is(body.home, body.shop, body.profile, body.in-game, body) > header .controls > a.button,
:is(body.home, body.shop, body.profile, body.in-game, body) > header .controls > button,
:is(body.home, body.shop, body.profile, body.in-game, body) > header .friends-wrap > button,
:is(body.home, body.shop, body.profile, body.in-game, body) > header .settings-wrap > button {
  border: 1px solid var(--calm-line); border-radius: 10px; background: rgba(255, 255, 255, 0.06);
  box-shadow: none; font-family: var(--font-body); font-weight: 700; text-shadow: none;
}
:is(body.home, body.shop, body.profile, body.in-game, body) > header .controls > a.button:hover,
:is(body.home, body.shop, body.profile, body.in-game, body) > header .controls > button:hover:not(:disabled),
:is(body.home, body.shop, body.profile, body.in-game, body) > header .friends-wrap > button:hover,
:is(body.home, body.shop, body.profile, body.in-game, body) > header .settings-wrap > button:hover { background: rgba(255, 255, 255, 0.12); }
:is(body.home, body.shop, body.profile, body.in-game, body) > header .coin-chip,
:is(body.home, body.shop, body.profile, body.in-game, body) > header .profile-chip { border: 1px solid var(--calm-line); box-shadow: none; }
:is(body.home, body.shop, body.profile, body.in-game, body) > header .coin-chip { border-color: rgba(244, 197, 90, 0.45); }
/* Im Spiel: die schmale Leiste links ebenfalls ruhig */
body.in-game > header { background: var(--calm-bg); border: 1px solid var(--calm-line); box-shadow: var(--calm-shadow); }

/* Kästen um die Spieler: Lobby (Plätze, Chat, Spiel, Einstellungen) und rechte Spalte im Spiel */
#lobby-view .lobby-box, body.in-game .players-col > section {
  background: var(--calm-bg); border: 1px solid var(--calm-line); border-radius: 16px; box-shadow: var(--calm-shadow);
}
#lobby-view .seat { border-width: 1px; border-left-width: 4px; box-shadow: none; }
#lobby-view .seat.empty { border: 1px dashed rgba(255, 255, 255, 0.14); border-left-width: 1px; }
body.in-game .player-card { border-width: 1px; border-left-width: 4px; }
body.in-game .player-card.current { box-shadow: none; }
body.in-game .pc-chips .chip { border-width: 1px; }
body.in-game .pc-vp { filter: none; }
body.in-game .chat-box .tabs button.on { box-shadow: none; }

/* „Neu hier? Spielanleitung“ und das Anleitungs-Fenster */
.tutorial-cta, #lobby-view .tutorial-cta {
  background: transparent; border: 1px solid var(--calm-line); border-radius: 12px; box-shadow: none;
  color: var(--muted); font-family: var(--font-body); font-weight: 600; text-shadow: none;
}
.tutorial-cta:hover:not(:disabled) { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.tutorial-cta strong { color: var(--text); }
.tutorial-card { background: var(--calm-bg) !important; border: 1px solid var(--calm-line) !important; border-radius: 16px !important; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important; animation: none; }

/* Lobby: Spieler-Kasten schlicht – flache Zeilen, kleine Abzeichen, schmale Farbpunkte */
#lobby-view .lobby-side .lobby-head h2 { font-size: 1.05rem; }
#lobby-view .seat-count { background: transparent; padding: 0 4px; font-weight: 700; }
#lobby-view .seats { gap: 6px; }
#lobby-view .seat {
  min-height: 48px; padding: 6px 10px; border-radius: 10px; gap: 10px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--calm-line); border-left: 3px solid var(--seat, transparent);
}
#lobby-view .seat .avatar { width: 32px; height: 32px; box-shadow: none; }
#lobby-view .seat.empty { background: transparent; border: 1px dashed rgba(255, 255, 255, 0.14); }
#lobby-view .seat.empty .ghost-avatar { background: transparent !important; border: 1px dashed rgba(255, 255, 255, 0.2); }
#lobby-view .seat.empty .seat-name { font-style: normal; }
#lobby-view .badge-you { background: rgba(255, 255, 255, 0.12); color: var(--text); border-radius: 6px; padding: 0 6px; font-weight: 700; }
#lobby-view .ready-pill { background: transparent; padding: 0; font-weight: 700; color: var(--muted); box-shadow: none; }
#lobby-view .ready-pill.on { background: transparent; color: #8fdc9a; box-shadow: none; }
#lobby-view .seat-actions .mini-btn, #lobby-view .lobby-head .mini-btn {
  background: transparent; border: 1px solid var(--calm-line); border-radius: 8px; box-shadow: none; font-weight: 700; color: var(--text); padding: 4px 10px;
}
#lobby-view .seat-actions .mini-btn:hover:not(:disabled), #lobby-view .lobby-head .mini-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }
#lobby-view .seat .kick { box-shadow: none; }
#lobby-view .color-row { border-top: 1px solid var(--calm-line); }
#lobby-view .color-dots { gap: 8px; }
#lobby-view .color-dot { width: 24px; height: 24px; border: 1px solid rgba(255, 255, 255, 0.25); box-shadow: none; }
#lobby-view .color-dot:hover:not(:disabled) { transform: none; border-color: rgba(255, 255, 255, 0.6); }
#lobby-view .color-dot.active { border-color: transparent; box-shadow: 0 0 0 2px var(--bg, #0b2236), 0 0 0 4px #fff; }

/* Gratis-Woche: Werbung im Shop und Hinweis in der Lobby */
.free-week-promo { display: flex; gap: 14px; align-items: flex-start; margin: 4px 0 16px; padding: 14px 16px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(87, 196, 114, 0.16), rgba(87, 196, 114, 0.04)); border: 1px solid rgba(127, 224, 143, 0.45); }
.fwp-icon { font-size: 1.8rem; line-height: 1; }
.free-week-promo strong { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.free-week-promo p { margin: 4px 0 6px; font-size: 0.9rem; line-height: 1.45; color: var(--text); opacity: 0.9; }
.fwp-status { font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.fwp-status.ok { color: #8fdc9a; }
.free-week { margin: 6px 0 0; padding: 7px 10px; border-radius: 10px; font-size: 0.82rem; font-weight: 700; line-height: 1.35;
  background: rgba(87, 196, 114, 0.12); border: 1px solid rgba(127, 224, 143, 0.4); color: #c8f2cf; }
.free-week.used { background: rgba(255, 255, 255, 0.04); border-color: var(--calm-line, rgba(255,255,255,0.1)); color: var(--muted); }
.gift-tag { font-size: 0.72rem; font-weight: 800; color: #8fdc9a; border: 1px solid rgba(127, 224, 143, 0.45); border-radius: 999px; padding: 1px 7px; }
.mc-flag.gift { background: #2f7a45; color: #eafff0; }

/* ---------- Discord-Activity ---------- */
.discord-only { display: none !important; }
.in-discord .discord-only { display: flex !important; }
.in-discord .web-only,
.in-discord .shop-link,
.in-discord .coin-chip,
.in-discord #copy-link,
.in-discord #install-btn { display: none !important; }
.discord-start { min-height: 100vh; display: grid; place-items: center; }
.discord-start .card { text-align: center; max-width: 360px; }
.discord-logo { width: 96px; height: 96px; }

/* Discord-Profilbild als Avatar (Supporter): rund, füllt den Kreis */
.avatar.char.pic img { object-fit: cover; border-radius: 50%; }
.discord-pic-row { margin-top: 10px; }
.discord-pic-row label.check { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.co-discord { display: grid; gap: 10px; justify-items: start; margin: 12px 0; }

/* Profil als Fenster im Raum (Lobby und Spiel) */
.profile-overlay { z-index: 120; }
.overlay .profile-frame-card { max-width: none; }
.profile-frame-card { width: min(1100px, calc(100vw - 32px)); height: min(860px, calc(100dvh - 32px)); display: flex; flex-direction: column; padding: 12px; gap: 8px; }
.profile-frame-card iframe { flex: 1; width: 100%; border: 0; border-radius: 12px; background: var(--bg, #0c2a42); }
@media (max-width: 600px) {
  .profile-frame-card { width: 100vw; height: 100dvh; border-radius: 0; padding: 8px; }
}
/* Profilseite eingebettet: ohne Kopf- und Fußzeile */
.embedded body > header, .embedded .site-footer { display: none !important; }
.embedded body { padding-top: 0; }

/* Profil: ID und Discord-Knopf nebeneinander */
.pf-id-row { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: -10px; }
.pf-id-row .pf-id { margin-top: 0; }
body.profile .provider.discord.pf-discord { gap: 6px; padding: 4px 10px; border-radius: 999px; border-width: 2px; font-size: 0.8rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 0 #23286b; }
.provider.pf-discord svg { width: 16px; height: 16px; }
body.profile .provider.discord.pf-discord.linked { background: var(--panel-2); border-color: var(--border); color: var(--muted); box-shadow: none; }
.pf-discord-state { font-size: 0.75rem; text-align: center; }
.pf-discord-state:empty { display: none; }
@media (max-width: 860px) {
  .pf-id-row { justify-content: flex-start; margin-top: 0; }
  .pf-discord-state { text-align: left; }
}

/* Lobby einfacher: zwei Knöpfe statt dauerhaft offener Einstellungen */
.summary-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 2px; }
.summary-actions button { padding: 6px 12px; font-size: 0.9rem; }
.summary-actions button.on { border-color: var(--gold); color: var(--gold); }

/* Eigener Platz in der Spielerliste: anklicken öffnet das Profil */
.seat.me-seat { cursor: pointer; position: relative; }
.seat.me-seat:hover, .seat.me-seat:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.me-seat-edit { margin-left: auto; opacity: 0.55; font-size: 0.9rem; padding-left: 6px; }
.seat.me-seat:hover .me-seat-edit { opacity: 1; }

/* Musik: Lautstärke-Regler im Musik-Menü */
.vol-row { display: flex; align-items: center; gap: 8px; padding: 4px 2px 8px; }
.vol-slider { flex: 1; min-width: 110px; accent-color: var(--gold); }
.vol-pct { font-size: 0.8rem; min-width: 3.2em; text-align: right; opacity: 0.8; }

/* Startseite in Discord: keine Shop-Werbung */
.in-discord .promo { display: none !important; }

/* ---------- Startseite: ein „Spielen“-Knopf, danach die Wahl ---------- */
body.home .big-actions .play-main { grid-column: 1 / -1; justify-content: center; padding-block: 22px; }
body.home .big-actions .play-main .hb-text strong { font-size: 1.6rem; }
body.home .big-actions #discord-room-btn { grid-column: 1 / -1; }
.play-chooser { max-width: 720px; display: grid; gap: 14px; }
.choose-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.choose-card { display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; padding: 18px 12px 16px; border-radius: 18px;
  border: 3px solid var(--ft-out); color: var(--text); font-family: var(--font-display); font-weight: 800;
  background: linear-gradient(180deg, #1b4a6e, #0f304b); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.14), 0 5px 0 var(--ft-edge), 0 5px 0 3px var(--ft-out);
  transition: transform 0.08s, box-shadow 0.08s, filter 0.12s; }
.choose-card strong { font-size: 1.15rem; }
.choose-card small { font-family: var(--font-hint, var(--font-body)); font-weight: 600; font-size: 0.84rem; opacity: 0.9; line-height: 1.3; }
.choose-card .cc-icon { font-size: 2rem; line-height: 1; }
button.choose-card:hover { filter: brightness(1.08); }
button.choose-card:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12), 0 1px 0 var(--ft-edge), 0 1px 0 3px var(--ft-out); }
.choose-card.online { border-color: var(--ft-ink); color: var(--ft-ink); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  background: linear-gradient(180deg, #ffe48f, #f2c14e 55%, #d29a2a); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45), 0 5px 0 var(--ft-gold-dark), 0 5px 0 3px var(--ft-ink); }
.choose-card.create { color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
  background: linear-gradient(180deg, #62b6ea, #3a8fd0 55%, #2a6fb0); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.4), 0 5px 0 #1b4f80, 0 5px 0 3px var(--ft-out); }
.choose-card.join .join-row { width: 100%; margin-top: 4px; }
.choose-card.join input { font-family: var(--font-display); letter-spacing: 0.15em; text-align: center; }
@media (max-width: 640px) {
  .choose-grid { grid-template-columns: 1fr; }
  .choose-card { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 12px; }
  .choose-card .cc-icon { grid-row: span 2; align-self: center; }
  .choose-card.join .join-row { grid-column: 1 / -1; }
}
.overlay .card.play-chooser { max-width: none; width: min(720px, calc(100vw - 32px)); }

/* ---------- Lobby: Spieltisch links, Spieler & Chat rechts, Karten als Streifen ---------- */
@media (min-width: 901px) {
  .lobby2 { grid-template-columns: minmax(0, 1fr) 340px; }
  .lobby2 > .lobby-side { order: 2; }
  .lobby2 > .lobby-main { order: 1; }
}
#lobby-view .map-groups { gap: 12px; }
#lobby-view .map-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 150px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding: 4px 2px 10px; }
#lobby-view .map-card { scroll-snap-align: start; }
#lobby-view .map-card:hover:not(:disabled) { transform: translateY(-2px); }
@media (max-width: 640px) { #lobby-view .map-cards { grid-auto-columns: 128px; } }

/* ---------- Lobby: Einladen-Kasten zwischen Spielern und Chat ---------- */
.invite-box { display: grid; gap: 10px; }
.invite-box h2 { margin: 0; }
.room-code-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.room-code { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: 0.18em; color: var(--gold); flex: 1; }
.invite-link-field { width: 100%; font-size: 0.8rem; opacity: 0.85; }
.discord-invite-btn { width: 100%; justify-content: center; }
.discord-only-text { display: none; margin: 0; }
.in-discord .discord-only-text { display: block; }
.invite-box .friends-title { margin: 4px 0 0; }
@media (max-width: 900px) {
  #lobby-view .invite-box { order: 3; }
  #lobby-view .lobby-tabs-box { order: 4; }
  #lobby-view .lobby-chat { order: 5; }
}

/* ---------- Lobby: großer Sandbox-Kasten über der Kartenauswahl ---------- */
.sandbox-promo { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 16px; cursor: pointer;
  border-radius: 18px; border: 3px solid var(--ft-out, #0a1f33);
  background: radial-gradient(120% 140% at 0% 0%, rgba(244, 197, 90, 0.28), transparent 55%), linear-gradient(135deg, #1d5f8a, #123f63 60%, #0f304b);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.16), 0 5px 0 var(--ft-edge, #071a2b), 0 5px 0 3px var(--ft-out, #0a1f33);
  transition: transform 0.12s, filter 0.12s; }
.sandbox-promo:hover { transform: translateY(-2px); filter: brightness(1.06); }
.sandbox-promo.active { border-color: var(--gold); }
.sp-art { position: relative; width: 120px; height: 100px; }
.sp-hex { position: absolute; width: 38px; height: 44px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow: inset 0 0 0 3px rgba(255, 248, 230, 0.75); }
.sp-hex.h0 { left: 41px; top: 28px; } .sp-hex.h1 { left: 22px; top: 0; } .sp-hex.h2 { left: 60px; top: 0; }
.sp-hex.h3 { left: 79px; top: 28px; } .sp-hex.h4 { left: 60px; top: 56px; } .sp-hex.h5 { left: 22px; top: 56px; } .sp-hex.h6 { left: 3px; top: 28px; opacity: 0.45; }
.sp-brush { position: absolute; right: -4px; bottom: -2px; font-size: 1.9rem; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45)); animation: sp-paint 2.6s ease-in-out infinite; }
@keyframes sp-paint { 0%, 100% { transform: rotate(-8deg) translate(0, 0); } 50% { transform: rotate(10deg) translate(-6px, -4px); } }
.sp-text { display: grid; gap: 3px; min-width: 0; }
.sp-kicker { font-family: var(--font-display); font-weight: 800; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.sp-text strong { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.15; }
.sp-text p { margin: 0; font-size: 0.86rem; color: var(--muted); }
.sp-cta { white-space: nowrap; padding: 12px 18px; font-size: 1rem; }
.sp-cta.locked { filter: saturate(0.6); }
@media (max-width: 640px) {
  .sandbox-promo { grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .sp-art { transform: scale(0.7); transform-origin: left center; width: 84px; height: 70px; }
  .sp-cta { grid-column: 1 / -1; width: 100%; }
  .sp-text strong { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) { .sp-brush { animation: none; } }

/* ---------- Schönere Scrollleisten unter den Kartenstreifen ---------- */

#lobby-view .map-cards::-webkit-scrollbar { height: 8px; }
#lobby-view .map-cards::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.18); border-radius: 999px; margin: 0 6px; }
#lobby-view .map-cards::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #f2c14e, #d29a2a); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
#lobby-view .map-cards::-webkit-scrollbar-thumb:hover { background: linear-gradient(90deg, #ffe48f, #f2c14e); background-clip: padding-box; }
#lobby-view .map-cards::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
/* Chrome/Safari/Edge: eigene Scrollleiste (ohne Pfeile); Standard-Werte nur für Firefox, sonst gewinnen sie in Chrome */

@supports not selector(::-webkit-scrollbar) {

}

/* ---------- Sprache direkt umschalten (Startseite): EN · DE · ES · FR ---------- */
.lang-pills { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, 0.28); border: 2px solid var(--ft-out, rgba(255, 255, 255, 0.12)); }
.lang-pill { min-width: 34px; padding: 4px 8px; border-radius: 999px; border: 0; background: none; box-shadow: none; color: var(--muted);
  font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.04em; cursor: pointer; }
.lang-pill:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.lang-pill.on { color: var(--ft-ink, #2a1a04); background: linear-gradient(180deg, #ffe48f, #f2c14e 60%, #d29a2a); }
@media (max-width: 480px) { .lang-pill { min-width: 28px; padding: 4px 6px; font-size: 0.74rem; } }

/* Sandbox-Kasten mit gemaltem Bild (Insel + Zauberpinsel) und rotem „Neu!“-Sticker */
.sandbox-promo { position: relative; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 190px; padding: 18px 20px; gap: 12px 18px; overflow: visible;
  background:
    linear-gradient(90deg, rgba(8, 26, 44, 0) 0%, rgba(8, 26, 44, 0.15) 38%, rgba(8, 26, 44, 0.82) 58%, rgba(8, 26, 44, 0.94) 100%),
    url('/promo/sandbox.jpg') left center / cover no-repeat, #123f63; }
.sandbox-promo .sp-text { grid-column: 2; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6); }
.sandbox-promo .sp-text p { color: #d8e6f1; }
.sandbox-promo .sp-cta { grid-column: 2; justify-self: start; }
.sp-sticker { position: absolute; top: -12px; left: -10px; z-index: 2; padding: 7px 14px; border-radius: 12px; transform: rotate(-8deg);
  font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; color: #fff;
  background: linear-gradient(180deg, #ff5a4a, #e3241b 60%, #b81410); border: 3px solid #5c0b07;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 4px 0 #5c0b07, 0 8px 16px rgba(0, 0, 0, 0.45); text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  animation: sp-pulse 1.8s ease-in-out infinite; }
@keyframes sp-pulse { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(-8deg) scale(1.08); } }
@media (max-width: 640px) {
  .sandbox-promo { grid-template-columns: 1fr; min-height: 0; padding: 120px 14px 14px;
    background: linear-gradient(180deg, rgba(8, 26, 44, 0) 0%, rgba(8, 26, 44, 0.2) 35%, rgba(8, 26, 44, 0.9) 62%, rgba(8, 26, 44, 0.96) 100%),
      url('/promo/sandbox.jpg') center top / cover no-repeat, #123f63; }
  .sandbox-promo .sp-text, .sandbox-promo .sp-cta { grid-column: 1; }
  .sandbox-promo .sp-cta { width: 100%; justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) { .sp-sticker { animation: none; } }

/* ---------- Regeln: drei Gruppen, gleich hohe Kästchen, Knopfreihen unten auf einer Linie ---------- */
.rule-section { display: grid; gap: 8px; }
.rule-section + .rule-section { margin-top: 16px; padding-top: 14px; border-top: 2px dashed rgba(255, 255, 255, 0.08); }
.rule-section-title { margin: 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold); }
.rule-section-title .hint { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--muted); }
#lobby-view [data-pane="basic"] .rule-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; align-items: stretch; }
#lobby-view [data-pane="basic"] .rule { display: flex; flex-direction: column; gap: 8px; height: 100%; margin: 0; }
#lobby-view [data-pane="basic"] .rule .seg { margin-top: auto; }
#lobby-view #timer-hint:empty { display: none; }

/* Vulkan-Feld (gemalt): Lava glüht sanft auf und ab */
.volcano-pulse { mix-blend-mode: screen; animation: volcano-pulse 2.6s ease-in-out infinite; }
@keyframes volcano-pulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .volcano-pulse { animation: none; opacity: 0.6; } }

/* =====================================================================
   Spielansicht (Desktop): Brett bis ganz unten, Hand + Knöpfe als schwebendes Dock
   über dem Meer, Hinweis „was ist zu tun“ oben mittig auf dem Brett, Würfel oben links.
   ===================================================================== */
@media (min-width: 901px) {
  .game2 { grid-template-rows: minmax(0, 1fr); grid-template-areas: "main players"; }
  .game2 .game-main { grid-area: main; }
  /* Die Leiste liegt über dem Brett; nur Dock, Fenster und Hinweis fangen Klicks */
  body.in-game .game2 .bottom-bar { grid-area: main; align-self: stretch; position: relative; z-index: 6; pointer-events: none;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 0 14px 14px;
    background: none; border: 0; box-shadow: none; border-radius: 0; }
  .game2 .bottom-bar > .panels > *, .game2 .bottom-bar .hand-row, .game2 #turn-banner { pointer-events: auto; }
  body.in-game .game2 .hand-row { background: var(--ft-frame-bg); border: 4px solid var(--ft-edge); border-radius: 20px; box-shadow: var(--ft-frame-shadow); padding: 10px 12px; }
  /* Hinweis oben mittig auf dem Brett */
  .game2 .act-col { position: static; }
  body.in-game .game2 #turn-banner { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 7;
    width: max-content; max-width: min(620px, calc(100% - 200px)); padding: 9px 18px; border-radius: 999px; font-weight: 800;
    background: var(--ft-frame-bg); border: 3px solid var(--ft-edge); box-shadow: 0 0 0 2px var(--ft-out), 0 6px 16px rgba(0, 0, 0, 0.45); }
  /* Brett: Meer füllt alles, die Insel bleibt über dem Dock frei */
  .game2 .game-main #board { height: calc(100% - var(--dock-h, 150px)); align-self: flex-start; }
  .game2 .board-wrap { align-items: flex-start; }
  /* Würfel oben links (unten liegt jetzt das Dock) */
  .game2 .board-wrap > #dice { top: 14px; left: 14px; right: auto; bottom: auto; }
  .game2 .dice-roll { left: 14px; right: auto; top: 14px; bottom: auto; transform-origin: left top; }
}
@media (min-width: 901px) {
  /* Platz für den Hinweis oben: Brett beginnt darunter und endet über dem Dock */
  .game2 .game-main #board { margin-top: 56px; height: calc(100% - var(--dock-h, 150px) - 56px); }
}
/* Dock schmaler: kleinere Karten und Knöpfe, weniger Rand, weniger Zoom (Karten bleiben gut erkennbar) */
@media (min-width: 1500px) and (min-height: 760px) { body.in-game .game2 .bottom-bar { zoom: 1.05; } }
@media (min-width: 1200px) and (max-width: 1499px) and (min-height: 700px) { body.in-game .game2 .bottom-bar { zoom: 1; } }
@media (min-width: 901px) {
  body.in-game .game2 .hand-row { padding: 5px 10px; gap: 12px; }
  body.in-game .game2 .hand-cards { padding-bottom: 6px; }
  body.in-game .game2 .hand-cards:has(.res-card, .dev-card) { padding-top: 14px; }
  body.in-game .game2 #hand .res-card { --w: 80px; }
  body.in-game .game2 .dev-hand .dev-card { width: 80px; height: 112px; }
  body.in-game .game2 .hand-cards.tight #hand .res-card { --w: 68px; }
  body.in-game .game2 .hand-cards.tight .dev-hand .dev-card { width: 68px; height: 95px; }
  .game2 .act-col { gap: 6px; }
  .game2 .bb, .game2 .act-btn { width: 70px; height: 70px; }
  .game2 #roll-btn, .game2 #end-turn { height: 70px; min-width: 170px; }
}
@media (min-width: 901px) and (max-height: 820px) {
  body.in-game .game2 #hand .res-card { --w: 70px; }
  body.in-game .game2 .dev-hand .dev-card { width: 70px; height: 98px; }
  body.in-game .game2 .hand-cards.tight #hand .res-card { --w: 60px; }
  body.in-game .game2 .hand-cards.tight .dev-hand .dev-card { width: 60px; height: 84px; }
  .game2 .bb, .game2 .act-btn { width: 64px; height: 64px; }
  .game2 #roll-btn, .game2 #end-turn { height: 64px; }
}
@media (min-width: 901px) {
  /* Würfel wieder rechts unten – direkt über dem Dock */
  .game2 .board-wrap > #dice { top: auto; left: auto; right: 14px; bottom: calc(var(--dock-h, 150px) + 2px); }
  .game2 .dice-roll { top: auto; left: auto; right: 14px; bottom: calc(var(--dock-h, 150px) + 2px); transform-origin: right bottom; }
}

/* ---------- Scrollleisten: überall schmal und golden (Chrome, Edge, Safari) ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.18); border-radius: 999px; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #f2c14e, #d29a2a); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:horizontal { background: linear-gradient(90deg, #f2c14e, #d29a2a); background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #ffe48f, #f2c14e); background-clip: padding-box; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: transparent; }
/* Firefox kennt die Gestaltung oben nicht: dort schmal mit denselben Farben */
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: #e3b043 rgba(0, 0, 0, 0.18); }
}
/* Handkarten im Dock: Scrollleiste nur beim Drüberfahren sichtbar (scrollen geht trotzdem immer) */
.game2 .hand-cards::-webkit-scrollbar { height: 6px; }
.game2 .hand-cards::-webkit-scrollbar-track { background: transparent; }
.game2 .hand-cards::-webkit-scrollbar-thumb { background: transparent; }
.game2 .hand-cards:hover::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #f2c14e, #d29a2a); background-clip: padding-box; }

/* ---------- Straßen-Bauplätze: gemalte Straße als Geist + gepunkteter Schatzkarten-Pfad ---------- */
.road-spot .ghost-road { opacity: 0.4; transition: opacity 0.15s ease, filter 0.15s ease; animation: road-ghost 1.6s ease-in-out infinite; }
.road-spot .ghost-plain { stroke: var(--ghost, #ffd650); stroke-width: 10; stroke-linecap: round; }
.road-spot .ghost-trail-outline { stroke: #2a1a04; stroke-width: 6.5; stroke-linecap: round; stroke-dasharray: 0.1 9; opacity: 0.75;
  animation: road-trail 1.2s linear infinite; }
.road-spot .ghost-trail { stroke: #ffe48f; stroke-width: 3.8; stroke-linecap: round; stroke-dasharray: 0.1 9;
  animation: road-trail 1.2s linear infinite; }
.road-spot .ghost-hit { stroke: transparent; stroke-width: 22; stroke-linecap: round; }
.road-spot:hover .ghost-road { opacity: 1; animation: none; filter: drop-shadow(0 0 5px rgba(255, 214, 80, 0.95)); }
.road-spot:hover .ghost-trail, .road-spot:hover .ghost-trail-outline { opacity: 0; animation: none; }
@keyframes road-ghost { 0%, 100% { opacity: 0.32; } 50% { opacity: 0.6; } }
@keyframes road-trail { to { stroke-dashoffset: -9.1; } }
@media (prefers-reduced-motion: reduce) { .road-spot .ghost-road, .road-spot .ghost-trail, .road-spot .ghost-trail-outline { animation: none; } }

/* ---------- Straßen-Bauplätze: leuchtende Kante in Spielerfarbe, echte Straße beim Drüberfahren ---------- */
.road-spot .edge-glow { animation: edge-glow 1.8s ease-in-out infinite; transition: opacity 0.15s ease; }
.road-spot .eg-halo { stroke: var(--ghost, #ffd650); stroke-width: 18; stroke-linecap: round; opacity: 0.18; }
.road-spot .eg-mid { stroke: var(--ghost, #ffd650); stroke-width: 9; stroke-linecap: round; opacity: 0.55; }
.road-spot .eg-core { stroke: #fff6d8; stroke-width: 2.6; stroke-linecap: round; opacity: 0.9; }
.road-spot .ghost-road { opacity: 0; animation: none; filter: none; transition: opacity 0.15s ease; }
.road-spot:hover .ghost-road { opacity: 1; animation: none; filter: drop-shadow(0 0 5px rgba(255, 214, 80, 0.9)); }
.road-spot:hover .edge-glow { opacity: 0; animation: none; }
@keyframes edge-glow { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .road-spot .edge-glow { animation: none; opacity: 0.85; } }
/* Glühen etwas kräftiger, damit Bauplätze auch im dunklen Moment des Pulsierens klar zu sehen sind */
.road-spot .eg-halo { stroke-width: 20; opacity: 0.3; }
.road-spot .eg-mid { stroke-width: 10; opacity: 0.8; }
.road-spot .eg-core { stroke-width: 3; opacity: 1; }
@keyframes edge-glow { 0%, 100% { opacity: 0.7; } 50% { opacity: 1; } }

/* Straßen-Vorschau liegt jetzt unter den Gebäuden (.road-spot-vis); Drüberfahren setzt .hover */
.road-spot-vis { pointer-events: none; }
.road-spot-vis .edge-glow { animation: edge-glow 1.8s ease-in-out infinite; transition: opacity 0.15s ease; }
.road-spot-vis .eg-halo { stroke: var(--ghost, #ffd650); stroke-width: 20; stroke-linecap: round; opacity: 0.3; }
.road-spot-vis .eg-mid { stroke: var(--ghost, #ffd650); stroke-width: 10; stroke-linecap: round; opacity: 0.8; }
.road-spot-vis .eg-core { stroke: #fff6d8; stroke-width: 3; stroke-linecap: round; opacity: 1; }
.road-spot-vis .ghost-plain { stroke: var(--ghost, #ffd650); stroke-width: 10; stroke-linecap: round; }
.road-spot-vis .ghost-road { opacity: 0; transition: opacity 0.15s ease; }
.road-spot-vis.hover .ghost-road, .road-spot:hover > .road-spot-vis .ghost-road { opacity: 1; filter: drop-shadow(0 0 5px rgba(255, 214, 80, 0.9)); }
.road-spot-vis.hover .edge-glow, .road-spot:hover > .road-spot-vis .edge-glow { opacity: 0; animation: none; }
@media (prefers-reduced-motion: reduce) { .road-spot-vis .edge-glow { animation: none; opacity: 0.85; } }

/* Bau-Leiste am PC: FESTE Größe – egal wie groß der Bildschirm ist und wie viele Knöpfe es gibt.
   Bemessen für den vollen Satz (Handeln + 6 Bauknöpfe mit Schiff/Burg + Würfeln/Zug beenden):
   7 × 84 + 7 × 8 Abstand + 140 = 784 px – passt ab 1280 px Fensterbreite neben die Handkarten.
   Die Handkarten fächern sich bei Platzmangel auf (fitHand in room.js), die Knöpfe nie. */
@media (min-width: 901px) and (min-height: 521px) {
  .game2 .hand-row > .act-col { flex: none; align-self: center; } /* senkrecht mittig in der Leiste */
  .game2 .action-row { flex-wrap: nowrap; gap: 8px; }
  .game2 .bb, .game2 .act-btn { flex: none; width: 84px; height: 100px; min-width: 84px; padding: 8px 4px 10px; }
  .game2 .bb .bb-img, .game2 .act-btn .act-icon .bb-img { width: 64px; height: 54px; }
  .game2 .bb .bb-svg { width: 60px; height: 50px; }
  .game2 .bb-dot { width: 11px; height: 11px; }
  .game2 .bb-dots { gap: 3px; }
  body.in-game .act-btn .act-label { font-size: 0.9rem; }
  .game2 #roll-btn, .game2 #end-turn { flex: none; width: 140px; min-width: 140px; height: 100px; padding: 0 10px;
    font-size: 1.25rem; white-space: normal; line-height: 1.1; }
}
/* Schmale PC-Fenster (unter 1280 px): Größe bleibt fest – passt die Reihe nicht, bricht sie in zwei Zeilen um */
@media (min-width: 901px) and (max-width: 1279px) and (min-height: 521px) {
  .game2 .action-row { flex-wrap: wrap; justify-content: flex-end; }
}
/* Viele Bauknöpfe (Seefahrer/Burgen) auf mittleren Bildschirmen: Knöpfe bleiben gleich groß,
   die Handkarten bekommen dafür eine eigene Zeile darüber (sonst blieben für sie nur ein paar Pixel) */
@media (min-width: 901px) and (max-width: 1429px) and (min-height: 521px) {
  .game2 .hand-row:has(#cost-strip > .bb:nth-child(6)) { flex-wrap: wrap; }
  .game2 .hand-row:has(#cost-strip > .bb:nth-child(6)) > .hand-cards { flex: 1 1 100%; }
  .game2 .hand-row:has(#cost-strip > .bb:nth-child(6)) > .act-col { margin-left: auto; }
}
@media (min-width: 901px) and (max-width: 1349px) and (min-height: 521px) {
  .game2 .hand-row:has(#cost-strip > .bb:nth-child(5)) { flex-wrap: wrap; }
  .game2 .hand-row:has(#cost-strip > .bb:nth-child(5)) > .hand-cards { flex: 1 1 100%; }
  .game2 .hand-row:has(#cost-strip > .bb:nth-child(5)) > .act-col { margin-left: auto; }
}
/* ---------- Startseite: Gratis-Belohnungen (Freunde werben, Discord) ---------- */
.reward-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin: 14px 0 4px; }
.reward-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
  border: 2px solid rgba(242, 193, 78, 0.55); background: linear-gradient(135deg, rgba(242, 193, 78, 0.14), rgba(12, 38, 60, 0.92) 55%); box-shadow: var(--shadow); }
.reward-card.discord-card { border-color: rgba(114, 137, 218, 0.8); background: linear-gradient(135deg, rgba(88, 101, 242, 0.25), rgba(12, 38, 60, 0.92) 55%); }
.reward-card.discord-card button { background: linear-gradient(180deg, #7b8af5, #5865f2); border-color: #2c348f; color: #fff; }
.reward-card.done { opacity: 0.8; }
.rc-icon { font-size: 2rem; line-height: 1; }
.rc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rc-body small { color: var(--muted); font-size: 0.82rem; line-height: 1.3; }
@media (max-width: 520px) { .reward-card { grid-template-columns: auto 1fr; } .reward-card > button { grid-column: 1 / -1; } }
.landing-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; padding: 10px 16px; border-radius: 12px;
  background: rgba(12, 38, 60, 0.97); border: 1px solid var(--gold); box-shadow: var(--shadow); font-weight: 700; max-width: calc(100% - 32px); }

/* ---------- Shop: Sonderangebote (Gründer-Paket, Einsteigerpaket) und Ally verschenken ---------- */
.offer-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin: 14px 0 6px; }
.offer-card { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px 18px;
  border-radius: 18px; border: 3px solid #f2c14e; background: linear-gradient(135deg, rgba(123, 79, 201, 0.35), rgba(16, 40, 64, 0.95) 60%);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35), 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 22px rgba(242, 193, 78, 0.25); }
.offer-card.offer-starter { border-color: #7fe08f; background: linear-gradient(135deg, rgba(87, 196, 114, 0.28), rgba(16, 40, 64, 0.95) 60%); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35), 0 10px 24px rgba(0, 0, 0, 0.35); }
.offer-card.owned { opacity: 0.85; border-style: dashed; }
.offer-icon { font-size: 2.6rem; line-height: 1; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4)); }
.offer-body strong { font-family: var(--font-display); font-size: 1.15rem; }
.offer-body .hint { margin: 4px 0 6px; }
.offer-note { display: inline-block; font-size: 0.8rem; font-weight: 800; color: #ffe39a; }
.offer-starter .offer-note { color: #9be58c; }
@media (max-width: 600px) { .offer-card { grid-template-columns: auto 1fr; } .offer-card > button, .offer-card > .shop-tag { grid-column: 1 / -1; } }
.gift-box { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border); background: rgba(0, 0, 0, 0.2); }
.gift-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.gift-pick { min-width: 180px; padding: 9px 10px; border-radius: 10px; }
.co-gift { margin: 6px 0 0; font-weight: 800; color: #ffe39a; }

/* Platzhalter-Karte in der leeren Hand: hält die Leiste auf Kartenhöhe (nur am PC, Handy bleibt kompakt) */
#hand .res-card.hand-ghost { width: 0; margin: 0; visibility: hidden; box-shadow: none; pointer-events: none; }
@media (max-width: 900px), (max-height: 520px) { #hand .res-card.hand-ghost { display: none; } }

/* ---------- Spielerkarte: Werte als Kacheln mit Spielgrafik (statt Emojis), einzeilig: Bild + Zahl.
   Was die Kachel bedeutet, steht im Tooltip. ---------- */
#game-players .pc-chips { gap: 5px; }
#game-players .pc-chips .chip.stat { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0;
  padding: 4px 6px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(0, 0, 0, 0.3); line-height: 1; }
.chip.stat .st-pic { position: relative; flex: none; width: 24px; height: 24px; }
.chip.stat .st-img { background: var(--art) center / contain no-repeat; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.45)); }
.chip.stat .st-card { width: 17px; height: 24px; border-radius: 3px; background: var(--art) center / 100% 100% no-repeat;
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.55), 0 2px 4px rgba(0, 0, 0, 0.45); }
/* Handkarten: kleiner Fächer aus drei Rohstoffkarten */
.chip.stat .st-fan { width: 26px; }
.chip.stat .st-fan i { position: absolute; bottom: 0; left: 6px; width: 15px; height: 21px; border-radius: 2.5px; background: var(--art) center / 100% 100% no-repeat;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 1px 3px rgba(0, 0, 0, 0.4); transform-origin: 50% 100%; }
.chip.stat .st-fan i:nth-child(1) { transform: rotate(-20deg) translateX(-3px); }
.chip.stat .st-fan i:nth-child(3) { transform: rotate(20deg) translateX(3px); }
.chip.stat b { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: #fff; }
/* Wer den Titel hält: goldene Kachel mit +2 */
#game-players .pc-chips .chip.stat.title { border-color: var(--gold); background: linear-gradient(180deg, rgba(244, 197, 90, 0.28), rgba(244, 197, 90, 0.08));
  box-shadow: 0 0 0 1px rgba(244, 197, 90, 0.4), 0 0 10px rgba(244, 197, 90, 0.35); }
.chip.stat .st-award { position: absolute; top: -7px; right: -5px; padding: 1px 5px 2px; border-radius: 999px; font-size: 0.62rem; font-weight: 900; line-height: 1.1;
  color: #2a1a04; background: linear-gradient(180deg, #ffe58a, #f0b93a); border: 1.5px solid #5a3a0c; }
/* Zu viele Karten (bei einer 7 abgeben): rot */
#game-players .pc-chips .chip.stat.over-limit { border-color: #ff5a3c; background: rgba(226, 66, 48, 0.32); }
/* Handy, Spielerleiste zugeklappt: nur die Handkarten, ganz klein */
@media (max-width: 900px) {
  body:not(.players-open) .game2 #game-players .pc-chips .chip.stat { height: 17px; gap: 2px; padding: 0 4px 0 2px !important; border-radius: 6px; }
  body:not(.players-open) .game2 #game-players .chip.stat .st-pic { width: 14px; height: 14px; }
  body:not(.players-open) .game2 #game-players .chip.stat .st-fan i { width: 8px; height: 11px; left: 3px; }
  body:not(.players-open) .game2 #game-players .chip.stat b { font-size: 0.7rem; }
  body:not(.players-open) .game2 #game-players .chip.stat .st-award { display: none; }
  /* Titel bleiben auch zugeklappt sichtbar (als kleine goldene Kachel) */
  body:not(.players-open) .game2 #game-players .pc-chips .chip.stat.title { display: flex !important; }
}

/* =====================================================================
   Fenster im Stil der Karten-Vorschau (Lobby): 3 px blauer Rahmen, scharfe dunkle
   Außenlinie und eine dunkle Unterkante. Gilt für Lobby, Spiel und die Fenster darüber.
   ===================================================================== */
:root {
  --mf-bg: linear-gradient(180deg, #133b5d, #0e2f4b);
  --mf-border: 3px solid var(--ft-edge);
  --mf-shadow: 0 0 0 2px var(--ft-out), 0 5px 0 2px var(--ft-out), 0 12px 24px rgba(0, 0, 0, 0.3);
  /* kleinere Fassung für Einträge in den Fenstern (Plätze, Spielerkarten) */
  --mf-in-border: 2px solid var(--ft-edge);
  --mf-in-shadow: 0 0 0 1.5px var(--ft-out), 0 3px 0 1.5px var(--ft-out);
}
/* Große Fenster */
#lobby-view .lobby-box, body.in-game .players-col > section, body.in-game > header,
body.in-game .trade2, body.in-game .offer-popup, body.in-game .panel,
#winner-overlay .card, #profile-overlay .card, .tutorial-card {
  background: var(--mf-bg) !important; border: var(--mf-border) !important; border-radius: 18px !important; box-shadow: var(--mf-shadow) !important;
}
body.in-game .game2 .board-wrap { border: var(--mf-border); border-radius: 18px; box-shadow: 0 0 0 2px var(--ft-out), 0 5px 0 2px var(--ft-out), 0 12px 24px rgba(0, 0, 0, 0.3); }
@media (min-width: 901px) {
  body.in-game .game2 .hand-row { background: var(--mf-bg); border: var(--mf-border); border-radius: 18px; box-shadow: var(--mf-shadow); }
}
@media (max-width: 900px) {
  body.in-game .game2 .bottom-bar { background: var(--mf-bg); border: var(--mf-border); border-radius: 18px; box-shadow: 0 0 0 2px var(--ft-out), 0 4px 0 2px var(--ft-out); }
}
/* Große Karten-Vorschau oben in der Lobby: derselbe Kartenrahmen wie die kleinen Vorschauen */
#lobby-view .game-summary .map-preview { border: var(--mf-border); border-radius: 14px; box-shadow: 0 0 0 2px var(--ft-out), 0 4px 0 2px var(--ft-out); overflow: hidden; }

/* Einträge in den Fenstern: kleine Kartenrahmen, Spielerfarbe links */
#lobby-view .seat:not(.empty), body.in-game .player-card {
  border: var(--mf-in-border); border-left: 5px solid var(--seat, var(--pcolor, var(--ft-edge))); border-radius: 12px; box-shadow: var(--mf-in-shadow);
  background: linear-gradient(rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.05)), #0f3150; /* deckend: die eigene Karte klebt über den anderen */
}
body.in-game .player-card { border-left-color: var(--pcolor, var(--ft-edge)); }
body.in-game .player-card.current { border-color: var(--gold); border-left-color: var(--pcolor, var(--gold));
  background: linear-gradient(90deg, rgba(244, 197, 90, 0.18), rgba(244, 197, 90, 0.04)), #0f3150; box-shadow: 0 0 0 1.5px var(--ft-out), 0 3px 0 1.5px var(--ft-gold-dark), 0 0 14px rgba(244, 197, 90, 0.3); }
#lobby-view .seat.empty { border: 2px dashed rgba(255, 255, 255, 0.16); border-radius: 12px; }
/* Titel-Kästen und Bank: dünner Kartenrahmen statt gestrichelt */
body.in-game .award-card { border: var(--mf-in-border); border-radius: 12px; box-shadow: var(--mf-in-shadow); background: rgba(255, 255, 255, 0.04); }
body.in-game .award-card.taken { border-color: var(--hc); box-shadow: 0 0 0 1.5px var(--ft-out), 0 3px 0 1.5px var(--ft-out); background: color-mix(in srgb, var(--hc) 16%, transparent); }
/* Reiter und Eingabefelder: dieselbe scharfe Linie */
#lobby-view .lobby-tabs, body.in-game .chat-box .tabs { border: 2px solid var(--ft-out); }
#lobby-view input:not([type="checkbox"]):not([type="radio"]), body.in-game .chat-form input { border: 2px solid var(--ft-edge); box-shadow: 0 0 0 1.5px var(--ft-out); }

/* ---------- Kartenrahmen auch auf Startseite, Shop, Profil und in allen Fenstern ---------- */
/* Große Fenster und Kästen */
.overlay > .card, .friends-pop, .card.notice-card,
body.home .play-box,
body.shop .support-hero, body.shop .tiers, body.shop .coin-shop, body.shop .my-purchases, body.shop .shop-status,
body.profile .pf-side, body.profile .pf-panel {
  background: var(--mf-bg) !important; border: var(--mf-border) !important; border-radius: 18px !important; box-shadow: var(--mf-shadow) !important;
}
/* Kacheln in den Kästen: genau wie die Karten-Vorschau (3 px Rahmen, dunkle Linie, Unterkante) */
body.home .promo .promo-trio .promo-card, .reward-card,
body.shop .shop-card, .offer-card, body.shop .tier-card, body.shop .coin-pack, body.shop .ca-card, .gift-box, .free-week-promo,
.theme-card, body.profile .unlock, body.profile .shelf-item {
  border-width: 3px !important; border-style: solid !important; border-radius: 14px !important;
  box-shadow: 0 0 0 2px var(--ft-out), 0 4px 0 2px var(--ft-out) !important;
}
/* Neutrale Kacheln: blauer Rahmen */
body.home .promo .promo-trio .promo-card, .reward-card:not(.discord-card),
body.shop .shop-card, .offer-card:not(.offer-starter), body.shop .coin-pack, .gift-box,
.theme-card:not(.active), body.profile .unlock:not(.active), body.profile .shelf-item { border-color: var(--ft-edge) !important; }
/* Akzent-Kacheln behalten ihre Farbe */
body.shop .tier-card { border-color: var(--ft-edge) !important; }
body.shop .tier-card.tier-plus, body.shop .ca-card { border-color: var(--gold) !important; box-shadow: 0 0 0 2px var(--ft-out), 0 4px 0 2px var(--ft-gold-dark) !important; }
body.shop .tier-card.tier-premium { border-color: #9b74f0 !important; box-shadow: 0 0 0 2px var(--ft-out), 0 4px 0 2px #3b2370, 0 14px 30px rgba(90, 50, 170, 0.3) !important; }
.offer-card.offer-starter, .free-week-promo { border-color: #7fe08f !important; }
.reward-card.discord-card { border-color: #7289da !important; }
/* Ausgewählt / aktuell: Gold wie die gewählte Karte in der Lobby */
.theme-card.active, body.profile .unlock.active { border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px var(--ft-out), 0 4px 0 2px var(--ft-gold-dark), 0 0 16px rgba(244, 197, 90, 0.4) !important; }
body.shop .tier-card.current { outline: none; box-shadow: 0 0 0 2px var(--ft-out), 0 4px 0 2px var(--ft-out), 0 0 0 5px var(--ok) !important; }
.offer-card.owned { border-style: dashed !important; }
/* Rechtstexte und geteilte Karte: derselbe Fensterrahmen */
.card.legal, .card.share-card { background: var(--mf-bg) !important; border: var(--mf-border) !important; border-radius: 18px !important; box-shadow: var(--mf-shadow) !important; }
/* Shop: Reiterleiste, Unterstützer-Leiste und die übrigen Reiter-Seiten */
body.shop .shop-pane, body.shop .support-strip { background: var(--mf-bg) !important; border: var(--mf-border) !important; border-radius: 18px !important; box-shadow: var(--mf-shadow) !important; }
body.shop .shop-tabs, body.profile .pf-tabs { border: 2px solid var(--ft-out); }
/* Shop-Vergleich: Zeile mit Text statt Haken (z. B. Erweiterungen 1× pro Woche / Unbegrenzt) */
.compare td.yes.txt { color: var(--muted); font-size: 0.8rem; font-weight: 800; white-space: nowrap; }
.compare td.yes.txt.best { color: #2a1a04; }
.compare td.yes.txt.best::before { content: none; }
.compare td.yes.txt.best { background: linear-gradient(180deg, #ffe08a, var(--gold)); border-radius: 999px; box-shadow: inset 0 0 0 2px #fff4c8; }
/* Erweiterungen-Reiter: Hinweis „mit Ally unbegrenzt“ */
.fwp-unlimited { display: block; width: fit-content; margin: 0 0 6px; padding: 3px 12px; border-radius: 999px; font-size: 0.82rem; font-weight: 800;
  color: #2a1a04; background: linear-gradient(180deg, #ffe08a, var(--gold)); box-shadow: 0 0 0 2px var(--ft-out); }
