/* Chaos-Casino – Farben aus dem aktiven Style */
.cs-wallet { display: flex; gap: 18px; align-items: center; padding: 10px 18px; border-radius: 999px; flex-wrap: wrap; }
.cs-wallet strong { color: #ffd166; font-variant-numeric: tabular-nums; }
.cs-wallet .cs-plus { color: var(--success); }
.cs-wallet .cs-minus { color: var(--danger); }
.cs-tabs { display: flex; gap: 6px; padding: 6px; margin-bottom: 16px; overflow-x: auto; border-radius: 14px; }
.cs-tab {
  flex: 1; min-width: max-content; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 14px;
  border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; transition: background .2s, color .2s;
}
.cs-tab span { font-size: 1.3rem; }
.cs-tab:hover { color: var(--text); background: var(--surface-hover); }
.cs-tab.active { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 0 18px var(--accent-glow); }
.cs-game { text-align: center; }
.cs-result { min-height: 30px; margin: 16px 0 6px; font-size: 1.1rem; font-weight: 700; color: var(--muted); }
.cs-result.cs-win { color: var(--success); }
.cs-result.cs-big { color: #ffd166; text-shadow: 0 0 16px rgba(255, 196, 0, .55); font-size: 1.3rem; }
.cs-result.cs-lose { color: var(--muted); }
.cs-result.cs-err { color: var(--danger); font-size: .95rem; }
.cs-result.cs-pop { animation: cs-pop .5s ease; }
@keyframes cs-pop { 40% { transform: scale(1.12); } }
.cs-controls { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: center; margin-top: 10px; }
.cs-controls > .btn-lg, .cs-bj-start > .btn-lg { min-width: 170px; }
.cs-bet { text-align: left; }
.cs-bet label { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.cs-bet-row { display: flex; align-items: center; gap: 6px; }
.cs-bet-input { width: 110px !important; font-size: 1.15rem !important; font-weight: 800; text-align: center; color: #ffd166 !important; }
.cs-coin { font-size: 1.3rem; }
.cs-chips { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.cs-chip {
  min-width: 34px; height: 28px; padding: 0 8px; border-radius: 999px; border: 1px solid rgba(255, 196, 0, .35);
  background: rgba(255, 196, 0, .08); color: #ffd166; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer;
}
.cs-chip:hover { background: rgba(255, 196, 0, .2); }
.cs-info { text-align: left; margin-top: 18px; }
.cs-info summary { cursor: pointer; color: var(--accent-2); font-weight: 700; }
.cs-note { margin-top: 14px; }
.cs-win { color: var(--success); }
.cs-loss { color: var(--danger); }

/* Slots */
.cs-machine {
  padding: 22px; border-radius: 20px; max-width: 460px; margin: 0 auto;
  background: linear-gradient(180deg, #2a0d14, #120709); border: 2px solid color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: inset 0 0 40px rgba(0,0,0,.7), 0 0 30px var(--accent-glow);
}
.cs-reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cs-reel {
  height: 110px; overflow: hidden; border-radius: 14px; position: relative;
  background: linear-gradient(180deg, #fff 0%, #f1f1f1 50%, #d9d9d9 100%); box-shadow: inset 0 8px 14px rgba(0,0,0,.35), inset 0 -8px 14px rgba(0,0,0,.35);
}
.cs-strip span { display: flex; align-items: center; justify-content: center; height: 110px; font-size: 3.4rem; }
.cs-game.cs-flash .cs-machine { animation: cs-flash .3s ease 4 alternate; }
@keyframes cs-flash { to { box-shadow: inset 0 0 40px rgba(0,0,0,.7), 0 0 60px #ffd166; border-color: #ffd166; } }

/* Glücksrad */
.cs-wheel-wrap { position: relative; width: min(340px, 82vw); aspect-ratio: 1; margin: 6px auto 0; }
.cs-wheel {
  position: absolute; inset: 0; border-radius: 50%; border: 6px solid #1b1214;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 40px var(--accent-glow), inset 0 0 30px rgba(0,0,0,.5);
}
.cs-wl { position: absolute; left: 50%; top: 0; height: 50%; width: 30px; margin-left: -15px; transform-origin: 50% 100%; text-align: center; }
.cs-wl b { display: inline-block; margin-top: 10px; font-size: .78rem; font-weight: 900; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.8); writing-mode: vertical-rl; transform: rotate(180deg); }
.cs-wl-gold b { color: #2a1a00; text-shadow: none; }
.cs-pointer { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 2rem; color: #ffd166; text-shadow: 0 0 12px rgba(255,196,0,.8), 0 2px 4px #000; }
.cs-hub {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.8rem; background: radial-gradient(circle, #3a2a30, #160d10); border: 3px solid #ffd166; box-shadow: 0 0 18px rgba(255,196,0,.5); z-index: 1;
}
.cs-free { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.cs-free-btn:not([disabled]) { border-color: rgba(255,196,0,.5); color: #ffd166; animation: cs-glow 1.6s ease-in-out infinite alternate; }
@keyframes cs-glow { to { box-shadow: 0 0 18px rgba(255,196,0,.45); } }

/* Würfel */
.cs-dice { display: flex; gap: 22px; justify-content: center; margin: 10px 0; }
.cs-die {
  display: grid; place-items: center; width: 110px; height: 110px; border-radius: 22px; font-size: 6rem; line-height: 1;
  background: linear-gradient(145deg, #fff, #dcdcdc); color: #b0101f; box-shadow: 0 10px 24px rgba(0,0,0,.5), inset 0 -4px 8px rgba(0,0,0,.15);
  transition: transform .07s;
}
.cs-die.cs-roll { transform: rotate(14deg) scale(.94); }
.cs-dice-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.cs-dice-btns .btn { flex-direction: column; gap: 0; min-width: 110px; padding: 10px 14px; }
.cs-dice-btns small { font-size: .78rem; opacity: .85; }

/* Blackjack */
.cs-table {
  border-radius: 20px; padding: 18px; background: radial-gradient(ellipse at center, #1d5236 0%, #0f2e1e 70%, #0a1f14 100%);
  border: 6px solid #3a2516; box-shadow: inset 0 0 40px rgba(0,0,0,.6), 0 10px 30px rgba(0,0,0,.5);
}
.cs-table .cs-result { color: #e8f5ec; }
.cs-hand-label { color: #cfe8d7; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.cs-hand-label .tag { background: rgba(0,0,0,.35); color: #fff; }
.cs-cards { display: flex; justify-content: center; gap: 8px; min-height: 104px; flex-wrap: wrap; }
.cs-card {
  width: 70px; height: 100px; border-radius: 9px; background: #fff; color: #111; position: relative; box-shadow: 0 4px 12px rgba(0,0,0,.45);
  display: flex; flex-direction: column; align-items: center; justify-content: center; animation: cs-deal .3s ease both;
}
.cs-card span { position: absolute; top: 5px; left: 7px; font-weight: 900; font-size: 1rem; }
.cs-card b { font-size: 2.1rem; }
.cs-card.red { color: #d0102a; }
.cs-card.cs-back { background: repeating-linear-gradient(45deg, var(--accent) 0 6px, #7a0a18 6px 12px); border: 3px solid #fff; }
@keyframes cs-deal { from { opacity: 0; transform: translateY(-30px) rotate(-8deg); } }
.cs-bj-start { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; justify-content: center; }
.cs-bj-start[hidden], .cs-bj-moves[hidden] { display: none !important; }
.cs-bj-moves { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

@media (prefers-reduced-motion: reduce) { .cs-card, .cs-result.cs-pop, .cs-free-btn { animation: none !important; } }
@media (max-width: 720px) {
  .cs-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .cs-tab { padding: 9px 10px; font-size: .85rem; min-width: 0; }
  .cs-tab span { font-size: 1.1rem; }
  .cs-reel, .cs-strip span { height: 84px; }
  .cs-strip span { font-size: 2.6rem; }
  .cs-die { width: 86px; height: 86px; font-size: 4.6rem; }
  .cs-card { width: 56px; height: 82px; }
  .cs-card b { font-size: 1.6rem; }
  .cs-controls { flex-direction: column; align-items: stretch; }
  .cs-bet { text-align: center; }
  .cs-bet-row, .cs-chips { justify-content: center; }
}

/* ---------- Roulette ---------- */
.rl-top { display: flex; justify-content: center; }
.rl-wheel-wrap { position: relative; width: min(300px, 76vw); aspect-ratio: 1; margin: 10px auto 0; }
.rl-wheel {
  position: absolute; inset: 0; border-radius: 50%; border: 10px solid #4a2a16;
  box-shadow: 0 0 0 3px #c9a04a, 0 0 0 6px #2a170c, 0 14px 40px rgba(0,0,0,.6), inset 0 0 0 2px #c9a04a, inset 0 0 26px rgba(0,0,0,.6);
}
.rl-wl { position: absolute; left: 50%; top: 0; height: 50%; width: 22px; margin-left: -11px; transform-origin: 50% 100%; text-align: center; }
.rl-wl b { display: inline-block; margin-top: 4px; font-size: .66rem; font-weight: 900; color: #fff; text-shadow: 0 1px 2px #000; }
.rl-hub {
  position: absolute; left: 50%; top: 50%; width: 46%; height: 46%; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #7a4a26, #3a210f 60%, #1e1007); border: 3px solid #c9a04a; box-shadow: 0 4px 18px rgba(0,0,0,.6), inset 0 0 18px rgba(0,0,0,.5); z-index: 1;
}
.rl-hub span { min-width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; font-size: 1.6rem; font-weight: 900; color: #fff; background: rgba(0,0,0,.35); border: 2px solid rgba(255,255,255,.2); transition: background .3s; }
.rl-hub .rl-n-red { background: #c8102e; box-shadow: 0 0 22px #ff3b4f; }
.rl-hub .rl-n-black { background: #141214; box-shadow: 0 0 22px rgba(255,255,255,.35); }
.rl-hub .rl-n-green { background: #0f8a4b; box-shadow: 0 0 22px #2ecc71; }
.rl-board {
  display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto auto; gap: 4px; margin: 6px auto 0; max-width: 640px; padding: 10px; border-radius: 16px;
  background: radial-gradient(ellipse at center, #1d5236, #0f2e1e 80%); border: 5px solid #3a2516; box-shadow: inset 0 0 30px rgba(0,0,0,.5);
}
.rl-zero { grid-row: 1; grid-column: 1; }
.rl-nums { grid-column: 2; display: grid; grid-template-columns: repeat(12, 1fr); gap: 3px; }
.rl-out { grid-column: 2; display: grid; gap: 3px; }
.rl-dozens { grid-template-columns: repeat(3, 1fr); }
.rl-even { grid-template-columns: repeat(6, 1fr); }
.rl-f {
  position: relative; min-height: 34px; padding: 2px; border-radius: 6px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff;
  font: inherit; font-weight: 800; font-size: .85rem; cursor: pointer; transition: transform .1s, box-shadow .15s, background .15s;
}
.rl-f.rl-red { background: #b50f27; }
.rl-f.rl-black { background: #161416; }
.rl-zero { background: #0f8a4b; font-size: 1.1rem; }
.rl-out .rl-f { background: rgba(255,255,255,.06); }
.rl-out .rl-f.rl-red { background: #b50f27; } .rl-out .rl-f.rl-black { background: #161416; }
.rl-f:hover:not([disabled]) { transform: translateY(-1px); box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.rl-f.sel { box-shadow: 0 0 0 3px #ffd166, 0 0 16px rgba(255,209,102,.7); z-index: 1; }
.rl-f.sel::after { content: ""; position: absolute; right: -5px; top: -5px; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, #fff 0 25%, #ffd166 26% 60%, #b8860b 61%); box-shadow: 0 2px 4px rgba(0,0,0,.5); }
.rl-f.hit { animation: rl-hit 1s ease 2; }
@keyframes rl-hit { 50% { box-shadow: 0 0 0 3px #fff, 0 0 22px #fff; transform: scale(1.12); } }
.rl-f[disabled] { opacity: 1; cursor: default; }
.rl-sel { align-self: center; padding: 8px 12px; border-radius: 10px; background: rgba(255,196,0,.08); border: 1px solid rgba(255,196,0,.3); }
.rl-sel strong { color: #ffd166; }

/* ---------- Dart ---------- */
.dt-wrap { position: relative; width: min(320px, 80vw); margin: 6px auto 0; }
.dt-board { width: 100%; display: block; filter: drop-shadow(0 12px 26px rgba(0,0,0,.6)); }
.dt-num { fill: #fff; font-size: 10px; font-weight: 800; text-anchor: middle; font-family: inherit; }
.dt-z { transition: filter .2s; }
.dt-z.aim { filter: brightness(1.6) drop-shadow(0 0 3px #ffd166); }
.dt-mark { fill: #ffd166; stroke: #000; stroke-width: 1; }
.dt-dart {
  position: absolute; width: 34px; height: 64px; pointer-events: none; z-index: 2; transform-origin: 8% 92%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 64'%3E%3Cpath d='M3 61 L12 44' stroke='%23ccc' stroke-width='2.4' stroke-linecap='round'/%3E%3Crect x='10' y='26' width='6' height='20' rx='2.5' transform='rotate(28 13 36)' fill='%23222' stroke='%23ffd166' stroke-width='1'/%3E%3Cpath d='M20 22 L33 2 L26 24 Z M20 22 L14 4 L24 18 Z' fill='%23e3122b'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(2px 4px 3px rgba(0,0,0,.6));
}
.dt-wrap.dt-thud { animation: dt-thud .25s ease; }
@keyframes dt-thud { 30% { transform: translate(1px, 2px); } 60% { transform: translate(-1px, -1px); } }

/* ---------- Billard ---------- */
.pl-table { max-width: 560px; margin: 6px auto 0; padding: 16px; border-radius: 22px; background: linear-gradient(145deg, #5a3418, #2d1809); box-shadow: 0 14px 34px rgba(0,0,0,.6), inset 0 2px 0 rgba(255,255,255,.15); }
.pl-felt { position: relative; aspect-ratio: 2 / 1; border-radius: 10px; overflow: hidden;
  background: radial-gradient(ellipse at 45% 45%, #1f8a55, #0f5a35 75%, #0b4529); box-shadow: inset 0 0 24px rgba(0,0,0,.55), inset 0 0 0 6px #0b4a2b; }
.pl-felt::before { content: ""; position: absolute; left: 24%; top: 6%; bottom: 6%; border-left: 1px solid rgba(255,255,255,.18); }
.pl-pocket { position: absolute; width: 6.5%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #000 55%, #1a1a1a); transform: translate(-50%, -50%); box-shadow: 0 0 0 2px #2d1809; }
.pl-p0 { left: 3%; top: 5%; } .pl-p1 { left: 50%; top: 2%; } .pl-p2 { left: 97%; top: 5%; }
.pl-p3 { left: 3%; top: 95%; } .pl-p4 { left: 50%; top: 98%; } .pl-p5 { left: 97%; top: 95%; }
.pl-ball, .pl-cue { position: absolute; width: 5%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); z-index: 2; box-shadow: 1px 3px 4px rgba(0,0,0,.55); }
.pl-ball { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), transparent 35%), var(--c); display: grid; place-items: center; }
.pl-ball.pl-stripe { background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.6), transparent 35%), linear-gradient(#f4f1e8 0 22%, var(--c) 22% 78%, #f4f1e8 78%); }
.pl-ball i { font-style: normal; font-size: clamp(.38rem, 1.5vw, .6rem); font-weight: 900; color: #111; background: #fff; border-radius: 50%; width: 52%; aspect-ratio: 1; display: grid; place-items: center; line-height: 1; }
.pl-cue { background: radial-gradient(circle at 35% 30%, #fff, #e8e4d8 60%, #bdb7a6); z-index: 3; }

@media (max-width: 720px) {
  .rl-board { grid-template-columns: 30px 1fr; padding: 6px; gap: 3px; }
  .rl-nums { gap: 2px; }
  .rl-f { min-height: 30px; font-size: .68rem; border-radius: 4px; padding: 0; }
  .rl-even { grid-template-columns: repeat(3, 1fr); }
  .rl-wl b { font-size: .55rem; }
  .pl-table { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { .rl-f.hit, .dt-wrap.dt-thud { animation: none; } }
