/* ============================================================
   ROYALE GAMES — Premium Casino Design System & FX Library
   ============================================================ */

/* ---------- Base ---------- */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #070714; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #2d2d6e, #b8860b);
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #3d3d8c, #f5d76e); }

::selection { background: rgba(245, 215, 110, 0.35); color: #fff; }

html { scroll-behavior: smooth; }

body { text-rendering: optimizeLegibility; }

/* ---------- Glass (upgraded) ---------- */
.glass {
    background: rgba(16, 22, 39, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}
.glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255,255,255,0.045), transparent 30%);
    pointer-events: none;
}

/* ---------- Gradient & gold text ---------- */
.gradient-text {
    background: linear-gradient(135deg, #00e5ff, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.casino-gold-text {
    background: linear-gradient(180deg, #fff3a3 0%, #f5d76e 45%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gold-shimmer-text {
    background: linear-gradient(110deg, #b8860b 20%, #fff3a3 40%, #f5d76e 50%, #fff3a3 60%, #b8860b 80%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3.5s linear infinite;
}

/* ---------- Cards ---------- */
.game-card {
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}
.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 24px 50px rgba(0, 229, 255, 0.18), 0 8px 24px rgba(0, 0, 0, 0.5);
}
/* shine sweep on hover */
.game-card .card-shine {
    position: absolute;
    top: 0; left: 0;
    width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.18), transparent);
    transform: translateX(-150%) skewX(-20deg);
    pointer-events: none;
    z-index: 5;
}
.game-card:hover .card-shine { animation: shineSweep 0.9s ease forwards; }

.stat-card {
    background: linear-gradient(165deg, #141a2c 0%, #0d1220 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    transition: transform 0.35s ease, border-color 0.3s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}
.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #F5C518, #F58220, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}
.stat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 197, 24, 0.45);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
}
.stat-card:hover::after { opacity: 1; }

/* Tilt wrapper (JS adds transform) */
.tilt { transform-style: preserve-3d; will-change: transform; transition: transform 0.2s ease-out; }
.tilt-inner { transform: translateZ(30px); }

/* ---------- Buttons ---------- */
.btn-glow {
    position: relative;
    overflow: hidden;
}
.btn-glow::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    background: linear-gradient(45deg, #00e5ff, #7c3aed, #00e5ff);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.btn-glow:hover::before { opacity: 1; }

/* moving shine on primary buttons */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
    transform: translateX(-150%) skewX(-20deg);
    animation: shineSweep 3.5s ease-in-out infinite;
    pointer-events: none;
}

/* ---------- Inputs / tables ---------- */
.gaming-input {
    background: #0c1220;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.gaming-input:focus {
    border-color: #F5C518;
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.12);
    outline: none;
}

.gaming-table { border-collapse: separate; border-spacing: 0; }
.gaming-table th {
    background: rgba(255, 255, 255, 0.04);
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: #9aa3b8;
}
.gaming-table tbody tr { transition: background 0.2s ease; }
.gaming-table tbody tr:hover { background: rgba(245, 197, 24, 0.05); }

/* ---------- Section titles ---------- */
.section-title { position: relative; display: inline-block; }
.section-title::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -10px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, #f5d76e, #00e5ff, #7c3aed);
    background-size: 200% 100%;
    animation: borderFlow 5s linear infinite;
}

/* ============================================================
   FLOATING CASINO FX — chips, cards, dice, coins
   ============================================================ */
