/* =========================================================
   ALSC — Apex Legends SSPU Cup
   Visual system / three-page tournament site
   ========================================================= */

:root {
  --ink: #06080c;
  --ink-soft: #090d13;
  --panel: #0b1017;
  --panel-raised: #111721;
  --bone: #f2efe7;
  --bone-dim: #cfc9bd;
  --muted: #8c949f;
  --muted-dim: #626a75;
  --red: #e3262e;
  --red-bright: #ff4b50;
  --red-deep: #9f0a12;
  --signal: #b6ff6a;
  --line: rgba(242, 239, 231, 0.13);
  --line-soft: rgba(242, 239, 231, 0.07);
  --display: "Bahnschrift", "DIN Alternate", "Arial Narrow", "Microsoft YaHei UI", sans-serif;
  --sans: "Bahnschrift", "Segoe UI Variable", "Microsoft YaHei UI", "Noto Sans SC", sans-serif;
  --mono: "Cascadia Mono", "IBM Plex Mono", Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.18, 1);
  --header-h: 92px;
  --gutter: clamp(22px, 5vw, 76px);
}

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

html {
  background: var(--ink);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: var(--red);
  color: #fff;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 500;
  padding: 10px 16px;
  background: var(--bone);
  color: var(--ink);
  font-size: 0.8rem;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Background atmosphere ---------- */

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 62% 70% at 78% 15%, rgba(227, 38, 46, 0.14), transparent 62%),
    radial-gradient(ellipse 48% 55% at 12% 85%, rgba(74, 98, 116, 0.13), transparent 68%),
    linear-gradient(180deg, #080b10 0%, #06080c 52%, #05070a 100%);
}

.site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 3px, rgba(255, 255, 255, 0.013) 3px 4px),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.009) 3px 4px);
  mix-blend-mode: screen;
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, transparent 42%, rgba(0, 0, 0, 0.54) 100%);
}

.bg-grid {
  position: absolute;
  left: -25%;
  right: -25%;
  bottom: -34%;
  height: 78%;
  background-image:
    linear-gradient(rgba(242, 239, 231, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 239, 231, 0.075) 1px, transparent 1px);
  background-size: 72px 72px;
  transform: perspective(620px) rotateX(61deg);
  transform-origin: center bottom;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.22) 50%, transparent 82%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.22) 50%, transparent 82%);
  opacity: 0.66;
}

.bg-beam {
  position: absolute;
  top: -28%;
  left: 63%;
  width: 1px;
  height: 150%;
  background: linear-gradient(180deg, transparent, rgba(227, 38, 46, 0.32) 35%, rgba(227, 38, 46, 0.06) 75%, transparent);
  transform: rotate(29deg);
  box-shadow: 0 0 90px 22px rgba(227, 38, 46, 0.055);
}

.bg-beam--two {
  top: auto;
  bottom: -55%;
  left: 17%;
  height: 100%;
  transform: rotate(-38deg);
  opacity: 0.5;
}

.bg-ghost {
  position: absolute;
  right: -0.08em;
  bottom: -0.24em;
  color: transparent;
  font-family: var(--display);
  font-size: clamp(20rem, 40vw, 44rem);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.72;
  -webkit-text-stroke: 1px rgba(242, 239, 231, 0.038);
  user-select: none;
}

.bg-coord {
  position: fixed;
  left: 18px;
  top: 46%;
  z-index: -1;
  color: rgba(242, 239, 231, 0.2);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.page--rules .bg-ghost {
  bottom: auto;
  top: 14%;
  right: -0.12em;
  opacity: 0.72;
}

.page--register .bg-ghost {
  font-size: clamp(16rem, 31vw, 35rem);
  bottom: 8%;
}

/* ---------- Shared header ---------- */

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding: 22px var(--gutter);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  justify-self: start;
  min-width: 0;
}

.brand__mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.42));
  transition: transform 0.45s var(--ease);
}

.brand:hover .brand__mark {
  transform: rotate(-4deg) scale(1.04);
}

.brand__type {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand__type strong {
  color: var(--bone);
  font-family: var(--display);
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  line-height: 1;
}

.brand__type span {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.48rem;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  gap: 3px;
  padding: 5px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(9, 13, 19, 0.52);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.site-nav a {
  position: relative;
  padding: 8px 17px;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.site-nav a:hover {
  color: var(--bone);
}

.site-nav a.is-active {
  background: rgba(242, 239, 231, 0.09);
  color: var(--bone);
}

.site-nav a.is-active::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px rgba(227, 38, 46, 0.8);
  vertical-align: 1px;
}

.header-status {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line-soft);
  background: rgba(9, 13, 19, 0.4);
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.header-status:hover {
  border-color: rgba(242, 239, 231, 0.28);
  color: var(--bone);
}

.status-dot {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px rgba(182, 255, 106, 0.9);
  animation: statusPulse 2.2s ease-in-out infinite;
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 58px;
  padding: 0 22px 0 28px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  line-height: 1;
  text-align: center;
  transition: transform 0.35s var(--ease), filter 0.35s ease, background-color 0.35s ease, color 0.35s ease;
}

.btn--primary {
  position: relative;
  min-width: 218px;
  overflow: hidden;
  background: linear-gradient(105deg, var(--red) 0%, #c8111a 100%);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  color: #fff;
  box-shadow: 0 18px 42px rgba(227, 38, 46, 0.17);
}

.btn--primary::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -50%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: skewX(-24deg);
  transition: left 0.65s var(--ease);
}

.btn--primary:hover {
  filter: brightness(1.09);
  transform: translateY(-3px);
}

.btn--primary:hover::before {
  left: 120%;
}

.btn--primary:active {
  transform: translateY(-1px);
}

.btn__arrow {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.26);
  font-size: 0.95rem;
  letter-spacing: 0;
  transition: transform 0.3s var(--ease);
}

.btn--primary:hover .btn__arrow {
  transform: translateX(3px);
}

.btn--ghost {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--line);
  background: rgba(9, 13, 19, 0.36);
  color: var(--bone-dim);
  clip-path: none;
}

