@font-face {
  font-family: "NintenPixel";
  src: url("assets/pixel-1.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #070a12;
  --panel: #0d1320;
  --panel-soft: #121b2b;
  --paper: #f5f0de;
  --lime: #c8ff4d;
  --orange: #ff7433;
  --cyan: #4de6ff;
  --line: rgba(255, 255, 255, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: "NintenPixel", "Microsoft YaHei", system-ui, sans-serif;
  overflow-x: hidden;
}

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

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: 0.08;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(255, 255, 255, 0.5) 4px
  );
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.scrolled {
  background: rgba(7, 10, 18, 0.92);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  clip-path: polygon(0 0, 84% 0, 100% 16%, 100% 100%, 16% 100%, 0 84%);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  font-size: 14px;
}

nav a:not(.chain-pill):hover {
  color: var(--lime);
}

.chain-pill {
  padding: 10px 14px;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--orange);
  font-weight: 800;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  align-items: center;
  overflow: hidden;
  padding: 120px clamp(22px, 7vw, 110px) 70px;
  background: #0c1422;
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  transform: scale(1.24);
  image-rendering: pixelated;
  filter: saturate(0.8) contrast(1.12) brightness(0.68);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 10, 18, 0.97) 0%, rgba(7, 10, 18, 0.76) 45%, rgba(7, 10, 18, 0.15) 85%),
    linear-gradient(0deg, var(--ink), transparent 24%);
}

.pixel-stars {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image:
    radial-gradient(circle at 13% 22%, var(--lime) 0 2px, transparent 3px),
    radial-gradient(circle at 76% 18%, var(--cyan) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 63%, var(--orange) 0 2px, transparent 3px),
    radial-gradient(circle at 53% 33%, white 0 1px, transparent 2px);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 790px;
}

.eyebrow,
.section-tag {
  margin: 0 0 18px;
  color: var(--lime);
  font-size: clamp(12px, 1.2vw, 16px);
  letter-spacing: 0.16em;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(58px, 10vw, 154px);
  line-height: 0.84;
  letter-spacing: -0.07em;
  text-shadow: 7px 7px 0 rgba(255, 116, 51, 0.78);
}

h1 span {
  color: var(--lime);
}

.hero-lead {
  max-width: 670px;
  margin-bottom: 30px;
  color: rgba(245, 240, 222, 0.82);
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-width: 180px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 2px solid var(--paper);
  font-weight: 900;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.primary-button {
  color: var(--ink);
  background: var(--lime);
  border-color: var(--lime);
  box-shadow: 6px 6px 0 var(--orange);
}

.secondary-button {
  background: rgba(7, 10, 18, 0.62);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translate(-2px, -2px);
}

.primary-button:hover {
  box-shadow: 9px 9px 0 var(--orange);
}

.game-note {
  margin: 24px 0 0;
  color: rgba(245, 240, 222, 0.58);
  font-size: 12px;
}

.hero-sprites img {
  position: absolute;
  z-index: 2;
  image-rendering: pixelated;
  pointer-events: none;
}

.dog-run {
  right: 3vw;
  bottom: 2vh;
  width: min(42vw, 580px);
  opacity: 0.7;
}

.dog-jump {
  right: 15vw;
  top: 19vh;
  width: min(25vw, 320px);
  opacity: 0.72;
  animation: hover 3.5s steps(2, end) infinite;
}

@keyframes hover {
  50% { transform: translateY(-18px); }
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 8vw, 120px);
  padding: 130px 0 90px;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.15;
}

.story-copy {
  padding-top: 44px;
  color: rgba(245, 240, 222, 0.72);
  font-size: 17px;
  line-height: 2;
}

.guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding-bottom: 110px;
}

.guide-card {
  min-height: 280px;
  padding: 30px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.3);
}

.guide-card:nth-child(2) {
  background: var(--panel-soft);
}

.guide-number {
  color: var(--orange);
  font-size: 13px;
}

.guide-card h3 {
  margin: 70px 0 16px;
  color: var(--lime);
  font-size: 30px;
}

.guide-card p {
  color: rgba(245, 240, 222, 0.68);
  line-height: 1.8;
}

.bsc {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  margin-bottom: 100px;
  padding: clamp(30px, 6vw, 72px);
  color: var(--ink);
  background: var(--lime);
  border: 5px solid var(--paper);
  box-shadow: 12px 12px 0 var(--orange);
}

.bsc .section-tag {
  color: #3f5a00;
}

.bsc h2 {
  margin-bottom: 14px;
}

.bsc p {
  max-width: 800px;
  margin-bottom: 0;
  line-height: 1.8;
}

.bsc-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 3px solid var(--ink);
  white-space: nowrap;
  font-weight: 900;
}

.status-light {
  width: 10px;
  height: 10px;
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(255, 116, 51, 0.2);
  animation: blink 1.4s steps(2, end) infinite;
}

@keyframes blink {
  50% { opacity: 0.25; }
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 34px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: rgba(245, 240, 222, 0.52);
  font-size: 12px;
}

footer p {
  margin-bottom: 0;
}

.disclaimer {
  max-width: 620px;
  text-align: right;
}

@media (max-width: 860px) {
  .site-header {
    min-height: 66px;
  }

  nav a:not(.chain-pill) {
    display: none;
  }

  .chain-pill {
    font-size: 10px;
  }

  .hero {
    min-height: 880px;
    padding-top: 120px;
    align-items: start;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(7, 10, 18, 0.93) 0%, rgba(7, 10, 18, 0.7) 60%, var(--ink) 100%);
  }

  .hero-copy {
    text-align: center;
  }

  h1 {
    font-size: clamp(50px, 17vw, 92px);
    word-break: break-all;
  }

  .hero-actions {
    justify-content: center;
  }

  .dog-run {
    right: -13vw;
    width: 112vw;
  }

  .dog-jump {
    display: none;
  }

  .story,
  .guide,
  .bsc {
    grid-template-columns: 1fr;
  }

  .story {
    padding-top: 90px;
  }

  .story-copy {
    padding-top: 0;
  }

  .guide-card {
    min-height: 220px;
  }

  .guide-card h3 {
    margin-top: 45px;
  }

  footer {
    flex-direction: column;
  }

  .disclaimer {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
}
