:root {
  color-scheme: dark;
  --text: #fff2dc;
  --muted: #e0c4a5;
  --gold: #e9b879;
  --line: #e9b87945;
  --body: 'DM Sans', sans-serif;
  --display: 'Cinzel', Georgia, serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #241208;
  color: var(--text);
  font: 14px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, #080605c9, #0c0706b8 45%, #080504e0), radial-gradient(ellipse at center, #10090677, transparent 85%);
}
.background { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.background img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button, input, select, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
[hidden] { display: none !important; }
.page { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 42px 26px; }
/* The entire form sits directly on the artwork: no panel, frame, or backdrop blur. */
.registration { width: 100%; max-width: 580px; background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.brand { display: flex; width: 110px; margin: 0 auto 13px; transition: opacity .15s; }
.brand:hover { opacity: .85; }
.brand img { display: block; object-fit: contain; width: 110px; height: 84px; filter: sepia(1) saturate(1.3) brightness(.88) drop-shadow(0 3px 10px #c1743655); }
.intro { text-align: center; margin-bottom: 29px; }
.registration-label { display: inline-flex; align-items: center; gap: 8px; font-size: 9px; font-weight: 600; letter-spacing: 2.4px; color: #efd0a1; text-shadow: 0 2px 8px #000; }
.registration-label > span { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 13px #ec9d4d; }
.intro h1 {
  font: 700 clamp(42px, 6vw, 65px)/1.1 var(--display);
  letter-spacing: 2px;
  margin: 10px 0 9px;
  color: #f2c692;
  background: linear-gradient(180deg, #fff0ce 4%, #edc091 38%, #a86634 73%, #edb77a 96%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 1px #2a1008) drop-shadow(0 4px 14px #0008);
}
.intro p { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #e7caab; margin: 0; text-shadow: 0 2px 8px #000; }
.personal-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 23px; }
.field { display: block; font-weight: 550; font-size: 13px; min-width: 0; text-shadow: 0 1px 5px #000; }
.field > span, legend > span { color: var(--gold); font-size: 11px; margin-left: 2px; }
.email-help { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.5; font-weight: 400; }
input:not([type=checkbox]):not([type=radio]), select {
  width: 100%; min-width: 0; display: block; margin-top: 8px;
  border: 1px solid #e7b57c77; border-radius: 3px;
  background: #321a0c36; padding: 12px 13px; color: var(--text);
  font-size: 12px; min-height: 45px;
  transition: background .15s, border-color .15s;
  text-shadow: 0 1px 4px #000;
}
input::placeholder { color: #e0c5a9; opacity: .8; }
input:not([type=checkbox]):not([type=radio]):hover, select:hover { border-color: #efc18fb3; }
input:not([type=checkbox]):not([type=radio]):focus, select:focus { outline: none; border-color: #ffd7a4; background: #4d29164d; box-shadow: 0 0 0 2px #e4bc7d18; }
select { cursor: pointer; appearance: auto; }
option { background: #382011; color: var(--text); }
fieldset { border: 0; min-width: 0; padding: 0; margin: 0 0 23px; }
legend { padding: 0; font-size: 13px; font-weight: 550; margin-bottom: 10px; text-shadow: 0 1px 6px #000; }
.field-hint { color: var(--muted); font-size: 10px; line-height: 1.6; margin: 0 0 12px; text-shadow: 0 1px 5px #000; }
.category-fieldset legend { margin-bottom: 3px; }
.categories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px 14px; }
.category { display: flex; align-items: center; gap: 8px; min-height: 39px; border-bottom: 1px solid #e9b87938; padding: 8px 2px; font-size: 11px; color: #f4e0c8; cursor: pointer; line-height: 1.4; text-shadow: 0 1px 5px #000; transition: border-color .15s, color .15s; }
.category:hover, .choice:hover { border-color: #f5c28bd9; color: #fff5e3; }
.category:has(input:checked) { border-color: #ffc386; color: #ffd5a2; }
.category:last-child { grid-column: span 2; }
.category input, .confirmation input { width: 14px; height: 14px; margin: 0; flex-shrink: 0; accent-color: var(--gold); cursor: pointer; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { border: 1px solid #e7b57c77; border-radius: 3px; display: flex; align-items: center; gap: 9px; padding: 12px 13px; font-size: 12px; min-height: 44px; background: transparent; cursor: pointer; text-shadow: 0 1px 6px #000; transition: border-color .15s, color .15s; }
.choice:has(input:checked) { border-color: #ffd3a0; color: #ffd6a5; background: #cf87361a; }
.choice input { accent-color: var(--gold); width: 14px; height: 14px; margin: 0; flex-shrink: 0; }
.conditional { border-top: 1px solid var(--line); padding-top: 20px; margin: 0 0 23px; }
.conditional .personal-fields { margin-bottom: 5px; }
.team-hint { margin-bottom: 15px; }
.captain-row { border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--muted); padding: 10px 0; margin-bottom: 13px; text-shadow: 0 1px 5px #000; }
.captain-row > span + span { color: #ffd19a; overflow-wrap: anywhere; min-width: 0; text-align: right; }
.captain-row > span:first-child { flex-shrink: 0; }
.member-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.member-fields:empty { margin-bottom: 0; }
.member-fields .field { font-size: 11px; }
.conditional > .field-hint:last-child { margin-bottom: 0; }
.conditional > fieldset { margin-bottom: 13px; }
.confirmation { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; color: #ead2b8; margin: 0 0 20px; cursor: pointer; text-shadow: 0 1px 6px #000; }
.confirmation input { margin-top: 2px; }
.primary { display: flex; align-items: center; justify-content: center; gap: 15px; width: 100%; min-height: 48px; border: 1px solid #e8bc85; border-radius: 3px; background: linear-gradient(110deg, #b87b43, #efc58c 48%, #c18b51); color: #27140b; font-size: 12px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 20px #7a3e1b38, inset 0 1px #fff0ca77; transition: filter .15s, box-shadow .15s; }
.primary:hover { filter: brightness(1.12); box-shadow: 0 4px 26px #d28b4838, inset 0 1px #fff0caaa; }
.primary > span { font-size: 19px; line-height: 1; }
.primary:disabled { opacity: .7; cursor: wait; }
.privacy { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 9px; line-height: 1.6; color: #dbc0a2; margin: 12px 0 0; text-shadow: 0 1px 6px #000; }
.privacy svg { width: 11px; height: 12px; fill: none; stroke: currentColor; flex-shrink: 0; }
.form-footer { text-align: center; font-size: 10px; padding-top: 19px; color: #d2b08b; text-shadow: 0 1px 5px #000; }
.form-footer strong { font-weight: 700; letter-spacing: 1px; color: #f2d4ad; }
.form-footer a:hover { color: var(--gold); }
.form-error { color: #ffe0d4; border-left: 2px solid #f0a77a; background: #6b281d66; font-size: 12px; line-height: 1.6; padding: 12px; margin: 0 0 16px; text-shadow: 0 1px 4px #000; }
.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.success { text-align: center; padding: 24px 0 15px; outline: none; }
.success-mark { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: 25px; margin: 0 auto 22px; }
.success h2 { font: 600 30px/1.3 var(--display); color: #f0c493; margin: 0 0 13px; text-shadow: 0 2px 8px #000; }
.success p { font-size: 12px; color: var(--muted); line-height: 1.8; text-shadow: 0 1px 6px #000; }
.reference { display: flex; flex-direction: column; gap: 12px; border-block: 1px solid var(--line); padding: 22px 0; margin: 25px 0; }
.reference > span { font-size: 9px; letter-spacing: 1.5px; color: var(--muted); }
.reference strong { font-size: 22px; letter-spacing: 1px; color: var(--gold); overflow-wrap: anywhere; }
.reference small { font-size: 10px; color: var(--muted); }
.success .primary { margin-top: 25px; }
#form-error { scroll-margin-top: 30px; }
@media (max-width: 700px) {
  .page { padding: 30px 24px; }
  .background img { object-position: center; }
  .intro { margin-bottom: 26px; }
  .intro h1 { font-size: 48px; letter-spacing: 1.2px; }
  .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 16px; }
  .category { font-size: 12px; min-height: 42px; }
  .category:last-child { grid-column: 1 / -1; }
  .personal-fields { gap: 13px; }
  .choice { font-size: 11px; padding: 12px 10px; }
}
@media (max-width: 440px) {
  .page { padding: 24px 22px; }
  .personal-fields { grid-template-columns: 1fr; gap: 17px; }
  .intro h1 { font-size: clamp(36px, 11vw, 46px); }
  .brand, .brand img { width: 98px; height: 75px; }
  .brand { margin-bottom: 12px; }
  .category { font-size: 11px; gap: 8px; }
  .choice { font-size: 11px; padding: 12px 9px; gap: 7px; }
  .member-fields { grid-template-columns: 1fr; }
  .privacy { font-size: 8px; }
  .success h2 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
