* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --ink: #17202a;
  --muted: #5d6875;
  --line: rgba(23, 32, 42, 0.14);
  --surface: #ffffff;
  --surface-soft: #eef4ff;
  --leaf: #2f9d70;
  --sky: #2b84d6;
  --plum: #6f59d9;
  --coral: #ef5b68;
  --sun: #f4b43f;
  --shadow: rgba(33, 47, 65, 0.16);
}

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(--sky);
}

.shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 248, 251, 0.95)),
    var(--bg);
}

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

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

.platform-link {
  display: inline-flex;
  width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: transform 160ms ease;
}

.platform-link:hover {
  transform: translateY(-1px);
}

.platform-logo {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(43, 132, 214, 0.18);
}

.brand-divider {
  width: 1px;
  height: 30px;
  flex: 0 0 auto;
  background: rgba(23, 32, 42, 0.22);
}

.brand {
  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(--leaf);
  border-radius: 5px;
  background:
    linear-gradient(135deg, transparent 0 42%, var(--sun) 42% 62%, transparent 62% 100%),
    rgba(47, 157, 112, 0.14);
  content: "";
}

.hero {
  position: relative;
  min-height: 86svh;
  isolation: isolate;
  display: grid;
  align-items: center;
  padding-bottom: 56px;
  background:
    linear-gradient(90deg, rgba(247, 248, 251, 0.98) 0%, rgba(247, 248, 251, 0.89) 48%, rgba(247, 248, 251, 0.38) 100%),
    url("assets/number-orchard-solved.svg") right -92px center / min(520px, 48vw) auto no-repeat;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 12px;
  background: linear-gradient(90deg, var(--leaf), var(--sky), var(--plum), var(--coral), var(--sun));
  content: "";
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 88px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--plum);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(52px, 9vw, 118px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4.3vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 18px;
}

.hero-lead {
  max-width: 620px;
  margin: 26px 0 0;
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 850;
  line-height: 1.12;
}

.hero-summary,
.section-heading p,
.story-copy p,
.screenshots-header p,
.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 17px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(33, 47, 65, 0.08);
}

.button.primary {
  border-color: rgba(111, 89, 217, 0.26);
  background: var(--plum);
  color: #fff;
}

.play-status {
  max-width: 690px;
  margin: 18px 0 0;
  border-left: 4px solid var(--coral);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.82);
  color: #334155;
  font-size: 15px;
  font-weight: 700;
}

.hero-preview {
  position: absolute;
  right: max(30px, 5vw);
  bottom: 38px;
  z-index: 1;
  width: min(230px, 28vw);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.hero-preview img {
  display: block;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 24px 70px var(--shadow);
}

.hero-preview span {
  display: inline-flex;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
}

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

.section-heading {
  display: grid;
  gap: 16px;
  margin-bottom: 30px;
}

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

.mechanic,
.panel,
.notice,
.shot-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(33, 47, 65, 0.08);
}

.mechanic {
  min-height: 210px;
  padding: 20px;
}

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

.tile-icon {
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: var(--leaf);
}

.icon-1 { background: var(--leaf); }
.icon-2 { background: var(--sky); }
.icon-3 { background: var(--plum); }
.icon-4 { background: var(--coral); }

.story-band {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: center;
}

.board-art,
.shot-frame img {
  display: block;
  width: 100%;
}

.board-art {
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(33, 47, 65, 0.14);
}

.screenshots-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

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

.shot-frame {
  overflow: hidden;
  margin: 0;
}

.footer {
  --footer-accent: var(--plum);
  display: flex;
  width: min(1160px, calc(100% - 40px));
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
}

.footer-identity,
.footer-actions,
.footer-brandline,
.footer-links,
.footer-platform,
.footer-game {
  display: flex;
  align-items: center;
}

.footer-identity {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-brandline {
  gap: 10px;
  flex-wrap: wrap;
}

.footer-platform,
.footer-game {
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.footer-platform-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.footer-brand-divider {
  width: 1px;
  height: 22px;
  background: rgba(23, 32, 42, 0.2);
}

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

.footer-actions {
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  gap: 8px;
  flex-wrap: wrap;
}

.footer-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

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

.footer-language-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.language-menu {
  position: relative;
}

.language-menu summary {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 850;
  list-style: none;
}

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

.language-icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.language-options {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 8;
  display: grid;
  width: min(220px, calc(100vw - 40px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(33, 47, 65, 0.16);
}

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

.footer .language-menu summary {
  color: var(--ink);
}

.footer .language-options a,
.language-options a {
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.language-options a:hover,
.language-options a[aria-current="true"] {
  background: var(--surface-soft);
}

.page-shell {
  background:
    linear-gradient(135deg, rgba(43, 132, 214, 0.09), transparent 38%),
    linear-gradient(225deg, rgba(239, 91, 104, 0.08), transparent 40%),
    var(--bg);
}

.content {
  width: min(840px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 80px;
}

.content h1 {
  font-size: clamp(44px, 7vw, 80px);
}

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

.content p,
.content li {
  color: var(--muted);
  font-size: 17px;
}

.panel,
.notice {
  margin: 28px 0;
  padding: 22px;
}

.contact-line {
  margin: 0;
}

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

.icon-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.bullet-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 4px;
  margin-top: 7px;
  background: var(--sun);
}

.pending-play {
  min-height: 58svh;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(247, 248, 251, 0.96), rgba(247, 248, 251, 0.9)),
      url("assets/number-orchard-solved.svg") right -118px top -80px / 430px auto no-repeat;
  }

  .hero-content {
    padding-top: 120px;
  }

  .hero-preview {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(260px, calc(100% - 40px));
    margin: -48px auto 34px;
  }

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

  .screenshots-header {
    display: grid;
  }
}

@media (max-width: 560px) {
  .nav,
  .hero-content,
  .mechanic-strip,
  .story-band,
  .screenshots,
  .footer,
  .content {
    width: min(100% - 28px, 1160px);
  }

  .brand {
    font-size: 20px;
  }

  .actions,
  .footer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .footer-links,
  .footer-language {
    width: 100%;
  }

  .footer-links a {
    flex: 1;
    justify-content: center;
    text-align: center;
  }
}
