:root {
  color-scheme: light;
  --black: #151417;
  --red: #c51c32;
  --light-red: #ff5667;
  --paper: #f5f3f1;
  --white: #fff;
  --muted: #584f53;
  --line: #dfd8d8;
  font: 1rem/1.52 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--black); }
a { color: inherit; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #e13a4e; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1100px, calc(100% - 48px)); margin-inline: auto; }
.top, .hero, .footer { color: var(--white); background: var(--black); }
.nav, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.nav { border-bottom: 1px solid #ffffff30; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 780; }
.mark { display: inline-grid; place-items: center; min-width: 42px; min-height: 36px; background: var(--red); color: white; font-weight: 930; letter-spacing: -.06em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .85rem; min-height: 48px; padding: .65rem 1rem; color: white; background: var(--red); border: 0; text-decoration: none; font-weight: 760; cursor: pointer; }
.button:hover { background: #a81529; }
.button.small { min-height: 40px; white-space: nowrap; }
.hero { overflow: hidden; border-bottom: 6px solid var(--red); }
.hero-layout { position: relative; isolation: isolate; display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 28px; min-height: 455px; padding-block: clamp(48px, 7vw, 95px); }
.hero-layout::after { position: absolute; z-index: -1; content: ''; width: 42%; height: 150%; top: -25%; right: -7%; transform: skew(-17deg); background: #29181e; border-inline: 1px solid #ff566746; }
.season { margin: 0 0 12px; font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--red); }
.hero .season { color: #ff8996; }
h1, h2 { font-weight: 930; letter-spacing: -.065em; line-height: .98; margin: 0; }
h1 { font-size: clamp(2.8rem, 7.1vw, 6.4rem); }
.hero h1 span { display: block; color: var(--light-red); }
.lead { margin: 24px 0; color: #eee6e8; max-width: 37ch; }
.logos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; }
.logos img { display: block; width: 100%; height: 145px; object-fit: contain; background: white; padding: 12px; }
.logos img:nth-child(2) { margin-top: 36px; }
.details { padding-block: 50px 56px; }
h2 { font-size: clamp(2rem, 5vw, 3.35rem); margin-bottom: 24px; }
h3 { margin: 0 0 12px; font-size: 1.25rem; letter-spacing: -.03em; }
h3 small { font-size: .8rem; color: var(--muted); font-weight: 500; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: white; padding: 20px; border: 1px solid var(--line); border-top: 4px solid var(--red); }
.panel dl { margin: 0; }
.panel dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 10px 0; }
.panel dd { margin: 0; white-space: nowrap; font-weight: 800; }
.rates dd { color: var(--red); }
.secondary { margin-top: 28px; }
ul { margin: 0; padding-left: 1.15rem; }
li + li { margin-top: 6px; }
.footer { font-size: .9rem; }
.registration { max-width: 820px; padding-block: 42px 56px; }
.registration-intro { margin-bottom: 24px; }
.registration-intro p:last-child { margin: 12px 0 0; color: var(--muted); }
form { background: white; padding: clamp(16px, 4vw, 34px); border-top: 5px solid var(--red); }
.notice { background: #fff0f1; border-left: 3px solid var(--red); padding: 10px 12px; margin: 0; }
.required, .hint, .back { font-size: .9rem; }
.required, .hint { color: var(--muted); }
fieldset { min-inline-size: 0; border: 0; padding: 0; margin: 22px 0; }
legend { width: 100%; border-bottom: 1px solid var(--line); padding: 0 0 7px; margin-bottom: 12px; font-size: 1.2rem; font-weight: 810; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wide { grid-column: 1 / -1; }
label { display: block; font-weight: 690; font-size: .95rem; min-width: 0; }
input:not([type=checkbox]), textarea, select { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 4px; padding: 8px; background: #fff; border: 1px solid #a89fa1; border-radius: 3px; color: var(--black); }
input[type=file] { font-size: .85rem; }
input.date { max-width: 225px; }
.check { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 14px; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--red); }
.preview { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.preview img { width: 68px; height: 82px; object-fit: cover; border: 1px solid var(--line); }
.plain { padding: 4px 0; border: 0; color: #a31529; background: none; text-decoration: underline; cursor: pointer; }
.lookup { padding: 14px; background: var(--paper); border: 1px solid var(--line); }
.lookup label { margin-bottom: 4px; }
.lookup-results { display: grid; gap: 4px; margin-top: 8px; }
.lookup-results button { width: 100%; padding: 9px 10px; border: 1px solid var(--line); background: var(--white); color: var(--black); text-align: left; cursor: pointer; }
.lookup-results button:hover, .lookup-results button:focus-visible { border-color: var(--red); background: #fff0f1; }
.selected { margin: 8px 0 0; padding: 8px 10px; border-left: 3px solid var(--red); background: var(--white); }
.lookup-error { color: #a31529; }
#due-preview { display: block; margin-top: 5px; }
.signature-label { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
canvas { display: block; width: 100%; height: clamp(105px, 25vw, 145px); border: 1px dashed #a89fa1; background: #fff; touch-action: none; cursor: crosshair; }
#result { padding: 10px 12px; background: var(--paper); border-left: 3px solid var(--red); }
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .hero-layout, .facts { grid-template-columns: 1fr; }
  .hero-layout { min-height: auto; gap: 24px; }
  .hero-layout::after { right: 0; }
  .logos { width: min(270px, 100%); }
  .logos img { height: 94px; padding: 7px; }
  .logos img:nth-child(2) { margin-top: 12px; }
  .footer-row { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .fields { grid-template-columns: 1fr; }
  .brand, .back, .button.small { font-size: .82rem; }
  .nav { gap: 8px; }
}

.rules-link { color: #a31529; display: inline-block; margin-top: 3px; font-size: .9rem; }
.rules-section { margin-block: 24px; padding: clamp(16px, 4vw, 34px); background: white; border-top: 4px solid var(--red); }
.rules-section h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); margin-bottom: 20px; }
.rules-section h3 { font-size: 1rem; margin: 17px 0 3px; }
.rules-section p { margin: 0; }
.rules-section ul { margin-top: 6px; }
