/* RESET / BASE */
* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #0f0f0f;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
}

/* APP CONTAINER */
body > * {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* MOBILE PADDING FIX */
@media (max-width: 640px) {
    body > * {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* LANGUAGE SWITCH */
.language-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 24px;
}

.language-switch a {
    cursor: pointer;
    color: #ff9900;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.95em;
    background: rgba(255, 153, 0, 0.08);
}

.language-switch a.active {
    background: #ff9900;
    color: #000;
    font-weight: bold;
}

/* HEADINGS */
h1 {
    color: #ff9900;
    text-align: center;
    margin: 16px 0 24px;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-left: auto;
    margin-right: auto;
}

/* FORM FIELDS */
.field {
    margin-bottom: 24px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
    color: #ff9900;
    font-size: 0.95em;
}

input,
select {
    width: 100%;
    padding: 12px;
    background-color: #1f1f1f;
    border: 1px solid #333;
    color: #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
}

/* RANGE */
input[type=range] {
    margin-top: 10px;
    height: 6px;
    background: #333;
    border-radius: 5px;
}

input[type=range]::-webkit-slider-thumb {
    background: #ff9900;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
}

input[type=range]::-moz-range-thumb {
    background: #ff9900;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
}

/* RESULT BOX */
.result {
    margin-top: 32px;
    padding: 20px;
    background: #1a1a1a;
    border: 2px solid #ff9900;
    border-radius: 14px;
    font-weight: bold;
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    text-align: center;
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.2);
}

/* DESCRIPTION */
.description {
    margin-top: 32px;
    font-size: 0.95em;
    line-height: 1.6;
    color: #ccc;
}

.description h3 {
    color: #ff9900;
    font-size: 1.15rem;
    margin-top: 4rem;
}

.description li strong {
    color: #ff9900;
    margin-bottom: 12px;
    margin-top: 0;
}

.description p strong {
    color: #ff9900;
    margin-bottom: 12px;
    margin-top: 0;
    font-weight: 400;
}

a {
    color: #ff8800;
}

footer {
    margin-top: 5em;
    margin-bottom: 2em;
}

footer a {
    margin-right: 1rem;
}
