:root {
  --ink: #151916;
  --muted: #69716b;
  --paper: #f5f1e8;
  --panel: #fffaf0;
  --dark: #0d1813;
  --dark-soft: #15241d;
  --line: rgba(21, 25, 22, 0.14);
  --green: #24784d;
  --green-deep: #155235;
  --amber: #f0b646;
  --red: #c94f45;
  --blue: #286f91;
  --shadow: 0 22px 60px rgba(15, 24, 19, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(21, 25, 22, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(21, 25, 22, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(245, 241, 232, 0.55), var(--paper) 480px),
    var(--paper);
  background-size: 42px 42px, 42px 42px, auto, auto;
  color: var(--ink);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  line-height: 1.6;
}

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

button {
  font: inherit;
}

.scroll-progress {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--amber), #65d486, var(--blue));
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 16px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  padding: 10px 12px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(12, 21, 17, 0.76);
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  animation: headerIn 560ms ease both;
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(9, 16, 13, 0.9);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.3);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--amber));
  color: #fff;
  font-size: 0.86rem;
  letter-spacing: 0;
}

.brand-text {
  font-size: 1.04rem;
}

.nav-links {
  gap: 4px;
}

.nav-links a {
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
}

.hero {
  position: relative;
  min-height: 86svh;
  overflow: hidden;
  padding: 124px max(20px, calc((100vw - 1180px) / 2)) 56px;
  color: #fff;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 13, 11, 0.92), rgba(7, 13, 11, 0.68) 45%, rgba(7, 13, 11, 0.24)),
    linear-gradient(0deg, rgba(7, 13, 11, 0.55), rgba(7, 13, 11, 0.08));
}

.hero-pixels {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero-pixels span {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 2px;
  background: rgba(240, 182, 70, 0.42);
  box-shadow: 0 0 18px rgba(240, 182, 70, 0.35);
  animation: pixelFloat 7s ease-in-out infinite;
}

.hero-pixels span:nth-child(1) {
  top: 22%;
  right: 16%;
  animation-delay: -1s;
}

.hero-pixels span:nth-child(2) {
  top: 42%;
  right: 8%;
  background: rgba(101, 212, 134, 0.34);
  animation-delay: -3s;
}

.hero-pixels span:nth-child(3) {
  top: 62%;
  right: 22%;
  width: 8px;
  height: 8px;
  animation-delay: -4.4s;
}

.hero-pixels span:nth-child(4) {
  top: 30%;
  left: 48%;
  background: rgba(40, 111, 145, 0.36);
  animation-delay: -2s;
}

.hero-pixels span:nth-child(5) {
  top: 72%;
  left: 55%;
  width: 12px;
  height: 12px;
  animation-delay: -5.2s;
}

.hero-pixels span:nth-child(6) {
  top: 18%;
  left: 62%;
  width: 7px;
  height: 7px;
  background: rgba(255, 255, 255, 0.32);
  animation-delay: -6s;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 38px;
  align-items: end;
  min-height: calc(86svh - 180px);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(4.6rem, 13vw, 10rem);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2.15rem, 5.2vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  line-height: 1.18;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 2vw, 1.26rem);
}

.ip-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: min(560px, 100%);
  min-height: 78px;
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
}

.ip-card span,
.join-ip span,
.site-footer span {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ip-card code {
  display: block;
  overflow-wrap: anywhere;
  color: #fff;
  font-family: inherit;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-weight: 900;
}

.copy-button,
.primary-action,
.secondary-action {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 6px;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.copy-button::after,
.primary-action::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.34), transparent 54%);
  transform: translateX(-120%);
}

.copy-button {
  border: 0;
  padding: 0 18px;
  background: var(--amber);
  color: #271800;
}

.copy-button.light {
  width: 100%;
  margin-top: 16px;
  background: #fff;
  color: var(--green-deep);
}

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

.primary-action,
.secondary-action {
  padding: 0 20px;
}

