:root {
  --bg: #07090d;
  --surface: #0e131b;
  --surface-2: #141c27;
  --text: #f5f7fa;
  --muted: #8c98a8;
  --faint: #5a6879;
  --line: rgba(149, 170, 195, .2);
  --red: #ff4655;
  --red-soft: #ff6d79;
  --cyan: #45f5e8;
  --gold: #ffc857;
  --max: 1180px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; min-height: 100vh; overflow-x: hidden; color: var(--text); background: var(--bg); font-family: "Noto Sans SC", "PingFang SC", "Microsoft Yahei", sans-serif; line-height: 1.6; }
body::selection { color: #fff; background: var(--red); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.ambient { position: fixed; z-index: -3; width: 52vw; height: 52vw; border-radius: 50%; pointer-events: none; filter: blur(90px); opacity: .11; }
.ambient--red { top: -30vw; left: -19vw; background: var(--red); }
.ambient--cyan { top: 35vh; right: -30vw; background: var(--cyan); opacity: .07; }
.grid-overlay { position: fixed; z-index: -2; inset: 0; pointer-events: none; opacity: .22; background-image: linear-gradient(rgba(122, 151, 179, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(122, 151, 179, .08) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, #000 0, transparent 85%); }

.site-header { width: min(var(--max), calc(100% - 72px)); height: 88px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(149, 170, 195, .13); }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 29px; height: 29px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; transform: skew(-14deg); }
.brand-mark i { display: block; background: var(--red); }
.brand-mark i:nth-child(2) { margin: 4px 0; background: var(--cyan); }
.brand-mark i:nth-child(3) { margin-top: 8px; }
.brand-copy { display: grid; gap: 5px; line-height: 1; }
.brand-copy b { font: 700 20px/1 "Space Grotesk", sans-serif; letter-spacing: .08em; }
.brand-copy small { color: var(--muted); font-size: 10px; letter-spacing: .06em; }
.header-status { color: var(--cyan); font: 10px "Space Grotesk", sans-serif; letter-spacing: .15em; }
.header-status span, .live-dot, .qr-live { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 11px var(--cyan); }

.page-shell { width: min(var(--max), calc(100% - 72px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, .88fr) minmax(500px, 1.12fr); column-gap: 70px; row-gap: 32px; padding: 96px 0 110px; }
.intro-panel { padding-top: 20px; }
.eyebrow, .section-kicker, .terminal-line, .rule-card span, .qr-meta, .footer-inner { font-family: "Space Grotesk", sans-serif; letter-spacing: .15em; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--faint); font-size: 10px; }
.eyebrow .live-dot { margin-right: 2px; background: var(--red); box-shadow: 0 0 0 4px rgba(255, 70, 85, .1); }
.intro-panel h1, .qr-copy h2, .registration-card h2 { margin: 25px 0 26px; font-family: "Barlow Condensed", "Noto Sans SC", sans-serif; font-size: clamp(70px, 8vw, 108px); font-weight: 800; line-height: .88; letter-spacing: -.035em; text-transform: uppercase; }
.intro-panel h1 em, .qr-copy h2 em { color: var(--red); font-style: normal; }
.intro-copy { max-width: 390px; margin: 0 0 37px; color: #c1cbd7; font-size: 15px; line-height: 1.95; }
.rule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; max-width: 420px; }
.rule-card { min-height: 104px; padding: 16px 17px; border: 1px solid var(--line); background: rgba(16, 23, 33, .68); display: grid; align-content: center; gap: 3px; position: relative; overflow: hidden; }
.rule-card::after { content: ""; position: absolute; left: 0; bottom: 0; width: 35%; height: 1px; background: var(--cyan); }
.rule-card--red::after { background: var(--red); }
.rule-card span { color: #6f7f92; font-size: 8px; }
.rule-card strong { font: 700 25px/1.15 "Space Grotesk", sans-serif; letter-spacing: -.03em; }
.rule-card--red strong { color: var(--red); }
.rule-card small { color: var(--muted); font-size: 10px; }
.qualification-note { max-width: 420px; margin-top: 16px; padding: 16px 17px; display: flex; gap: 12px; border: 1px solid rgba(255, 200, 87, .22); background: rgba(255, 200, 87, .04); }
.note-icon { color: var(--gold); font-size: 17px; line-height: 1.25; }
.qualification-note b, .qualification-note small { display: block; }
.qualification-note b { font-size: 12px; }
.qualification-note small { margin-top: 3px; color: #9b927b; font-size: 11px; }
.terminal-line { display: flex; align-items: center; gap: 8px; margin-top: 28px; color: #667588; font-size: 9px; }
.terminal-line span { width: 24px; height: 1px; background: var(--cyan); }

.registration-card { padding: 30px 31px 32px; border: 1px solid rgba(69, 245, 232, .24); background: linear-gradient(145deg, rgba(18, 28, 40, .95), rgba(9, 13, 19, .97)); box-shadow: 0 25px 80px rgba(0, 0, 0, .2); position: relative; overflow: hidden; }
.registration-card::before { content: "LOCK IN"; position: absolute; top: 46px; right: -28px; color: rgba(69, 245, 232, .04); font: 800 110px "Space Grotesk", sans-serif; letter-spacing: -.1em; transform: rotate(90deg); pointer-events: none; }
.card-header { display: flex; align-items: start; justify-content: space-between; position: relative; z-index: 1; }
.section-kicker { display: block; color: var(--cyan); font-size: 9px; }
.registration-card h2 { margin: 10px 0 0; font-size: 54px; text-transform: none; }
.team-counter { display: flex; align-items: center; gap: 9px; padding-top: 5px; color: var(--muted); text-align: right; font: 9px "Space Grotesk", sans-serif; letter-spacing: .12em; }
.team-counter b { color: var(--red); font: 700 29px/1 "Space Grotesk", sans-serif; }
.capacity-bar { height: 2px; margin: 25px 0 26px; background: #273240; overflow: hidden; }
.capacity-bar i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--red), var(--cyan)); transition: width .35s var(--ease); }
#registration-form { position: relative; z-index: 1; }
.field-label { display: flex; justify-content: space-between; margin-bottom: 8px; color: #c4ced9; font-size: 12px; }
.field-label span { color: var(--red); font: 9px "Space Grotesk", sans-serif; letter-spacing: .1em; }
input { width: 100%; min-height: 42px; padding: 9px 11px; outline: none; border: 1px solid rgba(143, 164, 187, .25); border-radius: 0; background: rgba(5, 8, 12, .72); color: var(--text); font-size: 13px; transition: border .2s ease, box-shadow .2s ease; }
input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(69, 245, 232, .08); }
input::placeholder { color: #536276; }
.roster-heading { display: flex; align-items: end; justify-content: space-between; margin: 27px 0 12px; }
.roster-heading h3 { margin: 5px 0 0; font-size: 19px; }
.roster-heading > span { color: #68788b; font-size: 10px; }
.roster-list { border-top: 1px solid var(--line); }
.roster-labels, .member-row { display: grid; grid-template-columns: 36px 1fr 1fr; gap: 9px; align-items: center; }
.roster-labels { padding: 8px 0 5px; color: #667589; font: 8px "Space Grotesk", sans-serif; letter-spacing: .12em; }
.member-row { padding: 5px 0; border-top: 1px solid rgba(149, 170, 195, .1); }
.member-row b { color: #68788b; font: 10px "Space Grotesk", sans-serif; }
.member-row--required b { color: var(--red); }
.member-row input { min-height: 37px; font-size: 12px; }
.consent-row { display: flex; align-items: start; gap: 9px; margin: 20px 0 17px; color: #8593a5; font-size: 11px; line-height: 1.6; }
.consent-row input { width: 14px; min-height: 14px; height: 14px; flex: 0 0 auto; margin-top: 2px; accent-color: var(--red); }
.submit-button { width: 100%; min-height: 51px; display: flex; align-items: center; justify-content: center; gap: 16px; border: 0; background: var(--red); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .08em; transition: transform .25s var(--ease), background .25s ease, box-shadow .25s ease; }
.submit-button:hover:not(:disabled) { background: var(--red-soft); box-shadow: 0 15px 30px rgba(255, 70, 85, .2); transform: translateY(-2px); }
.submit-button:disabled { cursor: not-allowed; opacity: .55; }
.submit-button b { font-size: 18px; font-weight: 400; }
.form-hint { margin: 11px 0 0; color: #637285; font-size: 10px; text-align: center; }
.form-message { min-height: 19px; margin-top: 10px; color: var(--cyan); font-size: 12px; text-align: center; }
.form-message.is-error { color: var(--red-soft); }

.qr-card { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr minmax(250px, 310px); gap: 55px; align-items: center; padding: 40px 44px; border: 1px solid var(--line); background: linear-gradient(110deg, rgba(16, 22, 32, .82), rgba(11, 16, 23, .92)); position: relative; overflow: hidden; }
.qr-card::before { content: "SQUAD COMMS"; position: absolute; right: -14px; bottom: 10px; color: rgba(69, 245, 232, .04); font: 800 90px "Space Grotesk", sans-serif; letter-spacing: -.09em; transform: rotate(-90deg); pointer-events: none; }
.qr-copy { position: relative; z-index: 1; }
.qr-copy h2 { margin: 14px 0 18px; font-size: 65px; text-transform: none; }
.qr-copy p { max-width: 430px; margin: 0; color: #a9b4c1; font-size: 14px; line-height: 1.9; }
.qr-copy p b { color: var(--cyan); font-weight: 600; }
.qr-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 27px; color: #748397; font-size: 9px; }
.qr-live { margin: 0 2px 0 0; background: var(--red); box-shadow: 0 0 10px var(--red); }
.meta-divider { color: var(--red); }
.qr-frame { width: min(100%, 285px); aspect-ratio: 1; padding: 19px; margin-left: auto; background: #f7f9fb; box-shadow: 0 0 0 1px rgba(69, 245, 232, .4), 0 20px 60px rgba(0, 0, 0, .35), 0 0 70px rgba(69, 245, 232, .13); position: relative; }
.qr-frame img { display: block; width: 100%; height: 100%; object-fit: contain; }
.qr-corner { position: absolute; width: 23px; height: 23px; z-index: 2; }
.qr-corner--tl { top: -7px; left: -7px; border-top: 2px solid var(--red); border-left: 2px solid var(--red); }
.qr-corner--br { right: -7px; bottom: -7px; border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); }
.qr-scanline { display: none; }
.qr-label { position: absolute; bottom: -25px; right: 0; color: var(--cyan); font: 9px "Space Grotesk", sans-serif; letter-spacing: .15em; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { width: min(var(--max), calc(100% - 72px)); min-height: 70px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; color: #667589; font-size: 9px; }

@keyframes qrscan { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: .55; } 88% { opacity: .55; } 100% { transform: translateY(245px); opacity: 0; } }
@media (max-width: 920px) { .page-shell { grid-template-columns: 1fr; gap: 50px; } .intro-panel { max-width: 650px; } .qr-card { grid-column: auto; } }
@media (max-width: 640px) {
  .site-header, .page-shell, .footer-inner { width: calc(100% - 36px); }
  .site-header { height: 74px; }
  .brand-copy small { display: none; }
  .header-status { font-size: 8px; }
  .page-shell { padding: 63px 0 78px; row-gap: 43px; }
  .intro-panel h1 { font-size: 76px; }
  .intro-copy { font-size: 13px; }
  .rule-card { min-height: 94px; padding: 13px; }
  .rule-card strong { font-size: 21px; }
  .registration-card { padding: 25px 18px 22px; }
  .registration-card h2 { font-size: 47px; }
  .registration-card::before { font-size: 82px; top: 34px; }
  .roster-heading { display: block; }
  .roster-heading > span { display: block; margin-top: 7px; }
  .roster-labels, .member-row { grid-template-columns: 25px 1fr 1fr; gap: 6px; }
  .member-row input { min-height: 35px; padding: 8px 7px; }
  .qr-card { display: flex; flex-direction: column; align-items: stretch; gap: 28px; padding: 27px 21px 33px; }
  .qr-copy h2 { font-size: 56px; }
  .qr-frame { width: min(78vw, 285px); margin: 0 auto; }
  .footer-inner { display: grid; gap: 7px; padding: 21px 0 28px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }
