:root {
  --ink: #12161c;
  --paper: #fff3cf;
  --muted: #c8bdab;
  --line: rgba(255, 255, 255, 0.16);
  --panel: #191c22;
  --panel-soft: #282832;
  --accent: #ffd56f;
  --accent-2: #ff9d54;
  --danger: #cf5d48;
  --radius: 8px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--ink);
  color: var(--paper);
  line-height: 1.55;
}

main {
  flex: 1 0 auto;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: rgba(9, 13, 20, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(232, 156, 88, 0.55);
  background: rgba(232, 156, 88, 0.12);
  color: var(--accent);
  font-weight: 800;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 213, 111, 0.7);
  box-shadow: 0 0 24px rgba(255, 157, 84, 0.24);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #dce2e1;
  font-size: 0.94rem;
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--paper);
}

.hero {
  position: relative;
  z-index: 0;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 150px clamp(18px, 6vw, 96px) 86px;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 10, 16, 0.86), rgba(7, 10, 16, 0.12) 58%),
    linear-gradient(0deg, var(--ink), rgba(18, 22, 28, 0) 42%);
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(3rem, 6.3vw, 6.8rem);
  line-height: 0.94;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.54);
}

h2 {
  margin: 0;
  max-width: 980px;
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1.02;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.hero-content > p:not(.eyebrow) {
  max-width: 620px;
  margin: 24px 0 0;
  color: #e2e6e4;
  font-size: 1.1rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: #17120e;
  box-shadow: 0 12px 32px rgba(255, 157, 84, 0.24);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: clamp(62px, 9vw, 110px) clamp(18px, 6vw, 96px);
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 640px;
}

.intro-grid,
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intro-grid article,
.card,
.community-links {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  padding: 24px;
}

.stat {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--accent);
  font-weight: 900;
  font-size: 2.3rem;
}

.intro-grid p,
.feature-list p,
.cards p,
.community p,
.site-footer {
  color: var(--muted);
}

.feature-band {
  background: linear-gradient(135deg, #1d2028, #111820 58%, #33231d);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-list > div {
  min-height: 180px;
  padding: 24px;
  background: #151920;
}

.cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.community {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.65fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
  background: #0f1318;
}

.community-copy {
  position: sticky;
  top: 112px;
}

.community-copy p:not(.eyebrow) {
  max-width: 650px;
}

.community-links {
  display: grid;
  gap: 12px;
}

.link-card {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.link-card:hover {
  border-color: rgba(255, 213, 111, 0.52);
  background: rgba(255, 213, 111, 0.08);
}

.link-card span {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.link-card strong {
  color: var(--paper);
  font-size: 1.05rem;
}

.site-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 96px);
  border-top: 1px solid var(--line);
  background: #0b0e12;
}

.site-footer p {
  margin: 0;
}

.rulebook-page {
  min-height: 100vh;
  background:
    linear-gradient(0deg, rgba(18, 22, 28, 0.98), rgba(18, 22, 28, 0.9)),
    url("assets/background.png") center top / cover fixed;
}

.rulebook-hero {
  padding: 150px clamp(18px, 6vw, 96px) 58px;
  border-bottom: 1px solid var(--line);
}

.rulebook-hero h1 {
  max-width: 860px;
  font-size: clamp(1.9rem, 3.2vw, 3.2rem);
  line-height: 1.08;
}

.rulebook-hero p {
  max-width: 760px;
  margin: 22px 0 28px;
  color: #e2e6e4;
  font-size: 1.08rem;
}

.rules-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(42px, 7vw, 82px) clamp(18px, 6vw, 96px) clamp(70px, 8vw, 110px);
}

.rules-nav {
  position: sticky;
  top: 112px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.rules-nav a {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
}

.rules-nav a:hover {
  color: var(--paper);
  border-color: rgba(255, 213, 111, 0.52);
  background: rgba(255, 213, 111, 0.08);
}

.rules-content {
  display: grid;
  gap: 18px;
}

.rule-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 19, 24, 0.82);
  overflow: hidden;
}

.rule-section[open] {
  border-color: rgba(255, 213, 111, 0.42);
  background: rgba(15, 19, 24, 0.92);
}

.rule-section summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  cursor: pointer;
  list-style: none;
}

.rule-section summary::-webkit-details-marker {
  display: none;
}

.rule-number {
  color: var(--accent);
  font-weight: 900;
  font-size: 2rem;
}

.rule-title {
  color: var(--paper);
  font-weight: 900;
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  line-height: 1.18;
}

.rule-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 213, 111, 0.42);
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.45rem;
  font-weight: 400;
}

.rule-section[open] .rule-toggle {
  transform: rotate(45deg);
}

.rule-body {
  padding: 0 clamp(22px, 4vw, 34px) clamp(24px, 4vw, 38px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.rule-section p {
  max-width: 900px;
  margin: 22px 0 0;
  color: var(--muted);
}

.rule-list {
  padding-left: 25px;
}

.rule-list ol {
  margin-top: 8px;
  margin-bottom: 8px;
}

.rule-list ol[type="a"] {
  padding-left: 30px;
}

.rule-list ol[type="i"] {
  padding-left: 30px;
}

.rule-list li {
  padding-left: 6px;
}

.rule-list li::marker {
  color: var(--accent);
  font-weight: 800;
}

.rule-list ol li::marker {
  color: var(--accent-2);
}

.social-links {
  position: absolute;
  top: 90px;
  right: 40px;

  display: flex;
  gap: 18px;
  z-index: 2;
}

.social-links a {
  width: 50px;
  height: 50px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px;

  backdrop-filter: blur(10px);

  transition: all .3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.15);
  box-shadow: 0 0 20px rgba(255,215,0,.4);
}

.social-links img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

@media (max-width: 920px) {
  .site-nav {
    position: absolute;
    top: 78px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: rgba(13, 17, 23, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .intro-grid,
  .cards,
  .feature-list,
  .community,
  .rules-layout {
    grid-template-columns: 1fr;
  }

  .community-copy {
    position: static;
  }

  .rules-nav {
    position: static;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .brand span:last-child {
    max-width: 170px;
  }

  .hero {
    min-height: 88vh;
  }

  h1 {
    font-size: 3.05rem;
  }

  .button {
    width: 100%;
  }
}


.register-page {
  padding-top: 150px;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}

.register-card {
  max-width: 620px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
  box-shadow: 0 22px 70px rgba(0,0,0,0.28);
}

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

.register-card label {
  display: grid;
  gap: 8px;
  color: #f4ead2;
  font-weight: 800;
}

.register-card input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  background: rgba(0,0,0,0.24);
  color: var(--paper);
  padding: 0 14px;
  font: inherit;
}

.register-card input:focus {
  outline: 2px solid rgba(255, 213, 111, 0.35);
  border-color: rgba(255, 213, 111, 0.7);
}

.form-message {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.16);
}

.form-message.success {
  background: rgba(95, 190, 120, 0.14);
  color: #d8ffd7;
}

.form-message.error {
  background: rgba(207, 93, 72, 0.16);
  color: #ffd9d2;
}

.register-note {
  margin: 18px 0 0;
  color: #d7d0c3;
}
