* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #182033;
}

.page {
    min-height: 100vh;
    padding: 24px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.card {
    width: 100%;
    max-width: 860px;
    background: #ffffff;
    padding: 34px;
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}

.badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 13px;
    border-radius: 999px;
    background: #e8f0ff;
    color: #163b73;
    font-weight: 700;
    font-size: 0.88rem;
}

h1 {
    margin: 0;
    color: #163b73;
    font-size: 2rem;
}

.intro {
    line-height: 1.6;
    color: #4b5563;
    margin: 14px 0 30px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-section {
    border: 1px solid #dde6f3;
    border-radius: 20px;
    padding: 24px;
    background: #fbfdff;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section-game {
    background: #ffffff;
}

.section-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 18px;
    border-bottom: 1px solid #e5edf7;
}

.section-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #163b73;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.section-header h2 {
    margin: 0 0 5px;
    color: #163b73;
    font-size: 1.28rem;
}

.section-header p {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
    font-size: 0.95rem;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: bold;
    color: #1f2937;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #163b73;
    box-shadow: 0 0 0 3px rgba(22, 59, 115, 0.12);
}

textarea {
    resize: vertical;
}

small {
    color: #6b7280;
    line-height: 1.4;
}

.button {
    margin-top: 4px;
    border: none;
    background: #163b73;
    color: white;
    padding: 16px 24px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.button:hover {
    background: #0f2d59;
}

.button:disabled,
.button.is-loading {
    opacity: 0.65;
    cursor: not-allowed;
}

.message-card {
    max-width: 640px;
    margin-top: 60px;
    text-align: center;
}

.message-card p {
    line-height: 1.6;
}

.message-card.error h1 {
    color: #b42318;
}

.link-button {
    width: auto;
}

@media (max-width: 700px) {
    .page {
        padding: 16px;
    }

    .card {
        padding: 24px;
        border-radius: 18px;
    }

    .form-section {
        padding: 20px;
        border-radius: 16px;
    }

    .section-header {
        gap: 12px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 1.6rem;
    }

    .section-header h2 {
        font-size: 1.14rem;
    }
}

    .logo{
        display: block;
        margin: 0 auto 40px auto;
        max-width: 250px;
    }

.refresh-notice {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.refresh-notice button {
    margin-top: 12px;
    border: none;
    background: #9a3412;
    color: white;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: bold;
}

.page-timer {
    background: #eef5ff;
    border: 1px solid #c7ddff;
    color: #163b73;
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 18px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.page-timer span {
    font-weight: bold;
}

.refresh-notice {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 16px;
    border-radius: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.refresh-notice button {
    margin-top: 12px;
    border: none;
    background: #9a3412;
    color: white;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: bold;
    cursor: pointer;
}
.warning-box {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    padding: 16px;
    border-radius: 14px;
    margin: 20px 0;
    line-height: 1.5;
    text-align: left;
}
