/* Gold Rush - Mega7 / MannaPlay Gaming Official Style */
:root {
    --gold-primary: #ffd700;
    --gold-dark: #b8860b;
    --gold-light: #fff3a8;
    --wood-dark: #201109;
    --wood-light: #5c3a21;
    --accent-red: #d32f2f;
    --accent-orange: #ff9800;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
}

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000000;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #fff;
}

.game-viewport {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #26160d 0%, #0d0603 100%);
    overflow: hidden;
}

/* Background Scene with Authentic Prehistoric Dinosaur Mine Cavern */
.backdrop-layer {
    position: absolute;
    inset: 0;
    background-image: url('/gold_rush_template/standalone_game/assets/images/atlas_all_bg.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    opacity: 0.95;
    filter: brightness(0.95) contrast(1.08);
    z-index: 1;
}

.backdrop-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 40%, rgba(0, 0, 0, 0.9) 90%);
    z-index: 2;
    pointer-events: none;
}

.ambient-dust-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* Main Game Layout */
.main-game-layout {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    width: 99%;
    max-width: 1120px;
    height: 92vh;
    max-height: 640px;
    margin: 0 auto;
}

/* 3D Miner Mascot & Plunger Stage */
.miner-stage {
    position: relative;
    width: 190px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
    z-index: 15;
}

.speech-bubble {
    background: rgba(18, 10, 5, 0.9);
    border: 2px solid var(--gold-primary);
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 215, 0, 0.4);
    margin-bottom: 6px;
    position: relative;
    max-width: 180px;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
    z-index: 20;
}

.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: var(--gold-primary) transparent;
    display: block;
    width: 0;
}

.miner-mascot {
    position: relative;
    width: 180px;
    height: 350px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.85));
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 14;
    margin-bottom: 25px;
}

.miner-sprite-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    animation: minerBreathe 3s ease-in-out infinite alternate;
}

@keyframes minerBreathe {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-6px) scale(1.01); }
}

.miner-mascot.plunging {
    animation: plungeSlam 0.3s cubic-bezier(0.1, 0.9, 0.2, 1) 1;
}

@keyframes plungeSlam {
    0% { transform: translateY(0) scale(1); }
    40% { transform: translateY(-15px) scale(1.05); }
    70% { transform: translateY(10px) scale(0.96); }
    100% { transform: translateY(0) scale(1); }
}

.miner-mascot.celebrate {
    animation: minerCelebrateJump 0.5s ease-in-out 4 alternate;
}

@keyframes minerCelebrateJump {
    0% { transform: scale(1) translateY(0); }
    100% { transform: scale(1.1) translateY(-25px) rotate(2deg); }
}

.plunger-sparks-fx {
    position: absolute;
    bottom: 40px;
    right: 20px;
    width: 80px;
    height: 80px;
    pointer-events: none;
    background: radial-gradient(circle, #fff 10%, #ffd700 40%, #ff5722 70%, transparent 80%);
    opacity: 0;
    transform: scale(0.2);
    transition: opacity 0.1s, transform 0.2s;
    filter: drop-shadow(0 0 15px #ff5722);
    z-index: 20;
}

.plunger-sparks-fx.active {
    opacity: 1;
    transform: scale(1.5);
    animation: sparkBlast 0.4s forwards;
}

@keyframes sparkBlast {
    0% { opacity: 1; transform: scale(0.4) rotate(0deg); }
    50% { opacity: 1; transform: scale(2.2) rotate(45deg); }
    100% { opacity: 0; transform: scale(2.8) rotate(90deg); }
}

.tnt-dynamite-box {
    margin-top: -15px;
    background: linear-gradient(180deg, #663300, #331a00);
    border: 2px solid #8b5a2b;
    border-radius: 6px;
    padding: 4px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.8);
    width: 110px;
    z-index: 16;
    margin-bottom: 10px;
}

.tnt-label {
    font-size: 10px;
    font-weight: 900;
    color: #ffcc80;
    letter-spacing: 2px;
}

.tnt-sticks {
    display: flex;
    gap: 4px;
    margin-top: 3px;
}

.tnt-stick {
    width: 8px;
    height: 18px;
    background: #d32f2f;
    border-radius: 2px;
    border: 1px solid #ff5252;
    box-shadow: 0 0 4px rgba(255, 0, 0, 0.5);
}

.miner-rock-pedestal {
    position: absolute;
    bottom: -15px;
    left: -5px;
    width: 200px;
    height: 160px;
    object-fit: contain;
    z-index: 12;
    pointer-events: none;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.95));
}

