:root {
  color-scheme: dark;
  --bg: #080808;
  --bg-soft: #101010;
  --surface: #141313;
  --surface-2: #191515;
  --text: #f1efec;
  --muted: #aaa39c;
  --dim: #726b65;
  --accent: #c52b2b;
  --accent-strong: #e13a36;
  --accent-dark: #5e1715;
  --line: rgba(255, 255, 255, 0.08);
  --line-red: rgba(197, 43, 43, 0.32);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --max: 1520px;
  --radius: 8px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}



* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 82% 4%, rgba(197, 43, 43, 0.13), transparent 24rem),
    linear-gradient(180deg, #0c0a0a 0%, var(--bg) 28rem, #0a0909 100%);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
}



body.menu-open,
body.dialog-open {
  overflow: hidden;
}

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

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 32px));
  height: 58px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 8, 8, 0.82);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}



section {
  scroll-margin-top: 84px;
}

.brand-mini {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--text);
  font-family: var(--serif);
  font-size: 22px;
  text-transform: uppercase;
}

.brand-mini img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  flex: 1;
}

.site-nav a,
.site-nav button {
  position: relative;
  border: 0;
  background: transparent;
  color: #d7d1cb;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 0;
  text-transform: uppercase;
  transition: color 180ms ease;
}



.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -23px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--accent-strong);
}

.site-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.site-nav button {
  min-height: 38px;
  border: 1px solid var(--line-red);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(125, 35, 31, 0.9), rgba(88, 24, 21, 0.92));
  color: #f8f0eb;
  padding: 0 18px;
}

.site-nav button:hover {
  border-color: rgba(225, 58, 54, 0.78);
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.join-btn,
.panel-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  border: 1px solid var(--line-red);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(125, 35, 31, 0.92), rgba(88, 24, 21, 0.94));
  color: #f8f0eb;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 0 18px;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.join-btn:hover,
.panel-link:hover {
  border-color: rgba(225, 58, 54, 0.78);
  background: linear-gradient(180deg, rgba(159, 39, 35, 0.96), rgba(103, 27, 24, 0.98));
  transform: translateY(-1px);
}

.join-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.join-btn svg,
.panel-link svg {
  width: 16px;
  height: 16px;
}

.menu-btn,
.dialog-close {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #ece5df;
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.menu-btn:hover,
.dialog-close:hover {
  border-color: var(--line-red);
  background: rgba(197, 43, 43, 0.1);
  color: var(--accent-strong);
}

.menu-btn svg,
.dialog-close svg {
  width: 22px;
  height: 22px;
}

.menu-btn {
  display: none;
}

.hero {
  width: min(var(--max), calc(100% - 32px));
  position: relative;
  min-height: 260px;
  overflow: hidden;
  margin: 84px auto 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #100c0b;
  box-shadow: var(--shadow);
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, 0.96) 0%, rgba(8, 8, 8, 0.78) 42%, rgba(8, 8, 8, 0.28) 68%, rgba(8, 8, 8, 0.82) 100%),
    radial-gradient(circle at 18% 50%, rgba(197, 43, 43, 0.22), transparent 20rem);
  content: "";
  z-index: 1;
}



.hero-media {
  position: absolute;
  inset: 0 0 0 38%;
  background:
    url("./assets/hero-battle.png") center / cover no-repeat,
    #151111;
  filter: saturate(1.08) contrast(1.06);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 260px;
  margin: 0 auto;
  padding: 42px clamp(24px, 5vw, 68px) 34px;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 36px);
}

.hero-logo {
  width: clamp(108px, 11vw, 136px);
  height: clamp(108px, 11vw, 136px);
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

.hero h1 {
  margin: 0;
  color: #fff8f1;
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 70px);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}



.hero p {
  margin: 18px 0 0;
  color: var(--accent-strong);
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 800;
  text-transform: uppercase;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--line);
}



.fact {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 70px;
  background: rgba(15, 15, 15, 0.96);
  padding: 13px clamp(14px, 2.4vw, 28px);
}



