:root { color-scheme: light; --ink: #174568; --accent: #d3430d; --paper: #fff; --error: #a01828; font-family: Tahoma, "Leelawadee UI", "Segoe UI", sans-serif; }
* { box-sizing: border-box; }
html { min-width: 320px; 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; }
body[data-event="festival"] { --ink: #124d9c; --accent: #d9166a; }
body[data-event="forum"] .festival-only, body[data-event="festival"] .forum-only { display: none !important; }
.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: 40.3vw; 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[aria-invalid="true"], .field select[aria-invalid="true"] { border: 2px solid 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); }
.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; }
body[data-event="festival"] .screen { background-color: #0787ed; }
body[data-event="festival"] .screen--welcome { background-image: url('../assets/kids/festival-desktop-welcome.jpg'); }
body[data-event="festival"] .welcome-actions { padding-top: 39vw; }
body[data-event="festival"] .register-art, body[data-event="festival"] .home-button { background: transparent; border-radius: 0; }
body[data-event="festival"] .register-art { width: clamp(240px, 28vw, 500px); }
body[data-event="festival"] .screen--form { min-height: max(100svh, 100vw); padding-top: 16vw; background-image: url('../assets/kids/festival-desktop-form.jpg'); }
body[data-event="festival"] .registration-form { width: clamp(400px, 37vw, 680px); }
body[data-event="festival"] .form-card { padding: 32px clamp(32px, 6vw, 100px); }
body[data-event="festival"] .field input { border-color: #668bc3; }
body[data-event="festival"] .screen--success { padding-top: 15.5vw; background-image: url('../assets/kids/festival-desktop-success.jpg'); }
body[data-event="festival"] .success-wrap { width: min(90%, 800px); }
@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, body[data-event="festival"] .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; }
  body[data-event="festival"] .screen { min-height: max(100svh, 177.78vw); }
  body[data-event="festival"] .screen--welcome { background-image: url('../assets/kids/festival-mobile-welcome.webp'); }
  body[data-event="festival"] .welcome-actions { padding-top: 99vw; }
  body[data-event="festival"] .register-art { width: 78%; }
  body[data-event="festival"] .screen--form { padding-top: 48vw; background-image: url('../assets/kids/festival-mobile-form.webp'); }
  body[data-event="festival"] .registration-form { width: 100%; }
  body[data-event="festival"] .form-card { padding: 24px 20px; }
  body[data-event="festival"] .screen--success { padding-top: 55vw; background-image: url('../assets/kids/festival-mobile-success.webp'); }
}
@media (min-width: 700px) and (max-width: 1023px) and (orientation: portrait) {
  .screen--form { padding-top: 18vw; }
  .registration-form { width: 50%; min-width: 380px; }
  body[data-event="festival"] .registration-form { width: 60%; }
  .success-wrap { width: 65%; }
}
@media (prefers-reduced-motion: reduce) { .action { transition: none; } }
