/* Inselreich – eigenes Design: Tischbrett-Look mit Pergament, Holz und Messing */
:root {
  --sea-1: #1d6f77;
  --sea-2: #0f4a50;
  --sea-3: #08292d;
  --parch: #f6ecd4;
  --parch-2: #ecdcb6;
  --parch-3: #dcc596;
  --parch-edge: #b8975f;
  --ink: #3a2a18;
  --ink-soft: #6e5a3f;
  --wood-1: #8a5a33;
  --wood-2: #5e3a1d;
  --wood-3: #3d2410;
  --brass-1: #f2d58a;
  --brass-2: #c99a3e;
  --brass-3: #8d6420;
  --accent: #b5532a;
  --accent-2: #8f3c1a;
  --ok: #3f7d3a;
  --danger: #a3332a;
  --gold: #f4c74f;
  --shadow: 0 10px 30px rgba(10, 20, 22, .35), 0 2px 6px rgba(10, 20, 22, .25);
  --radius: 12px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --topbar-h: 56px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 30% 20%, #23808a 0%, transparent 60%),
    radial-gradient(900px 600px at 80% 90%, #0d4249 0%, transparent 70%),
    linear-gradient(160deg, #165a62, #082a2f);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { /* feine Wellen über dem Hintergrund */
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M8 18q9-7 18 0t18 0'/%3E%3Cpath d='M70 46q9-7 18 0t18 0'/%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}
.hidden { display: none !important; }
.muted { color: var(--ink-soft); }
.small { font-size: 12px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; margin: 0; color: var(--ink); }
code { font-family: ui-monospace, Consolas, monospace; background: rgba(90, 60, 20, .1); padding: 2px 6px; border-radius: 6px; word-break: break-all; }

/* ------------------------------------------------ Steuerelemente */
.btn {
  --b1: #fbf3df; --b2: #e8d5aa; --bd: #9c7a45; --tx: var(--ink);
  appearance: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: 600 14px/1.1 var(--sans);
  color: var(--tx);
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--bd);
  background: linear-gradient(180deg, var(--b1), var(--b2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 2px 0 rgba(70, 45, 15, .35), 0 3px 8px rgba(40, 25, 5, .18);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .15s ease, opacity .2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover:not(:disabled) { filter: brightness(1.05); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 3px 0 rgba(70,45,15,.35), 0 6px 14px rgba(40,25,5,.22); }
.btn:active:not(:disabled) { transform: translateY(1px); box-shadow: inset 0 2px 4px rgba(60,35,10,.3), 0 0 0 rgba(0,0,0,0); }
.btn:focus-visible, .bbtn:focus-visible, .tab:focus-visible, .cbtn:focus-visible { outline: 3px solid rgba(244, 199, 79, .8); outline-offset: 2px; }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: saturate(.4); }
.btn.primary {
  --b1: #d9733f; --b2: #a8461d; --bd: #6e2a0e; --tx: #fff8ea;
  text-shadow: 0 1px 0 rgba(60, 20, 0, .5);
  box-shadow: inset 0 1px 0 rgba(255, 210, 170, .6), 0 2px 0 #5a210a, 0 4px 10px rgba(90, 30, 5, .3);
}
.btn.ghost { --b1: transparent; --b2: transparent; --bd: rgba(110, 80, 40, .45); box-shadow: none; }
.btn.ghost:hover:not(:disabled) { background: rgba(120, 85, 35, .1); box-shadow: none; }
.btn.ghost.light { --bd: rgba(255,255,255,.5); --tx: #fff; }
.btn.ghost.light:hover { background: rgba(255,255,255,.12); }
.btn.danger { --tx: var(--danger); }
.btn.small { padding: 6px 10px; font-size: 12.5px; border-radius: 8px; }
.btn.big { padding: 13px 22px; font-size: 16px; border-radius: 12px; }
.btn.pulse:not(:disabled) { animation: btnPulse 1.6s ease-in-out infinite; }
@keyframes btnPulse { 0%, 100% { box-shadow: inset 0 1px 0 rgba(255,210,170,.6), 0 2px 0 #5a210a, 0 0 0 0 rgba(244,199,79,.7); } 50% { box-shadow: inset 0 1px 0 rgba(255,210,170,.6), 0 2px 0 #5a210a, 0 0 0 7px rgba(244,199,79,0); } }

input, select {
  font: 15px var(--sans);
  color: var(--ink);
  background: linear-gradient(180deg, #fffaf0, #f7ecd3);
  border: 1px solid #a88758;
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: inset 0 2px 4px rgba(90, 60, 20, .15);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  min-width: 0;
}
input:focus, select:focus { border-color: var(--brass-2); box-shadow: inset 0 2px 4px rgba(90,60,20,.12), 0 0 0 3px rgba(244, 199, 79, .45); }
input::placeholder { color: #a8936f; }
select {
  appearance: none; -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236e5a3f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"), linear-gradient(180deg, #fffaf0, #f7ecd3);
  background-repeat: no-repeat; background-position: right 12px center, 0 0;
  cursor: pointer;
}

/* ------------------------------------------------ Karten / Panels */
.card {
  position: relative;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, .55), transparent 60%),
    linear-gradient(180deg, var(--parch), var(--parch-2));
  border: 1px solid var(--parch-edge);
  border-radius: 16px;
  box-shadow: var(--shadow), inset 0 0 0 4px rgba(255, 250, 235, .5), inset 0 0 0 5px rgba(160, 120, 60, .25);
}

/* ------------------------------------------------ Kopfzeile */
#topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--topbar-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 16px;
  background: linear-gradient(180deg, #6b4425, #4a2c14);
  border-bottom: 2px solid #2c1909;
  box-shadow: inset 0 1px 0 rgba(255, 220, 170, .25), 0 4px 14px rgba(0, 0, 0, .35);
  color: #fbecd0;
}
#topbar::after { /* Holzmaserung */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: repeating-linear-gradient(176deg, transparent 0 7px, rgba(0,0,0,.35) 7px 8px, transparent 8px 19px, rgba(255,220,170,.25) 19px 20px);
}
.brand { display: flex; align-items: center; gap: 9px; font: 700 21px var(--serif); letter-spacing: .5px; text-shadow: 0 2px 0 rgba(0,0,0,.4); white-space: nowrap; z-index: 1; }
.brand svg { width: 32px; height: 32px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.status {
  z-index: 1;
  flex: 1; min-width: 0;
  display: flex; justify-content: center;
}
.status > span {
  display: inline-flex; align-items: center; gap: 8px;
  max-width: 100%;
  padding: 7px 18px;
  border-radius: 999px;
  font: 600 15px var(--serif);
  background: rgba(20, 10, 2, .35);
  border: 1px solid rgba(255, 220, 170, .2);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .3s, color .3s;
}
.status.act > span {
  color: #3a2508;
  background: linear-gradient(180deg, var(--brass-1), var(--brass-2));
  border-color: var(--brass-3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 0 rgba(244,199,79,.6), 0 2px 6px rgba(0,0,0,.3);
  animation: statusGlow 2.2s ease-in-out infinite;
}
.status.act.soft > span { animation: none; }
.status.win > span { color: #3a2508; background: linear-gradient(180deg, #fff1b8, var(--gold)); }
@keyframes statusGlow { 50% { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 0 0 6px rgba(244,199,79,0), 0 0 18px rgba(244,199,79,.55); } }
.sdot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #1d140c; display: inline-block; flex: none; }
.top-actions { display: flex; align-items: center; gap: 10px; z-index: 1; }
#topbar .btn.ghost { --bd: rgba(255, 225, 180, .45); --tx: #fbecd0; }
#topbar .btn.ghost:hover { background: rgba(255,255,255,.1); }
.conn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #f3dcb6; white-space: nowrap; }
.conn i { width: 10px; height: 10px; border-radius: 50%; background: #e0a437; box-shadow: 0 0 0 2px rgba(0,0,0,.25), 0 0 8px currentColor; }
.conn.online i { background: #6fd36a; color: #6fd36a; }
.conn.connecting i { background: #f0c050; color: #f0c050; animation: blink 1s infinite; }
.conn.offline i { background: #e55c4c; color: #e55c4c; }
.conn.online .conn-text { opacity: .8; }
@keyframes blink { 50% { opacity: .3; } }

/* ------------------------------------------------ Titelbildschirme */
.screen { position: relative; z-index: 1; }
.center-screen {
  min-height: calc(100vh - var(--topbar-h));
  min-height: calc(100dvh - var(--topbar-h));
  display: grid; place-items: center;
  padding: 28px 16px;
}
#backdrop { position: fixed; inset: var(--topbar-h) 0 0 0; width: 100%; height: calc(100% - var(--topbar-h)); z-index: 0; pointer-events: none; }
body[data-screen="game"] #backdrop { display: none; }
.join-card, .lobby-card { width: min(440px, 100%); padding: 30px 30px 26px; text-align: center; animation: rise .5s cubic-bezier(.2,.8,.2,1); }
.lobby-card { width: min(520px, 100%); text-align: left; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.join-art { width: 100%; max-width: 300px; height: auto; display: block; margin: -6px auto 10px; filter: drop-shadow(0 6px 10px rgba(40, 25, 5, .3)); }
.join-card h1 {
  font-size: 46px; letter-spacing: 1px; line-height: 1;
  color: #5b3416;
  text-shadow: 0 1px 0 #fff6dc, 0 2px 0 rgba(120, 70, 20, .35);
}
.join-card h1::before, .join-card h1::after { content: "❖"; font-size: 16px; color: var(--brass-2); vertical-align: middle; margin: 0 12px; position: relative; top: -6px; }
.tagline { font: italic 15px var(--serif); color: var(--ink-soft); margin: 10px 0 22px; }
#joinForm { display: grid; gap: 10px; text-align: left; }
#joinForm label { font: 600 13px var(--sans); color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
#joinForm input { font-size: 17px; padding: 13px 14px; }
#joinForm .btn { margin-top: 6px; }
.hint { font-size: 13px; color: var(--ink-soft); margin: 12px 0 0; min-height: 1em; }

.lobby-card h2 { font-size: 30px; margin-bottom: 10px; }
.share { margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lobby-players { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.lobby-players li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 252, 242, .7);
  border: 1px solid rgba(160, 120, 60, .35);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}
.lobby-players li.empty { background: transparent; border-style: dashed; box-shadow: none; animation: none; }
.lobby-players li.off { opacity: .55; }
.lobby-players .slot { width: 26px; height: 26px; border-radius: 6px; border: 2px dashed rgba(160, 120, 60, .4); }
.lp-name { font: 700 16px var(--serif); }
.lp-color { margin-left: auto; font-size: 12px; }
.lobby-players li .btn { margin-left: 4px; }
.lobby-host { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; background: rgba(120, 85, 35, .08); border: 1px solid rgba(160,120,60,.3); }
.lobby-host label { font-weight: 600; }
.lobby-host .btn { margin-left: auto; }
.tag { display: inline-block; font: 700 10.5px var(--sans); text-transform: uppercase; letter-spacing: .06em; padding: 2px 6px; border-radius: 5px; vertical-align: middle; }
.tag.host { background: linear-gradient(180deg, var(--brass-1), var(--brass-2)); color: #4a300a; border: 1px solid var(--brass-3); }
.tag.you { background: #3d6e8a; color: #fff; }
.tag.new { background: #5b3a6e; color: #fff; }

/* ------------------------------------------------ Spiel-Layout */
#screen-game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  height: calc(100vh - var(--topbar-h));
  height: calc(100dvh - var(--topbar-h));
}
#boardWrap {
  position: relative;
  min-height: 0;
  padding: 18px;
  display: flex;
}
#boardWrap::before { /* Holzrahmen um das Meer */
  content: ""; position: absolute; inset: 10px;
  border-radius: 22px;
  background: linear-gradient(135deg, #7b4f2b, #4d2f16 40%, #6e4524 70%, #3e250f);
  box-shadow: 0 18px 40px rgba(0,0,0,.45), inset 0 2px 0 rgba(255,220,170,.3), inset 0 -2px 0 rgba(0,0,0,.4);
}
#boardWrap::after {
  content: ""; position: absolute; inset: 10px; border-radius: 22px; pointer-events: none; opacity: .25;
  background-image: repeating-linear-gradient(100deg, transparent 0 9px, rgba(0,0,0,.4) 9px 10px, transparent 10px 23px, rgba(255,220,170,.3) 23px 24px);
}
#boardStage {
  position: relative; z-index: 1;
  flex: 1; min-width: 0; min-height: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 0 3px #c9a45e, 0 0 0 4px #2c1a0a;
  background: #0f4a50;
  touch-action: manipulation;
  isolation: isolate;
}
#boardStage::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 3px #2c1a0a, inset 0 0 40px rgba(0,10,12,.35); pointer-events: none; z-index: 5; }
#boardStage .blayer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  overflow: visible;
  transform-origin: 50% 50%;
  will-change: transform;
}
#boardDeep, #boardSea { pointer-events: none; }
#board { background: transparent; }
#side {
  position: relative; z-index: 2;
  overflow-y: auto;
  padding: 14px 14px 24px 4px;
  display: flex; flex-direction: column; gap: 12px;
  scrollbar-width: thin; scrollbar-color: rgba(255,230,190,.35) transparent;
}
.panel {
  background:
    radial-gradient(120% 70% at 10% 0%, rgba(255,255,255,.5), transparent 55%),
    linear-gradient(180deg, var(--parch), var(--parch-2));
  border: 1px solid var(--parch-edge);
  border-radius: var(--radius);
  padding: 12px 13px;
  box-shadow: 0 6px 16px rgba(5, 25, 28, .3), inset 0 0 0 3px rgba(255,250,235,.45), inset 0 0 0 4px rgba(160,120,60,.2);
}
.panel h3 {
  font-size: 15.5px; margin: 0 0 9px;
  display: flex; align-items: baseline; gap: 6px;
  color: #5b3416;
}
.panel h3::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg) translateY(-2px); background: var(--brass-2); border: 1px solid var(--brass-3); flex: none; }
.panel h3 .muted { font: 500 12.5px var(--sans); }
.panel.spectator { text-align: center; font: italic 15px var(--serif); }

/* Zug-Panel */
#turnPanel { transition: box-shadow .3s; }
#turnPanel.my-turn { box-shadow: 0 0 0 2px var(--gold), 0 0 22px rgba(244,199,79,.45), 0 6px 16px rgba(5,25,28,.3); }
.turn-row { display: flex; align-items: center; gap: 12px; }
.turn-buttons { margin-left: auto; display: grid; gap: 7px; min-width: 130px; }
.dice { display: flex; align-items: center; gap: 8px; }
.die { width: 46px; height: 46px; filter: drop-shadow(0 3px 2px rgba(40,25,5,.35)); transition: transform .2s; }
.die-face { fill: #fffaf0; stroke: #8a6a3d; stroke-width: 3; }
.die-pips { fill: #3a2a18; }
.die:last-of-type .die-pips { fill: #a8341f; }
.die-q { font: 700 46px var(--serif); fill: #c9b48a; }
.dice.rolling .die { animation: shake .15s linear infinite; }
.dice.rolling .die:nth-child(2) { animation-direction: reverse; }
@keyframes shake { 0% { transform: rotate(-14deg) translateY(-3px); } 50% { transform: rotate(12deg) translateY(2px); } 100% { transform: rotate(-14deg) translateY(-3px); } }
.dice-sum { font: 700 28px var(--serif); min-width: 36px; text-align: center; color: #5b3416; animation: pop .35s ease; }
.dice-sum.seven { color: var(--danger); }
.dice-sum.stale { opacity: .45; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* Spieler */
#players { display: grid; gap: 7px; }
.pcard {
  position: relative;
  padding: 8px 10px 8px 14px;
  border-radius: 10px;
  background: rgba(255, 252, 242, .75);
  border: 1px solid rgba(160, 120, 60, .3);
  transition: transform .25s, box-shadow .25s, opacity .3s;
  overflow: hidden;
}
.pcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--pc); box-shadow: 1px 0 0 rgba(0,0,0,.25); }
.pcard.active { background: #fffbef; border-color: var(--brass-2); box-shadow: 0 0 0 2px rgba(244,199,79,.65), 0 4px 10px rgba(80,50,10,.18); transform: translateX(-3px); }
.pcard.active::after { content: "am Zug"; position: absolute; right: 8px; bottom: 6px; font: 700 10px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--brass-3); }
.pcard.off { opacity: .5; filter: grayscale(.7); }
.pc-head { display: flex; align-items: center; gap: 8px; }
.pc-name { font: 700 15px var(--serif); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-vp { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.pc-vp b { font: 700 20px var(--serif); color: #5b3416; }
.pc-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 12.5px; color: var(--ink); padding-right: 46px; }
.pc-stats span { display: inline-flex; align-items: center; gap: 4px; }
.mini-card { display: inline-block; width: 10px; height: 14px; border-radius: 2px; border: 1px solid rgba(0,0,0,.4); }
.mini-card.res { background: linear-gradient(180deg, #e9d4a0, #c9a560); }
.mini-card.dev { background: linear-gradient(180deg, #8b5fa3, #5b3a6e); }
.pc-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.award { font: 700 10.5px var(--sans); padding: 3px 7px; border-radius: 999px; border: 1px solid; letter-spacing: .02em; }
.award.road { background: #f3e2c1; color: #7a4a1a; border-color: #b9884c; }
.award.army { background: #e9dcef; color: #5b3a6e; border-color: #9b7ab0; }
.award.warn { background: #fbe1d9; color: var(--danger); border-color: #d69585; animation: blink 1.2s infinite; }
.award.offline { background: #ddd; color: #555; border-color: #aaa; }
.piece-ico { flex: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }

/* Hand */
.hand { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.rcard {
  position: relative;
  aspect-ratio: 5 / 7;
  border-radius: 9px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1px solid rgba(60, 40, 15, .5);
  box-shadow: inset 0 0 0 2.5px rgba(255,250,235,.75), inset 0 0 0 3.5px rgba(80,55,20,.25), 0 3px 6px rgba(40,25,5,.25);
  transition: transform .2s, opacity .2s;
  overflow: hidden;
}
.rcard::before { content: ""; position: absolute; inset: 6px 6px 18px; border-radius: 5px; background: rgba(255,255,255,.35); box-shadow: inset 0 1px 3px rgba(0,0,0,.15); }
.rcard .ri { position: relative; width: 62%; height: auto; filter: drop-shadow(0 2px 1px rgba(0,0,0,.2)); margin-top: -10px; }
.rcard .rc-art { position: absolute; left: 4px; right: 4px; top: 4px; bottom: 17px; width: calc(100% - 8px); height: calc(100% - 21px); border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.rcard::before { z-index: 0; }
.rcard:hover { transform: translateY(-3px) rotate(-1deg); }
.r-wood { background: linear-gradient(170deg, #9cc98a, #4c8a4a); }
.r-brick { background: linear-gradient(170deg, #f0b28f, #c0603a); }
.r-wool { background: linear-gradient(170deg, #e2f0bb, #9cc46a); }
.r-grain { background: linear-gradient(170deg, #fbe7a6, #e0ad3e); }
.r-ore { background: linear-gradient(170deg, #d9dde2, #8f98a3); }
.rc-name { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font: 700 10px var(--sans); color: #2b1d0e; text-shadow: 0 1px 0 rgba(255,255,255,.5); letter-spacing: .02em; }
.rc-count {
  position: absolute; top: 3px; right: 3px;
  min-width: 21px; height: 21px; padding: 0 5px;
  display: grid; place-items: center;
  border-radius: 999px;
  font: 700 13px var(--serif);
  background: linear-gradient(180deg, #4a2c14, #2c1909); color: #fbecd0;
  border: 1.5px solid #f2d58a;
  box-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.rcard.zero { opacity: .42; filter: saturate(.35); }
.rcard.zero .rc-count { background: #8b7a62; border-color: #d9c7a3; }

/* Bauen */
.build-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.bbtn {
  appearance: none; font: inherit; color: inherit; text-align: left;
  display: grid; grid-template-columns: 34px 1fr; grid-template-areas: "pic name" "pic cost" "pic left";
  align-items: center; column-gap: 7px;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid rgba(140, 100, 50, .5);
  background: linear-gradient(180deg, #fffaf0, #f0e1bf);
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 rgba(90,60,20,.3);
  cursor: pointer;
  transition: transform .12s, box-shadow .15s, opacity .2s, background .2s;
}
.bbtn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: inset 0 1px 0 #fff, 0 3px 0 rgba(90,60,20,.3), 0 6px 12px rgba(60,40,10,.15); }
.bbtn:disabled { opacity: .45; cursor: not-allowed; filter: saturate(.3); }
.bbtn.on { background: linear-gradient(180deg, #fff2c4, #f1cf73); border-color: var(--brass-3); box-shadow: 0 0 0 2px rgba(244,199,79,.7), inset 0 1px 0 #fff; }
.b-pic { grid-area: pic; display: grid; place-items: center; }
.b-name { grid-area: name; font: 700 14px var(--serif); }
.b-cost { grid-area: cost; display: flex; gap: 1px; flex-wrap: wrap; }
.b-left { grid-area: left; font-size: 11px; }

/* Entwicklungskarten */
.dev-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-top: 1px dashed rgba(140,100,50,.3); }
.dev-row:first-child { border-top: 0; padding-top: 0; }
.dev-art svg { display: block; filter: drop-shadow(0 2px 2px rgba(0,0,0,.25)); }
.dev-info { flex: 1; min-width: 0; font-size: 13.5px; }
.dev-info b { font-family: var(--serif); }
.dev-info .count { font-weight: 700; color: var(--ink-soft); }

/* Handel */
.tabs { display: flex; gap: 4px; margin: -2px 0 10px; padding: 3px; border-radius: 10px; background: rgba(120,85,35,.12); box-shadow: inset 0 1px 3px rgba(60,35,10,.2); }
.tab {
  flex: 1; appearance: none; border: 0; background: transparent; cursor: pointer;
  font: 700 13.5px var(--serif); color: var(--ink-soft);
  padding: 7px 8px; border-radius: 8px; position: relative;
  transition: background .2s, color .2s;
}
.tab.active { background: linear-gradient(180deg, #fffaf0, #f3e4c4); color: #5b3416; box-shadow: 0 1px 3px rgba(60,35,10,.25); }
.badge-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #fff6dc; animation: blink 1s infinite; vertical-align: 1px; }
#tradePanel.flash { animation: flash 1.2s ease 2; }
@keyframes flash { 50% { box-shadow: 0 0 0 3px var(--gold), 0 0 24px rgba(244,199,79,.7); } }
.bank-row { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 9px; }
.bank-row label { flex: 1; display: grid; gap: 4px; font: 600 11.5px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); min-width: 0; }
.bank-row select { width: 100%; font-size: 13px; padding: 8px 30px 8px 9px; text-transform: none; letter-spacing: 0; }
.arrow { font: 700 20px var(--serif); color: var(--brass-3); padding-bottom: 7px; }
#btnBank { width: 100%; }
#bankHint { margin-top: 7px; font-size: 12px; }
.trade-builder { display: grid; gap: 4px; }
.tb-head, .tb-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.tb-head { font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.tb-head span:nth-child(2), .tb-head span:nth-child(3) { width: 94px; text-align: center; }
.tb-res { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.ctr { display: inline-flex; align-items: center; gap: 2px; width: 94px; justify-content: center; background: rgba(255,255,255,.5); border: 1px solid rgba(140,100,50,.3); border-radius: 9px; padding: 2px; }
.cbtn {
  appearance: none; width: 28px; height: 28px; border-radius: 7px;
  border: 1px solid rgba(110,80,40,.5);
  background: linear-gradient(180deg, #fffaf0, #ead7ad);
  font: 700 16px var(--sans); color: var(--ink); cursor: pointer; line-height: 1;
  transition: transform .1s;
}
.cbtn:active:not(:disabled) { transform: scale(.92); }
.cbtn:disabled { opacity: .35; cursor: not-allowed; }
.cval { min-width: 26px; text-align: center; font: 700 16px var(--serif); color: #b0a083; }
.cval.nz { color: #5b3416; }
.tb-foot { display: flex; gap: 8px; margin-top: 6px; }
.offer { display: grid; gap: 7px; }
.offer-panel { padding: 8px; animation: rise .35s ease, flash 1.2s ease .3s 2; }
.offer-panel .offer.incoming { border: 0; }
.offer.incoming { padding: 10px; border-radius: 10px; background: #fffbef; border: 1px solid var(--brass-2); box-shadow: inset 4px 0 0 var(--pc); }
.offer-title { display: flex; align-items: center; gap: 6px; font-family: var(--serif); }
.offer-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.offer-line .lbl { font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); min-width: 88px; }
.offer-actions { display: flex; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 7px 2px 8px; border-radius: 999px; background: rgba(255,255,255,.75); border: 1px solid rgba(140,100,50,.35); font-weight: 700; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--pc, #999); border: 1.5px solid #1d140c; flex: none; }
.responses { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.responses li { display: flex; align-items: center; gap: 7px; padding: 5px 8px; border-radius: 8px; background: rgba(255,255,255,.55); }
.resp { margin-left: auto; font-size: 12px; font-weight: 700; }
.resp.accept { color: var(--ok); }
.resp.decline { color: var(--danger); }
.resp.wait { color: var(--ink-soft); font-style: italic; font-weight: 500; }

/* Chronik */
#logPanel { display: flex; flex-direction: column; }
.log {
  height: 200px; overflow-y: auto;
  background: rgba(255, 252, 242, .6);
  border: 1px solid rgba(140,100,50,.3);
  border-radius: 9px;
  padding: 6px;
  box-shadow: inset 0 2px 5px rgba(80,55,20,.12);
  font-size: 12.5px;
  scrollbar-width: thin;
}
.le { display: grid; grid-template-columns: 18px 1fr auto; gap: 5px; padding: 3px 4px; border-radius: 5px; border-left: 3px solid var(--pc, transparent); }
.le:last-child { animation: rise .3s ease; }
.le + .le { margin-top: 1px; }
.le-ico { text-align: center; font-size: 11px; opacity: .8; }
.le-time { color: #a08c6b; font-size: 10.5px; }
.le.k-chat { background: rgba(61, 110, 138, .1); }
.le.k-roll .le-text { font-weight: 600; }
.chat-form { display: flex; gap: 6px; margin-top: 8px; }
.chat-form input { flex: 1; padding: 8px 10px; font-size: 13.5px; }

/* ------------------------------------------------ Brett-Elemente */
#board .tok-num { font: 700 17px var(--serif); fill: #2f2112; }
#board .token .pips { fill: #2f2112; }
#board .token.red .tok-num, #board .token.red .pips { fill: #b3261e; }
#board .token .tok-ring { stroke: transparent; stroke-width: 4; transition: stroke .3s; }
#board .token.hot .tok-ring { stroke: var(--gold); animation: hotRing 1.3s ease-in-out infinite; }
#board .token.robbed { opacity: .55; }
@keyframes hotRing { 50% { stroke-opacity: .25; } }
#board .port-ratio { font: 700 12px var(--serif); fill: #4a2f17; }
#board .port-ratio.small { font-size: 9.5px; }

#board .v-spot { cursor: pointer; }
#board .v-spot .hit { fill: transparent; }
#board .v-spot .ring { fill: rgba(255, 238, 170, .35); stroke: #fff4c9; stroke-width: 2.5; transform-box: fill-box; transform-origin: center; animation: spotPulse 1.3s ease-in-out infinite; filter: drop-shadow(0 0 4px rgba(244,199,79,.9)); }
#board .v-spot .dot { fill: #fff8dc; stroke: #8a6420; stroke-width: 1.2; }
#board .v-spot.city .ring { stroke: #ffd36b; fill: rgba(255, 200, 80, .3); }
#board .v-spot:hover .ring { fill: rgba(255, 238, 170, .75); animation-duration: .6s; }
@keyframes spotPulse { 0%, 100% { transform: scale(.85); opacity: .85; } 50% { transform: scale(1.25); opacity: 1; } }
#board .edge-spot { cursor: pointer; }
#board .edge-spot .hit { stroke: transparent; stroke-width: 22; stroke-linecap: round; }
#board .edge-spot .glow { stroke: #fff1b0; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 6 5; filter: drop-shadow(0 0 4px rgba(244,199,79,1)); animation: edgeGlow 1.1s linear infinite; }
#board .edge-spot:hover .glow { stroke: #ffd24a; stroke-width: 9; stroke-dasharray: none; }
@keyframes edgeGlow { to { stroke-dashoffset: -22; } }
#board .hex-spot { cursor: pointer; }
#board .hex-spot polygon { fill: rgba(255, 230, 140, .14); stroke: #ffe58a; stroke-width: 3.5; stroke-dasharray: 9 6; stroke-linejoin: round; animation: edgeGlow 1.4s linear infinite; filter: drop-shadow(0 0 5px rgba(244,199,79,.9)); }
#board .hex-spot:hover polygon { fill: rgba(255, 220, 110, .38); stroke-dasharray: none; }
#board .building.fresh .anim, #board .road.fresh { animation: place .45s cubic-bezier(.2,1.6,.4,1) both; transform-box: fill-box; transform-origin: center bottom; }
@keyframes place { from { opacity: 0; transform: translateY(-14px) scale(1.3); } }
#board .road, #board .building, #board .robber { pointer-events: none; }
#board .robber { transition: transform .5s cubic-bezier(.3,1.3,.5,1); }

.build-hint {
  position: absolute; z-index: 3; top: 26px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px 8px 16px;
  border-radius: 999px;
  background: rgba(30, 18, 6, .82);
  color: #fbecd0; font: 600 14px var(--serif);
  box-shadow: 0 6px 18px rgba(0,0,0,.4);
  backdrop-filter: blur(3px);
  animation: rise .25s ease;
  white-space: nowrap;
}
#floaters { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
.floater {
  position: absolute; top: 46%;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px 7px 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffaf0, #f0dfb6);
  border: 1.5px solid var(--brass-2);
  font: 700 17px var(--serif); color: #3f6b1e;
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
  animation: floatUp 2.5s cubic-bezier(.2,.8,.3,1) forwards;
}
.floater.seven { color: var(--danger); font-size: 22px; }
@keyframes floatUp { 0% { opacity: 0; transform: translate(-50%, 30px) scale(.6); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.08); } 25% { transform: translate(-50%, -6px) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -110px); } }

/* ------------------------------------------------ Modal / Overlay */
.modal, .overlay {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center;
  padding: 16px;
  background: radial-gradient(circle at 50% 40%, rgba(10, 30, 32, .45), rgba(5, 15, 16, .75));
  backdrop-filter: blur(2px);
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.modal-card { width: min(440px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px; animation: rise .3s cubic-bezier(.2,.8,.2,1); }
.modal-card h2 { font-size: 24px; margin-bottom: 6px; color: #5b3416; }
.modal-card p { margin: 0 0 12px; }
.picker { display: grid; gap: 6px; }
.pick-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 5px 8px; border-radius: 9px; background: rgba(255,255,255,.5); }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.sel-info { margin-right: auto; font: 700 15px var(--serif); color: var(--ink-soft); }
.steal-list { display: grid; gap: 8px; }
.steal-btn { justify-content: flex-start; padding: 12px 14px; font-size: 16px; box-shadow: inset 5px 0 0 var(--pc), inset 0 1px 0 rgba(255,255,255,.7), 0 2px 0 rgba(70,45,15,.35); }
.steal-btn .muted { margin-left: auto; }
.mono-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }
.btn.mono { flex-direction: column; padding: 10px 4px; font-size: 12px; }
.winner-card { width: min(480px, 100%); padding: 28px 26px 22px; text-align: center; animation: rise .5s cubic-bezier(.2,.8,.2,1); }
.winner-card h2 { font-size: 34px; color: #5b3416; margin: 6px 0 4px; }
.crown { display: grid; place-items: center; height: 78px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.standings { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; text-align: left; counter-reset: rank; }
.standings li { counter-increment: rank; display: grid; grid-template-columns: 22px 14px 1fr auto auto; gap: 8px; align-items: center; padding: 9px 12px; border-radius: 10px; background: rgba(255,255,255,.55); border: 1px solid rgba(140,100,50,.25); }
.standings li::before { content: counter(rank) "."; font: 700 15px var(--serif); color: var(--ink-soft); }
.standings li span:first-of-type { font: 700 16px var(--serif); }
.standings li b { font: 700 18px var(--serif); color: #5b3416; }
.standings li.win { background: linear-gradient(180deg, #fff3c4, #f6d77a); border-color: var(--brass-2); }

/* Regeln */
.rules {
  width: min(720px, calc(100vw - 24px)); max-height: calc(100vh - 40px);
  padding: 0; border: 1px solid var(--parch-edge); border-radius: 16px;
  background: linear-gradient(180deg, var(--parch), var(--parch-2));
  color: var(--ink);
  box-shadow: var(--shadow);
}
.rules::backdrop { background: rgba(5, 15, 16, .65); backdrop-filter: blur(2px); }
.rules-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; background: linear-gradient(180deg, #6b4425, #4a2c14); color: #fbecd0; z-index: 1; }
.rules-head h2 { color: #fbecd0; font-size: 22px; }
.rules-head .btn.ghost { --bd: rgba(255,225,180,.45); --tx: #fbecd0; }
.rules-body { padding: 8px 22px 22px; line-height: 1.55; font-size: 14.5px; }
.rules-body h3 { margin: 16px 0 4px; font-size: 17px; color: #5b3416; }
.rules-body p, .rules-body ul, .rules-body ol { margin: 4px 0; }
.rules-body li { margin: 3px 0; }
.cost-card { float: right; width: 230px; margin: 14px 0 8px 18px; padding: 12px 14px; border-radius: 12px; background: #fffaf0; border: 1px solid var(--parch-edge); box-shadow: 0 4px 10px rgba(60,40,10,.15); }
.cost-card h3 { margin: 0 0 8px; }
.cost-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 0; border-top: 1px dashed rgba(140,100,50,.3); font-weight: 600; }
.cost-row:first-of-type { border-top: 0; }
.cost-row span:last-child { display: flex; gap: 1px; }

/* Toasts */
#toasts { position: fixed; z-index: 60; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; width: min(92vw, 460px); }
.toast {
  padding: 10px 18px; border-radius: 12px;
  font: 600 14px var(--sans);
  background: rgba(36, 22, 8, .92); color: #fbecd0;
  border: 1px solid rgba(242, 213, 138, .45);
  box-shadow: 0 8px 22px rgba(0,0,0,.4);
  animation: toastIn .3s cubic-bezier(.2,1.3,.4,1);
  transition: opacity .4s, transform .4s;
  text-align: center;
}
.toast.error { background: linear-gradient(180deg, #a83a2c, #7d2318); border-color: #f0a090; color: #fff; }
.toast.out { opacity: 0; transform: translateY(10px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.95); } }

.ri { vertical-align: middle; flex: none; }

/* ------------------------------------------------ Responsiv */
@media (max-width: 1180px) {
  #screen-game { grid-template-columns: minmax(0, 1fr) 340px; }
  .tb-head span:nth-child(2), .tb-head span:nth-child(3), .ctr { width: 86px; }
}
@media (max-width: 900px) {
  :root { --topbar-h: auto; }
  #topbar { flex-wrap: wrap; height: auto; padding: 8px 12px; gap: 6px 10px; }
  .brand { font-size: 18px; }
  .brand svg { width: 26px; height: 26px; }
  .status { order: 3; flex-basis: 100%; }
  .status > span { font-size: 14px; padding: 6px 14px; white-space: normal; text-align: center; }
  .top-actions { margin-left: auto; }
  .conn .conn-text { display: none; }
  .center-screen { min-height: 70vh; }
  #backdrop { inset: 0; height: 100%; }
  #screen-game { display: flex; flex-direction: column; height: auto; }
  #boardWrap { height: min(92vw, 68vh); min-height: 300px; padding: 10px; }
  #boardWrap::before, #boardWrap::after { inset: 4px; border-radius: 16px; }
  #boardStage { border-radius: 10px; }
  #side { overflow: visible; padding: 4px 10px 30px; }
  #turnPanel { order: -3; position: sticky; top: 0; z-index: 5; }
  #offerPanel { order: -2; }
  #handPanel { order: -2; }
  #buildPanel { order: -1; }
  .build-grid { grid-template-columns: repeat(4, 1fr); }
  .bbtn { grid-template-columns: 1fr; grid-template-areas: "pic" "name" "cost" "left"; justify-items: center; text-align: center; padding: 7px 4px; row-gap: 2px; }
  .b-cost { justify-content: center; }
  .build-hint { top: 16px; font-size: 13px; }
  .cost-card { float: none; width: auto; margin: 12px 0; }
}
@media (max-width: 480px) {
  .join-card, .lobby-card { padding: 22px 18px; }
  .join-card h1 { font-size: 38px; }
  .join-card h1::before, .join-card h1::after { margin: 0 6px; }
  .die { width: 38px; height: 38px; }
  .dice-sum { font-size: 24px; min-width: 28px; }
  .turn-buttons { min-width: 112px; }
  .build-grid { gap: 5px; }
  .b-name { font-size: 12.5px; }
  .b-left { display: none; }
  .tb-head span:nth-child(2), .tb-head span:nth-child(3), .ctr { width: 82px; }
  .cbtn { width: 26px; height: 26px; }
  .offer-line .lbl { min-width: 0; width: 100%; }
  .mono-grid { grid-template-columns: repeat(3, 1fr); }
  .lobby-host .btn { width: 100%; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =====================================================================
   Erweiterungen: Module, Seefahrt, Großes Reich, Handel, Chat,
   Bestenliste, Einführung und Animationen
   ===================================================================== */

/* ------------------------------------------------ Kopfzeile */
.tb-ico { display: none; font-size: 15px; line-height: 1; }
.fx-btn { font-size: 15px; padding: 5px 8px; }
.fx-btn.off { opacity: .5; filter: grayscale(1); }
.hint.tip { font-style: italic; font-size: 12.5px; opacity: .85; }
.count-badge {
  display: inline-grid; place-items: center;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px;
  font: 700 11.5px var(--sans); color: #fff;
  background: linear-gradient(180deg, #d9583a, #a3332a);
  border: 1.5px solid #fff6dc;
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
}

/* ------------------------------------------------ Lobby */
.lobby-layout { display: grid; grid-template-columns: minmax(0, 660px) minmax(0, 420px); gap: 18px; align-items: start; width: min(1110px, 100%); }
.lobby-layout:has(.hof-card.hidden) { grid-template-columns: minmax(0, 660px); justify-content: center; }
.lobby-card { width: 100%; }
.lobby-sub { font-size: 17px; margin: 16px 0 8px; color: #5b3416; }
.lobby-players.many { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.lobby-players.many li { padding: 6px 8px; gap: 7px; min-width: 0; }
.lobby-players.many .lp-name { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lobby-players.many .lp-color { display: none; }
.lobby-players.many .btn { margin-left: auto; padding: 3px 7px; }
.lobby-players.many .piece-ico { width: 20px; height: 20px; }
.lobby-players.many .slot { width: 20px; height: 20px; }
.lobby-players.many li.empty { opacity: .6; }
.lobby-warn { margin: -6px 0 6px; padding: 8px 12px; border-radius: 10px; background: #fbe1d9; color: var(--danger); border: 1px solid #d69585; font-weight: 600; font-size: 13px; }
.lobby-warn.soft { background: #eef3dc; color: #46601e; border-color: #b4c58a; font-weight: 500; }
.opt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 14px; }
.opt-card {
  appearance: none; font: inherit; color: inherit; text-align: left;
  position: relative;
  display: grid; grid-template-columns: 46px 1fr; gap: 10px; align-items: start;
  padding: 11px 34px 11px 11px;
  border-radius: 12px;
  border: 1px solid rgba(140, 100, 50, .45);
  background: linear-gradient(180deg, #fffaf0, #f2e4c2);
  box-shadow: inset 0 1px 0 #fff, 0 2px 0 rgba(90,60,20,.25);
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, opacity .2s, filter .2s;
}
.opt-card:hover:not(:disabled) { transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, 0 3px 0 rgba(90,60,20,.25), 0 8px 16px rgba(60,40,10,.15); }
.opt-card:focus-visible { outline: 3px solid rgba(244,199,79,.8); outline-offset: 2px; }
.opt-card.on { background: linear-gradient(180deg, #fff6d2, #f3d98a); border-color: var(--brass-3); box-shadow: 0 0 0 2px rgba(244,199,79,.65), inset 0 1px 0 #fff, 0 4px 12px rgba(120,80,10,.2); }
.opt-card:not(.on) .opt-ico { filter: saturate(.55); opacity: .85; }
.opt-card.ro { cursor: default; }
.opt-card.ro:not(.on) { opacity: .6; }
.opt-card.blocked { opacity: .5; cursor: not-allowed; filter: grayscale(.6); }
.opt-card:disabled { color: inherit; }
.opt-ico svg { width: 46px; height: 46px; display: block; filter: drop-shadow(0 2px 2px rgba(40,25,5,.25)); }
.opt-body { display: grid; gap: 3px; min-width: 0; }
.opt-title { font: 700 14.5px var(--serif); color: #4a2c12; }
.opt-text { font-size: 12.5px; line-height: 1.38; color: var(--ink-soft); }
.opt-block { font-size: 11.5px; font-weight: 700; color: var(--danger); }
.opt-seal {
  position: absolute; top: 9px; right: 9px;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 12px var(--sans); color: #fff;
  border: 1.5px solid rgba(140,100,50,.55); background: rgba(255,255,255,.6);
  transition: transform .25s cubic-bezier(.2,1.6,.4,1), background .2s;
}
.opt-card.on .opt-seal { background: linear-gradient(180deg, #5f9a4a, #2f6233); border-color: #1f3e1f; transform: scale(1.1); }

/* ------------------------------------------------ Bestenliste */
.hof-card { padding: 22px 20px 18px; animation: rise .55s cubic-bezier(.2,.8,.2,1) .05s both; }
.hof-card h2, .stats-card h2 { font-size: 24px; color: #5b3416; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.hof-cup { filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.hof-card > .btn { margin-top: 10px; }
.hof { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: 13px; }
.hof th { font: 700 10.5px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); text-align: right; padding: 0 6px 2px; white-space: nowrap; }
.hof th.nm, .hof td.nm { text-align: left; }
.hof th.rk, .hof td.rk { text-align: center; width: 34px; }
.hof td { padding: 6px; text-align: right; background: rgba(255,252,242,.75); border-top: 1px solid rgba(160,120,60,.25); border-bottom: 1px solid rgba(160,120,60,.25); white-space: nowrap; }
.hof td:first-child { border-left: 1px solid rgba(160,120,60,.25); border-radius: 9px 0 0 9px; }
.hof td:last-child { border-right: 1px solid rgba(160,120,60,.25); border-radius: 0 9px 9px 0; }
.hof td.nm { font: 700 14px var(--serif); max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.hof td.nm span:first-child { overflow: hidden; text-overflow: ellipsis; }
.hof td b { font: 700 15px var(--serif); color: #5b3416; }
.hof tr:nth-child(1) td { background: linear-gradient(180deg, #fff7d6, #f8e4a0); }
.hof tr:nth-child(2) td { background: linear-gradient(180deg, #fbfbfb, #e8ebee); }
.hof tr:nth-child(3) td { background: linear-gradient(180deg, #fdf0e3, #f1d6bb); }
.hof tr.here td { box-shadow: inset 0 0 0 0 transparent; border-color: var(--brass-2); }
.hof tr.here td:first-child { box-shadow: inset 4px 0 0 #3d6e8a; }
.hof tr.here td.nm::after { content: "am Tisch"; margin-left: 6px; font: 700 9.5px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: #3d6e8a; }
.medal { display: block; margin: -4px auto -2px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.rk-n { font: 700 14px var(--serif); color: var(--ink-soft); }
.hof-empty { text-align: center; padding: 18px 8px 10px; color: var(--ink-soft); font: italic 15px var(--serif); }
.hof-empty p { margin: 6px 0 0; }
.plus1 { display: inline-block; margin-left: 7px; padding: 1px 7px; border-radius: 999px; font: 700 10.5px var(--sans); color: #fff; background: linear-gradient(180deg, #5f9a4a, #2f6233); vertical-align: 1px; }
.hof tr.winner-row td { border-color: var(--brass-2); background: linear-gradient(180deg, #fff3c4, #f6d77a) !important; }
.hof tr.rise { animation: hofRise 1.4s cubic-bezier(.3,1.2,.4,1) .9s both; }
.hof tr.rise .plus1 { animation: pop .5s cubic-bezier(.2,1.6,.4,1) 2.1s both; }
@keyframes hofRise { from { transform: translateY(calc(var(--rise, 1) * 38px)); opacity: .4; } }
.stats-card { width: min(760px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 18px 20px; animation: rise .3s cubic-bezier(.2,.8,.2,1); }
.trade-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.trade-head h2 { font-size: 24px; color: #5b3416; }
.w-hof { margin-top: 16px; text-align: left; }
.w-hof h3 { font-size: 16px; color: #5b3416; margin-bottom: 4px; }

/* ------------------------------------------------ Brett: Zoom */
.zoom-bar { position: absolute; z-index: 3; right: 26px; bottom: 26px; display: flex; gap: 5px; padding: 5px; border-radius: 12px; background: rgba(30,18,6,.55); backdrop-filter: blur(3px); box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.zbtn { appearance: none; border: 1px solid rgba(255,225,180,.45); background: linear-gradient(180deg, #6b4425, #4a2c14); color: #fbecd0; font: 700 17px var(--sans); width: 34px; height: 32px; border-radius: 8px; cursor: pointer; line-height: 1; }
.zbtn.wide { width: auto; padding: 0 10px; font-size: 12.5px; }
.zbtn:hover { filter: brightness(1.15); }
.zoom-bar:not(.zoomed) #zoomReset { opacity: .55; }
#board { cursor: default; }
#boardStage.panning { cursor: grabbing; }

/* ------------------------------------------------ Brett: Meer, Gold, Wolken */
#boardSea .sea-waves { animation: waveDrift 26s linear infinite; }
@keyframes waveDrift { to { transform: translate(90px, 46px); } }
#boardSea .seahex .wv { animation: wvBob 5.5s ease-in-out infinite; }
#boardSea .seahex .wv.b { animation-delay: -2.7s; }
@keyframes wvBob { 50% { transform: translateX(4px); opacity: .55; } }
#board .ta-shimmer { animation: shimmer 3.6s ease-in-out infinite; }
@keyframes shimmer { 0% { transform: rotate(20deg) translateX(0); } 60%, 100% { transform: rotate(20deg) translateX(220px); } }
#board .ta-spark .sp { stroke: #fffbe0; stroke-width: 1.6; stroke-linecap: round; opacity: 0; transform-box: fill-box; transform-origin: center; animation: sparkle 2.8s ease-in-out infinite; }
#board .ta-spark .s2 { animation-delay: .7s; } #board .ta-spark .s3 { animation-delay: 1.4s; } #board .ta-spark .s4 { animation-delay: 2.1s; }
@keyframes sparkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 15% { opacity: 1; transform: scale(1.1) rotate(45deg); } 30% { opacity: 0; transform: scale(.4) rotate(90deg); } }
#board .token.gold .tok-num { fill: #8d6420; }
#boardSea .clouds .cloud { animation: cloudDrift 140s linear infinite; }
#boardSea .clouds .c2 { animation-duration: 190s; animation-delay: -80s; }
@keyframes cloudDrift { from { transform: translateX(0); } to { transform: translateX(var(--dx, 1200px)); } }

/* ------------------------------------------------ Brett: Schiffe, Pirat, Figuren */
#board .ship, #board .pirate { pointer-events: none; }
#board .ship .bob, #board .pirate .bob { animation: bob2 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes bob2 { 50% { transform: translateY(-1.2px) rotate(1.5deg); } }
#board .ship.selected .anim { filter: drop-shadow(0 0 5px #fff1b0) drop-shadow(0 0 2px #ffd24a); }
#board .ship.fresh .anim { animation: sailIn .9s cubic-bezier(.2,.8,.3,1) both; }
@keyframes sailIn { from { transform: translateX(-34px); opacity: 0; } 60% { opacity: 1; } }
#board .edge-spot.ship-pick .hit { fill: transparent; stroke: none; }
#board .edge-spot.ship-pick .ring { fill: rgba(190, 235, 255, .18); stroke: #d8f4ff; stroke-width: 2.5; stroke-dasharray: 6 4; animation: edgeGlow 1.2s linear infinite; filter: drop-shadow(0 0 4px rgba(150,220,255,.9)); }
#board .edge-spot.ship-pick:hover .ring { fill: rgba(190,235,255,.4); stroke-dasharray: none; }
#board .edge-spot.k-ship .glow, #board .edge-spot.k-shipTo .glow { stroke: #d8f4ff; filter: drop-shadow(0 0 4px rgba(120,210,255,1)); }
#board .edge-spot.k-ship:hover .glow, #board .edge-spot.k-shipTo:hover .glow { stroke: #8fdcff; }
#board .edge-spot .mini-boat path { fill: rgba(216,244,255,.85); stroke: #2a6f8f; stroke-width: 2; pointer-events: none; }
#board .hex-spot.sea polygon { stroke: #bfeaff; fill: rgba(150, 220, 255, .12); filter: drop-shadow(0 0 5px rgba(120,210,255,.9)); }
.hint-k { display: inline-block; width: 22px; height: 6px; border-radius: 3px; vertical-align: middle; }
.hint-k.road { background: #fff1b0; box-shadow: 0 0 6px #f4c74f; }
.hint-k.ship { background: #d8f4ff; box-shadow: 0 0 6px #6fd0ff; }

/* Bau-Animationen */
#board .road.fresh { animation: none; }
#board .road.fresh line { stroke-dasharray: 1 1; stroke-dashoffset: 1; animation: drawRoad .6s cubic-bezier(.5,0,.3,1) forwards; }
@keyframes drawRoad { to { stroke-dashoffset: 0; } }
#board .building.fresh .anim { animation: dropIn .55s cubic-bezier(.3,1.5,.5,1) both; transform-box: fill-box; transform-origin: center bottom; }
@keyframes dropIn { 0% { opacity: 0; transform: translateY(-34px) scale(1.15); } 55% { opacity: 1; transform: translateY(0) scale(1.08, .88); } 75% { transform: scale(.96, 1.05); } }
#board .puff circle { fill: #f3e6c4; opacity: 0; transform-box: fill-box; transform-origin: center; animation: puff .7s ease-out .3s both; }
#board .puff circle:nth-child(2n) { animation-delay: .34s; }
@keyframes puff { 0% { opacity: .9; transform: scale(.4) translate(0, 0); } 100% { opacity: 0; transform: scale(2) translate(0, -4px); } }
#board .building.upgrade .anim { animation: morphIn .7s cubic-bezier(.3,1.4,.5,1) .15s both; transform-box: fill-box; transform-origin: center bottom; }
#board .building.upgrade .morph-out { animation: morphOut .45s ease-in both; transform-box: fill-box; transform-origin: center bottom; }
@keyframes morphIn { from { opacity: 0; transform: scale(.55, .3); } }
@keyframes morphOut { to { opacity: 0; transform: scale(1.3, 1.6); } }
#board .jumper.jump { animation: hexJump .85s cubic-bezier(.35,0,.3,1) both; }
@keyframes hexJump {
  0% { transform: translate(var(--fx), var(--fy)); }
  50% { transform: translate(var(--hx), var(--hy)) scale(1.12); }
  85% { transform: translate(0, 0) scale(1.06, .9); }
  100% { transform: translate(0, 0); }
}
#board .tok-in { transform-box: fill-box; transform-origin: center; }
#board .tok-in.bump { animation: tokBump .8s cubic-bezier(.3,1.6,.5,1); }
@keyframes tokBump { 30% { transform: scale(1.35); } }
#board .token.hot .tok-ring { filter: drop-shadow(0 0 6px rgba(244,199,79,.9)); }

/* ------------------------------------------------ Würfel & Ereigniskarte */
.die.tumble { animation: tumble .28s linear infinite; }
.die.tumble.b { animation-direction: reverse; animation-duration: .24s; }
@keyframes tumble { 0% { transform: perspective(200px) rotateX(0) rotateY(0) translateY(-6px); } 50% { transform: perspective(200px) rotateX(180deg) rotateY(90deg) translateY(2px); } 100% { transform: perspective(200px) rotateX(360deg) rotateY(180deg) translateY(-6px); } }
.die.land { animation: landBounce .55s cubic-bezier(.3,1.6,.5,1); }
.die.land.b { animation-delay: .06s; }
@keyframes landBounce { 0% { transform: translateY(-18px) rotate(-12deg) scale(1.05); } 50% { transform: translateY(0) scale(1.08, .9); } 75% { transform: translateY(-4px); } }
.dice.rolling .die { animation: none; }
.dice.events { gap: 10px; perspective: 600px; }
.ev-deck { position: relative; width: 40px; height: 56px; flex: none; }
.ev-deck i { position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(160deg, #7a4f93, #4a2c5c); border: 1.5px solid #2c1838; box-shadow: 0 2px 3px rgba(0,0,0,.3); }
.ev-deck i:nth-child(1) { transform: translate(4px, 4px); }
.ev-deck i:nth-child(2) { transform: translate(2px, 2px); }
.ev-deck i:nth-child(3)::after { content: ""; position: absolute; inset: 5px; border-radius: 4px; border: 1px solid rgba(230,194,90,.6); background: radial-gradient(circle, rgba(230,194,90,.5) 0 18%, transparent 20%); }
.ev-left { position: absolute; right: -8px; bottom: -6px; z-index: 1; min-width: 22px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 999px; font: 700 11.5px var(--serif); color: #fbecd0; background: linear-gradient(180deg, #4a2c14, #2c1909); border: 1.5px solid #f2d58a; }
.ev-card { width: 62px; height: 84px; flex: none; }
.ev-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; }
.dice.flip .ev-inner { animation: cardFlip .8s cubic-bezier(.3,1.2,.5,1) both; }
@keyframes cardFlip { 0% { transform: translate(-50px, 0) rotateY(180deg) scale(.8); } 45% { transform: translate(-10px, -10px) rotateY(100deg) scale(1.05); } 100% { transform: none; } }
.ev-back, .ev-face { position: absolute; inset: 0; border-radius: 8px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ev-back { background: linear-gradient(160deg, #7a4f93, #4a2c5c); border: 1.5px solid #2c1838; transform: rotateY(180deg); }
.ev-face { background: linear-gradient(180deg, #fffaf0, #f0e1bf); border: 1.5px solid #7a5a2c; box-shadow: inset 0 0 0 3px rgba(255,250,235,.8), inset 0 0 0 4px rgba(122,90,44,.3), 0 4px 8px rgba(40,25,5,.3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.ev-label { position: absolute; top: 4px; left: 0; right: 0; text-align: center; font: 700 7.5px var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.ev-num { font: 700 28px var(--serif); color: #2f2112; line-height: 1; margin-top: 6px; }
.ev-num.red { color: #b3261e; }
.ev-face.seven .ev-num { color: var(--danger); }
.ev-pips { display: flex; gap: 2px; }
.ev-pips i { width: 3.5px; height: 3.5px; border-radius: 50%; background: #2f2112; }
.ev-mini { position: absolute; bottom: 3px; right: 3px; font-size: 13px; line-height: 1; }
.ev-face.has-ev { box-shadow: inset 0 0 0 3px rgba(255,250,235,.8), inset 0 0 0 4px rgba(122,90,44,.3), 0 0 0 2px var(--gold), 0 4px 10px rgba(244,199,79,.5); }
.ev-card.stale { opacity: .55; }
.ev-face.empty .ev-num { color: #c9b48a; }
.event-banner { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: linear-gradient(180deg, #fff6d2, #f3e2a8); border: 1px solid var(--brass-2); box-shadow: inset 0 1px 0 #fff; animation: rise .4s ease; }
.event-banner b { font-family: var(--serif); font-size: 14.5px; color: #5b3416; }
.ev-art { flex: none; display: block; filter: drop-shadow(0 1px 1px rgba(0,0,0,.2)); }

/* ------------------------------------------------ Handeln-Knopf */
.trade-btn {
  width: 100%; margin-top: 10px; padding: 11px 14px; font-size: 16px;
  --b1: #f6e6b8; --b2: #e2c376; --bd: #8d6420;
  position: relative;
}
.trade-btn span:not(.count-badge) { font-family: var(--serif); }
.trade-btn .count-badge { position: absolute; top: -7px; right: -6px; }
.trade-btn.attention:not(:disabled) { animation: btnPulse 1.6s ease-in-out infinite; }

/* ------------------------------------------------ Spielerliste */
#players.compact { gap: 3px; max-height: 300px; overflow-y: auto; padding: 2px 4px 2px 2px; scrollbar-width: thin; }
.prow {
  position: relative;
  display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto auto 30px; gap: 7px; align-items: center;
  padding: 5px 8px 5px 10px;
  border-radius: 8px;
  background: rgba(255,252,242,.75);
  border: 1px solid rgba(160,120,60,.25);
  font-size: 12.5px;
  transition: background .25s, box-shadow .25s, transform .25s;
}
.prow::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 8px 0 0 8px; background: var(--pc); }
.prow.active { background: #fffbef; border-color: var(--brass-2); box-shadow: 0 0 0 2px rgba(244,199,79,.65); }
.prow.off { opacity: .5; filter: grayscale(.7); }
.pr-dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid; }
.pr-name { font: 700 13.5px var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-name .tag { font-size: 9px; padding: 1px 4px; }
.pr-name .pc-comp { vertical-align: -5px; margin-right: 3px; display: inline-flex; }
.pr-icons { display: flex; gap: 3px; }
.pr-stat { display: inline-flex; align-items: center; gap: 3px; color: var(--ink); }
.pr-vp { text-align: right; }
.pr-vp b { font: 700 17px var(--serif); color: #5b3416; }
.award-ico { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 3px; border-radius: 999px; font: 700 10px var(--sans); border: 1px solid; }
.award-ico.road { background: #f3e2c1; color: #7a4a1a; border-color: #b9884c; }
.award-ico.army { background: #e9dcef; color: #5b3a6e; border-color: #9b7ab0; }
.award-ico.explorer { background: #d9eef0; color: #145a62; border-color: #6fb3b8; }
.award-ico.warn { background: #fbe1d9; color: var(--danger); border-color: #d69585; }
.award-ico.gold { background: #fff1b8; color: #8d6420; border-color: #c99a3e; }
.award-ico.offline { background: #ddd; color: #555; border-color: #aaa; }
.award.explorer { background: #d9eef0; color: #145a62; border-color: #6fb3b8; }
.award.gold { background: #fff1b8; color: #8d6420; border-color: #c99a3e; animation: blink 1.2s infinite; }
.pcard.bump, .prow.bump { animation: cardBump .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes cardBump { 40% { transform: scale(1.03); box-shadow: 0 0 0 3px rgba(244,199,79,.6); } }

/* Bauen mit Schiffen */
.build-grid.sea .bbtn.wide { grid-column: 1 / -1; grid-template-columns: 34px 1fr auto; grid-template-areas: "pic name cost"; }
.build-grid.sea .bbtn.wide .b-cost { justify-content: flex-end; }

/* ------------------------------------------------ Handel-Dialog */
.trade-overlay { z-index: 45; }
.trade-card { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 18px 20px 20px; animation: rise .3s cubic-bezier(.2,.8,.2,1); }
.trade-card h4 { font: 700 14px var(--serif); color: #5b3416; margin: 12px 0 6px; }
.trade-card h4:first-child { margin-top: 2px; }
.trade-card .tab { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.trade-card .tb-head span:nth-child(2), .trade-card .tb-head span:nth-child(3), .trade-card .ctr { width: 104px; }
.trade-card .cbtn { width: 32px; height: 32px; }
.trade-card .tb-row { padding: 3px 0; border-bottom: 1px dashed rgba(140,100,50,.2); }
.tb-targets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.tb-targets .lbl { font: 700 11px var(--sans); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); margin-right: 2px; }
.tchip { appearance: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(140,100,50,.45); background: rgba(255,255,255,.6); font: 600 13px var(--sans); color: var(--ink); cursor: pointer; transition: background .15s, box-shadow .15s; }
.tchip.on { background: linear-gradient(180deg, #fff2c4, #f1cf73); border-color: var(--brass-3); box-shadow: 0 0 0 2px rgba(244,199,79,.6); }
.tb-to { margin: 8px 0 0; }
.tb-foot .btn.primary { flex: 1; }
.bank-ratios { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.ratio-chip { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.6); border: 1px solid rgba(140,100,50,.3); font: 700 12.5px var(--serif); }
.ratio-chip.better { background: #e6f2d6; border-color: #8fb46a; color: #2f5a1c; }
.calm { display: inline-flex; align-items: center; gap: 6px; color: #145a62; font-weight: 700; }
#tab-bank #btnBank { width: 100%; }
.offer.mine-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 4px; }
.offer.proposal { margin-top: 6px; }
.offer-panel { display: grid; gap: 6px; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-row .btn { flex-direction: column; }
.modal-head-art { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.modal-head-art .muted { margin: 2px 0 0; font-size: 13px; }

/* ------------------------------------------------ Chat */
.chat-panel { padding-top: 8px; }
.chat-head { appearance: none; border: 0; background: none; width: 100%; display: flex; align-items: center; gap: 8px; padding: 2px 0 6px; cursor: pointer; color: inherit; font: inherit; }
.chat-head h3 { margin: 0; }
.chat-head .chev { margin-left: auto; color: var(--ink-soft); transition: transform .2s; }
.chat-panel.collapsed .chev { transform: rotate(-90deg); }
.chat-panel.collapsed #chatSlot { display: none; }
.chat-box { display: flex; flex-direction: column; gap: 6px; min-width: 0; width: 100%; }
.chat-box > * { min-width: 0; max-width: 100%; }
#chatSlot .chat-list { height: 210px; }
.chat-list {
  overflow-y: auto; padding: 8px;
  background: rgba(255,252,242,.6);
  border: 1px solid rgba(140,100,50,.3);
  border-radius: 10px;
  box-shadow: inset 0 2px 5px rgba(80,55,20,.12);
  display: flex; flex-direction: column; gap: 2px;
  scrollbar-width: thin;
}
.chat-empty { text-align: center; margin: auto; font-style: italic; }
.cmsg { display: flex; flex-direction: column; align-items: flex-start; max-width: 88%; margin-top: 6px; }
.cmsg.cont { margin-top: 1px; }
.cmsg.mine { align-self: flex-end; align-items: flex-end; }
.cm-name { display: flex; align-items: center; gap: 5px; font: 700 11.5px var(--sans); color: var(--ink-soft); margin: 0 6px 2px; }
.cm-name .dot { width: 9px; height: 9px; }
.cm-time { font-weight: 400; color: #a08c6b; font-size: 10px; }
.cm-bubble {
  padding: 6px 11px; border-radius: 14px 14px 14px 4px;
  background: #fffdf6; border: 1px solid rgba(140,100,50,.25);
  box-shadow: inset 3px 0 0 var(--pc), 0 1px 2px rgba(60,40,10,.12);
  font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; word-break: break-word;
  white-space: pre-wrap; max-width: 100%;
}
.cmsg.fresh .cm-bubble { animation: bubbleIn .25s cubic-bezier(.2,1.4,.4,1); }
.cmsg.mine .cm-bubble { border-radius: 14px 14px 4px 14px; background: linear-gradient(180deg, #fff3d0, #f6e2a6); box-shadow: inset -3px 0 0 var(--pc), 0 1px 2px rgba(60,40,10,.12); }
@keyframes bubbleIn { from { transform: scale(.85) translateY(6px); opacity: 0; } }
.emoji-row { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 1px; }
.emo { appearance: none; border: 1px solid transparent; background: rgba(255,255,255,.45); border-radius: 8px; font-size: 17px; line-height: 1; padding: 4px 5px; cursor: pointer; flex: none; transition: transform .12s, background .12s; }
.emo:hover { transform: scale(1.18); background: #fff; border-color: rgba(140,100,50,.3); }
.chat-form { display: flex; gap: 6px; margin: 0; }
.chat-form input { flex: 1; padding: 9px 11px; font-size: 14px; }
.chat-drawer {
  position: fixed; z-index: 70; right: 16px; bottom: 16px;
  width: min(380px, calc(100vw - 32px)); height: min(520px, calc(100dvh - 90px));
  display: flex; flex-direction: column; gap: 8px; padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--parch), var(--parch-2));
  border: 1px solid var(--parch-edge);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  animation: drawerIn .3s cubic-bezier(.2,.9,.3,1.1);
}
@keyframes drawerIn { from { transform: translateY(30px) scale(.96); opacity: 0; } }
.cd-head { display: flex; align-items: center; justify-content: space-between; }
.cd-head h3 { font-size: 18px; color: #5b3416; }
#chatDrawerBody { flex: 1; min-height: 0; min-width: 0; display: flex; }
#chatDrawerBody .chat-box { flex: 1; min-height: 0; min-width: 0; }
#chatDrawerBody .chat-list { flex: 1; min-height: 0; }
.chat-fab {
  position: fixed; z-index: 65; right: 16px; bottom: 16px;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid #2c1909;
  background: radial-gradient(circle at 35% 30%, #d9733f, #8f3c1a);
  box-shadow: 0 8px 20px rgba(0,0,0,.4), inset 0 2px 0 rgba(255,210,170,.5);
  cursor: pointer;
  animation: rise .4s cubic-bezier(.2,1.4,.4,1);
  transition: transform .15s;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab .count-badge { position: absolute; top: -3px; right: -3px; }
.chat-pops { position: fixed; z-index: 66; top: calc(var(--topbar-h) + 10px); left: 50%; transform: translateX(-50%); display: grid; gap: 6px; justify-items: center; pointer-events: none; width: min(92vw, 420px); }
.chat-pop {
  pointer-events: auto; appearance: none; cursor: pointer; font: inherit; color: var(--ink);
  display: flex; align-items: center; gap: 7px; max-width: 100%;
  padding: 8px 14px; border-radius: 16px 16px 16px 4px;
  background: #fffdf6; border: 1px solid var(--parch-edge);
  box-shadow: inset 4px 0 0 var(--pc), 0 8px 20px rgba(0,0,0,.35);
  animation: popIn .35s cubic-bezier(.2,1.4,.4,1);
  transition: opacity .4s, transform .4s;
}
.chat-pop span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-pop b { font-family: var(--serif); white-space: nowrap; }
.chat-pop.out { opacity: 0; transform: translateY(-10px); }
@keyframes popIn { from { opacity: 0; transform: translateY(-14px) scale(.9); } }

/* ------------------------------------------------ Animations-Ebene */
#fxLayer { position: fixed; inset: 0; z-index: 48; pointer-events: none; overflow: hidden; }
.flyer { position: fixed; left: 0; top: 0; will-change: transform, opacity; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.fres { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fffaf0, #ead9b2); border: 1.5px solid #8d6420; }
.fcard { display: grid; place-items: center; width: 30px; height: 42px; border-radius: 5px; border: 1.5px solid rgba(60,40,15,.6); box-shadow: inset 0 0 0 2px rgba(255,250,235,.7); }
.fcard.back { background: linear-gradient(160deg, #e9d4a0, #b8975f); }
.fcard.back::after { content: ""; width: 14px; height: 14px; transform: rotate(45deg); border: 1.5px solid rgba(91,52,22,.55); }
.fcard.dev { background: linear-gradient(160deg, #8b5fa3, #5b3a6e); border-color: #2c1838; }
.fcard.dev.flipin { animation: devFlip 1s ease both; }
@keyframes devFlip { 0% { transform: rotateY(0); } 50% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }
.award.big { font-size: 12.5px; padding: 5px 11px; box-shadow: 0 0 0 3px rgba(244,199,79,.5); white-space: nowrap; }
.dev-rise {
  position: fixed; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 18px 10px; border-radius: 14px;
  background: linear-gradient(180deg, #fffaf0, #efe0bb); border: 2px solid var(--pc, #5b3a6e);
  box-shadow: 0 0 0 4px rgba(244,199,79,.45), 0 0 40px rgba(244,199,79,.7), 0 14px 30px rgba(0,0,0,.4);
  animation: devRise 1.9s cubic-bezier(.3,.8,.3,1) both;
}
.dev-rise b { font: 700 17px var(--serif); color: #5b3416; }
.dev-rise span { font-size: 12px; color: var(--ink-soft); }
@keyframes devRise {
  0% { opacity: 0; transform: translate(-50%, -20%) scale(.6); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
  65% { opacity: 1; transform: translate(-50%, -60%) scale(1); filter: blur(0) brightness(1.1); }
  100% { opacity: 0; transform: translate(-50%, -90%) scale(1.2); filter: blur(6px) brightness(1.6); }
}
.turn-banner {
  position: absolute; z-index: 5; left: 0; right: 0; top: 38%;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--pc) 85%, #000 15%) 18%, var(--pc) 50%, color-mix(in srgb, var(--pc) 85%, #000 15%) 82%, transparent);
  color: #fff; font: 700 26px var(--serif);
  text-shadow: 0 2px 0 rgba(0,0,0,.45), 0 0 12px rgba(0,0,0,.35);
  box-shadow: 0 8px 26px rgba(0,0,0,.35);
  cursor: pointer;
}
.turn-banner.go { animation: sweep 2.2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes sweep {
  0% { transform: translateX(-105%) skewX(-12deg); opacity: 0; }
  18% { transform: translateX(0) skewX(0); opacity: 1; }
  78% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(105%) skewX(12deg); opacity: 0; }
}
.tb-piece { filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.event-splash { position: absolute; z-index: 6; inset: 0; display: grid; place-items: center; background: radial-gradient(circle, rgba(10,20,22,.35), transparent 70%); cursor: pointer; }
.event-splash.go { animation: fadeOut 3.4s ease both; }
@keyframes fadeOut { 0%, 85% { opacity: 1; } 100% { opacity: 0; } }
.es-card { width: 230px; height: 300px; perspective: 900px; }
.es-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: esFlip 1s cubic-bezier(.3,1.25,.5,1) both; }
@keyframes esFlip { 0% { transform: translateY(40px) rotateY(180deg) scale(.6); } 100% { transform: none; } }
.es-back, .es-front { position: absolute; inset: 0; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.es-back { background: linear-gradient(160deg, #7a4f93, #4a2c5c); border: 3px solid #2c1838; transform: rotateY(180deg); }
.es-front { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 22px 18px; text-align: center; background: linear-gradient(180deg, #fffaf0, #efdfb8); border: 3px solid #7a5a2c; box-shadow: inset 0 0 0 5px rgba(255,250,235,.8), inset 0 0 0 6px rgba(122,90,44,.35), 0 0 0 4px rgba(244,199,79,.5), 0 20px 40px rgba(0,0,0,.45); }
.es-front b { font: 700 22px var(--serif); color: #5b3416; }
.es-front span { font-size: 14px; color: var(--ink); line-height: 1.4; }
.toast.event { background: linear-gradient(180deg, #5b3a6e, #3d2550); border-color: #e6c25a; }
.toast.trade { background: linear-gradient(180deg, #2f6233, #1f4322); border-color: #b7da7c; }

/* Sieger-Feier */
.winner-card { border-top: 6px solid var(--pc); max-height: calc(100vh - 32px); overflow-y: auto; }
.crown { position: relative; height: 92px; }
.trophy { display: block; animation: trophyIn .9s cubic-bezier(.2,1.5,.4,1) both; filter: drop-shadow(0 6px 10px rgba(120,80,10,.4)); }
.w-piece { position: absolute; left: 50%; bottom: 0; transform: translateX(28px); }
@keyframes trophyIn { from { transform: scale(.2) rotate(-25deg); opacity: 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.confetti i { position: absolute; top: -20px; border-radius: 2px; animation-name: confetti; animation-timing-function: cubic-bezier(.3,.6,.5,1); animation-fill-mode: both; will-change: transform; }
@keyframes confetti { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx), 105vh) rotate(var(--r)); opacity: .8; } }
.winner-card { z-index: 1; }

/* ------------------------------------------------ Einführung / Regeln */
.rules { display: flex; flex-direction: column; width: min(820px, calc(100vw - 24px)); }
.rules:not([open]) { display: none; }
.rules-body { flex: 1; min-height: 0; overflow-y: auto; }
.intro-page { animation: pageIn .35s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateX(14px); } }
.ip-head { display: flex; align-items: center; gap: 12px; margin: 10px 0 12px; }
.ip-head h3 { margin: 0; font-size: 22px; }
.ip-head p { margin: 0; font-style: italic; }
.ip-ico svg { width: 46px; height: 46px; display: block; }
.ip-num { margin-left: auto; font: 600 12px var(--sans); white-space: nowrap; }
.intro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.intro-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 10px 0; }
.intro-grid.three .intro-tile { grid-template-columns: 1fr; }
.intro-grid.three .it-ill svg { width: 100%; max-width: 160px; height: auto; }
.intro-tile { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; padding: 10px; border-radius: 12px; background: rgba(255,252,242,.7); border: 1px solid rgba(160,120,60,.3); }
.intro-tile h4, .intro-split h4, .intro-costs h4 { margin: 0 0 3px; font: 700 15px var(--serif); color: #5b3416; }
.intro-tile p { margin: 0; font-size: 13.5px; line-height: 1.45; }
.it-ill svg { width: 96px; height: auto; display: block; border-radius: 8px; }
.intro-costs { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: #fffaf0; border: 1px solid var(--parch-edge); }
.cost-pill { display: inline-flex; align-items: center; gap: 4px; margin: 3px 8px 3px 0; padding: 4px 10px; border-radius: 999px; background: rgba(120,85,35,.08); border: 1px solid rgba(160,120,60,.3); }
.cost-pill b { font-family: var(--serif); margin-right: 2px; }
.intro-split { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: center; margin-bottom: 12px; }
.intro-split.rev { grid-template-columns: 1fr 220px; }
.intro-split.rev .it-big { order: 2; }
.it-big svg { width: 100%; height: auto; display: block; border-radius: 12px; background: rgba(255,252,242,.7); border: 1px solid rgba(160,120,60,.3); padding: 6px; }
.intro-split p { margin: 0 0 6px; }
.steps { margin: 4px 0 6px; padding-left: 20px; }
.steps li { margin: 4px 0; }
.event-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ev-item { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255,252,242,.75); border: 1px solid rgba(160,120,60,.3); }
.ev-item b { display: block; font-family: var(--serif); color: #5b3416; }
.ev-item span { font-size: 13px; line-height: 1.35; }
.intro-foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid rgba(160,120,60,.3); background: rgba(255,250,235,.6); }
.intro-dots { flex: 1; display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; }
.idot { appearance: none; width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 1.5px solid var(--brass-3); background: transparent; cursor: pointer; transition: transform .2s, background .2s; }
.idot.on { background: var(--brass-2); transform: scale(1.25); }
.rules-detail h3 { margin: 16px 0 4px; font-size: 17px; color: #5b3416; }

/* ------------------------------------------------ Responsiv (Erweiterungen) */
@media (max-width: 1180px) {
  .lobby-layout { grid-template-columns: minmax(0, 1fr); width: min(660px, 100%); }
}
@media (max-width: 900px) {
  .tb-lbl { display: none; }
  .tb-ico { display: inline; }
  .zoom-bar { right: 14px; bottom: 14px; }
  .zbtn { width: 30px; height: 28px; }
  .build-grid.sea { grid-template-columns: repeat(3, 1fr); }
  #boardWrap { height: clamp(260px, calc((100vw - 28px) / var(--board-ar, 1) + 28px), 68vh); }
  .event-banner { padding: 6px 8px; gap: 8px; }
  .event-banner .ev-art { width: 32px; height: 32px; }
  .event-banner .small { font-size: 11.5px; }
  .build-grid.sea .bbtn.wide { grid-column: span 3; grid-template-columns: 30px auto auto; grid-template-areas: "pic name cost"; justify-content: center; column-gap: 8px; }
  #players.compact { max-height: 240px; }
  .turn-banner { font-size: 20px; }
  .intro-split, .intro-split.rev { grid-template-columns: 1fr; }
  .intro-split.rev .it-big { order: 0; }
  .it-big svg { max-width: 300px; margin: 0 auto; }
}
@media (max-width: 600px) {
  .opt-grid { grid-template-columns: 1fr; }
  .lobby-players.many { grid-template-columns: 1fr 1fr; }
  .intro-grid, .intro-grid.three, .event-list { grid-template-columns: 1fr; }
  .intro-tile { grid-template-columns: 72px 1fr; }
  .it-ill svg { width: 72px; }
  .intro-grid.three .intro-tile { grid-template-columns: 72px 1fr; }
  .hof th:nth-child(4), .hof td:nth-child(4), .hof th:nth-child(7), .hof td:nth-child(7) { display: none; }
  .hof td.nm { max-width: 110px; }
  .hof tr.here td.nm::after { display: none; }
  .trade-card { padding: 14px 12px 16px; }
  .trade-card .tb-head span:nth-child(2), .trade-card .tb-head span:nth-child(3), .trade-card .ctr { width: 92px; }
  .trade-card .cbtn { width: 28px; height: 28px; }
  .chat-drawer { right: 8px; left: 8px; bottom: 8px; width: auto; height: min(70dvh, 520px); }
  .es-card { width: 190px; height: 250px; }
  .prow { grid-template-columns: 12px minmax(0, 1fr) auto auto auto 26px; gap: 5px; }
  .ev-card { width: 54px; height: 74px; }
  .ev-num { font-size: 24px; }
  .ev-label { font-size: 6.5px; letter-spacing: 0; }
  .intro-foot { padding: 10px 12px; }
}


/* Ungültige Angebote */
.offer-invalid { padding: 5px 9px; border-radius: 8px; background: #fbe1d9; color: var(--danger); border: 1px solid #d69585; font: 700 12px var(--sans); }
.offer.invalid .offer-line { opacity: .55; text-decoration: line-through; text-decoration-color: rgba(163,51,42,.5); }
.offer.mine-mini.invalid { display: grid; gap: 6px; }

/* Animationen abschaltbar */
body.no-fx #boardSea .sea-waves, body.no-fx #boardSea .seahex .wv, body.no-fx #boardSea .clouds .cloud,
body.no-fx #board .ta-shimmer, body.no-fx #board .ta-spark .sp, body.no-fx #board .bob,
body.no-fx .trade-btn.attention, body.no-fx .btn.pulse, body.no-fx .status.act > span { animation: none !important; }
body.no-fx #board .ta-spark .sp { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  #boardSea .clouds, .confetti { display: none; }
}

/* ---------- Großer Würfel-Knopf (immer sichtbar, wenn du würfeln musst) ---------- */
.roll-fab {
  position: fixed; left: 50%; bottom: 22px; z-index: 60;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  padding: 12px 26px 12px 16px;
  border: 2px solid #f2d58a; border-radius: 999px;
  background: linear-gradient(180deg, #c8562a, #8e3415);
  color: #fff6e0; font: 700 22px var(--serif); letter-spacing: .02em;
  box-shadow: 0 10px 28px rgba(40,20,5,.45), inset 0 2px 0 rgba(255,255,255,.25);
  cursor: pointer;
  animation: rollFabIn .45s cubic-bezier(.2,1.4,.4,1), rollFabGlow 1.8s ease-in-out .45s infinite;
}
.roll-fab:hover { filter: brightness(1.08); transform: translateX(-50%) translateY(-2px) scale(1.03); }
.roll-fab:active { transform: translateX(-50%) scale(.97); }
.roll-fab.hidden { display: none; }
.rf-dice { display: flex; gap: 5px; }
.rf-dice svg { width: 34px; height: 34px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); animation: rfWobble 1.8s ease-in-out infinite; }
.rf-dice svg:last-child { animation-delay: .25s; }
.rf-dice rect { fill: #fffaf0; stroke: #5b3416; stroke-width: 2; }
.rf-dice circle { fill: #3a2210; }
.rf-dice svg:last-child circle { fill: #b0281b; }
.rf-key { font: 600 11px var(--sans); padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.3); }
@keyframes rollFabIn { from { opacity: 0; transform: translateX(-50%) translateY(40px) scale(.8); } }
@keyframes rollFabGlow { 50% { box-shadow: 0 10px 28px rgba(40,20,5,.45), 0 0 0 8px rgba(242,213,138,.35), inset 0 2px 0 rgba(255,255,255,.25); } }
@keyframes rfWobble { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-14deg); } 88% { transform: rotate(10deg); } }
@media (max-width: 900px) {
  .roll-fab { bottom: 84px; font-size: 19px; padding: 10px 20px 10px 12px; }
  .rf-key { display: none; }
}
@media (prefers-reduced-motion: reduce) { .roll-fab, .rf-dice svg { animation: none; } }

/* ---------- Räuber: Laternenflackern und Augenglühen ---------- */
.robber .rob-flicker { animation: robFlicker 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.robber .rob-flame { animation: robFlame .9s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 50% 100%; }
.robber .rob-eyes { animation: robEyes 4s ease-in-out infinite; }
@keyframes robFlicker { 0%, 100% { opacity: .85; transform: scale(1); } 30% { opacity: .55; transform: scale(.9); } 60% { opacity: 1; transform: scale(1.08); } }
@keyframes robFlame { from { transform: scaleY(.85) skewX(-6deg); } to { transform: scaleY(1.12) skewX(6deg); } }
@keyframes robEyes { 0%, 44%, 52%, 100% { opacity: 1; } 47%, 49% { opacity: .1; } }
@media (prefers-reduced-motion: reduce) { .robber .rob-flicker, .robber .rob-flame, .robber .rob-eyes { animation: none; } }

/* ---------- Schöneres Wasser: zweite Wellenschicht, Kaustik, Schaum ---------- */
#boardSea .sea-waves2 { animation: waveDrift2 17s linear infinite; }
@keyframes waveDrift2 { to { transform: translate(-64px, 38px); } }

@keyframes causticPulse { 0%, 100% { opacity: .12; } 50% { opacity: .22; } }

@keyframes foamBreath { 0%, 100% { opacity: .38; } 50% { opacity: .7; } }
body.no-fx #boardSea .sea-waves2 { animation: none; }
@media (prefers-reduced-motion: reduce) { #boardSea .sea-waves2 { animation: none; } }

/* Hintergrund (Start/Lobby): Lichtspiegelungen und treibende Wellen */
#backdrop .bd-caustic { animation: causticPulse 8s ease-in-out infinite; }
#backdrop .bd-waves2 { animation: bdDrift 30s linear infinite; }
@keyframes bdDrift { to { transform: translate(-120px, 60px); } }
@media (prefers-reduced-motion: reduce) { #backdrop .bd-caustic, #backdrop .bd-waves2 { animation: none; } }

/* Computergegner (Lobby + Spielerliste) */
.lobby-bots { margin-bottom: 10px; }
.lobby-bots .btn { margin-left: 0; }
.lobby-bots .btn:first-of-type { margin-left: auto; }
.tag.bot { background: #e4ecf5; color: #2a4a6e; border: 1px solid #b4c6dc; }
.bot-ico { font-size: .95em; }

/* =====================================================================
   Detailgrafik: Gelände-Symbole, Chips, Nebel, Feuerberg
   ===================================================================== */
#board .tok-num { font: 700 17.5px var(--serif); fill: #3a2410; }
#board .tok-num.red { fill: #b3261e; }
#board .tok-num-hi { font: 700 17.5px var(--serif); fill: #fffaf0; opacity: .85; }
#board .tok-pips { fill: #3a2410; }
#board .tok-pips.red { fill: #b3261e; }
#board .token { pointer-events: none; }
#board .token.gold .tok-ring { stroke: rgba(244,199,79,.55); }
#board .token.tok-reveal .tok-in { animation: tokPop .6s cubic-bezier(.3,1.6,.5,1) .9s both; transform-box: fill-box; transform-origin: center; }
@keyframes tokPop { from { opacity: 0; transform: scale(.2); } }
#board .fog-q { font: 700 34px var(--serif); fill: #5d6b78; stroke: #fff; stroke-width: .8; paint-order: stroke; }
#board .fog-q-sh { font: 700 34px var(--serif); fill: #fff; opacity: .7; }
#board .ta-fogshim { animation: fogShim 5.5s ease-in-out infinite; }
@keyframes fogShim { 0% { transform: rotate(18deg) translateX(0); } 70%, 100% { transform: rotate(18deg) translateX(230px); } }
#board .ta-spark.fog .sp { stroke: #fff; }
#board .ta-vglow { animation: vGlow 2.6s ease-in-out infinite; }
@keyframes vGlow { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
#board .ta-mill { transform-box: fill-box; transform-origin: center; animation: millTurn 14s linear infinite; }
@keyframes millTurn { to { transform: rotate(360deg); } }
#board .hex { pointer-events: auto; }
#board .hex .fog-lift { animation: fogLift 1.6s cubic-bezier(.4,0,.2,1) both; transform-box: fill-box; transform-origin: center; pointer-events: none; }
@keyframes fogLift { 0% { opacity: 1; transform: scale(1); } 35% { opacity: .9; transform: scale(1.04); } 100% { opacity: 0; transform: scale(1.35) translateY(-10px); } }
#board .hex.revealing > use:first-child { animation: hexReveal 1.4s ease-out both; }
@keyframes hexReveal { 0% { opacity: .2; } 100% { opacity: 1; } }
#board .road .anim { transform-box: fill-box; transform-origin: center; }
#board .road.fresh .anim { animation: roadGrow .55s cubic-bezier(.4,0,.3,1) both; }
@keyframes roadGrow { from { transform: scaleX(.05); opacity: .3; } }
#board .building .morph-out { animation: morphOut .45s ease-in both; transform-box: fill-box; transform-origin: center bottom; }
body.no-fx #board .ta-fogshim, body.no-fx #board .ta-vglow, body.no-fx #board .ta-mill { animation: none !important; }
body.no-fx #board .ta-fogshim { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  #board .ta-fogshim, #board .ta-vglow, #board .ta-mill, #board .ta-shimmer, #board .ta-spark .sp { animation: none !important; }
  #board .ta-fogshim, #board .ta-shimmer { opacity: 0; }
}

/* =====================================================================
   Neue Module: Lobby, Gefährten, Schätze, Feuerberg, Gilden, Sturmzeit
   ===================================================================== */
.opt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opt-card { padding: 9px 30px 9px 9px; grid-template-columns: 40px 1fr; gap: 9px; }
.opt-ico svg { width: 40px; height: 40px; }
.opt-title { font-size: 14px; }
.opt-text { font-size: 12px; line-height: 1.34; }
.lobby-host.ro { background: rgba(120, 85, 35, .04); }
.vp-stepper { display: inline-flex; align-items: stretch; border-radius: 10px; overflow: hidden; border: 1px solid var(--parch-edge); box-shadow: inset 0 1px 0 #fff, 0 2px 0 rgba(90,60,20,.2); background: #fffaf0; }
.vp-btn { appearance: none; border: 0; width: 34px; font: 700 20px var(--serif); color: #5b3416; background: linear-gradient(180deg, #fbf3df, #e8d5aa); cursor: pointer; }
.vp-btn:hover:not(:disabled) { filter: brightness(1.06); }
.vp-btn:disabled { opacity: .45; cursor: default; }
#vpInput { width: 58px; border: 0; border-radius: 0; text-align: center; font: 700 20px var(--serif); color: #5b3416; padding: 6px 2px; box-shadow: none; background: #fffaf0; -moz-appearance: textfield; }
#vpInput::-webkit-outer-spin-button, #vpInput::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#vpInput[readonly] { color: var(--ink-soft); }

/* Gefährte */
.comp-card { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: linear-gradient(180deg, #fffaf0, #f3e6c4); border: 1px solid var(--parch-edge); box-shadow: inset 0 1px 0 #fff; }
.comp-card.used { opacity: .78; }
.cc-portrait svg { display: block; filter: drop-shadow(0 3px 4px rgba(60,35,10,.35)); }
.cc-name { font: 700 17px var(--serif); color: #5b3416; margin-right: 6px; }
.cc-tag { display: inline-block; font: 700 9.5px var(--sans); text-transform: uppercase; letter-spacing: .05em; padding: 2px 6px; border-radius: 999px; background: #e9e0cc; color: #6e5a3f; vertical-align: 2px; }
.cc-tag.act { background: #5b3a6e; color: #fff; }
.cc-body p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.38; }
.comp-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.comp-actions .btn { flex: 1; }
.btn.attention-soft { box-shadow: 0 0 0 2px rgba(244,199,79,.8), 0 0 12px rgba(244,199,79,.6); }
.comp-note { margin: 6px 0 0; }
.pc-comp { display: inline-flex; flex: none; border-radius: 50%; }
.pc-comp svg { display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.swap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 10px 0; }
.swap-card { appearance: none; font: inherit; color: inherit; text-align: center; display: grid; justify-items: center; gap: 3px; padding: 10px 8px; border-radius: 12px; border: 1px solid var(--parch-edge); background: linear-gradient(180deg, #fffaf0, #f2e4c2); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.swap-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px rgba(244,199,79,.7), 0 6px 14px rgba(60,40,10,.2); }
.swap-card b { font: 700 15px var(--serif); color: #5b3416; }
.swap-card small { font-size: 11.5px; line-height: 1.3; color: var(--ink-soft); }
.modal-card.wide { width: min(720px, 100%); }
.pick-h { margin: 10px 0 6px; font: 700 14px var(--serif); color: #5b3416; }
.btn.mono.on { background: linear-gradient(180deg, #fff2c4, #f1cf73); border-color: var(--brass-3); box-shadow: 0 0 0 2px rgba(244,199,79,.7); }
.btn.mono small { font-size: 10.5px; }
.b-cost .or { margin: 0 2px; font-weight: 700; color: var(--ink-soft); }
.comp-list, .treasure-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.comp-item, .tr-item { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255,252,242,.75); border: 1px solid rgba(160,120,60,.3); }
.comp-item svg, .tr-item svg { flex: none; }
.comp-item b, .tr-item b { font-family: var(--serif); color: #5b3416; }
.comp-item > div > span:last-child, .tr-item span { display: block; font-size: 12.5px; line-height: 1.35; }
.tr-art { flex: none; width: 52px; display: grid; place-items: center; }
.tr-art svg { width: 52px; height: 46px; }
.cost-mini .ri { vertical-align: -3px; }

/* Modul-Leiste im Zug-Panel */
.mod-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mod-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 4px; border-radius: 999px; font: 600 12px var(--sans); background: #fffaf0; border: 1px solid var(--parch-edge); box-shadow: inset 0 1px 0 #fff; }
.mod-chip svg { display: block; }
.mod-chip.volcano { background: #fbe6d8; border-color: #d69585; }
.mod-chip.quick { padding-left: 9px; }
.award.treasure { background: #fff1b8; color: #8d6420; border-color: #c99a3e; }
.award.trademap { background: #f3e2b0; color: #6b4a2b; border-color: #b9884c; }
.award.guildmaster { background: linear-gradient(180deg, #fff1b8, #f4c74f); color: #5b3416; border-color: #a87b14; }
.award.coastkeeper { background: #d9eef0; color: #1d4f5a; border-color: #6fb3b8; }
.award.lighthouse { display: inline-flex; align-items: center; gap: 2px; background: #eef3f6; color: #2b3a46; border-color: #9fb2c0; }
.award-ico.treasure { background: #fff1b8; color: #8d6420; border-color: #c99a3e; }
.award-ico.trademap { background: #f3e2b0; color: #6b4a2b; border-color: #b9884c; }
.award-ico.guildmaster { background: #f4c74f; color: #5b3416; border-color: #a87b14; }
.award-ico.guilds { background: #efe4c9; color: #7a3b22; border-color: #b9884c; }
.award-ico.coastkeeper, .award-ico.lighthouse { background: #d9eef0; color: #1d4f5a; border-color: #6fb3b8; }
.guild-row { display: inline-flex; gap: 2px; align-items: center; }
.gchip svg { display: block; }
.pc-stats small { font-size: 10px; color: #7a3b22; margin-left: 1px; }

/* Schatz-Popup */
.treasure-pop { position: absolute; z-index: 8; left: 50%; top: 40%; transform: translate(-50%, -50%); cursor: pointer; animation: tpIn .5s cubic-bezier(.2,1.4,.4,1) both; }
.treasure-pop.out { animation: tpOut .45s ease-in both; }
@keyframes tpIn { from { opacity: 0; transform: translate(-50%, -30%) scale(.6); } }
@keyframes tpOut { to { opacity: 0; transform: translate(-50%, -70%) scale(.9); } }
.tp-card { position: relative; display: grid; justify-items: center; gap: 4px; width: 250px; padding: 16px 16px 14px; border-radius: 18px; text-align: center; background: radial-gradient(circle at 50% 30%, #fffbe8, #f3e2b0 70%); border: 2px solid var(--brass-2); box-shadow: 0 14px 40px rgba(0,0,0,.45), 0 0 0 4px rgba(244,199,79,.35), 0 0 60px rgba(255,220,120,.45); }
.tp-chest { position: relative; width: 96px; height: 96px; }
.tp-chest .chest { position: absolute; inset: 0; }
.tp-chest .closed { animation: chestShake .7s ease-in-out both, chestHide .01s linear .75s forwards; }
.tp-chest .opened { opacity: 0; animation: chestShow .01s linear .75s forwards; }
.tp-chest .opened .chest-glow { transform-box: fill-box; transform-origin: 50% 100%; animation: chestRays 1.2s ease-out .75s both; }
@keyframes chestShake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-6deg); } 40% { transform: rotate(6deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(3deg); } }
@keyframes chestHide { to { opacity: 0; } }
@keyframes chestShow { to { opacity: 1; } }
@keyframes chestRays { from { opacity: 0; transform: scale(.3); } 60% { opacity: 1; } to { opacity: .8; transform: scale(1); } }
.tp-loot { height: 0; position: relative; top: -70px; animation: lootUp .8s cubic-bezier(.2,1.4,.4,1) .85s both; }
.tp-loot svg { filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
@keyframes lootUp { from { opacity: 0; transform: translateY(40px) scale(.4); } }
.tp-text { display: grid; gap: 2px; margin-top: 4px; }
.tp-who { display: inline-flex; gap: 6px; align-items: center; justify-content: center; font-size: 12.5px; color: var(--ink-soft); }
.tp-text b { font: 700 18px var(--serif); color: #5b3416; }
.tp-text small { font-size: 12px; color: #3f6b1e; }

/* Feuerberg-Ausbruch */
#board .eruption { pointer-events: none; }
#board .er-glow { transform-box: fill-box; transform-origin: center; animation: erGlow 1.6s ease-out both; }
@keyframes erGlow { 0% { opacity: 0; transform: scale(.3); } 20% { opacity: 1; transform: scale(1.6); } 100% { opacity: 0; transform: scale(2.4); } }
#board .er-smoke circle { fill: #6f6662; opacity: 0; transform-box: fill-box; transform-origin: center; animation: erSmoke 2.6s ease-out both; }
#board .er-smoke circle:nth-child(2) { animation-delay: .15s; }
#board .er-smoke circle:nth-child(3) { animation-delay: .3s; }
#board .er-smoke circle:nth-child(4) { animation-delay: .45s; }
@keyframes erSmoke { 0% { opacity: .85; transform: translateY(0) scale(.4); } 100% { opacity: 0; transform: translateY(-46px) scale(2.2); } }
#board .er-sparks circle { fill: #ffd36a; transform-box: fill-box; transform-origin: center; animation: erSpark 1s ease-out both; }
#board .er-sparks circle:nth-child(odd) { animation-name: erSpark2; }
@keyframes erSpark { 0% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(-14px, -30px); } }
@keyframes erSpark2 { 0% { opacity: 1; transform: translate(0, 0); } 100% { opacity: 0; transform: translate(16px, -26px); } }
#board .er-rock { animation: erRock 1.1s cubic-bezier(.35,0,.6,1) .25s both; }
@keyframes erRock { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 10% { opacity: 1; } 50% { transform: translate(var(--hx), var(--hy)) rotate(200deg); } 95% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(400deg); } }
#board .er-impact { opacity: 0; transform-box: fill-box; transform-origin: center; animation: erImpact .9s ease-out 1.3s both; }
@keyframes erImpact { 0% { opacity: 1; transform: scale(.2); } 100% { opacity: 0; transform: scale(2.6); } }
#board .er-ruin { transform-box: fill-box; transform-origin: center bottom; animation: erRuin 1.2s ease-in 1.35s both; }
@keyframes erRuin { 0% { opacity: 1; } 30% { transform: rotate(-8deg) translateY(1px); } 100% { opacity: 0; transform: rotate(14deg) translateY(10px) scale(.8, .3); } }
.volcano-die { position: absolute; z-index: 8; left: 50%; top: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 8px 16px 8px 10px; border-radius: 16px; background: linear-gradient(180deg, #4a2a20, #2a1612); color: #ffe6c8; border: 2px solid #ff8a2a; box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 30px rgba(255,122,26,.5); animation: vdIn .6s cubic-bezier(.2,1.4,.4,1) .9s both; pointer-events: none; }
.volcano-die.out { animation: vdOut .45s ease-in both; }
@keyframes vdOut { to { opacity: 0; transform: translate(-50%, -20px); } }
.volcano-die .die { width: 46px; height: 46px; animation: vdRoll .7s ease-out .9s both; }
.volcano-die .die-face { fill: #3a2420; stroke: #ff8a2a; stroke-width: 4; }
.volcano-die .die-pips circle { fill: #ffd36a; }
.volcano-die b { display: block; font: 700 16px var(--serif); }
.volcano-die span { font-size: 13px; opacity: .9; }
@keyframes vdIn { from { opacity: 0; transform: translate(-50%, -20px) scale(.7); } }
@keyframes vdRoll { from { transform: rotate(-540deg) scale(.4); } }

/* Gilden & Leuchttürme auf dem Brett */
#board .guild-house, #board .lighthouse { pointer-events: none; }
#board .lh-beam { transform-box: fill-box; transform-origin: center; animation: lhBeam 4s linear infinite; }
@keyframes lhBeam { 0% { transform: scaleX(1); opacity: .9; } 25% { transform: scaleX(.15); opacity: .4; } 50% { transform: scaleX(-1); opacity: .9; } 75% { transform: scaleX(-.15); opacity: .4; } 100% { transform: scaleX(1); opacity: .9; } }
body.no-fx #board .lh-beam { animation: none; opacity: .5; }
@media (prefers-reduced-motion: reduce) { #board .lh-beam { animation: none; opacity: .5; } }
#board .v-spot.guild .ring { stroke: #e6c25a; fill: rgba(230,194,90,.35); }
#board .v-spot.lighthouse .ring { stroke: #bfeaff; fill: rgba(150,220,255,.3); }
.guild-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 10px 0; }
.guild-card { appearance: none; font: inherit; color: inherit; display: grid; justify-items: center; gap: 4px; text-align: center; padding: 10px 8px; border-radius: 12px; border: 1px solid var(--parch-edge); background: linear-gradient(180deg, #fffaf0, #f2e4c2); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.guild-card:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 0 0 2px rgba(244,199,79,.7), 0 6px 14px rgba(60,40,10,.2); }
.guild-card:disabled { opacity: .5; cursor: not-allowed; }
.guild-card b { font: 700 15px var(--serif); color: #5b3416; }
.guild-card small { font-size: 11.5px; line-height: 1.3; color: var(--ink-soft); }
.guild-card em { font: 700 11px var(--sans); color: var(--danger); font-style: normal; }
.devchoice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.devchoice { appearance: none; font: inherit; color: inherit; display: grid; justify-items: center; gap: 4px; padding: 12px 8px; border-radius: 14px; border: 1px solid var(--parch-edge); background: linear-gradient(180deg, #fffaf0, #f2e4c2); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.devchoice:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px rgba(244,199,79,.8), 0 8px 18px rgba(60,40,10,.25); }
.devchoice b { font: 700 16px var(--serif); color: #5b3416; }
.devchoice small { font-size: 12px; color: var(--ink-soft); }

/* Sturmleiste */
.storm-meter { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: center; margin-top: 8px; padding: 6px 10px 6px 6px; border-radius: 12px; background: linear-gradient(180deg, #eef3f6, #d6e1e8); border: 1px solid #9fb2c0; cursor: help; }
.storm-meter.danger { border-color: #c0392b; box-shadow: 0 0 0 2px rgba(192,57,43,.25); }
.sm-sky { position: relative; height: 44px; border-radius: 9px; overflow: hidden; background: linear-gradient(180deg, hsl(200 60% calc(78% - var(--sf) * 50%)), hsl(205 40% calc(62% - var(--sf) * 42%))); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.sm-cloud { position: absolute; width: 40px; height: 16px; border-radius: 999px; background: hsl(210 10% calc(96% - var(--sf) * 62%)); box-shadow: 10px -7px 0 2px hsl(210 10% calc(92% - var(--sf) * 60%)), -8px -4px 0 0 hsl(210 10% calc(94% - var(--sf) * 60%)); opacity: calc(.45 + var(--sf) * .55); scale: calc(.7 + var(--sf) * .6); animation: smDrift 9s ease-in-out infinite alternate; }
.sm-cloud.c1 { left: 4px; top: 20px; }
.sm-cloud.c2 { left: 30px; top: 10px; animation-duration: 12s; animation-delay: -4s; }
.sm-cloud.c3 { left: 14px; top: 30px; animation-duration: 7s; animation-delay: -2s; opacity: calc(var(--sf) * .9); }
@keyframes smDrift { from { transform: translateX(-6px); } to { transform: translateX(8px); } }
.sm-bolt { position: absolute; right: 6px; top: 6px; font-size: 18px; filter: drop-shadow(0 0 4px #ffe27a); animation: blink 1s infinite; }
.sm-body b { font: 700 14px var(--serif); color: #2b3a46; }
.sm-seg { display: flex; gap: 3px; margin: 3px 0; }
.sm-seg i { flex: 1; height: 8px; border-radius: 3px; background: rgba(43,58,70,.15); border: 1px solid rgba(43,58,70,.25); }
.sm-seg i.on { background: linear-gradient(180deg, #7f8f9c, #3c5566); border-color: #2b3a46; }
.storm-meter.danger .sm-seg i.on { background: linear-gradient(180deg, #d9583a, #a3332a); }
.sm-body small { font-size: 11.5px; color: #4a5866; }
.storm-meter.bump { animation: cardBump .45s cubic-bezier(.3,1.6,.5,1); }
body.no-fx .sm-cloud, body.no-fx .sm-bolt { animation: none; }
.storm-flash { position: absolute; inset: 10px; z-index: 7; pointer-events: none; border-radius: 22px; animation: stFlash 1.6s ease-out both; }
@keyframes stFlash { 0% { background: rgba(255,255,240,0); } 8% { background: rgba(255,255,240,.75); } 16% { background: rgba(20,30,40,.35); } 24% { background: rgba(255,255,240,.55); } 100% { background: rgba(20,30,40,0); } }
.storm-flash .bolt { position: absolute; left: 38%; top: 6%; width: 70px; filter: drop-shadow(0 0 14px #fff3b0); opacity: 0; animation: stBolt .5s steps(2) .05s 2 both; }
.storm-flash .bolt.b2 { left: 62%; top: 20%; width: 50px; animation-delay: .3s; }
@keyframes stBolt { 0% { opacity: 1; } 100% { opacity: 0; } }
#board .storm-lost { pointer-events: none; }
#board .sl-piece { animation: slFade 2.2s ease-in .5s both; transform-box: fill-box; transform-origin: center; }
@keyframes slFade { 0% { opacity: 1; } 30% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(8px) rotate(-12deg) scale(.7); } }
#board .sl-wave { animation: slWave 1.8s ease-out .3s both; transform-box: fill-box; transform-origin: center; }
@keyframes slWave { 0% { opacity: 0; transform: translateX(-30px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateX(30px); } }

@media (min-width: 1400px) {
  .lobby-layout { grid-template-columns: minmax(0, 820px) minmax(0, 400px); width: min(1260px, 100%); }
  .lobby-layout:has(.hof-card.hidden) { grid-template-columns: minmax(0, 820px); }
  .opt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .comp-list, .treasure-list, .devchoice-row { grid-template-columns: 1fr; }
  .opt-card { grid-template-columns: 34px 1fr; }
  .opt-ico svg { width: 34px; height: 34px; }
  .swap-grid, .guild-grid { grid-template-columns: 1fr 1fr; }
  .tp-card { width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .treasure-pop, .volcano-die, .storm-flash { animation: none !important; }
}

/* ---------- Host-Menü und Pause ---------- */
.host-card { width: min(440px, 100%); padding: 18px 20px; animation: rise .3s cubic-bezier(.2,.8,.2,1); }
.host-card h2 { font-size: 22px; color: #5b3416; margin: 0; }
.host-actions { display: grid; gap: 4px; margin-top: 12px; }
.host-actions .btn { width: 100%; justify-content: center; font-size: 16px; padding: 10px 14px; margin-top: 8px; }
.host-actions p { margin: 0 2px 4px; }
.btn.danger { --bd: var(--danger); }
#btnHost.pulse { animation: hostPulse 1.4s ease-in-out infinite; }
@keyframes hostPulse { 50% { background: rgba(255, 210, 120, .28); } }
.pause-veil { position: absolute; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(6, 30, 34, .55); backdrop-filter: blur(3px) saturate(.7); animation: fadeIn .25s ease; }
.pause-card { text-align: center; padding: 26px 34px; border-radius: 18px; background: linear-gradient(#fbf1dc, #f0dcb4); border: 2px solid #8a6235; box-shadow: 0 18px 50px rgba(0,0,0,.45); color: #4a2d12; max-width: min(90%, 380px); }
.pause-card h2 { margin: 4px 0 6px; font-size: 30px; letter-spacing: .04em; }
.pause-card p { margin: 0 0 12px; }
.pause-ico { font-size: 44px; line-height: 1; animation: pauseBreath 2.4s ease-in-out infinite; }
@keyframes pauseBreath { 50% { transform: scale(1.12); opacity: .75; } }
@keyframes fadeIn { from { opacity: 0; } }
body.paused #rollFab { display: none; }

/* Eigener Zug: größer und mit goldenem Rand */
.turn-banner.mine { font-size: 34px; padding: 18px 20px; border-top: 3px solid #f4c74f; border-bottom: 3px solid #f4c74f; letter-spacing: .02em; }
.turn-banner.mine .tb-text { text-shadow: 0 2px 0 rgba(0,0,0,.5), 0 0 18px rgba(255,214,120,.65); }
@media (max-width: 700px) { .turn-banner.mine { font-size: 24px; } }