.fact svg {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.fact strong {
  display: block;
  color: #f3eee8;
  font-size: 14px;
  line-height: 1.15;
}



.fact span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
  gap: 10px;
  width: min(var(--max), calc(100% - 32px));
  margin: 10px auto 0;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 130px),
    var(--surface);
  box-shadow: inset 0 0 0 1px rgba(197, 43, 43, 0.045);
}



.panel h2 {
  margin: 0;
  color: #f7eee8;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}



.about-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.96fr) minmax(300px, 1.08fr);
  min-height: 250px;
}

.about-panel::after,
.info-panel::after {
  position: absolute;
  right: -36px;
  bottom: -54px;
  width: 230px;
  height: 230px;
  background: url("./assets/solaris-mark.png") center / contain no-repeat;
  content: "";
  opacity: 0.045;
  pointer-events: none;
}

.section-copy {
  position: relative;
  z-index: 1;
  padding: 26px 30px;
}

.section-copy p {
  max-width: 390px;
  margin: 16px 0 0;
  color: #cfc7bf;
  font-size: 14px;
}



.about-panel img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  mask-image: linear-gradient(90deg, transparent, #000 16%);
}

.panel-link {
  width: fit-content;
  margin-top: 24px;
}

.info-panel {
  padding: 26px 26px 20px;
}

.info-panel dl {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.info-panel div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
}

.info-panel dt {
  color: var(--muted);
}

.info-panel dd {
  margin: 0;
  color: #f3eee8;
  text-align: right;
}



.info-panel dd:last-child {
  color: #ff6f66;
}

.info-events-divider {
  height: 1px;
  margin: 20px 0 18px;
  background: var(--line);
}

.info-panel .section-head,
.info-panel .event-list {
  position: relative;
  z-index: 1;
}

.proposals {
  padding: 24px;
}

.proposals-full {
  grid-column: 1 / -1;
}

.proposals p {
  max-width: 620px;
  margin: 12px 0 0;
  color: #cfc7bf;
  font-size: 14px;
}



.proposal-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

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

.proposal-form label {
  display: grid;
  gap: 8px;
  color: #d9d1ca;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.proposal-form input,
.proposal-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #080808;
  color: var(--text);
  outline: none;
  padding: 0 12px;
}

.proposal-form input {
  min-height: 42px;
}

.proposal-form textarea {
  min-height: 82px;
  padding-top: 12px;
  resize: vertical;
}



.proposal-form input:focus,
.proposal-form textarea:focus {
  border-color: var(--accent);
}

.proposal-form .join-btn {
  width: fit-content;
}



.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-head a,
.section-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.section-head svg {
  width: 14px;
  height: 14px;
}

.events {
  padding: 26px;
}

.event-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.event-list article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 52px;
}

.event-list svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.event-list strong {
  display: block;
  color: #f4eee8;
  font-size: 14px;
}

.event-date {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.event-list article>span {
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
  color: #ded8d2;
  font-size: 12px;
  padding: 8px 10px;
}



.discord {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  padding: 28px 30px;
}

.discord>svg {
  width: 76px;
  height: 76px;
  color: var(--accent);
}

.discord p {
  max-width: 410px;
  margin: 12px 0 0;
  color: #cfc7bf;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max), calc(100% - 32px));
  margin: 22px auto 34px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 12px;
  padding-top: 20px;
}

dialog {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  border: 1px solid var(--line-red);
  border-radius: var(--radius);
  background: #111010;
  color: var(--text);
  box-shadow: var(--shadow);
  overflow: auto;
  padding: 0;
}



dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}

.join-dialog form,
.verify-dialog form {
  position: relative;
  margin: 0;
  padding: 28px;
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.join-dialog h2,
.verify-dialog h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  text-transform: uppercase;
  line-height: 1.15;
  max-width: calc(100% - 56px);
}

.verify-dialog h2 {
  font-size: 24px;
}

.join-dialog p,
.verify-dialog p {
  margin: 10px 0 20px;
  color: var(--muted);
}

