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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a2e;
    color: #eee;
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #ff6b6b;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

h2 {
    color: #4ecdc4;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

h3 {
    color: #45b7d1;
    margin-bottom: 15px;
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.section {
    background: #16213e;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #0f3460;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #95afc0;
    font-weight: 500;
}

.input-group input[type="number"],
.input-group select {
    width: 100%;
    padding: 8px 12px;
    background: #0f3460;
    border: 1px solid #4ecdc4;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
}

.input-group input[type="number"]:focus,
.input-group select:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 5px rgba(255, 107, 107, 0.3);
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #95afc0;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.calculate-btn {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 30px;
    padding: 15px 30px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    border-radius: 30px;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
}

.results-container {
    background: #16213e;
    border-radius: 10px;
    padding: 30px;
    border: 2px solid #4ecdc4;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background: #0f3460;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border: 1px solid #4ecdc4;
}

.result-card.main-result {
    grid-column: 1 / -1;
    background: linear-gradient(45deg, #0f3460, #16213e);
    border: 2px solid #ff6b6b;
}

.result-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ff6b6b;
    margin-top: 10px;
}

.main-result .result-value {
    font-size: 3.5rem;
    color: #4ecdc4;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.breakdown {
    background: #0f3460;
    border-radius: 10px;
    padding: 20px;
}

.breakdown-content {
    color: #95afc0;
    line-height: 1.8;
}

.attack-line {
    margin: 10px 0;
    padding: 10px;
    background: #16213e;
    border-radius: 5px;
    border-left: 4px solid #4ecdc4;
}

.damage-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    margin: 0 5px;
    font-size: 0.9rem;
}

.damage-type.physical {
    background: #ff6b6b;
    color: white;
}

.damage-type.fire {
    background: #ff4757;
    color: white;
}

.damage-type.cold {
    background: #3742fa;
    color: white;
}

.damage-type.electricity {
    background: #ffa502;
    color: white;
}

.condition-info {
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.condition-info h3 {
    color: #ff9800;
    margin-bottom: 15px;
}

.condition-tag {
    display: inline-block;
    background: #ff5722;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .result-value {
        font-size: 2rem;
    }
    
    .main-result .result-value {
        font-size: 2.5rem;
    }
}