/* NOVA DIPL 2027 player registration. Navy and gold from NOVA's logo and site (navy #0D2147, gold #C9A020).
   Idea: the scoreboard. Condensed caps numbers on deep navy, gold only where it carries meaning (the fee, the active step, the action). */

/* The site's own two faces (Archivo with its width axis, Inter), the same files next/font ships, so the form reads as part of the site on /play. */
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-wdth-wght.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(fonts/archivo-latin-ext-wdth-wght.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/inter-latin-wght.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fonts/inter-latin-ext-wght.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C4,U+2113,U+2C60-2C7F,U+A720-A7FF; }

:root {
  --bg: #060B18;
  --navy: #0D2147;
  --navy-2: #12295A;
  --navy-3: #1A3A6E;
  --field: #08132B;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.28);
  --text: #FFFFFF;
  --muted: #A9B6D0;   /* 8.6:1 on --bg */
  --gold: #C9A020;
  --gold-2: #E8B830;  /* gold used as text: 9.8:1 on --bg */
  --on-gold: #1A1200;
  --danger: #FF9A9A;  /* 8.9:1 on --navy */
  --ok: #3DDC97;
  --display: "Archivo", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --r: 10px;
  --gap: clamp(16px, 2.4vw, 24px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--body); }
a { color: var(--gold-2); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--on-gold); padding: 10px 14px; border-radius: var(--r); font-weight: 700; z-index: 10; }
.skip:focus { top: 12px; }

/* ---------- layout */
.page {
  max-width: 1240px; margin: 0 auto;
  padding: clamp(20px, 4vw, 56px) clamp(16px, 4vw, 40px) 32px;
  display: grid; gap: clamp(24px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 980px) {
  .page { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); align-items: start; }
}
/* The intro stays in view beside a long step only when all of it fits on screen; otherwise its lower half (the phone line) would hide. */
@media (min-width: 980px) and (min-height: 1000px) { .intro { position: sticky; top: 40px; } }

/* ---------- intro: the scoreboard */
.logo { display: inline-block; border-radius: 12px; }
.logo img { display: block; width: 88px; height: 88px; }
h1 { margin: 0; font: 800 clamp(48px, 8.4vw, 96px)/0.9 var(--display); text-transform: uppercase; letter-spacing: 0.005em; }
.intro { container-type: inline-size; }
/* Two lines at every width: the score (DIPL 2027) set to fill the column, the label under it on one line. Sizes follow the column (cqi), so the lines never wrap. */
.intro h1 { margin: 22px 0 0; font: 800 48px/0.88 var(--display); text-transform: uppercase; letter-spacing: 0.005em; text-wrap: balance; }
.intro h1 span { display: block; }
.intro h1 .score { color: var(--gold-2); font-size: min(16.6cqi, 124px); }
.intro h1 .what { font-size: min(6.8cqi, 64px); margin-top: 0.12em; }
.kicker { margin: 12px 0 0; color: var(--text); font-size: 16px; font-weight: 600; letter-spacing: 0.01em; }
.lede { margin: 10px 0 0; color: var(--muted); max-width: 46ch; font-size: 17px; }
/* On phones the form sits below the intro, so the first screen carries a way straight to it. */
.jump { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; min-height: 52px; padding: 0 22px; border-radius: var(--r); background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: 17px; text-decoration: none; }
@media (min-width: 980px) { .jump { display: none; } }
@media (max-width: 560px) { .jump { width: 100%; } }

.facts {
  margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
}
.facts div { padding: 12px 10px 12px 0; }
.facts div + div { border-left: 1px solid var(--line); padding-left: 12px; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font: 700 clamp(22px, 2.6vw, 28px)/1.05 var(--display); text-transform: uppercase; }
@media (max-width: 560px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .facts div:nth-child(4) { border-top: 1px solid var(--line); }
}

.fee { margin-top: 22px; }
.fee-amount { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.fee-label { color: var(--muted); font-size: 14px; width: 100%; }
.fee-amount b { font: 800 40px/1 var(--display); color: var(--gold-2); }
.fee-amount span:last-child { color: var(--muted); font-size: 14px; }
.fee-how { margin: 6px 0 0; color: var(--muted); font-size: 16px; }

.ready { margin-top: 24px; }
.ready h2 { margin: 0 0 8px; font: 700 20px/1.2 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.ready ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ready li { padding-left: 22px; position: relative; color: var(--text); font-size: 16px; }
.ready li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 10px; height: 2px; background: var(--gold); }
.help { margin: 22px 0 0; color: var(--muted); font-size: 16px; line-height: 44px; }
.help a { padding: 0 !important; margin: 0 !important; }

/* ---------- the form card */
.card {
  background: var(--navy); border-radius: 18px;
  padding: clamp(18px, 3.4vw, 36px); outline: none; min-width: 0;
}
.progress { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.progress li { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.progress li::before { content: ""; height: 4px; border-radius: 2px; background: var(--line-strong); transition: background 0.3s var(--ease); }
.progress li.done::before, .progress li[aria-current="step"]::before { background: var(--gold); }
.progress li[aria-current="step"] { color: var(--text); font-weight: 600; }
.progress .n { font: 700 20px/1 var(--display); }
.progress li .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .progress li .t { display: none; } .progress li[aria-current="step"] .t { display: inline; overflow: visible; } }
.note { margin: 0 0 18px; font-size: 14px; color: var(--muted); }

.step { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin: 0 0 18px; font: 800 clamp(26px, 3.4vw, 36px)/1 var(--display); text-transform: uppercase; }
.step-of { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* read out with the legend; the progress bar shows it */
.js .step.enter { animation: step-in 0.32s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.grid { display: grid; gap: 16px var(--gap); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .grid.two { grid-template-columns: minmax(0, 1fr); } }
.grid + .grid, .grid + .field, .field + .grid, .field + .field { margin-top: 16px; }
.grid > .field + .field { margin-top: 0; } /* inside a grid the gap does the spacing, so side-by-side labels line up */

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
label, .label { font-weight: 600; font-size: 16px; }
.req { color: var(--gold-2); }
.hint { margin: 0; color: var(--muted); font-size: 14px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="url"], input[type="date"], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r);
  border: 1px solid var(--line-strong); background: var(--field); color: var(--text);
  font: 400 16px/1.3 var(--body); transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #7C8BAA; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(232, 184, 48, 0.25); }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.85); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23E8B830' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.caps { text-transform: uppercase; }
.prefix { display: flex; align-items: stretch; }
.prefix span { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-strong); border-right: 0; border-radius: var(--r) 0 0 var(--r); background: var(--navy-2); color: var(--muted); }
.prefix input { border-radius: 0 var(--r) var(--r) 0; }

input[type="file"] { width: 100%; font: 400 16px var(--body); color: var(--muted); padding: 10px; border: 1px dashed var(--line-strong); border-radius: var(--r); background: var(--field); min-height: 50px; }
input[type="file"]::file-selector-button { font: 600 16px var(--body); margin-right: 12px; padding: 9px 14px; border-radius: 8px; border: 0; background: var(--navy-3); color: var(--text); cursor: pointer; min-height: 40px; }
.file-ok { color: var(--ok); font-size: 14px; margin: 0; }

.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.choices.inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 420px) { .choices:not(.inline) { grid-template-columns: minmax(0, 1fr); } }
.choice {
  display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 14px; border-radius: var(--r);
  border: 1px solid var(--line-strong); background: var(--field); font-weight: 500; cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.choice:has(input:checked) { border-color: var(--gold-2); background: var(--navy-2); }
.choice:has(input:focus-visible) { outline: 3px solid var(--gold-2); outline-offset: 2px; }
input[type="radio"] { accent-color: var(--gold); width: 20px; height: 20px; margin: 0; flex: 0 0 auto; }
input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 44px; height: 44px; margin: -11px -6px -11px -11px; border-radius: 8px; cursor: pointer;
  background: no-repeat center / 22px 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Crect x='1' y='1' width='20' height='20' rx='5' fill='%2308132B' stroke='%23A9B6D0' stroke-width='2'/%3E%3C/svg%3E");
}
input[type="checkbox"]:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Crect width='22' height='22' rx='5' fill='%23C9A020'/%3E%3Cpath d='M6 11.5l3.2 3.2L16 8' fill='none' stroke='%231A1200' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
input[type="checkbox"][aria-invalid="true"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Crect x='1' y='1' width='20' height='20' rx='5' fill='%2308132B' stroke='%23FF9A9A' stroke-width='2'/%3E%3C/svg%3E"); }
input[type="checkbox"]:focus-visible { outline: 3px solid var(--gold-2); outline-offset: -6px; }
.choice input[type="checkbox"] { width: 22px; height: 22px; margin: 0; background-size: 22px 22px; }
.progress li[role="button"] { cursor: pointer; }

.check { flex-direction: row; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: rgba(255, 255, 255, 0.04); }
.check { align-items: center; flex-wrap: wrap; }
.check label { flex: 1 1 0; min-width: 0; }
.check .error { flex: 0 0 100%; padding-left: 39px; margin-top: -4px; }
.check label { padding: 2px 0; }
.check label { font-weight: 500; }

.guardian { margin-top: 20px; padding: 18px; border-radius: 14px; border: 1px solid rgba(232, 184, 48, 0.45); background: rgba(232, 184, 48, 0.05); }
.guardian h3 { margin: 0 0 4px; font: 700 20px/1.1 var(--display); text-transform: uppercase; }
.guardian .hint { margin-bottom: 14px; }

/* errors: colour plus an icon plus words, never colour alone */
[aria-invalid="true"] { border-color: var(--danger) !important; }
.error { margin: 0; color: var(--danger); font-size: 14px; font-weight: 600; }
.error::before { content: "! "; }
.form-error { margin-top: 18px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--danger); color: var(--text); background: rgba(255, 122, 122, 0.08); }
.form-error a { color: var(--gold-2); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* review */
.review { display: grid; gap: 14px; }
.review section { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.review header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.review h3 { margin: 0; font: 700 20px/1.1 var(--display); text-transform: uppercase; }
.review dl { margin: 0; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4px 12px; font-size: 16px; }
.review dt { color: var(--muted); }
@media (max-width: 480px) { .review dl { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); } }
.review dd { margin: 0; overflow-wrap: anywhere; }
.edit { background: none; border: 0; color: var(--gold-2); font: 600 16px var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; padding: 0 4px; }
.fee-box { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--navy-2); }
.fee-box p { margin: 0; }
.fee-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.fee-line b { font: 800 36px/1 var(--display); color: var(--gold-2); }
.fee-box .hint { margin-top: 6px; }
#pending-pay { margin-top: 14px; border: 1px solid var(--gold); }
.done-pay { margin: 0 0 8px; color: var(--ok); font-weight: 600; overflow-wrap: anywhere; }
.turnstile { margin-top: 14px; }

/* buttons */
.nav { display: flex; gap: 12px; margin-top: 26px; justify-content: space-between; }
.btn {
  min-height: 52px; padding: 0 22px; border-radius: var(--r); border: 1px solid transparent; cursor: pointer;
  font: 700 17px/1 var(--body); transition: transform 0.12s var(--ease), background 0.15s, border-color 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--gold); color: var(--on-gold); margin-left: auto; min-width: 180px; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
@media (max-width: 480px) { .btn.primary { flex: 1; min-width: 0; } }
@media (max-width: 420px) { .btn { padding: 0 14px; font-size: 16px; } }
.privacy-line { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* success */
.done { outline: none; }
.done-mark { margin: 0; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); font-size: 30px; font-weight: 800; }
.done h2 { margin: 16px 0 4px; font: 800 clamp(36px, 5vw, 52px)/1 var(--display); text-transform: uppercase; }
.done-id { font-size: 17px; margin: 8px 0; }
.done-id b { font: 800 30px/1 var(--display); color: var(--gold-2); letter-spacing: 0.04em; margin-left: 6px; }
.done h3 { font: 700 20px/1.1 var(--display); text-transform: uppercase; margin: 22px 0 8px; }
.done ol { margin: 0 0 18px; padding-left: 20px; display: grid; gap: 6px; }

.notice { padding: 14px; border-radius: var(--r); background: var(--navy-2); margin-bottom: 16px; }

/* UPI QR payment (22 Nov 2026): the QR, how to pay, then the screenshot upload that completes the registration. */
.upi { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px 20px; align-items: start; margin-bottom: 16px; padding: 16px; border-radius: 12px; background: var(--navy-2); border: 1px solid var(--gold); }
.upi[hidden] { display: none; }
.upi-qr { display: grid; gap: 10px; }
.upi-qr img { display: block; width: 100%; height: auto; border-radius: 12px; background: #fff; }
.upi-save { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: var(--r); border: 1px solid var(--line-strong); color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; }
.upi-save:hover, .upi-save:focus-visible { border-color: var(--gold-2); color: var(--gold-2); }
.upi-amt { margin: 0 0 10px; font-size: 17px; }
.upi-amt b[data-cfg] { color: var(--gold-2); }
.upi-how ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); font-size: 15px; }
.upi-how ol b { color: var(--text); }
.upi-proof { grid-column: 1 / -1; margin: 0; }
@media (max-width: 640px) {
  .upi { grid-template-columns: minmax(0, 1fr); }
  .upi-qr { max-width: 260px; width: 100%; margin: 0 auto; }
}

