/* =========================================================
   SDU CTF 2026
   Direction: event poster over a real photograph.
   Display: Instrument Serif · Body: Archivo · Data: IBM Plex Mono
   Ink, bone, plum, acid.
   ========================================================= */

:root {
  --ink: #0b0c0e;
  --ink-soft: #101113;
  --ink-card: #131416;
  --bone: #f3f1e8;
  --bone-muted: #b9b8b0;
  --bone-dim: #8f8f87;
  --plum: #b8a2ff;
  --acid: #c9f24f;
  --line: rgba(243, 241, 232, 0.14);
  --line-strong: rgba(243, 241, 232, 0.3);
  --control: #6f7068;

  --shell: 1240px;
  --display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --body: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
em { font-style: italic; }
::selection { background: var(--acid); color: var(--ink); }

a[href],
button,
summary,
label[for] { cursor: pointer; }

button:disabled { cursor: not-allowed; }

:focus-visible {
  outline: 2px solid var(--acid);
  outline-offset: 4px;
}

.shell {
  width: min(var(--shell), calc(100% - 64px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 200;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: var(--acid);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.text-plum { color: var(--plum); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 12, 14, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(11, 12, 14, 0.98);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  flex: 0 0 auto;
}
.brand-name {
  font-family: var(--display);
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand-name > span { color: var(--acid); margin-left: 4px; }
.brand-name sup {
  margin-left: 4px;
  color: var(--bone-dim);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
}
.brand-by {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  color: var(--bone-dim);
  font-size: 11.5px;
}
.brand:hover .brand-name { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > a:not(.nav-cta) {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--bone-muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
}
.main-nav > a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 2px;
  background: var(--acid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.main-nav > a:not(.nav-cta):hover { color: var(--bone); }
.main-nav > a:not(.nav-cta):hover::after,
.main-nav > a.is-active:not(.nav-cta)::after { transform: scaleX(1); }
.main-nav > a.is-active:not(.nav-cta) { color: var(--acid); }
.main-nav > a:not(.nav-cta):active { color: var(--bone); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-left: 16px;
  padding: 10px 16px;
  background: var(--acid);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: #d9ff72; }
.nav-cta:active { background: var(--bone); }

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--control);
  background: transparent;
  transition: border-color 0.2s, color 0.2s;
}
.menu-toggle:hover { border-color: var(--acid); color: var(--acid); }
.menu-toggle:active { background: rgba(243, 241, 232, 0.08); }
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-menu { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:active { background: var(--bone); color: var(--ink); border-color: var(--bone); }

.btn-primary { background: var(--acid); color: var(--ink); }
.btn-primary:hover { background: #d9ff72; }

.btn-ghost { border-color: var(--control); color: var(--bone); }
.btn-ghost:hover { border-color: var(--bone); background: rgba(243, 241, 232, 0.06); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  min-height: 720px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 12, 14, 0.96) 0%, rgba(11, 12, 14, 0.86) 46%, rgba(11, 12, 14, 0.4) 100%),
    linear-gradient(0deg, rgba(11, 12, 14, 0.82) 0%, rgba(11, 12, 14, 0) 58%);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 720px;
  padding: 64px 0 30px;
}
.hero-main {
  margin-block: auto;
  max-width: 800px;
}
.hero-kicker {
  color: var(--bone-muted);
  font-size: 13.5px;
  font-weight: 500;
}
.hero h1 {
  margin: 20px 0 24px;
  font-family: var(--display);
  font-size: clamp(64px, 9vw, 128px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.9;
}
.hero h1 em { color: var(--acid); }
.hero-lead {
  max-width: 470px;
  color: var(--bone-muted);
  font-size: 18px;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .btn-ghost { border-color: rgba(243, 241, 232, 0.52); }
.hero .btn-ghost:hover { border-color: var(--bone); background: rgba(243, 241, 232, 0.1); }

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(243, 241, 232, 0.28);
}
.hero-note {
  color: var(--bone-muted);
  font-size: 13px;
}
.countdown-block { text-align: right; }
.countdown-label {
  margin-bottom: 6px;
  color: var(--bone-muted);
  font-size: 11.5px;
}
.countdown { display: flex; justify-content: flex-end; }
.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 18px;
  border-left: 1px solid rgba(243, 241, 232, 0.24);
}
.countdown-unit:first-child { padding-left: 0; border-left: 0; }
.countdown-unit:last-child { padding-right: 0; }
.countdown-unit strong {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown-unit:first-child strong { color: var(--acid); }
.countdown-unit span {
  color: var(--bone-muted);
  font-size: 10px;
}

/* ---------- Shared section styles ---------- */

.section { padding: 100px 0; }
.format,
.schedule {
  background: var(--ink-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about { padding: 100px 0 92px; }
.format { padding: 96px 0 104px; }
.prizes { padding: 100px 0 96px; }
.schedule { padding: 96px 0 104px; }
.faq { padding: 92px 0 96px; }
.organizers { padding: 88px 0 100px; }

h2 {
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  align-items: end;
  gap: 64px;
}
.section-heading > p {
  max-width: 400px;
  padding-bottom: 6px;
  color: var(--bone-muted);
  font-size: 16px;
  line-height: 1.75;
}

/* ---------- About ---------- */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 80px;
}
.about-copy .lead {
  color: var(--bone);
  font-size: 19.5px;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: -0.005em;
}
.about-copy p + p { margin-top: 18px; }
.about-copy > p:not(.lead):not(.signature) {
  color: var(--bone-muted);
  font-size: 16px;
  line-height: 1.8;
}
.signature {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--bone-dim);
  font-size: 13px;
}
.signature strong { color: var(--bone); font-weight: 500; }

.event-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  margin-top: 64px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.event-strip dl { display: grid; grid-template-columns: repeat(4, 1fr); }
.event-strip dl > div {
  padding: 22px 24px;
  border-left: 1px solid var(--line);
}
.event-strip dl > div:first-child { padding-left: 0; border-left: 0; }
.event-strip dt {
  color: var(--bone-dim);
  font-size: 12px;
}
.event-strip dd { margin-top: 5px; font-size: 14px; font-weight: 600; line-height: 1.5; }

/* ---------- Format ---------- */

.format-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: 80px;
}
.format-head { position: sticky; top: 120px; }
.format-lede {
  max-width: 420px;
  margin-top: 22px;
  color: var(--bone-muted);
  font-size: 17px;
  line-height: 1.8;
}

.format-list { border-bottom: 1px solid var(--line-strong); }
.format-note {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 22px;
  padding: 25px 0;
  border-top: 1px solid var(--line-strong);
}
.note-index {
  padding-top: 5px;
  font-family: var(--display);
  font-style: italic;
  font-size: 23px;
  line-height: 1;
  color: var(--bone-dim);
}
.format-note h3 {
  font-family: var(--display);
  font-size: clamp(24px, 2.3vw, 31px);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
}
.format-note p {
  max-width: 470px;
  margin-top: 10px;
  color: var(--bone-muted);
  font-size: 15.5px;
  line-height: 1.75;
}

/* ---------- Prizes ---------- */

.prize-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: 64px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--line-strong);
}
.prize-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.prize-text { display: flex; flex-direction: column; align-items: flex-start; }
.prize-place {
  color: var(--acid);
  font-size: 12.5px;
  font-weight: 600;
}
.prize-text h3 {
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.prize-text p {
  max-width: 420px;
  margin-top: 14px;
  color: var(--bone-muted);
  font-size: 16px;
  line-height: 1.75;
}
.prize-sub {
  margin-top: 26px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--bone-dim);
  font-size: 12px;
}
.prize-second {
  display: grid;
  grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 64px;
  margin-top: 52px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.prize-logo { display: grid; place-items: center; padding: 20px 0; background: var(--ink-soft); }
.prize-logo img { width: auto; max-width: 220px; max-height: 140px; object-fit: contain; }
.note {
  margin-top: 32px;
  color: var(--bone-dim);
  font-size: 12px;
  line-height: 1.7;
}

/* ---------- Schedule ---------- */

.date-chip {
  justify-self: start;
  padding-top: 10px;
  border-top: 1px solid var(--line-strong);
}
.date-chip span {
  display: block;
  color: var(--bone-dim);
  font-size: 12px;
}
.date-chip strong {
  display: block;
  margin-top: 7px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1;
}
.date-chip small {
  display: block;
  margin-top: 8px;
  color: var(--bone-muted);
  font-size: 12px;
}

.timeline { margin-top: 52px; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.timeline-item {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 40px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.timeline-time {
  padding-top: 1px;
  font-family: var(--mono);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.5;
}
.timeline-time small { display: block; color: var(--bone-dim); font-size: 11.5px; }
.timeline-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.timeline-title h3 { font-size: 18.5px; font-weight: 600; letter-spacing: -0.015em; }
.timeline-main p { margin-top: 7px; max-width: 660px; color: var(--bone-muted); font-size: 15.5px; line-height: 1.7; }
.tag {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  color: var(--bone-muted);
  font-size: 11px;
}
.tag-accent { border-color: var(--acid); background: var(--acid); color: var(--ink); font-weight: 600; }
.timeline-highlight { background: rgba(201, 242, 79, 0.055); }

/* ---------- FAQ ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
  gap: 80px;
}
.faq-intro { position: sticky; top: 116px; }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  padding: 22px 2px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  list-style: none;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex: 0 0 auto;
  color: var(--bone-muted);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
.faq-item summary:hover { color: var(--acid); text-decoration: underline; text-underline-offset: 5px; }
.faq-item summary:hover::after { color: var(--acid); }
.faq-item summary:active { color: var(--bone); }
.faq-item[open] summary { color: var(--acid); }
.faq-item[open] summary::after { content: '-'; color: var(--acid); }
.faq-item p {
  max-width: 620px;
  padding: 0 2px 24px;
  color: var(--bone-muted);
  font-size: 15.5px;
  line-height: 1.8;
}
.faq-item a {
  color: var(--acid);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-item a:hover { color: var(--bone); }


/* ---------- Organizers ---------- */

.organizers-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 80px;
}
.organizers-copy > p {
  margin-top: 20px;
  max-width: 400px;
  color: var(--bone-muted);
  font-size: 16px;
  line-height: 1.8;
}
.logo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.logo-item {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}
.logo-mark { display: flex; align-items: center; min-height: 62px; }
.logo-item img { width: auto; height: 62px; max-width: 170px; object-fit: contain; }
.logo-wordmark {
  font-family: var(--display);
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--bone);
}
.logo-item figcaption { display: grid; gap: 4px; color: var(--bone-dim); font-size: 12px; }
.logo-item figcaption strong { color: var(--bone); font-size: 13px; font-weight: 500; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 40px;
  padding: 40px 0 34px;
}
.footer-brand .brand { min-height: 44px; }
.footer-brand .brand-name { font-size: 22px; }
.footer-brand > p {
  margin-top: 8px;
  color: var(--bone-dim);
  font-size: 12px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 2px;
  color: var(--bone-muted);
  font-size: 14px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--acid); text-decoration: underline; text-underline-offset: 4px; }
.footer-links a:active { color: var(--bone); }
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  color: var(--bone-dim);
  font-size: 12px;
  text-align: right;
}
.footer-meta a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--bone);
}
.footer-meta a:hover { color: var(--acid); text-decoration: underline; text-underline-offset: 4px; }
.footer-meta a:active { color: var(--acid); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--bone-dim);
  font-size: 11.5px;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  max-width: calc(100% - 40px);
  padding: 13px 18px;
  border: 1px solid var(--acid);
  background: var(--ink-card);
  color: var(--bone);
  font-size: 13.5px;
  line-height: 1.5;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.js .hero .hero-kicker { animation: riseIn 0.6s 0.05s both; }
.js .hero h1 { animation: riseIn 0.7s 0.15s both; }
.js .hero-lead { animation: riseIn 0.65s 0.3s both; }
.js .hero-actions { animation: riseIn 0.65s 0.4s both; }
.js .hero-foot { animation: riseIn 0.65s 0.5s both; }

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .about-layout { gap: 56px; }
  .format-head { gap: 44px; }
  .section-heading { gap: 44px; }
  .faq-layout { gap: 56px; }
  .organizers-layout { gap: 56px; }
  .hero h1 { font-size: clamp(60px, 8.8vw, 110px); }
}