.btn--ghost:hover {
  border-color: rgba(242, 239, 231, 0.3);
  background: rgba(242, 239, 231, 0.06);
  color: var(--bone);
}

.btn[disabled] {
  cursor: wait;
  filter: saturate(0.4) brightness(0.72);
  transform: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.61rem;
  letter-spacing: 0.19em;
  line-height: 1.4;
  transition: color 0.25s ease;
}

.text-link .text-link__line {
  width: 28px;
  height: 1px;
  background: currentColor;
  transition: width 0.3s var(--ease);
}

.text-link:hover {
  color: var(--bone);
}

.text-link:hover .text-link__line {
  width: 42px;
}

button.text-link {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

/* ---------- Home ---------- */

.page-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.home {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--header-h));
  padding-bottom: 18px;
}

.hero {
  position: relative;
  display: grid;
  flex: 1;
  grid-template-columns: minmax(0, 1.03fr) minmax(390px, 0.97fr);
  gap: clamp(30px, 4vw, 74px);
  align-items: center;
  padding: clamp(22px, 4vh, 50px) 0 clamp(58px, 6.8vh, 78px);
}

.scroll-cue {
  position: absolute;
  bottom: -20px;
  left: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 2px;
  color: rgba(242, 239, 231, 0.4);
  font-family: var(--display);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
  transition: color 0.2s ease;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  color: rgba(242, 239, 231, 0.68);
}

.scroll-cue__line {
  width: 30px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.scroll-cue__arrow {
  color: var(--red-bright);
  font-size: 0.72rem;
  line-height: 1;
  opacity: 0.55;
  animation: scrollCueBounce 2.4s ease-in-out infinite;
}

@keyframes scrollCueBounce {
  0%,
  100% {
    opacity: 0.42;
    transform: translateY(-1px);
  }

  50% {
    opacity: 0.82;
    transform: translateY(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue__arrow {
    animation: none;
  }
}

.hero__copy {
  position: relative;
  z-index: 2;
  padding: 10px 0;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--bone-dim);
  font-family: var(--display);
  font-size: 0.56rem;
  letter-spacing: 0.25em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow__line {
  width: 42px;
  height: 1px;
  flex: 0 0 auto;
  background: var(--red);
  box-shadow: 0 0 12px rgba(227, 38, 46, 0.55);
}

.eyebrow__tag {
  margin-left: 7px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.51rem;
  letter-spacing: 0.16em;
}

.hero__title {
  margin-top: clamp(22px, 3.2vh, 34px);
  color: var(--bone);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.8;
  text-transform: uppercase;
}

.title__kicker {
  display: block;
  margin-bottom: clamp(12px, 2vh, 20px);
  color: var(--muted);
  font-size: clamp(1rem, 2.15vw, 1.72rem);
  font-weight: 500;
  letter-spacing: 0.32em;
  line-height: 1;
}

.title__main {
  display: block;
  font-size: clamp(4.4rem, 9.5vw, 9.5rem);
  line-height: 0.8;
  white-space: nowrap;
}

.title__main em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1.5px var(--red);
  text-shadow: 0 0 34px rgba(227, 38, 46, 0.16);
}

.hero__identity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(22px, 3vh, 34px);
}

.hero__badge {
  padding: 8px 11px;
  border: 1px solid rgba(227, 38, 46, 0.7);
  background: rgba(227, 38, 46, 0.075);
  color: var(--red-bright);
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.23em;
  line-height: 1;
}

.hero__subtitle {
  color: var(--bone);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1.6;
}

.hero__lede {
  max-width: 520px;
  margin-top: clamp(16px, 2.2vh, 24px);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.025em;
  line-height: 1.9;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
  margin-top: clamp(25px, 3.6vh, 38px);
}

.hero__meta {
  display: flex;
  max-width: 610px;
  margin-top: clamp(30px, 4.8vh, 50px);
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.meta-item {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 16px;
  border-left: 1px solid var(--line-soft);
}

.meta-item:first-child {
  padding-left: 0;
  border-left: 0;
}

.meta-item dt {
  overflow: hidden;
  color: var(--muted-dim);
  font-family: var(--display);
  font-size: 0.49rem;
  letter-spacing: 0.21em;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-item dd {
  overflow: hidden;
  margin-top: 4px;
  color: var(--bone-dim);
  font-size: 0.76rem;
  letter-spacing: 0.035em;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Home visual */

.hero__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(68vh, 670px);
  padding: 6px 0;
}

.visual__index {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  color: var(--muted-dim);
  font-family: var(--display);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
}

.visual__index strong {
  color: var(--red-bright);
  font-weight: 500;
}

.visual__stage {
  position: relative;
  display: grid;
  width: min(100%, 600px);
  aspect-ratio: 1;
  margin: auto;
  place-items: center;
}

.visual__stage::before {
  content: "";
  position: absolute;
  width: 88%;
  height: 88%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 38, 46, 0.13) 0%, rgba(227, 38, 46, 0.03) 42%, transparent 67%);
  filter: blur(12px);
}

.stage__ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.stage__ring--outer {
  inset: 3%;
  border: 1px dashed rgba(242, 239, 231, 0.16);
  animation: orbit 70s linear infinite;
}

.stage__ring--outer::before,
.stage__ring--outer::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px rgba(227, 38, 46, 0.85);
}

