/* ================================================
   🏛️ PANDA OLYMPUS PRO — Visual Fiel ao Gates of Olympus
   Gemas CSS, Fundo de Templo, Frame Dourado, Colunas
   ================================================ */

/* ===== GAME CONTAINER ===== */
.po-game-container {
    background: #1a0a2e url('olympus-bg.png') no-repeat center top;
    background-size: cover;
    min-height: 100vh;
    padding-bottom: 120px;
    position: relative;
    overflow: hidden;
}

/* Overlay escuro para contraste */
.po-game-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(10, 5, 30, 0.3) 0%,
        rgba(10, 5, 30, 0.1) 30%,
        rgba(10, 5, 30, 0.4) 70%,
        rgba(10, 5, 30, 0.8) 100%);
    pointer-events: none;
    z-index: 1;
}

/* ===== HEADER / LOGO ===== */
.po-header {
    text-align: center;
    padding: 12px 12px 4px;
    position: relative;
    z-index: 2;
}

.po-header-logo {
    position: relative;
    display: inline-block;
}

.po-header-logo img {
    height: 80px;
}

.po-header h1 {
    font-size: 1.1rem;
    font-weight: 900;
    background: linear-gradient(180deg, #ffd700 0%, #ff8c00 60%, #b8860b 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    margin: 4px 0 0;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Georgia', serif;
}

.po-header .po-panda-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 2px;
    filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.6));
    animation: po-float 4s ease-in-out infinite;
}

.po-header-subtitle {
    color: #ffd700;
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 2px;
}

.po-header-maxwin {
    color: #ffd700;
    font-size: 0.65rem;
    margin-top: 4px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@keyframes po-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-6px) rotate(2deg); }
}

/* ===== SCROLLING MESSAGE ===== */
.po-scroll-msg {
    text-align: center;
    padding: 6px;
    color: #ffd700;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

/* ===== JACKPOT BAR ===== */
.po-jackpot-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 6px 16px;
    margin: 0 16px 4px;
    background: linear-gradient(90deg, rgba(139, 69, 19, 0.6), rgba(218, 165, 32, 0.3), rgba(139, 69, 19, 0.6));
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 8px;
    position: relative;
    z-index: 2;
}

