* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #090f0e;
  --bg-soft: #111817;
  --surface: #17231f;
  --surface-high: #213229;
  --ink: #f7fff1;
  --muted: #c7ddd1;
  --quiet: #8fa79d;
  --line: rgba(247, 255, 241, 0.16);
  --mint: #5dd6c8;
  --grass: #a5e86d;
  --amber: #ffcf62;
  --coral: #f06d55;
  --blue: #6fa0ff;
  --shadow: rgba(0, 0, 0, 0.42);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", "Noto Sans CJK KR", "Microsoft YaHei", sans-serif;
  line-height: 1.58;
}

a {
  color: var(--mint);
}

.shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 12%, rgba(255, 207, 98, 0.16), transparent 30%),
    radial-gradient(circle at 88% 4%, rgba(93, 214, 200, 0.13), transparent 28%),
    linear-gradient(180deg, #17211e 0%, #0b1110 52%, #090f0e 100%);
}

.nav {
  position: relative;
  z-index: 5;
  display: flex;
  width: min(1120px, calc(100% - 40px));
  align-items: center;
  justify-content: flex-start;
  margin: 0 auto;
  padding: 22px 0;
}

.brand-cluster,
.footer-brandline {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.platform-link,
.footer-platform {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.platform-link {
  width: 40px;
  min-height: 40px;
  border-radius: 8px;
  padding: 4px;
}

.platform-logo,
.footer-platform-logo {
  display: block;
  flex: 0 0 auto;
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(165, 232, 109, 0.22);
}

.brand-divider,
.footer-brand-divider {
  width: 1px;
  height: 30px;
  flex: 0 0 auto;
  background: rgba(247, 255, 241, 0.26);
}

.brand,
.footer-game {
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
}

.brand::before {
  width: 18px;
  height: 18px;
  border: 2px solid var(--mint);
  border-radius: 5px;
  background:
    linear-gradient(90deg, transparent 0 36%, var(--amber) 36% 64%, transparent 64% 100%),
    rgba(93, 214, 200, 0.1);
  content: "";
}

.hero {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 42px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: clamp(34px, 6vw, 82px);
  align-items: center;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(3.6rem, 9vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: 0;
}

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

h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.hero-lead {
  max-width: 680px;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 760;
  line-height: 1.25;
}

.hero-summary,
.section-copy,
.content .lead,
.content p,
.tile p,
.footer p {
  color: var(--muted);
}

.hero-summary {
  max-width: 640px;
  margin-bottom: 28px;
  font-size: 1.04rem;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(247, 255, 241, 0.22);
  border-radius: 8px;
  padding: 11px 16px;
  color: var(--ink);
  background: rgba(247, 255, 241, 0.08);
  font-size: 0.96rem;
  font-weight: 850;
  line-height: 1.15;
  text-decoration: none;
}

.button.primary {
  border-color: rgba(255, 207, 98, 0.72);
  color: #15140c;
  background: var(--amber);
  box-shadow: 0 18px 48px rgba(255, 207, 98, 0.2);
}

.button.is-disabled {
  cursor: default;
}

.play-note {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--quiet);
  font-size: 0.94rem;
}

.phone-showcase {
  position: relative;
  display: grid;
  place-items: center;
}

.board-art {
  width: min(100%, 420px);
  height: auto;
  filter: drop-shadow(0 32px 42px rgba(0, 0, 0, 0.34));
}

.status-ribbon {
  position: absolute;
  right: 8px;
  bottom: 70px;
  max-width: 210px;
  border: 1px solid rgba(93, 214, 200, 0.42);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(9, 15, 14, 0.86);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  font-size: 0.88rem;
  font-weight: 800;
}

.mechanic-strip,
.story-band,
.screenshots,
.content,
.footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.mechanic-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 0 52px;
}

.tile,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 35, 31, 0.72);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.tile {
  min-height: 172px;
  padding: 20px;
}