@media (max-width: 960px) {
  .shell { width: calc(100% - 48px); }
  .header-inner { min-height: 70px; }
  .menu-toggle { display: grid; }
  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 22px;
    border: 1px solid var(--line);
    background: var(--ink-soft);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav > a:not(.nav-cta) {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 2px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .main-nav > a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin: 18px 0 0; padding: 14px 16px; font-size: 14px; }

  .hero { min-height: 640px; }
  .hero-content { min-height: 640px; padding: 52px 0 26px; }
  .hero h1 { font-size: clamp(56px, 10vw, 92px); }
  .hero-bg { object-position: 64% center; }
  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(11, 12, 14, 0.96) 0%, rgba(11, 12, 14, 0.88) 55%, rgba(11, 12, 14, 0.55) 100%),
      linear-gradient(0deg, rgba(11, 12, 14, 0.84) 0%, rgba(11, 12, 14, 0) 58%);
  }

  .about-layout { grid-template-columns: 1fr; gap: 32px; }
  .event-strip { grid-template-columns: 1fr; gap: 0; }
  .event-strip .btn { margin-bottom: 22px; }

  .format-grid { grid-template-columns: 1fr; gap: 38px; }
  .format-head { position: static; }
  .format-lede { max-width: 540px; }

  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .section-heading > p { max-width: 540px; }

  .prize-lead { grid-template-columns: 1fr; gap: 28px; }
  .prize-text { max-width: 560px; }
  .prize-second { grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: 36px; }

  .faq-layout { grid-template-columns: 1fr; gap: 36px; }
  .faq-intro { position: static; }


  .organizers-layout { grid-template-columns: 1fr; gap: 36px; }
  .logo-row { max-width: 560px; }

  .footer-inner { grid-template-columns: 1fr auto; }
  .footer-meta { grid-column: 1 / -1; align-items: flex-start; text-align: left; flex-direction: row; justify-content: space-between; gap: 16px; }
}

