/* Die Automaten im Zocker Palace: Plattenfall, Roulette, Disco-Fieber (casino.js). */

.cz-tisch {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    color: #fff;
    font-family: Muli, Verdana, sans-serif;
    user-select: none;
    -webkit-user-select: none;
}

.cz-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px 4px; position: relative; z-index: 2; }
.cz-anz { display: flex; flex-direction: column; min-width: 92px; padding: 4px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.38); border: 1px solid rgba(255, 255, 255, 0.12); }
.cz-anz small { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.cz-anz b { font-size: 18px; font-variant-numeric: tabular-nums; }
.cz-anz-gewinn b { color: #ffe066; }
.cz-blitz { animation: cz-blitz 0.9s ease-out; }
@keyframes cz-blitz { 0% { box-shadow: 0 0 0 0 rgba(255, 224, 102, 0.9); transform: scale(1.08); } 100% { box-shadow: 0 0 0 14px rgba(255, 224, 102, 0); transform: scale(1); } }

.cz-zusatz { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.cz-verlauf { min-width: 30px; padding: 3px 7px; border-radius: 999px; background: rgba(0, 0, 0, 0.4); font-size: 12px; font-weight: 700; text-align: center; }
.cz-verlauf.cz-plus { background: rgba(80, 200, 120, 0.45); }
.cz-kugel-rot { background: #c8102e; }
.cz-kugel-schwarz { background: #1a1a1d; border: 1px solid rgba(255, 255, 255, 0.25); }
.cz-kugel-gruen { background: #1f9d55; }

.cz-flaeche { position: relative; flex: 1; min-height: 0; }
.cz-leinwand { position: absolute; inset: 0; display: block; }

.cz-leiste { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; padding: 8px 12px 10px; background: rgba(0, 0, 0, 0.32); position: relative; z-index: 2; }
.cz-wahl { display: flex; flex-wrap: wrap; gap: 4px; }
.cz-chip { padding: 6px 11px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.07); color: #fff; font: 700 13px Muli, Verdana, sans-serif; cursor: pointer; }
.cz-chip:hover { background: rgba(255, 255, 255, 0.15); }
.cz-chip.cz-an { background: #f0b429; border-color: #f0b429; color: #2a1a00; }
.cz-los { padding: 9px 24px; border: 0; border-radius: 999px; cursor: pointer; font: 900 15px Muli, Verdana, sans-serif; letter-spacing: .04em; color: #fff;
    background: linear-gradient(#ff5ab4, #d81b7d); box-shadow: 0 0 14px rgba(255, 90, 180, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.cz-los:hover { filter: brightness(1.1); }
.cz-los:active { transform: translateY(1px); }
.cz-klein-knopf { padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.06); color: #fff; font: 700 12px Muli, Verdana, sans-serif; cursor: pointer; }
.cz-summe { font-size: 13px; opacity: .85; }

.cz-meldung { position: absolute; top: 58px; left: 50%; transform: translateX(-50%); z-index: 6; max-width: 90%; padding: 8px 18px; border-radius: 999px;
    background: rgba(30, 160, 90, 0.95); font-weight: 800; text-align: center; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); }
.cz-meldung.cz-schlecht { background: rgba(170, 40, 60, 0.95); }

.cz-blatt { position: absolute; inset: 10px; z-index: 10; display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; background: rgba(18, 14, 36, 0.97); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6); }
.cz-blattkopf { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.cz-blattkopf h3 { margin: 0; font-size: 18px; color: #ffe066; }
.cz-zu { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 20px; cursor: pointer; }
.cz-blattkoerper { overflow: auto; padding: 12px 18px 18px; line-height: 1.5; }
.cz-schritte { padding-left: 20px; }
.cz-schritte li { margin-bottom: 8px; }
.cz-klein { font-size: 12px; opacity: .75; }
.cz-liste { width: 100%; margin: 10px 0; border-collapse: collapse; }
.cz-liste td { padding: 6px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.cz-platz { width: 40px; opacity: .7; }
.cz-zahl { text-align: right; font-weight: 800; color: #7dffa0; font-variant-numeric: tabular-nums; }
.cz-zahl.cz-minus { color: #ff8a8a; }

/* ---- Plattenfall ---- */
.cz-plinko { background: radial-gradient(ellipse at 50% 0%, #3a2a7a 0%, #1a1240 55%, #0d0a22 100%); }

/* ---- Roulette ---- */
.cz-roulette { background: radial-gradient(ellipse at 30% 40%, #1f6b3a 0%, #0f4224 60%, #0a2d18 100%); }
.cz-roulette .cz-flaeche { display: flex; gap: 10px; padding: 4px 10px; }
.cz-kessel { position: relative; flex: 0 0 38%; min-width: 180px; }
.cz-feld { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; overflow-x: auto; }
.cz-zahlen { display: grid; grid-template-columns: 36px repeat(12, minmax(24px, 1fr)) 38px; grid-template-rows: repeat(3, minmax(30px, 1fr)); gap: 2px; min-width: 430px; }
.cz-null { grid-row: 1 / span 3; }
.cz-aussenfeld { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; min-width: 430px; padding-left: 38px; padding-right: 40px; }
.cz-dutzend { grid-column: span 2; }
.cz-zelle { position: relative; display: flex; align-items: center; justify-content: center; min-height: 30px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 3px; cursor: pointer;
    color: #fff; font: 800 13px Muli, Verdana, sans-serif; background: rgba(255, 255, 255, 0.04); }
.cz-zelle:hover { box-shadow: inset 0 0 0 2px rgba(255, 224, 102, 0.7); }
.cz-zelle.cz-rot { background: #b5122a; }
.cz-zelle.cz-schwarz { background: #18181b; }
.cz-zelle.cz-gruen { background: #1f9d55; }
.cz-zelle.cz-aussen { background: rgba(0, 0, 0, 0.18); font-size: 12px; }
.cz-zelle.cz-chance.cz-rot, .cz-zelle.cz-chance.cz-schwarz { min-height: 30px; }
.cz-zelle.cz-chance.cz-rot::after, .cz-zelle.cz-chance.cz-schwarz::after { content: ''; width: 18px; height: 18px; transform: rotate(45deg); background: inherit; border: 1px solid rgba(255, 255, 255, 0.6); }
.cz-zelle.cz-chance.cz-rot { background: rgba(0, 0, 0, 0.18); }
.cz-zelle.cz-chance.cz-rot::after { background: #c8102e; }
.cz-zelle.cz-chance.cz-schwarz { background: rgba(0, 0, 0, 0.18); }
.cz-zelle.cz-chance.cz-schwarz::after { background: #18181b; }
.cz-marke { position: absolute; z-index: 2; top: 50%; left: 50%; min-width: 22px; height: 22px; padding: 0 3px; transform: translate(-50%, -50%); border-radius: 50%;
    border: 2px dashed #fff; background: #f0b429; color: #2a1a00; font: 900 10px/18px Muli, Verdana, sans-serif; font-style: normal; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6); }
.cz-zelle.cz-gewonnen { animation: cz-gewonnen 0.7s ease-in-out 4; box-shadow: 0 0 0 2px #ffe066, 0 0 14px #ffe066; }
@keyframes cz-gewonnen { 50% { filter: brightness(1.6); } }
.cz-dreht .cz-zelle { cursor: default; }

/* ---- Disco-Fieber ---- */
.cz-disco { background: linear-gradient(160deg, #2a0a4a 0%, #14062a 55%, #08020f 100%); }
.cz-disco .cz-flaeche { display: flex; flex-direction: column; align-items: center; padding: 4px 14px 8px; }
.cz-disco-lichter { position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background: radial-gradient(circle at 10% 20%, rgba(255, 60, 220, 0.35) 0, transparent 22%), radial-gradient(circle at 85% 30%, rgba(60, 230, 255, 0.3) 0, transparent 24%),
        radial-gradient(circle at 50% 90%, rgba(255, 220, 60, 0.22) 0, transparent 26%);
    animation: cz-disco-licht 6s ease-in-out infinite alternate; }
@keyframes cz-disco-licht { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(160deg); } }
.cz-disco-schild { position: relative; z-index: 1; margin-bottom: 6px; font: italic 900 26px/1 Georgia, serif; letter-spacing: .06em; color: #fff;
    text-shadow: 0 0 6px #ff3df2, 0 0 18px #ff3df2, 0 0 30px #b11bd8; }
.cz-disco-schild b { margin-left: 8px; color: #3dfcff; text-shadow: 0 0 6px #3dfcff, 0 0 18px #3dfcff, 0 0 30px #1b8fd8; }
.cz-disco-fenster { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 760px; min-height: 0; border-radius: 14px; background: rgba(8, 2, 20, 0.85);
    box-shadow: 0 0 0 3px #ffd34d, 0 0 0 6px #b11bd8, 0 0 30px rgba(255, 61, 242, 0.55), inset 0 0 30px rgba(0, 0, 0, 0.8); }
.cz-frei { position: absolute; z-index: 3; top: 2px; right: 14px; display: flex; flex-direction: column; align-items: center; padding: 3px 14px; border-radius: 12px;
    background: linear-gradient(#ff3df2, #8a1bd8); box-shadow: 0 0 22px rgba(255, 61, 242, 0.8); animation: cz-frei 1.2s ease-in-out infinite alternate; }
.cz-frei b { font-size: 14px; letter-spacing: .12em; }
.cz-frei span, .cz-frei i { font-size: 12px; font-style: normal; }
@keyframes cz-frei { to { box-shadow: 0 0 34px rgba(61, 252, 255, 0.9); } }
.cz-freimodus .cz-los { background: linear-gradient(#3dfcff, #1b8fd8); box-shadow: 0 0 16px rgba(61, 252, 255, 0.7); color: #062033; }
.cz-tabelle { display: flex; flex-direction: column; gap: 6px; }
.cz-tabzeile { display: grid; grid-template-columns: 44px 120px 1fr; align-items: center; gap: 10px; font-size: 13px; }
.cz-tabzeile img { width: 44px; height: 44px; border-radius: 8px; }
.cz-tabzeile b { color: #ffe066; }

/* Schmal (Handy): Roulette untereinander, Feld wischbar */
@media (max-width: 760px) {
    .cz-roulette .cz-flaeche { flex-direction: column; gap: 4px; padding: 2px 6px; }
    .cz-kessel { flex: 0 0 30%; min-width: 0; }
    .cz-feld { justify-content: flex-start; overflow: auto; }
    .cz-zahlen { grid-template-rows: repeat(3, minmax(28px, 1fr)); min-width: 410px; }
    .cz-aussenfeld { min-width: 410px; }
    .cz-zelle { min-height: 28px; font-size: 12px; }
    .cz-leiste { gap: 6px 8px; padding: 6px 8px 8px; }
    .cz-chip { padding: 5px 9px; }
    .cz-los { padding: 8px 18px; }
    .cz-anz { min-width: 74px; padding: 3px 9px; }
    .cz-anz b { font-size: 15px; }
    .cz-disco-schild { font-size: 20px; }
    .cz-tabzeile { grid-template-columns: 36px 1fr; }
    .cz-tabzeile img { width: 36px; height: 36px; }
    .cz-tabzeile b { grid-column: 1 / -1; }
}
