* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #07100e;
  --bg-2: #0d1c18;
  --surface: #102720;
  --surface-high: #17362c;
  --ink: #f7fff8;
  --muted: #bad2c6;
  --quiet: #7fa095;
  --line: rgba(150, 232, 204, 0.22);
  --mint: #7ee7c7;
  --teal: #40b9a8;
  --leaf: #a7e35f;
  --amber: #ffc857;
  --coral: #ff6f61;
  --violet: #9b8cff;
  --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.55;
}

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

img {
  max-width: 100%;
}

.shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(126, 231, 199, 0.1), transparent 34%),
    linear-gradient(225deg, rgba(255, 200, 87, 0.09), transparent 30%),
    linear-gradient(180deg, #10231e 0%, #07100e 62%, #050908 100%);
}

.nav {
  position: relative;
  z-index: 5;
  display: flex;
  width: min(1160px, calc(100% - 40px));
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  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;
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
}

.platform-logo,
.footer-platform-logo {
  display: block;
  border-radius: 8px;
  box-shadow: 0 0 18px rgba(126, 231, 199, 0.22);
}

.brand-divider,
.footer-brand-divider {
  width: 1px;
  height: 30px;
  background: rgba(247, 255, 248, 0.28);
}

.brand,
.footer-game {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.brand::before {
  width: 18px;
  height: 18px;
  border: 2px solid var(--mint);
  border-radius: 5px;
  background:
    linear-gradient(90deg, transparent 0 32%, var(--amber) 32% 48%, transparent 48% 100%),
    linear-gradient(0deg, rgba(126, 231, 199, 0.18), rgba(126, 231, 199, 0.18));
  content: "";
}

.language-menu {
  position: relative;
  flex: 0 0 auto;
}

.language-menu summary {
  display: inline-flex;
  min-height: 36px;
  min-width: 92px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(126, 231, 199, 0.34);
  border-radius: 8px;
  padding: 7px 11px;
  color: var(--ink);
  background: rgba(7, 16, 14, 0.76);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  list-style: none;
}

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

.language-menu summary::after {
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
}

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

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

.language-options a {
  display: flex;
  min-height: 38px;
  align-items: center;
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
}

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

.hero {
  position: relative;
  min-height: min(780px, 82svh);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(7, 16, 14, 0.98) 0%, rgba(7, 16, 14, 0.9) 58%, rgba(7, 16, 14, 0.62) 100%),
    linear-gradient(145deg, rgba(64, 185, 168, 0.2), transparent 42%),
    linear-gradient(35deg, transparent 58%, rgba(255, 200, 87, 0.12));
}

.hero::before {
  position: absolute;
  inset: -12%;
  background:
    linear-gradient(rgba(126, 231, 199, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 231, 199, 0.07) 1px, transparent 1px);
  background-size: 74px 74px;
  content: "";
  opacity: 0.62;
  transform: rotate(-1deg);
}

.hero-layout,
.story-band,
.screenshots,
.content,
.play-panel {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(32px, 5vw, 82px);
  align-items: center;
  padding: clamp(24px, 5vw, 70px) 0 44px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4.2vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-lead,
.lead {
  margin: 22px 0 0;
  color: #ffffff;
  font-size: clamp(21px, 3vw, 31px);
  font-weight: 850;
  line-height: 1.24;
}

.hero-summary,
.story-band p,
.screenshots-header p,
.content p,
.play-panel p {
  color: var(--muted);
  font-size: 17px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(126, 231, 199, 0.36);
  border-radius: 8px;
  padding: 12px 18px;
  color: var(--ink);
  background: rgba(16, 39, 32, 0.72);
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
}

.button.primary {
  border-color: transparent;
  color: #09110f;
  background: var(--amber);
}

.button.pending {
  cursor: not-allowed;
}

.pending-note {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  max-width: 620px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.pending-note::before {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 3px;
  background: var(--coral);
  content: "";
}

.phone-showcase {
  position: relative;
  justify-self: center;
  width: min(360px, 84vw);
}

.phone-frame {
  overflow: hidden;
  border: 1px solid rgba(247, 255, 248, 0.18);
  border-radius: 8px;
  background: #050908;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.52);
}

.phone-frame img {
  display: block;
  width: 100%;
}

.play-badge {
  position: absolute;
  right: -12px;
  bottom: 28px;
  max-width: 220px;
  border: 1px solid rgba(255, 200, 87, 0.48);
  border-radius: 8px;
  padding: 10px 12px;
  color: #09110f;
  background: var(--amber);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.mechanic-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(126, 231, 199, 0.18);
}

.mechanic {
  min-height: 190px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(11, 28, 23, 0.94);
}

.mechanic code {
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
}

.mechanic strong {
  display: block;
  margin: 10px 0;
  color: #fff;
  font-size: 22px;
}

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

.story-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(56px, 8vw, 96px) 0;
}

.story-visual {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.story-visual img {
  display: block;
  width: 100%;
}

.screenshots {
  padding: 72px 0 84px;
}

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

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

.shot-frame {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(16, 39, 32, 0.76);
}

.shot-mini {
  display: grid;
  min-height: 260px;
  align-content: center;
  gap: 12px;
}

.mini-shelf,
.mini-tray,
.mini-buffer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mini-item,
.mini-slot {
  min-height: 42px;
  border-radius: 7px;
  background: var(--surface-high);
}

.mini-item.apple { background: var(--coral); }
.mini-item.bell { background: var(--amber); }
.mini-item.cube { background: var(--violet); }
.mini-item.leaf { background: var(--leaf); }
.mini-slot.open { border: 1px dashed rgba(247, 255, 248, 0.42); background: transparent; }

.content,
.play-panel {
  max-width: 860px;
  padding: 42px 0 82px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(16, 39, 32, 0.72);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  font-size: 24px;
}

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

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

.icon-list strong {
  color: var(--ink);
}

.play-panel {
  min-height: 62svh;
}

.pending-status {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}

.pending-status p {
  margin: 0;
  border-left: 4px solid var(--amber);
  padding: 12px 0 12px 16px;
}

.footer {
  display: flex;
  width: min(1160px, calc(100% - 40px));
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 42px;
  color: var(--quiet);
}

.footer a {
  color: var(--ink);
  text-decoration: none;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-actions {
  display: grid;
  justify-items: end;
  gap: 12px;
}

@media (max-width: 860px) {
  .nav,
  .footer {
    width: min(100% - 28px, 1160px);
  }

  .hero {
    min-height: auto;
  }

  .hero-layout,
  .story-band,
  .screenshots,
  .content,
  .play-panel {
    width: min(100% - 28px, 1160px);
  }

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

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

  .footer {
    display: grid;
  }

  .footer-actions {
    justify-items: start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .play-badge {
    right: 12px;
    bottom: 12px;
  }
}