.join-dialog label {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  color: #d9d1ca;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.join-dialog input,
.join-dialog select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #080808;
  color: var(--text);
  outline: none;
  padding: 0 12px;
}



.join-dialog input:focus,
.join-dialog select:focus {
  border-color: var(--accent);
}

.join-dialog menu {
  margin: 22px 0 0;
  padding: 0;
}

.join-dialog .join-btn {
  width: 100%;
}

.human-check {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  padding: 0 16px;
}



.human-check input {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
}

.human-check-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.human-check-badge {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.7;
  pointer-events: none;
}

.human-check-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 400;
  text-transform: none;
}

.human-check-links a {
  color: var(--dim);
  text-decoration: none;
  transition: color 150ms ease;
}

.human-check-links a:hover {
  color: var(--accent-strong);
}

.human-check-links > span {
  color: var(--dim);
  font-size: 8px;
}

.verify-note {
  margin-top: 14px;
  font-size: 12px;
}

.verify-status {
  overflow: hidden;
  margin: 12px 0 0;
  border: 1px solid rgba(225, 58, 54, 0.2);
  border-radius: 5px;
  background: rgba(197, 43, 43, 0.1);
  color: #ff9a91;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  max-height: 0;
  opacity: 0;
  padding: 0 12px;
  text-transform: uppercase;
  transform: translateY(-4px);
  transition:
    max-height 180ms ease,
    opacity 180ms ease,
    padding 180ms ease,
    transform 180ms ease;
}

.verify-status p {
  margin: 0;
  padding: 2px 0;
}

.verify-status code {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  color: #fff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  padding: 1px 5px;
}

.verify-status.is-visible {
  max-height: 220px;
  opacity: 1;
  padding: 10px 12px;
  transform: translateY(0);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  max-width: min(360px, calc(100% - 40px));
  border: 1px solid var(--line-red);
  border-radius: 6px;
  background: rgba(17, 16, 16, 0.96);
  box-shadow: var(--shadow);
  color: #f6efe9;
  opacity: 0;
  padding: 12px 14px;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}



.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    top: 78px;
    right: 16px;
    left: 16px;
    display: grid;
    justify-content: stretch;
    gap: 0;
    border: 1px solid var(--line-red);
    border-radius: var(--radius);
    background: rgba(12, 11, 11, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    padding: 10px;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 180ms ease,
      transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a,
  .site-nav button {
    border-radius: 5px;
    padding: 14px;
    text-align: left;
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav button {
    margin-top: 6px;
    text-align: center;
  }

  .menu-btn {
    display: inline-grid;
  }

  .page-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  body {
    font-size: 14px;
  }

  .site-header {
    width: min(100% - 22px, var(--max));
    height: 62px;
  }

  .brand-mini span {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 250px;
  }

  .hero {
    margin-top: 78px;
  }

  .hero-inner {
    align-items: flex-end;
    width: min(100% - 22px, var(--max));
    padding: 28px 18px;
  }

  .hero-brand {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    width: 100%;
  }

  .hero-logo {
    width: 80px;
    height: 80px;
  }

  .hero h1 {
    font-size: clamp(35px, 11.8vw, 46px);
  }

  .hero p {
    max-width: none;
    font-size: 13px;
  }

  .quick-facts,
  .page-grid,
  .site-footer {
    width: min(100% - 22px, var(--max));
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .fact {
    min-height: 62px;
  }

  .about-panel {
    grid-template-columns: 1fr;
  }

  .about-panel img {
    min-height: 190px;
    mask-image: linear-gradient(180deg, transparent 0%, #000 18%);
  }

  .section-copy,
  .info-panel,
  .events,
  .proposals {
    padding: 22px;
  }

  .proposal-row {
    grid-template-columns: 1fr;
  }

  .proposal-form .join-btn {
    width: 100%;
  }

  .event-list article {
    grid-template-columns: auto 1fr;
  }

  .event-list article>span {
    grid-column: 2;
    width: fit-content;
  }

  .discord {
    grid-template-columns: 1fr;
  }

  .discord>svg {
    width: 58px;
    height: 58px;
  }

  .site-footer {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {

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