.arcade-page{background:linear-gradient(120deg,rgba(5,8,23,.92),rgba(28,12,51,.88)),url('../overseer.png') center/cover fixed no-repeat}.arcade-shell{max-width:1180px;margin:0 auto;padding:48px 24px}.arcade-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:24px}.arcade-hero h1{margin:.2rem 0}.coin-balance{min-width:180px;padding:20px;border:1px solid rgba(167,135,255,.45);border-radius:16px;background:rgba(21,17,48,.8);text-align:center}.coin-balance span{display:block;color:#b6a9df}.coin-balance strong{display:block;font:700 2rem Oxanium;color:#f3c969}.game-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.game-card{display:flex;flex-direction:column;gap:12px}.game-icon{font-size:2rem}.game-card h2{margin:0}.game-card label{display:grid;gap:6px;color:#c9bde9}.game-card input,.game-card select{width:100%;padding:11px;border:1px solid #47406b;border-radius:9px;background:#0d0d1d;color:#fff}.game-card button{margin-top:auto;padding:12px;border:0;border-radius:9px;background:#7957de;color:white;font-weight:700;cursor:pointer}.game-card output{min-height:24px;color:#f3c969}.rules{margin-top:24px}.rules li{margin:8px 0;color:#c9bde9}.notice{padding:12px;margin-bottom:18px;border-radius:9px;background:#172d32;color:#9ee6c3}.notice.error{background:#3a1d2c;color:#ffb0bd}.table-label{display:flex;justify-content:space-between;color:#b6a9df}.playing-hand{display:flex;gap:8px;min-height:55px}.playing-card{display:grid;place-items:center;width:42px;height:56px;border-radius:7px;background:#f4f2ff;color:#15142a;font-weight:700;box-shadow:0 3px 8px #050510}.playing-card.red{color:#ce365a}.game-actions{display:flex;gap:8px}.game-actions button{margin:0;flex:1}@media(max-width:780px){.arcade-hero{flex-direction:column;align-items:stretch}.game-grid{grid-template-columns:1fr}.coin-balance{min-width:0}}

.arcade-gate{max-width:680px;margin:0 auto 24px}.arcade-gate p{color:#c9bde9}.gate-button{display:inline-block;padding:12px 18px;border-radius:9px;background:#7957de;color:#fff;font-weight:700;text-decoration:none;margin:8px 12px 8px 0}.arcade-gate .text-link{display:inline-block}
.game-page-link{display:inline-block;margin:.35rem 0 .7rem;color:#8eeaff;font-size:.85rem;text-decoration:none}.game-page-link:hover{text-decoration:underline}
.game-card{color:inherit;text-decoration:none;min-height:190px;transition:transform .18s,border-color .18s,box-shadow .18s}.game-card:hover{transform:translateY(-4px);border-color:#9c7cff;box-shadow:0 12px 30px #050510}.card-cta{margin-top:auto;color:#8eeaff;font-weight:700}.game-stage{max-width:720px;margin:0 auto 18px}.game-stage h1{margin:.3rem 0}.game-stage p{color:#c9bde9}.game-controls{display:grid;gap:14px;max-width:360px}.game-controls label{display:grid;gap:6px;color:#c9bde9}.game-controls input,.game-controls select{padding:12px;border:1px solid #47406b;border-radius:9px;background:#0d0d1d;color:#fff}.game-controls button{padding:13px;border:0;border-radius:9px;background:#7957de;color:#fff;font-weight:700;cursor:pointer}.game-stage output{display:block;min-height:28px;margin-top:18px;color:#f3c969;font-weight:700}.dice-face,.slot-reels,.card-table{font-size:3rem;padding:24px;text-align:center;border:1px solid #47406b;border-radius:14px;background:#171330}.is-running{animation:arcade-shake .45s linear infinite}@keyframes arcade-shake{50%{transform:rotate(8deg) scale(1.06)}}.back-game{display:block;text-align:center;color:#8eeaff;margin:12px}.game-page .rules{max-width:720px;margin:26px auto 0}
.game-controls{max-width:100%}

.game-visual{display:flex;justify-content:center;align-items:center;gap:10px;min-height:150px;padding:24px 14px;border:1px solid #544576;border-radius:18px;background:radial-gradient(ellipse at center,#28204a,#111122);font-size:3rem;perspective:900px;overflow:hidden}
.visual-blackjack,.visual-poker{background:radial-gradient(ellipse at center,#23483f,#102623);flex-wrap:wrap;max-width:100%}
.animated-card{display:grid;place-items:center;flex:0 0 52px;height:76px;border-radius:9px;background:#faf5ff;color:#26213a;font-size:1.2rem;font-weight:800;box-shadow:0 6px 14px #0007;transform-origin:center}
.animated-card.red{color:#c32e53}.animated-card.card-back{background:repeating-linear-gradient(45deg,#372665 0 5px,#5a4193 5px 10px);color:#e5dbff;border:2px solid #c6b8ed}
.game-visual.is-running{animation:none}
.visual-dice.is-running{animation:dice-roll .55s ease-in-out infinite}
.visual-coinflip.is-running{animation:coin-flip .6s ease-in-out infinite}
.visual-slots.is-running{animation:reel-spin .22s linear infinite}
.visual-rps.is-running{animation:hand-bounce .42s ease-in-out infinite}
.visual-eightball.is-running{animation:ball-orbit .7s ease-in-out infinite}
.visual-trivia.is-running{animation:question-glow .65s ease-in-out infinite}
.visual-blackjack.is-running .animated-card,.visual-poker.is-running .animated-card{animation:card-shuffle .6s ease-in-out infinite;animation-delay:calc(var(--card-index)*70ms)}
.is-revealed .animated-card{animation:card-deal .6s ease-out both;animation-delay:calc(var(--card-index)*110ms)}
.game-visual.is-revealed:not(.visual-blackjack):not(.visual-poker){animation:result-pop .4s ease-out}
.game-controls button:disabled{opacity:.6;cursor:wait}
@keyframes dice-roll{0%,100%{transform:translateX(-8px) rotate(-12deg)}50%{transform:translateX(8px) rotate(14deg) scale(.94)}}
@keyframes coin-flip{0%{transform:rotateY(0) translateY(0)}50%{transform:rotateY(180deg) translateY(-12px)}100%{transform:rotateY(360deg) translateY(0)}}
@keyframes reel-spin{0%{transform:translateY(-5px);filter:blur(1px)}100%{transform:translateY(5px);filter:blur(2px)}}
@keyframes hand-bounce{50%{transform:translateY(-12px) rotate(-5deg)}}
@keyframes ball-orbit{25%{transform:rotate(-6deg) translateX(-6px)}75%{transform:rotate(6deg) translateX(6px)}}
@keyframes question-glow{50%{color:#8eeaff;text-shadow:0 0 22px #6ce2ff;transform:scale(1.04)}}
@keyframes card-shuffle{0%,100%{transform:translateX(-7px) rotate(-7deg)}50%{transform:translateX(7px) translateY(-12px) rotate(7deg)}}
@keyframes card-deal{from{opacity:0;transform:translateX(70px) rotateY(90deg) rotate(12deg)}to{opacity:1;transform:none}}
@keyframes result-pop{from{transform:scale(.88);filter:brightness(1.5)}to{transform:scale(1);filter:none}}
@media(prefers-reduced-motion:reduce){.game-visual,.game-visual .animated-card{animation:none!important;transition:none!important}}
