:root {
  --bg: #000;
  --ink: #fff;
  --muted: #a3a3a3;
  --green: #76b900;
  --ink-on-green: #000;
  --line: rgba(255, 255, 255, 0.12);
  --pad: 40px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  background-color: #030806;
  background-image:
    radial-gradient(ellipse 90% 50% at 50% 8%, rgba(118, 185, 0, 0.2), transparent 62%),
    linear-gradient(180deg, rgba(3, 8, 6, 0.08), rgba(3, 8, 6, 0.28) 24%, rgba(0, 0, 0, 0.45) 70%, rgba(0, 0, 0, 0.62)),
    url("game-art/bg-server.jpg");
  background-repeat: no-repeat;
  background-size: auto, auto, cover;
  background-attachment: fixed;
  background-position: center top, center, center;
}

a { color: inherit; }

img, video { max-width: 100%; }

::selection { background: var(--green); color: #000; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  z-index: 50;
}

.skip:focus { top: 12px; }

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(118, 185, 0, 0.35);
}

main { padding-top: 64px; }

.nav-inner {
  display: flex;
  align-items: center;
  width: min(1440px, calc(100% - var(--pad) * 2));
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.brand img { width: 28px; height: 28px; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a { text-decoration: none; color: #e8e8e8; }

.nav-links a:hover,
.nav a[aria-current="page"] { color: var(--green); }

.buy, .play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  background: var(--green);
  color: #000;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.buy:hover, .play:hover { background: #8fdb00; }

.sky {
  position: relative;
  min-height: 100svh;
  margin-top: -64px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.sky-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  -webkit-mask-image: linear-gradient(#000 0%, #000 62%, transparent 100%);
  mask-image: linear-gradient(#000 0%, #000 62%, transparent 100%);
}

.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.08) 42%, transparent 68%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.22), transparent 18% 55%, rgba(3, 8, 6, 0.15) 78%, rgba(3, 8, 6, 0.72));
}

.sky-copy {
  position: relative;
  z-index: 1;
  width: min(720px, 56%);
  margin: 48px 0 0;
  padding: 0 var(--pad);
}

.sky h1 {
  margin: 0;
  color: var(--green);
  font-size: clamp(4.5rem, 11vw, 8rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
  font-weight: 700;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.sky h2 {
  margin: 12px 0 0;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
}

.sky .hero-actions a,
.sky .hero-actions button { text-shadow: 0 2px 12px #000; }

.hero-actions a:not(.buy),
.hero-actions button {
  background: none;
  border: 0;
  padding: 0;
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.hero-actions a:not(.buy):hover,
.hero-actions button:hover { color: var(--green); }

.sky .ca {
  display: block;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  text-align: left;
  word-break: break-all;
  cursor: pointer;
  text-shadow: 0 2px 12px #000;
}

.sky .ca:hover { color: var(--green); }

.arcade,
.archive,
.hall,
.buyhow,
.specs {
  width: min(1440px, calc(100% - var(--pad) * 2));
  margin-left: auto;
  margin-right: auto;
}

.arcade { padding: 8px 0 28px; }

.arcade h2,
.hall h2,
.buyhow h2,
.page-head h1,
.page-banner h1 {
  margin: 0 0 16px;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.doors {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: min(1440px, calc(100% - var(--pad) * 2));
  margin: 0 auto 48px;
}

.arcade .doors { width: auto; margin: 0; }

.door {
  position: relative;
  display: block;
  height: 460px;
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: #050605 center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(118, 185, 0, 0.45);
}

.door img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.45s ease;
}

.door:hover img { transform: scale(1.06); }

.door.soon { cursor: default; }

.door.soon img {
  filter: grayscale(0.32) saturate(0.72) brightness(0.84);
  transform: none;
}

.door.soon:hover img { transform: none; }

.door.soon em {
  position: absolute;
  z-index: 2;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 8px 14px;
  border-radius: 4px;
  border: 1px solid rgba(118, 185, 0, 0.85);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.door::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(transparent 42%, rgba(0, 0, 0, 0.82));
}

.door span {
  position: absolute;
  z-index: 1;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.door b {
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--green);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.door small { font-size: 13px; font-weight: 500; color: #e7e7e7; }

.door.run {
  background-image:
    url("game-art/rear-run-1.png"),
    url("game-art/bg-server.jpg");
  background-size: auto 92%, cover;
  background-position: center 78%, center;
  background-repeat: no-repeat;
}

.archive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-bottom: 28px;
}

.panel {
  position: relative;
  display: block;
  height: min(52vh, 460px);
  border-radius: 18px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(118, 185, 0, 0.45);
}

.panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transition: transform 0.45s ease;
}

.panel:hover img { transform: scale(1.05); }

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.78));
}

.panel span {
  position: absolute;
  z-index: 1;
  left: 22px;
  bottom: 18px;
  color: var(--green);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
}

.hall {
  position: relative;
  width: 100%;
  max-width: none;
  padding: 64px var(--pad) 36px;
  background:
    linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.22) 18%, rgba(0, 0, 0, 0.28) 82%, transparent);
}

