/* Casino (GDD §5.6): dark felt, plain cards, nothing flashy. Uses the main stylesheet's variables. */
.cz-tabs .btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.cz-game { gap: 14px; }
.cz-game > div { display: grid; gap: 12px; justify-items: start; }
.cz-result { min-height: 1.5em; }
.cz-near { display: grid; gap: 4px; }
.cz-game .good { color: var(--good); } .cz-game .cz-bad { color: var(--bad); }

/* cards and chips */
.cz-cards { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.cz-card { display: inline-grid; place-items: center; width: 30px; height: 42px; border-radius: 4px; background: #f4f1ea; color: #15171c; font: 700 .8rem/1 system-ui, sans-serif; box-shadow: 0 1px 3px #0008; letter-spacing: -.02em; }
.cz-card.red { color: #b3261e; }
.cz-card.big { width: 44px; height: 62px; font-size: 1rem; }
.cz-card.back { background: repeating-linear-gradient(45deg, #5a1f24 0 4px, #6b262c 4px 8px); border: 2px solid #f4f1ea; }
.cz-card.empty { background: none; border: 1px dashed #ffffff33; box-shadow: none; }
.cz-chips { gap: 6px; }
.cz-chip { width: 40px; height: 40px; border-radius: 50%; border: 3px dashed #ffffff55; background: var(--panel2); color: var(--text); font: 700 .8rem system-ui, sans-serif; cursor: pointer; }
.cz-chip.on { border-color: var(--accent); color: var(--accent); }

/* slots */
.cz-slots { justify-items: center !important; }
.cz-reels { display: flex; gap: 8px; padding: 10px; border-radius: 12px; background: #0b0d12; border: 1px solid var(--line); }
.cz-reel { display: grid; place-items: center; width: min(82px, 24cqi); height: calc(min(82px, 24cqi) * 1.12); /* shrink on the narrowest phones */ border-radius: 8px; background: linear-gradient(#f4f1ea, #d9d4c8); color: #15171c; overflow: hidden; }
.cz-reel .i { width: 44px; height: 44px; }
.cz-reels.spin .cz-reel > * { animation: cz-roll .12s linear infinite; filter: blur(2px); }
@keyframes cz-roll { from { transform: translateY(-30px); } to { transform: translateY(30px); } }
.cz-bar { font: 900 1.1rem/1 var(--display); letter-spacing: .04em; padding: 4px 6px; border: 2px solid currentColor; border-radius: 4px; }
.cz-seven { font: 900 2.6rem/1 var(--display); color: #b3261e; }
.cz-pay { border-collapse: collapse; font-size: .85rem; }
.cz-pay td, .cz-pay th { padding: 3px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.cz-pay .i { width: 16px; height: 16px; vertical-align: middle; }
.cz-pay .cz-bar { font-size: .6rem; padding: 1px 3px; border-width: 1px; } .cz-pay .cz-seven { font-size: 1rem; }

/* roulette */
.cz-roulette { justify-items: stretch !important; }
.cz-wheel-result { justify-self: center; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; font: 700 1.8rem var(--display); border: 4px solid #c9a227; }
.cz-wheel-result.spin { animation: cz-turn .5s linear infinite; border-style: dashed; }
@keyframes cz-turn { to { transform: rotate(360deg); } }
.cz-recent { display: flex; gap: 4px; justify-content: center; min-height: 24px; flex-wrap: wrap; }
.cz-recent span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 4px; font-size: .75rem; }
:is(.cz-cell, .cz-recent span, .cz-wheel-result).red { background-color: #9e2a24; } :is(.cz-cell, .cz-recent span, .cz-wheel-result).black { background-color: #1a1c21; } :is(.cz-cell, .cz-recent span, .cz-wheel-result).green { background-color: #12603e; }
.cz-recent .red, .cz-recent .black, .cz-recent .green, .cz-wheel-result.red, .cz-wheel-result.black, .cz-wheel-result.green { color: #fff; }
.cz-wheel { display: grid; grid-template-columns: 44px repeat(12, 1fr); grid-template-rows: repeat(3, 40px); gap: 3px; }
.cz-zero { grid-column: 1; grid-row: 1 / span 3; }
.cz-n { grid-column: calc(var(--c) + 1); grid-row: var(--r); }
.cz-outside { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; }
.cz-cell { position: relative; display: grid; place-items: center; min-height: 36px; border: 1px solid #ffffff22; border-radius: 4px; background-color: #12603e; color: #fff; font: 600 .85rem system-ui, sans-serif; cursor: pointer; }
.cz-cell:hover { outline: 2px solid var(--accent); }
.cz-bet { position: absolute; right: 2px; top: 2px; min-width: 20px; padding: 1px 4px; border-radius: 99px; background: var(--accent); color: #111; font-size: .65rem; font-weight: 800; }
@media (max-width: 640px) { /* the layout turns upright on phones, like a real table seen from one end */
  .cz-wheel { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; grid-auto-rows: 34px; }
  .cz-zero { grid-column: 1 / -1; grid-row: 1; }
  .cz-n { grid-column: calc(4 - var(--r)); grid-row: calc(var(--c) + 1); }
}

/* blackjack & baccarat */
.cz-bj > div:not(.row) { display: grid; gap: 4px; }
.cz-bac-hands { display: flex !important; gap: 24px; flex-wrap: wrap; }
.cz-bac-hands > div { display: grid; gap: 4px; padding: 8px; border-radius: 10px; border: 1px solid transparent; }
.cz-bac-hands > div.win { border-color: var(--accent); }
.cz-side { display: grid; gap: 0; }
.cz-side.on { border-color: var(--accent); color: var(--accent); }

/* poker */
.cz-felt { position: relative; justify-self: stretch; aspect-ratio: 2 / 1; min-height: 300px; margin: 36px 8px; border-radius: 50%; background: radial-gradient(ellipse at center, #17573f, #0d3426 70%); border: 10px solid #3a2a1d; box-shadow: inset 0 0 40px #0009, 0 10px 30px #0008; }
.cz-board { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; gap: 6px; justify-items: center; text-align: center; color: #e9efe9; }
.cz-results { max-width: 280px; font-size: .8rem; color: var(--accent); }
.cz-seat { position: absolute; transform: translate(-50%, -50%); display: grid; grid-template-columns: auto auto; gap: 2px 6px; align-items: center; padding: 6px 8px; min-width: 120px; border-radius: 10px; background: #090b0fe6; border: 1px solid var(--line); font-size: .8rem; }
.cz-seat .avatar { width: 28px; height: 28px; font-size: 12px; border-width: 1px; }
.cz-seat .cz-cards { grid-column: 1 / -1; }
.cz-seat.acting { border-color: var(--accent); box-shadow: 0 0 0 2px #a2d7cf55; }
.cz-seat.out { opacity: .5; }
.cz-seat.p0 { left: 50%; top: 100%; } .cz-seat.p1 { left: 8%; top: 78%; } .cz-seat.p2 { left: 8%; top: 22%; }
.cz-seat.p3 { left: 50%; top: 0; } .cz-seat.p4 { left: 92%; top: 22%; } .cz-seat.p5 { left: 92%; top: 78%; }
.cz-chipbet { grid-column: 1 / -1; justify-self: start; padding: 1px 6px; border-radius: 99px; background: var(--accent); color: #111; font-weight: 700; font-size: .7rem; }
.cz-dealer { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #f4f1ea; color: #111; font-size: .6rem; font-weight: 800; }
.cz-me { display: flex !important; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; justify-self: stretch; }
.cz-me > div:first-child { display: grid; gap: 4px; }
.cz-log { display: grid; gap: 2px; max-height: 150px; overflow-y: auto; font-size: .8rem; color: var(--muted); justify-self: stretch; }
@media (max-width: 640px) {
  .cz-felt { min-height: 240px; aspect-ratio: 1 / 1.1; margin: 30px 0; border-width: 6px; }
  .cz-seat { min-width: 0; padding: 4px 5px; font-size: .7rem; }
  .cz-seat .avatar { display: none; }
  .cz-seat.p1, .cz-seat.p2 { left: 16%; } .cz-seat.p4, .cz-seat.p5 { left: 84%; }
  .cz-card { width: 24px; height: 34px; font-size: .68rem; }
  .cz-card.big { width: 38px; height: 54px; }
}