.po-jackpot-bar span {
    color: #ffd700;
    font-weight: 800;
    font-size: 0.9rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.po-jackpot-bar .po-jackpot-value {
    font-size: 1.2rem;
    animation: po-pulse-gold 2s ease-in-out infinite;
}

@keyframes po-pulse-gold {
    0%, 100% { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    50% { text-shadow: 0 0 20px rgba(255, 215, 0, 0.9), 0 0 40px rgba(255, 140, 0, 0.4); }
}

/* ===== MULTIPLIER DISPLAY ===== */
.po-mult-display {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    z-index: 2;
    position: relative;
}

.po-mult-display span {
    color: #ffd700;
    font-size: 1.3rem;
    font-weight: 900;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
    animation: po-mult-glow 1s ease-in-out infinite alternate;
}

@keyframes po-mult-glow {
    from { transform: scale(1); }
    to { transform: scale(1.1); text-shadow: 0 0 20px rgba(255, 215, 0, 1); }
}

/* ===== FREE SPINS BANNER ===== */
.po-freespin-banner {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    margin: 4px 16px;
    background: linear-gradient(90deg, #7c3aed, #a855f7, #7c3aed);
    border-radius: 8px;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    animation: po-fs-pulse 1.5s ease-in-out infinite;
    z-index: 2;
    position: relative;
}

@keyframes po-fs-pulse {
    0%, 100% { box-shadow: 0 0 15px rgba(124, 58, 237, 0.5); }
    50% { box-shadow: 0 0 30px rgba(168, 85, 247, 0.8); }
}

/* ===== GRID WRAPPER ===== */
.po-grid-wrapper {
    position: relative;
    margin: 6px auto;
    max-width: 700px;
    padding: 0 12px;
}

/* ===== ORNATE GOLDEN FRAME ===== */
.po-grid-frame {
    border: 4px solid;
    border-image: linear-gradient(180deg, #ffd700, #b8860b, #ffd700, #daa520) 1;
    padding: 6px;
    background: rgba(80, 20, 20, 0.65);
    box-shadow:
        0 0 30px rgba(255, 215, 0, 0.15),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Column decorations on sides */
.po-grid-frame::before,
.po-grid-frame::after {
    content: '';
    position: absolute;
    top: -8px;
    bottom: -8px;
    width: 12px;
    background: linear-gradient(180deg, #ffd700, #b8860b, #daa520, #b8860b, #ffd700);
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
}

.po-grid-frame::before { left: -14px; }
.po-grid-frame::after { right: -14px; }

/* Top ornament */
.po-grid-top-ornament {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: linear-gradient(180deg, #ffd700, #daa520);
    clip-path: polygon(0% 100%, 10% 0%, 90% 0%, 100% 100%);
    z-index: 5;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* ===== GRID ===== */
.po-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 3px;
    aspect-ratio: 6/5;
}

/* ===== CELL ===== */
.po-cell {
    background: rgba(60, 20, 40, 0.5);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.08);
}

/* ===== SYMBOL IMAGES ===== */
.po-sym-img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s;
    pointer-events: none;
}

.po-sym-emoji {
    font-size: clamp(1.2rem, 4.5vw, 2rem);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s;
}

/* Animations on symbols */
.po-cell.po-shuffling .po-sym-img,
.po-cell.po-shuffling .po-sym-emoji {
    animation: po-cell-shuffle 0.06s ease;
}

.po-cell.po-drop-in .po-sym-img,
.po-cell.po-drop-in .po-sym-emoji {
    animation: po-drop-anim 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.po-cell.po-winning .po-sym-img,
.po-cell.po-winning .po-sym-emoji {
    animation: po-gem-pulse 0.4s ease-in-out infinite alternate;
}

.po-cell.po-exploding .po-sym-img,
.po-cell.po-exploding .po-sym-emoji {
    animation: po-explode-anim 0.4s ease-out forwards;
}

/* ===== GEM SYMBOLS (CSS-rendered) ===== */
.po-gem {
    width: 75%;
    height: 75%;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s;
}

/* Blue Diamond */
.po-gem-blue {
    background: linear-gradient(135deg, #60a5fa, #2563eb, #1d4ed8, #3b82f6);
    clip-path: polygon(50% 0%, 100% 35%, 85% 100%, 15% 100%, 0% 35%);
    box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.3), inset 0 4px 8px rgba(255, 255, 255, 0.3);
}
.po-gem-blue::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 25%;
    width: 30%;
    height: 20%;
    background: rgba(255, 255, 255, 0.4);
    clip-path: polygon(0% 0%, 100% 0%, 60% 100%);
}

/* Green Emerald */
.po-gem-green {
    background: linear-gradient(135deg, #4ade80, #16a34a, #15803d, #22c55e);
    clip-path: polygon(25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%);
}
.po-gem-green::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 20%;
    width: 35%;
    height: 25%;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
}

/* Purple Amethyst (triangle) */
.po-gem-purple {
    background: linear-gradient(180deg, #c084fc, #7c3aed, #6d28d9, #a855f7);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.po-gem-purple::after {
    content: '';
    position: absolute;
    top: 30%;
    left: 35%;
    width: 20%;
    height: 15%;
    background: rgba(255, 255, 255, 0.35);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

/* Red Ruby (pentagon) */
.po-gem-red {
    background: linear-gradient(135deg, #f87171, #dc2626, #b91c1c, #ef4444);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}
.po-gem-red::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 30%;
    width: 25%;
    height: 18%;
    background: rgba(255, 255, 255, 0.35);
    clip-path: polygon(0% 100%, 50% 0%, 100% 100%);
}

/* Yellow Topaz (hexagon) */
.po-gem-yellow {
    background: linear-gradient(135deg, #fde047, #eab308, #ca8a04, #facc15);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}
.po-gem-yellow::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 25%;
    width: 30%;
    height: 20%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
}

/* Ring (premium) */
.po-gem-ring {
    width: 65%;
    height: 65%;
    border: 4px solid #daa520;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #ffd700, #b8860b, #8b6914);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4), inset 0 -3px 6px rgba(0,0,0,0.3);
}
.po-gem-ring::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 30%;
    width: 25%;
    height: 40%;
    background: linear-gradient(180deg, #ffd700, transparent);
    border-radius: 50% 50% 0 0;
    opacity: 0.6;
}

/* Goblet/Trophy (premium) */
.po-gem-goblet {
    width: 60%;
    height: 75%;
    background: linear-gradient(180deg, #fbbf24, #d97706, #92400e);
    clip-path: polygon(20% 0%, 80% 0%, 90% 35%, 70% 45%, 75% 85%, 85% 100%, 15% 100%, 25% 85%, 30% 45%, 10% 35%);
}
.po-gem-goblet::after {
    content: '';
    position: absolute;
    top: 5%;
    left: 30%;
    width: 20%;
    height: 25%;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 50%;
}

/* Crown (premium) */
.po-gem-crown {
    width: 70%;
    height: 60%;
    background: linear-gradient(180deg, #ffd700, #daa520, #b8860b);
    clip-path: polygon(0% 100%, 5% 40%, 20% 65%, 35% 20%, 50% 55%, 65% 20%, 80% 65%, 95% 40%, 100% 100%);
    filter: drop-shadow(0 2px 6px rgba(255, 215, 0, 0.5));
}
.po-gem-crown::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 15%;
    width: 70%;
    height: 20%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

/* Panda Scatter */
.po-gem-panda {
    font-size: clamp(1.2rem, 4.5vw, 1.8rem);
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.7));
    animation: po-scatter-glow 2s ease-in-out infinite;
    width: auto;
    height: auto;
    background: none;
}

@keyframes po-scatter-glow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5)); }
    50% { filter: drop-shadow(0 0 16px rgba(255, 215, 0, 1)) brightness(1.2); }
}

/* ===== CELL ANIMATIONS ===== */
.po-cell.po-shuffling .po-gem {
    animation: po-cell-shuffle 0.06s ease;
}

@keyframes po-cell-shuffle {
    0% { transform: scale(0.7) rotate(10deg); opacity: 0.5; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.po-cell.po-drop-in .po-gem {
    animation: po-drop-anim 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes po-drop-anim {
    0% { transform: translateY(-60px) scale(0.5); opacity: 0; }
    60% { transform: translateY(4px) scale(1.08); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.po-cell.po-winning {
    animation: po-win-glow 0.4s ease-in-out infinite alternate;
    z-index: 3;
}

.po-cell.po-winning .po-gem {
    animation: po-gem-pulse 0.4s ease-in-out infinite alternate;
}

@keyframes po-win-glow {
    0% { box-shadow: 0 0 8px rgba(255, 215, 0, 0.4), inset 0 0 8px rgba(255, 215, 0, 0.15); }
    100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), inset 0 0 12px rgba(255, 215, 0, 0.25); background: rgba(255, 215, 0, 0.15); }
}

@keyframes po-gem-pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); filter: brightness(1.3); }
}

.po-cell.po-exploding .po-gem {
    animation: po-explode-anim 0.4s ease-out forwards;
}

@keyframes po-explode-anim {
    0% { transform: scale(1.1); opacity: 1; }
    50% { transform: scale(1.5) rotate(15deg); opacity: 0.5; }
    100% { transform: scale(0) rotate(45deg); opacity: 0; }
}

/* ===== RESULT BANNER ===== */
.po-result-banner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 900;
    text-align: center;
    z-index: 50;
    pointer-events: none;
    animation: po-banner-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    font-family: 'Georgia', serif;
}

.po-result-banner.po-win {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #1a0800;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    border: 2px solid #fff3;
}

.po-result-banner.po-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.po-result-banner.po-freespin {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.6);
}

.po-result-banner.po-jackpot {
    background: linear-gradient(135deg, #ffd700, #ff4500, #ffd700);
    color: #1a0800;
    font-size: 1.5rem;
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.8);
}

@keyframes po-banner-pop {
    0% { transform: translate(-50%, -50%) scale(0); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

/* ===== MULTIPLIER POPUP ===== */
.po-mult-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 60;
    animation: po-mult-burst 1.2s ease-out forwards;
}

.po-mult-popup span {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ff6b00);
    color: #1a0800;
    padding: 10px 24px;
    border-radius: 12px;
    font-size: 1.8rem;
    font-weight: 900;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.8);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Georgia', serif;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes po-mult-burst {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    30% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
    70% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -60%) scale(0.8); opacity: 0; }
}

