/* Reset și setări de bază */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(135deg, #0c2461 0%, #1e3799 50%, #0c2461 100%);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 0;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* Ascunde scrollbar-ul dar păstrează funcționalitatea */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(74, 105, 189, 0.5);
    border-radius: 10px;
}

/* Header styles */
.desktop-header {
    display: none;
}

.mobile-header {
    background: rgba(25, 42, 86, 0.9);
    padding: 12px 15px;
    border-bottom: 2px solid #4a69bd;
    backdrop-filter: blur(10px);
}

.mobile-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.mobile-logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: #f6b93b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-balance {
    display: flex;
    align-items: center;
    gap: 12px;
}

.balance-display-mobile {
    font-size: 1.3rem;
    font-weight: bold;
    color: #f6b93b;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 2px solid #f6b93b;
    min-width: 100px;
    text-align: center;
}

.mobile-menu-btn {
    background: #4a69bd;
    border: none;
    border-radius: 8px;
    color: white;
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mobile-menu-btn:hover {
    background: #3c5aa8;
    transform: scale(1.05);
}

.mobile-subtitle {
    font-size: 0.9rem;
    color: #82ccdd;
    text-align: center;
    font-weight: 500;
}

/* Main game area - redesigned for mobile first */
.game-area {
    display: flex;
    flex-direction: column;
    padding: 15px;
    gap: 15px;
    min-height: calc(100vh - 140px);
}

/* Game board container */
.game-board-container {
    background: rgba(25, 42, 86, 0.85);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 2px solid #4a69bd;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.game-board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(74, 105, 189, 0.5);
}

.board-title {
    font-size: 1.2rem;
    color: #82ccdd;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.board-balance {
    display: flex;
    align-items: center;
    gap: 8px;
}

.balance-label {
    font-size: 0.9rem;
    color: #bdc3c7;
}

.balance-display-desktop {
    font-size: 1.3rem;
    font-weight: bold;
    color: #f6b93b;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 2px solid #f6b93b;
    min-width: 90px;
    text-align: center;
}

/* Plinko board - spațios pentru mobil */
.game-board {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.plinko-board {
    width: 100%;
    height: 400px;
    background: linear-gradient(to bottom, #1a237e, #0c2461);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 2px solid #3949ab;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Pini pentru piramidă */
.pin {
    position: absolute;
    background: radial-gradient(circle at 30% 30%, #f6b93b, #d35400);
    border-radius: 50%;
    z-index: 5;
    transform: translateZ(0);
    box-shadow: 
        0 0 8px rgba(246, 185, 59, 0.8),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.pin-small {
    width: 14px;
    height: 14px;
}

.pin-medium {
    width: 16px;
    height: 16px;
}

.pin-large {
    width: 18px;
    height: 18px;
}

/* Launch point */
.launch-point {
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: rgba(52, 152, 219, 0.2);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #3498db;
    font-size: 1.3rem;
    border: 3px dashed #3498db;
    z-index: 20;
    animation: pulse 2s infinite;
}

.launch-point-text {
    font-size: 0.6rem;
    margin-top: 2px;
    color: #82ccdd;
    font-weight: bold;
}

@keyframes pulse {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        opacity: 0.7;
    }
    50% { 
        transform: translateX(-50%) scale(1.1);
        opacity: 1;
    }
}

/* Bile */
.ball {
    position: absolute;
    border-radius: 50%;
    z-index: 10;
    transform: translateZ(0);
    pointer-events: none;
    box-shadow: 
        0 0 15px rgba(231, 76, 60, 0.8),
        inset -4px -4px 8px rgba(0, 0, 0, 0.4),
        inset 2px 2px 4px rgba(255, 255, 255, 0.6);
    background: radial-gradient(circle at 30% 30%, #ff6b6b, #e74c3c 40%, #c0392b 70%, #a93226);
}

/* Linii de ghidaj pentru piramidă */
.pyramid-guide {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent, 
        rgba(255, 255, 255, 0.08) 20%, 
        rgba(255, 255, 255, 0.08) 80%, 
        transparent);
    z-index: 1;
    pointer-events: none;
}

/* Section with multipliers - aranjată clar */
.multipliers-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 12px;
    border: 1px solid rgba(74, 105, 189, 0.5);
}

.multipliers-title {
    font-size: 1.1rem;
    color: #82ccdd;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.slots-container {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 2px;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s;
    min-height: 60px;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.slot:hover {
    transform: translateY(-2px);
}

.slot.active {
    animation: slotFlash 0.5s ease-in-out;
    box-shadow: 0 0 15px currentColor;
}

@keyframes slotFlash {
    0%, 100% { 
        transform: scale(1);
        opacity: 1; 
    }
    50% { 
        transform: scale(1.05);
        opacity: 0.9; 
    }
}

.slot-value {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 3px;
}

.slot-prize {
    font-size: 0.7rem;
    opacity: 0.9;
}

/* Culori pentru sloturi */
.slot[data-multiplier="10"] {
    background: linear-gradient(to bottom, #e74c3c, #c0392b);
    border-color: #f1c40f;
    color: #f1c40f;
}

.slot[data-multiplier="5"] {
    background: linear-gradient(to bottom, #e67e22, #d35400);
    border-color: #f39c12;
    color: #f39c12;
}

.slot[data-multiplier="2"] {
    background: linear-gradient(to bottom, #3498db, #2980b9);
    border-color: #3498db;
    color: #3498db;
}

.slot[data-multiplier="1.5"] {
    background: linear-gradient(to bottom, #2ecc71, #27ae60);
    border-color: #2ecc71;
    color: #2ecc71;
}

.slot[data-multiplier="1"] {
    background: linear-gradient(to bottom, #9b59b6, #8e44ad);
    border-color: #9b59b6;
    color: #9b59b6;
}

.multipliers-note {
    font-size: 0.7rem;
    color: #bdc3c7;
    text-align: center;
    font-style: italic;
    margin-top: 5px;
}

/* Launch controls - redesign pentru mobil */
.launch-controls {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(74, 105, 189, 0.5);
}

.launch-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.launcher {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #34495e, #2c3e50);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px dashed #7f8c8d;
    color: #7f8c8d;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.launcher:hover {
    background: linear-gradient(135deg, #4a69bd, #3c5aa8);
    color: white;
    border-color: #f6b93b;
    transform: scale(1.05);
}

.launcher-label {
    font-size: 0.6rem;
    margin-top: 3px;
    font-weight: bold;
}

.launch-btn {
    flex: 1;
    padding: 16px 20px;
    background: linear-gradient(to right, #2ecc71, #1abc9c);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
    min-height: 60px;
}

.launch-btn:hover {
    background: linear-gradient(to right, #27ae60, #16a085);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.4);
}

.launch-btn:active {
    transform: translateY(1px);
}

.launch-btn:disabled {
    background: #7f8c8d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.launch-text {
    font-size: 1rem;
}

.launch-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.current-bet-display {
    background: rgba(74, 105, 189, 0.2);
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(74, 105, 189, 0.5);
}

.bet-label {
    color: #bdc3c7;
    font-size: 0.9rem;
    margin-right: 5px;
}

.bet-value {
    font-size: 1.3rem;
    font-weight: bold;
    color: #f6b93b;
}

.launcher-controls {
    display: flex;
    gap: 8px;
}

.speed-btn {
    flex: 1;
    padding: 10px 8px;
    background: rgba(52, 73, 94, 0.6);
    border: 1px solid #4a69bd;
    border-radius: 8px;
    color: #bdc3c7;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-height: 50px;
}

.speed-btn.active {
    background: rgba(74, 105, 189, 0.8);
    color: white;
    box-shadow: 0 0 10px rgba(74, 105, 189, 0.5);
    border-color: #f6b93b;
}

.speed-btn:hover:not(.active) {
    background: rgba(74, 105, 189, 0.6);
    color: white;
}

/* Control panel - redesigned pentru mobil */
.control-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(25, 42, 86, 0.98);
    z-index: 1000;
    transition: right 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    backdrop-filter: blur(10px);
}

.control-panel.open {
    right: 0;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 2px solid #4a69bd;
    position: sticky;
    top: 0;
    z-index: 10;
}

.panel-header h2 {
    color: #82ccdd;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-panel-btn {
    background: transparent;
    border: none;
    color: #82ccdd;
    font-size: 1.5rem;
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-panel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.panel-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: 30px;
}

/* Bet section */
.bet-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(74, 105, 189, 0.5);
}

.bet-section h3 {
    color: #82ccdd;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bet-display {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bet-amount-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(74, 105, 189, 0.3);
}

.bet-value-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f6b93b;
    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    border: 2px solid #f6b93b;
}

.bet-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bet-input-group label {
    color: #bdc3c7;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bet-input-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bet-input-container input {
    flex: 1;
    padding: 15px;
    font-size: 1.3rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-weight: bold;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.currency {
    font-size: 1.3rem;
    font-weight: bold;
    color: #f6b93b;
    min-width: 40px;
}

.bet-quick-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-bet-title {
    color: #bdc3c7;
    font-size: 0.95rem;
    font-weight: 500;
}

.quick-bet-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.quick-bet-btn {
    padding: 12px 5px;
    background: rgba(74, 105, 189, 0.5);
    border: 1px solid #4a69bd;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.quick-bet-btn:hover {
    background: rgba(74, 105, 189, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.bet-slider-container {
    margin-top: 10px;
}

.bet-slider-container input[type="range"] {
    width: 100%;
    height: 10px;
    -webkit-appearance: none;
    background: linear-gradient(to right, #2c3e50, #4a69bd);
    border-radius: 5px;
    outline: none;
}

.bet-slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 25px;
    height: 25px;
    background: #f6b93b;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(246, 185, 59, 0.8);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.8rem;
    color: #82ccdd;
}

/* Auto-play section */
.auto-play-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(74, 105, 189, 0.5);
}

.auto-play-section h3 {
    color: #82ccdd;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.auto-play-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auto-launch-btn {
    padding: 16px;
    background: linear-gradient(to right, #9b59b6, #8e44ad);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auto-launch-btn:hover {
    background: linear-gradient(to right, #8e44ad, #7d3c98);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.4);
}

.auto-launch-btn.active {
    background: linear-gradient(to right, #e74c3c, #c0392b);
}

.auto-play-info {
    font-size: 0.85rem;
    color: #bdc3c7;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

/* Stats section */
.stats-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(74, 105, 189, 0.5);
}

.stats-section h3 {
    color: #82ccdd;
    margin-bottom: 15px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(74, 105, 189, 0.3);
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: rgba(74, 105, 189, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #f6b93b;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: #bdc3c7;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: #f6b93b;
}

/* History section */
.history-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(74, 105, 189, 0.5);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.history-header h3 {
    color: #82ccdd;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clear-history-btn {
    padding: 8px 12px;
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    border-radius: 6px;
    color: #e74c3c;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.clear-history-btn:hover {
    background: rgba(231, 76, 60, 0.4);
}

.history-list {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 5px;
}

.history-empty {
    text-align: center;
    padding: 30px 20px;
    color: #7f8c8d;
}

.history-empty i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.history-empty p {
    font-size: 1rem;
    margin-bottom: 5px;
}

.empty-subtitle {
    font-size: 0.9rem;
    color: #bdc3c7;
}

.history-item {
    padding: 12px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.5s;
    border-left: 4px solid transparent;
}

.history-item.win {
    border-left-color: #2ecc71;
    background: rgba(46, 204, 113, 0.05);
}

.history-item.loss {
    border-left-color: #e74c3c;
    background: rgba(231, 76, 60, 0.05);
}

.history-time {
    font-size: 0.8rem;
    color: #bdc3c7;
    margin-bottom: 4px;
}

.history-bet {
    font-size: 0.9rem;
    color: #ecf0f1;
}

.history-result {
    text-align: right;
}

.history-amount {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 4px;
}

.history-multiplier {
    font-size: 0.8rem;
    color: #bdc3c7;
}

/* Reset section */
.reset-section {
    margin-top: auto;
}

.reset-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(to right, #e67e22, #d35400);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.reset-btn:hover {
    background: linear-gradient(to right, #d35400, #c0392b);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

/* Footer */
footer {
    background: rgba(25, 42, 86, 0.9);
    padding: 20px 15px;
    border-top: 2px solid #4a69bd;
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.rules-section h4,
.developer-section h4 {
    color: #82ccdd;
    margin-bottom: 12px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rule {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rule-number {
    width: 25px;
    height: 25px;
    background: #4a69bd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.rule-text {
    font-size: 0.9rem;
    color: #ecf0f1;
}

.developer-card {
    background: rgba(52, 73, 94, 0.3);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #4a69bd;
}

.developer-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #f6b93b;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.social-btn {
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    font-size: 0.9rem;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-btn.instagram {
    background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
    color: white;
}

.social-btn.facebook {
    background: linear-gradient(to right, #1877F2, #0D8AF0);
    color: white;
}

.developer-note {
    text-align: center;
    font-style: italic;
    color: #82ccdd;
    font-size: 0.85rem;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.warning-section {
    margin-top: 10px;
}

.warning {
    background: rgba(231, 76, 60, 0.2);
    border: 1px solid #e74c3c;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.warning i {
    font-size: 1.5rem;
    color: #e74c3c;
    flex-shrink: 0;
}

.warning-text {
    flex: 1;
}

.warning-text strong {
    color: #ff9f8a;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 4px;
}

.warning-text p {
    color: #ff9f8a;
    font-size: 0.85rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 15px;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: linear-gradient(135deg, #1e3799, #0c2461);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    border: 3px solid #f6b93b;
    box-shadow: 
        0 0 30px rgba(246, 185, 59, 0.5),
        inset 0 0 30px rgba(246, 185, 59, 0.2);
    animation: modalAppear 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#resultTitle {
    color: #f6b93b;
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(246, 185, 59, 0.5);
}

.result-icon {
    font-size: 2.5rem;
    color: #f6b93b;
    animation: bounce 2s infinite;
}

.result-details {
    font-size: 1.2rem;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    line-height: 1.6;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    padding: 14px 20px;
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
}

.close-btn {
    background: linear-gradient(to right, #4a69bd, #3c5aa8);
}

.play-again-btn {
    background: linear-gradient(to right, #2ecc71, #27ae60);
}

.modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalAppear {
    from { 
        opacity: 0; 
        transform: scale(0.8) translateY(-50px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Desktop styles */
@media (min-width: 768px) {
    .desktop-header {
        display: block;
        margin-bottom: 20px;
        padding: 20px;
        background: rgba(0, 0, 0, 0.3);
        border-radius: 15px;
        border: 2px solid #4a69bd;
    }
    
    .desktop-header .header-content {
        text-align: center;
    }
    
    .desktop-header h1 {
        font-size: 2.5rem;
        color: #f6b93b;
        text-shadow: 0 0 10px rgba(246, 185, 59, 0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        margin-bottom: 10px;
    }
    
    .desktop-header .subtitle {
        font-size: 1.2rem;
        color: #82ccdd;
    }
    
    .mobile-header {
        display: none;
    }
    
    .game-area {
        flex-direction: row;
        padding: 20px;
        gap: 20px;
        min-height: calc(100vh - 180px);
    }
    
    .game-board-container {
        flex: 2;
        min-width: 0;
    }
    
    .control-panel {
        position: relative;
        right: 0;
        width: 350px;
        height: auto;
        border-radius: 15px;
        background: rgba(25, 42, 86, 0.9);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border: 2px solid #4a69bd;
    }
    
    .panel-header {
        position: static;
        border-radius: 15px 15px 0 0;
    }
    
    .close-panel-btn {
        display: none;
    }
    
    .plinko-board {
        height: 450px;
    }
    
    .slots-container {
        gap: 6px;
    }
    
    .slot {
        min-height: 70px;
        padding: 8px 3px;
    }
    
    .slot-value {
        font-size: 1.2rem;
    }
    
    .slot-prize {
        font-size: 0.8rem;
    }
    
    .footer-content {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .rules-section {
        flex: 2;
        min-width: 300px;
    }
    
    .developer-section {
        flex: 1;
        min-width: 250px;
    }
    
    .warning-section {
        flex: 100%;
        margin-top: 15px;
    }
    
    .history-list {
        max-height: 250px;
    }
}

@media (min-width: 1024px) {
    .plinko-board {
        height: 500px;
    }
    
    .game-board-container {
        flex: 3;
    }
    
    .control-panel {
        width: 400px;
    }
    
    .slots-container {
        gap: 8px;
    }
    
    .slot {
        min-height: 80px;
        padding: 10px 4px;
    }
    
    .slot-value {
        font-size: 1.3rem;
    }
    
    .slot-prize {
        font-size: 0.9rem;
    }
}

/* Landscape mode pentru telefoane */
@media (max-height: 600px) and (orientation: landscape) {
    .plinko-board {
        height: 250px;
    }
    
    .game-area {
        min-height: auto;
    }
    
    .slot {
        min-height: 50px;
        padding: 4px 2px;
    }
    
    .slot-value {
        font-size: 0.9rem;
    }
    
    .slot-prize {
        display: none;
    }
    
    .history-list {
        max-height: 150px;
    }
}

/* Pentru ecrane foarte mici */
@media (max-width: 360px) {
    .slots-container {
        grid-template-columns: repeat(9, 1fr);
        gap: 3px;
    }
    
    .slot {
        min-height: 50px;
        padding: 4px 1px;
    }
    
    .slot-value {
        font-size: 0.9rem;
    }
    
    .slot-prize {
        font-size: 0.6rem;
    }
    
    .launcher {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .launch-btn {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .launch-text {
        font-size: 0.9rem;
    }
    
    .speed-btn {
        font-size: 0.75rem;
        padding: 8px 5px;
    }
}