:root { color-scheme: dark; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: #000; color: #f5f5f5; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #000; }
body { min-height: 100dvh; overflow: hidden; }
[hidden] { display: none !important; }
body::before, body::after { position: fixed; content: ""; pointer-events: none; border-color: #171717; border-style: solid; }
body::before { inset: 15px; border-width: 1px 0 0 1px; }
body::after { inset: 15px; border-width: 0 1px 1px 0; }
.shell { min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.card { width: min(100%, 430px); max-height: calc(100dvh - 30px); overflow: hidden; padding: clamp(16px, 4vw, 30px); border: 1px solid #202020; background: #050505; box-shadow: 0 0 0 8px #030303, 0 0 0 9px #151515; }
.card::-webkit-scrollbar { display: none; }
.frc-logo { display: block; width: min(100%, 320px); max-height: 138px; object-fit: contain; margin: 0 auto 20px; }
.rule { height: 1px; background: #202020; margin-bottom: 24px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(25px, 7vw, 34px); letter-spacing: -.04em; line-height: 1; }
.lead { margin-bottom: 20px; color: #9c9c9c; font-size: 13px; line-height: 1.45; }
.field { display: block; margin: 8px 0; }
.field-validation { display: block; min-height: 14px; padding: 3px 1px 0; color: transparent; font-size: 10px; line-height: 1.2; }
.field-validation.valid { color: #55c982; }
.field-validation.invalid { color: #ff6565; }
input, .select-button { width: 100%; border: 1px solid #292929; border-radius: 0; background: #0b0b0b; color: #fff; font: inherit; min-height: clamp(37px, 6dvh, 43px); padding: 9px 12px; outline: none; }
input::placeholder { color: #888; opacity: 1; }
input:focus, .select-button:focus { border-color: #777; }
.select-button { cursor: pointer; text-align: left; display: flex; justify-content: space-between; align-items: center; color: #aaa; }
.select-button.selected { color: #fff; }
.select-button::after { content: "⌄"; color: #777; }
.checks { margin: 17px 0 18px; }
.check { display: flex; align-items: flex-start; gap: 9px; margin: 9px 0; color: #999; font-size: 11px; line-height: 1.4; }
.check input { width: 15px; min-height: 15px; height: 15px; flex: 0 0 15px; padding: 0; accent-color: #fff; }
.legal-link { border: 0; padding: 0; color: #fff; background: none; text-decoration: underline; font: inherit; cursor: pointer; }
.submit { width: 100%; min-height: 46px; border: 1px solid #fff; background: #fff; color: #000; font: 700 12px inherit; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.submit:disabled { opacity: .45; cursor: wait; }
.sponsor { display: block; width: min(100%, 175px); max-height: 55px; object-fit: contain; margin: 18px auto 0; }
.confirmation-logos { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 72px; }
.confirmation-logos img { display: block; width: 48%; max-height: 72px; object-fit: contain; }
.legal-document { color: #aaa; font-size: 12px; line-height: 1.55; }
.error { min-height: 16px; margin: 9px 0 0; color: #f66; font-size: 11px; }
.success { text-align: center; padding: 14px 0 3px; }
.success h1 { margin-bottom: 14px; }
.success p { color: #aaa; font-size: 13px; line-height: 1.5; }
.name-subtitle { margin: -5px 0 14px; color: #777 !important; font-size: 15px !important; }
.confirmation-qr { display: block; width: min(58vw, 210px); aspect-ratio: 1; margin: 4px auto 16px; background: #fff; image-rendering: pixelated; }
.confirmation-warning { margin: 0 auto; padding: 10px 8px; background: #c92525; color: #fff !important; font-size: 12px !important; font-weight: 700; line-height: 1.4 !important; animation: warning-flash 5s ease-in-out both; }
.activity-state { display: grid; min-height: 280px; place-content: center; justify-items: center; gap: 24px; text-align: center; }
.activity-state h1 { max-width: 310px; font-size: clamp(22px, 6vw, 30px); line-height: 1.05; }
.activity-spinner { width: 38px; height: 38px; }
.team-members { display: grid; gap: 12px; width: 100%; text-align: center; }
.team-member { color: #fff; font-size: 22px; font-weight: 700; }
.team-member.self { color: #888; font-size: 16px; font-weight: 400; }
.success .member-id { display: inline-block; margin: 9px 0 13px; border: 1px solid #282828; padding: 10px 15px; color: #fff; font: 700 15px ui-monospace, monospace; letter-spacing: .14em; }
dialog { width: min(92vw, 560px); height: min(88dvh, 760px); max-height: 92dvh; overflow: hidden; border: 1px solid #333; background: #090909; color: #eee; padding: 25px; }
dialog::backdrop { background: rgba(0,0,0,.8); }
.modal-close { position: absolute; z-index: 2; right: 12px; top: 7px; border: 0; background: #090909; color: #aaa; font-size: 25px; line-height: 1; cursor: pointer; }
.modal-close:focus, .modal-close:focus-visible { outline: none; border: 0; box-shadow: none; }
dialog h2 { margin: 0 30px 14px 0; font-size: 19px; }
#legal-copy { height: calc(100% - 42px); overflow-y: auto; padding-right: 4px; }
dialog p { color: #aaa; font-size: 12px; line-height: 1.55; }
.membership-option { width: 100%; display: flex; align-items: center; gap: 10px; margin: 7px 0; padding: 12px; border: 1px solid #292929; background: #0d0d0d; color: #eee; text-align: left; cursor: pointer; }
.membership-option input { width: 16px; min-height: 16px; accent-color: #fff; }
.membership-option:hover, .membership-option:focus { border-color: #fff; }
.membership-save { width: 100%; margin-top: 14px; padding: 12px; border: 1px solid #fff; background: #fff; color: #000; font-weight: 700; cursor: pointer; }
@media (max-height: 680px) { .shell { padding: 12px; } .card { padding: 15px 21px; } .frc-logo { max-height: 75px; margin-bottom: 9px; } .rule { margin-bottom: 12px; } .field { margin: 5px 0; } .field span { margin-bottom: 3px; } input, .select-button { min-height: 35px; padding: 7px 10px; } .checks { margin: 8px 0; } .check { margin: 6px 0; } .submit { min-height: 40px; } .sponsor { max-height: 42px; margin-top: 8px; } }
.spinner { width: 28px; height: 28px; display: inline-block; border: 2px solid #333; border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
#boot-loader { position: fixed; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; gap: 12px; color: #888; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; background: #000; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes warning-flash { 0%, 12%, 24%, 36%, 48% { opacity: .15; } 6%, 18%, 30%, 42%, 100% { opacity: 1; } }
