:root {
  --bg: #0b0f0e;
  --surface: #111816;
  --line: #1f2d29;
  --accent: #00c28d;
  --accent-2: #99d4da;
  --text: #dfeeea;
  --dim: #8ea7a1;
  --font: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-title: var(--font);
  --measure: 34em; 
  --media: 1040px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.75 var(--font);
  -webkit-font-smoothing: antialiased;
}

html:lang(en) body { line-height: 1.6; }

a { color: var(--accent-2); text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-title); margin: 0; line-height: 1.25; }
p { margin: 0; }

.top {
  display: flex;
  justify-content: flex-end;
  padding: 14px 20px;
}
.lang {
  font-size: 14px;
  color: var(--dim);
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.lang:hover { color: var(--text); border-color: var(--dim); }

main { padding: 0 20px; }
.section {
  max-width: var(--media);
  margin: 0 auto;
  padding: 72px 0 0;
}
.section > h2 {
  font-size: 26px;
  color: var(--accent-2);
  margin-bottom: 20px;
  text-align: center;
}

.copy { max-width: var(--measure); margin: 0 auto; }

.hero {
  max-width: var(--media);
  margin: 0 auto;
  padding: 4px 0 0;
  text-align: center;
}

.hero .logo { max-width: 560px; margin: 0 auto 22px; }
.hero .logo img { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.tagline {
  max-width: var(--measure);
  margin: 0 auto 26px;
  font-size: 19px;
  color: var(--text);
}
.ea-date {
  margin-top: 16px;
  font-size: 15px;
  color: var(--accent-2);
  letter-spacing: 0.02em;
}
.search-hint {
  margin-top: 6px;
  font-size: 13px;
  color: var(--dim);
}


.cta {
  display: inline-block;
  padding: 16px 34px;
  background: var(--accent);
  color: var(--bg);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  clip-path: polygon(
    0 4px, 4px 4px, 4px 0, calc(100% - 4px) 0, calc(100% - 4px) 4px, 100% 4px,
    100% calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) 100%,
    4px 100%, 4px calc(100% - 4px), 0 calc(100% - 4px));
}
.cta:hover { background: #19d6a0; color: var(--bg); }
.cta:active { transform: translateY(1px); }
.cta:focus-visible { outline: none; background: var(--accent-2); box-shadow: inset 0 0 0 3px var(--bg); }

.trailer { padding-top: 40px; }
.frame {
  position: relative;
  display: grid;
  place-items: center;
}
.frame.playing {
  aspect-ratio: 16 / 9;
  background: #050807;
  border: 1px solid var(--line);
}
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.play::before {
  content: "";
  width: 88px;
  height: 88px;
  background: rgba(11, 15, 14, 0.78);
  border: 2px solid var(--accent);
}
.play::after {
  content: "";
  position: absolute;
  border-style: solid;
  border-width: 18px 0 18px 30px;
  border-color: transparent transparent transparent var(--accent);
  transform: translateX(4px);
}
.play:hover::before { background: rgba(11, 15, 14, 0.92); }
.play:focus-visible { outline-offset: -6px; }
.embed-note {
  margin-top: 10px;
  font-size: 13px;
  color: var(--dim);
  text-align: center;
}

.feature .copy h2 { font-size: 26px; color: var(--accent-2); margin-bottom: 14px; }
.feature p + p { margin-top: 12px; }
.feature figure { margin: 28px 0 0; }

.px-box { display: grid; place-items: center; }


img.px { image-rendering: pixelated; max-width: 100%; height: auto; }
img.px.px-smooth { image-rendering: auto; }


.shots {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.shots a {
  display: block;
  aspect-ratio: 16 / 9;
  background: #050807;
  border: 1px solid var(--line);
  overflow: hidden;
}
.shots a:hover { border-color: var(--accent); }

.shots img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }


.ea-info h3 { font-size: 18px; color: var(--text); margin: 26px 0 8px; }
.ea-info h3:first-child { margin-top: 0; }
.ea-info p, .ea-info li { color: var(--dim); }
.ea-info ul { margin: 0; padding-left: 1.2em; }

.cta-end { text-align: center; padding-bottom: 8px; }
.cta-end p { margin-bottom: 24px; color: var(--dim); }

footer {
  max-width: var(--media);
  margin: 96px auto 0;
  padding: 28px 20px 40px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--dim);
}
footer h2 { font-size: 15px; color: var(--text); margin-bottom: 10px; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.socials { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.socials a { text-decoration: none; }
.socials a:hover { text-decoration: underline; }
.foot-note { margin-top: 28px; }
.foot-note p + p { margin-top: 4px; }
.empty { color: var(--dim); }


dialog.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(5, 8, 7, 0.96);
  color: var(--text);
}
dialog.lightbox::backdrop { background: rgba(5, 8, 7, 0.96); }
.lb-stage {
  position: absolute;
  inset: 56px 64px;
  display: grid;
  place-items: center;
  margin: 0;
  touch-action: pan-y;
}
.lb-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: 400 26px/1 var(--font);
  cursor: pointer;
}
.lb-btn:hover { border-color: var(--accent); color: var(--accent); }
.lb-close { top: 4px; right: 8px; }
.lb-prev { left: 8px; top: calc(50% - 24px); }
.lb-next { right: 8px; top: calc(50% - 24px); }
.lb-count { position: absolute; top: 16px; left: 0; right: 0; text-align: center; font-size: 14px; color: var(--dim); pointer-events: none; }

.logo-text {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(32px, 7vw, 56px);
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

body.solo-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.solo-page main { flex: 1; display: grid; align-content: center; padding-bottom: 24px; }

body.solo-page .hero { width: 100%; }
.solo .ea-date { margin: 0 0 22px; font-size: 18px; }
.solo .search-hint { margin-top: 14px; }
.solo-foot {
  text-align: center;
  font-size: 13px;
  color: var(--dim);
  padding: 0 20px 20px;
}


.missing {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 1px dashed #c96;
  color: #e3b98a;
  font: 13px/1.4 ui-monospace, Menlo, Consolas, monospace;
  text-align: center;
  word-break: break-all;
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding-top: 56px; }
  .section > h2, .feature .copy h2 { font-size: 22px; }
  .trailer { padding-top: 32px; }
  .tagline { font-size: 17px; }
  .cta { padding: 14px 26px; font-size: 17px; }
  .shots { gap: 6px; }
  .foot-grid { grid-template-columns: 1fr; }
  .lb-stage { inset: 56px 8px 64px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .cta:active { transform: none; }
}
