@font-face {
  font-family: Pretendard;
  src: url('/fonts/PretendardVariable.woff2') format('woff2');
  font-weight: 45 920;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #101011;
  --panel: #171718;
  --ink: #f5f2ed;
  --muted: #bdb9b3;
  --line: #363331;
  --orange: #ff784b;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;
  font-family: Pretendard, system-ui, sans-serif;
  font-synthesis: none;
  word-break: keep-all;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; }
button { font: inherit; cursor: pointer; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.045em; }
h1, h2 { font-weight: 850; }
ul { margin: 0; padding: 0; }
.wrap { width: min(1220px, calc(100% - 100px)); margin-inline: auto; }
.skip { position: fixed; z-index: 5; inset: 8px auto auto 8px; padding: 10px 16px; background: var(--orange); color: var(--bg); transform: translateY(-150%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.header-inner { min-height: 76px; }
.wordmark { display: inline-flex; flex: none; gap: 9px; align-items: center; font: 700 .79rem/1 var(--mono); letter-spacing: .075em; }
.wordmark img { width: 86px; height: auto; }
.wordmark span { color: var(--orange); border-left: 1px solid var(--line); padding-left: 9px; }
.header-inner nav { display: flex; flex-wrap: wrap; gap: clamp(14px, 3vw, 40px); font-size: .95rem; font-weight: 650; color: var(--muted); }
.header-inner nav a:hover, .site-footer a:hover, .breadcrumbs a:hover { color: var(--orange); }
.header-contact, .text-link { font-weight: 750; color: var(--orange); }
.header-contact .arrow { padding-left: 5px; }

.hero { display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: clamp(30px, 6vw, 88px); padding-block: clamp(62px, 8vw, 114px); }
.kicker { display: flex; align-items: center; gap: 11px; color: var(--orange); font: 700 .77rem/1.4 var(--mono); letter-spacing: .12em; }
.kicker > span:not(.signal) { color: var(--bg); background: var(--orange); padding: 2px 5px; letter-spacing: 0; }
.signal { width: 8px; height: 8px; flex: 0 0 auto; background: var(--orange); box-shadow: 0 0 17px #ff784b70; }
.hero h1 { margin-top: 24px; font-size: clamp(3.15rem, 6.2vw, 6.25rem); letter-spacing: -.072em; line-height: 1.01; }
.hero h1 span, .studio h2 span { color: var(--orange); }
.hero-lead { margin-top: 26px; font-size: clamp(1.06rem, 1.65vw, 1.35rem); color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 16px; border: 1px solid transparent; border-radius: 4px; font-weight: 750; font-size: .92rem; }
.button:hover { border-color: var(--orange); }
.primary { color: #160c07; background: var(--orange); }
.primary:hover { background: #ff9875; }
.secondary { border-color: var(--line); }
.secondary:hover { color: var(--orange); }
.arrow { font-family: var(--mono); }
.hero-art { position: relative; display: grid; align-content: space-between; isolation: isolate; overflow: hidden; aspect-ratio: 1.16; padding: clamp(15px, 2.1vw, 27px); border: 1px solid #5e564b; border-radius: 5px; background: #30231e; }
.hero-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .4s ease; }
.hero-art:hover > img { transform: scale(1.045); }
.hero-art::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #101011b5, transparent 29%, transparent 52%, #101011eb); }
.art-top, .art-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.art-top, .art-bottom p { font: 700 .71rem/1.3 var(--mono); letter-spacing: .08em; }
.art-top span:first-child { color: #160c07; background: var(--orange); padding: 6px 8px; }
.art-bottom strong { display: block; font-size: clamp(2rem, 4.8vw, 4.6rem); font-weight: 900; line-height: 1.03; letter-spacing: -.06em; margin-top: 7px; }
.art-arrow { display: grid; width: 43px; height: 43px; flex: 0 0 auto; place-items: center; color: var(--bg); background: var(--ink); border-radius: 50%; font-size: 1.35rem; }
.hero-art:hover .art-arrow { background: var(--orange); }
.index-bar { border-block: 1px solid var(--line); background: #151414; }
.index-bar .wrap { display: flex; justify-content: space-between; gap: 14px; padding-block: 16px; }
.index-bar span { color: var(--muted); font: 650 .74rem/1.45 var(--mono); letter-spacing: .06em; }
.index-bar b { color: var(--orange); padding-right: 8px; }
.index-bar small { margin-left: 12px; color: var(--ink); font-size: inherit; }

.collection { padding-block: clamp(62px, 8vw, 106px); }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 26px; margin-bottom: 34px; }
.section-top h2, .studio h2 { margin-top: 12px; font-size: clamp(2.15rem, 4.4vw, 4.25rem); }
.section-top > p { max-width: 355px; color: var(--muted); font-size: 1.03rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.game-card { min-width: 0; }
.game-card > a { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); }
.game-card > a:hover { border-color: var(--orange); }
.card-image { position: relative; aspect-ratio: 1.64; overflow: hidden; background: #201e1d; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card-image-contained { background: #142139; }
.card-image-contained img { object-fit: contain; }
.game-card > a:hover img { transform: scale(1.03); }
.card-tag { position: absolute; top: 11px; left: 11px; max-width: calc(100% - 22px); padding: 3px 8px; border: 1px solid #ffffff42; border-radius: 3px; color: var(--ink); background: #101011ed; font-size: .75rem; font-weight: 720; }
.card-content { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 9px; min-height: 89px; padding: 14px 16px; }
.card-meta { margin-bottom: 5px; font-size: .78rem; font-weight: 650; color: var(--muted); }
.card-content h3 { overflow-wrap: anywhere; font-size: clamp(1.08rem, 1.8vw, 1.55rem); }
.card-content .arrow { color: var(--orange); }
.client-band { background: #141414; border-block: 1px solid var(--line); }
.studio { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; align-items: end; padding-block: clamp(65px, 9vw, 125px); }
.studio-copy { color: var(--muted); font-size: 1.13rem; }
.studio-copy .secondary { color: var(--ink); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 92px; color: var(--muted); font-size: .86rem; }

.detail-wrap { padding-block: 22px 80px; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: .88rem; }
.breadcrumbs span[aria-current] { color: var(--ink); }
.detail-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(24px, 5.5vw, 74px); margin-block: clamp(30px, 5vw, 72px) 48px; }
.detail-title h1 { font-size: clamp(2.65rem, 5.6vw, 5.7rem); margin-top: 17px; overflow-wrap: anywhere; }
.english-title { margin-top: 9px; color: var(--orange); font-weight: 700; }
.detail-summary { margin-top: 15px; font-size: 1.16rem; color: var(--muted); }
.detail-title .actions { margin-top: 23px; }
.detail-art { display: grid; place-items: center; overflow: hidden; aspect-ratio: 1.6; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); }
.detail-art img { width: 100%; height: 100%; object-fit: contain; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 30%); gap: clamp(25px, 5vw, 75px); align-items: start; padding-block: 35px 65px; border-top: 1px solid var(--line); }
.detail-section + .detail-section { margin-top: 42px; }
.detail-section h2, .related h2 { margin-top: 9px; font-size: clamp(1.55rem, 3vw, 2.5rem); }
.detail-section p:not(.kicker) { margin-top: 15px; color: var(--muted); font-size: 1.05rem; }
.features { list-style: none; margin-top: 19px; }
.features li { display: flex; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); }
.features li::before { content: '▸'; color: var(--orange); }
.detail-section video { width: 100%; margin-top: 16px; border-radius: 5px; background: var(--panel); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 17px; }
.gallery-grid a { display: grid; position: relative; place-items: center; aspect-ratio: 1.55; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #1b1a19; }
.gallery-grid a:hover { border-color: var(--orange); }
.gallery-grid img { width: 100%; height: 100%; object-fit: contain; }
.gallery-grid a span { position: absolute; bottom: 7px; right: 7px; width: 27px; height: 27px; background: var(--bg); text-align: center; border: 1px solid var(--line); border-radius: 4px; }
.lightbox { position: fixed; max-width: calc(100% - 20px); max-height: calc(100% - 20px); padding: 0; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--panel); }
.lightbox::backdrop { background: #000d; }
.lightbox-inner { display: grid; justify-items: center; gap: 9px; padding: 12px; }
.lightbox form { justify-self: end; }
.lightbox img { max-width: min(900px, 86vw); max-height: 68vh; margin-inline: auto; }
.lightbox figcaption { text-align: center; margin-top: 8px; }
.lightbox button { min-width: 40px; min-height: 40px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); }
.gallery-controls button + button { margin-left: 9px; }
.fact-box { padding: 20px; border: 1px solid var(--line); border-radius: 5px; background: var(--panel); }
.fact-box h2 { font-size: 1.26rem; }
.fact-box dl { margin-top: 15px; }
.fact-box dl > div { display: grid; gap: 2px; padding-block: 10px; border-top: 1px solid var(--line); }
.fact-box dt { color: var(--muted); font-size: .83rem; }
.fact-box dd { font-weight: 720; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; list-style: none; }
.stack li { padding: 2px 7px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font: 600 .72rem/1.5 var(--mono); }
.related { padding-top: 28px; border-top: 1px solid var(--line); }
.related .section-top { margin-bottom: 20px; }
.missing { min-height: 65vh; padding-block: 60px; }
.missing h1 { margin-block: 14px 28px; font-size: clamp(2rem, 5vw, 4rem); }

@media (max-width: 950px) {
  .wrap { width: calc(100% - 58px); }
  .hero { grid-template-columns: .9fr 1.1fr; gap: 25px; }
  .hero h1 { font-size: clamp(2.9rem, 7.5vw, 5rem); }
}

@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { flex-wrap: wrap; gap: 12px; min-height: 0; padding-block: 15px; }
  .header-inner nav { order: 1; width: 100%; gap: 23px; padding-top: 9px; border-top: 1px solid var(--line); }
  .header-contact { font-size: .87rem; }
  .hero, .studio, .detail-hero, .detail-layout { grid-template-columns: 1fr; }
  .hero { padding-block: 48px 30px; gap: 28px; }
  .hero h1 { font-size: clamp(3.05rem, 10.7vw, 4.85rem); }
  .hero-lead { margin-top: 19px; }
  .hero .actions { margin-top: 23px; }
  .wide-only { display: none; }
  .hero-art { aspect-ratio: 1.35; }
  .index-bar small { display: none; }
  .index-bar span { font-size: .62rem; letter-spacing: 0; }
  .index-bar b { padding-right: 3px; }
  .section-top { display: block; margin-bottom: 20px; }
  .section-top > p { margin-top: 12px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-content { min-height: 75px; padding: 10px; }
  .card-meta, .card-tag { font-size: .69rem; }
  .card-tag { top: 6px; left: 6px; max-width: calc(100% - 12px); }
  .studio { gap: 19px; }
  .footer-inner { flex-wrap: wrap; justify-content: start; padding-block: 20px; gap: 13px 21px; }
  .footer-inner p { order: 1; width: 100%; }
  .detail-layout { padding-block: 25px 40px; }
  .fact-box { grid-row: 1; }
  .related .text-link { display: inline-block; margin-top: 10px; }
}

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