* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at 10% 20%, #0a0f1a, #03060c);
    font-family: 'Inter', sans-serif;
    color: #F0F4F8;
    line-height: 1.5;
    padding: 2rem 1.5rem;
}

.glass-panel {
    background: rgba(18, 25, 35, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 2rem;
    border: 1px solid rgba(0, 200, 150, 0.25);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.5);
    padding: 1.8rem;
    transition: all 0.2s ease;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
}

.logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 200, 150, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: #00C896;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 2.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #FFFFFF 0%, #A0F4E0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.subhead {
    font-size: 1.1rem;
    color: #B0C4DE;
    border-left: 3px solid #00C896;
    padding-left: 1rem;
    margin: 1rem 0 1.8rem 0;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    color: #CCE4F2;
}

select, .con-value {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #0F1722;
    border: 1px solid #2D3A48;
    border-radius: 1.2rem;
    font-size: 1rem;
    font-family: 'Inter', monospace;
    color: #F0F4F8;
    transition: all 0.2s;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300C896' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

select:hover, .con-value:hover {
    border-color: #00C896;
}

select:focus, .con-value:focus {
    outline: none;
    border-color: #00C896;
    box-shadow: 0 0 0 2px rgba(0,200,150,0.3);
}

.modifier-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.con-mod-box {
    flex: 2;
}

.mod-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.mod-btn {
    background: #1A2634;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    color: #B8D0E7;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 0.9rem;
}

.mod-btn.active {
    background: #00C896;
    color: #0A0F1A;
    box-shadow: 0 4px 10px rgba(0,200,150,0.3);
}

.mod-btn:hover {
    background: #2C3E4E;
    color: white;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-item input {
    width: 1.2rem;
    height: 1.2rem;
    accent-color: #00C896;
    cursor: pointer;
}

.radio-group {
    background: #0F1722;
    border-radius: 2rem;
    padding: 0.4rem;
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.radio-option {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0;
    border-radius: 2rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.15s;
    background: transparent;
    color: #B8D0E7;
}

.radio-option.selected {
    background: #00C896;
    color: #0A0F1A;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,200,150,0.3);
}

.calculate-btn {
    width: 100%;
    background: #00C896;
    border: none;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 2rem;
    color: #0A0F1A;
    margin-top: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0,200,150,0.5);
    background: #00e0a8;
}

.result-card {
    background: linear-gradient(145deg, #111a24, #0b1119);
    border-radius: 1.8rem;
    padding: 1.5rem;
    border: 1px solid rgba(0,200,150,0.3);
    text-align: center;
}

.total-hp {
    font-size: 3.4rem;
    font-weight: 800;
    color: #00C896;
    letter-spacing: -0.02em;
    margin: 0.5rem 0;
}

.hp-detail {
    font-size: 0.9rem;
    color: #A0BBD9;
    border-top: 1px dashed #2A3A48;
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.info-section {
    margin-top: 2.5rem;
}

.table-wrapper {
    overflow-x: auto;
    margin: 1rem 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0,0,0,0.3);
    border-radius: 1.5rem;
    overflow: hidden;
}

th, td {
    padding: 0.8rem;
    text-align: left;
    border-bottom: 1px solid #2D3A48;
}

th {
    background: #00C89620;
    color: #00e0b0;
    font-weight: 600;
}

.faq-grid, .tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.faq-item {
    background: #0F1722;
    border-radius: 1.2rem;
    padding: 1rem;
    border-left: 3px solid #00C896;
}

.faq-question {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.faq-answer {
    font-size: 0.85rem;
    color: #CAD6E6;
}

.tool-link {
    background: rgba(0,200,150,0.08);
    padding: 0.7rem 1rem;
    border-radius: 2rem;
    text-align: center;
    transition: 0.2s;
    display: block;
    text-decoration: none;
    color: #F0F4F8;
    font-weight: 500;
    font-size: 0.9rem;
}

.tool-link:hover {
    background: #00C89620;
    transform: translateY(-2px);
    color: #00C896;
}

footer {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.8rem;
    color: #6A7E9E;
}

@media (max-width: 800px) {
    .calc-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    body {
        padding: 1rem;
    }
    h1 {
        font-size: 1.8rem;
    }
}