/* ===== PARTICLES ===== */
.po-particle-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 40;
    overflow: hidden;
}

.po-particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    animation: po-particle-fly 1s ease-out forwards;
}

.po-particle.po-burst {
    width: 7px;
    height: 7px;
    animation: po-particle-burst 1.5s ease-out forwards;
}

@keyframes po-particle-fly {
    0% { transform: translateY(0) scale(1); opacity: 1; }
    100% { transform: translateY(-50px) translateX(var(--dx, 20px)) scale(0); opacity: 0; }
}

@keyframes po-particle-burst {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: translateY(calc(-30px + var(--dy, 0px))) translateX(var(--dx, 0px)) scale(0); opacity: 0; }
}

/* ===== LIGHTNING ===== */
.po-lightning {
    position: absolute;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, transparent, rgba(255, 215, 0, 0.8) 30%, #fff 50%, rgba(255, 215, 0, 0.8) 70%, transparent);
    opacity: 0;
    animation: po-lightning-flash 0.6s ease-out forwards;
    z-index: 45;
}

@keyframes po-lightning-flash {
    0% { opacity: 0; }
    10% { opacity: 1; }
    20% { opacity: 0.2; }
    30% { opacity: 1; }
    100% { opacity: 0; }
}

/* ===== BOTTOM BAR (estilo Gates of Olympus) ===== */
.po-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: linear-gradient(180deg, rgba(40, 15, 10, 0.95), rgba(20, 8, 5, 0.98));
    border-top: 2px solid #b8860b;
    z-index: 100;
    min-height: 65px;
}