@media (max-width: 760px) {
  .shell { width: calc(100% - 40px); }
  .hero { min-height: 0; }
  .hero-content { min-height: 0; padding: 44px 0 24px; }
  .hero-main { margin: 52px 0 56px; }
  .hero h1 { font-size: clamp(52px, 14vw, 84px); }
  .hero-lead { max-width: 440px; font-size: 17px; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(11, 12, 14, 0.93) 0%, rgba(11, 12, 14, 0.87) 52%, rgba(11, 12, 14, 0.95) 100%);
  }
  .hero-bg { object-position: 62% center; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 20px; }
  .countdown-block { text-align: left; }
  .countdown { justify-content: flex-start; }
  .countdown-unit { padding: 0 16px; }
  .countdown-unit:first-child { padding-left: 0; }

  .section,
  .about,
  .format,
  .prizes,
  .schedule,
  .faq,
  .organizers { padding: 72px 0; }
  h2 { font-size: clamp(34px, 9.5vw, 48px); }

  .event-strip dl { grid-template-columns: 1fr 1fr; }
  .event-strip dl > div { padding: 18px 18px; }
  .event-strip dl > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .event-strip dl > div:nth-child(n + 3) { border-top: 1px solid var(--line); }

  .format-note { grid-template-columns: 38px minmax(0, 1fr); gap: 16px; }
  .format-note p { max-width: none; }

  .prize-second { grid-template-columns: 1fr; gap: 24px; }
  .prize-logo { padding: 24px; }
  .prize-logo img { max-height: 110px; }

  .timeline-item { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .timeline-time { display: flex; align-items: baseline; gap: 7px; font-size: 16px; }
  .timeline-time small { font-size: 11.5px; }
  .timeline-title { align-items: flex-start; }
  .timeline-title h3 { font-size: 17.5px; }

  .faq-item summary { font-size: 16.5px; }


  .logo-row { grid-template-columns: 1fr; gap: 24px; max-width: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; padding: 34px 0 28px; }
  .footer-meta { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 5px; }
}

