:root {
  color-scheme: dark;
  --bg: #102e2a; --panel: #193d36; --ink: #faf6e9; --muted: #d4ded4;
  --accent: #efcf8c; --line: #547369;
  --sans: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --display: "Yu Mincho", "Hiragino Mincho ProN", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body.game-site { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.9 var(--sans); }
.game-site h1, .game-site h2, .game-site h3 { margin: 0; color: var(--ink); line-height: 1.5; }
.game-site p { margin: 0; }
.game-site a { color: inherit; text-decoration: none; }
.game-site a:hover { text-decoration: underline; text-underline-offset: .3em; }
.game-site button { font: inherit; cursor: pointer; }
.game-site img { display: block; width: 100%; max-width: 100%; height: auto; }
.game-site figure { margin: 0; }
.game-site [hidden] { display: none !important; }
.game-site :is(a,button,summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 100; background: var(--accent); color: #102e2a !important; padding: 12px 20px; }
.skip-link:focus { top: 12px; }
.draft-bar { padding: 12px 5vw; background: #efcf8c; color: #102e2a; font-weight: 700; }
.draft-bar span { margin-left: 18px; font-weight: 400; }
.section-wrap { max-width: 1420px; padding-inline: 5vw; margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 5vw; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; gap: 12px; align-items: center; font: 700 25px/1.4 var(--display); white-space: nowrap; }
.brand-mark { color: var(--accent); font-size: 36px; }
.wordmark small { display: block; margin-top: 5px; color: var(--muted); font: 12px/1.5 var(--sans); letter-spacing: .12em; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; }
.header-play { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--accent); padding: 10px 20px; min-height: 48px; white-space: nowrap; font-size: 16px; }
.hero { max-width: 1620px; margin: auto; padding: 70px 5vw 55px; display: grid; grid-template-columns: .94fr 1.15fr; gap: 5%; align-items: center; }
.eyebrow { color: var(--accent); font-size: 13px; line-height: 1.6; font-weight: 700; letter-spacing: .14em; }
.hero-genre { margin-top: 24px !important; font-size: 17px; color: var(--muted); }
.hero h1 { margin: 20px 0 26px; font: 600 clamp(38px,4.5vw,70px)/1.45 var(--display); letter-spacing: -.04em; }
.hero h1 span { display: block; }
.hero-lead { max-width: 520px; font-size: 18px; color: var(--muted); line-height: 2; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 32px; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 26px; min-height: 56px; padding: 14px 24px; font-size: 17px; font-weight: 700; }
.game-site .button.primary { background: var(--accent); color: #132821; }
.button:hover { filter: brightness(1.08); }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; text-decoration: underline !important; text-underline-offset: .3em; }
.platform-note { display: flex; align-items: center; gap: 10px; margin-top: 22px !important; font-size: 14px; color: var(--muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.screen-frame { padding: 12px; background: #091d1a; border: 1px solid #799285; border-radius: 12px; box-shadow: 0 24px 65px #0004; }
.screen-label { display: block; color: #e4ece4; font-size: 12px; letter-spacing: .1em; margin: 0 4px 10px; }
.hero-visual .hero-art { border-radius: 5px; aspect-ratio: 3 / 2; object-fit: contain; background: #090d12; }
.hero-visual figcaption { padding: 14px 4px 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.game-facts { padding-bottom: 46px; }
.game-facts dl { display: grid; grid-template-columns: repeat(3,1fr); margin: 0; border-block: 1px solid var(--line); }
.game-facts dl > div { padding: 20px 24px; border-right: 1px solid var(--line); }
.game-facts dl > div:first-child { padding-left: 0; }
.game-facts dl > div:last-child { border: 0; }
.game-facts dt { font-size: 14px; color: var(--muted); }
.game-facts dd { margin: 6px 0 0; font-size: 17px; font-weight: 700; }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; padding-top: 80px; padding-bottom: 45px; align-items: center; }
.intro h2 { margin-top: 20px; font: 600 clamp(30px,3.1vw,46px)/1.65 var(--display); }
.intro-body { color: var(--muted); font-size: 18px; }
.features { display: grid; grid-template-columns: repeat(2,1fr); gap: 36px 48px; padding-top: 15px; padding-bottom: 80px; }
.feature { border-top: 1px solid var(--line); padding-top: 28px; }
.feature-top { display: flex; gap: 20px; align-items: center; }
.feature-number { color: var(--accent); font: 500 34px/1 Georgia,serif; }
.feature h3 { font: 600 25px/1.65 var(--display); margin: 22px 0 12px; }
.feature p { color: var(--muted); font-size: 17px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 35px; }
.section-heading h2, .faq h2 { margin-top: 16px; font: 600 clamp(28px,3vw,42px)/1.6 var(--display); }
.small-label { color: var(--muted); font-size: 13px; letter-spacing: .08em; }
.screens-section { padding-block: 76px; background: #0c2521; border-block: 1px solid var(--line); }
.screen-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.screen-gallery figure { min-width: 0; }
.screen-link { display: block; border: 1px solid var(--line); padding: 8px; background: #071916; }
.screen-gallery img { aspect-ratio: 3 / 2; object-fit: contain; background: #090d12; }
.screen-gallery figcaption { padding: 20px 0 0; }
.screen-gallery h3 { font-size: 23px; margin: 10px 0; }
.screen-gallery p { font-size: 17px; color: var(--muted); }
.screen-note { color: var(--muted); border-top: 1px solid var(--line); margin-top: 30px !important; padding-top: 24px; font-size: 15px; }
.screen-gallery.single { grid-template-columns: 1.25fr 1fr; }
.screen-gallery.single figure { grid-column: 1/-1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.news-section { background: var(--panel); padding-block: 76px; }
.news-list { border-top: 1px solid var(--line); }
.news-row { display: grid; grid-template-columns: 100px 72px 1fr 22px; gap: 20px; padding-block: 27px; border-bottom: 1px solid var(--line); }
.news-row time { font-size: 14px; color: var(--muted); }
.news-category { color: var(--accent); font-size: 12px; letter-spacing: .08em; }
.news-row h3 { font-size: 19px; }
.news-row p { color: var(--muted); font-size: 16px; margin-top: 8px; }
.news-arrow { color: var(--accent); }
.section-caption { margin-top: 24px !important; color: var(--muted); font-size: 15px; }
.news-empty { padding-block: 30px; border-bottom: 1px solid var(--line); }
.news-empty p { margin-block: 12px; font-size: 18px; }
.howto { padding-top: 80px; padding-bottom: 80px; }
.start-steps { list-style: none; padding: 0; margin: 38px 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 35px; }
.start-steps li { position: relative; padding-left: 42px; }
.step-index { position: absolute; left: 0; top: 0; color: var(--accent); font: 24px/1.5 Georgia,serif; }
.start-steps h3 { font-size: 21px; margin-bottom: 14px; }
.start-steps p { font-size: 17px; color: var(--muted); }
.controls-panel { padding: 28px; background: var(--panel); border: 1px solid var(--line); }
.controls-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.controls-heading h3 { font-size: 23px; }
.control-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.control-tabs button { min-height: 48px; padding: 10px 20px; background: transparent; color: var(--ink); border: 1px solid var(--line); font-size: 16px; }
.control-tabs button[aria-selected=true] { background: var(--accent); color: #132821; border-color: var(--accent); }
.key-grid { display: grid; grid-template-columns: repeat(2,1fr); margin: 0; gap: 0 28px; }
.key-grid > div { display: flex; gap: 16px; align-items: center; padding-block: 15px; border-top: 1px solid var(--line); min-height: 64px; }
.key-grid dt { flex-shrink: 0; }
.key-grid dd { margin: 0; font-size: 16px; color: var(--muted); }
kbd { display: inline-block; min-width: 32px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); font: 14px/1.7 var(--sans); }
.control-note, .touch-note { color: var(--muted); font-size: 16px; }
.touch-note { padding-block: 20px; }
.advanced-controls { margin-top: 24px; }
.guide-links { margin-top: 32px; }
.guide-links h3 { font-size: 21px; }
.guide-links a { display: block; border-bottom: 1px solid var(--line); padding-block: 16px; font-size: 17px; }
.faq { padding-top: 70px; padding-bottom: 80px; display: grid; grid-template-columns: .75fr 1.4fr; gap: 60px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; min-height: 56px; font-size: 17px; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary span { color: var(--accent); }
details[open] summary span { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: 24px; font-size: 17px; }
.closing { padding-block: 68px; text-align: center; border-block: 1px solid var(--line); background: var(--panel); }
.closing h2 { font: 600 clamp(28px,3vw,44px)/1.6 var(--display); margin-block: 22px 30px; }
.closing p:last-child { color: var(--muted); font-size: 16px; margin-top: 20px; }
.site-footer { padding: 42px 5vw; display: grid; grid-template-columns: 1fr 1.3fr; gap: 26px; }
.footer-brand { font: 600 24px/1.5 var(--display); }
.site-footer span, .site-footer p { color: var(--muted); font-size: 14px; }
.site-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 22px; justify-content: flex-end; }
.site-footer nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: 16px; }
.site-footer .legal { grid-column: 1/-1; border-top: 1px solid var(--line); padding-top: 26px; }
.archive { min-height: 70vh; padding-block: 60px 90px; }
.archive > .eyebrow { margin-top: 36px; }
.archive h1 { font: 600 clamp(30px,4vw,55px)/1.6 var(--display); margin-block: 20px; }
.archive-lead { color: var(--muted); margin-bottom: 35px !important; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 28px; margin-top: 35px; }
.pagination a { min-height: 44px; display: inline-flex; align-items: center; }
.theme-town :is(.intro,.features,.howto) { max-width: none; padding-inline: max(5vw,calc((100vw - 1280px)/2)); background: #f2efdf; --ink: #173b32; --muted: #405e50; --accent: #385d29; --line: #b5c4af; --panel: #e7e9d8; color: var(--ink); }
.theme-town .howto { border-block: 1px solid #b5c4af; }
.theme-town .hero-visual .hero-art, .theme-town .screen-gallery img { aspect-ratio: 16 / 9; }
.theme-town .howto .control-tabs button[aria-selected=true] { color: #faf6e9; }
.theme-mecha { --bg: #101319; --panel: #191e26; --ink: #f5f5f1; --muted: #cad2dc; --accent: #ffb176; --line: #56616e; --display: var(--sans); }
.theme-mecha .wordmark { font: 900 26px/1.4 Arial,var(--sans); }
.theme-mecha .brand-mark { font-family: monospace; }
.theme-mecha .hero h1 { font-weight: 900; letter-spacing: -.055em; }
.theme-mecha .screen-frame { border-radius: 0; background: #090d12; border-color: var(--accent); }
.theme-mecha .hero-art { border-radius: 0; }
.theme-mecha .screens-section { background: #0b0e13; }
.theme-mecha .screen-link { background: #090d12; }
.theme-mecha .features { grid-template-columns: repeat(3,1fr); }
.theme-mecha .feature-number { font-family: monospace; font-weight: 800; }
.theme-mecha :is(.button.primary,.control-tabs button[aria-selected=true]) { color: #22170f; }
@media(max-width:1100px) {
  .site-header { flex-wrap: wrap; }
  .site-header nav { order: 3; width: 100%; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
  .hero { gap: 30px; padding-block: 50px; grid-template-columns: 1fr 1.1fr; }
  .hero h1 { font-size: 46px; }
  .hero-lead { font-size: 17px; }
  .hero-actions { gap: 12px; }
  .theme-mecha .features { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
}
@media(max-width:700px) {
  body.game-site { font-size: 16px; }
  .section-wrap { padding-inline: 6vw; }
  .site-header { padding: 16px 6vw; gap: 14px; }
  .wordmark, .theme-mecha .wordmark { font-size: 21px; }
  .wordmark small { font-size: 11px; }
  .brand-mark { font-size: 28px; }
  .header-play { font-size: 14px; padding: 10px 12px; }
  .site-header nav { gap: 4px 10px; }
  .site-header nav a { font-size: 14px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; padding: 32px 6vw; gap: 18px; }
  .hero-copy { display: contents; }
  .hero-copy > .eyebrow { order: 0; }
  .hero-genre { order: 1; }
  .hero h1 { order: 2; }
  .hero-visual { order: 3; }
  .hero-lead { order: 4; }
  .hero-actions { order: 5; }
  .platform-note { order: 6; margin-top: 0 !important; }
  .hero-genre { font-size: 16px; margin: 0 !important; }
  .hero h1 { font-size: clamp(34px,9.4vw,48px); margin: 0; }
  .hero-lead { font-size: 17px; line-height: 1.95; }
  .hero-actions { margin-top: 8px; }
  .hero-actions .button { width: 100%; }
  .hero-visual figcaption { font-size: 14px; }
  .game-facts { padding-bottom: 34px; }
  .game-facts dl { grid-template-columns: 1fr; }
  .game-facts dl > div { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .game-facts dd { font-size: 16px; }
  .intro { display: block; padding-block: 50px 30px; }
  .intro-body { font-size: 17px; margin-top: 25px !important; }
  .features, .theme-mecha .features { grid-template-columns: 1fr; padding-bottom: 50px; gap: 28px; }
  .feature h3 { font-size: 23px; }
  .theme-town :is(.intro,.features,.howto) { padding-inline: 6vw; }
  .section-heading { display: block; }
  .section-heading > .text-link, .section-heading > .small-label { margin-top: 20px; display: inline-flex; }
  .screens-section, .news-section { padding-block: 50px; }
  .screen-gallery, .screen-gallery.single, .screen-gallery.single figure { display: block; }
  .screen-gallery figure + figure { margin-top: 30px; }
  .screen-gallery.single figcaption { padding-top: 20px; }
  .news-row { grid-template-columns: 100px 1fr 20px; gap: 10px; }
  .news-row > a { grid-column: 1/3; grid-row: 2; }
  .news-arrow { grid-row: 2; grid-column: 3; }
  .news-row h3 { font-size: 18px; }
  .howto { padding-block: 50px; }
  .start-steps { grid-template-columns: 1fr; gap: 28px; }
  .controls-panel { padding: 20px 16px; }
  .controls-heading { display: block; }
  .control-tabs { margin-top: 18px; }
  .key-grid { grid-template-columns: 1fr; }
  .key-grid > div { justify-content: space-between; }
  .key-grid dd { text-align: right; }
  .faq { display: block; padding-block: 50px; }
  .faq-list { margin-top: 28px; }
  .closing { padding-block: 50px; }
  .site-footer { padding: 34px 6vw; }
  .draft-bar span { display: block; margin-left: 0; }
}
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }
