:root {
  color-scheme: light;
  --bg: #f6fbff;
  --panel: #ffffff;
  --panel-2: #eaf7ff;
  --text: #192334;
  --muted: #526274;
  --line: #c9d9e8;
  --green: #27bf73;
  --blue: #178ee8;
  --amber: #ffbd2e;
  --orange: #ff7c2a;
  --red: #ff4d4d;
  --purple: #7b5cff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, #dff4ff 0 320px, var(--bg) 320px),
    var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding: 10px clamp(16px, 4vw, 56px);
  border-bottom: 3px solid rgba(23, 142, 232, 0.22);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(25, 35, 52, 0.08);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #11263a;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
}

.brand span {
  white-space: nowrap;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: #23384f;
  font-size: 0.92rem;
  font-weight: 800;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--blue);
}

.hero {
  position: relative;
  min-height: calc(86vh - 66px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.74fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: 0 clamp(16px, 4vw, 56px);
  overflow: hidden;
  border-bottom: 4px solid #8fd16b;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.78) 0%, rgba(223,244,255,0.72) 54%, rgba(191,237,143,0.52) 100%),
    repeating-linear-gradient(90deg, rgba(23,142,232,0.12) 0 2px, transparent 2px 84px),
    repeating-linear-gradient(0deg, rgba(39,191,115,0.10) 0 2px, transparent 2px 84px);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62px;
  background:
    repeating-linear-gradient(90deg, #7ac943 0 42px, #69b73a 42px 84px),
    linear-gradient(#7ac943, #7ac943);
  box-shadow: inset 0 10px 0 rgba(255,255,255,0.28), inset 0 -18px 0 rgba(111, 74, 37, 0.26);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 850px;
  margin: 0;
  padding: 70px 0 110px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 920px;
  margin-bottom: 18px;
  color: #102338;
  font-size: clamp(2.7rem, 9vw, 6.9rem);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 4px 0 rgba(255, 189, 46, 0.28);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin-bottom: 28px;
  color: #314458;
  font-size: clamp(1.02rem, 2.2vw, 1.28rem);
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.copy-button,
.secondary-action,
.command-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.copy-button,
.command-copy {
  background: var(--amber);
  color: #251800;
  box-shadow: 0 5px 0 #cf8218;
}

.secondary-action {
  border-color: rgba(23, 142, 232, 0.36);
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 5px 0 rgba(23, 142, 232, 0.22);
}

.quick-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 920px;
  margin: 0;
}

.quick-specs div,
.feature-grid article,
.world-list article,
.event-panel > div,
.ranking-board,
.ranking-note,
.command-item,
.flow article {
  border: 2px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 7px 0 rgba(23, 142, 232, 0.10);
}

.quick-specs div {
  padding: 14px;
  border-color: rgba(255, 124, 42, 0.34);
}

dt {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0;
}

.band {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100% - 1120px) / 2));
  padding-right: max(16px, calc((100% - 1120px) / 2));
  border-block: 3px solid rgba(23, 142, 232, 0.18);
  background:
    linear-gradient(180deg, rgba(234, 247, 255, 0.9), rgba(255, 246, 222, 0.78)),
    var(--panel-2);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.flow,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

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

.flow article,
.feature-grid article,
.event-panel > div {
  padding: 18px;
}

.flow span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 4px 0 rgba(0, 72, 139, 0.25);
}

.feature-grid article:nth-child(2n) {
  border-color: rgba(23, 142, 232, 0.48);
}

.feature-grid article:nth-child(3n) {
  border-color: rgba(255, 124, 42, 0.48);
}

article p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.world-list article {
  display: grid;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
}

.world-list strong {
  color: var(--blue);
  overflow-wrap: anywhere;
}

.world-list span {
  color: var(--muted);
}

.event-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ranking-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}

.ranking-board {
  overflow: hidden;
}

.ranking-head,
.ranking-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) minmax(90px, 140px) minmax(90px, 140px);
  gap: 12px;
  align-items: center;
}

.ranking-head {
  padding: 12px 16px;
  background: #102338;
  color: #dceeff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ranking-list {
  display: grid;
}

.ranking-item {
  min-height: 54px;
  padding: 12px 16px;
  border-top: 1px solid rgba(201, 217, 232, 0.82);
  color: #23384f;
  font-weight: 800;
}

.ranking-item:nth-child(1) {
  background: rgba(255, 189, 46, 0.24);
}

.ranking-item:nth-child(2) {
  background: rgba(23, 142, 232, 0.10);
}

.ranking-item:nth-child(3) {
  background: rgba(39, 191, 115, 0.10);
}

.ranking-item strong {
  color: #c25a12;
  font-size: 1.05rem;
}

.ranking-name {
  overflow-wrap: anywhere;
  color: #102338;
}

.ranking-empty {
  padding: 18px;
  color: var(--muted);
  font-weight: 800;
}

.ranking-note {
  padding: 18px;
  border-color: rgba(255, 124, 42, 0.34);
}

.ranking-note span {
  display: inline-block;
  margin-top: 14px;
  border-radius: 6px;
  background: #eaf7ff;
  color: var(--blue);
  padding: 6px 10px;
  font-size: 0.86rem;
  font-weight: 900;
}

.search-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.command-search {
  width: 100%;
  min-height: 48px;
  margin-bottom: 16px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  padding: 10px 14px;
}

.command-list {
  display: grid;
  gap: 10px;
}

.command-item {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
}

.command-item code {
  color: #c25a12;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.command-item span {
  color: var(--muted);
}

.command-copy {
  min-height: 36px;
  padding: 8px 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(16px, 4vw, 56px);
  border-top: 3px solid rgba(23, 142, 232, 0.18);
  background: #102338;
  color: #dceeff;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
}

.hero-billboard {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 390px;
  padding: 28px;
  border: 4px solid #ffffff;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #178ee8 0 56%, #27bf73 56% 72%, #8b5a2b 72% 100%);
  box-shadow: 0 12px 0 rgba(25, 35, 52, 0.16), inset 0 0 0 4px rgba(255,255,255,0.24);
  text-align: center;
}

.hero-billboard img {
  width: min(48vw, 172px);
  height: min(48vw, 172px);
  margin-bottom: 18px;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 0 rgba(0,0,0,0.16));
}

.hero-billboard strong {
  color: #ffffff;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 0.9;
  text-shadow: 0 4px 0 rgba(0, 57, 108, 0.42);
}

.hero-billboard span {
  margin-top: 16px;
  border-radius: 6px;
  background: #ffbd2e;
  color: #211500;
  padding: 8px 12px;
  font-weight: 900;
  box-shadow: 0 4px 0 #cf8218;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-inline: 16px;
  }

  .hero-billboard {
    min-height: 280px;
    margin-bottom: 88px;
  }

  .quick-specs,
  .flow,
  .feature-grid,
  .event-panel,
  .ranking-shell,
  .ranking-head,
  .ranking-item {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .world-list article,
  .command-item {
    grid-template-columns: 1fr;
  }

  .command-copy {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .hero-inner {
    padding-top: 48px;
  }

  .hero-actions > * {
    width: 100%;
  }

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