.hall h2,
.hall .chart-frame {
  width: min(1440px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.chart-block {
  width: min(1440px, calc(100% - var(--pad) * 2));
  margin: 0 auto 28px;
}

.chart-block h2,
.buyhow h2,
.page-head h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.chart-frame {
  height: 720px;
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: 0 0 0 1px rgba(118, 185, 0, 0.45);
}

.chart-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  background: #0e0e0e;
  border-bottom: 1px solid rgba(118, 185, 0, 0.4);
  font-size: 13px;
  font-weight: 700;
}

.chart-bar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.chart-bar span { color: var(--muted); font-weight: 500; }

.chart-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  flex: 1;
}

.buyhow {
  width: min(1440px, calc(100% - var(--pad) * 2));
  margin: 12px auto 28px;
}

.buyhow ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.buyhow li {
  padding: 20px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 3px 0 var(--green), 0 0 0 1px rgba(118, 185, 0, 0.28);
}

.buyhow b {
  color: var(--green);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
}

.buyhow h3 { margin: 10px 0 8px; font-size: 22px; }

.buyhow p { margin: 0 0 12px; color: var(--muted); }

.buyhow a { color: var(--green); font-weight: 700; }

.specs {
  display: grid;
  grid-template-columns: 0.5fr 1.4fr 0.5fr;
  width: min(1440px, calc(100% - var(--pad) * 2));
  margin: 0 auto 40px;
  border: 1px solid rgba(118, 185, 0, 0.28);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
}

.specs > div { padding: 18px 16px; border-right: 1px solid var(--line); }

.specs > div:last-child { border-right: 0; }

.specs span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.specs strong { font-size: 18px; }

.specs .ca {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  text-align: left;
  word-break: break-all;
  cursor: pointer;
}

.specs .ca:hover { color: var(--green); }

.page-head {
  width: min(1440px, calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: 32px 0 16px;
}

.page-banner {
  position: relative;
  height: 320px;
  margin: -64px 0 28px;
  overflow: hidden;
}

.page-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
}

.page-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 30%, #000);
}

.page-banner h1 {
  position: absolute;
  z-index: 1;
  left: var(--pad);
  bottom: 24px;
  margin: 0;
  font-size: clamp(3rem, 6vw, 4.5rem);
  letter-spacing: -0.04em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  width: min(1440px, calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: 8px 0 64px;
}

.card { color: inherit; text-decoration: none; }

.card img,
.card .shot {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 16px;
  display: block;
  background: #111 center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(118, 185, 0, 0.4);
}

.card h3 { margin: 14px 0 6px; font-size: 18px; text-align: center; }

.card p { margin: 0 0 12px; color: var(--muted); font-size: 13px; text-align: center; }

.card .play { margin: 0 auto; }

.card { display: flex; flex-direction: column; align-items: center; }

.card .shot.run {
  background-image: url("game-art/rear-run-1.png?v=4"), url("game-art/aisle-floor.jpg");
  background-size: auto 118%, cover;
  background-position: center 78%, center;
  background-repeat: no-repeat;
}

.wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(1440px, calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: 20px 0 64px;
}

.still {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: #111;
  box-shadow: 0 0 0 1px rgba(118, 185, 0, 0.28);
}

.still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.clip { margin: 0; }

.clip button,
.clip video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #111 center / cover no-repeat;
  color: transparent;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(118, 185, 0, 0.28);
}

.clip button .live {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.clip button::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--green);
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'><path d='M1 1l10 6L1 13z' fill='%2376b900'/></svg>") center / 12px 14px no-repeat,
    rgba(0, 0, 0, 0.4);
}

.clip figcaption { padding: 8px 2px 0; color: var(--muted); font-size: 12px; }

.line {
  width: min(1440px, calc(100% - var(--pad) * 2));
  margin: 0 auto;
  padding: 8px 0 64px;
}

.foot {
  border-top: 1px solid var(--line);
  padding: 22px 0 40px;
}

.foot-inner {
  width: min(1440px, calc(100% - var(--pad) * 2));
  margin: 0 auto;
}

.foot p { margin: 4px 0; color: var(--muted); font-size: 13px; }

.foot a { color: #fff; text-decoration: none; }

.foot .ca {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  background: none;
  border: 0;
  color: var(--muted);
  padding: 0;
  cursor: pointer;
}

.toast {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--green);
  color: #000;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
}

.toast.show { opacity: 1; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(0, 0, 0, 0.94);
}

.lightbox.open { display: flex; }

.lightbox img { max-width: min(1200px, 100%); max-height: 90vh; }

.lightbox button {
  position: absolute;
  top: 16px;
  right: 16px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: var(--green);
  color: #000;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 980px) {
  :root { --pad: 16px; }
  .doors { grid-template-columns: 1fr 1fr; }
  .door { height: 280px; }
  .archive, .buyhow ol, .specs, .product-grid { grid-template-columns: 1fr; }
  .panel { height: 280px; }
  .chart-frame { height: 480px; }
  .wall { grid-template-columns: 1fr 1fr; }
  .nav-links a:not(.buy) { display: none; }
  .sky-copy { width: 100%; margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
