:root {
  --bg: #070808;
  --bg-2: #101214;
  --ink: #f7f1e6;
  --muted: #c2b8a8;
  --gold: #c9a46c;
  --gold-2: #e8d5a3;
  --jade: #8f9f6e;
  --line: rgba(201, 164, 108, 0.22);
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --en: "Cormorant Garamond", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  color-scheme: dark;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.grain,
.orbit {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.grain {
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: #050505;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-mark {
  text-align: center;
  letter-spacing: 0.46em;
}

.loader-mark img {
  width: 48px;
  margin: 0 auto 16px;
  color: var(--gold);
  filter: invert(78%) sepia(28%) saturate(500%) hue-rotate(6deg);
}

.loader-mark p {
  margin: 0;
  font-family: var(--en);
  font-size: 13px;
  color: var(--gold-2);
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 7vw;
  transition: background 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-solid {
  background: rgba(7, 8, 8, 0.78);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2;
}

.nav-brand img {
  width: 28px;
  filter: invert(78%) sepia(28%) saturate(500%) hue-rotate(6deg);
}

.nav-brand span {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 14px;
  letter-spacing: 0.14em;
  color: #d8d0c3;
}

.nav-links a:hover {
  color: var(--gold-2);
}

.nav-cta {
  border: 1px solid var(--line);
  padding: 8px 16px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  border: 1px solid var(--gold);
}

.nav-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--gold-2);
}

.nav-toggle span:first-child { top: 13px; }
.nav-toggle span:last-child { bottom: 13px; }

main,
footer {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 18vh 7vw 8vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(201, 164, 108, 0.16), transparent 42%),
    radial-gradient(ellipse at 12% 80%, rgba(143, 159, 110, 0.1), transparent 36%);
}

.hero::after {
  content: "青柚";
  position: absolute;
  right: 4vw;
  top: 18vh;
  font-family: var(--serif);
  font-size: clamp(120px, 22vw, 280px);
  color: rgba(243, 236, 224, 0.035);
  pointer-events: none;
  letter-spacing: 0.08em;
}

.hero-kicker,
.eyebrow {
  font-family: var(--en);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: 13px;
  margin: 0 0 18px;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-kicker i {
  width: 48px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.hero h1 {
  margin: 0;
  font-weight: 500;
}

.hero h1 em,
.hero h1 strong {
  display: block;
  font-style: normal;
}

.hero h1 em {
  font-family: var(--serif);
  font-size: clamp(22px, 3.2vw, 36px);
  color: var(--gold-2);
  margin-bottom: 10px;
}

.hero h1 strong {
  font-family: var(--serif);
  font-size: clamp(34px, 5.6vw, 72px);
  line-height: 1.22;
  letter-spacing: 0.04em;
}

.hero-lead {
  max-width: 42em;
  color: var(--muted);
  font-size: 16px;
}

.hero-lead-2 {
  margin-top: 12px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 12px 0 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 48px;
  padding: 0 22px;
  letter-spacing: 0.16em;
  font-size: 13px;
}

.btn-gold {
  background: var(--gold);
  color: #1a140c;
}

.btn-gold:hover {
  background: var(--gold-2);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}

.hero-meta {
  display: flex;
  gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  max-width: 560px;
}

.hero-meta small {
  display: block;
  font-family: var(--en);
  letter-spacing: 0.18em;
  color: var(--muted);
}

.hero-meta b {
  font-family: var(--en);
  font-size: 28px;
  font-weight: 500;
}

.scroll-hint {
  position: absolute;
  right: 7vw;
  bottom: 8vh;
  writing-mode: vertical-rl;
  letter-spacing: 0.28em;
  font-size: 12px;
  color: var(--muted);
}

.games,
.studio,
.contact {
  padding: 120px 7vw;
  scroll-margin-top: 84px;
}

.section-head h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
}

.section-head p:last-child {
  max-width: 36em;
  color: var(--muted);
}

.game-list {
  display: grid;
  gap: 28px;
  margin-top: 56px;
}

.game-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 360px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: visible;
  transition: transform 0.45s ease, border-color 0.45s ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 164, 108, 0.5);
}

.game-visual {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.game-visual svg,
.game-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-visual img {
  position: absolute;
  inset: 0;
  object-position: center 18%;
}

.game-visual-survival img {
  object-position: center 48%;
}

.game-visual-agents img {
  object-position: center 46%;
}

.game-card-art {
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: auto auto;
}

.game-card-art .game-visual,
.game-card-art .game-copy {
  min-height: 360px;
}

.game-card-art .art-thumbs {
  grid-column: 1 / -1;
}

.game-slogan {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--gold-2);
  letter-spacing: 0.12em;
}

.art-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 8px;
  background: #0b0c0d;
}

.art-thumbs-4 {
  grid-template-columns: repeat(4, 1fr);
}

.art-thumb {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 8;
}

.art-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.art-thumb:hover img {
  transform: scale(1.06);
}

.game-index {
  position: absolute;
  left: 24px;
  bottom: 20px;
  font-family: var(--en);
  font-size: 42px;
  color: rgba(243, 236, 224, 0.28);
}

