:root { color-scheme: light; --ink: #174568; --accent: #d3430d; --paper: #fff; --error: #a01828; --field-focus: #17668e; --field-focus-halo: #17668e14; font-family: Tahoma, "Leelawadee UI", "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html { background: #fff6e9; }
body { margin: 0; color: var(--ink); }
button, input, select { font: inherit; }
button, a { touch-action: manipulation; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid #153c96; outline-offset: 4px; }
.screen { position: relative; width: 100%; min-height: max(100svh, 54.55vw); background-color: #fff6e9; background-position: center top; background-repeat: no-repeat; background-size: 100% auto; }
.screen--welcome { background-image: url('../assets/kids/forum-desktop-welcome.jpg'); }
.welcome-actions { display: flex; flex-direction: column; align-items: center; padding-top: 44.2vw; padding-bottom: 24px; }
.action { border: 0; cursor: pointer; transition: filter .15s ease; }
.action:hover:not(:disabled) { filter: brightness(1.06); }
.action:disabled { opacity: .65; cursor: wait; }
.register-art, .home-button { display: block; width: clamp(220px, 25vw, 420px); padding: 0; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font-size: clamp(20px, 2vw, 34px); font-weight: 700; text-align: center; }
.register-art .forum-only, .home-button .forum-only { display: block; padding: 10px 24px; }
.register-art .forum-only span { margin-left: 12px; }
.register-art img, .home-button img { display: block; width: 100%; height: auto; }
.screen--form { padding: 12vw 16px 32px; background-image: url('../assets/kids/forum-desktop-form.jpg'); }
.registration-form { width: clamp(360px, 28vw, 560px); max-width: 100%; margin: 0 auto; }
.form-card { padding: 24px 32px; border-radius: 36px; background: var(--paper); }
.field { margin-bottom: 12px; min-width: 0; }
.field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.field input, .field select { display: block; width: 100%; min-height: 40px; padding: 6px 16px; border: 1px solid #527589; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 16px; }
.field select { padding-right: 24px; }
.field input:focus, .field select:focus {
  border-color: var(--field-focus);
  outline: 2px solid var(--field-focus);
  outline-offset: -2px;
  box-shadow: 0 0 0 2px var(--field-focus-halo);
}
.field:focus-within > label { color: var(--field-focus); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border: 2px solid var(--error); }
.field input[aria-invalid="true"]:focus, .field select[aria-invalid="true"]:focus { outline-color: var(--error); }
.error { display: block; color: var(--error); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.error:not(:empty) { margin-top: 4px; }
.consent { padding: 0; margin: 20px 0 0; border: 0; min-width: 0; font-size: 12px; line-height: 1.65; }
.consent legend { padding: 0; font-weight: 700; }
.consent p { margin: 4px 0 12px; }
.consent label { display: flex; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: var(--ink); }
.consent input:focus-visible { outline: 2px solid var(--field-focus); outline-offset: 2px; }
.submit-button { display: block; width: 100%; min-height: 44px; padding: 8px 24px; margin-top: 16px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 24px; font-weight: 700; }
.form-message { margin: 0; padding: 0; text-align: center; color: var(--error); font-size: 14px; }
.form-message:not(:empty) { margin-top: 12px; padding: 12px; background: #fff; border-radius: 12px; }
.companion { min-width: 0; margin: 20px 0 0; padding: 0; border: 0; }
.companion legend { margin-bottom: 12px; padding: 0; font-weight: 700; font-size: 14px; }
.screen--success { padding: 18.5vw 16px 32px; background-image: url('../assets/kids/forum-desktop-success.jpg'); }
.success-wrap { width: min(90%, 650px); margin: 0 auto; text-align: center; }
.success-card { padding: 16px 24px 24px; border-radius: 40px; background: var(--paper); box-shadow: 0 8px 24px #112d4b1c; }
.success-check { display: block; width: 144px; height: auto; margin: 0 auto; }
.success-card h1 { margin: 0; color: #08398d; font-size: clamp(20px, 2vw, 32px); line-height: 1.5; }
.success-intro { margin: 4px 0 12px; font-size: 16px; font-weight: 700; line-height: 1.5; }
.qr-link { display: block; width: fit-content; margin: 16px auto; border: 4px solid #ffe16a; border-radius: 20px; padding: 4px; }
.success-qr { display: block; width: 180px; height: 180px; }
.home-button { margin: 20px auto 0; }
@media (min-width: 700px) {
body[data-event="forum"] .register-art {
    display: grid; place-items: center;
    width: 21.5vw; min-width: 190px; max-width: 425px;
    aspect-ratio: 14 / 3; min-height: 44px;
    font-size: clamp(18px, 2.2vw, 44px);
  }
body[data-event="forum"] .register-art .forum-only { padding: 8px 18px; }
body[data-event="forum"] .register-art {
    border: 3px solid #fff;
    background: linear-gradient(#ff9b11, #ff6200 48%, #f03b00 52%, #ee3700);
    box-shadow: inset 0 2px 2px #ffc76d, 0 1px 3px #b453382e;
    text-shadow: 0 2px 2px #a12c08;
  }
body[data-event="forum"] .form-card { padding: clamp(18px, 1.2vw, 24px) clamp(24px, 2.8vw, 56px); }
body[data-event="forum"] .field { margin-bottom: clamp(8px, .6vw, 12px); }
body[data-event="forum"] .field label { margin-bottom: 4px; font-size: clamp(12px, .85vw, 16px); }
body[data-event="forum"] .field input, body[data-event="forum"] .field select { min-height: clamp(32px, 2.1vw, 42px); padding: 4px 12px; font-size: 14px; }
body[data-event="forum"] .consent { margin-top: 14px; font-size: clamp(11px, .65vw, 13px); line-height: 1.45; }
body[data-event="forum"] .consent p { margin-bottom: 8px; }
body[data-event="forum"] .consent label { min-height: 28px; }
body[data-event="forum"] .submit-button { margin-top: 14px; font-size: clamp(20px, 1.6vw, 30px); }

}
@media (max-width: 699px) {
.screen { min-height: max(100svh, 183.33vw); }
.screen--welcome { background-image: url('../assets/kids/forum-mobile-welcome.jpg'); }
.welcome-actions { padding-top: 115vw; padding-bottom: 24px; }
.register-art { width: 62%; font-size: 24px; }
.screen--form { padding: 44vw 20px 28px; background-image: url('../assets/kids/forum-mobile-form.jpg'); }
.registration-form { width: 100%; max-width: 420px; }
.form-card { padding: 20px; border-radius: 24px; }
.field { margin-bottom: 14px; }
.field input, .field select { min-height: 44px; }
.consent { margin-top: 16px; }
.consent label { min-height: 44px; }
.submit-button { font-size: 22px; }
.screen--success { padding: 54vw 20px 28px; background-image: url('../assets/kids/forum-mobile-success.jpg'); }
.success-wrap { width: 100%; max-width: 430px; }
.success-card { padding: 16px 16px 20px; border-radius: 28px; }
.success-card h1 { font-size: 20px; }
.success-intro { font-size: 14px; }
.success-check { width: 128px; }
.success-qr { width: 160px; height: 160px; }
.home-button { width: 85%; font-size: 22px; }

}
@media (min-width: 700px) and (max-width: 1023px) and (orientation: portrait) {
.screen--form { padding-top: 18vw; }
.registration-form { width: 50%; min-width: 380px; }
.success-wrap { width: 65%; }

}
@media (prefers-reduced-motion: reduce) {
.action { transition: none; }

}
