.casino-page { background: radial-gradient(ellipse at 72% 0%, #3d204c, transparent 49rem), var(--bg); }
.casino-main { padding-block: clamp(42px, 7vw, 90px) 48px; }
.casino-heading h1 { white-space: normal; font-size: clamp(4rem, 10vw, 8.2rem); line-height: .83; }
.casino-heading > p:last-child { color: var(--muted); max-width: 52ch; margin: 22px 0 32px; }
.casino-game, .casino-panel { border: 1px solid #5c3e72; border-radius: 12px; background: #1b1325; }
.casino-game { padding: clamp(14px, 3vw, 28px); }
.casino-controls, .spin-fields, .winner { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.modes { display: flex; gap: 4px; border: 0; padding: 3px; margin: 0; background: #110b19; border-radius: 8px; }
.modes label { position: relative; cursor: pointer; }
.modes input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.modes span { display: block; padding: 8px 12px; border: 1px solid transparent; border-radius: 5px; }
.modes input:checked + span { border-color: #6a4885; background: #3a2849; color: #f4dcff; }
.modes input:focus-visible + span { outline: 2px solid var(--accent); }
.reel, .mystery { margin: 20px 0; background: #100a18; border: 1px solid #583b6f; height: 148px; border-radius: 8px; overflow: hidden; position: relative; }
.reel::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, #100a18, transparent 20% 80%, #100a18); }
.reel::after { content: ""; position: absolute; left: 50%; inset-block: 0; width: 3px; z-index: 2; background: var(--accent); box-shadow: 0 0 15px #d198ff; }
#prize-strip { display: flex; gap: 8px; position: absolute; top: 8px; left: 0; align-items: stretch; will-change: transform; }
.prize-tile { width: 119px; height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; flex: 0 0 auto; border: 1px solid #67478a; background: linear-gradient(160deg, #251a34, #291c39); border-radius: 7px; color: #eee0fd; text-align: center; font: 600 .67rem/1.3 var(--mono); padding: 7px; }
.prize-tile span { font: 900 32px/1 var(--display); color: var(--prize-color, #d198ff); }
.prize-tile.is-result { border-color: var(--accent); box-shadow: inset 0 0 18px #c18aff38; }
.mystery { display: grid; place-items: center; perspective: 420px; }
.mystery span { display: grid; place-items: center; width: 82px; height: 82px; font: 900 56px/1 var(--display); color: #eed1ff; border: 2px solid #cc94fd; background: #352041; box-shadow: inset 0 0 24px #9e59d365, 0 0 32px #913cb867; border-radius: 10px; }
.mystery.is-opening span { animation: open-box 1.2s ease-in-out both; }
@keyframes open-box { 35% { transform: rotateY(170deg) scale(.84); } 70% { transform: rotateY(320deg) scale(1.25); } }
.spin-fields { justify-content: start; align-items: end; }
.spin-fields label { display: grid; gap: 4px; font-size: .85rem; color: #e6d7f0; }
.spin-fields input { padding: 10px 12px; min-height: 45px; border: 1px solid #765886; border-radius: 6px; background: #100b17; color: var(--text); font: inherit; }
#game-status { color: var(--muted); font-size: .91rem; margin: 12px 0 0; }
.winner { padding: 14px; margin-top: 20px; border: 1px solid #b176e2; border-radius: 8px; background: #362244; }
#prize-name { font-size: 1.2rem; font-weight: 800; }
.casino-info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.casino-panel { padding: 22px; }
.casino-panel h2 { font-size: clamp(2.8rem, 5vw, 4rem); margin-bottom: 14px; }
.casino-panel > p, #leaders { color: var(--muted); }
.prize-odds { padding: 0; list-style: none; margin: 0; }
.prize-odds li { display: flex; gap: 10px; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.prize-odds li:last-child { color: #f0bbff; }
button:disabled { opacity: .55; cursor: wait; }
@media (max-width: 640px) { .casino-info { grid-template-columns: 1fr; } }
