/* ========================================
   FALCON GAMES - COMPLETE STYLES
   ======================================== */

:root {
    --game-gold: #FFD700;
    --game-orange: #FF8C00;
    --game-green: #10B981;
    --game-red: #EF4444;
    --game-blue: #3B82F6;
    --game-purple: #8B5CF6;
}

/* ========================================
   GAMES MAIN CONTAINER
   ======================================== */

.games-main {
    min-height: 100vh;
    padding-top: 80px;
    background: var(--dark-bg);
}

.games-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ========================================
   HERO SECTION
   ======================================== */

.games-hero {
    text-align: center;
    padding: 60px 20px 40px;
}

.games-logo-display {
    margin: 30px 0;
}

.games-logo-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--game-gold), var(--game-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.5);
    animation: gamesPulse 2s ease-in-out infinite;
}

@keyframes gamesPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 40px rgba(255, 215, 0, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 60px rgba(255, 215, 0, 0.8);
    }
}

.games-name {
    font-size: 3rem;
    font-family: 'Orbitron', sans-serif;
    margin: 20px 0;
}

.games-subtitle {
    color: var(--game-gold);
    font-size: 1.2rem;
    font-weight: 600;
}

/* ========================================
   GAMES LAYOUT
   ======================================== */

.games-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

/* ========================================
   GAME CARD
   ======================================== */

.game-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.game-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 240, 255, 0.2);
}

.game-header {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(123, 44, 191, 0.1));
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid var(--border-color);
}

.game-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.game-header h2 {
    font-size: 1.8rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    margin: 0;
}

.game-body {
    padding: 40px;
}

/* ========================================
   COIN FLIP GAME
   ======================================== */

.coin-flip-area {
    margin: 30px 0;
}

.coin-container {
    width: 200px;
    height: 200px;
    margin: 0 auto 40px;
    perspective: 1000px;
}

.coin {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.coin.flipping {
    animation: coinFlip 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.coin.win {
    filter: drop-shadow(0 0 20px var(--game-gold));
}

@keyframes coinFlip {
    0% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    100% {
        transform: rotateY(720deg) rotateX(360deg);
    }
}

.coin-side {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    background: linear-gradient(135deg, var(--game-gold), var(--game-orange));
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.5);
    border: 4px solid #FFE55C;
}

.coin-heads {
    transform: rotateY(0deg);
}

.coin-tails {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #C0C0C0, #808080);
    border-color: #E0E0E0;
}

.choice-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
}

.choice-btn {
    flex: 1;
    max-width: 200px;
    padding: 20px;
    background: var(--dark-bg);
    border: 3px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.choice-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.choice-btn.selected {
    border-color: var(--game-gold);
    background: rgba(255, 215, 0, 0.1);
}

.choice-btn .emoji {
    font-size: 3rem;
}

.choice-btn .label {
    font-weight: 700;
    font-size: 1.2rem;
    font-family: 'Orbitron', sans-serif;
    color:#e0e0e0;
}

/* ========================================
   DICE ROLL GAME
   ======================================== */

.dice-roll-area {
    margin: 30px 0;
}

.dice-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 40px;
    perspective: 1000px;
}

.dice {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dice.rolling {
    animation: diceRoll 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dice.win {
    filter: drop-shadow(0 0 20px var(--game-green));
}

@keyframes diceRoll {
    0% {
        transform: rotate3d(1, 1, 1, 0deg);
    }
    100% {
        transform: rotate3d(1, 1, 1, 720deg);
    }
}

.dice-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f8f8, #e0e0e0);
    border: 3px solid #333;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: #333;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.dice-number-display {
    text-align: center;
    margin: 20px 0;
}

.dice-number {
    display: inline-block;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    font-size: 3.5rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.5);
    animation: numberBounce 0.5s ease;
}

@keyframes numberBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.dice-controls {
    margin: 30px 0;
}

.dice-target-input {
    margin: 20px 0;
}

.dice-target-input label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.target-slider-container {
    position: relative;
    padding: 20px 0;
}

.target-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right, var(--game-red) 0%, var(--game-gold) 50%, var(--game-green) 100%);
    outline: none;
    -webkit-appearance: none;
}

.target-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.target-slider::-moz-range-thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.8);
}

.target-display {
    text-align: center;
    margin-top: 15px;
}

.target-number {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: var(--game-gold);
}

.over-under-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.over-under-btn {
    flex: 1;
    padding: 16px;
    background: var(--dark-bg);
    border: 3px solid var(--border-color);
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.over-under-btn:hover {
    border-color: var(--primary-color);
}

.over-under-btn.selected {
    border-color: var(--game-gold);
    background: rgba(255, 215, 0, 0.1);
}

.win-chance-display {
    text-align: center;
    padding: 15px;
    background: rgba(0, 240, 255, 0.05);
    border-radius: 12px;
    margin: 20px 0;
}

.win-chance-display .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.win-chance-display .value {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
}

.multiplier-display {
    text-align: center;
    padding: 15px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 12px;
    margin: 20px 0;
}

.multiplier-display .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.multiplier-display .value {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: var(--game-gold);
}

/* ========================================
   BET CONTROLS
   ======================================== */

.bet-controls {
    margin: 30px 0;
}

.bet-amount-input {
    margin: 20px 0;
}

.bet-amount-input label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.amount-input-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.amount-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.5);
}

.amount-input {
    flex: 1;
    height: 60px;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    padding: 0 20px;
}