.stage__ring--outer::before {
  top: 17%;
  left: 9.5%;
  width: 5px;
  height: 5px;
}

.stage__ring--outer::after {
  right: 12%;
  bottom: 14%;
  width: 3px;
  height: 3px;
  opacity: 0.75;
}

.stage__ring--inner {
  inset: 13.5%;
  border: 1px solid rgba(242, 239, 231, 0.085);
}

.stage__ring--inner::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid transparent;
  border-top-color: rgba(227, 38, 46, 0.72);
  border-right-color: rgba(227, 38, 46, 0.2);
  border-radius: 50%;
  transform: rotate(-34deg);
}

.stage__ring--inner::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -5px;
  width: 9px;
  height: 1px;
  background: rgba(242, 239, 231, 0.42);
  box-shadow: calc(100% + 370px) 0 0 rgba(242, 239, 231, 0.42);
}

.stage__cross {
  position: absolute;
  background: rgba(242, 239, 231, 0.12);
}

.stage__cross--h {
  top: 50%;
  left: 1%;
  width: 98%;
  height: 1px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

.stage__cross--v {
  top: 1%;
  left: 50%;
  width: 1px;
  height: 98%;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}

.stage__logo-wrap {
  position: relative;
  z-index: 2;
  width: 64%;
  filter: drop-shadow(0 32px 55px rgba(0, 0, 0, 0.66)) drop-shadow(0 0 40px rgba(227, 38, 46, 0.09));
  animation: floatLogo 7s ease-in-out infinite;
}

.stage__logo-wrap::before {
  content: "";
  position: absolute;
  inset: 18%;
  z-index: -1;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.2;
  filter: blur(55px);
}

.stage__logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.stage__chip {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  background: rgba(8, 12, 18, 0.78);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.stage__chip span {
  color: var(--muted-dim);
  font-family: var(--display);
  font-size: 0.44rem;
  letter-spacing: 0.2em;
  line-height: 1.2;
}

.stage__chip strong {
  color: var(--bone);
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.2;
}

.stage__chip--a {
  top: 14%;
  left: 2%;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  border-left: 2px solid var(--red);
  white-space: nowrap;
}

.stage__chip--a span {
  font-size: 0.64rem;
}

.stage__chip--a strong {
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.stage__chip--b {
  right: 3%;
  bottom: 17%;
  align-items: flex-end;
  border-right: 2px solid var(--red);
  text-align: right;
}

.stage__chip--b strong {
  color: var(--signal);
  text-shadow: 0 0 14px rgba(182, 255, 106, 0.28);
}

.visual__caption {
  display: flex;
  justify-content: space-between;
  width: min(100%, 600px);
  margin: 2px auto 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-dim);
  font-family: var(--display);
  font-size: 0.47rem;
  letter-spacing: 0.22em;
  line-height: 1.5;
}

.visual__caption span:last-child {
  color: var(--muted);
}

/* Home footer ticker */

.home-footer {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 0 2px;
  border-top: 1px solid var(--line);
  color: var(--muted-dim);
  font-family: var(--display);
  font-size: 0.48rem;
  letter-spacing: 0.18em;
  line-height: 1.4;
}

.home-footer__stamp {
  flex: 0 0 auto;
  color: var(--muted);
}

.home-footer__stamp strong {
  color: var(--red-bright);
  font-weight: 500;
}

.ticker {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.ticker__track {
  display: flex;
  width: max-content;
  gap: 34px;
  animation: ticker 32s linear infinite;
}

.ticker__track span {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  white-space: nowrap;
}

.ticker__track span::after {
  content: "/";
  color: var(--red);
}

.home-footer__scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.home-footer__scroll::before {
  content: "";
  width: 1px;
  height: 14px;
  background: var(--red);
}

/* ---------- Shared subpage layout ---------- */

.subpage {
  padding-top: clamp(20px, 3.8vh, 46px);
  padding-bottom: 36px;
  animation: pageRise 0.75s var(--ease) both;
}

.section-index {
  display: flex;
  align-items: baseline;
  gap: 13px;
  color: var(--muted-dim);
  font-family: var(--display);
  font-size: 0.54rem;
  letter-spacing: 0.24em;
  line-height: 1.4;
}

.section-index strong {
  color: var(--red-bright);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.section-index .section-index__rule {
  width: 38px;
  height: 1px;
  align-self: center;
  background: var(--line);
}

.page-title {
  margin-top: 15px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.92;
}

.page-title em {
  color: var(--red);
  font-style: normal;
}

.page-title__zh {
  margin-top: 15px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  line-height: 1.7;
}

/* ---------- Rules page ---------- */

.rules-wrap {
  width: min(100%, 1130px);
  margin: 0 auto;
}

.rules-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: clamp(20px, 3.2vh, 32px);
  border-bottom: 1px solid var(--line);
}

.rules-head .page-title {
  font-size: clamp(3.2rem, 6.6vw, 6.2rem);
}

.rules-head .page-title em {
  -webkit-text-stroke: 1px var(--red);
  color: transparent;
}

.rules-head__aside {
  display: flex;
  align-items: flex-end;
  gap: 25px;
  padding-bottom: 4px;
}

.rules-head__note {
  max-width: 210px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  line-height: 1.85;
  text-align: right;
}

.rules-head__code {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 19px;
  border-left: 1px solid var(--line);
  font-family: var(--display);
  font-size: 0.47rem;
  letter-spacing: 0.18em;
  line-height: 1.5;
  white-space: nowrap;
}

.rules-head__code span {
  color: var(--muted-dim);
}

.rules-head__code strong {
  color: var(--bone-dim);
  font-weight: 500;
}

.rule-panel {
  position: relative;
  margin-top: clamp(22px, 3.4vh, 36px);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(16, 22, 31, 0.92), rgba(7, 11, 16, 0.94));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.rule-panel::before,
.rule-panel::after {
  content: "";
  position: absolute;
  z-index: 3;
  width: 13px;
  height: 13px;
  pointer-events: none;
}

.rule-panel::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--red);
  border-left: 1px solid var(--red);
}

.rule-panel::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid var(--red);
  border-bottom: 1px solid var(--red);
}