.po-bar-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 60px;
}

.po-bar-label {
    font-size: 0.6rem;
    color: #b8860b;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.po-bar-value {
    font-size: 1rem;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.3);
}

/* Bet controls */
.po-bet-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.po-bet-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #b8860b;
    background: rgba(184, 134, 11, 0.15);
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.po-bet-btn:active {
    transform: scale(0.9);
    background: rgba(255, 215, 0, 0.3);
}

/* Spin Button — circular like the real game */
.po-spin-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #ffd700;
    background: radial-gradient(circle at 40% 35%, #8b6914, #5c4410, #3d2e0a);
    color: #ffd700;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3), inset 0 2px 4px rgba(255, 215, 0, 0.2);
    transition: all 0.15s;
    position: relative;
    top: -16px;
}

.po-spin-btn:hover {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
}

.po-spin-btn:active {
    transform: scale(0.93);
}

.po-spin-btn.po-spinning {
    animation: po-spin-rotate 0.6s linear infinite;
    pointer-events: none;
    opacity: 0.7;
}

@keyframes po-spin-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== PAYTABLE ===== */
.po-paytable {
    padding: 14px;
    margin: 10px 16px 10px;
    background: rgba(40, 15, 10, 0.7);
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 10px;
    position: relative;
    z-index: 2;
}

.po-paytable h3 {
    text-align: center;
    color: #ffd700;
    font-size: 0.85rem;
    margin: 0 0 10px;
    font-weight: 700;
    font-family: 'Georgia', serif;
}

.po-paytable-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.po-pay-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    font-size: 0.7rem;
    color: #daa520;
}

