:root {
  color-scheme: dark;
  --ink: #f4f1e9;
  --paper: #ece9e1;
  --paper-muted: #5f6564;
  --night: #07131c;
  --panel: #101f28;
  --muted: #a9b7b7;
  --mint: #9bd8c9;
  --sun: #f0a95e;
  --line: rgba(255, 255, 255, 0.16);
  font-family: Inter, "Noto Sans SC", "PingFang SC", sans-serif;
  letter-spacing: 0;
}

* { box-sizing: border-box; }
html { background: var(--night); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--night); line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.topbar {
  position: fixed; z-index: 20; top: 0; left: 0; right: 0; height: 72px; padding: 0 clamp(20px, 4vw, 64px);
  display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease;
}
.topbar.is-scrolled, .legal-body .topbar { background: rgba(7, 19, 28, .94); border-color: var(--line); backdrop-filter: blur(14px); }
.brand { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.topbar nav { display: flex; gap: clamp(16px, 2vw, 30px); color: #c1ccca; font-size: 14px; white-space: nowrap; }
.topbar nav a:hover, .topbar nav a:focus-visible { color: var(--mint); }

.company-hero { position: relative; min-height: min(820px, 88svh); overflow: hidden; border-bottom: 1px solid var(--line); }
.company-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.company-hero::after { content: ""; position: absolute; inset: 0; background: rgba(4, 13, 20, .18); }
.hero-copy { position: absolute; z-index: 2; left: clamp(24px, 8vw, 130px); right: clamp(24px, 8vw, 130px); bottom: clamp(48px, 9vh, 100px); }
.eyebrow, .section-index { color: var(--mint); text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.hero-copy h1 { margin: 14px 0 28px; max-width: 980px; font-size: clamp(64px, 10vw, 150px); line-height: .82; text-transform: uppercase; }
.hero-copy > p:not(.eyebrow) { max-width: 560px; margin: 0; color: #d9e1df; font-size: clamp(18px, 2vw, 24px); }
.hero-meta { display: flex; gap: 8px 30px; flex-wrap: wrap; margin-top: clamp(36px, 8vh, 84px); padding-top: 18px; border-top: 1px solid var(--line); color: #a9bbb8; font-size: 12px; text-transform: uppercase; }
.primary-action { display: inline-flex; margin-top: 22px; padding: 13px 18px; border: 1px solid var(--mint); color: var(--night); background: var(--mint); font-weight: 800; border-radius: 6px; }
.primary-action:hover, .primary-action:focus-visible { background: var(--ink); border-color: var(--ink); }

.studio-band, .services-section, .contact-band, .game-overview { padding: clamp(70px, 10vw, 150px) clamp(24px, 8vw, 130px); border-bottom: 1px solid var(--line); }
.studio-band { display: grid; grid-template-columns: minmax(150px, .55fr) minmax(280px, 1.45fr); gap: 48px; color: #12202a; background: var(--paper); }
.studio-band .section-index, .services-section .section-index { color: #34796e; }
h2 { margin: 0; font-size: clamp(34px, 5vw, 70px); line-height: 1.08; }
.studio-band div > p, .game-overview > div > p { max-width: 680px; color: var(--paper-muted); font-size: 18px; }
.services-section { color: #12202a; background: #f7f5ef; }
.section-heading { display: grid; grid-template-columns: minmax(150px, .55fr) minmax(280px, 1fr) minmax(220px, .45fr); gap: 30px; align-items: end; margin-bottom: 56px; }
.section-heading > p:last-child { margin: 0; color: var(--paper-muted); }
.service-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #b8b9b3; border-bottom: 1px solid #b8b9b3; }
.service-item { min-width: 0; padding: 34px clamp(20px, 3vw, 42px) 38px; border-right: 1px solid #b8b9b3; }
.service-item:first-child { padding-left: 0; }
.service-item:last-child { padding-right: 0; border-right: 0; }
.service-item h3 { margin: 70px 0 18px; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; }
.service-item > p:last-child { margin: 0; color: var(--paper-muted); font-size: 16px; }
.game-list { border-top: 1px solid #b8b9b3; }
.game-case { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: clamp(30px, 5vw, 80px); padding: 42px 0; border-bottom: 1px solid #b8b9b3; }
.game-case figure { margin: 0; overflow: hidden; background: #17242b; aspect-ratio: 16 / 9; }
.game-case img { width: 100%; height: 100%; object-fit: cover; }
.game-case-copy { display: flex; flex-direction: column; align-items: flex-start; }
.case-index, .case-name { margin: 0; color: #34796e; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.game-case h3 { margin: auto 0 4px; font-size: clamp(38px, 5vw, 70px); line-height: 1; }
.game-case-copy > p:not(.case-index, .case-name) { margin: 24px 0; color: var(--paper-muted); font-size: 17px; }
.case-meta { width: 100%; display: flex; justify-content: space-between; gap: 20px; padding-top: 14px; border-top: 1px solid #b8b9b3; color: #4e5655; font-size: 12px; }
.contact-band { display: grid; grid-template-columns: minmax(150px, .55fr) minmax(280px, 1.45fr); gap: 48px; color: #102028; background: var(--mint); }
.contact-band .section-index { color: #275e56; }
.contact-band div > p { margin-top: 28px; color: #365851; font-size: 18px; }
.footer { min-height: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px clamp(24px, 8vw, 130px); color: var(--muted); font-size: 13px; text-align: center; }
.footer-meta { display: flex; gap: 8px; align-items: center; }
.footer-meta a:hover, .footer-meta a:focus-visible { color: var(--mint); }

.game-hero { position: relative; min-height: min(900px, 92vh); overflow: hidden; border-bottom: 1px solid var(--line); }
.game-hero img { width: 100%; height: min(900px, 92vh); object-fit: cover; }
.game-hero::after { content: ""; position: absolute; inset: 0; background: rgba(5, 13, 23, .45); }
.game-title { position: absolute; z-index: 2; left: clamp(24px, 8vw, 130px); bottom: clamp(60px, 12vh, 140px); max-width: 620px; }
.game-title > p:not(.eyebrow) { max-width: 520px; color: #d3dede; font-size: clamp(17px, 2vw, 22px); }
.game-title h1 { margin: 8px 0; font-size: clamp(56px, 9vw, 126px); line-height: .95; }
.game-overview { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(280px, 1.3fr); gap: 48px; }
.game-overview dl { margin-top: 42px; }
.game-overview dl div, .legal-meta div { display: grid; grid-template-columns: 110px 1fr; padding: 12px 0; border-top: 1px solid var(--line); }
dt { color: var(--muted); } dd { margin: 0; }
.legal-links { display: grid; grid-template-columns: repeat(3, 1fr); }
.legal-links a { min-height: 180px; padding: 35px; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); background: var(--panel); }
.legal-links a:hover { background: #142632; }
.legal-links span { font-size: 24px; font-weight: 800; }.legal-links small { color: var(--mint); }

.legal-layout { padding: 130px 24px 80px; }
.legal-document { max-width: 860px; margin: 0 auto; }
.legal-document h1 { margin: 10px 0; font-size: clamp(44px, 7vw, 78px); line-height: 1; }
.legal-lead { color: var(--muted); font-size: 19px; }
.legal-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 42px 0; }
.legal-meta div { display: block; }.legal-meta dd { margin-top: 5px; }
.legal-document section { padding: 30px 0; border-top: 1px solid var(--line); }
.legal-document section h2 { font-size: 26px; margin-bottom: 14px; }
.legal-document li { margin: 8px 0; }
.legal-meta-text { margin: 24px 0 34px; color: var(--muted); }
.privacy-en { margin-top: 64px; padding-top: 46px; border-top: 1px solid var(--line); }
.privacy-en > h1 { margin: 0 0 16px; font-size: clamp(40px, 6vw, 68px); line-height: 1; }
.request-box { padding: 18px 22px; border: 1px solid #365663; background: #0b2530; }
.request-box p { margin: 0; }
.release-note { margin: 28px 0; padding: 16px 18px; border-left: 3px solid var(--sun); background: rgba(255, 181, 94, .09); color: #ffd4a1; }
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.error-page h1 { margin: 8px 0; font-size: clamp(42px, 8vw, 82px); }

@media (max-width: 760px) {
  .topbar { height: 62px; }.topbar nav { gap: 16px; }.topbar nav a:nth-child(n+3) { display: none; }
  .company-hero { min-height: 560px; height: 78svh; max-height: 680px; }
  .company-hero > img { object-position: 62% center; }
  .game-hero, .game-hero img { min-height: 550px; height: 82vh; max-height: 660px; }
  .hero-copy, .game-title { left: 24px; right: 24px; bottom: 38px; }
  .hero-copy h1 { font-size: clamp(42px, 13vw, 54px); }
  .hero-meta { margin-top: 34px; }
  .game-title h1 { font-size: clamp(46px, 14vw, 58px); }
  .studio-band, .section-heading, .game-case, .contact-band, .game-overview { grid-template-columns: 1fr; gap: 24px; }
  .service-list { grid-template-columns: 1fr; }
  .service-item, .service-item:first-child, .service-item:last-child { padding: 28px 0; border-right: 0; border-bottom: 1px solid #b8b9b3; }
  .service-item:last-child { border-bottom: 0; }
  .service-item h3 { margin: 24px 0 12px; }
  .section-heading { align-items: start; margin-bottom: 32px; }
  .game-case { padding: 28px 0 36px; }
  .game-case h3 { margin: 18px 0 4px; }
  .legal-links { grid-template-columns: 1fr; }.legal-links a { min-height: 120px; border-bottom: 1px solid var(--line); }
  .legal-meta { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