.rule-panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-dim);
  font-family: var(--display);
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  line-height: 1.5;
}

.rule-panel__bar-group {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.rule-panel__bar strong {
  color: var(--bone-dim);
  font-weight: 500;
}

.rule-panel__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--red-bright);
  white-space: nowrap;
}

.rule-panel__live::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px rgba(227, 38, 46, 0.85);
}

.rules-scroll {
  position: relative;
  height: clamp(290px, 43vh, 440px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--red) rgba(242, 239, 231, 0.055);
  scrollbar-width: thin;
  background:
    linear-gradient(90deg, rgba(227, 38, 46, 0.04), transparent 16%, transparent 84%, rgba(227, 38, 46, 0.025)),
    rgba(5, 8, 12, 0.32);
}

.rules-scroll::-webkit-scrollbar {
  width: 7px;
}

.rules-scroll::-webkit-scrollbar-track {
  background: rgba(242, 239, 231, 0.045);
}

.rules-scroll::-webkit-scrollbar-thumb {
  border: 2px solid var(--panel);
  background: var(--red);
}

.rules-scroll__inner {
  min-height: 920px;
  padding: 30px clamp(23px, 4.6vw, 55px) 80px;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 47px,
    rgba(242, 239, 231, 0.036) 47px,
    rgba(242, 239, 231, 0.036) 48px
  );
}

.rules-doc {
  display: grid;
  gap: 28px;
  width: min(100%, 900px);
  margin: 0 auto;
}

.rules-doc__intro {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.rules-doc__kicker {
  margin-bottom: 10px;
  color: var(--red-bright);
  font-family: var(--display);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  line-height: 1.5;
}

.rules-doc__title {
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-transform: uppercase;
}

.rules-doc__title em {
  color: var(--red-bright);
  font-style: normal;
}

.rules-doc__lede {
  max-width: 68ch;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  line-height: 1.9;
}

.rules-section {
  display: grid;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.rules-doc__intro + .rules-section {
  padding-top: 0;
  border-top: 0;
}

.rules-section__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}

.rules-section__num {
  color: var(--red);
  font-family: var(--display);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
}

.rules-section__head h3 {
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
}

.rules-section__en {
  margin-left: auto;
  color: var(--muted-dim);
  font-family: var(--display);
  font-size: 0.44rem;
  letter-spacing: 0.18em;
  line-height: 1.4;
  white-space: nowrap;
}

.rules-section__body {
  color: var(--bone-dim);
  font-size: 0.8rem;
  letter-spacing: 0.015em;
  line-height: 1.95;
}

.rules-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rules-list li {
  position: relative;
  padding-left: 17px;
}

.rules-list li::before {
  content: "";
  position: absolute;
  top: 0.82em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--red);
  box-shadow: 0 0 8px rgba(227, 38, 46, 0.5);
}

.rules-list strong {
  color: var(--bone);
  font-weight: 600;
}

.rules-note {
  margin-top: 13px;
  padding: 10px 13px;
  border-left: 2px solid var(--red);
  background: rgba(227, 38, 46, 0.055);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  line-height: 1.8;
}

.rules-schedule {
  border: 1px solid var(--line-soft);
  background: rgba(5, 8, 12, 0.3);
}

.rules-schedule__row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 16px;
  padding: 9px 13px;
  border-top: 1px solid var(--line-soft);
}

.rules-schedule__row:first-child {
  border-top: 0;
}

.rules-schedule__row span {
  color: var(--muted-dim);
  font-family: var(--display);
  font-size: 0.48rem;
  letter-spacing: 0.15em;
  line-height: 1.9;
}

.rules-schedule__row strong {
  color: var(--bone);
  font-weight: 400;
  line-height: 1.9;
}

.rules-points {
  margin-top: 18px;
  border: 1px solid var(--line-soft);
  background: rgba(5, 8, 12, 0.3);
}

.rules-points__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 13px;
  border-bottom: 1px solid var(--line-soft);
}

.rules-points__head span {
  color: var(--bone);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.rules-points__head small {
  color: var(--muted-dim);
  font-family: var(--display);
  font-size: 0.44rem;
  letter-spacing: 0.14em;
}

.rules-points__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line-soft);
}

.rules-points__grid li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  padding: 7px 9px;
  background: rgba(9, 13, 19, 0.97);
}

.rules-points__grid span {
  color: var(--muted-dim);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.06em;
}

.rules-points__grid strong {
  color: var(--bone);
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 500;
}

.rules-points__grid li:first-child strong {
  color: var(--red-bright);
}