/* footer */
.foot { max-width: 1240px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 40px) 36px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: 14px; }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }

/* Archivo set the way the site sets it: headings wide (the font shorthand resets the width, so it is set again here), numbers at normal width. */
h1, legend, .ready h2, .guardian h3, .review h3, .done h2, .done h3, .doc h2 { font-stretch: 112%; letter-spacing: -0.01em; }
.facts dd { font-size: clamp(20px, 2.4vw, 22px); font-stretch: 75%; font-variant-numeric: tabular-nums; } /* the scoreboard strip: Archivo's condensed width, so the fee fits a quarter column */
.intro h1 { font-stretch: 118%; letter-spacing: -0.01em; }
.progress .n, .fee-amount b, .fee-line b, .done-id b { font-stretch: 100%; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }

/* embedded in another site: the host page gives the context, so only the card shows */
.embed body { background: transparent; }
.embed .page { display: block; padding: 0; max-width: none; }
.embed .intro, .embed .foot { display: none; }
.embed { --r: 4px; } /* the site's square corners (its forms use 0 to 6 px), so the card reads as the site's own form panel */
.embed .card { border-radius: 0; }

/* inline links inside sentences: the hit area grows to 44 px, the line does not move */
.help a, .doc p a, .doc li a, .privacy-line a, .check label a, .fee-how a, .form-error a { display: inline-block; padding: 12px 0; margin: -12px 0; }

/* legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(20px, 4vw, 56px) clamp(16px, 4vw, 40px); }
.doc h1 { font-size: clamp(40px, 7vw, 72px); margin-top: 18px; }
.doc h2 { font: 700 26px/1.1 var(--display); text-transform: uppercase; margin: 32px 0 8px; }
.doc p, .doc li { color: #DCE3F0; }
.doc .updated { color: var(--muted); }
.doc .back { display: inline-flex; align-items: center; min-height: 44px; }

@media (hover: hover) {
  a:hover { color: #F6D66B; }
  .jump:hover { background: var(--gold-2); color: var(--on-gold); }
  input:hover, select:hover { border-color: rgba(255, 255, 255, 0.45); }
  .choice:hover { border-color: rgba(255, 255, 255, 0.45); }
  .btn.primary:hover { background: var(--gold-2); }
  .btn.ghost:hover { border-color: var(--text); }
  .foot a:hover { color: var(--text); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Team owner and sponsor forms (1 Dec 2026): one page, three sections. */
@media (min-width: 980px) and (min-height: 820px) { .page:has(form[data-action]) .intro { position: sticky; top: 40px; } }
.grid.two .field.full { grid-column: 1 / -1; }
.opt { color: var(--muted); font-weight: 400; }
form[data-action] .step + .step { margin-top: 28px; }