.amount-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.quick-amounts {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.quick-amount-btn {
    padding: 10px 20px;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color:#e0e0e0;
}

.quick-amount-btn:hover {
    border-color: var(--game-gold);
    background: rgba(255, 215, 0, 0.1);
}

.bet-info {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.bet-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.bet-info-row strong {
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
}

.balance-display {
    text-align: center;
    color: var(--text-secondary);
    margin: 15px 0;
    font-size: 0.95rem;
}

.balance-display span {
    color: var(--primary-color);
    font-weight: 700;
}

.play-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, var(--game-gold), var(--game-orange));
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.play-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.6);
}

.play-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   STATS SIDEBAR
   ======================================== */

.stats-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
}

.stats-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    gap: 15px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: var(--dark-bg);
    border-radius: 8px;
}

.stat-item .label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-item .value {
    color: var(--primary-color);
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
}

/* ========================================
   RECENT GAMES TABLE
   ======================================== */

.recent-games-table {
    width: 100%;
    margin-top: 15px;
}

.recent-games-table table {
    width: 100%;
    border-collapse: collapse;
}

.recent-games-table th {
    text-align: left;
    padding: 12px 8px;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
}

.recent-games-table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.game-type-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.game-type-badge.coin {
    background: rgba(255, 215, 0, 0.2);
    color: var(--game-gold);
}

.game-type-badge.dice {
    background: rgba(59, 130, 246, 0.2);
    color: var(--game-blue);
}

.result-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.result-badge.win {
    background: rgba(16, 185, 129, 0.2);
    color: var(--game-green);
}

.result-badge.loss {
    background: rgba(239, 68, 68, 0.2);
    color: var(--game-red);
}

/* ========================================
   RESULT DISPLAY
   ======================================== */

.result-display {
    text-align: center;
    padding: 30px;
    margin: 30px 0;
    background: var(--dark-bg);
    border-radius: 16px;
    border: 2px solid var(--border-color);
    display: none;
}

.result-display.show {
    display: block;
    animation: resultFadeIn 0.5s ease;
}

@keyframes resultFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-display.win {
    border-color: var(--game-green);
    background: rgba(16, 185, 129, 0.05);
}

.result-display.loss {
    border-color: var(--game-red);
    background: rgba(239, 68, 68, 0.05);
}

.result-emoji {
    font-size: 5rem;
    margin-bottom: 20px;
}

.result-message {
    font-size: 2rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 15px;
}

.result-display.win .result-message {
    color: var(--game-green);
}

.result-display.loss .result-message {
    color: var(--game-red);
}

.result-details {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.result-payout {
    font-size: 2.5rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: var(--game-gold);
    margin-top: 15px;
}

/* ========================================
   WIN PARTICLES EFFECT
   ======================================== */

.win-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--game-gold);
    border-radius: 50%;
    animation: particleFloat 2s ease-out forwards;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-200px) scale(0);
        opacity: 0;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    .games-layout {
        grid-template-columns: 1fr;
    }
    
    .stats-sidebar {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .games-name {
        font-size: 2rem;
    }
    
    .stats-sidebar {
        flex-direction: column;
    }
    
    .choice-buttons {
        flex-direction: column;
    }
    
    .choice-btn {
        max-width: 100%;
    }
    
    .coin-container,
    .dice-container {
        width: 150px;
        height: 150px;
    }
    
    .coin-side {
        font-size: 3.5rem;
    }
    
    .recent-games-table {
        overflow-x: auto;
    }
}

@media (max-width: 480px) {
    .game-header {
        padding: 20px;
    }
    
    .game-body {
        padding: 20px;
    }
    
    .amount-input {
        font-size: 1.5rem;
    }
    
    .quick-amounts {
        justify-content: center;
    }
}
/* ==========================================
   DICE ROLL SPECIFIC STYLES - ADD TO games_styles.css
   ========================================== */

/* Dice Container */
.dice-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    perspective: 1000px;
}

.dice {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.dice.rolling {
    animation: diceRoll 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.dice.win {
    animation: diceWinBounce 0.5s ease;
    filter: drop-shadow(0 0 20px var(--game-green));
}

/* Dice Number Display - now inside dice element */
.dice-number-display {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.2);
}

.dice-number {
    font-size: 72px;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-color);
}

/* Dice Roll Animation */
@keyframes diceRoll {
    0% {
        transform: rotate3d(0, 0, 0, 0deg);
    }
    50% {
        transform: rotate3d(1, 1, 1, 720deg) scale(1.1);
    }
    100% {
        transform: rotate3d(1, 1, 1, 720deg) scale(1);
    }
}

/* Win Animation for Dice */
@keyframes diceWinBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Update dice-roll-area to accommodate new structure */
.dice-roll-area {
    text-align: center;
    padding: 20px 0;
}

/* Target Slider (keep existing styles or add if missing) */
.dice-target-input {
    margin: 25px 0;
}

.dice-target-input label {
    display: block;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.target-slider-container {
    margin: 20px 0;
}

.target-slider {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, var(--game-red), var(--primary-color), var(--game-green));
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

.target-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 240, 255, 0.5);
}

.target-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 240, 255, 0.5);
}

.target-display {
    text-align: center;
    margin-top: 15px;
}

.target-number {
    display: inline-block;
    font-size: 32px;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-color);
    padding: 8px 24px;
    background: rgba(0, 240, 255, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
}

/* Over/Under Buttons */
.over-under-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 25px 0;
}

.over-under-btn {
    padding: 16px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.over-under-btn:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #1a1a2e 0%, rgba(0, 240, 255, 0.1) 100%);
}

.over-under-btn.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2) 0%, #16213e 100%);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

/* Win Chance and Multiplier Display */
.win-chance-display,
.multiplier-display {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.win-chance-display .label,
.multiplier-display .label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.win-chance-display .value,
.multiplier-display .value {
    display: block;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
}