.rules-doc__end {
  padding-top: 8px;
  color: var(--muted-dim);
  font-family: var(--display);
  font-size: 0.46rem;
  letter-spacing: 0.18em;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 700px) {
  .rules-doc {
    gap: 24px;
  }

  .rules-doc__title {
    font-size: 1.5rem;
  }

  .rules-section__head {
    flex-wrap: wrap;
    gap: 8px 10px;
  }

  .rules-section__en {
    width: 100%;
    margin-left: 0;
  }

  .rules-section__body {
    font-size: 0.78rem;
    line-height: 1.9;
  }

  .rules-schedule__row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .rules-points__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rules-points__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .rules-list li {
    padding-left: 15px;
  }
}

.rules-placeholder {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--bone);
  font-family: var(--mono);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.rules-placeholder::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  background: var(--red);
  box-shadow: 0 0 10px rgba(227, 38, 46, 0.55);
}

.typing-cursor {
  display: inline-block;
  width: 1px;
  height: 1.15em;
  margin-left: 3px;
  background: var(--red-bright);
  animation: blink 1.1s step-end infinite;
}

.rule-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
  padding: 9px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-dim);
  font-family: var(--display);
  font-size: 0.48rem;
  letter-spacing: 0.18em;
  line-height: 1.5;
}

.scroll-meter {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.scroll-meter__track {
  width: 116px;
  height: 2px;
  overflow: hidden;
  background: rgba(242, 239, 231, 0.1);
}

.scroll-meter__fill {
  width: 0;
  height: 100%;
  background: var(--red);
  transition: width 0.16s linear;
}

.rules-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.rules-actions__back {
  color: var(--muted);
}

.rules-actions__next {
  display: flex;
  align-items: center;
  gap: 20px;
}

.rules-actions__hint {
  color: var(--muted-dim);
  font-family: var(--display);
  font-size: 0.49rem;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-align: right;
}

/* ---------- Register page ---------- */

.register-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(460px, 1.26fr);
  gap: clamp(42px, 7vw, 112px);
  align-items: start;
  width: min(100%, 1240px);
  margin: clamp(18px, 3.2vh, 34px) auto 0;
}

.register-intro {
  position: sticky;
  top: 36px;
  padding-top: 7px;
}

.register-intro .page-title {
  font-size: clamp(3rem, 5.4vw, 5.1rem);
}

.register-intro .page-title em {
  -webkit-text-stroke: 1px var(--red);
  color: transparent;
}

.register-intro__lede {
  max-width: 330px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.035em;
  line-height: 1.95;
}

.step-list {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 11px;
  align-items: center;
  min-height: 52px;
  padding: 9px 0;
  color: var(--muted-dim);
  font-family: var(--display);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  line-height: 1.4;
}

.step-list li::before {
  content: "";
  position: absolute;
  top: 37px;
  bottom: -15px;
  left: 11px;
  width: 1px;
  background: var(--line);
}

.step-list li:last-child::before {
  display: none;
}

.step-list__num {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted-dim);
  font-size: 0.48rem;
  letter-spacing: 0;
}

.step-list li.is-done {
  color: var(--muted);
}

.step-list li.is-done .step-list__num {
  border-color: rgba(182, 255, 106, 0.32);
  color: var(--signal);
}

.step-list li.is-active {
  color: var(--bone);
}

.step-list li.is-active .step-list__num {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 18px rgba(227, 38, 46, 0.24);
}

.step-list__state {
  color: var(--muted-dim);
  font-size: 0.46rem;
  letter-spacing: 0.15em;
}

.step-list li.is-active .step-list__state {
  color: var(--red-bright);
}

.intel-note {
  display: flex;
  gap: 12px;
  max-width: 335px;
  margin-top: 38px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-dim);
  font-size: 0.61rem;
  letter-spacing: 0.02em;
  line-height: 1.8;
}

.intel-note::before {
  content: "i";
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 0.65rem;
  font-style: italic;
}

.form-panel {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(17, 23, 33, 0.94), rgba(7, 10, 15, 0.96));
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.34);
}

.form-panel::before,
.form-panel::after {
  content: "";
  position: absolute;
  z-index: 3;
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.form-panel::before {
  top: -1px;
  left: -1px;
  border-top: 1px solid var(--red);
  border-left: 1px solid var(--red);
}

.form-panel::after {
  right: -1px;
  bottom: -1px;
  border-right: 1px solid var(--red);
  border-bottom: 1px solid var(--red);
}

.form-panel__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 47px;
  padding: 11px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted-dim);
  font-family: var(--display);
  font-size: 0.49rem;
  letter-spacing: 0.18em;
  line-height: 1.5;
}

.form-panel__bar strong {
  color: var(--bone-dim);
  font-weight: 500;
}

.form-panel__bar span:last-child {
  color: var(--red-bright);
}

.registration-form {
  padding: clamp(24px, 3.2vw, 38px) clamp(22px, 3.4vw, 42px) 30px;
}

.field {
  padding: 0;
  border: 0;
  margin: 0 0 26px;
  min-width: 0;
}

.field__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.field__head label,
.field__head legend,
.field__head .field__label {
  display: inline-flex;
  align-items: baseline;
  gap: 11px;
  color: var(--bone-dim);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 1.45;
}