.po-pay-item .po-pay-emoji {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.po-pay-item .po-pay-values {
    font-size: 0.6rem;
    color: #b8860b;
    line-height: 1.4;
}

/* ===== PRIZE SHOP ===== */
.po-shop-section {
    padding: 14px;
    margin: 0 16px 100px;
    position: relative;
    z-index: 2;
}

.po-shop-section h3 {
    text-align: center;
    color: #ffd700;
    font-size: 1rem;
    margin: 0 0 10px;
    font-weight: 700;
    font-family: 'Georgia', serif;
}

.po-prize-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
}

.po-prize-card {
    background: rgba(40, 15, 10, 0.6);
    border: 1px solid rgba(184, 134, 11, 0.25);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.po-prize-card:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

.po-prize-emoji { font-size: 1.8rem; margin-bottom: 4px; }
.po-prize-name { color: #e2e8f0; font-size: 0.8rem; font-weight: 600; margin-bottom: 3px; }
.po-prize-cost { color: #fbbf24; font-size: 0.75rem; font-weight: 700; }

/* ===== BACK BUTTON ===== */
.po-back-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(184, 134, 11, 0.4);
    background: rgba(0, 0, 0, 0.4);
    color: #ffd700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
}

.po-back-btn:hover {
    background: rgba(255, 215, 0, 0.15);
}

/* ===== SCATTER GLOW ===== */
.po-scatter-glow {
    position: relative;
    z-index: 10;
}
.po-scatter-glow::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 10px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.6), transparent 70%);
    animation: po-scatter-pulse 0.5s ease-in-out infinite alternate;
    z-index: -1;
}
.po-scatter-glow .po-sym-img {
    animation: po-scatter-bounce 0.5s ease-in-out infinite alternate !important;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.8)) !important;
}

@keyframes po-scatter-pulse {
    from { opacity: 0.5; transform: scale(0.95); }
    to   { opacity: 1;   transform: scale(1.1); }
}
@keyframes po-scatter-bounce {
    from { transform: scale(1); }
    to   { transform: scale(1.15); }
}

/* ===== FREE SPIN FLASH ===== */
.po-fs-flash {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 99999;
    pointer-events: none;
    animation: po-fs-flash-anim 0.4s ease-out forwards;
}
@keyframes po-fs-flash-anim {
    0%   { opacity: 1; }
    100% { opacity: 0; }
}

/* ===== FREE SPIN OVERLAY ===== */
.po-fs-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(139, 69, 19, 0.95), rgba(26, 10, 46, 0.98));
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: po-fs-overlay-in 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes po-fs-overlay-in {
    from { opacity: 0; transform: scale(0.8); }
    to   { opacity: 1; transform: scale(1); }
}
.po-fs-overlay.po-fs-fade-out {
    animation: po-fs-overlay-out 0.5s ease-in forwards;
}
@keyframes po-fs-overlay-out {
    to { opacity: 0; transform: scale(1.1); }
}

.po-fs-content {
    text-align: center;
    color: #fff;
}
.po-fs-icon {
    font-size: 4rem;
    margin-bottom: 8px;
    animation: po-fs-icon-bounce 0.6s ease-in-out infinite alternate;
}
@keyframes po-fs-icon-bounce {
    from { transform: translateY(0) scale(1); }
    to   { transform: translateY(-10px) scale(1.1); }
}
.po-fs-main {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 2px 8px rgba(0,0,0,0.5);
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}
.po-fs-sub {
    font-size: 0.9rem;
    color: #e2e8f0;
    opacity: 0.9;
}
.po-fs-sparkles {
    font-size: 1.5rem;
    margin-top: 12px;
    animation: po-fs-sparkle 0.4s ease-in-out infinite alternate;
}
@keyframes po-fs-sparkle {
    from { opacity: 0.5; filter: brightness(1); }
    to   { opacity: 1;   filter: brightness(1.5); }
}

