:root {
  color-scheme: dark;
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  background: #151b2d;
  color: #fff8d6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #49b7ff 0 24%, #7cdd56 24% 31%, #5d9d35 31% 37%, #7d512a 37% 100%);
}

a {
  color: inherit;
}

.sky {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  z-index: 0;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255, 255, 255, 0.85) 8% 15%, transparent 15% 100%) 8% 16% / 240px 56px repeat-x,
    linear-gradient(90deg, transparent 0 12%, rgba(255, 255, 255, 0.8) 12% 22%, transparent 22% 100%) 32% 24% / 310px 48px repeat-x,
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 45%);
  pointer-events: none;
  animation: drift-clouds 18s linear infinite;
}

.ticker-wrap {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-bottom: 4px solid #1d140e;
  background: #111827;
}

.ticker {
  display: flex;
  gap: 18px;
  width: max-content;
  min-width: 200%;
  padding: 10px 0;
  color: #fff3b0;
  font-weight: 950;
  animation: ticker-scroll 20s linear infinite;
}

.ticker span {
  min-width: 190px;
  text-align: center;
}

@keyframes drift-clouds {
  from { background-position: 8% 16%, 32% 24%, 0 0; }
  to { background-position: 320px 16%, -280px 24%, 0 0; }
}

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

@media (prefers-reduced-motion: reduce) {
  .sky,
  .ticker {
    animation: none;
  }
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px;
  background: #111827;
  border-bottom: 4px solid #1d140e;
}

.site-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: #fff3b0;
  font-weight: 950;
  font-size: 1.15rem;
  text-decoration: none;
}

.site-nav .brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
}

.site-nav a.nav-link {
  padding: 8px 14px;
  border: 3px solid #1d140e;
  background: #fff3b0;
  color: #23150d;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 4px 4px 0 #1d140e;
}

.site-nav a.nav-link:hover {
  transform: translate(1px, 1px);
  box-shadow: 3px 3px 0 #1d140e;
}

.site-nav a.nav-link.vip {
  background: linear-gradient(90deg, #ffc928, #ff8a3d);
}

main {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 28px));
  margin: 0 auto;
  padding: 40px 0 70px;
}

.hero {
  text-align: left;
  padding: 40px 0 10px;
}

.hero-logo {
  display: block;
  width: min(280px, 78vw);
  height: auto;
  margin: 0 0 20px;
  border: 4px solid #1d140e;
  background: #111827;
  box-shadow: 6px 6px 0 #1d140e;
}

.hero h1 {
  display: inline-block;
  margin: 0;
  padding: 10px 22px;
  border: 4px solid #1d140e;
  background: #111827;
  box-shadow: 7px 7px 0 #1d140e;
  color: #fff3b0;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  line-height: 1.1;
}

.hero .tagline {
  max-width: 720px;
  margin: 20px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fffef2;
  text-shadow: 2px 2px 0 rgba(29, 20, 14, 0.85);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.badge-row span {
  padding: 8px 14px;
  border: 3px solid #1d140e;
  background: #fff3b0;
  color: #23150d;
  font-weight: 950;
  box-shadow: 4px 4px 0 #1d140e;
}

.panel {
  margin-top: 34px;
  padding: 24px;
  border: 4px solid #1d140e;
  background: #111827;
  box-shadow: 8px 8px 0 #1d140e;
}

.panel h2 {
  margin: 0 0 16px;
  color: #ffc928;
  font-size: 1.9rem;
  text-shadow: 3px 3px 0 #2b1b12;
}

.panel p {
  line-height: 1.55;
}

.join-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.join-card {
  padding: 18px;
  border: 4px solid #1d140e;
  background: #1c2740;
  box-shadow: 5px 5px 0 #1d140e;
}

.join-card strong {
  display: block;
  color: #7cdd56;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.join-card code {
  display: inline-block;
  padding: 6px 10px;
  margin-top: 4px;
  background: #0b101f;
  border: 2px solid #2b3350;
  color: #fff3b0;
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 18px;
  border: 4px solid #1d140e;
  box-shadow: 5px 5px 0 #1d140e;
  color: #23150d;
  background: #fff3b0;
}

.feature-card:nth-child(2n) { background: #b7f0a1; }
.feature-card:nth-child(3n) { background: #ffd9a1; }
.feature-card:nth-child(4n) { background: #c5e5ff; }

.feature-card strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.steps {
  display: grid;
  gap: 12px;
  counter-reset: step;
}

.steps li {
  list-style: none;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px;
  border: 3px solid #1d140e;
  background: #1c2740;
  box-shadow: 4px 4px 0 #1d140e;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: #ffc928;
  border: 3px solid #1d140e;
  color: #23150d;
  font-weight: 950;
  font-size: 1.1rem;
}

.steps ul {
  margin: 0;
  padding: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.button {
  display: inline-block;
  padding: 14px 26px;
  border: 4px solid #1d140e;
  font-weight: 950;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 6px 6px 0 #1d140e;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 #1d140e;
}

.button.primary {
  background: linear-gradient(90deg, #ffc928, #ff8a3d);
  color: #23150d;
}

.button.secondary {
  background: #4fe8ff;
  color: #0b2a33;
}

.command-table {
  width: 100%;
  border-collapse: collapse;
}

.command-table th,
.command-table td {
  padding: 10px 12px;
  border: 2px solid #2b3350;
  text-align: left;
}

.command-table th {
  background: #1c2740;
  color: #ffc928;
}

.command-table code {
  color: #fff3b0;
  font-weight: 700;
}

.table-scroll {
  overflow-x: auto;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 22px 18px;
  text-align: center;
  background: #111827;
  border-top: 4px solid #1d140e;
  color: #9aa6c8;
  font-size: 0.95rem;
}

.legal-page .panel h3 {
  margin: 24px 0 8px;
  color: #7cdd56;
  font-size: 1.2rem;
}

.legal-page .panel li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.legal-page .panel a,
.site-footer a {
  color: #fff3b0;
  font-weight: 800;
}

.legal-note {
  padding: 14px 16px;
  border: 3px solid #ffc928;
  background: #1c2740;
}

.rules-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 18px 24px;
}

.rules-hero .hero-logo {
  grid-row: 1 / 3;
  width: min(210px, 42vw);
  margin: 0;
}

.rules-hero .tagline {
  margin-top: 0;
}

.rules-intro {
  border-color: #ffc928;
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.rule-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 4px solid #1d140e;
  background: #111827;
  box-shadow: 7px 7px 0 #1d140e;
}

.rule-card:nth-child(2n) {
  background: #1c2740;
}

.rule-number {
  flex: 0 0 auto;
  color: #23150d;
  background: linear-gradient(135deg, #ffc928, #ff8a3d);
  border: 3px solid #1d140e;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-weight: 950;
  box-shadow: 3px 3px 0 #1d140e;
}

.rule-card h2 {
  margin: 2px 0 8px;
  color: #ffc928;
  font-size: 1.25rem;
}

.rule-card p {
  margin: 0;
  color: #e7eaf5;
  line-height: 1.55;
}

@media (max-width: 720px) {
  .site-nav {
    flex-wrap: wrap;
  }

  .site-nav .brand {
    flex-basis: 100%;
  }

  .rules-hero {
    display: block;
  }

  .rules-hero .hero-logo {
    width: min(190px, 58vw);
    margin-bottom: 20px;
  }

  .rules-hero .tagline {
    margin-top: 20px;
  }

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