.field__head .field__num {
  color: var(--red-bright);
  font-family: var(--display);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.field__required {
  color: var(--muted-dim);
  font-family: var(--display);
  font-size: 0.49rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.field__legend {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  margin: 0 0 10px;
  color: var(--bone-dim);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.045em;
  line-height: 1.45;
}

.field__legend-label {
  display: inline-flex;
  align-items: baseline;
  gap: 11px;
  min-width: 0;
}

.field__legend .field__num {
  color: var(--red-bright);
  font-family: var(--display);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
}

.field__control {
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.36fr) minmax(0, 0.64fr);
  gap: 18px;
  align-items: start;
}

.contact-grid__cell {
  min-width: 0;
}

.contact-grid__label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted-dim);
  font-family: var(--display);
  font-size: 0.54rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field input[type="text"],
.field select {
  width: 100%;
  height: 52px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid rgba(242, 239, 231, 0.19);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--bone);
  font-size: 1rem;
  letter-spacing: 0.035em;
  transition: border-color 0.28s ease, background-color 0.28s ease;
  -webkit-appearance: none;
  appearance: none;
}

.field input[type="text"]::placeholder {
  color: rgba(242, 239, 231, 0.23);
  font-size: 0.81rem;
  letter-spacing: 0.03em;
}

.field input[type="text"]:hover,
.field select:hover {
  border-bottom-color: rgba(242, 239, 231, 0.4);
}

.field input[type="text"]:focus,
.field select:focus {
  border-bottom-color: var(--red);
  background: linear-gradient(180deg, transparent, rgba(227, 38, 46, 0.038));
}

.field input[type="text"]:disabled {
  border-bottom-color: rgba(242, 239, 231, 0.1);
  color: var(--muted-dim);
  cursor: not-allowed;
  opacity: 0.65;
}

.field input[type="text"]:disabled::placeholder {
  color: rgba(242, 239, 231, 0.2);
}

.field select {
  color: var(--bone-dim);
  cursor: pointer;
  padding-right: 32px;
}

.field select.is-empty {
  color: var(--muted-dim);
  font-size: 0.81rem;
}

.field select option {
  background: var(--panel-raised);
  color: var(--bone);
}

.select-chevron {
  position: absolute;
  top: 50%;
  right: 3px;
  width: 8px;
  height: 8px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  pointer-events: none;
  transform: translateY(-75%) rotate(45deg);
}

.field__error {
  min-height: 16px;
  margin-top: 5px;
  color: var(--red-bright);
  font-size: 0.6rem;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.field.has-error input[type="text"],
.field.has-error select {
  border-bottom-color: var(--red-bright);
}

.field.has-error .choice__box {
  border-color: rgba(255, 75, 80, 0.6);
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  background: rgba(242, 239, 231, 0.018);
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s var(--ease);
}

.choice:hover {
  border-color: rgba(242, 239, 231, 0.3);
  background: rgba(242, 239, 231, 0.04);
}

.choice:has(input:checked) {
  border-color: rgba(227, 38, 46, 0.7);
  background: rgba(227, 38, 46, 0.07);
}

.choice:has(input:focus-visible) {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}

.choice__box {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(242, 239, 231, 0.33);
  background: rgba(0, 0, 0, 0.12);
  transition: border-color 0.22s ease, background-color 0.22s ease;
}

.choice__box::after {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--red);
  transform: scale(0);
  transition: transform 0.22s var(--ease);
}

.choice input:checked + .choice__box {
  border-color: var(--red);
  background: rgba(227, 38, 46, 0.1);
}

.choice input:checked + .choice__box::after {
  transform: scale(1);
}

.choice__content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.choice__content strong {
  color: var(--bone);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
}

.choice__content small {
  color: var(--muted-dim);
  font-family: var(--display);
  font-size: 0.44rem;
  letter-spacing: 0.13em;
  line-height: 1.4;
}

.choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.form-divider {
  height: 1px;
  margin: 2px 0 22px;
  background: var(--line-soft);
}

.form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
}

.form-submit__note {
  max-width: 250px;
  color: var(--muted-dim);
  font-size: 0.57rem;
  letter-spacing: 0.025em;
  line-height: 1.75;
}

.form-submit .btn--primary {
  min-width: 190px;
  min-height: 54px;
  padding-left: 24px;
}

.form-error-general {
  min-height: 18px;
  margin-top: 14px;
  color: var(--red-bright);
  font-size: 0.63rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
}

/* Success state */

.success-panel {
  padding: clamp(34px, 5vw, 58px) clamp(24px, 4vw, 46px) clamp(30px, 4vw, 42px);
  animation: successIn 0.6s var(--ease) both;
}

.success-panel:focus {
  outline: none;
}

.success-panel__icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid rgba(182, 255, 106, 0.4);
  background: rgba(182, 255, 106, 0.06);
  color: var(--signal);
  font-size: 1.5rem;
  box-shadow: 0 0 40px rgba(182, 255, 106, 0.06);
}

.success-panel__kicker {
  color: var(--muted-dim);
  font-family: var(--display);
  font-size: 0.51rem;
  letter-spacing: 0.23em;
  line-height: 1.5;
}

.success-panel h2 {
  margin-top: 10px;
  color: var(--bone);
  font-family: var(--display);
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}

.success-panel h2 em {
  color: var(--red);
  font-style: normal;
}

.success-panel__text {
  max-width: 450px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  line-height: 1.85;
}

.success-panel__notice {
  max-width: 480px;
  margin-top: 20px;
  padding: 16px 18px;
  border-left: 3px solid var(--red);
  background: rgba(227, 38, 46, 0.1);
  color: var(--bone);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.75;
}

.success-panel__notice strong {
  display: block;
  margin-bottom: 5px;
  color: var(--red-bright);
  font-family: var(--display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.success-ticket {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-top: 27px;
  padding: 17px 18px;
  border: 1px solid var(--line);
  background: rgba(5, 8, 12, 0.42);
}

.success-ticket__label {
  color: var(--muted-dim);
  font-family: var(--display);
  font-size: 0.46rem;
  letter-spacing: 0.18em;
  line-height: 1.4;
}

.success-ticket__code {
  margin-top: 3px;
  color: var(--bone);
  font-family: var(--mono);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.success-ticket__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--signal);
  font-family: var(--display);
  font-size: 0.48rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.success-ticket__status::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px rgba(182, 255, 106, 0.75);
}

.success-summary {
  display: grid;
  gap: 0;
  margin: 20px 0 0;
  border-top: 1px solid var(--line-soft);
}

.success-summary div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
}

.success-summary dt {
  color: var(--muted-dim);
  font-family: var(--display);
  font-size: 0.49rem;
  letter-spacing: 0.14em;
  line-height: 1.6;
}

.success-summary dd {
  overflow-wrap: anywhere;
  color: var(--bone-dim);
  font-size: 0.73rem;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 28px;
}

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

.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 var(--gutter) 22px;
  color: var(--muted-dim);
  font-family: var(--display);
  font-size: 0.46rem;
  letter-spacing: 0.16em;
  line-height: 1.6;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.site-footer__brand::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--red);
}

/* ---------- Page transition veil ---------- */

.transition-veil {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  visibility: hidden;
  pointer-events: none;
}

.transition-veil.is-active {
  visibility: visible;
  pointer-events: all;
}

.veil__panel {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(227, 38, 46, 0.1), transparent 36%),
    #070a0f;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.58s var(--ease-in-out);
}

.transition-veil.is-active .veil__panel {
  clip-path: inset(0 0 0 0);
}

.veil__slash {
  position: absolute;
  top: -20%;
  left: 53%;
  width: 1px;
  height: 140%;
  background: linear-gradient(180deg, transparent, var(--red), transparent);
  opacity: 0;
  transform: rotate(28deg) scaleY(0.2);
  transition: opacity 0.3s ease 0.18s, transform 0.7s var(--ease) 0.1s;
}

.veil__slash--two {
  left: 58%;
  background: linear-gradient(180deg, transparent, rgba(242, 239, 231, 0.4), transparent);
}

.transition-veil.is-active .veil__slash {
  opacity: 0.7;
  transform: rotate(28deg) scaleY(1);
}

.veil__content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 13px;
  padding: 24px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.26s ease 0.2s, transform 0.45s var(--ease) 0.18s;
}

.transition-veil.is-active .veil__content {
  opacity: 1;
  transform: translateY(0);
}

.veil__logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.5));
  animation: veilFloat 2.4s ease-in-out infinite;
}

.veil__label {
  color: var(--bone-dim);
  font-family: var(--display);
  font-size: 0.54rem;
  letter-spacing: 0.27em;
  line-height: 1.5;
  text-align: center;
}

.veil__bar {
  width: 170px;
  height: 2px;
  margin-top: 3px;
  overflow: hidden;
  background: rgba(242, 239, 231, 0.1);
}

.veil__bar::after {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  background: var(--red);
  animation: veilLoad 0.75s var(--ease-in-out) infinite;
}

body.is-transitioning {
  cursor: progress;
}

/* ---------- Animations ---------- */

@keyframes statusPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.8);
  }
}

@keyframes orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes floatLogo {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

@keyframes blink {
  0%,
  45% {
    opacity: 1;
  }
  46%,
  100% {
    opacity: 0;
  }
}

@keyframes pageRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes successIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes veilFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes veilLoad {
  from {
    transform: translateX(-110%);
  }
  to {
    transform: translateX(360%);
  }
}

.hero__copy > * {
  animation: pageRise 0.8s var(--ease) both;
}

.hero__copy > :nth-child(1) {
  animation-delay: 0.06s;
}

.hero__copy > :nth-child(2) {
  animation-delay: 0.12s;
}

.hero__copy > :nth-child(3) {
  animation-delay: 0.18s;
}

.hero__copy > :nth-child(4) {
  animation-delay: 0.23s;
}

.hero__copy > :nth-child(5) {
  animation-delay: 0.28s;
}

.hero__copy > :nth-child(6) {
  animation-delay: 0.33s;
}

.hero__copy > :nth-child(7) {
  animation-delay: 0.38s;
}

.hero__visual {
  animation: pageRise 0.95s var(--ease) 0.16s both;
}

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

@media (max-height: 820px) and (min-width: 981px) {
  .hero {
    padding-bottom: 36px;
  }

  .scroll-cue {
    bottom: 10px;
  }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
    gap: 28px;
  }

  .visual__stage {
    width: min(100%, 520px);
  }

  .hero__lede {
    max-width: 460px;
  }

  .register-wrap {
    gap: 52px;
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: auto;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    row-gap: 14px;
    padding-top: 18px;
    padding-bottom: 17px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    justify-content: center;
  }

  .site-nav a {
    flex: 1;
    text-align: center;
  }

  .header-status {
    grid-column: 2;
    grid-row: 1;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 20px;
  }

  .scroll-cue {
    bottom: 12px;
  }

  .hero__copy {
    max-width: 720px;
  }

  .hero__visual {
    width: min(100%, 620px);
    min-height: 0;
    margin: -12px auto 0;
    padding: 20px 0 38px;
  }

  .visual__stage {
    width: min(86vw, 520px);
  }

  .hero__meta {
    max-width: 640px;
  }

  .home {
    min-height: 0;
  }

  .home-footer {
    margin-top: 4px;
  }

  .rules-head__aside {
    display: none;
  }

  .register-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 720px;
  }

  .register-intro {
    position: static;
  }

  .register-intro .page-title {
    font-size: clamp(3rem, 8vw, 4.6rem);
  }

  .register-intro__lede {
    max-width: 560px;
  }

  .step-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 26px;
  }

  .step-list li {
    grid-template-columns: 24px 1fr;
    min-height: 44px;
    padding-right: 10px;
  }

  .step-list li::before {
    top: 31px;
    right: 10px;
    bottom: auto;
    left: 34px;
    width: auto;
    height: 1px;
  }

  .step-list__state {
    display: none;
  }

  .intel-note {
    display: none;
  }

  .register-wrap + .site-footer {
    margin-top: 22px;
  }
}