.primary-action {
  background: var(--green);
  color: #fff;
  box-shadow: 0 14px 34px rgba(36, 120, 77, 0.3);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.copy-button:hover,
.primary-action:hover,
.secondary-action:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.copy-button:hover::after,
.primary-action:hover::after {
  animation: buttonShine 760ms ease;
}

.city-panel {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(13, 24, 19, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  transform:
    perspective(900px)
    rotateX(var(--panel-tilt-x, 0deg))
    rotateY(var(--panel-tilt-y, 0deg));
  transition: transform 160ms ease;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #55d47a;
  box-shadow: 0 0 0 6px rgba(85, 212, 122, 0.14);
  animation: statusPulse 1.8s ease-in-out infinite;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.panel-grid div {
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.panel-grid div:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-2px);
}

.panel-grid strong,
.panel-grid span {
  display: block;
}

.panel-grid strong {
  font-size: 1rem;
}

.panel-grid span,
.city-panel p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

.live-feed {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(240, 182, 70, 0.26);
  border-radius: 8px;
  background: rgba(240, 182, 70, 0.1);
}

.live-feed span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.live-feed strong {
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.35;
}

.feed-message {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.feed-message.is-changing {
  opacity: 0;
  transform: translateY(6px);
}

.quick-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1180px, calc(100% - 32px));
  margin: -28px auto 0;
  overflow: hidden;
  border: 1px solid rgba(21, 25, 22, 0.12);
  border-radius: 8px;
  background: rgba(21, 25, 22, 0.12);
  box-shadow: 0 18px 46px rgba(15, 24, 19, 0.14);
}

.quick-strip div {
  min-height: 92px;
  padding: 18px;
  background: var(--panel);
}

.quick-strip span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-strip strong {
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.city-ticker {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  overflow: hidden;
  border: 1px solid rgba(21, 25, 22, 0.12);
  border-radius: 8px;
  background: var(--dark-soft);
  color: #fff;
  box-shadow: 0 14px 36px rgba(15, 24, 19, 0.13);
}

.ticker-label {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 0 16px;
  background: var(--amber);
  color: #2d1b00;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ticker-window {
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerMove 22s linear infinite;
}

.city-ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-track span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.ticker-track span::after {
  position: absolute;
  right: -3px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--amber);
  content: "";
}

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

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.72fr);
  gap: 54px;
  align-items: end;
}

.intro p:last-child,
.join-copy p,
.news-heading > p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 32px;
}

.city-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1fr);
  gap: 36px;
  align-items: center;
  padding-top: 28px;
}

.showcase-copy p:last-child {
  color: var(--muted);
  font-size: 1.05rem;
}

.mini-city {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(21, 25, 22, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(36, 120, 77, 0.16), transparent 34%),
    linear-gradient(315deg, rgba(40, 111, 145, 0.14), transparent 38%),
    #24382d;
  box-shadow: var(--shadow);
  transform: translateZ(0);
}

.mini-city::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  content: "";
}

.mini-city::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  pointer-events: none;
}

.city-road {
  position: absolute;
  z-index: 1;
  background:
    repeating-linear-gradient(90deg, transparent 0 26px, rgba(255, 255, 255, 0.28) 26px 42px),
    #1b211e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.road-main {
  left: -8%;
  right: -8%;
  bottom: 86px;
  height: 58px;
  transform: rotate(-9deg);
}

.road-cross {
  top: -18%;
  bottom: -18%;
  left: 50%;
  width: 54px;
  transform: rotate(22deg);
}

.city-car {
  position: absolute;
  z-index: 4;
  left: -64px;
  bottom: 112px;
  width: 42px;
  height: 22px;
  border-radius: 5px;
  background: var(--amber);
  box-shadow:
    0 0 18px rgba(240, 182, 70, 0.45),
    inset 10px 0 0 rgba(255, 255, 255, 0.22);
  transform: rotate(-9deg);
  animation: carDrive 7s linear infinite;
}

.city-car::before,
.city-car::after {
  position: absolute;
  bottom: -5px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #0e1511;
  content: "";
}

.city-car::before {
  left: 7px;
}

.city-car::after {
  right: 7px;
}

.building {
  position: absolute;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, #f8f0dc, #d8c89e);
  box-shadow: 0 22px 34px rgba(0, 0, 0, 0.26);
}

.building span {
  min-width: 15px;
  min-height: 14px;
  border-radius: 3px;
  background: rgba(33, 53, 43, 0.24);
  animation: windowBlink 3.2s ease-in-out infinite;
}

.building span:nth-child(2),
.building span:nth-child(5) {
  animation-delay: -1.1s;
}

.building span:nth-child(3),
.building span:nth-child(7) {
  animation-delay: -2.2s;
}

.tower-a {
  top: 58px;
  left: 72px;
  width: 104px;
  height: 156px;
}