.tile-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  color: #121817;
  background: var(--mint);
  font-size: 1.25rem;
  font-weight: 900;
}

.tile:nth-child(2) .tile-icon {
  background: var(--amber);
}

.tile:nth-child(3) .tile-icon {
  background: var(--blue);
}

.tile:nth-child(4) .tile-icon {
  background: var(--coral);
}

.story-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

.mini-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(32px, 1fr));
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: rgba(6, 11, 10, 0.5);
}

.cell {
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(247, 255, 241, 0.06);
}

.cell.wall {
  background: rgba(247, 255, 241, 0.16);
}

.cell.exit {
  background: var(--mint);
}

.cell.block-a,
.cell.block-b,
.cell.block-c,
.cell.block-d {
  position: relative;
}

.cell.block-a { background: var(--amber); }
.cell.block-b { background: var(--blue); }
.cell.block-c { background: var(--coral); }
.cell.block-d { background: var(--grass); }

.cell.block-a::after,
.cell.block-b::after,
.cell.block-c::after,
.cell.block-d::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #121817;
  font-size: clamp(18px, 4vw, 34px);
  font-weight: 900;
}

.cell.block-a::after { content: ">"; }
.cell.block-b::after { content: "^"; }
.cell.block-c::after { content: "<"; }
.cell.block-d::after { content: "v"; }

.screenshots {
  padding: 48px 0 68px;
}

.screenshots-header {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.7fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.shot-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.shot-frame {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(9, 15, 14, 0.52);
}

.shot-card {
  min-height: 280px;
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(93, 214, 200, 0.16), transparent 36%),
    rgba(23, 35, 31, 0.92);
}

.shot-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 20px;
}

.shot-board span {
  aspect-ratio: 1;
  border-radius: 6px;
  background: rgba(247, 255, 241, 0.08);
}

.shot-board .a { background: var(--amber); }
.shot-board .b { background: var(--blue); }
.shot-board .c { background: var(--coral); }
.shot-board .d { background: var(--grass); }
.shot-board .x { background: var(--mint); }

.content {
  max-width: 860px;
  padding: 54px 0 72px;
}

.content h1 {
  font-size: clamp(2.8rem, 8vw, 5.8rem);
}

.content h2 {
  margin-top: 34px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.panel {
  padding: 20px;
  margin: 24px 0;
}

.icon-list {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.icon-list li {
  border-left: 4px solid var(--mint);
  padding: 10px 0 10px 14px;
  color: var(--muted);
}

.footer {
  --footer-accent: var(--mint);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 26px 0 34px;
}

.footer p {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.footer-platform {
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.footer-actions,
.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a,
.footer .language-menu summary {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--ink);
  background: rgba(247, 255, 241, 0.06);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-language {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-language-label {
  color: var(--quiet);
  font-size: 0.82rem;
  font-weight: 800;
}

.language-menu {
  position: relative;
}

.language-menu summary {
  cursor: pointer;
  list-style: none;
}

.language-menu summary::-webkit-details-marker {
  display: none;
}

.footer .language-options {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 10;
  display: grid;
  width: min(220px, calc(100vw - 40px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: rgba(9, 15, 14, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.44);
}

.language-menu:not([open]) .language-options {
  display: none;
}

.language-options a {
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--ink);
  text-decoration: none;
}

.language-options a:hover,
.language-options a[aria-current="true"] {
  color: #121817;
  background: var(--amber);
}

@media (max-width: 800px) {
  .hero {
    padding-top: 32px;
  }

  .hero-layout,
  .story-band,
  .screenshots-header {
    grid-template-columns: 1fr;
  }

  .mechanic-strip,
  .shot-row {
    grid-template-columns: 1fr;
  }

  .tile {
    min-height: 0;
  }

  .status-ribbon {
    position: static;
    max-width: none;
    margin-top: -10px;
  }

  .footer {
    align-items: flex-start;
  }
}
