:root {
  --bg: #0a0a0c;
  --panel: #141417;
  --card: #1b1b1f;
  --accent: #f4ce74;
  --gold: #ffd966;
  --muted: #a1a1a8;
  --red: #c0392b;
  --black: #2c3e50;
  --golden: #e6b800;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: #eee;
  padding: 20px;
  min-height: 100vh;
}

header { display:flex; align-items:center; gap:14px; margin-bottom:20px; }
.logo { width:56px; height:56px; border-radius:14px; background:linear-gradient(135deg,var(--accent),var(--gold)); color:#111; font-weight:800; display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow); }
.title { font-weight:700; font-size:1.4em; color:var(--gold); }
.subtitle { font-size:0.8em; color:var(--muted); }

.layout { display:flex; gap:20px; align-items:flex-start; }
.panel { background:var(--panel); border-radius:16px; padding:16px; width:260px; box-shadow:var(--shadow); }
.playerCard { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.avatar { width:60px; height:60px; border-radius:12px; background:linear-gradient(135deg,#1e1e1e,#2a2a2a); color:var(--gold); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:1.2em; }
.playerInfo .playerName { font-weight:700; color:var(--gold); }
.playerBalance { font-weight:700; color:var(--accent); margin-top:4px; }
.muted { color:var(--muted); font-size:0.9em; }
.small { font-size:0.8em; }

.playerCreate { display:flex; gap:8px; margin-bottom:8px; }
.playerCreate input { flex:1; padding:8px 10px; border-radius:8px; border:1px solid rgba(255,255,255,0.04); background:#0f0f10; color:#fff; }

.btn { padding:8px 14px; border-radius:10px; border:none; cursor:pointer; font-weight:700; background:linear-gradient(90deg,var(--accent),var(--gold)); color:#111; transition:transform .14s ease; box-shadow:var(--shadow); }
.btn:hover { transform:translateY(-2px); }
.btn.ghost { background:transparent; border:1px solid rgba(255,255,255,0.06); color:var(--muted); box-shadow:none; }

.playersList { display:flex; flex-direction:column; gap:6px; margin-top:6px; }
.playerItem { background:rgba(255,255,255,0.02); padding:8px 10px; border-radius:8px; cursor:pointer; }
.playerItem.active { background:linear-gradient(90deg,var(--accent),var(--gold)); color:#111; font-weight:700; }

.content { flex:1; }
.card { background:var(--card); border-radius:16px; padding:16px; box-shadow:var(--shadow); }

.gameTabs { display:flex; gap:8px; margin-bottom:16px; }
.gameTab { padding:8px 12px; border-radius:8px; border:none; background:#1f1f22; color:var(--muted); cursor:pointer; }
.gameTab.active { background:linear-gradient(90deg,var(--accent),var(--gold)); color:#111; font-weight:700; }

.gameContent.hidden { display:none; }

.betRow { margin-bottom:8px; }
.hands { display:flex; gap:20px; flex-wrap:wrap; }
.hand { display:flex; gap:8px; }
.cardFace { width:70px; height:100px; background:#fff; color:#111; border-radius:8px; display:flex; align-items:center; justify-content:center; font-weight:700; font-size:1.2em; box-shadow:var(--shadow); }

.log { background:rgba(255,255,255,0.03); padding:8px; border-radius:8px; font-size:0.95em; margin-top:10px; max-height:200px; overflow:auto; }

/* Roulette specific */
.rouletteArea { position: relative; width: 360px; height: 360px; margin: 18px auto; display:flex; align-items:center; justify-content:center; }
#rouletteCanvas { width: 320px; height: 320px; border-radius:50%; background: radial-gradient(closest-side,#0b0b0b,#111); box-shadow: 0 8px 30px rgba(0,0,0,0.7); }

/* Pfeil nach unten */
.roulettePointer {
  position:absolute;
  top: calc(50% - 10px);
  left: 50%;
  transform: translateX(-50%);
  width:0;
  height:0;
  border-left:12px solid transparent;
  border-right:12px solid transparent;
  border-top:20px solid var(--gold);
  z-index: 10;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.6));
}

/* Bet buttons */
.rouletteBetContainer {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.playerCreate {
  display: flex;
  flex-direction: column; /* vertikal statt horizontal */
  gap: 8px;
  margin-bottom: 8px;
}

.playerCreate input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
  background: #0f0f10;
  color: #fff;
}

.playerCreate button {
  width: 100%; /* Button nimmt volle Breite */
}


.betChoice {
  padding: 8px 16px;
  border-radius: 12px;
  border: none;
  background: #1f1f22;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.betChoice:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, var(--accent), var(--gold));
  color: #111;
}
.betChoice.selected {
  background: linear-gradient(90deg, var(--accent), var(--gold));
  color: #111;
  transform: translateY(-2px);
}

.ctrlRow { display:flex; gap:12px; align-items:center; justify-content:center; margin-top:6px; }

/* Slots */
.slotsWrapper { display:flex; justify-content:center; gap:10px; margin:20px 0; }
.slotReel { width:70px; height:70px; background:#111; border-radius:10px; font-size:2em; display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow); }

/* responsive */
@media (max-width: 900px) {
  .layout { flex-direction: column; }
  .panel { width: 100%; }
  .rouletteArea { width: 260px; height:260px; }
  #rouletteCanvas { width:230px; height:230px; }
}
