/* ============================================================
   ALBTRAUM AM CRYSTAL LAKE — Visual Overhaul
   ============================================================ */

* { box-sizing: border-box; }

:root {
  --blood: #a00010;
  --blood-bright: #d4001a;
  --bone: #e8d9b0;
  --parchment: #d9c79a;
  --parchment-dark: #8a7548;
  --ink: #2b1a0a;
  --gold: #c89a3d;
  --gold-bright: #f0c860;
  --fog: rgba(140,140,160,0.08);
}

html, body {
  margin: 0; padding: 0;
  min-height: 100vh;
  font-family: 'Georgia', 'Cinzel', serif;
  color: #e8d9b0;
  background:
    radial-gradient(ellipse at 50% 0%, #2a0808 0%, #0a0506 60%, #000 100%),
    #000;
  overflow-x: hidden;
}

/* ---------------- TITLE / BANNER ---------------- */
.title-banner {
  text-align: center;
  padding: 28px 12px 16px;
  border-bottom: 1px solid #4a1a1a;
  position: relative;
}
.title-banner h1 {
  margin: 0;
  font-size: 3em;
  letter-spacing: 6px;
  color: #f0e0a8;
  text-shadow:
    0 0 18px rgba(200,30,30,0.5),
    2px 2px 0 #000,
    -1px -1px 0 #400;
  font-variant: small-caps;
}
.subtitle {
  margin: 6px 0 0;
  color: var(--gold);
  letter-spacing: 8px;
  font-style: italic;
  text-transform: uppercase;
  font-size: 0.85em;
}

.logo-badge {
  position: fixed;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 1.1em;
  color: #f0e0a8;
  letter-spacing: 3px;
  font-variant: small-caps;
  text-shadow: 0 0 12px rgba(200,30,30,0.6), 2px 2px 0 #000;
  pointer-events: none;
  z-index: 5;
}
.logo-badge span { color: var(--gold); font-size: 0.7em; letter-spacing: 6px; }

.hidden { display: none !important; }

/* ---------------- BUTTONS ---------------- */
button {
  font-family: inherit;
  cursor: pointer;
  background: linear-gradient(180deg, #5a1010 0%, #2a0606 100%);
  color: #f0e0a8;
  border: 1px solid var(--gold);
  padding: 10px 18px;
  font-size: 1em;
  letter-spacing: 2px;
  font-variant: small-caps;
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255,200,100,0.2),
    0 2px 6px rgba(0,0,0,0.6);
  transition: all 0.15s;
}
button:hover:not(:disabled) {
  background: linear-gradient(180deg, #8a1818 0%, #4a0a0a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,200,100,0.3),
    0 0 14px rgba(200,30,30,0.6);
  color: #fff8d0;
}
button:disabled { opacity: 0.35; cursor: not-allowed; filter: grayscale(0.6); }

.big-btn { width: 100%; padding: 14px; font-size: 1.1em; margin: 6px 0; }

/* ---------------- SETUP SCREEN ---------------- */
#setup { padding: 12px 28px 60px; max-width: 1100px; margin: 0 auto; }
#setup h2, #setup h3 { color: var(--gold); letter-spacing: 3px; font-variant: small-caps; }

.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 16px 0;
}
.char-card {
  background: linear-gradient(180deg, #1a0a0a 0%, #0a0404 100%);
  border: 1px solid #4a2020;
  border-radius: 6px;
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.char-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(200,30,30,0.15), transparent 60%);
  pointer-events: none;
}
.char-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(200,30,30,0.4);
  transform: translateY(-2px);
}
.char-card.taken { opacity: 0.25; cursor: not-allowed; filter: grayscale(0.8); }
.char-card .portrait {
  width: 120px; height: 140px;
  margin: 0 auto 10px;
  border-radius: 6px;
  border: 2px solid var(--gold);
  background: #100 center / cover no-repeat;
  box-shadow: 0 0 14px rgba(200,30,30,0.5), inset 0 0 18px rgba(0,0,0,0.5);
}
.char-card h4 {
  margin: 0 0 6px;
  text-align: center;
  color: #f0e0a8;
  letter-spacing: 3px;
  font-variant: small-caps;
}
.char-card .stat-row { display: flex; gap: 6px; justify-content: center; margin: 8px 0; }
.char-card p { margin: 8px 0 0; font-size: 0.85em; color: #b0a080; font-style: italic; text-align: center; }

#chosen-list { list-style: none; padding: 0; }
#chosen-list li { padding: 6px 0; font-size: 1.1em; }
#chosen-list button { padding: 4px 10px; font-size: 0.85em; margin-left: 10px; }

/* ---------------- STAT BADGES (the colored squares) ---------------- */
.stat-badge {
  width: 32px; height: 32px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-weight: bold;
  font-size: 1.1em;
  color: #fff;
  text-shadow: 1px 1px 0 #000, 0 0 4px #000;
  border: 1px solid rgba(0,0,0,0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 1px 2px rgba(0,0,0,0.6);
  font-family: 'Georgia', serif;
}
.stat-badge.str  { background: linear-gradient(180deg, #d02020, #7a0000); }   /* Stärke - rot */
.stat-badge.tal  { background: linear-gradient(180deg, #2060d0, #0a2070); }   /* Talent - blau */
.stat-badge.life { background: linear-gradient(180deg, #30a040, #105020); }   /* Leben - grün */
.stat-badge.san  { background: linear-gradient(180deg, #d0a020, #6a4a00); }   /* Sanity - gelb */

/* ---------------- GAME LAYOUT ---------------- */
#game {
  display: grid;
  grid-template-columns: 240px 1fr 280px;
  gap: 16px;
  padding: 60px 16px 16px;
  min-height: 100vh;
}

/* ---------------- LEFT: PLAYER LIST ---------------- */
#left-panel { display: flex; flex-direction: column; gap: 10px; }

.player-card {
  display: grid;
  grid-template-columns: 60px 1fr;
  grid-template-rows: auto auto;
  gap: 6px 10px;
  background: linear-gradient(180deg, rgba(40,15,15,0.9), rgba(15,5,5,0.95));
  border: 1px solid #4a2020;
  border-radius: 6px;
  padding: 8px;
  position: relative;
  transition: all 0.2s;
}
.player-card.active {
  border-color: var(--gold-bright);
  box-shadow: 0 0 16px rgba(240,200,96,0.5);
  background: linear-gradient(180deg, rgba(60,20,20,0.95), rgba(25,8,8,0.95));
}
.player-card.dead { opacity: 0.35; filter: grayscale(0.9); }
.player-card .portrait {
  grid-row: 1 / 3;
  width: 60px; height: 70px;
  border-radius: 4px;
  border: 2px solid var(--gold);
  background: #100 center / cover no-repeat;
  box-shadow: inset 0 0 12px rgba(0,0,0,0.6);
}
.player-card .player-name {
  font-variant: small-caps;
  letter-spacing: 2px;
  color: #f0e0a8;
  font-size: 1em;
}
.player-card .stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.player-card .stat-badge { width: 100%; height: 28px; font-size: 0.95em; }
.player-card .items-line {
  grid-column: 1 / 3;
  font-size: 0.8em;
  color: #b0a080;
  font-style: italic;
  padding-top: 2px;
  border-top: 1px solid #3a1a1a;
}

/* ---------------- BOARD STAGE ---------------- */
#board-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  perspective: 1400px;
}

#board-wrapper {
  position: relative;
  width: 720px;
  height: 720px;
  transform: rotateX(18deg);
  transform-style: preserve-3d;
  background: url('assets/board.png') center center / cover no-repeat, #000;
  box-shadow: 0 30px 80px rgba(0,0,0,0.9);
}

.fog-layer, .vignette, .center-piece, .logo-badge { display: none !important; }

.fog-layer-old {
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(180,180,200,0.08), transparent 40%),
    radial-gradient(ellipse at 75% 60%, rgba(160,180,200,0.06), transparent 45%),
    radial-gradient(ellipse at 50% 80%, rgba(200,160,160,0.05), transparent 50%);
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate(-8px, -4px) scale(1); opacity: 0.8; }
  to   { transform: translate(8px, 6px) scale(1.05); opacity: 1; }
}

.vignette {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 55%, rgba(0,0,0,0.6) 90%, rgba(0,0,0,0.9) 100%);
  pointer-events: none;
}

#board { position: absolute; inset: 0; }

.board-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.board-svg .cell {
  pointer-events: auto;
  fill: rgba(0,0,0,0.08);
  stroke: rgba(220,180,90,0.4);
  stroke-width: 1.2;
  transition: fill 0.2s;
}
.board-svg .cell.ring-outer  { fill: rgba(0,0,0,0.10);   stroke: rgba(220,200,140,0.35); }
.board-svg .cell.ring-middle { fill: rgba(0,0,0,0.10);   stroke: rgba(220,200,140,0.35); }
.board-svg .cell.ring-inner  { fill: rgba(0,0,0,0.10);   stroke: rgba(220,200,140,0.35); }
.board-svg .cell.type-haven  { fill: rgba(40,120,60,0.14); }
.board-svg .cell.type-shop   { fill: rgba(180,140,40,0.14); }
.board-svg .cell.type-danger { fill: rgba(140,20,20,0.18); }
.board-svg .cell.movable {
  fill: rgba(255,210,90,0.45);
  stroke: #ffe080;
  stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(255,200,80,0.9));
  cursor: pointer;
  animation: cellPulse 1s ease-in-out infinite alternate;
}
@keyframes cellPulse {
  from { fill: rgba(255,210,90,0.35); filter: drop-shadow(0 0 6px rgba(255,200,80,0.7)); }
  to   { fill: rgba(255,230,140,0.55); filter: drop-shadow(0 0 14px rgba(255,220,120,1)); }
}

.cell-overlay {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
  text-align: center;
}
.cell-overlay.movable { cursor: pointer; pointer-events: auto; }
.cell-overlay img {
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.95));
}
.cell-label {
  font-size: 8px;
  font-variant: small-caps;
  letter-spacing: 1px;
  color: #f0e0a8;
  text-shadow: 1px 1px 0 #000, 0 0 4px #000, 0 0 6px #000;
  margin-top: 1px;
  white-space: nowrap;
  background: rgba(0,0,0,0.55);
  padding: 1px 5px;
  border-radius: 2px;
  border: 1px solid rgba(200,160,80,0.35);
}
.cell-tokens {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  margin-top: 4px;
  flex-wrap: wrap;
  max-width: 140px;
  min-height: 76px;
}
.cell-tokens .token.figure,
.board-figure {
  position: relative;
  width: 50px;
  height: 76px;
  background: transparent;
  border: none;
  display: inline-block;
  filter: drop-shadow(3px 7px 6px rgba(0,0,0,0.95));
}
.board-figure {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 50;
  pointer-events: none;
}
.board-figure .figure-body,
.cell-tokens .token.figure .figure-body {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) perspective(80px) rotateX(6deg);
  width: 46px;
  height: 60px;
  border-radius: 23px 23px 8px 8px;
  background: #000 center / cover no-repeat;
  border: 3px solid var(--col);
  box-shadow:
    inset 0 -16px 22px rgba(0,0,0,0.6),
    inset 0 6px 10px rgba(255,255,255,0.25),
    0 0 12px var(--col),
    0 0 0 1px rgba(0,0,0,0.6);
}
.board-figure .figure-base,
.cell-tokens .token.figure .figure-base {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 25%,
    rgba(255,255,255,0.8) 0%,
    var(--col) 25%,
    #1a1a1a 85%);
  border: 1px solid #000;
  box-shadow:
    0 5px 9px rgba(0,0,0,0.95),
    inset 0 2px 3px rgba(255,255,255,0.45),
    inset 0 -4px 5px rgba(0,0,0,0.6);
}
.cell-tokens .token.figure .figure-body {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) perspective(80px) rotateX(6deg);
  width: 46px;
  height: 60px;
  border-radius: 23px 23px 8px 8px;
  background: #000 center / cover no-repeat;
  border: 3px solid var(--col);
  box-shadow:
    inset 0 -16px 22px rgba(0,0,0,0.6),
    inset 0 6px 10px rgba(255,255,255,0.25),
    0 0 12px var(--col),
    0 0 0 1px rgba(0,0,0,0.6);
}
.cell-tokens .token.figure .figure-base {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 25%,
      rgba(255,255,255,0.8) 0%,
      var(--col) 25%,
      #1a1a1a 85%);
  border: 1px solid #000;
  box-shadow:
    0 5px 9px rgba(0,0,0,0.95),
    inset 0 2px 3px rgba(255,255,255,0.45),
    inset 0 -4px 5px rgba(0,0,0,0.6);
}
.cell-tokens .token.figure .figure-base::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 50%;
  transform: translateX(-50%);
  width: 42px; height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  filter: blur(3px);
}

