:root {
  --bg: #071113;
  --bg-deep: #040a0c;
  --panel: #0d1a1c;
  --paper: #eef5f2;
  --ink: #edf4f2;
  --muted: #9baaaa;
  --dim: #647477;
  --accent: #79e1b5;
  --accent-soft: #b0f4d7;
  --line: rgba(222, 240, 235, 0.14);
  --page: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-deep); }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 9%, rgba(51, 130, 99, 0.2), transparent 30rem),
    linear-gradient(180deg, #0a1719 0%, var(--bg) 52%, var(--bg-deep) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { color: #04100d; background: var(--accent); }

.site-header,
main,
footer {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.055em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--accent-soft);
  border: 1px solid rgba(121, 225, 181, 0.5);
  background: rgba(121, 225, 181, 0.07);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
}
.footer-links a { transition: color 160ms ease; }
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--accent-soft); }

.section-kicker,
.game-card-meta,
.breadcrumb,
.project-facts {
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 9px;
  letter-spacing: 0.13em;
}
.section-kicker { margin: 0 0 6px; }

.game-card {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(360px, 0.84fr);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.012);
}
.game-card-image { min-height: 100%; overflow: hidden; }
.game-card-image img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  transition: transform 360ms ease;
}
.game-card-image:hover img,
.game-card-image:focus-visible img { transform: scale(1.018); }
.game-card-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 5vw, 68px);
  border-left: 1px solid var(--line);
}
.game-card-meta { display: flex; justify-content: space-between; gap: 20px; color: var(--accent); }
.game-card-copy h3 {
  margin: 34px 0 18px;
  color: #f1f8f6;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 590;
  letter-spacing: -0.055em;
  line-height: 1;
}
.game-card-copy h3 span { display: block; margin-top: 10px; color: var(--muted); font-size: 0.55em; letter-spacing: -0.025em; }
.game-card-copy > p { margin: 0; color: var(--muted); font-size: 15px; }
.game-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 36px; }
.text-link { color: var(--accent-soft); font-size: 12px; }
.text-link:hover,
.text-link:focus-visible { text-decoration: underline; text-underline-offset: 5px; }

.subpage main { padding-bottom: 48px; }
.project-hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(44px, 6vw, 88px);
  padding: 74px 0 88px;
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 56px; }
.breadcrumb a { color: var(--accent-soft); }
.project-hero h1 span { color: var(--muted); font-size: 0.58em; letter-spacing: -0.035em; }
.project-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  letter-spacing: 0;
}
.project-facts span { min-width: 0; overflow-wrap: anywhere; }
.project-facts strong { display: block; margin-bottom: 5px; color: var(--accent); font-size: 8px; letter-spacing: 0.14em; }
.compact-section { padding-top: 108px; }
.support-panel {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 44px;
  margin-bottom: 28px;
  padding: clamp(34px, 6vw, 70px);
  border: 1px solid rgba(121, 225, 181, 0.28);
  background: linear-gradient(135deg, rgba(121,225,181,0.1), rgba(7,17,19,0.72));
}
.support-panel h2 { font-size: clamp(36px, 5vw, 64px); }
.support-panel p:not(.eyebrow) { max-width: 620px; margin: 18px 0 0; color: var(--muted); }
.support-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

.document-hero { max-width: 880px; padding: 126px 0 88px; }
.document-hero h1 { font-size: clamp(52px, 8vw, 100px); }
.policy-directory { padding: 0 0 112px; }
.policy-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.012);
}
.policy-card img { width: 112px; height: 112px; border: 1px solid var(--line); }
.policy-card h2 { font-size: clamp(30px, 4vw, 48px); }
.policy-card h2 span { color: var(--muted); font-size: 0.62em; }
.policy-card p:not(.eyebrow) { max-width: 650px; margin: 16px 0 0; color: var(--muted); }
.privacy-contact { padding: 48px 0 88px; border-top: 1px solid var(--line); }
.privacy-contact p { margin: 0 0 8px; color: var(--muted); }
.privacy-contact a { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; text-decoration: underline; text-underline-offset: 5px; }

