* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --paper: #fbfcf7;
  --paper-deep: #edf4ef;
  --ink: #15212b;
  --muted: #52626d;
  --quiet: #75838b;
  --line: rgba(31, 55, 68, 0.16);
  --grid: #203747;
  --fill: #243445;
  --empty: #fff7d8;
  --teal: #0b8f8a;
  --mint: #8fe0c8;
  --coral: #ef5d48;
  --gold: #f5bc43;
  --shadow: rgba(20, 35, 45, 0.18);
}

body {
  margin: 0;
  background: var(--paper);
  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(--teal);
}

img {
  max-width: 100%;
}

.shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(143, 224, 200, 0.24), transparent 440px),
    linear-gradient(135deg, rgba(245, 188, 67, 0.16) 0 18%, transparent 18% 100%),
    linear-gradient(225deg, rgba(239, 93, 72, 0.12) 0 16%, transparent 16% 100%),
    var(--paper);
}

.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;
}

.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(--grid);
  border-radius: 5px;
  background:
    linear-gradient(90deg, var(--fill) 0 48%, transparent 48% 100%),
    linear-gradient(180deg, transparent 0 48%, var(--gold) 48% 100%),
    var(--paper);
  box-shadow: 0 6px 18px rgba(11, 143, 138, 0.24);
  content: "";
}

.platform-link {
  display: inline-flex;
  width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 4px;
  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 22px rgba(11, 143, 138, 0.2);
}

.brand-divider {
  width: 1px;
  height: 30px;
  flex: 0 0 auto;
  background: rgba(21, 33, 43, 0.22);
}

.hero {
  position: relative;
  min-height: 88svh;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(251, 252, 247, 0.98) 0%, rgba(251, 252, 247, 0.92) 46%, rgba(251, 252, 247, 0.66) 100%),
    url("assets/mosaic-sweep-og-1200x630.svg") right center / cover no-repeat;
}

.hero::before {
  position: absolute;
  inset: -10%;
  background:
    linear-gradient(rgba(32, 55, 71, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 55, 71, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.72) 42%, transparent 82%);
  opacity: 0.76;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 22svh;
  background: linear-gradient(180deg, transparent 0%, var(--paper) 88%);
  content: "";
  pointer-events: none;
}

.hero-fx {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.stage-line,
.stage-cell {
  position: absolute;
  display: block;
}

.stage-line {
  width: 360px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(11, 143, 138, 0.42), transparent);
  transform-origin: left center;
}

.line-a {
  top: 30%;
  right: 10%;
  transform: rotate(-12deg);
}

.line-b {
  top: 68%;
  right: 20%;
  background: linear-gradient(90deg, transparent, rgba(239, 93, 72, 0.36), transparent);
  transform: rotate(9deg);
}

.stage-cell {
  width: 24px;
  height: 24px;
  border: 2px solid var(--grid);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(21, 33, 43, 0.18);
}

.cell-a {
  top: 23%;
  right: 18%;
  background: var(--gold);
}

.cell-b {
  top: 46%;
  right: 7%;
  background: var(--fill);
}

.cell-c {
  right: 24%;
  bottom: 18%;
  background: var(--mint);
}

.hero-layout,
.story-band,
.screenshots,
.play-status,
.content,
.mechanic-strip {
  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: 52px;
  align-items: center;
  padding: 52px 0 92px;
}

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

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

h1,
h2 {
  margin: 0;
  color: var(--ink);
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  font-size: 72px;
  font-weight: 950;
}

h2 {
  font-size: 36px;
  font-weight: 920;
}

.hero-lead {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: 28px;
  font-weight: 850;
  line-height: 1.2;
}

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

.hero-summary {
  max-width: 620px;
  margin: 20px 0 0;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(32, 55, 71, 0.16);
  border-radius: 8px;
  padding: 12px 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 32px rgba(21, 33, 43, 0.1);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
  text-decoration: none;
}

.button.primary {
  border-color: var(--grid);
  color: #ffffff;
  background: var(--grid);
}

.button.pending::after {
  width: 8px;
  height: 8px;
  margin-left: 10px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
}

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

.phone-frame {
  width: min(330px, 100%);
  border: 10px solid #111d27;
  border-radius: 32px;
  padding: 12px;
  background: #101922;
  box-shadow: 0 28px 80px rgba(21, 33, 43, 0.28);
}

.phone-shot {
  display: block;
  width: 100%;
  border-radius: 20px;
  background: var(--paper);
}