.fx-scene { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fx-item { position: absolute; will-change: transform; }

/* Pure-CSS poker chip */
.fx-chip {
    width: 54px; height: 54px;
    border-radius: 50%;
    background:
        repeating-conic-gradient(from 0deg, transparent 0deg 14deg, rgba(255,255,255,0.9) 14deg 30deg) 0 0 / 14px 14px,
        radial-gradient(circle at 32% 30%, var(--chip-hi, #ff4d6d) 0%, var(--chip-lo, #8b0000) 62%, #1a1a24 100%);
    box-shadow:
        inset 0 0 0 6px rgba(0,0,0,0.25),
        inset 0 0 0 7px rgba(255,255,255,0.25),
        0 8px 22px rgba(0,0,0,0.55);
    position: relative;
}
.fx-chip::after {
    content: '';
    position: absolute;
    inset: 13px;
    border-radius: 50%;
    border: 2px dashed rgba(255,255,255,0.55);
}

/* Pure-CSS playing card */
.fx-card {
    width: 46px; height: 66px;
    border-radius: 6px;
    background: linear-gradient(150deg, #ffffff, #e8e8f0);
    box-shadow: 0 10px 26px rgba(0,0,0,0.5);
    position: relative;
    font-family: 'Bebas Neue', sans-serif;
}
.fx-card::before {
    content: attr(data-rank);
    position: absolute;
    top: 3px; left: 5px;
    font-size: 16px;
    line-height: 1;
    color: var(--suit, #c41e3a);
}
.fx-card::after {
    content: attr(data-suit);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--suit, #c41e3a);
}

/* Pure-CSS die */
.fx-die {
    width: 44px; height: 44px;
    border-radius: 9px;
    background: linear-gradient(145deg, #ffffff, #d8d8e4);
    box-shadow: 0 10px 24px rgba(0,0,0,0.5), inset 0 -4px 8px rgba(0,0,0,0.12);
    position: relative;
}
.fx-die i {
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #3a3a55, #0a0a1a);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.6);
}
.fx-die .pip-1 { top: 6px; left: 6px; }
.fx-die .pip-2 { top: 6px; left: 50%; margin-left: -4px; }
.fx-die .pip-3 { top: 6px; right: 6px; }
.fx-die .pip-4 { top: 50%; left: 6px; margin-top: -4px; }
.fx-die .pip-5 { top: 50%; left: 50%; margin: -4px 0 0 -4px; }
.fx-die .pip-6 { top: 50%; right: 6px; margin-top: -4px; }
.fx-die .pip-7 { bottom: 6px; left: 6px; }
.fx-die .pip-8 { bottom: 6px; left: 50%; margin-left: -4px; }
.fx-die .pip-9 { bottom: 6px; right: 6px; }

/* Pure-CSS coin */
.fx-coin {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #fff3a3 0%, #f5d76e 38%, #b8860b 78%, #7c4d0f 100%);
    box-shadow: 0 6px 18px rgba(0,0,0,0.5), inset 0 0 0 3px rgba(255,255,255,0.25);
    position: relative;
}
.fx-coin::after {
    content: '$';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    color: #7c4d0f;
    text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}

/* Float animations (duration/delay per element) */
@keyframes floatY {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(4deg); }
}
@keyframes floatRotate {
    0%, 100% { transform: translateY(0) rotate(-10deg); }
    50% { transform: translateY(-22px) rotate(12deg); }
}
@keyframes floatDrift {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(14px, -16px) rotate(8deg); }
    66% { transform: translate(-10px, -8px) rotate(-6deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}
.anim-float { animation: floatY 5s ease-in-out infinite; }
.anim-float-rotate { animation: floatRotate 8s ease-in-out infinite; }
.anim-drift { animation: floatDrift 9s ease-in-out infinite; }

/* ============================================================
   HERO SLOT MACHINE (decorative, auto-spinning)
   ============================================================ */
.hero-slot {
    --reel-h: 86px;
    position: relative;
    width: min(360px, 88vw);
    border-radius: 24px;
    padding: 22px;
    background:
        linear-gradient(160deg, #2a1230 0%, #170b22 45%, #0b0716 100%);
    border: 2px solid rgba(245, 215, 110, 0.45);
    box-shadow:
        0 0 0 6px rgba(10, 10, 20, 0.9),
        0 0 40px rgba(245, 215, 110, 0.22),
        0 30px 60px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255,255,255,0.12);
}
.hero-slot::before {
    content: '★ JACKPOT KING ★';
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    font-family: 'Audiowide', sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    color: #0a0a0f;
    background: linear-gradient(180deg, #fff3a3, #f5d76e 55%, #b8860b);
    padding: 5px 18px;
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(245, 215, 110, 0.5);
    white-space: nowrap;
    z-index: 6;
}
.hero-slot .slot-reels {
    display: flex;
    gap: 10px;
    background: rgba(5, 5, 14, 0.9);
    border-radius: 14px;
    padding: 10px;
    border: 1px solid rgba(245, 215, 110, 0.2);
    position: relative;
    overflow: hidden;
}
/* glowing payline */
.hero-slot .slot-reels::after {
    content: '';
    position: absolute;
    left: 6px; right: 6px; top: 50%;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, rgba(0,229,255,0.85), rgba(245,215,110,0.9), rgba(0,229,255,0.85), transparent);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.65);
    z-index: 4;
    pointer-events: none;
}
.hero-slot .reel {
    flex: 1;
    height: var(--reel-h);
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(180deg, #101024, #07070f);
    box-shadow: inset 0 8px 16px rgba(0,0,0,0.8), inset 0 -8px 16px rgba(0,0,0,0.8);
    position: relative;
}
.hero-slot .reel-strip {
    display: flex;
    flex-direction: column;
    animation: reelSpin var(--reel-speed, 2.4s) linear infinite;
    animation-delay: var(--reel-delay, 0s);
}
.hero-slot .reel-symbol {
    height: var(--reel-h);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
}
@keyframes reelSpin {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}
/* bulb lights on the cabinet */
.hero-slot .slot-bulbs {
    display: flex;
    justify-content: space-between;
    padding: 14px 6px 0;
}
.hero-slot .slot-bulbs span {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff, #fbbf24 60%, #b45309);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.85);
    animation: bulbGlow 1.4s ease-in-out infinite alternate;
}
.hero-slot .slot-bulbs span:nth-child(2n) { animation-delay: 0.35s; }
.hero-slot .slot-bulbs span:nth-child(3n) { animation-delay: 0.7s; }
.hero-slot .slot-bulbs span:nth-child(5n) { animation-delay: 1.05s; }

/* ============================================================
   TICKERS & JACKPOT
   ============================================================ */
.ticker-track {
    display: flex;
    width: max-content;
    overflow: hidden;
}
.ticker-content {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: tickerScroll 28s linear infinite;
    padding-right: 0;
}
.ticker-content:hover { animation-play-state: paused; }
@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
/* For a single span that loops seamlessly, duplicate the content via JS */

.jackpot-amount {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 2px;
    color: #fff3a3;
    text-shadow: 0 0 12px rgba(245, 215, 110, 0.8);
}

.jackpot-display {
    font-family: 'Bebas Neue', sans-serif;
    background: linear-gradient(110deg, #b8860b 15%, #fff3a3 38%, #f5d76e 50%, #fff3a3 62%, #b8860b 85%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    filter: drop-shadow(0 0 18px rgba(245, 215, 110, 0.35));
}

/* ============================================================
   SCROLL REVEAL & COUNT-UP
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0s);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ============================================================
   NEON FRAME — animated gradient border
   ============================================================ */
.neon-frame {
    position: relative;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(20,20,50,0.9), rgba(8,8,20,0.95));
    z-index: 0;
}
.neon-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(90deg, #00e5ff, #7c3aed, #f5d76e, #00e5ff);
    background-size: 300% 300%;
    animation: borderFlow 6s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

/* ============================================================
   SPOTLIGHT SWEEP (banner effect)
   ============================================================ */
.spotlight {
    position: absolute;
    top: -60%;
    left: -20%;
    width: 60%;
    height: 220%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.14) 45%, rgba(255,255,255,0.22) 50%, rgba(255,255,255,0.14) 55%, transparent);
    transform: rotate(18deg);
    animation: spotlightSweep 5.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes spotlightSweep {
    0%, 12% { left: -30%; opacity: 0; }
    22% { opacity: 1; }
    60% { opacity: 1; }
    78%, 100% { left: 130%; opacity: 0; }
}

/* ============================================================
   PAGE HERO (user-area page headers) — Web3 template style
   ============================================================ */
.page-hero {
    position: relative;
    border-radius: 18px;
    padding: 24px 26px;
    overflow: hidden;
    background: linear-gradient(135deg, #141a2c 0%, #0d1220 100%);
    border: 1px solid rgba(245, 197, 24, 0.25);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
    margin-bottom: 28px;
}
.page-hero h1 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ============================================================
   ANIMATED BACKGROUND ORBS & GRID
   ============================================================ */
.fx-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
    animation: orbPulse 8s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes orbPulse {
    from { transform: scale(0.9); opacity: 0.4; }
    to { transform: scale(1.15); opacity: 0.65; }
}

.fx-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
    pointer-events: none;
    animation: gridDrift 26s linear infinite;
}
@keyframes gridDrift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 44px 88px, 88px 44px; }
}

/* ============================================================
   LEGACY ANIMATION UTILITIES (kept)
   ============================================================ */
@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-slide-up { animation: slideInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.animate-fade-in { animation: fadeIn 0.5s ease-out forwards; }

.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #00e5ff, #7c3aed);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.modal-overlay { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); }

.tooltip { position: relative; }
.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 62, 0.95);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.tooltip:hover::after { opacity: 1; }

/* ============================================================
   CASINO UI (kept + enhanced)
   ============================================================ */
.casino-dashboard {
    background:
        radial-gradient(ellipse at 15% 0%, rgba(120, 180, 255, 0.06), transparent 45%),
        radial-gradient(ellipse at 90% 100%, rgba(245, 197, 24, 0.05), transparent 45%),
        #0A0E1A;
}

.casino-banner {
    background: linear-gradient(135deg, #5a0a0a 0%, #a3122c 35%, #3c1063 75%, #12062a 100%);
    position: relative;
    overflow: hidden;
}

.casino-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    animation: casinoBannerMove 20s linear infinite;
}

@keyframes casinoBannerMove {
    from { background-position: 0 0; }
    to { background-position: 60px 60px; }
}

.casino-chip {
    background: radial-gradient(circle at 30% 30%, #2a2a35 0%, #1a1a24 60%, #0f0f16 100%);
    border: 8px dashed #f5d76e;
    box-shadow:
        inset 0 0 20px rgba(0,0,0,0.8),
        0 0 0 4px #1a1a24,
        0 0 30px rgba(245, 215, 110, 0.15);
}

.casino-card {
    background: linear-gradient(165deg, #141a2c 0%, #0d1220 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    transition: transform 0.35s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}
.casino-card:hover {
    border-color: rgba(245, 197, 24, 0.45);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
}

.casino-btn-gold {
    background: linear-gradient(180deg, #fff3a3 0%, #f5d76e 50%, #b8860b 100%);
    color: #1a1a24;
    box-shadow: 0 4px 20px rgba(245, 215, 110, 0.3);
    transition: all 0.2s ease;
}
.casino-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(245, 215, 110, 0.5);
}

.casino-btn-green {
    background: linear-gradient(180deg, #2ecc40 0%, #228b22 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(34, 139, 34, 0.3);
    transition: all 0.2s ease;
}
.casino-btn-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(34, 139, 34, 0.5);
}

.casino-btn-red {
    background: linear-gradient(180deg, #ff4d6d 0%, #c41e3a 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.3);
    transition: all 0.2s ease;
}
.casino-btn-red:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(196, 30, 58, 0.5);
}

.casino-stat {
    background: linear-gradient(165deg, #141a2c 0%, #0d1220 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.casino-table th {
    background: rgba(255, 255, 255, 0.04);
    color: #9aa3b8;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}
.casino-table tbody tr { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.casino-table tbody tr:hover { background: rgba(245, 197, 24, 0.04); }

.casino-glow {
    box-shadow: 0 0 20px rgba(245, 215, 110, 0.15),
                0 0 40px rgba(245, 215, 110, 0.1);
}

.casino-marquee {
    background: linear-gradient(90deg, #8b0000, #c41e3a, #8b0000);
    color: #fff3a3;
    overflow: hidden;
    white-space: nowrap;
}

.casino-marquee span {
    display: inline-block;
    animation: casinoMarquee 15s linear infinite;
}

@keyframes casinoMarquee {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* ============================================================
   SPIN TO WIN WHEEL (kept)
   ============================================================ */
.spin-wheel-container {
    position: relative;
    width: 260px;
    height: 260px;
    perspective: 1000px;
}
.spin-wheel {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 3.2s cubic-bezier(0.15, 0.05, 0.25, 1);
    box-shadow:
        inset 0 0 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 229, 255, 0.2),
        0 0 60px rgba(124, 58, 237, 0.15);
    border: 8px solid rgba(255, 255, 255, 0.08);
}
.spin-wheel::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.15);
    animation: spinWheelRing 20s linear infinite;
    pointer-events: none;
}
@keyframes spinWheelRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spin-wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: linear-gradient(145deg, #1a1a3e, #0a0a1a);
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.3);
    z-index: 3;
}
.spin-marker {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 22px solid #f59e0b;
    filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.8));
    z-index: 5;
}
.spin-glow {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.08) 0%, transparent 70%);
    animation: spinGlow 3s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}
@keyframes spinGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}
.spin-segment-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 0 0;
    font-family: 'Audiowide', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}

/* ============================================================
   CARNIVAL SPIN TO WIN WHEEL (kept)
   ============================================================ */
.carnival-wheel-wrap {
    --wheel-size: min(360px, 85vw);
    position: relative;
    width: var(--wheel-size);
    max-width: 100%;
    height: var(--wheel-size);
    margin: 0 auto;
    filter: drop-shadow(0 0 calc(var(--wheel-size) * 0.083) rgba(220, 38, 38, 0.55));
}

.carnival-wheel {
    position: absolute;
    top: 50%;
    left: 50%;
    width: calc(var(--wheel-size) * 0.889);
    height: calc(var(--wheel-size) * 0.889);
    border-radius: 50%;
    border: calc(var(--wheel-size) * 0.039) solid #991b1b;
    box-shadow:
        inset 0 0 calc(var(--wheel-size) * 0.139) rgba(0, 0, 0, 0.65),
        0 0 0 calc(var(--wheel-size) * 0.011) rgba(251, 191, 36, 0.35),
        0 0 calc(var(--wheel-size) * 0.125) rgba(220, 38, 38, 0.45);
    transition: transform 3.2s cubic-bezier(0.15, 0.05, 0.25, 1);
    overflow: hidden;
    transform: translate(-50%, -50%);
}

.carnival-wheel::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 calc(var(--wheel-size) * 0.05) rgba(0, 0, 0, 0.35);
    pointer-events: none;
}

.carnival-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(var(--wheel-size) * 0.183);
    height: calc(var(--wheel-size) * 0.183);
    border-radius: 50%;
    background: conic-gradient(
        #b8860b 0deg,
        #f5d76e 60deg,
        #d4af37 120deg,
        #8b6914 180deg,
        #f5d76e 240deg,
        #b8860b 300deg,
        #f5d76e 360deg
    );
    border: calc(var(--wheel-size) * 0.011) solid #7c4d0f;
    box-shadow:
        inset 0 0 calc(var(--wheel-size) * 0.033) rgba(0, 0, 0, 0.5),
        0 0 calc(var(--wheel-size) * 0.042) rgba(0, 0, 0, 0.45);
    z-index: 5;
}

