:root {
  color-scheme: light;
  --ink: #18211d;
  --muted: #5f6963;
  --paper: #f7f8f5;
  --white: #ffffff;
  --line: #d8ddd7;
  --green: #1f6a4d;
  --green-dark: #183c30;
  --red: #b4382f;
  --yellow: #f0c848;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 8px 12px; color: var(--white); background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.section-inner { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 72px; padding: 10px max(24px, calc((100vw - 1180px) / 2)); color: var(--white); border-bottom: 1px solid rgba(255,255,255,.18); transition: background-color .2s, color .2s, box-shadow .2s; }
.site-header.is-scrolled { color: var(--ink); background: rgba(255,255,255,.96); box-shadow: 0 8px 30px rgba(23,33,28,.08); border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; }
.brand img { width: 42px; height: 42px; object-fit: cover; object-position: 50% 26%; border-radius: 50%; background: var(--white); }
.site-nav { justify-self: center; display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 650; }
.site-nav a { border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: currentColor; }
.header-action { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border: 1px solid currentColor; border-radius: 4px; font-size: 14px; font-weight: 750; }
.menu-button { display: none; width: 40px; height: 40px; padding: 10px; border: 0; background: transparent; }
.menu-button span { display: block; height: 2px; margin: 4px 0; background: currentColor; }

.hero { position: relative; display: flex; align-items: center; min-height: min(820px, 88vh); color: var(--white); background: url('/assets/personality-roster.webp') center 42% / cover no-repeat; overflow: hidden; }
.hero-shade { position: absolute; inset: 0; background: rgba(15, 24, 20, .73); }
.hero-content { position: relative; z-index: 1; width: min(1180px, calc(100% - 48px)); margin: 38px auto 0; }
.eyebrow, .section-kicker { margin: 0 0 16px; color: var(--red); font-size: 13px; font-weight: 800; }
.hero .eyebrow { color: #f4d15d; }
.hero h1 { max-width: 850px; margin: 0; font-size: 68px; line-height: 1.05; letter-spacing: 0; }
.hero-copy { max-width: 690px; margin: 24px 0 0; font-size: 21px; line-height: 1.7; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 0 22px; color: var(--white); background: var(--red); border-radius: 4px; font-weight: 800; transition: transform .18s, background-color .18s; }
.primary-button:hover { background: #8f2923; transform: translateY(-2px); }
.text-link { padding-block: 8px; border-bottom: 1px solid currentColor; font-weight: 700; }
.hero-note { margin-top: 28px; color: rgba(255,255,255,.65); font-size: 12px; }
.hero-next { position: absolute; z-index: 1; right: max(24px, calc((100vw - 1180px) / 2)); bottom: 28px; display: flex; gap: 12px; align-items: center; font-size: 12px; font-weight: 700; }

.signal-band { color: var(--white); background: var(--green-dark); }
.signal-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.signal-grid div { min-width: 0; padding: 26px 30px; border-left: 1px solid rgba(255,255,255,.16); }
.signal-grid div:last-child { border-right: 1px solid rgba(255,255,255,.16); }
.signal-grid strong, .signal-grid span { display: block; }
.signal-grid strong { font-size: 28px; }
.signal-grid span { margin-top: 4px; color: rgba(255,255,255,.68); font-size: 12px; }

.product-section, .personality-section { padding: 110px 0; }
.product-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .75fr); gap: 90px; align-items: center; }
.product-copy h2, .section-heading h2, .personality-heading h2, .responsibility-grid h2, .final-cta h2 { margin: 0; max-width: 820px; font-size: 42px; line-height: 1.24; letter-spacing: 0; }
.product-copy > p:not(.section-kicker) { max-width: 680px; margin: 24px 0 0; color: var(--muted); font-size: 17px; }
.feature-lines { margin-top: 40px; border-top: 1px solid var(--line); }
.feature-lines > div { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.feature-lines span { color: var(--red); font-size: 12px; font-weight: 850; }
.feature-lines p { margin: 0; color: var(--muted); }
.feature-lines strong { color: var(--ink); }
.game-screen { width: min(100%, 410px); margin: 0 auto; padding: 12px; background: #151b18; border-radius: 8px; box-shadow: 0 26px 70px rgba(30,44,36,.2); }
.game-screen img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 4px; }
.game-screen figcaption { padding: 10px 4px 0; color: rgba(255,255,255,.66); font-size: 11px; text-align: center; }

.rules-section { padding: 100px 0; background: var(--white); }
.section-heading { display: grid; grid-template-columns: .45fr 1fr; gap: 40px; align-items: start; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 56px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps li { min-width: 0; padding: 28px; border-left: 1px solid var(--line); }
.steps li:last-child { border-right: 1px solid var(--line); }
.steps > li > span { color: var(--red); font-size: 12px; font-weight: 850; }
.steps h3 { margin: 28px 0 8px; font-size: 20px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

.personality-section { background: #eef2ee; }
.personality-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: end; margin-bottom: 42px; }
.personality-heading > p { margin: 0 0 5px; color: var(--muted); }
.personality-roster { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid #cfd5ce; border-radius: 4px; }

.responsibility-section { padding: 96px 0; color: var(--white); background: var(--ink); }
.responsibility-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; }
.responsibility-section .section-kicker { color: var(--yellow); }
.responsibility-copy { display: grid; gap: 20px; }
.responsibility-copy p { margin: 0; color: rgba(255,255,255,.75); font-size: 17px; }
.final-cta { padding: 100px 0; text-align: center; background: var(--yellow); }
.final-cta .section-kicker { color: var(--ink); }
.final-cta h2 { margin-inline: auto; }
.final-cta .primary-button { margin-top: 32px; background: var(--ink); }

.site-footer { padding: 30px 0; color: #cdd4d0; background: #101713; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; font-size: 11px; }
.footer-inner p { margin: 0; text-align: center; }
.footer-brand { display: flex; gap: 8px; align-items: center; color: var(--white); font-size: 13px; font-weight: 750; }
.footer-brand img { width: 30px; height: 30px; object-fit: cover; object-position: 50% 26%; border-radius: 50%; background: var(--white); }

@media (max-width: 900px) {
  .site-header { grid-template-columns: auto auto; justify-content: space-between; min-height: 64px; padding-inline: 20px; }
  .menu-button { display: block; color: inherit; }
  .header-action { display: none; }
  .site-nav { position: absolute; inset: 64px 0 auto; display: none; align-items: stretch; gap: 0; padding: 10px 20px 20px; color: var(--ink); background: var(--white); border-bottom: 1px solid var(--line); }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hero { min-height: 760px; }
  .hero h1 { font-size: 54px; }
  .hero-copy { font-size: 18px; }
  .product-grid { grid-template-columns: 1fr; gap: 56px; }
  .section-heading, .personality-heading, .responsibility-grid { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:nth-child(3) { border-top: 1px solid var(--line); }
  .steps li:nth-child(4) { border-top: 1px solid var(--line); }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; }
}

@media (max-width: 620px) {
  .section-inner, .hero-content { width: min(100% - 32px, 1180px); }
  .brand { font-size: 15px; }
  .brand img { width: 38px; height: 38px; }
  .hero { min-height: 720px; align-items: flex-end; padding-bottom: 108px; background-position: 48% 42%; }
  .hero-content { margin-top: 0; }
  .hero h1 { font-size: 44px; }
  .hero-copy { margin-top: 18px; font-size: 17px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 14px; margin-top: 26px; }
  .primary-button { width: 100%; }
  .hero-next { right: 16px; bottom: 24px; }
  .signal-grid { grid-template-columns: repeat(2, 1fr); }
  .signal-grid div { padding: 20px 18px; border-bottom: 1px solid rgba(255,255,255,.16); }
  .signal-grid strong { font-size: 23px; }
  .product-section, .personality-section { padding: 76px 0; }
  .rules-section, .responsibility-section, .final-cta { padding: 72px 0; }
  .product-copy h2, .section-heading h2, .personality-heading h2, .responsibility-grid h2, .final-cta h2 { font-size: 32px; }
  .feature-lines > div { grid-template-columns: 32px 1fr; }
  .game-screen { width: min(100%, 360px); }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:nth-child(3), .steps li:nth-child(4) { border: 0; border-top: 1px solid var(--line); }
  .steps li:first-child { border-top: 0; }
  .personality-heading { margin-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