.game-copy {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-genre {
  margin: 0 0 10px;
  color: var(--gold);
  letter-spacing: 0.16em;
  font-size: 12px;
}

.game-copy h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 36px;
}

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

.text-link {
  align-self: flex-start;
  margin-top: 16px;
  color: var(--gold-2);
  letter-spacing: 0.16em;
  font-size: 13px;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
}

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

.game-actions .text-link {
  margin-top: 0;
}

.game-actions .btn {
  min-width: 132px;
  height: 42px;
  padding: 0 18px;
}

.studio {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.studio-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

.studio-copy p {
  max-width: 38em;
  color: var(--muted);
}

.studio-copy p + p {
  margin-top: 16px;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 72px;
}

.values article {
  padding: 28px 24px;
  border: 1px solid var(--line);
  background: rgba(16, 18, 20, 0.45);
}

.values small {
  display: block;
  font-family: var(--en);
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 16px;
}

.values h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 22px;
}

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

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 20px;
  margin: 0;
}

.facts dt {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.facts dd {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 24px;
}

.scope {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 32px;
  margin-top: 72px;
}

.scope h3 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 16px;
}

.scope ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.scope li + li {
  margin-top: 16px;
}

.scope li b {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  margin-bottom: 4px;
}

.notice {
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
}

.notice p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.notice p + p {
  margin-top: 14px;
}

.contact-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

.contact-item {
  display: block;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(16, 18, 20, 0.6);
  min-height: 160px;
  transition: border-color 0.35s ease;
}

.contact-item:hover {
  border-color: rgba(201, 164, 108, 0.5);
}

.contact-item small {
  display: block;
  color: var(--gold);
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}

.contact-item a {
  display: block;
}

.contact-item a + a {
  margin-top: 8px;
}

.contact-item a:hover strong {
  color: var(--gold-2);
}

.contact-item strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.55;
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px 7vw 48px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

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

.footer-links a {
  color: #d8d0c3;
  letter-spacing: 0.08em;
}

.footer-notice,
.footer-age {
  margin: 0;
  line-height: 1.8;
  color: #8a8276;
}

.footer-age {
  font-size: 12px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

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

.footer-brand img {
  width: 24px;
  filter: invert(78%) sepia(28%) saturate(500%) hue-rotate(6deg);
}

.footer-brand b {
  display: block;
  color: var(--ink);
  font-family: var(--serif);
}

.footer-brand span {
  font-family: var(--en);
  letter-spacing: 0.12em;
}

.footer a:hover {
  color: var(--gold);
}

.modal {
  position: relative;
  width: min(720px, 92vw);
  border: 1px solid var(--line);
  background: #0d0e10;
  color: var(--ink);
  padding: 40px;
}

.modal-wide {
  width: min(920px, 94vw);
}

.modal-gallery {
  margin-top: 24px;
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
  background: transparent;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.modal h3 {
  font-family: var(--serif);
  font-size: 36px;
  margin: 0 0 8px;
}

.modal .game-genre {
  margin-bottom: 18px;
}

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

.modal article p + p {
  margin-top: 14px;
}

.modal-points {
  margin: 22px 0 0;
  padding-left: 1.15em;
  color: var(--muted);
  line-height: 1.8;
}

.modal-points li + li {
  margin-top: 8px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  color: var(--gold);
  letter-spacing: 0.14em;
}

.lightbox {
  width: min(1100px, 94vw);
  max-height: 92vh;
  border: 1px solid var(--line);
  background: #0a0b0c;
  padding: 48px 24px 24px;
  color: var(--ink);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.lightbox img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
}

.lightbox p {
  margin: 12px 0 0;
  text-align: center;
  color: var(--gold-2);
  letter-spacing: 0.12em;
}

@media (max-width: 980px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(7, 8, 8, 0.96);
    padding: 22vh 10vw;
    gap: 28px;
  }

  .nav-links.is-open a {
    font-size: 28px;
    color: var(--ink);
  }

  .game-card,
  .game-card-art,
  .studio-grid,
  .scope,
  .values,
  .contact-panel {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    display: grid;
  }

  .game-card-art .game-visual,
  .game-card-art .game-copy {
    min-height: 280px;
  }

  .art-thumbs,
  .art-thumbs-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .art-thumbs:not(.art-thumbs-4) .art-thumb:last-child {
    grid-column: 1 / -1;
  }

  .modal-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .hero h1 strong {
    max-width: none;
  }

  .break-m {
    display: block;
  }

  .scroll-hint {
    display: none;
  }

  .games,
  .studio,
  .contact {
    padding: 88px 6vw;
  }
}

html.is-preview .loader {
  display: none;
}

html.is-preview .hero {
  min-height: 900px;
  height: 900px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loader { transition: none; }
}

.legal-page .nav-cta {
  display: inline-flex;
}

.legal-page .nav-toggle {
  display: none;
}

.legal-wrap {
  padding: 140px 7vw 80px;
  max-width: 820px;
  margin: 0 auto;
}

.legal-wrap h1 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 48px);
}

.legal-meta {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
}

.legal-wrap h2 {
  margin: 36px 0 12px;
  font-family: var(--serif);
  font-size: 22px;
}

.legal-wrap p,
.legal-wrap li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.legal-wrap ul {
  padding-left: 1.2em;
}