.carnival-hub::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(var(--wheel-size) * 0.05);
    height: calc(var(--wheel-size) * 0.05);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff 0%, #d4af37 45%, #7c4d0f 100%);
    box-shadow: inset 0 0 calc(var(--wheel-size) * 0.011) rgba(0, 0, 0, 0.4);
}

.carnival-pointer {
    position: absolute;
    top: calc(var(--wheel-size) * -0.072);
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: calc(var(--wheel-size) * 0.05) solid transparent;
    border-right: calc(var(--wheel-size) * 0.05) solid transparent;
    border-top: calc(var(--wheel-size) * 0.094) solid #ffffff;
    filter: drop-shadow(0 0 calc(var(--wheel-size) * 0.022) rgba(255, 255, 255, 0.9));
    z-index: 10;
}

.carnival-pointer::after {
    content: '';
    position: absolute;
    top: calc(var(--wheel-size) * -0.117);
    left: 50%;
    transform: translateX(-50%);
    width: calc(var(--wheel-size) * 0.039);
    height: calc(var(--wheel-size) * 0.039);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff 0%, #fbbf24 50%, #d97706 100%);
    box-shadow: 0 0 calc(var(--wheel-size) * 0.033) #fbbf24;
}

.carnival-bulb {
    position: absolute;
    width: calc(var(--wheel-size) * 0.028);
    height: calc(var(--wheel-size) * 0.028);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff 0%, #fef3c7 30%, #fbbf24 70%);
    box-shadow: 0 0 calc(var(--wheel-size) * 0.022) rgba(251, 191, 36, 0.6);
    transform: translate(-50%, -50%);
    z-index: 4;
}

