@font-face {
  font-family: Inter;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('/fonts/barlow-condensed-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}
:root {
  --ink: #151516;
  --red: #c62a24;
  --signal: #ff443a;
  --paper: #f7f6f2;
  --muted: #535353;
  --display: 'Barlow Condensed', Impact, 'Arial Narrow', sans-serif;
  font-family: Inter, Arial, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: #101011;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
a { color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #257eb8; outline-offset: 4px; }
.skip-link { position: fixed; top: 4px; left: 4px; translate: 0 -150%; z-index: 5; background: white; padding: 12px; }
.skip-link:focus { translate: none; }
.masthead { color: #fff; background: #111113; border-bottom: 1px solid #343436; }
.masthead-inner { max-width: 1600px; margin: auto; min-height: 78px; padding: 12px clamp(24px, 5vw, 84px); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wordmark { display: inline-flex; align-items: center; text-decoration: none; gap: 13px; font: 800 1.55rem/.95 var(--display); letter-spacing: .035em; }
.kz-mark { transform: skewX(-11deg); display: grid; place-items: center; width: 42px; height: 32px; padding-right: 3px; color: #101011; background: var(--signal); font: 800 1.65rem/.9 var(--display); letter-spacing: -.07em; }
.masthead nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 35px); }
.masthead nav a { font-size: .9rem; font-weight: 600; text-decoration: none; }
.nav-link { padding-block: 10px; color: #d1d0ce; }
.nav-account { padding: 9px 15px; border: 1px solid #676766; border-radius: 3px; }
.nav-link:hover, .nav-account:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); max-width: 1600px; min-height: calc(100svh - 78px); margin: 0 auto; }
.academy { display: flex; flex-direction: column; color: #f5f4ef; background: #131314; min-width: 0; border-right: 1px solid #302f2e; }
.poster { position: relative; isolation: isolate; flex: 1; min-height: 380px; overflow: hidden; display: flex; flex-direction: column; padding: clamp(24px, 3.2vw, 50px) clamp(26px, 5vw, 84px) 15px; background: radial-gradient(ellipse at 60% 72%, #312024, transparent 60%), #171719; }
.poster::before { content: ''; z-index: -1; position: absolute; inset: 0; background: repeating-linear-gradient(114deg, transparent 0 65px, #ffffff04 65px 66px), repeating-linear-gradient(0deg, transparent 0 32px, #ffffff03 32px 33px); }
.poster-heading { position: relative; z-index: 1; align-self: flex-start; font-size: .875rem; font-weight: 550; color: #d4d2d0; }
.poster-heading strong { display: block; color: #f8f7f2; font: 800 clamp(2.5rem, 4.6vw, 5rem)/.98 var(--display); margin-top: 5px; text-transform: uppercase; }
.crest-stage { position: relative; display: grid; place-items: center; flex: 1; min-height: clamp(235px, 34vh, 410px); margin: 0; }
.ring { position: absolute; width: min(92%, 370px); aspect-ratio: 1; border: 1px solid #a7999429; border-radius: 50%; }
.ring::before, .ring::after { content: ''; position: absolute; border-radius: inherit; }
.ring::before { inset: -13px; border: 1px dashed #bcb3ac24; }
.ring::after { inset: 11px; border: 2px solid transparent; border-left-color: #a242396e; border-right-color: #a2423970; transform: rotate(29deg); }
.crest { position: relative; display: block; object-fit: contain; width: clamp(220px, 25vw, 340px); max-width: 88%; height: auto; mix-blend-mode: lighten; }
.stripes { position: absolute; right: 0; bottom: 0; width: clamp(58px, 6.5vw, 106px); height: clamp(32px, 4vw, 62px); background: repeating-linear-gradient(126deg, transparent 0 7px, #9e2d2999 7px 11px); clip-path: polygon(44% 0, 100% 0, 100% 100%, 0 100%); }
.schedule { position: relative; padding: 23px clamp(26px, 5vw, 84px) 27px; background: #161617; border-top: 1px solid #363435; }
.schedule h2 { margin: 0 0 12px; font: 800 clamp(1.35rem, 2vw, 1.8rem)/1.05 var(--display); text-transform: uppercase; letter-spacing: .012em; }
.schedule dl { margin: 0; }
.schedule dl div { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; padding: 12px 0; border-top: 1px solid #373739; }
.schedule dt { color: #dfdddb; font-size: .9rem; }
.schedule dd { margin: 0; white-space: nowrap; font-size: .9375rem; font-variant-numeric: tabular-nums; font-weight: 650; }
.schedule dd span { color: #ff6159; padding-inline: 2px; }
.schedule [role="status"] { margin: 0; font-size: .9375rem; line-height: 1.5; }
#schedule-retry { min-height: 44px; padding: 0; border: 0; background: transparent; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.access { display: flex; align-items: center; justify-content: center; background: var(--paper); padding: clamp(44px, 6vh, 86px) clamp(28px, 5.2vw, 88px); min-width: 0; }
.access-inner { width: min(100%, 415px); }
.accent { width: 48px; height: 5px; background: var(--red); margin-bottom: 18px; }
.access h1 { margin: 0; font: 800 clamp(2.9rem, 4.3vw, 4.6rem)/.99 var(--display); text-transform: uppercase; }
.description, #auth-content > p { color: var(--muted); line-height: 1.5; margin: 12px 0 26px; font-size: 1rem; }
.auth-form { display: grid; gap: 18px; }
.auth-field { min-width: 0; }
.auth-field label { display: inline-block; font-weight: 660; font-size: .9rem; line-height: 1.35; margin-bottom: 7px; }
.input-box { display: flex; background: #fff; border: 1px solid #a5a4a2; border-radius: 3px; overflow: hidden; }
.input-box:focus-within { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 1px; }
.input-box input { color: var(--ink); background: transparent; border: 0; min-width: 0; width: 100%; height: 48px; border-radius: 0; padding: 12px 14px; font-size: 1rem; }
.input-box input::placeholder { color: #737373; }
.input-box input:focus { outline: none; }
.reveal { display: grid; place-items: center; align-self: center; width: 45px; height: 44px; margin-right: 2px; flex: none; background: transparent; color: var(--muted); border: 0; border-radius: 2px; }
.reveal:focus-visible { outline-offset: -4px; }
.reveal svg { width: 21px; height: 21px; }
.field-hint { margin: 5px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.4; }
.recover-link { justify-self: end; margin-top: -7px; }
.text-link { font-size: .9rem; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--red); }
.submit-btn { width: 100%; min-height: 49px; padding: 12px 18px; margin-top: 2px; border: 0; border-radius: 3px; color: #fff; background: var(--red); font-weight: 700; transition: background .16s; }
.submit-btn:hover { background: #a61e1a; }
.submit-btn:disabled { background: #71635f; cursor: progress; }
.auth-footer { margin: 23px 0 0; border-top: 1px solid #d4d1cc; padding-top: 20px; display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 5px 7px; color: var(--muted); font-size: .9rem; }
.auth-footer a, .auth-footer button { color: var(--ink); }
.auth-footer button { border: 0; padding: 3px; background: transparent; }
.message { margin: 0 0 18px; padding: 12px 14px; border-left: 3px solid #30724d; background: #e1efe5; color: #204f34; font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; }
.message.error { border-color: #c12723; background: #fbe6e2; color: #802421; }
.access[data-mode="register"] .auth-form { gap: 13px; }
.access[data-mode="register"] { padding-block: 32px; }
.access[data-mode="register"] .description { margin-bottom: 18px; }
.access[data-mode="register"] .accent { margin-bottom: 12px; }
.access[data-mode="register"] .auth-footer { margin-top: 16px; padding-top: 14px; }
@media (min-width: 1600px) {
  .layout { border-inline: 1px solid #343436; }
}
@media (max-width: 800px) {
  .masthead-inner { min-height: 64px; }
  .layout { min-height: calc(100svh - 64px); grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
  .poster, .schedule { padding-inline: 22px; }
  .access { padding-inline: 24px; }
  .schedule dl div { gap: 4px 12px; }
}
@media (max-width: 650px) {
  .layout { display: flex; flex-direction: column; }
  .masthead-inner { padding-inline: 17px; gap: 8px; }
  .wordmark { font-size: 1.16rem; gap: 8px; }
  .kz-mark { width: 32px; height: 26px; font-size: 1.3rem; }
  .masthead nav { gap: 11px; }
  .masthead nav a { font-size: .85rem; }
  .nav-account { padding: 7px 9px; }
  .access { order: -1; padding: 40px max(23px, 6vw); }
  .access h1 { font-size: clamp(2.8rem, 9vw, 4rem); }
  .academy { flex: 1; border: 0; }
  .poster { flex-direction: row; align-items: center; min-height: 140px; padding: 16px max(23px, 6vw); }
  .poster-heading { align-self: center; }
  .poster-heading strong { font-size: clamp(1.85rem, 7vw, 2.6rem); }
  .crest-stage { min-height: 108px; width: 110px; max-width: 160px; margin-left: auto; }
  .crest { width: 115px; max-width: 88%; }
  .ring { width: 103px; }
  .ring::before { inset: -6px; }
  .ring::after { inset: 4px; border-width: 1px; }
  .stripes { width: 38px; height: 20px; }
  .schedule { padding: 21px max(23px, 6vw); }
  .schedule dl div { padding: 11px 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