/* Slot Machine Cabinet with Carved Wooden Frame */
.cabinet-wrapper {
    position: relative;
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
    background: rgba(18, 9, 4, 0.88);
    border: 4px solid #8b5a2b;
    border-radius: 18px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.95), inset 0 0 25px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 180, 0, 0.35);
    padding: 12px 18px;
    transition: transform 0.1s;
}

.cabinet-wood-top {
    position: absolute;
    top: -24px;
    left: -20px;
    width: calc(100% + 40px);
    height: 48px;
    object-fit: fill;
    z-index: 25;
    pointer-events: none;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.9));
}

.cabinet-wood-left {
    position: absolute;
    top: 10px;
    left: -18px;
    width: 24px;
    height: calc(100% - 20px);
    object-fit: fill;
    z-index: 24;
    pointer-events: none;
    filter: drop-shadow(-2px 0 8px rgba(0,0,0,0.8));
}

.cabinet-wood-right {
    position: absolute;
    top: 10px;
    right: -18px;
    width: 24px;
    height: calc(100% - 20px);
    object-fit: fill;
    z-index: 24;
    pointer-events: none;
    filter: drop-shadow(2px 0 8px rgba(0,0,0,0.8));
}

.cabinet-gear-cog {
    position: absolute;
    width: 44px;
    height: 44px;
    z-index: 26;
    pointer-events: none;
    animation: gearSpin 8s linear infinite;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.8));
}

.cabinet-gear-cog.left {
    top: -16px;
    left: -16px;
}

.cabinet-gear-cog.right {
    top: -16px;
    right: -16px;
    animation-direction: reverse;
}

@keyframes gearSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.cabinet-wrapper.cabinet-shake {
    animation: cabinetExplosionShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes cabinetExplosionShake {
    10%, 90% { transform: translate3d(-2px, 0, 0); }
    20%, 80% { transform: translate3d(3px, 2px, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, -2px, 0); }
    40%, 60% { transform: translate3d(4px, 1px, 0); }
}

/* Top Machine Header */
.cabinet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(218, 165, 32, 0.3);
    gap: 8px;
    margin-top: 6px;
}

.game-logo-banner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-logo-img {
    height: 44px;
    border-radius: 8px;
    border: 2px solid #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.game-title-group h1 {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #fff7a1 0%, #ffd700 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
}