.carnival-bulb.on { animation: bulbFlicker 1.6s ease-in-out infinite alternate; }
.carnival-bulb.on-bright { animation: bulbGlow 1.6s ease-in-out infinite alternate; }

@keyframes bulbFlicker {
    0%, 40%, 100% { opacity: 0.45; box-shadow: 0 0 4px rgba(251, 191, 36, 0.3); }
    20%, 60% { opacity: 1; box-shadow: 0 0 12px rgba(251, 191, 36, 0.95); }
}

@keyframes bulbGlow {
    0%, 100% { opacity: 0.55; box-shadow: 0 0 5px rgba(255, 255, 255, 0.4); }
    50% { opacity: 1; box-shadow: 0 0 14px rgba(255, 255, 255, 0.95), 0 0 22px rgba(251, 191, 36, 0.8); }
}

.carnival-label {
    position: absolute;
    transform-origin: center center;
    font-family: 'Audiowide', sans-serif;
    font-weight: 800;
    font-size: max(9px, calc(var(--wheel-size) * 0.036));
    line-height: 1;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
    white-space: nowrap;
    pointer-events: none;
    z-index: 3;
    letter-spacing: 0.5px;
}

.carnival-label.dark {
    color: #450a0a;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.35);
}

/* ============================================================
   CAESARS-STYLE HOMEPAGE COMPONENTS
   ============================================================ */