@media (max-width: 520px) {
  .shell { width: calc(100% - 32px); }
  .brand-by { display: none; }
  .brand-name { font-size: 22px; }
  .hero h1 { font-size: clamp(46px, 15vw, 66px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-kicker { font-size: 12.5px; }
  .countdown-unit { padding: 0 13px; }
  .countdown-unit strong { font-size: 21px; }
  .countdown-unit span { font-size: 9.5px; }
  .event-strip dl { grid-template-columns: 1fr; }
  .event-strip dl > div { padding: 14px 0; border-left: 0; }
  .event-strip dl > div + div { border-top: 1px solid var(--line); }
  .event-strip dl > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .prize-text h3 { font-size: 30px; }
  .footer-links { gap: 0 14px; }
  .toast { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Registration page ---------- */

.nav-cta[aria-current="page"] { background: var(--bone); }
.nav-cta[aria-current="page"]:hover { background: var(--acid); }

.register-hero {
  background: var(--acid);
  color: var(--ink);
}
.register-hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 62px 0 52px;
}
.register-kicker {
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}
.register-hero h1 {
  margin: 16px 0 18px;
  font-family: var(--display);
  font-size: clamp(54px, 7vw, 98px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 0.9;
}
.register-hero h1 em { color: var(--ink); }
.register-lede {
  max-width: 560px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
}
.register-hero-date {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(46px, 5.5vw, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.register-hero-date span {
  margin: 0 6px;
  font-family: var(--body);
  font-size: 0.38em;
  vertical-align: middle;
}

.register-section { padding: 78px 0 100px; }
.register-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: 80px;
}
.register-aside { position: sticky; top: 112px; }
.register-aside h2 {
  font-family: var(--display);
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.02;
}.register-facts {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}
.register-facts dt { color: var(--bone-dim); font-size: 11.5px; }
.register-facts dd { margin-top: 3px; color: var(--bone); font-size: 14px; font-weight: 600; }
.register-note {
  max-width: 300px;
  margin-top: 28px;
  color: var(--bone-dim);
  font-size: 12px;
  line-height: 1.7;
}
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 18px;
  color: var(--bone);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--control);
}
.back-link:hover { color: var(--acid); text-decoration-color: var(--acid); }
.back-link:active { color: var(--bone); }

.register-main { min-width: 0; }
.register-form { display: grid; gap: 40px; }

.team-name-field label,
.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--bone-muted);
  font-size: 12.5px;
  font-weight: 500;
}
.team-name-field input,
.field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--control);
  border-radius: 0;
  background: var(--ink-soft);
  color: var(--bone);
  font-family: var(--body);
  font-size: 15.5px;
  transition: border-color 0.2s, background 0.2s;
}
.team-name-field input { min-height: 58px; font-size: 20px; }
.team-name-field input:hover,
.field input:hover { border-color: var(--bone-muted); }
.team-name-field input:focus,
.field input:focus { border-color: var(--acid); }
.team-name-field input:user-invalid,
.field input:user-invalid { border-color: var(--plum); }
.team-name-field input:-webkit-autofill,
.field input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 40px var(--ink-soft) inset;
  -webkit-text-fill-color: var(--bone);
  caret-color: var(--bone);
}

