:root {
  --black: #05090c;
  --ink: #0b1418;
  --panel: #101b20;
  --panel-soft: #16242a;
  --line: rgba(218, 171, 83, 0.36);
  --line-soft: rgba(255, 255, 255, 0.12);
  --gold: #d9a94f;
  --gold-hot: #f4d184;
  --blue: #155f9f;
  --blue-hot: #2aa7ff;
  --green: #78c957;
  --red: #c9493d;
  --text: #f6ead6;
  --muted: #b9afa0;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  color-scheme: dark;
  font-family:
    "Source Sans 3", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #071014 0%, #0b1418 38%, #05090c 100%);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  opacity: 0.42;
}

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(218, 171, 83, 0.28);
  padding: 10px 34px;
  background: rgba(5, 9, 12, 0.9);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

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

.brand span {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, #1b6099, #09151c 52%, #81551c);
  color: var(--gold-hot);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 700;
}

.brand strong {
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-header nav a {
  min-height: 38px;
  border: 1px solid rgba(218, 171, 83, 0.22);
  border-radius: 6px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.035);
  color: #efe1c8;
  font-size: 14px;
  font-weight: 800;
}

.site-header nav a:hover {
  border-color: rgba(42, 167, 255, 0.72);
  background: rgba(21, 95, 159, 0.34);
}

.hero {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  border-bottom: 1px solid rgba(218, 171, 83, 0.2);
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 8, 11, 0.92) 0%, rgba(4, 8, 11, 0.72) 34%, rgba(4, 8, 11, 0.2) 72%),
    linear-gradient(180deg, rgba(5, 9, 12, 0.38) 0%, rgba(5, 9, 12, 0.14) 48%, rgba(5, 9, 12, 0.84) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(740px, calc(100% - 32px));
  padding: 150px 0 128px;
  margin-left: max(24px, calc((100vw - 1240px) / 2));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-hot);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: 82px;
  line-height: 0.92;
  text-shadow: 0 12px 38px rgba(0, 0, 0, 0.65);
}

h2 {
  margin-bottom: 14px;
  font-size: 46px;
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  font-size: 25px;
  line-height: 1.1;
}

.hero-content p {
  max-width: 610px;
  color: #eadfca;
  font-size: 21px;
  line-height: 1.52;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 22px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 140ms ease,
    filter 140ms ease;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.button.primary {
  border-color: rgba(255, 230, 157, 0.7);
  background: linear-gradient(180deg, #f2cb73, #b9772b 58%, #7f501a);
  color: #221305;
  box-shadow: 0 18px 46px rgba(179, 112, 32, 0.34);
}

.button.secondary {
  border-color: rgba(42, 167, 255, 0.66);
  background: linear-gradient(180deg, #227dc9, #124165 58%, #0c2a42);
  color: white;
}

.button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.5) brightness(0.72);
}

.hero-facts {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 2;
  display: grid;
  width: min(960px, calc(100% - 32px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  transform: translateX(-50%);
}

.hero-facts span {
  border: 1px solid rgba(218, 171, 83, 0.34);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(5, 10, 13, 0.72);
  color: #f1e2c8;
  font-weight: 900;
  text-align: center;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.section {
  padding: 82px 28px;
}

.section-copy {
  max-width: 760px;
}

.section-copy.centered {
  margin: 0 auto 30px;
  text-align: center;
}

.section-copy p,
.register-copy p,
.stage-card p,
.troop-card p,
.world-list span,
.feature-strip span {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.intro {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(360px, 1fr);
  gap: 34px;
  max-width: 1240px;
  margin: 0 auto;
  align-items: end;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feature-strip article,
.world-list article,
.register-form,
.stage-card,
.troop-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 22%),
    var(--panel);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.feature-strip article {
  min-height: 150px;
  padding: 20px;
}

.feature-strip strong,
.world-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-hot);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
}

.castle-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%),
    linear-gradient(90deg, rgba(21, 95, 159, 0.12), transparent 35%, rgba(218, 171, 83, 0.08));
}

.stage-grid {
  display: grid;
  max-width: 1240px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
}

.stage-card {
  display: grid;
  grid-column: span 2;
  overflow: hidden;
}

.stage-card.featured {
  grid-column: span 4;
}

.stage-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.stage-card div,
.troop-card div {
  padding: 18px;
}

.stage-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-hot);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.troops-section {
  background: linear-gradient(180deg, rgba(5, 9, 12, 0.08), rgba(5, 9, 12, 0.42));
}

