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

body {
    font-family: Georgia, 'Times New Roman', serif;
    background: linear-gradient(160deg, #fff8e8 0%, #fff0f5 100%);
    min-height: 100vh;
    color: #2d2d2d;
}

.hidden {
    display: none !important;
}

#page {
    max-width: 660px;
    margin: 0 auto;
    padding: 2rem 1.25rem 5rem;
}

header {
    text-align: center;
    padding: 2.5rem 0 1.5rem;
}

.confetti {
    font-size: 2.2rem;
    letter-spacing: 0.2rem;
}

h1 {
    font-size: 2.3rem;
    color: #b84020;
    margin: 0.6rem 0 0.3rem;
    line-height: 1.2;
}

.card {
    background: #fff;
    border-radius: 18px;
    padding: 1.8rem 2rem;
    margin: 1.2rem 0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

.card p {
    line-height: 1.75;
    font-size: 1.05rem;
    margin-bottom: 0.9rem;
}

.card p:last-child {
    margin-bottom: 0;
}

h2 {
    font-size: 1.25rem;
    color: #b84020;
    margin-bottom: 1.2rem;
}

.slider-wrap {
    margin: 1.5rem 0 0.5rem;
}

.slider-label-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.person-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.person-block .emoji {
    font-size: 1.9rem;
}

.person-block .pname {
    font-size: 0.85rem;
    color: #666;
    font-family: system-ui, sans-serif;
}

.person-block .pct {
    font-size: 1.4rem;
    font-weight: bold;
    color: #b84020;
    font-family: system-ui, sans-serif;
}

.person-block .hobby {
    font-size: 0.78rem;
    color: #aaa;
    font-family: system-ui, sans-serif;
}

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #b84020;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    border: 3px solid #fff;
}

input[type=range]::-moz-range-thumb {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #b84020;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    border: 3px solid #fff;
}

.split-hint {
    text-align: center;
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 0.6rem;
    font-family: system-ui, sans-serif;
}

.form-group {
    margin: 1.3rem 0 0.5rem;
}

label {
    display: block;
    font-size: 0.88rem;
    color: #777;
    margin-bottom: 0.4rem;
    font-family: system-ui, sans-serif;
}

input[type=text] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    font-family: Georgia, serif;
    transition: border-color 0.2s;
    background: #fff;
}

input[type=text]:focus {
    outline: none;
    border-color: #b84020;
}

input[type=text].invalid {
    border-color: #c0392b;
}

.field-error {
    font-size: 0.82rem;
    color: #c0392b;
    font-family: system-ui, sans-serif;
    margin-top: 0.35rem;
    display: none;
}

.para {
    color: #2b6cb0;
    border-bottom: 1px dotted;
    text-decoration: none;
    cursor: pointer
}

.para:hover {
    color: #1a4a82
}

.field-error.visible {
    display: block;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #b84020;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-family: Georgia, serif;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.02em;
}

.submit-btn:hover {
    background: #963518;
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: default;
}

#thank-you {
    max-width: 660px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

#thank-you .ty-emoji {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

#thank-you h2 {
    font-size: 1.9rem;
    color: #b84020;
    margin-bottom: 1rem;
}

#thank-you p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 0.8rem;
}

#thank-you .ty-note {
    font-size: 0.9rem;
    color: #aaa;
    font-style: italic;
    margin-top: 1.5rem;
}

footer {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
    font-size: 0.75rem;
    color: #bbb;
    font-family: system-ui, sans-serif;
    font-style: italic;
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .card {
        padding: 1.4rem 1.2rem;
    }
}