/* Free Spins Banner in game (existing) */
#poFreeSpinsBanner {
    background: linear-gradient(90deg, rgba(139, 69, 19, 0.9), rgba(184, 134, 11, 0.9));
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 8px 16px;
    margin: 6px auto;
    max-width: 300px;
    text-align: center;
    animation: po-fs-banner-pulse 1s ease-in-out infinite alternate;
}
#poFreeSpinsBanner span {
    color: #ffd700;
    font-weight: 800;
    font-size: 1.1rem;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}
@keyframes po-fs-banner-pulse {
    from { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3); }
    to   { box-shadow: 0 0 25px rgba(255, 215, 0, 0.6); }
}

/* ===== GLOBAL MULTIPLIER METER ===== */
.po-global-mult {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 16px;
    margin: 6px auto;
    max-width: 400px;
    background: linear-gradient(90deg, rgba(88, 28, 135, 0.9), rgba(139, 69, 19, 0.9));
    border: 2px solid #ffd700;
    border-radius: 10px;
    animation: po-global-pulse 1.5s ease-in-out infinite alternate;
}
.po-global-mult-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #e2e8f0;
    text-transform: uppercase;
}
.po-global-mult-value {
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5));
}
@keyframes po-global-pulse {
    from { box-shadow: 0 0 10px rgba(255, 215, 0, 0.3), inset 0 0 10px rgba(88, 28, 135, 0.3); }
    to   { box-shadow: 0 0 30px rgba(255, 215, 0, 0.6), inset 0 0 20px rgba(88, 28, 135, 0.5); }
}

/* ===== EXTRA CONTROLS BAR ===== */
.po-extra-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 0 0 16px 16px;
}
.po-extra-btn {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    line-height: 1.2;
}
.po-extra-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}
.po-extra-btn.active {
    background: rgba(34, 197, 94, 0.3);
    border-color: #22c55e;
    color: #22c55e;
}
#poAutoSpinBtn.active {
    background: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
    color: #3b82f6;
}
.po-buy-btn {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    color: #ffd700;
}
.po-buy-btn:hover {
    background: rgba(255, 215, 0, 0.2);
}
.po-buy-btn.po-buy-super {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    color: #a78bfa;
}
.po-buy-btn.po-buy-super:hover {
    background: rgba(139, 92, 246, 0.3);
}
.po-buy-btn small {
    font-size: 0.6rem;
    opacity: 0.8;
}

/* ===== BIG WIN LEVELS ===== */
.po-result-banner.po-nice-win {
    font-size: 1.3rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
}
.po-result-banner.po-big-win {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    animation: po-big-win-shake 0.3s ease-in-out 3;
}
.po-result-banner.po-mega-win {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #ef4444, #dc2626, #fbbf24);
    animation: po-mega-win-pulse 0.5s ease-in-out infinite alternate;
}
@keyframes po-big-win-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
@keyframes po-mega-win-pulse {
    from { transform: scale(1); box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); }
    to   { transform: scale(1.05); box-shadow: 0 0 40px rgba(255, 215, 0, 0.8); }
}

/* ===== INFO BUTTON ===== */
.po-info-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.5);
    background: rgba(139, 69, 19, 0.6);
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.po-info-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
    transform: scale(1.1);
}