.play-badge {
  margin-top: -10px;
  border: 2px solid var(--grid);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 16px 28px rgba(21, 33, 43, 0.12);
  font-size: 13px;
  font-weight: 900;
}

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

.mechanic {
  min-height: 154px;
  border: 2px solid rgba(32, 55, 71, 0.12);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 30px rgba(21, 33, 43, 0.08);
}

.tile-icon {
  display: block;
  width: 34px;
  height: 34px;
  border: 2px solid var(--grid);
  border-radius: 8px;
  margin-bottom: 12px;
  background:
    linear-gradient(90deg, transparent 0 28%, var(--fill) 28% 58%, transparent 58% 100%),
    linear-gradient(180deg, var(--gold) 0 48%, var(--paper) 48% 100%);
}

.tile-icon.fill {
  background: var(--fill);
}

.tile-icon.clear {
  background:
    linear-gradient(45deg, transparent 0 44%, var(--coral) 44% 56%, transparent 56% 100%),
    linear-gradient(-45deg, transparent 0 44%, var(--coral) 44% 56%, transparent 56% 100%),
    var(--empty);
}

.tile-icon.reveal {
  background:
    linear-gradient(90deg, var(--teal) 0 50%, var(--gold) 50% 100%),
    var(--mint);
}

.mechanic strong {
  display: block;
  font-size: 18px;
  font-weight: 920;
}

.mechanic .detail {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.story-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  gap: 42px;
  align-items: center;
  padding: 80px 0;
}

.board-figure {
  margin: 0;
}

.board-figure img {
  display: block;
  width: 100%;
  border: 2px solid rgba(32, 55, 71, 0.12);
  border-radius: 8px;
  background: white;
  box-shadow: 0 24px 70px rgba(21, 33, 43, 0.14);
}

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

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

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

.shot-frame {
  margin: 0;
  border: 2px solid rgba(32, 55, 71, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 44px rgba(21, 33, 43, 0.1);
}

.shot-frame img {
  display: block;
  width: 100%;
  border-radius: 6px;
}

.play-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  padding: 34px 0;
}

.play-status h2 {
  font-size: 30px;
}

.content {
  max-width: 850px;
  padding: 54px 0 86px;
}

.content h1 {
  font-size: 56px;
}

.content h2 {
  margin-top: 34px;
  font-size: 26px;
}

.content .lead {
  color: var(--ink);
  font-size: 20px;
  font-weight: 780;
}

.panel {
  border: 2px solid rgba(32, 55, 71, 0.12);
  border-radius: 8px;
  margin: 28px 0;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-line {
  font-weight: 750;
}

.icon-list {
  display: grid;
  gap: 12px;
  padding-left: 20px;
}

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

.footer-identity {
  display: grid;
  gap: 10px;
}

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

.footer-platform,
.footer-game {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

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

.footer-brand-divider {
  width: 1px;
  height: 24px;
  background: rgba(21, 33, 43, 0.22);
}

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

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

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

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

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

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

.language-menu {
  position: relative;
}

.language-menu summary {
  display: inline-flex;
  min-height: 36px;
  min-width: 96px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid rgba(32, 55, 71, 0.12);
  border-radius: 8px;
  padding: 7px 11px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  list-style: none;
  user-select: 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-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.language-options {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 8;
  display: grid;
  width: min(220px, calc(100vw - 40px));
  border: 2px solid rgba(32, 55, 71, 0.14);
  border-radius: 8px;
  padding: 6px;
  background: #ffffff;
  box-shadow: 0 22px 60px rgba(21, 33, 43, 0.18);
}

.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: 850;
  line-height: 1.15;
  text-decoration: none;
}

.language-options a:hover,
.language-options a[aria-current="true"] {
  color: var(--ink);
  background: var(--paper-deep);
}

.play-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 48px;
  align-items: center;
  width: min(1160px, calc(100% - 40px));
  min-height: 68svh;
  margin: 0 auto;
  padding: 54px 0 86px;
}

.play-page h1 {
  font-size: 56px;
}

.play-page p {
  color: var(--muted);
  font-size: 18px;
}

.play-card {
  border: 2px solid rgba(32, 55, 71, 0.14);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 24px 64px rgba(21, 33, 43, 0.12);
}

@media (max-width: 860px) {
  .hero-layout,
  .story-band,
  .screenshots-header,
  .play-page {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    gap: 34px;
    padding-top: 30px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-lead {
    font-size: 23px;
  }

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

  .play-status,
  .footer {
    flex-direction: column;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
