* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Счетчик очков */
.score-board {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.score-item {
    text-align: center;
}

.score-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #555;
}

.score-item span {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
    display: block;
}

.vs {
    font-size: 1.5rem;
    font-weight: bold;
    color: #764ba2;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Игровая область */
.game-area {
    background: rgba(255, 255, 255, 0.95);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.choices h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5rem;
}

.choice-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.choice-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    padding: 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    min-width: 120px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.choice-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
}

.choice-btn:active {
    transform: translateY(-2px);
}

.choice-btn .emoji {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.choice-btn .text {
    display: block;
    font-size: 1rem;
    font-weight: 600;
}

/* Область битвы */
.battle-area {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 30px 0;
    padding: 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    animation: fadeIn 0.5s ease;
}

.player-choice,
.computer-choice {
    text-align: center;
    flex: 1;
}

.player-choice h3,
.computer-choice h3 {
    margin-bottom: 15px;
    color: #555;
    font-size: 1.2rem;
}

.choice-display {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.choice-display .emoji {
    display: block;
    font-size: 3rem;
    margin-bottom: 10px;
}

.choice-display .text {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.vs-battle {
    font-size: 2rem;
    margin: 0 20px;
    animation: pulse 1s infinite;
}

/* Область результата */
.result-area {
    text-align: center;
    margin-top: 30px;
    animation: fadeIn 0.5s ease;
}

.result-message {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.result-message.win {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.result-message.lose {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.result-message.draw {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.play-again-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.play-again-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* История игр */
.game-history {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.game-history h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
}

.history-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 10px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateX(5px);
}

.history-item.win {
    border-left: 4px solid #10b981;
}

.history-item.lose {
    border-left: 4px solid #ef4444;
}

.history-item.draw {
    border-left: 4px solid #f59e0b;
}

.history-choices {
    font-size: 1.2rem;
}

.history-result {
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 15px;
    color: white;
    font-size: 0.9rem;
}

.history-result.win {
    background: #10b981;
}

.history-result.lose {
    background: #ef4444;
}

.history-result.draw {
    background: #f59e0b;
}

.no-history {
    text-align: center;
    color: #888;
    font-style: italic;
    padding: 20px;
}

.clear-history-btn {
    display: block;
    margin: 0 auto;
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.clear-history-btn:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* Правила */
.rules {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.rules h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
}

.rules-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.rule {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    min-width: 200px;
}

.rule:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-3px);
}

.rule-emoji {
    font-size: 2rem;
    margin-bottom: 10px;
}

.rule span:last-child {
    font-weight: 600;
    text-align: center;
    color: #555;
}

/* Футер */
footer {
    text-align: center;
    color: white;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

.shake {
    animation: shake 0.5s ease;
}

.thinking {
    animation: pulse 1s infinite;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .score-board {
        gap: 20px;
        padding: 15px;
    }
    
    .choice-buttons {
        gap: 15px;
    }
    
    .choice-btn {
        min-width: 100px;
        padding: 15px;
    }
    
    .choice-btn .emoji {
        font-size: 2rem;
    }
    
    .battle-area {
        flex-direction: column;
        gap: 20px;
    }
    
    .vs-battle {
        margin: 10px 0;
    }
    
    .rules-content {
        flex-direction: column;
        align-items: center;
    }
    
    .rule {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .score-board {
        flex-direction: column;
        gap: 15px;
    }
    
    .choice-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .choice-btn {
        width: 200px;
    }
    
    .game-area {
        padding: 20px;
    }
}
/* Стили для модального окна куки */
.cookie-consent-modal {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    width: 500px;
    z-index: 1000;
    animation: fadeIn 0.5s ease;
    backdrop-filter: blur(10px);
}

.cookie-consent-content {
    text-align: center;
}

.cookie-consent-content p {
    margin-bottom: 15px;
    color: #333;
    line-height: 1.5;
}

.cookie-consent-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cookie-consent-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cookie-consent-btn.accept {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.cookie-consent-btn.decline {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.cookie-consent-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 480px) {
    .cookie-consent-buttons {
        flex-direction: column;
    }
    
    .cookie-consent-btn {
        width: 100%;
    }
}