.game-provider-tag {
    font-size: 10px;
    color: #ffcc80;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Header Action Pills */
.header-action-pills {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-trailer-watch {
    background: linear-gradient(180deg, #d97706, #92400e);
    border: 1px solid #ffd700;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(217, 119, 6, 0.6);
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.btn-trailer-watch:hover {
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.9);
    background: linear-gradient(180deg, #f59e0b, #b45309);
}

.btn-fs-trigger {
    background: linear-gradient(180deg, #dc2626, #991b1b);
    border: 1px solid #f87171;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.6);
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.btn-fs-trigger:hover {
    transform: scale(1.08);
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.9);
}

/* Multiplier Bomb Meter */
.multiplier-meter {
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #3d1f0d, #1a0b04);
    border: 2px solid #ffd700;
    border-radius: 30px;
    padding: 4px 14px;
    box-shadow: 0 0 15px rgba(255, 152, 0, 0.4);
}

.bomb-icon {
    width: 26px;
    height: 26px;
    background-image: url('/gold_rush_template/standalone_game/assets/images/symbols/wild.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 8px;
    animation: bombPulse 1.5s infinite;
}

@keyframes bombPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px #ff5722); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 8px #ff9800); }
}

.multiplier-value {
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 10px #ff9800;
}

/* Free Spins Banner */
.freespin-badge {
    display: none;
    background: linear-gradient(90deg, #d32f2f, #f57c00);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: pulseFs 1s infinite alternate;
}

@keyframes pulseFs {
    0% { transform: scale(1); box-shadow: 0 0 10px #f57c00; }
    100% { transform: scale(1.05); box-shadow: 0 0 20px #ff5722; }
}

/* Reels Stage */
.reels-stage {
    position: relative;
    flex: 1;
    margin: 8px 0;
    background: radial-gradient(circle at center, #1b0e06 0%, #0a0402 100%);
    border: 3px solid #5a3818;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
}

.reels-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
    height: 100%;
    gap: 6px;
    padding: 6px;
}

.reel-column {
    position: relative;
    background: rgba(10, 5, 2, 0.6);
    border: 1px solid rgba(139, 90, 43, 0.4);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 4px 0;
}

.reel-column::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 15%, transparent 85%, rgba(0,0,0,0.5) 100%);
    pointer-events: none;
}

/* Slot Tile / Symbol Cell */
.symbol-cell {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3px;
    border-radius: 8px;
    background: radial-gradient(circle, rgba(50, 25, 10, 0.4) 0%, rgba(15, 7, 3, 0.8) 100%);
    border: 1px solid rgba(255, 215, 0, 0.15);
    transition: transform 0.25s, filter 0.25s, box-shadow 0.25s;
}

.symbol-cell img {
    max-width: 82%;
    max-height: 82%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.7));
    transition: transform 0.25s;
}

.symbol-cell.winning {
    animation: winFlash 0.8s ease-in-out infinite alternate;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    z-index: 2;
}

.symbol-cell.winning img {
    transform: scale(1.15);
}

@keyframes winFlash {
    0% { filter: brightness(1) drop-shadow(0 0 5px #ffd700); }
    100% { filter: brightness(1.4) drop-shadow(0 0 20px #ff9800); }
}

.reel-column.spinning .symbol-cell {
    filter: blur(2px);
    opacity: 0.85;
}

/* Paylines Overlay Canvas */
#paylineCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 15;
}

/* Bottom Control Panel */
.cabinet-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, #2b180d 0%, #160a04 100%);
    border-radius: 12px;
    border: 2px solid #5c381c;
    padding: 8px 16px;
    gap: 12px;
}

.info-display-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(218, 165, 32, 0.3);
    border-radius: 8px;
    padding: 4px 14px;
    min-width: 110px;
}

.info-label {
    font-size: 10px;
    font-weight: 700;
    color: #ffb74d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-value {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    font-family: 'Consolas', 'Courier New', monospace;
}

.info-value.win-highlight {
    color: #ffd700;
    text-shadow: 0 0 10px #ff9800;
}

/* Bet Adjuster */
.bet-selector-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-bet-adjust {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(180deg, #5c381c, #361f0e);
    border: 1px solid #ffd700;
    color: #ffd700;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.15s;
}

.btn-bet-adjust:hover {
    background: #ffd700;
    color: #000;
    transform: scale(1.1);
}

.btn-bet-adjust:active {
    transform: scale(0.95);
}

/* Action Buttons */
.controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary {
    padding: 6px 12px;
    background: #2b180d;
    border: 1px solid #8b5a2b;
    border-radius: 6px;
    color: #ffcc80;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s;
}

.btn-secondary.active {
    background: #ffd700;
    color: #1a0b04;
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Big Golden Spin Button */
.btn-spin-main {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff099 0%, #ffd700 45%, #b8860b 85%, #664600 100%);
    border: 3px solid #ffffff;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.7), 0 6px 10px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    font-weight: 900;
    color: #2b1404;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn-spin-main:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.95), 0 8px 15px rgba(0, 0, 0, 0.9);
}

.btn-spin-main:active {
    transform: scale(0.95);
}

.btn-spin-main.disabled {
    filter: grayscale(0.8) opacity(0.5);
    pointer-events: none;
}

/* Big Win Celebration Modal */
.modal-bigwin {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bigwin-banner-img {
    max-width: 85%;
    max-height: 240px;
    object-fit: contain;
    animation: popBanner 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popBanner {
    0% { transform: scale(0.3) rotate(-5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.bigwin-counter {
    font-size: 52px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 20px #ffd700, 0 0 40px #ff9800;
    margin-top: 15px;
    font-family: 'Consolas', monospace;
}

/* Free Spins Cinematic Transition Overlay */
.freespins-transition-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(30, 10, 0, 0.95) 0%, rgba(5, 0, 0, 0.98) 100%);
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 150;
    overflow: hidden;
}

.fs-flare-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.6) 0%, rgba(255, 87, 34, 0.3) 50%, transparent 75%);
    animation: flarePulse 1s infinite alternate;
}

@keyframes flarePulse {
    0% { transform: scale(0.8); opacity: 0.7; }
    100% { transform: scale(1.3); opacity: 1; }
}

.fs-minecart-hero {
    position: relative;
    max-width: 70%;
    max-height: 320px;
    object-fit: contain;
    z-index: 2;
    animation: minecartSlideIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.9));
}

@keyframes minecartSlideIn {
    0% { transform: translateX(120%) scale(0.8); }
    100% { transform: translateX(0) scale(1); }
}

.fs-banner-box {
    position: relative;
    z-index: 3;
    margin-top: 20px;
    text-align: center;
    animation: bannerPop 0.5s ease 0.4s both;
}

@keyframes bannerPop {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.fs-banner-title {
    font-size: 32px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 20px #ff5722, 0 4px 8px #000;
    letter-spacing: 2px;
}

.fs-banner-sub {
    font-size: 14px;
    color: #ffcc80;
    margin-top: 6px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Full Cinematic Story Trailer Modal */
.modal-cinematic-trailer {
    position: absolute;
    inset: 0;
    background: #000000 !important;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    z-index: 500;
    overflow: hidden;
}

.trailer-progress-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 50;
}

.trailer-progress-bar {
    height: 100%;
    width: 20%;
    background: linear-gradient(90deg, #ffd700, #ff5722);
    box-shadow: 0 0 10px #ffd700;
    transition: width 0.4s ease;
}

.trailer-top-bar {
    position: relative;
    height: 52px;
    background: linear-gradient(180deg, #180d05 0%, #0a0502 100%);
    border-bottom: 2px solid var(--gold-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 40;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.trailer-title-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trailer-manna-logo {
    height: 26px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.4));
}

.trailer-title-text {
    font-size: 13px;
    font-weight: 800;
    color: var(--gold-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.btn-skip-trailer {
    background: linear-gradient(180deg, #d32f2f 0%, #b71c1c 100%);
    border: 1.5px solid #ff9800;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    padding: 6px 16px;
    border-radius: 18px;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(255, 87, 34, 0.6);
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.btn-skip-trailer:hover {
    background: linear-gradient(180deg, #f44336 0%, #d32f2f 100%);
    box-shadow: 0 0 20px #ff5722;
    transform: scale(1.05);
}

.trailer-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    font-size: 20px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 35;
    transition: all 0.2s;
}

.trailer-nav-arrow.prev { left: 16px; }
.trailer-nav-arrow.next { right: 16px; }

.trailer-nav-arrow:hover {
    background: var(--gold-primary);
    color: #000;
    box-shadow: 0 0 15px var(--gold-primary);
    transform: translateY(-50%) scale(1.1);
}

.trailer-tab-switch {
    display: flex;
    gap: 6px;
    background: rgba(0, 0, 0, 0.7);
    padding: 3px 6px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.trailer-tab-btn {
    background: transparent;
    border: none;
    color: #bbb;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.trailer-tab-btn:hover {
    color: #fff;
}

.trailer-tab-btn.active {
    background: linear-gradient(180deg, #ffd700, #ff9800);
    color: #000;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.trailer-letterbox {
    height: 32px;
    background: #000;
    z-index: 10;
    width: 100%;
}

.trailer-stage {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000000 !important;
}

.trailer-video-view {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1b0f07 0%, #000000 100%);
    z-index: 15;
}

.trailer-video-player {
    max-width: 95%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 35px rgba(255, 215, 0, 0.25), 0 10px 40px rgba(0,0,0,0.9);
    border: 2px solid rgba(255, 215, 0, 0.5);
    background: #000;
    outline: none;
}

.trailer-story-view {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    z-index: 10;
}

.btn-close-trailer {
    background: rgba(20, 10, 5, 0.8);
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 5px 14px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    z-index: 30;
    transition: all 0.2s;
}

.btn-close-trailer:hover {
    background: var(--gold-primary);
    color: #000;
    box-shadow: 0 0 12px var(--gold-primary);
}

.trailer-slide {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
    opacity: 0;
    background: #000000;
}

.trailer-slide.active {
    display: flex;
    opacity: 1;
}

.tslide-bg-wall {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
    z-index: 1;
}

.tslide-bg-gems {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.tslide-floating-gems {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    animation: gemGlow 2s infinite alternate;
}

@keyframes gemGlow {
    0% { filter: brightness(0.8) drop-shadow(0 0 10px #ff9800); }
    100% { filter: brightness(1.3) drop-shadow(0 0 30px #ffd700); }
}

.tslide-cart {
    position: relative;
    max-height: 280px;
    max-width: 70%;
    object-fit: contain;
    z-index: 2;
    animation: cartBounce 1.5s ease-in-out infinite alternate;
}

@keyframes cartBounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-12px); }
}

.tnt-blast-scene {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.tslide-miner {
    max-height: 280px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.9));
}

.countdown-circle {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #d32f2f;
    border: 3px solid #fff;
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px #ff5722;
    animation: countPulse 1s infinite;
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.tslide-explosion-sheet {
    max-width: 85%;
    max-height: 180px;
    object-fit: contain;
    z-index: 2;
    animation: explosionFlicker 0.6s infinite alternate;
}

@keyframes explosionFlicker {
    0% { transform: scale(0.95); filter: brightness(1); }
    100% { transform: scale(1.05); filter: brightness(1.5) drop-shadow(0 0 30px #ff5722); }
}

.multiplier-bombs-display {
    display: flex;
    gap: 16px;
    margin-top: 15px;
    z-index: 2;
}

.bomb-badge {
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    border: 3px solid #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    background: radial-gradient(circle, #ff5722 0%, #b71c1c 100%);
    animation: bombBadgePop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes bombBadgePop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.bomb-badge.b2 { animation-delay: 0.1s; }
.bomb-badge.b5 { animation-delay: 0.2s; }
.bomb-badge.b10 { animation-delay: 0.3s; }
.bomb-badge.b50 { animation-delay: 0.4s; }
.bomb-badge.b100 { animation-delay: 0.5s; background: radial-gradient(circle, #ffd700 0%, #ff5722 100%); color: #000; }

.tslide-mega-win {
    max-width: 85%;
    max-height: 220px;
    object-fit: contain;
    z-index: 2;
    animation: popBanner 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.jackpot-glow-banner {
    font-size: 28px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 20px #ff9800, 0 0 40px #ff5722;
    margin-top: 15px;
    z-index: 2;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.btn-trailer-play {
    margin-top: 25px;
    padding: 14px 36px;
    border-radius: 40px;
    background: radial-gradient(circle at center, #ffd700 0%, #ff9800 60%, #b45309 100%);
    border: 3px solid #fff;
    color: #2b1404;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    letter-spacing: 1.5px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.9), 0 8px 15px rgba(0,0,0,0.8);
    transition: transform 0.2s, box-shadow 0.2s;
    z-index: 10;
}

.btn-trailer-play:hover {
    transform: scale(1.1);
    box-shadow: 0 0 45px rgba(255, 215, 0, 1);
}

.tslide-overlay {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 720px;
    margin-top: 20px;
    background: rgba(10, 5, 2, 0.75);
    padding: 14px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.tslide-tag {
    font-size: 11px;
    font-weight: 900;
    color: #ff9800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.tslide-overlay h2 {
    font-size: 24px;
    font-weight: 900;
    color: #ffd700;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px #000;
    margin-bottom: 8px;
}

.tslide-overlay p {
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.5;
}

.trailer-nav-dots {
    position: absolute;
    bottom: 20px;
    display: flex;
    gap: 10px;
    z-index: 25;
}

.tdot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.5);
    cursor: pointer;
    transition: all 0.2s;
}

.tdot.active {
    background: #ffd700;
    transform: scale(1.3);
    box-shadow: 0 0 8px #ffd700;
}

/* Official MannaPlay Loading Screen */
.splash-trailer-overlay {
    position: absolute;
    inset: 0;
    background: #000000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 300;
    transition: opacity 0.5s ease;
}

.mannaplay-splash-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.mannaplay-logo-img {
    width: 220px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
    animation: mannaGlow 2s ease-in-out infinite alternate;
}

@keyframes mannaGlow {
    0% { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2)) brightness(0.9); }
    100% { filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.6)) brightness(1.1); }
}

.mannaplay-loader-track {
    position: absolute;
    bottom: 45px;
    width: 320px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.mannaplay-loader-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ffd700, #ffb300);
    box-shadow: 0 0 10px #ffd700;
    border-radius: 4px;
    transition: width 0.1s linear;
}

.mannaplay-loader-status {
    position: absolute;
    bottom: 25px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1px;
    font-family: monospace;
}

/* Authentic Hanging Miner Lantern */
.hanging-lantern-wrap {
    position: absolute;
    top: -12px;
    right: 42px;
    z-index: 25;
    transform-origin: top center;
    animation: lanternSway 3.5s ease-in-out infinite alternate;
    pointer-events: none;
}

.cabinet-lantern-img {
    width: 46px;
    height: auto;
    filter: drop-shadow(0 0 12px rgba(255, 170, 0, 0.9));
}

.lantern-glow-halo {
    position: absolute;
    top: 15px;
    left: 4px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 200, 50, 0.6) 0%, rgba(255, 100, 0, 0.2) 60%, transparent 80%);
    filter: blur(4px);
    animation: lanternFlicker 1.8s infinite alternate;
}

@keyframes lanternSway {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}

@keyframes lanternFlicker {
    0% { opacity: 0.7; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1.15); }
}

/* Authentic Animated Desert Lizard Mascot */
.lizard-perch-wrap {
    position: absolute;
    top: -24px;
    left: 14px;
    z-index: 26;
    width: 60px;
    height: 42px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.lizard-sprite-img {
    width: 100%;
    height: auto;
    transform: scaleX(-1) rotate(-8deg);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.8));
    animation: lizardBreathe 2.4s ease-in-out infinite alternate;
}

@keyframes lizardBreathe {
    0% { transform: scaleX(-1) rotate(-8deg) translateY(0); }
    100% { transform: scaleX(-1) rotate(-6deg) translateY(-3px); }
}

.lizard-perch-wrap:hover .lizard-sprite-img {
    transform: scaleX(-1) scale(1.15) rotate(-12deg);
}

/* Rules Button */
.btn-rules-pill {
    background: linear-gradient(180deg, #374151 0%, #1f2937 100%);
    border: 1px solid #9ca3af;
    color: #e5e7eb;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 14px;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.2s;
}

.btn-rules-pill:hover {
    background: linear-gradient(180deg, #4b5563 0%, #374151 100%);
    color: #ffd700;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* Multiplier Bomb Drop Animation */
.multiplier-bomb-drop {
    position: absolute;
    top: -90px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    display: none;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.multiplier-bomb-drop.dropping {
    display: flex;
    top: 35%;
}

.bomb-drop-img {
    width: 100px;
    height: auto;
    filter: drop-shadow(0 0 18px #ff5722);
}

.bomb-drop-badge {
    margin-top: -18px;
    background: radial-gradient(circle, #ff5722 0%, #d32f2f 100%);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    border: 3px solid #ffd700;
    padding: 4px 16px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

/* Combo Multiplier Banner */
.combo-banner-popup {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 65;
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.combo-banner-popup.active {
    transform: translate(-50%, -50%) scale(1);
}

.combo-banner-img {
    max-width: 240px;
    height: auto;
    filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.8));
}

.combo-count-text {
    font-size: 22px;
    font-weight: 900;
    color: #ffd700;
    text-shadow: 0 0 10px #000, 0 0 20px #ff5722;
    letter-spacing: 1px;
    margin-top: -8px;
}

/* Clickable Bet Box & Quick Bet Popover */
.info-display-box.clickable {
    cursor: pointer;
    position: relative;
    user-select: none;
}

.info-display-box.clickable:hover {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.15);
}

.quick-bet-popover {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #140a04;
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.95);
    z-index: 100;
    width: 240px;
    display: none;
}

.quick-bet-popover.active {
    display: block;
    animation: popIn 0.2s ease;
}

.quick-bet-title {
    font-size: 10px;
    font-weight: 800;
    color: #ffd700;
    text-align: center;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.quick-bet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.btn-quick-chip {
    background: #251206;
    border: 1px solid #5c3a21;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-quick-chip:hover {
    background: #ffd700;
    color: #000;
    border-color: #ffd700;
    font-weight: 900;
}

.btn-quick-chip.max-bet-chip {
    grid-column: span 3;
    background: linear-gradient(180deg, #d32f2f, #b71c1c);
    border-color: #ff5722;
    color: #fff;
}

.btn-quick-chip.max-bet-chip:hover {
    background: #ff5722;
    color: #fff;
}

/* Paytable Modal */
.modal-paytable {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    z-index: 190;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.paytable-container {
    width: 92%;
    max-width: 800px;
    max-height: 86vh;
    background: #140b05;
    border: 2px solid var(--gold-primary);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
    overflow: hidden;
}

.paytable-header {
    background: linear-gradient(180deg, #241308 0%, #160a03 100%);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--gold-dark);
}

.paytable-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.paytable-logo-thumb {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid var(--gold-primary);
}

.paytable-title-wrap h2 {
    font-size: 14px;
    color: var(--gold-primary);
    font-weight: 900;
    letter-spacing: 0.5px;
}

.paytable-sub {
    font-size: 10px;
    color: #bbb;
    letter-spacing: 0.5px;
}

.btn-close-paytable {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 14px;
    cursor: pointer;
}

.btn-close-paytable:hover {
    background: var(--gold-primary);
    color: #000;
}

.paytable-body {
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-banner {
    background: rgba(255, 215, 0, 0.08);
    border: 1px dashed var(--gold-primary);
    padding: 10px;
    border-radius: 8px;
}

.feature-badge {
    display: inline-block;
    background: var(--gold-primary);
    color: #000;
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 4px;
}

.feature-banner h3 {
    font-size: 13px;
    color: #fff;
    margin-bottom: 4px;
}

.feature-banner p {
    font-size: 11px;
    color: #ccc;
    line-height: 1.4;
}

.paytable-section-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--gold-primary);
    letter-spacing: 1px;
    border-bottom: 1px solid #332014;
    padding-bottom: 4px;
}

.paytable-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.symbol-pay-card {
    background: #1b0f07;
    border: 1px solid #3a1e0c;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.symbol-pay-card.gold-border {
    border: 1.5px solid var(--gold-primary);
    background: rgba(255, 215, 0, 0.05);
}

.symbol-pay-card img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    margin-bottom: 4px;
}

.symbol-name {
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 3px;
}

.symbol-name.special {
    color: #ff9800;
}

.symbol-tiers {
    font-size: 10px;
    color: #aaa;
    line-height: 1.3;
}

.symbol-tiers b {
    color: var(--gold-primary);
}

.symbol-tiers.special {
    color: #ffeb3b;
    font-weight: 700;
}

.paytable-features-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.feature-card {
    background: #1a0f07;
    border: 1px solid #3e220f;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.feature-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.feature-info h4 {
    font-size: 11px;
    color: var(--gold-primary);
    margin-bottom: 2px;
}

.feature-info p {
    font-size: 10px;
    color: #bbb;
    line-height: 1.3;
}

/* Free Spins Round End Settlement Modal */
.modal-settlement {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 185;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease;
}

.settlement-card {
    background: radial-gradient(circle at center, #2b170c 0%, #100602 100%);
    border: 2px solid var(--gold-primary);
    border-radius: 16px;
    padding: 22px 28px;
    text-align: center;
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.4);
    max-width: 420px;
    width: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.settlement-banner-img {
    max-width: 200px;
    height: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
}

.settlement-title {
    font-size: 18px;
    color: var(--gold-primary);
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.settlement-win-display {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--gold-dark);
    padding: 8px 18px;
    border-radius: 8px;
    margin-bottom: 10px;
    width: 100%;
}

.settlement-win-label {
    display: block;
    font-size: 10px;
    color: #aaa;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.settlement-win-amount {
    display: block;
    font-size: 26px;
    color: #00ff66;
    font-weight: 900;
    text-shadow: 0 0 15px rgba(0, 255, 102, 0.6);
    font-family: monospace;
}

.settlement-desc {
    font-size: 11px;
    color: #ccc;
    margin-bottom: 14px;
}

.btn-settlement-continue {
    background: linear-gradient(180deg, #ffd700 0%, #ff9800 100%);
    border: none;
    color: #000;
    font-size: 12px;
    font-weight: 900;
    padding: 9px 22px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.6);
    transition: all 0.2s;
}

.btn-settlement-continue:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.9);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .miner-stage {
        display: none;
    }
    .cabinet-wrapper {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .cabinet-header {
        flex-wrap: wrap;
    }
    .game-title-group h1 {
        font-size: 17px;
    }
    .header-action-pills {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    .info-display-box {
        min-width: 65px;
        padding: 2px 6px;
    }
    .info-value {
        font-size: 13px;
    }
    .btn-spin-main {
        width: 54px;
        height: 54px;
        font-size: 11px;
}

/* Permanently Hide and Disable All Free Spin Popups, Buttons & Overlays */
.btn-fs-trigger,
.btn-action-fs,
.freespin-badge,
.freespins-transition-overlay,
.modal-settlement {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}