.player-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}
.player-fieldset legend {
  display: flex;
  align-items: baseline;
  gap: 14px;
  width: 100%;
  margin-bottom: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
  font-family: var(--display);
  font-size: 30px;
  line-height: 1;
}
.player-number { color: var(--bone-dim); font-size: 18px; font-style: italic; }
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 24px;
}

.participation-field {
  display: grid;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--bone-muted);
  font-size: 15px;
  line-height: 1.6;
  cursor: pointer;
}
.check input {
  display: grid;
  flex: none;
  place-content: center;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  border: 1px solid var(--control);
  border-radius: 0;
  background: var(--ink-soft);
  appearance: none;
  transition: border-color 0.2s, background 0.2s;
}
.check input::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--acid);
  transform: scale(0);
  transition: transform 0.15s;
}
.check input:checked { border-color: var(--acid); }
.check input:checked::before { transform: scale(1); }
.check input:focus-visible { outline: 2px solid var(--acid); outline-offset: 2px; }
.check input:user-invalid { border-color: var(--plum); }
.check-note { max-width: 540px; color: var(--bone-dim); font-size: 12px; line-height: 1.6; }

.form-submit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}
.form-hint { color: var(--bone-dim); font-size: 12px; }
.form-message {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--plum);
  background: rgba(184, 162, 255, 0.08);
  color: var(--bone);
  font-size: 14px;
  line-height: 1.6;
}
.noscript-note {
  padding: 14px;
  border: 1px solid var(--line-strong);
  color: var(--bone-muted);
  font-size: 14px;
}
.register-success h2 {
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.02;
}
.register-success p {
  max-width: 480px;
  margin-top: 16px;
  color: var(--bone-muted);
  font-size: 16px;
  line-height: 1.75;
}
.register-success .btn { margin-top: 26px; }
.register-success:focus { outline: 2px solid var(--acid); outline-offset: 8px; }