.board-svg .cell.center-cell {
  fill: radial-gradient(#a02020, #200000);
  fill: rgba(120,0,0,0.35);
  stroke: #ff4040;
  stroke-width: 3;
  filter: drop-shadow(0 0 16px rgba(255,40,40,0.6));
}
.cell-overlay.center-overlay {
  width: 130px;
}
.center-boss-img {
  width: 84px; height: 84px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #ff4040;
  box-shadow: 0 0 20px rgba(255,40,40,0.9), inset 0 0 12px rgba(0,0,0,0.5);
  display: block;
  margin: 0 auto;
  animation: hellPulse 2.5s ease-in-out infinite alternate;
}
.center-label {
  background: rgba(80,0,0,0.85) !important;
  color: #ffd0c0 !important;
  border-color: #ff6040 !important;
  font-size: 11px !important;
  letter-spacing: 2px !important;
}

.boss-token {
  width: 52px; height: 52px;
  z-index: 10;
}
.boss-token.chuck-token {
  border: 3px solid #c060e0;
  box-shadow:
    0 0 18px rgba(200,80,255,0.95),
    inset 0 0 12px rgba(0,0,0,0.6);
  animation: chuckPulse 1.1s ease-in-out infinite alternate;
}
@keyframes chuckPulse {
  from { box-shadow: 0 0 12px rgba(200,80,255,0.6),  inset 0 0 10px rgba(0,0,0,0.6); transform: translate(-50%, -50%) scale(1); }
  to   { box-shadow: 0 0 28px rgba(220,120,255,1),   inset 0 0 12px rgba(0,0,0,0.6); transform: translate(-50%, -50%) scale(1.08); }
}

/* shared enemy token base */
.enemy-token {
  position: absolute;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: #100;
  z-index: 9;
  transform: translate(-50%, -50%);
  pointer-events: none;
  overflow: hidden;
}
.enemy-token img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

/* ============ CHARACTER CREATOR ============ */
#modal.creator-modal #modal-content {
  background:
    radial-gradient(ellipse at top, #2a0a0a, #0a0303 70%),
    #0a0303;
  border: 3px solid #c89a3d;
  max-width: 720px;
  width: 95%;
  padding: 0;
  overflow: hidden;
}
#modal.creator-modal #modal-content::before {
  border-color: rgba(200,154,61,0.4);
}
.cc-wrap { padding: 18px 24px 14px; color: #f0e0a8; }
.cc-title {
  margin: 0 0 14px;
  text-align: center;
  color: #f0e0a8;
  font-variant: small-caps;
  letter-spacing: 4px;
  font-size: 1.6em;
  border-bottom: 1px solid #5a3a18;
  padding-bottom: 10px;
  text-shadow: 0 0 12px rgba(200,30,30,0.5), 2px 2px 0 #000;
}
.cc-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
}
.cc-photo-col { display: flex; flex-direction: column; align-items: center; }
.cc-photo-frame {
  position: relative;
  border: 3px solid #c89a3d;
  border-radius: 6px;
  background: #000;
  box-shadow: 0 0 16px rgba(200,30,30,0.5), inset 0 0 24px rgba(0,0,0,0.8);
  overflow: hidden;
}
.cc-photo-frame canvas {
  display: block;
  width: 220px; height: 280px;
}
.cc-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(120,0,0,0.05), transparent 40%, rgba(0,0,0,0.4));
  pointer-events: none;
}
.cc-file-btn {
  display: inline-block;
  margin-top: 10px;
  background: linear-gradient(180deg, #5a1010, #2a0606);
  color: #f0e0a8;
  border: 1px solid #c89a3d;
  padding: 8px 16px;
  cursor: pointer;
  letter-spacing: 2px;
  font-variant: small-caps;
  border-radius: 4px;
  font-family: 'Georgia', serif;
  transition: all 0.15s;
  text-align: center;
  font-size: 0.9em;
}
.cc-file-btn:hover {
  background: linear-gradient(180deg, #8a1818, #4a0a0a);
  box-shadow: 0 0 12px rgba(200,30,30,0.7);
}
.cc-file-btn input[type=file] { display: none; }
.cc-hint {
  font-size: 0.75em;
  font-style: italic;
  text-align: center;
  margin: 6px 0 0;
  color: #b0a080;
}

.cc-stats-col { display: flex; flex-direction: column; }
.cc-label {
  display: block;
  font-variant: small-caps;
  letter-spacing: 2px;
  font-size: 0.85em;
  color: #c89a3d;
  margin-bottom: 4px;
}
.cc-input {
  width: 100%;
  background: #1a0606;
  color: #f0e0a8;
  border: 1px solid #5a3a18;
  border-radius: 4px;
  padding: 8px 10px;
  font-family: 'Georgia', serif;
  font-size: 1em;
  margin-bottom: 14px;
  letter-spacing: 1px;
  transition: all 0.15s;
}
.cc-input:focus {
  outline: none;
  border-color: #c89a3d;
  box-shadow: 0 0 8px rgba(200,154,61,0.5);
}
.cc-input::placeholder { color: #5a4a30; font-style: italic; }

.cc-points {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(40,15,15,0.6);
  border: 1px solid #5a3a18;
  border-radius: 4px;
  padding: 8px 14px;
  margin-bottom: 14px;
}
.cc-points-label {
  font-variant: small-caps;
  letter-spacing: 2px;
  font-size: 0.85em;
  color: #c89a3d;
}
.cc-points-value {
  font-size: 1.4em;
  font-weight: bold;
  color: #f0e0a8;
}
.cc-points-value small { font-size: 0.6em; color: #8a7548; }

.cc-slider-row { margin-bottom: 10px; }
.cc-slider-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.cc-slider-header .stat-badge {
  width: 26px; height: 26px;
  font-size: 0.9em;
}
.cc-stat-name {
  flex: 1;
  font-variant: small-caps;
  letter-spacing: 1px;
  color: #f0e0a8;
}
.cc-stat-val {
  font-size: 1.3em;
  font-weight: bold;
  color: #c89a3d;
  min-width: 24px;
  text-align: right;
}

.cc-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: linear-gradient(90deg, #1a0606 0%, #5a1010 50%, #8a1818 100%);
  border-radius: 4px;
  outline: none;
  border: 1px solid #5a3a18;
  cursor: pointer;
}
.cc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f0e0a8, #c89a3d 70%, #5a3a18);
  border: 2px solid #2a0606;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(200,154,61,0.7), 0 2px 4px rgba(0,0,0,0.8);
}
.cc-slider::-moz-range-thumb {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #f0e0a8, #c89a3d 70%, #5a3a18);
  border: 2px solid #2a0606;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(200,154,61,0.7);
}
.cc-slider.str { background: linear-gradient(90deg, #1a0606, #7a0000); }
.cc-slider.tal { background: linear-gradient(90deg, #0a1030, #2060d0); }
.cc-slider.life { background: linear-gradient(90deg, #0a3010, #30a040); }

.cc-quick-btns {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.cc-quick-btn {
  flex: 1;
  background: linear-gradient(180deg, #3a1818, #1a0606);
  color: #f0e0a8;
  border: 1px solid #5a3a18;
  padding: 8px;
  cursor: pointer;
  font-family: 'Georgia', serif;
  letter-spacing: 1px;
  font-variant: small-caps;
  border-radius: 4px;
  font-size: 0.9em;
  transition: all 0.15s;
}
.cc-quick-btn:hover {
  border-color: #c89a3d;
  background: linear-gradient(180deg, #5a2020, #2a0a0a);
  box-shadow: 0 0 8px rgba(200,154,61,0.4);
}

.cc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #5a3a18;
  padding: 14px 24px;
  background: rgba(20,8,8,0.6);
}
.cc-btn {
  padding: 10px 24px;
  font-variant: small-caps;
  letter-spacing: 3px;
  font-size: 1em;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'Georgia', serif;
}
.cc-btn.cancel {
  background: transparent;
  color: #8a7548;
  border: 1px solid #5a3a18;
}
.cc-btn.cancel:hover { color: #c89a3d; border-color: #c89a3d; }
.cc-btn.confirm {
  background: linear-gradient(180deg, #8a1818, #4a0a0a);
  color: #fff8d0;
  border: 1px solid #c89a3d;
  font-weight: bold;
}
.cc-btn.confirm:hover:not(:disabled) {
  background: linear-gradient(180deg, #c02020, #6a1010);
  box-shadow: 0 0 16px rgba(255,80,80,0.6);
}
.cc-btn.confirm:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.choice-btn {
  background: linear-gradient(180deg, #f4e0a6 0%, #d9b86f 100%);
  color: #2b1a0a;
  border: 2px solid #5a3a18;
  border-radius: 6px;
  padding: 12px;
  text-align: center;
  font-family: 'Georgia', serif;
  cursor: pointer;
  transition: all 0.15s;
  width: 100%;
}
.choice-btn:hover {
  background: linear-gradient(180deg, #f8e8b0 0%, #e0c478 100%);
  border-color: #c89a3d;
  box-shadow: 0 0 14px rgba(200,154,61,0.6);
  transform: translateY(-1px);
}

.trade-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
  padding: 4px;
  background: rgba(40,15,15,0.4);
  border-radius: 4px;
}
.trade-pick {
  display: block;
  width: 100%;
  background: rgba(60,30,10,0.85);
  border: 2px solid #5a3a18;
  color: #f0e0a8;
  padding: 6px;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.85em;
}
.trade-pick:hover { background: rgba(90,50,20,0.95); border-color: #c89a3d; }
.trade-pick.selected {
  background: rgba(200,154,61,0.45);
  border-color: #ffe080;
  box-shadow: 0 0 12px rgba(255,220,120,0.85);
}
.trade-pick img {
  width: 60px; height: 60px;
  object-fit: cover;
  display: block;
  margin: 0 auto 4px;
  border: 1px solid #5a3a18;
  border-radius: 3px;
}

.loot-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  font-size: 22px;
  z-index: 8;
  filter: drop-shadow(0 0 6px rgba(255,210,80,0.95));
  animation: lootGlow 1.5s ease-in-out infinite alternate;
  pointer-events: none;
  text-shadow: 0 0 4px rgba(255,200,80,0.95), 0 0 8px rgba(0,0,0,0.95);
}
.loot-marker .loot-count {
  position: absolute;
  top: -6px; right: -10px;
  font-size: 10px;
  background: #5a3a18;
  color: #f0e0a8;
  border-radius: 50%;
  padding: 1px 5px;
  border: 1px solid #c89a3d;
  font-family: 'Georgia', serif;
  text-shadow: none;
}
@keyframes lootGlow {
  from { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 4px rgba(255,200,80,0.7)); }
  to   { transform: translate(-50%, -50%) scale(1.12); filter: drop-shadow(0 0 14px rgba(255,230,140,1)); }
}

.pennywise-token {
  width: 52px; height: 52px;
  border: 3px solid #d02020;
  box-shadow:
    0 0 22px rgba(255,80,80,0.95),
    0 0 38px rgba(255,255,255,0.55),
    inset 0 0 12px rgba(0,0,0,0.5);
  animation: pennyPulse 1.3s ease-in-out infinite alternate;
}
@keyframes pennyPulse {
  from { box-shadow: 0 0 16px rgba(255,80,80,0.7), 0 0 26px rgba(255,255,255,0.4), inset 0 0 10px rgba(0,0,0,0.6); transform: translate(-50%, -50%) scale(1); }
  to   { box-shadow: 0 0 32px rgba(255,120,120,1), 0 0 50px rgba(255,255,255,0.85), inset 0 0 12px rgba(0,0,0,0.6); transform: translate(-50%, -50%) scale(1.08); }
}

.joker-token {
  border: 3px solid #50d050;
  box-shadow:
    0 0 20px rgba(120,255,120,0.95),
    0 0 32px rgba(180,80,200,0.7),
    inset 0 0 12px rgba(0,0,0,0.5);
  animation: jokerPulse 1.2s ease-in-out infinite alternate;
}
@keyframes jokerPulse {
  from { box-shadow: 0 0 14px rgba(120,255,120,0.6), 0 0 22px rgba(180,80,200,0.5), inset 0 0 10px rgba(0,0,0,0.6); transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
  to   { box-shadow: 0 0 28px rgba(150,255,150,1),   0 0 40px rgba(220,120,240,0.95), inset 0 0 12px rgba(0,0,0,0.6); transform: translate(-50%, -50%) scale(1.1) rotate(3deg); }
}

.scream-token {
  width: 44px; height: 44px;
  border: 3px solid #ff2020;
  box-shadow:
    0 0 16px rgba(255,30,30,0.95),
    inset 0 0 12px rgba(0,0,0,0.6);
  animation: screamPulse 0.9s ease-in-out infinite alternate;
}
@keyframes screamPulse {
  from { box-shadow: 0 0 12px rgba(255,30,30,0.7), inset 0 0 10px rgba(0,0,0,0.6); transform: translate(-50%, -50%) scale(1); }
  to   { box-shadow: 0 0 26px rgba(255,80,80,1),   inset 0 0 12px rgba(0,0,0,0.6); transform: translate(-50%, -50%) scale(1.08); }
}

/* ---------------- TILES ---------------- */
.tile {
  position: absolute;
  width: 84px; height: 84px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center; justify-content: flex-end;
  color: #fff;
  text-shadow: 1px 1px 2px #000, 0 0 4px #000;
  transform: translate(-50%, -50%);
  border: 3px solid #2a1408;
  background: #1a0a0a center / 78% no-repeat;
  box-shadow:
    inset 0 0 0 1px rgba(200,160,80,0.45),
    inset 0 0 24px rgba(0,0,0,0.7),
    0 4px 10px rgba(0,0,0,0.85);
  transition: all 0.15s;
  cursor: default;
  overflow: hidden;
}
.tile::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, transparent 30%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.tile .tile-label {
  position: relative;
  z-index: 2;
  font-size: 0.62em;
  letter-spacing: 1px;
  font-variant: small-caps;
  background: rgba(0,0,0,0.65);
  padding: 1px 6px;
  margin-bottom: 3px;
  border-radius: 3px;
  color: #f0e0a8;
  border: 1px solid rgba(200,160,80,0.5);
}
.tile.type-adventure { background-image: url('assets/tile-adventure.png'); }
.tile.type-haven     { background-image: url('assets/tile-haven.png'); }
.tile.type-shop      { background-image: url('assets/tile-shop.png'); }
.tile.type-danger    { background-image: url('assets/tile-danger.png'); }

.tile.ring-outer  { box-shadow: inset 0 0 0 1px rgba(120,200,120,0.5), inset 0 0 24px rgba(0,30,10,0.7), 0 4px 10px rgba(0,0,0,0.85); }
.tile.ring-middle { box-shadow: inset 0 0 0 1px rgba(180,120,220,0.5), inset 0 0 24px rgba(30,0,40,0.7), 0 4px 10px rgba(0,0,0,0.85); }
.tile.ring-inner  { box-shadow: inset 0 0 0 1px rgba(255,80,80,0.6),   inset 0 0 24px rgba(60,0,0,0.75), 0 4px 12px rgba(0,0,0,0.9); }

.tile.movable {
  cursor: pointer;
  animation: tilePulse 0.9s ease-in-out infinite alternate;
  z-index: 5;
  border-color: var(--gold-bright);
}
@keyframes tilePulse {
  from { box-shadow: 0 0 14px 2px rgba(240,200,80,0.8), inset 0 0 0 1px rgba(255,220,120,0.6); transform: translate(-50%, -50%) scale(1); }
  to   { box-shadow: 0 0 28px 8px rgba(255,220,100,1),  inset 0 0 0 1px rgba(255,240,180,0.9); transform: translate(-50%, -50%) scale(1.06); }
}
.tile.movable:hover { transform: translate(-50%, -50%) scale(1.12); }

.token {
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid #fff;
  top: 4px; left: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.9), inset 0 1px 2px rgba(255,255,255,0.5);
  z-index: 6;
}

/* ---------------- CENTER PIECE ---------------- */
.center-piece {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 180px; height: 180px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, #d02020 0%, #800010 35%, #300006 75%, #100 100%);
  border: 4px solid var(--gold);
  box-shadow:
    0 0 40px rgba(200,30,30,0.7),
    inset 0 0 40px rgba(0,0,0,0.7),
    inset 0 0 80px rgba(255,80,40,0.4);
  display: flex; align-items: center; justify-content: center;
  animation: hellPulse 3s ease-in-out infinite alternate;
}
@keyframes hellPulse {
  from { box-shadow: 0 0 30px rgba(200,30,30,0.6), inset 0 0 40px rgba(0,0,0,0.7), inset 0 0 80px rgba(255,80,40,0.3); }
  to   { box-shadow: 0 0 60px rgba(255,60,40,0.9), inset 0 0 40px rgba(0,0,0,0.7), inset 0 0 100px rgba(255,120,60,0.55); }
}
.center-inner { text-align: center; }
.center-title {
  font-variant: small-caps;
  letter-spacing: 3px;
  font-size: 1.05em;
  color: #fff8d0;
  text-shadow: 0 0 12px rgba(255,100,50,0.9), 2px 2px 0 #000;
}
.center-sub {
  font-size: 0.75em;
  color: #f8c0a0;
  font-style: italic;
  letter-spacing: 1px;
  margin-top: 4px;
  text-shadow: 1px 1px 0 #000;
}

/* ---------------- CARD DISPLAY (under board) ---------------- */
#card-display {
  width: 600px;
  min-height: 110px;
  padding: 14px 24px;
  background:
    linear-gradient(180deg, rgba(220,200,150,0.95), rgba(180,160,110,0.95)),
    #c8b078;
  color: var(--ink);
  border: 3px solid #5a3a18;
  border-radius: 6px;
  box-shadow:
    0 8px 24px rgba(0,0,0,0.8),
    inset 0 0 24px rgba(120,80,30,0.3);
  font-family: 'Georgia', serif;
  position: relative;
}
#card-display::before {
  content: '';
  position: absolute; inset: 4px;
  border: 1px solid rgba(90,60,20,0.4);
  border-radius: 4px;
  pointer-events: none;
}
#card-title {
  text-align: center;
  font-variant: small-caps;
  letter-spacing: 4px;
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 6px;
  color: #3a1a08;
  border-bottom: 1px solid rgba(90,60,20,0.4);
  padding-bottom: 6px;
}
#card-body { font-size: 0.95em; line-height: 1.5; }
#card-body .card-icon { font-size: 2.5em; float: left; margin: 0 12px 4px 0; line-height: 1; }

/* ---------------- RIGHT PANEL ---------------- */
#right-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(180deg, rgba(40,15,15,0.85), rgba(15,5,5,0.95));
  border: 1px solid #4a2020;
  border-radius: 6px;
  padding: 14px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
.panel-section h4 {
  margin: 8px 0 6px;
  color: var(--gold);
  letter-spacing: 3px;
  font-variant: small-caps;
  border-bottom: 1px solid #4a2020;
  padding-bottom: 4px;
}
.turn-label {
  font-size: 0.75em;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  text-align: center;
}
#current-player-name {
  font-size: 1.4em;
  font-variant: small-caps;
  letter-spacing: 3px;
  text-align: center;
  color: #f0e0a8;
  text-shadow: 0 0 8px rgba(200,30,30,0.5);
}

#dice-display {
  font-size: 3em;
  text-align: center;
  padding: 14px;
  margin: 4px 0;
  background: radial-gradient(circle, #2a0a0a, #100);
  border: 2px solid var(--gold);
  border-radius: 8px;
  color: #f0e0a8;
  font-weight: bold;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8), 0 0 12px rgba(200,30,30,0.3);
  font-family: 'Georgia', serif;
}
#move-hint {
  font-style: italic;
  color: #b0a080;
  text-align: center;
  font-size: 0.9em;
  padding: 4px;
}

#inventory-list { list-style: none; padding: 0; margin: 0; font-size: 0.9em; }
#inventory-list li { padding: 4px 6px; border-bottom: 1px dashed #3a1a1a; }
#inventory-list li::before { content: '◆ '; color: var(--gold); }

#log {
  background: #0a0303;
  border: 1px solid #3a1a1a;
  padding: 8px;
  height: 180px;
  overflow-y: auto;
  font-family: 'Courier New', monospace;
  font-size: 0.78em;
  border-radius: 4px;
  color: #c0a890;
}
#log .entry {
  margin-bottom: 4px;
  padding-bottom: 3px;
  border-bottom: 1px dashed #2a1010;
  line-height: 1.4;
}
#log .entry:first-child { color: #f0e0a8; }

/* ---------------- MODAL ---------------- */
#modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  backdrop-filter: blur(4px);
}
#modal-content {
  background:
    linear-gradient(180deg, rgba(220,200,150,0.97), rgba(180,160,110,0.97));
  color: var(--ink);
  border: 3px solid #5a3a18;
  border-radius: 8px;
  padding: 24px;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 0 60px rgba(200,30,30,0.5);
  position: relative;
}
#modal-content::before {
  content: '';
  position: absolute; inset: 6px;
  border: 1px solid rgba(90,60,20,0.4);
  border-radius: 4px;
  pointer-events: none;
}
#modal-content h2 {
  margin-top: 0;
  text-align: center;
  font-variant: small-caps;
  letter-spacing: 4px;
  color: #5a0808;
  border-bottom: 1px solid rgba(90,60,20,0.4);
  padding-bottom: 8px;
}
#modal-content p { font-size: 1em; line-height: 1.5; }
#modal-content button {
  background: linear-gradient(180deg, #5a1010, #2a0606);
  color: #f0e0a8;
  margin: 4px;
}

/* ===== GAME CARD (Talisman-Stil) ===== */
.game-card {
  width: 180px;
  background:
    linear-gradient(180deg, rgba(245,225,170,0.96) 0%, rgba(215,185,115,0.96) 100%),
    radial-gradient(circle at 30% 20%, rgba(255,240,200,0.5), transparent 60%);
  border: 3px solid #5a3a18;
  border-radius: 10px;
  padding: 8px;
  margin: 10px auto;
  position: relative;
  box-shadow:
    0 6px 16px rgba(0,0,0,0.85),
    inset 0 0 24px rgba(120,80,30,0.25);
  color: #2b1a0a;
  font-family: 'Georgia', serif;
  display: flex;
  flex-direction: column;
}
.game-card.big { width: 240px; padding: 10px; }
.game-card::before {
  content: '';
  position: absolute; inset: 4px;
  border: 1px solid rgba(90, 60, 20, 0.55);
  border-radius: 7px;
  pointer-events: none;
}
.game-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,200,0.3), transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(50,20,5,0.3), transparent 50%);
  border-radius: 10px;
  pointer-events: none;
}