/* Hero offer card (burgundy gradient) */
.csr-hero-card {
    background:
        radial-gradient(ellipse at 85% 15%, rgba(245, 197, 24, 0.10), transparent 55%),
        linear-gradient(135deg, #5C1A1A 0%, #7A2020 50%, #3D1212 100%);
    border: 1px solid rgba(245, 197, 24, 0.35);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255,255,255,0.07);
    position: relative;
    overflow: hidden;
}
.csr-hero-card .spotlight { opacity: 0.7; }

/* giant condensed bonus line with gold underline sweep */
.csr-bonus-line {
    font-family: 'Bebas Neue', sans-serif;
    line-height: 0.95;
}
.csr-underline-gold {
    position: relative;
    display: inline-block;
}
.csr-underline-gold::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 2px;
    height: 8px;
    background: linear-gradient(90deg, #F5C518, #F58220);
    border-radius: 4px;
    opacity: 0.85;
    z-index: -1;
}

/* Phone mockups */
.csr-phone {
    width: 210px;
    border-radius: 30px;
    background: linear-gradient(160deg, #1b1b28, #0b0b14);
    border: 2px solid rgba(245, 197, 24, 0.45);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(245, 130, 32, 0.12);
    padding: 10px;
    position: relative;
}
.csr-phone-screen {
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(180deg, #10101c, #08080f);
}
.csr-phone-notch {
    width: 70px; height: 6px;
    border-radius: 999px;
    background: #000;
    margin: 2px auto 6px;
    border: 1px solid rgba(255,255,255,0.08);
}
.csr-phone-tilt-l { transform: rotate(-8deg) translateY(10px); z-index: 1; }
.csr-phone-tilt-r { transform: rotate(6deg) translateY(-14px); z-index: 2; }

/* mini game tile inside phone */
.csr-mini-tile {
    border-radius: 12px;
    background: linear-gradient(160deg, #1d1d31, #101019);
    border: 1px solid rgba(245, 197, 24, 0.28);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 4px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.csr-mini-tile:hover { transform: translateY(-2px); border-color: rgba(245, 197, 24, 0.6); }

/* gold-framed carousel tiles */
.csr-tile {
    border-radius: 16px;
    background: linear-gradient(165deg, #15152a 0%, #0a0a16 100%);
    border: 1px solid rgba(245, 197, 24, 0.30);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.csr-tile:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 197, 24, 0.7);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(245, 197, 24, 0.12);
}
.csr-tile .card-shine {
    position: absolute; top: 0; left: 0;
    width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.16), transparent);
    transform: translateX(-150%) skewX(-20deg);
    pointer-events: none; z-index: 5;
}
.csr-tile:hover .card-shine { animation: shineSweep 0.9s ease forwards; }

/* category tab pills */
.tab-pill {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.55rem 1.4rem;
    border-radius: 999px;
    transition: all 0.25s ease;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    color: #cbd0dd;
    cursor: pointer;
}
.tab-pill:hover { color: #fff; border-color: rgba(245,197,24,0.4); }
.tab-pill.active {
    background: #F58220;
    border-color: #F58220;
    color: #16100a;
    box-shadow: 0 4px 18px rgba(245, 130, 32, 0.4);
}

/* carousel scroll area */
.csr-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding: 8px 4px 20px;
}
.csr-carousel::-webkit-scrollbar { display: none; }
.csr-carousel > * { scroll-snap-align: start; }
.csr-carousel-btn {
    width: 42px; height: 42px;
    border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(245,197,24,0.35);
    color: #F5C518;
    transition: all 0.2s ease;
    cursor: pointer;
}
.csr-carousel-btn:hover { background: rgba(245,197,24,0.15); transform: scale(1.06); }

/* purple promo banner */
.csr-promo-purple {
    background:
        radial-gradient(ellipse at 12% 120%, rgba(245, 130, 32, 0.22), transparent 55%),
        linear-gradient(120deg, #4A1259 0%, #8E2B8E 55%, #C13E8E 100%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* navy feature card with gold border */
.csr-feature-card {
    background: linear-gradient(165deg, #10192e 0%, #0a0f1d 100%);
    border: 1px solid rgba(245, 197, 24, 0.30);
    border-radius: 18px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.csr-feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 197, 24, 0.6);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

/* promo card with image-style header */
.csr-promo-card {
    border-radius: 18px;
    background: linear-gradient(165deg, #131b31 0%, #0a0f1d 100%);
    border: 1px solid rgba(255, 255, 255, 0.10);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.csr-promo-card:hover { transform: translateY(-5px); border-color: rgba(245,197,24,0.45); }

/* ============================================================
   WEB3-STYLE USER DASHBOARD (3-column)
   ============================================================ */

/* top navbar with notched center brand pill */
.w3-navbar {
    position: sticky;
    top: 0;
    z-index: 45;
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.w3-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 22px;
    border-radius: 999px;
    background: #141a2c;
    border: 1px solid rgba(245, 197, 24, 0.35);
    box-shadow: 0 0 22px rgba(245, 197, 24, 0.12), inset 0 1px 0 rgba(255,255,255,0.06);
}
.w3-navlink {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    font-weight: 600;
    color: #9aa3b8;
    padding: 8px 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
}
.w3-navlink:hover { color: #fff; background: rgba(255,255,255,0.06); }
.w3-navlink.active {
    color: #F5C518;
    background: rgba(245, 197, 24, 0.10);
    box-shadow: inset 0 -2px 0 #F5C518;
}

/* tokens / balance hero card */
.w3-tokens-card {
    position: relative;
    border-radius: 18px;
    background: linear-gradient(150deg, #16203a 0%, #101627 100%);
    border: 1px solid rgba(245, 197, 24, 0.30);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    overflow: visible;
}
.w3-tokens-coin {
    position: absolute;
    top: -18px;
    right: -10px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 28%, #fff3a3 0%, #f5d76e 40%, #b8860b 85%);
    box-shadow: 0 8px 20px rgba(0,0,0,0.5), inset 0 0 0 4px rgba(255,255,255,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    animation: coinBob 3s ease-in-out infinite;
    z-index: 3;
}
@keyframes coinBob {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50% { transform: translateY(-6px) rotate(6deg); }
}

/* wallet rows */
.w3-wallet-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    cursor: pointer;
}
.w3-wallet-row:hover { background: rgba(255,255,255,0.06); border-color: rgba(245,197,24,0.25); }
.w3-wallet-row.active { background: rgba(245,197,24,0.08); border-color: rgba(245,197,24,0.45); }
.w3-wallet-ico {
    width: 38px; height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), 0 4px 10px rgba(0,0,0,0.35);
}

/* mode tabs */
.w3-mode-tab {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    transition: all 0.25s ease;
    cursor: pointer;
}
.w3-mode-tab:hover { border-color: rgba(245,197,24,0.4); transform: translateY(-2px); }
.w3-mode-tab.active {
    background: linear-gradient(135deg, #1c2a4d, #141c33);
    border-color: rgba(120, 180, 255, 0.55);
    box-shadow: 0 0 24px rgba(90, 140, 255, 0.22), inset 0 1px 0 rgba(255,255,255,0.08);
}
.w3-mode-tab .tab-ico {
    width: 34px; height: 34px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
}

/* hero fan carousel */
.w3-hero-stage {
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* keep fanned side cards from causing horizontal scroll */
}
.w3-hero-card {
    position: absolute;
    width: min(400px, 78%);
    border-radius: 22px;
    padding: 26px;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease, filter 0.5s ease;
    background: linear-gradient(160deg, #1a2542 0%, #10182c 100%);
    border: 1px solid rgba(120, 180, 255, 0.45);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 40px rgba(90, 140, 255, 0.10);
    text-align: center;
    z-index: 2;
}
.w3-hero-card.side-left {
    transform: translateX(-56%) rotate(-8deg) scale(0.86);
    filter: brightness(0.6);
    z-index: 1;
    opacity: 0.85;
}
.w3-hero-card.side-right {
    transform: translateX(56%) rotate(8deg) scale(0.86);
    filter: brightness(0.6);
    z-index: 1;
    opacity: 0.85;
}
.w3-watermark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(60px, 11vw, 130px);
    letter-spacing: 8px;
    white-space: nowrap;
    color: transparent;
    background: linear-gradient(180deg, rgba(120,150,220,0.16), rgba(120,150,220,0.03));
    -webkit-background-clip: text;
    background-clip: text;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
.w3-circle-btn {
    width: 46px; height: 46px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(20, 26, 44, 0.9);
    border: 1px solid rgba(120, 180, 255, 0.4);
    color: #9fc0ff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
    transition: all 0.2s ease;
    cursor: pointer;
    z-index: 5;
}
.w3-circle-btn:hover { transform: scale(1.08); background: rgba(40, 55, 95, 0.95); }

/* FREE PLAY button */
.w3-freeplay-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 12px 34px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #f43f8e, #d946ef 60%, #a855f7);
    box-shadow: 0 10px 30px rgba(217, 70, 239, 0.45), inset 0 1px 0 rgba(255,255,255,0.25);
    transition: all 0.2s ease;
}
.w3-freeplay-btn:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 38px rgba(217, 70, 239, 0.6); }

/* game room cards */
.w3-room-card {
    min-width: 215px;
    max-width: 215px;
    border-radius: 18px;
    background: linear-gradient(165deg, #151d33 0%, #0c1220 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.w3-room-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 197, 24, 0.5);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}
.w3-room-band {
    background: linear-gradient(90deg, rgba(10,14,26,0.15), rgba(10,14,26,0.85));
    backdrop-filter: blur(2px);
}
.w3-room-timer {
    position: relative;
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: conic-gradient(#7aa7ff calc(var(--p, 60) * 1%), rgba(255,255,255,0.08) 0);
    font-size: 10px;
    font-weight: 700;
}
.w3-room-timer::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #101828;
    z-index: 0;
}
.w3-room-timer span { position: relative; z-index: 1; color: #cdd8f2; }
.w3-play-btn {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 7px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: #fff;
    box-shadow: 0 6px 18px rgba(56, 189, 248, 0.35);
    transition: all 0.2s ease;
}
.w3-play-btn:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(56, 189, 248, 0.5); }
.w3-play-btn.gold {
    background: linear-gradient(135deg, #F5C518, #F58220);
    color: #191100;
    box-shadow: 0 6px 18px rgba(245, 197, 24, 0.35);
}

/* chat / activity panel */
.w3-chat-card {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 12px;
    transition: background 0.2s ease;
}
.w3-chat-card:hover { background: rgba(255,255,255,0.05); }
.w3-level-badge {
    font-family: 'Oswald', sans-serif;
    font-size: 9px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: #fff;
    letter-spacing: 0.05em;
}

/* dashed add button */
.w3-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    border: 2px dashed rgba(245, 197, 24, 0.35);
    color: #F5C518;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}
.w3-add-btn:hover { border-color: #F5C518; background: rgba(245,197,24,0.07); }

@media (max-width: 640px) {
    .w3-hero-stage { height: 420px; }
    .w3-hero-card { width: 92%; padding: 20px 16px; }
    .w3-hero-card.side-left { transform: translateX(-34%) rotate(-6deg) scale(0.72); opacity: 0.55; }
    .w3-hero-card.side-right { transform: translateX(34%) rotate(6deg) scale(0.72); opacity: 0.55; }
    .w3-circle-btn { width: 38px; height: 38px; }
    .w3-mode-tab { padding: 10px 14px; }
    .w3-room-card { min-width: 185px; max-width: 185px; }
    .w3-watermark { letter-spacing: 4px; }
    .w3-tokens-coin { width: 44px; height: 44px; right: -6px; top: -14px; }
}

/* responsive tweaks */
@media (max-width: 640px) {
    .csr-phone-tilt-l { transform: rotate(-5deg) translateY(0); }
    .csr-phone-tilt-r { transform: rotate(4deg) translateY(-6px); }
}
@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes shineSweep {
    0% { transform: translateX(-150%) skewX(-20deg); }
    60%, 100% { transform: translateX(250%) skewX(-20deg); }
}

@keyframes borderFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================================
   RESPONSIVE / MISC
   ============================================================ */
@media (max-width: 768px) {
    .game-card:hover { transform: translateY(-4px) scale(1.01); }
    .spotlight { display: none; }
}

@media print {
    .no-print { display: none !important; }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .ticker-content,
    .hero-slot .reel-strip,
    .fx-item,
    .spotlight,
    .fx-grid-lines { animation: none !important; }
}

/* ============================================================
   ADMIN OVERRIDES (kept — admin pages use a light theme)
   ============================================================ */
.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-form input[type="text"],
.admin-form input[type="email"],
.admin-form input[type="password"],
.admin-form input[type="number"],
.admin-form input[type="file"],
.admin-form input[type="datetime-local"] {
    color: #1f2937 !important;
    background-color: #ffffff !important;
}

.admin-form input::placeholder,
.admin-form textarea::placeholder {
    color: #9ca3af !important;
}

.admin-page input[type="text"],
.admin-page input[type="email"],
.admin-page input[type="password"],
.admin-page input[type="number"],
.admin-page input[type="file"],
.admin-page input[type="datetime-local"],
.admin-page textarea,
.admin-page select {
    color: #1f2937 !important;
    background-color: #ffffff !important;
}

.admin-page input::placeholder,
.admin-page textarea::placeholder {
    color: #9ca3af !important;
}