.tower-b {
  top: 86px;
  right: 82px;
  width: 126px;
  height: 132px;
  background: linear-gradient(180deg, #dfe9e6, #aebfbb);
}

.tower-c {
  right: 180px;
  bottom: 52px;
  width: 98px;
  height: 128px;
  background: linear-gradient(180deg, #ffe1a0, #cfa55f);
}

.shop-row {
  left: 72px;
  bottom: 48px;
  width: 154px;
  height: 82px;
  grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(180deg, #eaccc7, #b46d63);
}

.city-label {
  position: absolute;
  z-index: 5;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(13, 24, 19, 0.78);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.label-hall {
  top: 34px;
  right: 78px;
}

.label-market {
  left: 58px;
  bottom: 24px;
}

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

.feature-card {
  min-height: 280px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(20, 33, 29, 0.07);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.feature-card:hover {
  border-color: rgba(36, 120, 77, 0.32);
  box-shadow: 0 20px 44px rgba(20, 33, 29, 0.13);
  transform: translateY(-6px);
}

.feature-large {
  grid-column: span 1;
  background: var(--dark-soft);
  color: #fff;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: #e6f1eb;
  color: var(--green-deep);
  font-weight: 900;
}

.feature-large .feature-icon {
  background: rgba(255, 255, 255, 0.12);
  color: var(--amber);
}

.feature-card:nth-child(2) .feature-icon {
  background: #e9eef2;
  color: var(--blue);
}

.feature-card:nth-child(3) .feature-icon {
  background: #fff0d6;
  color: #9a650d;
}

.feature-card:nth-child(4) .feature-icon {
  background: #f8e5e2;
  color: var(--red);
}

.feature-card p,
.rule-list p,
.steps {
  color: var(--muted);
}

.feature-large p {
  color: rgba(255, 255, 255, 0.74);
}

.join {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  gap: 44px;
  align-items: center;
}

.join-panel {
  padding: 28px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(240, 182, 70, 0.08), transparent 40%),
    var(--dark-soft);
  color: #fff;
  box-shadow: var(--shadow);
  animation: panelFloat 5.5s ease-in-out infinite;
}

.join-ip {
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.join-ip strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.78);
}

.steps code {
  color: #fff;
  font-family: inherit;
  font-weight: 900;
}

.news {
  width: 100%;
  max-width: none;
  padding: 86px max(16px, calc((100vw - 1180px) / 2));
  background: #18221d;
  color: #fff;
}

.news-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 34px;
  max-width: 1180px;
}

.news-heading > p {
  align-self: end;
  color: rgba(255, 255, 255, 0.68);
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 18px;
  max-width: 1180px;
}

.news-article {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.news-article:hover {
  border-color: rgba(240, 182, 70, 0.34);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.22);
  transform: translateY(-4px);
}

.featured-news {
  background: var(--panel);
  color: var(--ink);
}

.compact-news {
  align-self: start;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.news-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #edf4f0;
}

.compact-news .news-meta {
  color: rgba(255, 255, 255, 0.74);
}

.compact-news .news-meta span {
  background: rgba(255, 255, 255, 0.1);
}

.news-lead {
  color: inherit;
  font-size: clamp(1.05rem, 2vw, 1.26rem);
  font-weight: 800;
  line-height: 1.55;
}

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

.compact-news p {
  color: rgba(255, 255, 255, 0.72);
}

.rules {
  padding-top: 84px;
}

.rule-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.rule-list p {
  min-height: 128px;
  margin: 0;
  padding: 22px;
  border-top: 4px solid var(--green);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(20, 33, 29, 0.06);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.site-footer span {
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
}

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

@keyframes headerIn {
  from {
    opacity: 0;
    transform: translate(-50%, -12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(-8px, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(10px, -8px, 0);
  }
}

@keyframes buttonShine {
  from {
    transform: translateX(-120%);
  }
  to {
    transform: translateX(120%);
  }
}

@keyframes statusPulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(85, 212, 122, 0.16);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(85, 212, 122, 0.04);
  }
}

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

@keyframes pixelFloat {
  0%,
  100% {
    opacity: 0.34;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    opacity: 0.88;
    transform: translate3d(12px, -18px, 0) rotate(14deg);
  }
}

@keyframes panelFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes carDrive {
  from {
    transform: translateX(0) rotate(-9deg);
  }
  to {
    transform: translateX(calc(100vw + 220px)) rotate(-9deg);
  }
}

@keyframes windowBlink {
  0%,
  100% {
    background: rgba(33, 53, 43, 0.24);
    box-shadow: none;
  }
  42%,
  58% {
    background: rgba(240, 182, 70, 0.78);
    box-shadow: 0 0 14px rgba(240, 182, 70, 0.42);
  }
}

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

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero-inner,
  .intro,
  .city-showcase,
  .join,
  .news-heading,
  .news-layout {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: 0;
  }

  .city-panel {
    max-width: 540px;
  }

  .quick-strip,
  .feature-grid,
  .rule-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    gap: 10px;
  }

  .brand-text {
    display: none;
  }

  .nav-links a {
    min-height: 32px;
    padding-inline: 7px;
    font-size: 0.76rem;
  }

  .hero {
    min-height: auto;
    padding: 126px 14px 46px;
  }

  .hero-shade {
    background: linear-gradient(90deg, rgba(7, 13, 11, 0.94), rgba(7, 13, 11, 0.66));
  }

  .ip-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .copy-button {
    width: 100%;
  }

  .quick-strip {
    grid-template-columns: 1fr;
    width: calc(100% - 28px);
    margin-top: 0;
  }

  .city-ticker {
    grid-template-columns: 1fr;
    width: calc(100% - 28px);
  }

  .ticker-label {
    min-height: 38px;
  }

  .section {
    width: calc(100% - 28px);
    padding: 64px 0;
  }

  .news {
    padding: 64px 14px;
  }

  .feature-grid,
  .rule-list {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .rule-list p {
    min-height: auto;
  }

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

  .mini-city {
    min-height: 330px;
  }

  .tower-a {
    left: 34px;
  }

  .tower-b {
    right: 34px;
  }

  .tower-c {
    right: 112px;
  }

  .shop-row {
    left: 34px;
    width: 132px;
  }

  .site-footer {
    flex-direction: column;
    width: calc(100% - 28px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
