@font-face {
  font-family: Hack;
  src: url('/fonts/hack-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Hack;
  src: url('/fonts/hack-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --paper: #fbfbf8;
  --surface: #fff;
  --ink: #17211b;
  --muted: #687069;
  --line: #dfe3dd;
  --accent: #e9653a;
  --green: #ddeaaf;
  --soft: #f1f3ee;
  --mono: Hack, 'Noto Sans Mono CJK JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --measure: 1240px;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 17px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.08; letter-spacing: -.035em; }
h1 { font-size: clamp(48px, 7.2vw, 100px); }
h2 { font-size: clamp(36px, 4.6vw, 64px); }
h3 { font-size: 30px; }
.wrap { width: min(var(--measure), calc(100% - 64px)); margin-inline: auto; }
.eyebrow {
  font: 700 11px/1.5 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.external-mark, .arrow { font-family: Arial, sans-serif; font-weight: 400; }
.skip {
  position: fixed;
  top: -90px;
  left: 16px;
  z-index: 50;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}
.skip:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 251, 248, .94);
  backdrop-filter: blur(16px);
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font: 700 27px/1 var(--mono);
  text-decoration: none;
}
.wordmark span { color: var(--accent); font-size: 34px; }
.site-header nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.site-header nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
}
.site-header nav a:hover { text-decoration: underline; }
.site-header .nav-store {
  min-height: 42px;
  padding: 8px 17px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}
.site-header .nav-store:hover { background: #334038; text-decoration: none; }

.home-hero {
  min-height: 0;
  padding: 86px 0 72px;
}
.home-hero.with-art { display: grid; grid-template-columns: 1.55fr 1fr; align-items: center; gap: 0 20px; padding-top: 30px; }
.with-art .hero-copy { grid-column: 1 / -1; margin-top: 12px; }
.hero-art { position: relative; display: block; min-width: 0; text-decoration: none; border-radius: var(--radius); background: radial-gradient(ellipse, #e4f3f2 0%, transparent 65%); }
.hero-art img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.art-credit { position: absolute; bottom: 10px; right: 10px; display: flex; gap: 24px; color: var(--muted); font: 11px/1.5 var(--mono); }
.hero-art:hover .art-credit { color: var(--ink); }
.hero-heading .eyebrow { margin-bottom: 26px; color: var(--muted); }
.hero-heading h1 { font-size: clamp(36px, 4vw, 52px); }
.hero-line { display: block; white-space: nowrap; }
.hero-heading h1 .hero-accent { color: var(--accent); }
.hero-copy {
  width: 100%;
  max-width: none;
  margin-top: 44px;
  display: grid;
  grid-template-columns: minmax(260px, 430px) minmax(0, 1fr);
  align-items: start;
  gap: 48px;
}
.hero-copy > p { font-size: clamp(19px, 2vw, 24px); line-height: 1.55; letter-spacing: -.015em; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 11px; margin: 0; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 700 14px/1.4 var(--mono);
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.button:hover { background: #334038; transform: translateY(-2px); }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover { background: var(--green); }

.project-section { padding: 74px 0 104px; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 36px;
}
.section-heading .eyebrow { margin-bottom: 12px; color: var(--muted); }
.section-heading > p { color: var(--muted); font: 12px var(--mono); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.game-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 35px rgba(23, 33, 27, .045);
}
.card-image { display: block; overflow: hidden; aspect-ratio: 1232/706; background: #fff; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.game-card[data-cover-fit=contain] .card-image img { object-fit: contain; background: #38541e; }
.game-card[data-project=litebike] .card-image img { object-position: 48% 50%; }
.card-content { padding: 25px 26px 27px; }
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  color: var(--muted);
  font: 10px/1.5 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.card-status { display: flex; align-items: center; gap: 8px; text-align: right; }
.card-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #8a918b; flex: none; }
.available .card-status::before { background: #3f7d47; }
.card-heading { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.card-heading h2 { font-size: clamp(30px, 3.1vw, 44px); }
.card-heading h2 a, .card-detail-arrow { text-decoration: none; }
.card-detail-arrow {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 22px;
  transition: transform .18s ease, background .18s ease;
}
.card-detail-arrow:hover { transform: translate(2px, -2px); background: var(--green); }
.card-content > p { max-width: 52ch; margin-top: 14px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 23px; }
.store-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 700 12px/1.4 var(--mono);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}
.store-link:hover { border-color: var(--ink); background: var(--soft); }

.social-section {
  margin-bottom: 96px;
  padding: 58px;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 70px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  background: var(--soft);
  scroll-margin-top: 110px;
}
.social-heading .eyebrow { margin-bottom: 18px; color: var(--muted); }
.social-heading h2 { font-size: clamp(36px, 4vw, 54px); }
.social-heading > p:last-child { max-width: 36ch; margin-top: 24px; color: var(--muted); font-size: 15px; }
.social-grid { display: grid; gap: 10px; }
.social-card {
  min-height: 92px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}
.social-card:hover { border-color: var(--ink); transform: translateX(3px); }
.social-name { font-weight: 700; font-size: 19px; }
.social-handle { color: var(--muted); font: 11px var(--mono); }
.social-arrow { font: 24px Arial, sans-serif; }

.site-footer {
  min-height: 118px;
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  border-top: 1px solid var(--line);
}
.footer-copy { color: var(--muted); font: 11px/1.7 var(--mono); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 22px; font-size: 12px; }
.footer-links a { min-height: 32px; display: inline-flex; align-items: center; gap: 5px; }

.project-top { padding: 44px 0 42px; }
.breadcrumb { margin-bottom: 42px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted); font: 11px var(--mono); }
.breadcrumb a { min-height: 36px; display: inline-flex; align-items: center; }
.project-title-row { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.project-top .eyebrow { margin-bottom: 17px; color: var(--muted); }
.project-top h1 { max-width: 950px; font-size: clamp(48px, 7vw, 96px); }
.project-status {
  flex: none;
  margin-bottom: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font: 11px var(--mono);
}
.project-hero { position: relative; overflow: hidden; aspect-ratio: 16/9; border-radius: var(--radius); background: #fff; }
.project-hero.wide { aspect-ratio: 3840/1240; border: 1px solid var(--line); }
.project-hero picture { display: block; width: 100%; height: 100%; }
.project-hero-heading { position: absolute; left: 5%; top: 43%; max-width: 55%; font-size: clamp(24px, 3vw, 42px); font-weight: 700; letter-spacing: -.035em; }
.project-hero img { width: 100%; height: 100%; object-fit: cover; }
.project-hero.contain img { object-fit: contain; background: #35551e; }
.project-body { display: grid; grid-template-columns: 1.35fr .8fr; gap: 90px; padding: 66px 0 82px; }
.project-description > p { max-width: 62ch; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.75; }
.development-note {
  margin-top: 26px !important;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: #f7f5f0;
  color: var(--muted);
  font-size: 14px !important;
}
.project-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.project-facts { margin: 0; align-self: start; border-top: 1px solid var(--ink); }
.project-facts div { padding: 18px 0; display: grid; grid-template-columns: 95px 1fr; gap: 20px; border-bottom: 1px solid var(--line); }
.project-facts dt { padding-top: 4px; color: var(--muted); font: 10px/1.6 var(--mono); text-transform: uppercase; }
.project-facts dd { margin: 0; font-size: 14px; }
.gallery-section { padding: 8px 0 76px; }
.gallery-heading { margin-bottom: 26px; }
.gallery-heading .eyebrow { margin-bottom: 12px; color: var(--muted); }
.gallery-heading h2 { font-size: 38px; }
.gallery-heading > p:last-child:not(.eyebrow) { margin-top: 16px; color: var(--muted); font-size: 14px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.gallery figure, .artwork-card { margin: 0; min-width: 0; }
.gallery figcaption { padding: 12px 2px 16px; color: var(--muted); font-size: 13px; }
.gallery a { position: relative; overflow: hidden; display: block; border-radius: 16px; background: #142218; text-decoration: none; }
.gallery a:first-child:last-child { max-width: 680px; }
.gallery img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; }
.gallery a::after {
  content: '↗';
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font: 20px/40px Arial, sans-serif;
  text-align: center;
}
.artwork-section { margin-bottom: 80px; padding: 42px; border: 1px solid var(--line); border-radius: var(--radius); background: #f1f6f5; scroll-margin-top: 110px; }
.artwork-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.artwork-card { border: 1px solid #dce6e3; border-radius: 15px; overflow: hidden; background: #fff; }
.artwork-card a { display: block; background: radial-gradient(ellipse, #e7f0ef, #fff 72%); }
.artwork-card a:hover { background: #e7f0ef; }
.artwork-card img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.artwork-card figcaption { padding: 16px; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); }
.artwork-card figcaption span:first-child { font: 700 16px/1.4 var(--mono); }
.artwork-card figcaption span:last-child { color: var(--muted); font-size: 10px; }
.next-project { padding: 38px 0 64px; display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--line); }
.next-project h2 { margin-top: 11px; font-size: 34px; }
.next-project a { text-decoration: none; }
.next-project .arrow { font-size: 46px; }
.project-index-link { font: 11px var(--mono); text-decoration: underline !important; text-transform: uppercase; }
.viewer {
  width: fit-content;
  max-width: min(94vw, 1400px);
  max-height: 94dvh;
  padding: 18px;
  border: 0;
  border-radius: 16px;
  background: var(--ink);
  color: #fff;
}
.viewer::backdrop { background: rgba(8, 13, 10, .88); }
.viewer img { max-width: 100%; max-height: 73dvh; margin: auto; object-fit: contain; }
.viewer.is-artwork { background: var(--paper); color: var(--ink); }
.viewer button { min-width: 92px; min-height: 44px; display: block; margin: 0 0 15px auto; border: 0; border-radius: 999px; background: #fff; font-size: 13px; }
.viewer p { max-width: 1000px; margin-top: 14px; font: 12px/1.6 var(--mono); }
.not-found { min-height: 65vh; padding: 100px 0; }
.not-found .eyebrow { margin-bottom: 20px; color: var(--accent); }
.not-found .button { margin-top: 32px; }

.privacy-page { max-width: 900px; margin: 0 auto; padding: 58px 0 82px; overflow-wrap: anywhere; }
.privacy-heading { margin-bottom: 32px; }
.privacy-heading .eyebrow { margin-bottom: 18px; color: var(--muted); }
.privacy-heading h1 { font-size: clamp(38px, 5vw, 66px); }
.privacy-date { margin-top: 22px; color: var(--muted); font-size: 13px; }
.privacy-intro { max-width: 72ch; margin-bottom: 28px; }
.privacy-intro p + p { margin-top: 14px; }
.privacy-nav { margin-bottom: 34px; display: flex; flex-wrap: wrap; gap: 10px 25px; font-size: 14px; }
.privacy-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.privacy-game { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.privacy-game summary { padding: 22px 25px; cursor: pointer; list-style: disclosure-closed; }
.privacy-game[open] summary { border-bottom: 1px solid var(--line); background: var(--green); list-style: disclosure-open; }
.privacy-game summary::marker { color: var(--ink); }
.privacy-game summary h2 { display: inline; font-size: clamp(23px, 3vw, 32px); letter-spacing: -.02em; }
.privacy-game summary h2 span { margin-left: 12px; display: inline-block; font-size: 13px; font-weight: 400; }
.privacy-copy { max-width: 80ch; font-size: 16px; line-height: 1.85; }
.privacy-game .privacy-copy { max-width: none; padding: 25px 27px 35px; }
.privacy-copy p + p { margin-top: 18px; }
.privacy-copy h2, .privacy-copy h3 { margin: 34px 0 14px; font-size: 22px; line-height: 1.4; letter-spacing: -.01em; }
.privacy-copy ul { margin: 18px 0; padding-left: 24px; }
.privacy-copy li + li { margin-top: 14px; }
.privacy-direct { margin-bottom: 24px; font-size: 14px; }
.privacy-page .breadcrumb { margin-bottom: 30px; line-height: 1.6; }

@media (max-width: 1100px) {
  .hero-copy { max-width: 700px; display: block; }
  .hero-actions { justify-content: flex-start; margin-top: 28px; }
}

@media (max-width: 900px) {
  .home-hero { padding: 70px 0 62px; }
  .social-section { grid-template-columns: 1fr; gap: 38px; padding: 42px; }
  .project-body { grid-template-columns: 1.15fr .85fr; gap: 44px; }
  .artwork-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .artwork-section { padding: 28px; }
}

@media (max-width: 700px) {
  html { scroll-padding-top: 24px; }
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .site-header { position: relative; min-height: 122px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 12px; padding: 19px 0 15px; }
  .wordmark { font-size: 25px; }
  .site-header nav { width: 100%; justify-content: space-between; gap: 12px; font-size: 12px; }
  .site-header nav a { min-height: 40px; }
  .site-header .nav-store { min-height: 38px; padding: 7px 14px; }
  .home-hero { padding: 50px 0 52px; }
  .home-hero.with-art { grid-template-columns: 1fr; padding-top: 42px; }
  .hero-art { width: min(100%, 320px); justify-self: center; margin: 12px 0; }
  .with-art .hero-copy { margin-top: 16px; }
  .hero-heading .eyebrow { margin-bottom: 20px; }
  .hero-heading h1 { font-size: clamp(24px, 7.4vw, 34px); }
  .hero-copy { margin-top: 30px; }
  .hero-copy > p { font-size: 18px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .project-section { padding: 54px 0 68px; scroll-margin-top: 18px; }
  .section-heading { margin-bottom: 24px; }
  .project-grid { grid-template-columns: 1fr; gap: 18px; }
  .card-content { padding: 21px 20px 22px; }
  .card-content > p { font-size: 14px; }
  .social-section { margin-bottom: 60px; padding: 30px 20px 20px; scroll-margin-top: 18px; }
  .social-heading > p:last-child { margin-top: 18px; }
  .social-card { min-height: 78px; grid-template-columns: 1fr auto; padding: 17px; }
  .social-handle { display: none; }
  .social-name { font-size: 17px; }
  .site-footer { align-items: flex-start; flex-direction: column; padding: 28px 0 36px; }
  .footer-links { justify-content: flex-start; }
  .project-top { padding: 30px 0; }
  .breadcrumb { margin-bottom: 27px; }
  .project-title-row { align-items: flex-start; flex-direction: column; gap: 21px; }
  .project-status { margin: 0; }
  .project-hero { aspect-ratio: 4/3; border-radius: 16px; }
  .project-hero.wide { aspect-ratio: 1232/706; }
  .project-hero-heading { display: none; }
  .project-body { display: flex; flex-direction: column; gap: 42px; padding: 40px 0 52px; }
  .project-description > p { font-size: 17px; }
  .project-actions { align-items: stretch; flex-direction: column; }
  .project-actions .button { width: 100%; }
  .project-facts { width: 100%; }
  .gallery-section { padding-bottom: 48px; }
  .gallery-heading h2 { font-size: 31px; }
  .gallery { grid-template-columns: 1fr; gap: 14px; }
  .artwork-section { margin-bottom: 48px; padding: 24px 16px; scroll-margin-top: 24px; }
  .artwork-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .next-project { padding: 28px 0 42px; }
  .next-project h2 { font-size: 27px; }
  .next-project .arrow { font-size: 34px; }
  .project-index-link { display: none; }
  .viewer { max-width: 95vw; padding: 12px; }
  .viewer p { font-size: 11px; }
  .privacy-page { padding: 36px 0 52px; }
  .privacy-game summary { padding: 18px; }
  .privacy-game summary h2 span { display: block; margin: 8px 0 0 20px; }
  .privacy-game .privacy-copy { padding: 21px 18px 28px; }
  .privacy-copy { font-size: 15px; }
  .privacy-copy h2, .privacy-copy h3 { font-size: 20px; }
}

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