.troop-grid {
  display: grid;
  max-width: 1240px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
}

.troop-card {
  overflow: hidden;
}

.troop-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.world-section {
  border-top: 1px solid rgba(218, 171, 83, 0.16);
  border-bottom: 1px solid rgba(218, 171, 83, 0.16);
}

.world-layout {
  display: grid;
  max-width: 1120px;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 1fr);
  gap: 34px;
  margin: 0 auto;
  align-items: center;
}

.world-list {
  display: grid;
  gap: 12px;
}

.world-list article {
  min-height: 116px;
  padding: 20px;
}

.register-section {
  display: grid;
  max-width: 1120px;
  grid-template-columns: minmax(320px, 0.72fr) minmax(380px, 1fr);
  gap: 42px;
  margin: 0 auto;
  align-items: start;
}

.register-copy {
  padding-top: 18px;
}

.register-form {
  padding: 26px;
}

.form-row {
  margin-bottom: 15px;
}

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

label {
  display: block;
  margin-bottom: 7px;
  color: #eadfc9;
  font-size: 14px;
  font-weight: 900;
}

input,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(218, 171, 83, 0.28);
  border-radius: 5px;
  padding: 0 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    rgba(2, 6, 8, 0.78);
  color: var(--text);
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(42, 167, 255, 0.88);
  box-shadow: 0 0 0 3px rgba(42, 167, 255, 0.16);
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold-hot) 50%),
    linear-gradient(135deg, var(--gold-hot) 50%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
  background-position:
    calc(100% - 18px) 21px,
    calc(100% - 12px) 21px,
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    auto;
  background-repeat: no-repeat;
}

.check-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.45;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--gold);
}

.field-error {
  min-height: 18px;
  margin: 5px 0 0;
  color: #ff9a8b;
  font-size: 13px;
}

.submit-button {
  width: 100%;
  margin-top: 8px;
}

.loading-label,
.register-form.is-loading .idle-label {
  display: none;
}

.register-form.is-loading .loading-label {
  display: inline;
}

.form-status {
  min-height: 44px;
  margin-top: 14px;
  border-radius: 5px;
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  line-height: 1.4;
}

.form-status:empty {
  display: none;
}

.form-status.success {
  border: 1px solid rgba(120, 201, 87, 0.5);
  color: #c4f5b2;
}

.form-status.error {
  border: 1px solid rgba(201, 73, 61, 0.56);
  color: #ffc4ba;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(218, 171, 83, 0.18);
  padding: 22px 34px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1060px) {
  .intro,
  .world-layout,
  .register-section {
    grid-template-columns: 1fr;
  }

  .feature-strip,
  .troop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage-card,
  .stage-card.featured {
    grid-column: span 3;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    padding: 10px 14px;
  }

  .site-header nav {
    display: none;
  }

  .brand strong {
    font-size: 19px;
  }

  .hero {
    min-height: 88svh;
  }

  .hero > img {
    object-position: 58% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(5, 9, 12, 0.38) 0%, rgba(5, 9, 12, 0.6) 42%, rgba(5, 9, 12, 0.9) 100%);
  }

  .hero-content {
    width: calc(100% - 28px);
    padding: 118px 0 150px;
    margin: 0 auto;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 36px;
  }

  .hero-content p {
    font-size: 18px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    bottom: 14px;
  }

  .hero-facts span {
    padding: 10px 12px;
  }

  .section {
    padding: 62px 14px;
  }

  .feature-strip,
  .stage-grid,
  .troop-grid,
  .form-row.two {
    grid-template-columns: 1fr;
  }

  .stage-card,
  .stage-card.featured {
    grid-column: auto;
  }

  .footer {
    flex-direction: column;
    padding: 22px 14px;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 46px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}