.game-card-name {
  background: linear-gradient(180deg, #7a1414 0%, #3a0606 100%);
  color: #f0e0a8;
  font-variant: small-caps;
  letter-spacing: 2px;
  text-align: center;
  padding: 5px 8px;
  border: 1px solid #c89a3d;
  border-radius: 4px;
  margin-bottom: 6px;
  font-weight: bold;
  text-shadow: 1px 1px 0 #000;
  position: relative;
  z-index: 1;
  font-size: 0.95em;
}
.game-card.big .game-card-name { font-size: 1.1em; }

.game-card-img-wrap {
  background: #0a0303;
  border: 2px solid #5a3a18;
  border-radius: 4px;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: inset 0 0 14px rgba(0,0,0,0.7);
}
.game-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.game-card-emoji {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4em;
  background: radial-gradient(circle, #2a0a0a, #100);
  color: #f0e0a8;
}

.game-card-bonuses {
  background: rgba(255,250,220,0.55);
  border: 1px solid rgba(90,60,20,0.4);
  border-radius: 4px;
  padding: 4px 6px;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}
.card-bonus-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88em;
  padding: 2px 0;
  font-weight: bold;
}
.card-bonus-row .stat-badge {
  width: 26px; height: 26px;
  font-size: 0.9em;
  flex-shrink: 0;
}
.card-bonus-row.card-bonus-text { color: #5a0808; font-style: italic; justify-content: center; }

.game-card-desc {
  font-style: italic;
  font-size: 0.78em;
  color: #4a2a0a;
  margin-top: 6px;
  text-align: center;
  line-height: 1.3;
  position: relative;
  z-index: 1;
  padding: 0 4px;
}

.game-card-type-tag {
  position: absolute;
  bottom: -8px;
  right: 12px;
  background: #5a3a18;
  color: #f0e0a8;
  font-size: 0.65em;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 1px;
  font-variant: small-caps;
  border: 1px solid #c89a3d;
  z-index: 2;
}

/* Kind-spezifische Banner-Farben */
.game-card.kind-companion .game-card-name { background: linear-gradient(180deg, #1a4a7a 0%, #061a3a 100%); }
.game-card.kind-upgrade   .game-card-name { background: linear-gradient(180deg, #2a7a2a 0%, #063a06 100%); }
.game-card.kind-event     .game-card-name { background: linear-gradient(180deg, #6a1a6a 0%, #2a062a 100%); }
.game-card.kind-monster   .game-card-name,
.game-card.kind-scream    .game-card-name,
.game-card.kind-joker     .game-card-name { background: linear-gradient(180deg, #5a0606 0%, #200 100%); }

/* Ring-spezifische seitliche Border-Akzente */
.game-card.ring-outer  { border-color: #3a5a20; }
.game-card.ring-middle { border-color: #4a1a5a; }
.game-card.ring-inner  { border-color: #6a0a0a; }

.fight-result {
  padding: 14px;
  margin: 12px 0;
  text-align: center;
  font-weight: bold;
  font-size: 1.2em;
  font-variant: small-caps;
  letter-spacing: 3px;
  border-radius: 4px;
}
.fight-result.win  { background: #1a4020; color: #c0ffc0; border: 1px solid #40a040; }
.fight-result.lose { background: #4a1010; color: #ffc0c0; border: 1px solid #a04040; }
.fight-result.tie  { background: #4a4010; color: #ffe080; border: 1px solid #a08040; }

/* ---------------- DICE ROLL UI ---------------- */
.dice-roll-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 16px 0;
}
.dice-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 180px;
}
.dice-cell-label {
  font-variant: small-caps;
  letter-spacing: 2px;
  font-size: 0.85em;
  color: #5a0808;
  font-weight: bold;
  margin-bottom: 4px;
  text-align: center;
}
.dice-cell-stat {
  font-size: 1.1em;
  color: #3a1a08;
  font-weight: bold;
}
.dice-cell-die {
  width: 72px;
  height: 72px;
  margin-top: 6px;
  border: 3px solid #5a3a18;
  border-radius: 12px;
  background: radial-gradient(circle at 35% 30%, #fff, #d0c090 70%, #8a7548);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6em;
  font-weight: bold;
  color: #3a1a08;
  text-shadow: 1px 1px 0 #c0a880;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5), inset 0 -3px 6px rgba(0,0,0,0.2);
  font-family: 'Georgia', serif;
}
.dice-cell-die.rolling {
  animation: dieShake 0.12s linear infinite;
  background: radial-gradient(circle at 35% 30%, #fff, #ffd070 70%, #c08040);
  color: #500;
}
.dice-cell-die.settled {
  animation: dieSettle 0.4s ease-out;
  box-shadow:
    0 4px 10px rgba(0,0,0,0.5),
    inset 0 -3px 6px rgba(0,0,0,0.2),
    0 0 18px rgba(255,200,80,0.7);
}
@keyframes dieShake {
  0%   { transform: translate(-2px, -1px) rotate(-4deg); }
  25%  { transform: translate(2px, 1px)   rotate(3deg); }
  50%  { transform: translate(-1px, 2px)  rotate(-2deg); }
  75%  { transform: translate(1px, -2px)  rotate(5deg); }
  100% { transform: translate(-2px, 1px)  rotate(-3deg); }
}
@keyframes dieSettle {
  from { transform: scale(1.3) rotate(8deg); }
  to   { transform: scale(1) rotate(0); }
}
.dice-cell-vs {
  font-variant: small-caps;
  letter-spacing: 3px;
  font-weight: bold;
  color: #800;
  font-size: 1.4em;
  text-shadow: 1px 1px 0 #c0a880;
}
.dice-btn {
  font-size: 1.2em !important;
  padding: 14px 28px !important;
  letter-spacing: 3px !important;
}

/* ---------------- CHARACTER DETAIL MODAL ---------------- */
.player-card.clickable { cursor: pointer; }
.player-card.clickable:hover { box-shadow: 0 0 12px rgba(240,200,96,0.55); }

.char-detail-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 12px 0;
}
.char-detail-portrait {
  width: 120px;
  height: 140px;
  object-fit: cover;
  border: 3px solid;
  border-radius: 6px;
  background: #000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.7);
}
.char-detail-stats { flex: 1; }
.char-stat-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9em;
  color: #3a1a08;
}
.char-section-h {
  margin: 14px 0 6px;
  color: #5a0808;
  letter-spacing: 3px;
  font-variant: small-caps;
  border-bottom: 1px solid rgba(90,60,20,0.4);
  padding-bottom: 4px;
  font-size: 1.05em;
}
.char-detail-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}
.char-item-row {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(90,60,20,0.15);
  border: 1px solid rgba(90,60,20,0.35);
  border-radius: 4px;
  padding: 6px 8px;
}
.char-item-img {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.char-item-img img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #5a3a18;
  background: #000;
}
.char-item-emoji { font-size: 1.8em; }
.char-item-info { flex: 1; min-width: 0; }
.char-item-name {
  font-weight: bold;
  color: #3a1a08;
  font-size: 0.95em;
}
.char-item-bonus {
  font-size: 0.8em;
  color: #5a0808;
  font-variant: small-caps;
  letter-spacing: 1px;
  margin-top: 1px;
}
.char-item-desc {
  font-size: 0.75em;
  color: #5a3a18;
  font-style: italic;
  margin-top: 2px;
}
.char-empty {
  text-align: center;
  font-style: italic;
  color: #7a5a30;
  font-size: 0.85em;
  padding: 8px;
}

/* ============================================================
   READABILITY OVERHAUL — größere, hellere, weiße Schrift
   ============================================================ */

/* Basis-Schriftgröße erhöhen */
html { font-size: 17px; }

/* Alle Texte auf hell/weiß */
body { color: #ffffff !important; }

/* Spieler-Panel links */
.player-name { font-size: 1.1em !important; font-weight: bold; letter-spacing: 1px; color: #ffffff !important; }
.player-card .items-line { font-size: 0.95em !important; color: #e0d0a8 !important; }
.player-card .stat-badge { font-size: 1.05em !important; height: 32px !important; }
.player-card .stat-row { gap: 5px; }

/* Rechtes Panel */
.turn-label { font-size: 0.95em !important; color: #f0c860 !important; opacity: 1 !important; }
#current-player-name { font-size: 1.35em !important; font-weight: bold; letter-spacing: 2px; color: #ffffff !important; }
#move-hint { font-size: 1em !important; color: #e8d0a0 !important; }
#inventory-list { font-size: 1em !important; }
#inventory-list li { color: #ffffff !important; padding: 5px 6px !important; }
.panel-section h4 { font-size: 1.05em !important; color: #f0c860 !important; }

/* Log */
#log { font-size: 0.9em !important; color: #e0d0a8 !important; }
#log .entry { color: #ddd !important; }
#log .entry:first-child { color: #ffffff !important; }

/* Board-Felder Text */
.cell-label { font-size: 0.85em !important; color: #ffffff !important; text-shadow: 1px 1px 3px #000, 0 0 6px #000 !important; font-weight: bold !important; }
.center-label { font-size: 1em !important; color: #ffffff !important; }

/* Charakter-Karten (Setup) */
.char-card h4 { font-size: 1.05em !important; color: #ffffff !important; }
.char-card p  { font-size: 0.9em !important;  color: #e0d0b0 !important; }

/* Modal — dunkler Hintergrund, weißer Text */
#modal-content {
  background: linear-gradient(180deg, #1a0808 0%, #0d0404 100%) !important;
  color: #ffffff !important;
  border-color: #c89a3d !important;
}
#modal-content h2 { color: #f0c860 !important; font-size: 1.4em !important; }
#modal-content h3 { color: #f0c860 !important; font-size: 1.15em !important; }
#modal-content p  { color: #ffffff !important; font-size: 1em !important; }
#modal-content small { color: #e0d0a8 !important; font-size: 0.88em !important; }
/* Override inline dark-brown colors inside modals */
#modal-content [style*="color:#d0b880"],
#modal-content [style*="color: #5a3a18"] { color: #d0b880 !important; }
#modal-content [style*="color:#d8c088"],
#modal-content [style*="color:#888"]     { color: #c0b090 !important; }
#modal-content [style*="color:#c0a870"] { color: #c0b080 !important; }

/* Karten-Anzeige unterm Brett */
#card-title { color: #ffffff !important; font-size: 1.3em !important; }
#card-body  { color: #1a0a00 !important; font-size: 1em !important; }

/* Char-Detail Modal */
.char-section-h  { color: #f0c860 !important; font-size: 1.05em !important; }
.char-item-name  { color: #ffffff !important; font-size: 1em !important; }
.char-item-bonus { color: #f0c860 !important; font-size: 0.9em !important; }
.char-item-desc  { color: #d0c090 !important; font-size: 0.88em !important; }
.char-empty      { color: #c0b080 !important; font-size: 0.95em !important; }
.char-detail-stats span { color: #e0d0a8 !important; font-size: 0.95em !important; }

/* Kampf-Ergebnis */
.fight-result { font-size: 1.15em !important; }
.fight-result.win  { color: #60ff60 !important; }
.fight-result.lose { color: #ff6060 !important; }
.fight-result.tie  { color: #f0c860 !important; }

/* Dice-Roll */
.dice-cell-label { color: #f0c860 !important; font-size: 1em !important; }
.dice-cell-stat  { color: #ffffff !important; font-size: 1.1em !important; }
.dice-cell-die   { font-size: 2.2em !important; color: #ffffff !important; }
.dice-cell-vs    { color: #f04040 !important; font-size: 1.3em !important; }

/* Wahl-Buttons im Modal */
.choice-btn { font-size: 1em !important; color: #ffffff !important; }
.choice-btn div { color: #e0d0a8 !important; }

/* Lobby & Waiting Room */
#lobby h1, #waiting h1 { color: #f0e0a8 !important; }
.lobby-connecting { color: #f0c860 !important; font-size: 1em !important; }
.share-hint { color: #c0b080 !important; font-size: 0.95em !important; }
.wait-player-row { font-size: 1em !important; color: #ffffff !important; }
.wait-char { color: #f0c860 !important; }
.wait-no-char { color: #c0a070 !important; }
.start-hint { color: #c0a070 !important; font-size: 0.9em !important; }

/* PvP / Trade */
.trade-pick { font-size: 0.95em !important; color: #ffffff !important; }
.trade-pick div { color: #ffffff !important; }
.trade-pick small { color: #e0c890 !important; }

/* Drop-Grid */
.drop-btn { font-size: 0.95em !important; }
.drop-btn div  { color: #ffffff !important; }
.drop-btn small { color: #e0c890 !important; }

/* Game-Card Visuals */
.game-card-name { color: #ffffff !important; font-size: 1.05em !important; }
.game-card-desc { color: #e0d0a8 !important; font-size: 0.9em !important; }
.game-card-type-tag { color: #f0c860 !important; }
.game-card-bonuses .card-bonus-text { color: #e0d0a8 !important; font-size: 0.9em !important; }

/* Buttons allgemein etwas größer */
button { font-size: 1em !important; }
.big-btn { font-size: 1.1em !important; padding: 13px 16px !important; }

/* ============================================================
   MONSTER-BILDER — obere Hälfte (Kopf) zeigen
   ============================================================ */
.game-card.kind-monster .game-card-img-wrap img {
  object-position: top !important;
}

/* ============================================================
   MODAL — scrollbar wenn Inhalt zu hoch
   ============================================================ */
#modal-content {
  max-height: 88vh !important;
  overflow-y: auto !important;
}

/* ============================================================
   RESPONSIVE — Tablet & kleine Bildschirme
   ============================================================ */

/* Bodybreite scrollbar machen falls Inhalt breiter als Viewport */
html, body { overflow-x: auto !important; }

/* Spiel-Layout via zoom skalieren damit alles sichtbar bleibt */
@media (max-width: 1280px) {
  #game { zoom: 0.82; }
}
@media (max-width: 1050px) {
  #game { zoom: 0.67; }
}
@media (max-width: 850px) {
  #game { zoom: 0.54; }
}
@media (max-width: 680px) {
  #game { zoom: 0.44; }
}

/* Lobby & Waiting Room auf kleinen Screens */
@media (max-width: 600px) {
  #lobby { padding: 16px 10px; }
  .lobby-mode-btns { flex-direction: column; align-items: center; }
  #waiting { padding: 14px 10px; }
  .char-grid { grid-template-columns: 1fr 1fr; }
}