@media (max-width: 700px) {
  :root {
    --gutter: 20px;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
  }

  .brand__type strong {
    font-size: 0.84rem;
  }

  .brand__type span {
    font-size: 0.42rem;
    letter-spacing: 0.12em;
  }

  .header-status {
    padding: 8px 10px;
    font-size: 0.47rem;
    letter-spacing: 0.12em;
  }

  .site-nav a {
    padding: 8px 8px;
    font-size: 0.56rem;
    letter-spacing: 0.16em;
  }

  .hero {
    padding-top: 15px;
  }

  .hero__eyebrow {
    gap: 9px;
    font-size: 0.47rem;
    letter-spacing: 0.17em;
  }

  .eyebrow__line {
    width: 26px;
  }

  .eyebrow__tag {
    display: none;
  }

  .title__kicker {
    font-size: 0.83rem;
    letter-spacing: 0.25em;
  }

  .title__main {
    font-size: clamp(3.45rem, 17vw, 5.4rem);
  }

  .hero__identity {
    align-items: flex-start;
    gap: 11px;
    margin-top: 20px;
  }

  .hero__badge {
    padding: 7px 8px;
    font-size: 0.58rem;
  }

  .hero__subtitle {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .hero__lede {
    margin-top: 14px;
    font-size: 0.72rem;
    line-height: 1.8;
  }

  .hero__actions {
    gap: 18px;
    margin-top: 24px;
  }

  .btn--primary {
    width: 100%;
    min-width: 0;
  }

  .text-link {
    font-size: 0.56rem;
  }

  .hero__meta {
    margin-top: 28px;
  }

  .meta-item {
    padding: 0 10px;
  }

  .meta-item dt {
    font-size: 0.42rem;
  }

  .meta-item dd {
    font-size: 0.65rem;
  }

  .hero__visual {
    margin-top: 2px;
    padding-bottom: 28px;
    overflow: hidden;
  }

  .visual__stage {
    width: min(92vw, 430px);
  }

  .visual__index {
    top: 3px;
    right: 4px;
  }

  .stage__chip {
    padding: 8px 10px;
  }

  .stage__chip--a {
    top: 12%;
    left: 1%;
  }

  .stage__chip--b {
    right: 0;
    bottom: 14%;
  }

  .home-footer {
    gap: 14px;
    font-size: 0.42rem;
  }

  .home-footer__scroll {
    display: none;
  }

  .home-footer__stamp {
    display: none;
  }

  .site-footer {
    padding-bottom: 17px;
    font-size: 0.4rem;
  }

  .site-footer__brand {
    display: none;
  }

  .rules-head {
    display: block;
  }

  .rules-head .page-title {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }

  .rules-head__aside {
    display: none;
  }

  .rule-panel__bar {
    font-size: 0.43rem;
  }

  .rule-panel__bar-group {
    gap: 8px;
  }

  .rule-panel__bar > span:last-child {
    display: none;
  }

  .rules-scroll {
    height: 53vh;
    min-height: 300px;
  }

  .rules-scroll__inner {
    min-height: 780px;
    padding: 24px 20px 60px;
  }

  .rule-panel__footer {
    font-size: 0.42rem;
  }

  .scroll-meter {
    min-width: 135px;
    gap: 8px;
  }

  .scroll-meter__track {
    width: 82px;
  }

  .rules-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .rules-actions__next {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .rules-actions__next .btn--primary {
    width: 100%;
  }

  .rules-actions__hint {
    display: none;
  }

  .rules-actions__back {
    order: 2;
    justify-self: start;
  }

  .rules-actions__next {
    order: 1;
  }

  .registration-form {
    padding-top: 26px;
  }

  .form-submit {
    display: grid;
    gap: 16px;
  }

  .form-submit .btn--primary {
    width: 100%;
  }

  .form-submit__note {
    max-width: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .contact-grid__cell + .contact-grid__cell {
    margin-top: 2px;
  }

  .choice {
    min-height: 66px;
    gap: 11px;
    padding: 11px 12px;
  }

  .choice__content strong {
    font-size: 0.82rem;
  }

  .choice__content small {
    font-size: 0.4rem;
  }

  .success-ticket {
    grid-template-columns: 1fr;
  }

  .success-ticket__status {
    justify-self: start;
  }

  .success-summary div {
    grid-template-columns: 95px 1fr;
  }
}

@media (max-width: 390px) {
  .header-status {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr;
  }

  .site-nav {
    grid-column: 1;
  }

  .title__main {
    font-size: 3.15rem;
  }

  .hero__subtitle {
    font-size: 0.82rem;
  }

  .stage__chip {
    display: none;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}