:root {
  color-scheme: dark;
  --ink: #d9eee7;
  --muted: #78958c;
  --line: rgba(139, 255, 220, 0.18);
  --acid: #8bffdc;
  --ember: #ff9b62;
  --panel: rgba(9, 22, 20, 0.78);
}
* { box-sizing: border-box; }
html { min-height: 100%; background: #040706; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 77% 9%, rgba(45,126,105,.21), transparent 32rem),
              radial-gradient(circle at 12% 73%, rgba(118,54,34,.14), transparent 28rem),
              linear-gradient(140deg, #06100e 0%, #030605 56%, #0b0a08 100%);
  font-family: "Microsoft YaHei", "PingFang SC", Inter, system-ui, sans-serif;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(139,255,220,.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(139,255,220,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .2; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.018) 4px); }
a { color: inherit; }
.site-header, main, footer { width: min(1160px, calc(100% - 40px)); margin-inline: auto; position: relative; }
.site-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--acid); color: var(--acid);
  font: 800 20px/1 ui-monospace, "Cascadia Mono", monospace;
  box-shadow: inset 0 0 18px rgba(139,255,220,.12), 0 0 20px rgba(139,255,220,.08);
  transform: rotate(45deg);
}
.brand-mark span { transform: rotate(-45deg); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: .13em; text-transform: uppercase; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.home-link { color: var(--muted); font-size: 13px; text-decoration: none; transition: color 160ms ease; }
.home-link:hover, .home-link:focus-visible { color: var(--acid); }
.hero { padding: 90px 0 60px; }
.eyebrow, .kicker { margin: 0; color: var(--acid); font: 700 11px/1.5 ui-monospace, "Cascadia Mono", monospace; letter-spacing: .18em; }
h1 { margin: 16px 0 14px; font-size: clamp(48px,9vw,108px); font-weight: 780; line-height: .98; letter-spacing: -.055em; text-shadow: 0 0 46px rgba(139,255,220,.08); }
.lede { max-width: 620px; margin: 0; color: #9db7af; font-size: clamp(16px,2vw,20px); line-height: 1.8; }
.status-line { display: flex; align-items: center; gap: 9px; margin-top: 26px; color: var(--muted); font-size: 12px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 5px rgba(139,255,220,.08), 0 0 16px var(--acid); }
.library { padding-bottom: 90px; }
.game-card {
  display: grid;
  grid-template-columns: minmax(300px,.95fr) minmax(360px,1.05fr);
  min-height: 450px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  text-decoration: none;
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.game-card:hover, .game-card:focus-visible { transform: translateY(-4px); border-color: rgba(139,255,220,.48); box-shadow: 0 32px 90px rgba(0,0,0,.38), 0 0 40px rgba(139,255,220,.055); outline: none; }
.cover {
  position: relative;
  min-height: 450px;
  overflow: hidden;
  background: linear-gradient(180deg, transparent 20%, rgba(2,6,5,.95) 92%),
              repeating-linear-gradient(115deg, transparent 0 28px, rgba(139,255,220,.035) 29px 30px),
              linear-gradient(145deg, #16352f, #07100f 48%, #160d09);
}
.cover::before, .cover::after { content: ""; position: absolute; border: 1px solid rgba(139,255,220,.2); }
.cover::before { inset: 34px; }
.cover::after { width: 180px; height: 310px; left: 50%; top: 54px; transform: translateX(-50%); }
.eclipse { position: absolute; width: 230px; aspect-ratio: 1; left: 50%; top: 70px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle at 38% 34%, #243b36 0 3%, #080d0c 48%, #010202 70%); box-shadow: -18px 8px 0 -12px var(--ember), 0 0 70px rgba(255,155,98,.16); }
.scanline { position: absolute; z-index: 2; inset: 0; background: linear-gradient(180deg,transparent 0 47%,rgba(139,255,220,.16) 50%,transparent 53%); opacity: .5; }
.specimen, .chapter { position: absolute; z-index: 3; top: 50px; color: var(--muted); font: 700 9px/1 ui-monospace, "Cascadia Mono", monospace; letter-spacing: .16em; }
.specimen { left: 52px; }
.chapter { right: 52px; }
.cover strong { position: absolute; z-index: 3; left: 50%; bottom: 56px; transform: translateX(-50%); color: #e7f7f1; font: 800 clamp(42px,6vw,70px)/1 ui-monospace,"Cascadia Mono",monospace; letter-spacing: .08em; text-shadow: 4px 0 rgba(255,91,63,.35), -3px 0 rgba(97,255,224,.26); }
.game-copy { padding: clamp(34px,6vw,64px); display: flex; flex-direction: column; justify-content: center; }
.game-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
h2 { margin: 8px 0 0; font-size: clamp(34px,5vw,58px); line-height: 1; letter-spacing: -.035em; }
.available { flex: none; padding: 7px 10px; border: 1px solid rgba(139,255,220,.28); color: var(--acid); font-size: 11px; }
.subtitle { margin: 13px 0 0; color: var(--ember); font-weight: 700; }
.description { max-width: 520px; margin: 25px 0 28px; color: #9db7af; line-height: 1.85; }
.metadata { display: grid; grid-template-columns: repeat(3,1fr); margin: 0; padding: 20px 0; border-block: 1px solid var(--line); }
.metadata div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.metadata dt { color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.metadata dd { margin: 7px 0 0; font-size: 12px; }
.play { align-self: flex-start; margin-top: 28px; color: var(--acid); font-weight: 700; letter-spacing: .06em; }
.play span { display: inline-block; transition: transform 160ms ease; }
.game-card:hover .play span { transform: translate(4px,-4px); }
footer { min-height: 86px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #587169; font-size: 11px; letter-spacing: .08em; }
@media (max-width: 780px) {
  .site-header, main, footer { width: min(100% - 28px,620px); }
  .site-header { min-height: 78px; }
  .hero { padding: 64px 0 42px; }
  .game-card { grid-template-columns: 1fr; }
  .cover { min-height: 390px; }
  .game-copy { padding: 34px 26px 40px; }
  footer { min-height: 100px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 8px; }
}
@media (max-width: 430px) {
  .brand small { display: none; }
  .home-link { font-size: 12px; }
  .hero { padding-top: 52px; }
  .cover { min-height: 340px; }
  .cover strong { font-size: 43px; }
  .cover::before { inset: 22px; }
  .cover::after { height: 250px; top: 44px; }
  .eclipse { width: 190px; top: 64px; }
  .specimen { left: 36px; }
  .chapter { right: 36px; }
  .metadata { grid-template-columns: 1fr; gap: 13px; }
  .metadata div + div { padding: 13px 0 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Shared-language controls for the game directory. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.header-actions { display: flex; align-items: center; gap: 18px; }
.language-switcher { position: relative; display: inline-flex; }
.language-switcher select {
  max-width: 170px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--muted);
  background: rgba(4, 10, 9, .82);
  font: 600 11px/1.2 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.language-switcher select:hover,
.language-switcher select:focus-visible {
  color: var(--acid);
  border-color: rgba(139,255,220,.48);
  outline: none;
}
.language-switcher option { color: var(--ink); background: #07100f; }
@media (max-width: 430px) {
  .header-actions { gap: 8px; }
  .language-switcher select { width: 122px; }
  .header-actions .home-link { display: none; }
}