/* ===== RULES MODAL ===== */
.po-rules-modal {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.po-rules-box {
    position: relative;
    background: linear-gradient(180deg, #2d1b4e, #1a0a2e);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    max-width: 560px;
    width: 100%;
    max-height: 90%;
    overflow-y: auto;
    padding: 20px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
.po-rules-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    z-index: 5;
}
.po-rules-header {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: #ffd700;
    margin-bottom: 16px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}
.po-rules-page h3 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 12px;
    text-align: center;
}

/* Paytable Grid */
.po-rules-pay-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.po-rules-pay-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.po-rules-pay-row.po-rules-premium {
    background: rgba(255, 215, 0, 0.06);
    border-color: rgba(255, 215, 0, 0.15);
}
.po-rules-pay-row.po-rules-scatter {
    background: rgba(255, 215, 0, 0.1);
    border-color: rgba(255, 215, 0, 0.3);
    flex-wrap: wrap;
}
.po-rules-sym {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.po-rules-vals {
    display: flex;
    gap: 12px;
    flex: 1;
    color: #e2e8f0;
    font-size: 0.75rem;
}
.po-rules-vals b {
    color: #ffd700;
    font-size: 0.8rem;
}
.po-rules-scatter-note {
    width: 100%;
    text-align: center;
    color: #fbbf24;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 2px;
}

/* Rules Text */
.po-rules-text {
    color: #e2e8f0;
    font-size: 0.85rem;
    line-height: 1.6;
}
.po-rules-text p { margin: 8px 0; }
.po-rules-text ul { padding-left: 20px; margin: 8px 0; }
.po-rules-text li { margin: 4px 0; }
.po-rules-text b { color: #ffd700; }

/* Multiplier Values */
.po-rules-mult-values {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 12px 0;
}
.po-rules-mult-values span {
    padding: 4px 10px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 6px;
    color: #ffd700;
    font-weight: 700;
    font-size: 0.8rem;
}

/* Navigation */
.po-rules-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}
.po-rules-nav-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 215, 0, 0.4);
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}
.po-rules-nav-btn:hover { background: rgba(255, 215, 0, 0.25); }
.po-rules-nav-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ef4444;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.po-rules-nav-close:hover { background: rgba(239, 68, 68, 0.3); }
.po-rules-pagination {
    text-align: center;
    color: #94a3b8;
    font-size: 0.75rem;
    margin-top: 8px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 380px) {
    .po-grid-wrapper { padding: 0 4px; }
    .po-grid { gap: 2px; }
    .po-spin-btn { width: 56px; height: 56px; font-size: 1.3rem; }
    .po-bottom-bar { padding: 6px 8px; }
    .po-bar-value { font-size: 0.9rem; }
}

/* =============================================
   🎰 CASINO LOBBY — Estilo Superbet
   ============================================= */
.casino-lobby {
    background: linear-gradient(180deg, #1a0a2e 0%, #0f0520 100%);
    min-height: 100vh;
    padding-bottom: 20px;
}

/* Lobby Header */
.lobby-header {
    padding: 16px;
    background: linear-gradient(180deg, #2d1157, #1a0a2e);
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
}

.lobby-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.lobby-title {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.lobby-subtitle {
    margin: 4px 0 0;
    color: #94a3b8;
    font-size: 0.8rem;
}

.lobby-balance-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 140, 0, 0.1));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
}

.lobby-coin-icon { font-size: 1.2rem; }

.lobby-coin-value {
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: 800;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.lobby-promo {
    padding: 10px 16px;
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.3), rgba(168, 85, 247, 0.2));
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 10px;
    color: #e2e8f0;
    font-size: 0.8rem;
    text-align: center;
}

/* Lobby Categories */
.lobby-category {
    padding: 0 16px;
    margin-top: 20px;
}

.lobby-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.lobby-cat-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.lobby-cat-count {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Games Grid */
.lobby-games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

/* Game Card */
.lobby-game-card {
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 12px;
    overflow: hidden;
}

.lobby-game-card:hover {
    transform: translateY(-4px) scale(1.03);
}

.lobby-game-card:active {
    transform: scale(0.97);
}

.lobby-game-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.15);
    transition: border-color 0.25s;
}

.lobby-game-card:hover .lobby-game-thumb {
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.2);
}

.lobby-game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lobby-game-thumb.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.lobby-game-thumb.placeholder span {
    font-size: 2.5rem;
    opacity: 0.6;
}

/* Game Badge (HOT, NEW, etc) */
.lobby-game-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.lobby-game-badge.hot {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.lobby-game-badge.new {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
}

.lobby-game-name {
    text-align: center;
    color: #e2e8f0;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Coming Soon overlay */
.lobby-coming-soon {
    opacity: 0.5;
    pointer-events: none;
    position: relative;
}

.lobby-coming-soon::after {
    content: 'EM BREVE';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: #ffd700;
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    z-index: 5;
}

/* Casino Game View */
.casino-game-view {
    position: relative;
}