.policy-shell { max-width: 940px; padding: 56px 0 116px; }
.policy-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  margin-bottom: 62px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.policy-toolbar .breadcrumb { margin: 0; }
.language-switcher { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.language-switcher button {
  min-height: 34px;
  padding: 0 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: transparent;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.language-switcher button[aria-pressed="true"] { color: #06130f; border-color: var(--accent); background: var(--accent); }
.language-switcher button:hover,
.language-switcher button:focus-visible { border-color: rgba(121,225,181,0.65); }
.policy-document {
  padding: clamp(30px, 6vw, 74px);
  color: #dce7e4;
  border: 1px solid var(--line);
  background: rgba(4,10,12,0.5);
}
.policy-document [hidden] { display: none; }
.policy-document h1 { font-size: clamp(48px, 8vw, 82px); }
.policy-summary { max-width: 720px; margin: 28px 0 48px; color: var(--muted); font-size: 18px; }
.policy-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 70px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.policy-meta div { min-width: 0; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.policy-meta dt { color: var(--dim); font-size: 10px; letter-spacing: 0.08em; }
.policy-meta dd { margin: 5px 0 0; overflow-wrap: anywhere; color: #e7f0ed; font-size: 13px; }
.policy-meta a,
.policy-document a { color: var(--accent-soft); }
.policy-document code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.92em; }
.policy-document h2 { margin: 68px 0 20px; font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.035em; }
.policy-document p,
.policy-document li { color: #aebcba; font-size: 15px; }
.policy-document p { margin: 0 0 18px; }
.policy-document ul { margin: 0 0 26px; padding-left: 22px; }
.policy-document li + li { margin-top: 10px; }
.external-links { list-style: none; padding: 0 !important; }
.external-links a { text-decoration: underline; text-decoration-color: rgba(176,244,215,0.3); text-underline-offset: 5px; }
.policy-contact { margin-top: 76px; padding: clamp(28px, 5vw, 52px); border: 1px solid rgba(121,225,181,0.28); background: rgba(121,225,181,0.06); }
.policy-contact h2 { margin-top: 0; }
.policy-contact > a { display: inline-block; margin-top: 5px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; text-decoration: underline; text-underline-offset: 6px; }

nav { display: flex; align-items: center; gap: 30px; }
nav a {
  color: var(--muted);
  font-size: 12px;
  transition: color 160ms ease;
}
nav a:hover, nav a:focus-visible { color: var(--accent-soft); }

.hero {
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: clamp(44px, 6vw, 92px);
  padding: 74px 0 86px;
}

.eyebrow {
  margin: 0 0 17px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  color: #f4faf8;
  font-size: clamp(52px, 7.3vw, 102px);
  font-weight: 590;
  letter-spacing: -0.07em;
  line-height: 0.91;
}
h1 span { color: var(--accent); }

.hero-lead {
  max-width: 590px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 38px; }
.button {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 750;
  transition: 160ms ease;
}
.button-primary { color: #06130f; background: var(--accent); border-color: var(--accent); }
.button-primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.button-secondary { color: #dce8e5; }
.button-secondary:hover { color: var(--accent-soft); border-color: rgba(121, 225, 181, 0.55); }

.hero-art { margin: 0; border: 1px solid var(--line); background: var(--panel); }
.hero-art img { width: 100%; aspect-ratio: 1024 / 500; object-fit: cover; }
.hero-art figcaption {
  min-height: 49px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
  color: var(--dim);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.15em;
}
.hero-art figcaption span:first-child { color: var(--accent); }

.game-section { padding: 118px 0 126px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.section-heading .eyebrow { margin-bottom: 10px; }
h2 {
  margin: 0;
  color: #f1f8f6;
  font-size: clamp(38px, 6vw, 76px);
  font-weight: 590;
  letter-spacing: -0.06em;
  line-height: 1;
}
.section-heading h2 span { color: var(--muted); font-size: 0.53em; font-weight: 470; letter-spacing: -0.035em; }
.section-intro { max-width: 680px; margin: 34px 0 58px; color: var(--muted); font-size: 18px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.feature-grid article { min-height: 265px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.012); }
.feature-number { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; }
.feature-grid h3 { margin: 77px 0 9px; font-size: 24px; font-weight: 620; letter-spacing: -0.035em; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.studio-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(50px, 8vw, 120px);
  padding: 125px 0;
  border-top: 1px solid var(--line);
}
.studio-section h2 { max-width: 650px; }
.studio-section > p { align-self: end; margin: 0; color: var(--muted); font-size: 17px; }

.contact-section {
  margin-bottom: 54px;
  padding: clamp(38px, 7vw, 82px);
  border: 1px solid rgba(121, 225, 181, 0.28);
  background: linear-gradient(135deg, rgba(121,225,181,0.1), rgba(7,17,19,0.72));
}
.contact-section h2 { max-width: 780px; }
.contact-section > a {
  display: inline-block;
  margin-top: 34px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: clamp(13px, 2vw, 17px);
  text-decoration: underline;
  text-decoration-color: rgba(121,225,181,0.35);
  text-underline-offset: 6px;
}

footer {
  min-height: 94px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  color: var(--dim);
  border-top: 1px solid var(--line);
  font-size: 11px;
}

@media (max-width: 900px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 96px; }
  .hero-copy { max-width: 720px; }
  .hero-art { width: min(100%, 760px); }
  .studio-section { grid-template-columns: 1fr; }
  .studio-section > p { max-width: 700px; }
  .game-card { grid-template-columns: 1fr; }
  .game-card-image img { min-height: 0; }
  .game-card-copy { border-top: 1px solid var(--line); border-left: 0; }
  .project-hero { min-height: auto; grid-template-columns: 1fr; padding-top: 82px; }
  .project-hero-copy { max-width: 760px; }
  .support-panel { align-items: flex-start; flex-direction: column; }
  .support-actions { justify-content: flex-start; }
}

@media (max-width: 680px) {
  :root { --page: min(100% - 28px, 1180px); }
  .site-header { min-height: 74px; }
  nav { gap: 16px; }
  nav a:nth-child(2) { display: none; }
  h1 { font-size: clamp(50px, 16vw, 74px); }
  .hero { gap: 58px; padding: 84px 0 74px; }
  .hero-art figcaption { grid-template-columns: auto 1fr; }
  .hero-art figcaption span:last-child { display: none; }
  .game-section { padding: 88px 0 96px; }
  .section-heading { display: block; }
  .section-heading h2 span { display: block; margin-top: 10px; }
  .section-intro { margin-bottom: 42px; font-size: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 220px; }
  .feature-grid h3 { margin-top: 46px; }
  .studio-section { padding: 96px 0; }
  .contact-section { margin-bottom: 30px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; }
  .footer-links { justify-content: flex-start; }
  .game-card-meta { flex-direction: column; gap: 2px; }
  .project-facts { grid-template-columns: 1fr; }
  .policy-card { grid-template-columns: 74px minmax(0, 1fr); }
  .policy-card img { width: 74px; height: 74px; }
  .policy-card .button { grid-column: 1 / -1; }
  .policy-toolbar { align-items: flex-start; flex-direction: column; }
  .language-switcher { justify-content: flex-start; }
  .policy-document { padding-inline: 20px; }
  .policy-meta { grid-template-columns: 1fr; }
}

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