@media (max-width: 960px) {
  .register-hero-inner { padding: 48px 0 44px; }
  .register-layout { grid-template-columns: 1fr; gap: 42px; }
  .register-aside { position: static; max-width: 560px; }
  .register-section { padding: 56px 0 84px; }
}

@media (max-width: 760px) {
  .register-hero-date { display: none; }
  .register-hero h1 { font-size: clamp(46px, 12vw, 66px); }
  .register-hero-inner { padding: 40px 0 38px; }
  .register-lede { font-size: 16px; }
  .field-grid { grid-template-columns: 1fr; }
  .player-fieldset legend { font-size: 26px; }
  .form-submit { grid-template-columns: 1fr; }
  .form-submit .btn { width: 100%; }
}

@media (max-width: 520px) {
  .register-hero h1 { font-size: clamp(40px, 13vw, 54px); }
  .register-section { padding: 46px 0 72px; }
  .register-form { gap: 34px; }
  .team-name-field input { font-size: 18px; }
}

.btn:disabled,
.btn:disabled:hover {
  background: #2a2b28;
  border-color: #4a4b46;
  color: var(--bone-muted);
  cursor: not-allowed;
}

/* ---------- 404 ---------- */

.error-page { padding: 78px 0 96px; }
.error-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 72px;
  min-height: 54vh;
}
.error-code {
  color: var(--acid);
  font-family: var(--display);
  font-size: clamp(120px, 17vw, 250px);
  line-height: 0.75;
  letter-spacing: -0.06em;
}
.error-kicker { color: var(--bone-dim); font-size: 12px; }
.error-copy h1 {
  margin-top: 14px;
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}
.error-copy p {
  max-width: 460px;
  margin-top: 20px;
  color: var(--bone-muted);
  font-size: 16.5px;
  line-height: 1.75;
}
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

@media (max-width: 960px) {
  .error-inner { grid-template-columns: 1fr; gap: 28px; min-height: 0; }
  .error-code { font-size: clamp(110px, 30vw, 190px); }
  .error-page { padding: 56px 0 76px; }
}

@media (max-width: 520px) {
  .error-actions { flex-direction: column; align-items: stretch; }
  .error-actions .btn { width: 100%; }
}
