:root {
  color-scheme: dark;
  --background: #101318;
  --surface: #191e26;
  --ink: #f3f5f7;
  --muted: #b9c0ca;
  --line: #323b46;
  --cyan: #a9ddf0;
  --amber: #f3bb78;
  --heading: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --body: Inter, system-ui, sans-serif;
}
:root[lang="ja"] {
  --heading: "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --body: Inter, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--ink); font: 400 16px/1.6 var(--body); }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--heading); font-weight: 700; line-height: .96; }
html[lang="ja"] :is(h1, h2, h3) { line-height: 1.25; }
.shell { width: min(100% - 96px, 1200px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: 12px; transform: translateY(-200%); background: var(--ink); color: var(--background); padding: 8px 16px; z-index: 5; }
.skip:focus { transform: translateY(0); }
.site-header { background: #101318; border-bottom: 1px solid #272f38; position: relative; z-index: 1; }
.nav-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; min-height: 48px; }
.brand img { width: clamp(126px, 23vw, 210px); height: auto; }
.site-header nav { display: flex; gap: clamp(18px, 4vw, 44px); align-items: center; }
.site-header nav a, .footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: #d8dce3; font-size: 13px; font-weight: 600; gap: 4px; }
.site-header nav a:hover, .footer-links a:hover { color: var(--cyan); }
.site-header nav .language-switch {
  border-inline-start: 1px solid var(--line);
  min-height: 32px;
  padding-inline-start: 14px;
  color: var(--cyan);
  white-space: nowrap;
}
.site-header nav .language-switch:hover { color: var(--ink); }
.shadow { --accent: var(--cyan); }
.strike { --accent: var(--amber); }
.reflex-two { --accent: #c6de9b; }
.roll-a-mech { --accent: #f2d180; }
.hero { position: relative; isolation: isolate; background: #162533; overflow: hidden; }
.hero.strike { background: #322820; }
.hero-image { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: 64% 48%; z-index: -3; }
.strike .hero-image { object-position: 66% 45%; }
.hero::before { position: absolute; inset: 0; content: ""; z-index: -2; background: linear-gradient(90deg,#0b1018 0%,#0b1018f0 22%,#0b1018ac 42%,#0b10182a 68%,#0b101804 100%); }
.hero::after { position: absolute; inset: 0; content: ""; z-index: -1; background: linear-gradient(0deg,#101318 0%,transparent 25%); }
.hero-inner { min-height: min(680px, 76vw); display: flex; align-items: end; padding-block: 88px 94px; }
.hero-copy { width: 100%; max-width: 630px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--accent, var(--cyan)); font: 700 11px/1.5 var(--body); text-transform: uppercase; letter-spacing: .2em; }
.eyebrow span { width: 17px; height: 1px; background: currentColor; }
.hero h1 { margin-top: 14px; font-size: clamp(36px, 6vw, 76px); }
.game-logo { height: auto; }
.hero .game-logo { width: min(100%, var(--logo-width, 620px)); filter: drop-shadow(0 3px 10px #0b1018c9); }
.hero-description { max-width: 435px; color: #e2e7ee; font-size: clamp(15px, 1.5vw, 18px); margin-block: 23px 25px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 11px; min-height: 46px; padding: 10px 16px; border: 1px solid transparent; border-radius: 3px; font-size: 13px; line-height: 1.2; font-weight: 700; transition: color 160ms, background 160ms, border-color 160ms; }
.button.primary { color: #131b21; background: var(--accent, var(--cyan)); }
.button.primary:hover { background: #f4f6f8; }
.button.secondary { color: #f4f6f8; border-color: #a9b8c590; background: #10161fc7; }
.button.secondary:hover { background: #303b49; border-color: #e3eaf0; }
.button.store-link { gap: 8px; }
.store-icon { flex: none; width: 20px; height: 20px; object-fit: contain; }
.store-badge-link { display: inline-flex; align-items: center; min-height: 44px; width: fit-content; }
.store-badge { width: 120px; height: 40px; }
.play { border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; }
.text-link, .back-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; width: fit-content; font-size: 13px; font-weight: 700; color: var(--accent, var(--cyan)); }
.text-link { margin-top: 6px; }
.text-link:hover, .back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.games { padding-block: 35px 82px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 19px; margin-bottom: 24px; }
.section-head .text-link { flex: none; white-space: nowrap; }
.section-head h2, .studio h2, .game-overview h2 { font-size: clamp(42px, 5.4vw, 70px); }
.game-feature { display: grid; grid-template-columns: 1.35fr 1fr; background: var(--surface); border: 1px solid var(--line); }
.game-feature + .game-feature { margin-top: 24px; }
.feature-image { min-height: 350px; position: relative; overflow: hidden; background: #302820; }
.feature-image img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center; transition: transform 250ms; }
.feature-image:hover img { transform: scale(1.035); }
.feature-copy { align-self: center; padding: clamp(24px, 4.2vw, 58px); }
.feature-copy h3 { margin-top: 13px; font-size: clamp(32px, 4vw, 54px); }
.feature-copy .game-logo { max-width: 420px; }
.reflex-two .feature-copy .game-logo { max-width: 320px; }
.feature-copy > p:not(.eyebrow) { margin: 19px 0 23px; color: var(--muted); }
.studio-links { display: flex; flex-wrap: wrap; gap: 0 18px; }
.site-header nav a[aria-current="page"] { color: var(--cyan); }
.catalogue-page { padding-block: 55px 78px; }
.policy-page { max-width: 760px; padding-block: clamp(36px, 6vw, 76px); line-height: 1.7; }
.policy-page h1 { font-size: clamp(48px, 8vw, 88px); }
.policy-page h2 { margin-top: 38px; font-size: clamp(30px, 4vw, 42px); }
.policy-page h3 { margin-top: 28px; font-size: 30px; }
.policy-page h4 { margin: 22px 0 0; font: 700 17px/1.4 var(--body); }
.policy-page p, .policy-page ul { margin-block: 12px 0; }
.policy-page ul { padding-inline-start: 24px; }
.policy-page li + li { margin-top: 6px; }
.policy-page .policy-date { margin-block: 14px 24px; color: var(--muted); }
.policy-page a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
html[lang="ja"] .policy-page h1 { font-size: clamp(30px, 5.5vw, 62px); }
.blog-page h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.05; }
.blog-content figure, .blog-content img { margin-block: 18px; }
.blog-content figure img { margin-block-end: 0; }
.policy-page .blog-posts { list-style: none; padding: 0; }
.blog-posts li { display: flex; flex-wrap: wrap; gap: 2px 14px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.blog-posts time { color: var(--muted); }
.catalogue-intro { margin-bottom: 29px; }
.catalogue-intro h1 { font-size: clamp(64px, 10vw, 122px); }
html[lang="ja"] .catalogue-intro h1 { font-size: clamp(38px, 7vw, 78px); }
.catalogue-intro p { color: var(--muted); margin-top: 14px; }
.featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.catalogue-card { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.catalogue-art { display: block; position: relative; background: #202934; overflow: hidden; }
.catalogue-art img:first-child { height: auto; aspect-ratio: 460 / 215; object-fit: cover; }
.catalogue-art .game-logo {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48%;
  filter: drop-shadow(0 3px 8px #000e);
}
.roll-a-mech .catalogue-art .game-logo { width: 68%; }
.catalogue-card-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(18px, 3vw, 32px); }
.catalogue-card h2 { font-size: clamp(32px, 4vw, 54px); }
.catalogue-card h2 a:hover { color: var(--accent); }
.catalogue-card-copy > p:not(.eyebrow), .release-row p { color: var(--muted); }
.catalogue-card .actions { padding-top: 8px; }
.catalogue-archive { margin-top: 46px; }
.catalogue-archive > h2 { font-size: clamp(38px, 5vw, 64px); margin-bottom: 18px; }
.release-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px 24px; padding-block: 17px; border-top: 1px solid var(--line); }
.release-row:last-child { border-bottom: 1px solid var(--line); }
.release-row h3 { font-size: 32px; margin-block: 4px 7px; }
.release-row .release-platform { color: var(--cyan); font-size: 12px; font-weight: 600; }
.archive-page, .game-intro { padding-block: clamp(25px, 5vw, 62px); }
.archive-header h1, .game-intro h1 { font-size: clamp(52px, 8vw, 98px); text-wrap: balance; }
.archive-header h1 { margin-block: 9px 16px; }
.archive-summary, .game-intro p:not(.eyebrow) { max-width: 62ch; color: var(--muted); }
.archive-facts { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px 25px; margin-block: 25px 8px; padding-block: 17px; border-block: 1px solid var(--line); }
.archive-facts dt { color: var(--muted); font-size: 13px; font-weight: 600; }
.archive-facts dd { margin: 3px 0 0; }
.archive-section { margin-top: 32px; }
.archive-section h2 { font-size: clamp(32px, 4.5vw, 48px); margin-bottom: 16px; }
.archive-video { max-width: 760px; }
.screenshot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.screenshot-grid figure a { display: block; background: var(--surface); border: 1px solid var(--line); }
.screenshot-grid img { height: auto; }
.screenshot-grid figcaption { color: var(--muted); font-size: 13px; margin-top: 7px; }
.portrait-gallery { max-width: 760px; }
.game-intro-grid { display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; gap: clamp(22px, 4vw, 52px); }
.game-intro h1 { margin-block: 12px 16px; }
.game-intro .game-logo { max-width: 380px; }
.game-intro .actions { margin-top: 21px; }
.game-intro-art { height: auto; border: 1px solid var(--line); }
.sequel-overview { padding-top: 5px; }
.sequel-extras { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 17px; }
.sequel-overview .studio-links { align-items: center; gap: 0 18px; }
.sequel-overview .studio-links .text-link { margin-top: 0; }
.arcade-cabinet { position: relative; flex: none; width: clamp(56px, 9vw, 72px); }
.arcade-cabinet img { height: auto; }
.arcade-cabinet button { position: absolute; right: 0; bottom: 0; width: 28px; height: 28px; padding: 0; border: 0; background: #101318d9; color: var(--ink); cursor: pointer; }
.arcade-cabinet button::before { display: inline-block; content: ""; width: 7px; height: 9px; border-inline: 2px solid; box-sizing: border-box; }
.arcade-cabinet button[aria-pressed="true"]::before { width: 0; height: 0; border: 0; border-block: 5px solid transparent; border-left: 8px solid; }
@media (prefers-reduced-motion: reduce) {
  .arcade-cabinet button { display: none; }
}
.studio { background: #171c23; border-block: 1px solid var(--line); padding-block: 60px; }
.studio-inner, .game-overview .overview-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 52px; align-items: start; }
.studio h2 { margin-top: 10px; }
.studio-inner > div:last-child p, .overview-copy p { max-width: 525px; color: var(--muted); }
.studio .text-link:target { text-decoration: underline; text-underline-offset: 4px; }
.site-footer { padding-block: 26px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.footer-inner .brand img { width: 148px; }
.footer-links { display: flex; align-items: center; gap: 4px 16px; flex-wrap: wrap; }
.social-links { display: flex; gap: 2px; }
.social-links a { justify-content: center; width: 44px; border-radius: 4px; }
.social-links a:hover { background: var(--surface); }
.social-links img { width: 22px; height: 22px; object-fit: contain; }
.social-links img[src$="/youtube.png"] { width: 29px; }
.site-footer small { color: var(--muted); }
.detail-hero .hero-inner { min-height: min(640px, 76vw); }
.detail-hero { --logo-width: 590px; }
.back-link { margin-bottom: 20px; color: #f3f5f7; }
.game-overview { padding-block: 45px 80px; }
.game-overview h2 { text-wrap: balance; }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-block: 38px; }
.feature-list > div { border-top: 1px solid var(--line); padding-top: 15px; }
.feature-list h3 { color: var(--accent); font-size: 27px; margin-bottom: 9px; }
html[lang="ja"] .game-overview h2 { font-size: clamp(32px, 4.5vw, 55px); }
.feature-list p { color: var(--muted); }
.game-media { background: var(--surface); border: 1px solid var(--line); overflow: hidden; margin-block: 0 25px; }
.game-media img { max-height: 560px; object-fit: cover; aspect-ratio: 16 / 9; }
.gameplay { margin-bottom: 28px; }
.gameplay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr)); gap: 20px 24px; }
.movement-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.gameplay-grid :is(img, video) { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: var(--surface); }
.gameplay-grid figcaption { color: var(--muted); font-size: 13px; margin-top: 7px; }
.trailer-dialog { width: min(900px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 1px solid var(--line); background: #141922; color: var(--ink); padding: 14px; }
.trailer-dialog::backdrop { background: #000c; }
.trailer-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.trailer-header h2 { font-size: 27px; }
.close-trailer { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 26px; cursor: pointer; }
.trailer-player iframe, .archive-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; }
.trailer-fallback { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; font-size: 13px; color: var(--cyan); }
@media (max-width: 900px) {
  .shell { width: calc(100% - 56px); }
  .game-feature { grid-template-columns: 1.1fr 1fr; }
  .feature-image { min-height: 315px; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 36px); }
  .nav-inner { min-height: 66px; }
  .site-header nav { gap: 13px; }
  .hero-image { height: 67%; object-position: 66% 46%; }
  .hero::before { background: linear-gradient(0deg,#101318 0%,#101318 32%,#10131888 59%,#10131805 100%); }
  .hero::after { display: none; }
  .hero-inner, .detail-hero .hero-inner { min-height: 0; padding-block: clamp(145px, 48vw, 270px) 32px; }
  .hero-description { margin-block: 17px 20px; }
  .back-link { margin-bottom: 8px; }
  .games { padding-block: 23px 50px; }
  .game-feature, .studio-inner, .game-overview .overview-copy, .feature-list, .featured-grid, .release-row, .game-intro-grid, .archive-facts, .screenshot-grid { grid-template-columns: 1fr; }
  .feature-image { min-height: 0; aspect-ratio: 16 / 9; }
  .portrait-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .catalogue-page { padding-block: 33px 55px; }
  .studio { padding-block: 36px; }
  .feature-list { gap: 18px; }
  .game-overview { padding-block: 33px 55px; }
}
@media (max-width: 380px) {
  .nav-inner { gap: 10px; }
  .site-header .brand img { width: 112px; }
  .site-header nav { gap: 10px; }
  .hero .button { gap: 7px; padding-inline: 10px; }
}
@media (max-width: 520px) {
  .nav-inner { flex-wrap: wrap; column-gap: 14px; row-gap: 0; padding-block: 4px; }
  .site-header nav { gap: 12px; flex-wrap: wrap; }
  .site-header nav .language-switch { padding-inline-start: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
