/* Just Beat It — ゲームの UI（暗い板と筆の帯）にそろえた見た目 */
:root {
  --bg: #0b0a0e;
  --bg-2: #121017;
  --plate: rgba(20, 18, 25, .9);
  --plate-line: rgba(255, 255, 255, .09);
  --ink: #f3eee6;
  --muted: #aaa3ae;
  --magenta: #dd007b;
  --cyan: #087f96;
  --gray: #4b4852;
  --p1: #17b2ff;
  --p2: #3ceca8;
  --stage: #ff2d78;
  --font: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gutter: clamp(16px, 5vw, 72px);
  --header-h: calc(60px + env(safe-area-inset-top, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
html.calm { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.3; }
p { margin: 0; }
code, kbd, pre { font-family: var(--font); }

/* 言語の切り替え: 選んでいない方の言語を隠す */
:root[data-lang="ja"] [lang="en"],
:root[data-lang="en"] [lang="ja"] { display: none !important; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  padding: 8px 16px; background: var(--cyan); color: #fff;
}
.skip:focus { top: 8px; }

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---- 筆の帯 ---- */
.band {
  --band: var(--gray);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  isolation: isolate;
  padding: .5em 1.5em;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0 -.35em;
  z-index: -1;
  background: var(--band);
  -webkit-mask: url(../img/band-row-white.png) center / 100% 100% no-repeat;
  mask: url(../img/band-row-white.png) center / 100% 100% no-repeat;
}
.band-action { --band: var(--cyan); }
.band-idle { --band: var(--gray); }
.band-selected, .band[aria-selected="true"], .band[aria-current="true"] { --band: var(--magenta); }
a.band:hover, button.band:hover, .band:focus-visible {
  transform: scale(1.08);
  filter: brightness(1.2);
}
.band:active { transform: scale(1.04); }
.band.is-disabled { cursor: default; filter: saturate(.4) brightness(.8); }
.band.is-disabled:hover { transform: none; filter: saturate(.4) brightness(.8); }
.band-big { font-size: clamp(1rem, 2.2vw, 1.25rem); padding: .7em 2em; }
.band small { font-size: .7em; font-weight: 600; opacity: .85; margin-left: .6em; letter-spacing: .04em; }

/* ---- 暗い板 ---- */
.plate {
  position: relative;
  background: var(--plate);
  border: 1px solid var(--plate-line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(0, 0, 0, .5);
  padding: clamp(18px, 3vw, 32px);
}

.p1 { color: var(--p1); font-weight: 700; }
.p2 { color: var(--p2); font-weight: 700; }
.note { color: var(--muted); font-size: .92rem; }
.lead { font-size: 1.1rem; margin-bottom: 28px; }

/* ---- ヘッダー ---- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 20px;
  padding: env(safe-area-inset-top, 0px) max(var(--gutter), env(safe-area-inset-right, 0px)) 0 max(var(--gutter), env(safe-area-inset-left, 0px));
  background: linear-gradient(rgba(11, 10, 14, .92), rgba(11, 10, 14, .75));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  transition: opacity .6s ease, transform .6s ease;
}
html.js:not(.opened) .header { opacity: 0; transform: translateY(-100%); pointer-events: none; }
.header-logo img, .hero-logo img, .footer img { image-rendering: crisp-edges; image-rendering: pixelated; }
.header-logo { flex: 0 0 auto; width: 116px; min-height: 40px; display: grid; align-items: center; line-height: 0; }
.nav { display: flex; min-width: 0; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  display: flex; align-items: center; gap: 6px;
  min-width: 40px; min-height: 40px; padding: 6px 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: .88rem;
  white-space: nowrap;
  transition: color .15s;
}
.nav a b { font-size: .72rem; color: var(--magenta); letter-spacing: .05em; }
.nav a:hover, .nav a.is-current { color: #fff; }
.nav a.is-current b { color: #fff; }
.lang { display: flex; gap: 2px; flex: 0 0 auto; font-size: .78rem; }
.band-chip { min-width: 40px; min-height: 40px; padding: .3em 1em; }
.band-chip .short { display: none; }

@media (max-width: 960px) {
  .header { gap: 12px; }
  .band-chip .long { display: none; }
  .band-chip .short { display: inline; }
  .nav a span { display: none !important; }
  .nav a b { font-size: .82rem; color: var(--muted); }
  .nav a.is-current b { color: #fff; }
}
@media (max-width: 560px) {
  :root { --header-h: calc(96px + env(safe-area-inset-top, 0px)); }
  .header { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 44px 44px; gap: 0 12px; padding-bottom: 8px; }
  .header-logo { width: 116px; }
  .nav { grid-column: 1 / -1; grid-row: 2; width: 100%; justify-content: space-between; margin: 0; gap: 0; overflow: visible; }
  .lang { grid-column: 2; grid-row: 1; }
  .nav a { min-width: 40px; justify-content: center; padding: 6px; }
  .band-chip { padding: .3em .7em; }
  .band-chip .long { display: none; }
  .band-chip .short { display: inline; }
}

/* ---- 00 トップ（オープニング） ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: start center;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}
.hero-scene { position: absolute; inset: 0; z-index: -1; opacity: 1; transition: opacity 2.4s ease; }
.hero-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-scene::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(#0008, transparent 28%, transparent 70%, #0b0a0e),
    linear-gradient(transparent 20%, #08070b66 40%, #08070b99 58%, transparent 85%);
}
html.js:not(.calm) .hero:not(.is-logo):not(.is-done) .hero-scene { opacity: 0; }
.hero.is-done .hero-scene, html.calm .hero-scene { transition: none; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-center {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: max(calc(var(--header-h) + 32px), 22svh) max(20px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)) max(96px, env(safe-area-inset-bottom, 0px));
  width: 100%;
}
.hero-logo { width: min(80vw, 696px); line-height: 0; }
.hero-logo img { width: 100%; filter: drop-shadow(0 0 18px rgba(255, 255, 255, .28)); }
.hero-sub {
  margin-top: clamp(14px, 2.5vw, 26px);
  font-size: clamp(.8rem, 1.6vw, 1rem);
  letter-spacing: .6em;
  text-indent: .6em;
  color: #d9d3cc;
}
.hero-catch {
  margin-top: 10px;
  font-size: clamp(1.15rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: .08em;
}
.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 28px;
  margin-top: clamp(28px, 5vw, 48px);
}
.hero-skip {
  position: absolute; right: max(16px, env(safe-area-inset-right, 0px)); z-index: 3;
  min-height: 40px; padding: 6px 14px; bottom: max(16px, env(safe-area-inset-bottom, 0px));
  background: transparent; border: 1px solid rgba(255, 255, 255, .25); color: #ccc;
  font: inherit; font-size: .8rem; cursor: pointer;
}
.hero-skip:hover { color: #fff; border-color: #fff; }
html:not(.js) .hero-skip, html.opened .hero-skip { display: none; }
.hero-scroll {
  position: absolute; bottom: 18px; left: 50%; z-index: 2;
  transform: translateX(-50%);
  font-size: .7rem; letter-spacing: .4em; color: #8d8790; text-decoration: none;
  transition: opacity .6s ease;
}
.hero-scroll::after {
  content: ""; display: block; width: 1px; height: 28px; margin: 6px auto 0;
  background: linear-gradient(#8d8790, transparent);
}
html.js:not(.opened) .hero-scroll { opacity: 0; }

/* 両脇から伸びる飾り（ステージの CG の切れ端） */
.hero-flank {
  position: absolute; top: 50%; z-index: 1;
  width: calc(50% - min(40vw, 380px) + 3vw);
  display: flex; flex-direction: column; gap: 7px;
  transform: translateY(-62%);
  pointer-events: none; opacity: .3;
}
.hero-flank-left { left: 0; align-items: flex-start; }
.hero-flank-right { right: 0; align-items: flex-end; }
.hero-flank i {
  display: block;
  height: clamp(8px, 1.4vw, 18px);
  background-size: 180% auto;
  background-position: center;
  box-shadow: 0 0 14px var(--c);
  border-top: 2px solid var(--c);
  transform-origin: left center;
  opacity: .9;
}
.hero-flank-left i { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%); }
.hero-flank-right i { transform-origin: right center; clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); }
.hero-flank i:nth-child(1) { width: 78%; }
.hero-flank i:nth-child(2) { width: 100%; }
.hero-flank i:nth-child(3) { width: 62%; }
.hero-flank i:nth-child(4) { width: 90%; }
.hero-flank i:nth-child(5) { width: 50%; }

/* オープニングの段階: JS があるときだけ隠してから順に出す */
html.js .hero-logo, html.js .hero-sub, html.js .hero-catch, html.js .hero-actions { opacity: 0; }
html.js .hero-flank i { transform: scaleX(0); }
.hero.is-logo .hero-logo { animation: logo-in 1.6s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero.is-sub .hero-sub { animation: rise .8s ease forwards; }
.hero.is-sub .hero-catch { animation: rise .8s .25s ease forwards; }
.hero.is-flank .hero-flank i { animation: flank .9s cubic-bezier(.2, .8, .2, 1) forwards; }
.hero.is-flank .hero-flank i:nth-child(2) { animation-delay: .08s; }
.hero.is-flank .hero-flank i:nth-child(3) { animation-delay: .16s; }
.hero.is-flank .hero-flank i:nth-child(4) { animation-delay: .24s; }
.hero.is-flank .hero-flank i:nth-child(5) { animation-delay: .32s; }
.hero.is-ready .hero-actions { animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) forwards; }
.hero.is-done .hero-logo, .hero.is-done .hero-sub, .hero.is-done .hero-catch, .hero.is-done .hero-actions { animation: none; opacity: 1; }
.hero.is-done .hero-flank i { animation: none; transform: none; }

@keyframes logo-in {
  0% { opacity: 0; transform: scale(1.12); filter: brightness(4) blur(14px); }
  25% { opacity: 1; filter: brightness(2.6) blur(2px); }
  100% { opacity: 1; transform: scale(1); filter: brightness(1) blur(0); }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes flank { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }

@media (max-width: 720px) {
  .hero-flank { display: none; }
  .hero-scene img { object-position: 73% center; }
  .hero-sub { letter-spacing: .25em; text-indent: .25em; }
  .hero-actions { width: 100%; gap: 18px; }
  .hero-actions .band { max-width: 100%; }
  .hero-actions small { display: block; margin-left: 0; }
  .hero-actions { flex-direction: column; align-items: center; }
}

/* ---- 区画 ---- */
.section {
  position: relative;
  padding: clamp(80px, 12vw, 140px) var(--gutter);
  min-height: 80svh;
  border-top: 1px solid rgba(255, 255, 255, .05);
}
.section::before {
  /* 区画の頭の斜めの線 */
  content: "";
  position: absolute; left: 0; top: -1px;
  width: 38%; height: 4px;
  background: var(--magenta);
  transform: skewX(-40deg); transform-origin: left;
}
.section--alt::before { left: auto; right: 0; background: var(--cyan); transform: none; clip-path: polygon(0 0, 100% 0, 100% 100%, 4px 100%); }
.section > * { max-width: 1180px; margin-left: auto; margin-right: auto; }
.section-head { position: relative; margin-bottom: clamp(36px, 6vw, 64px); }
.section-no {
  position: absolute; left: -.06em; top: -.62em; z-index: 0;
  font-size: clamp(6rem, 18vw, 13rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .14);
  pointer-events: none;
  user-select: none;
}
.section-title { position: relative; z-index: 1; font-size: clamp(1.6rem, 4.4vw, 2.6rem); font-weight: 900; }
.band-title {
  --band: var(--magenta);
  padding: .3em 1.2em .35em;
  transform: rotate(-3deg);
  transform-origin: left center;
  letter-spacing: .06em;
}
.section-en {
  position: relative; z-index: 1;
  margin-top: 14px; margin-left: 4px;
  font-size: .78rem; letter-spacing: .5em; color: var(--muted);
}
.section-head--alt { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.section-head--alt .section-no { left: auto; right: -.02em; }
.section-head--alt .section-title { grid-column: 2; max-width: 100%; text-align: right; }
.section-head--alt .band-title { --band: #f3eee6; color: #17131e; transform: rotate(2deg); transform-origin: right center; }
.section-head--alt .section-en { grid-column: 2; margin-left: 4px; color: #d6d0c9; }
.sub-title { font-size: 1.25rem; margin: 56px 0 14px; padding-left: 14px; border-left: 4px solid var(--cyan); }

/* ---- 01 ゲームについて ---- */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 340px); gap: clamp(24px, 4vw, 56px); align-items: start; }
.about-lead p { font-size: clamp(1rem, 1.8vw, 1.18rem); line-height: 2.1; }
.about-lead .aside { margin-top: 14px; font-size: .88rem; color: var(--muted); line-height: 1.8; }
.features { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 14px; }
.features li { padding: 22px 22px 22px 70px; }
.features li > b {
  position: absolute; left: 18px; top: 18px;
  font-size: 1.5rem; font-weight: 900; color: var(--magenta); line-height: 1;
}
.features h3 { font-size: 1.08rem; margin-bottom: 6px; }
.features p { font-size: .92rem; color: #d6d0c9; line-height: 1.8; }
.about-art { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.about-art img { width: 100%; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); }
@media (max-width: 820px) {
  .about { grid-template-columns: minmax(0, 1fr); }
  .about-art { position: static; max-width: 240px; margin: 0 auto; order: -1; }
}

/* ---- 02 ステージ ---- */
.stages {
  min-height: 100svh; overflow: hidden; isolation: isolate;
  padding-top: calc(var(--header-h) + 28px); padding-bottom: 28px;
  display: flex; flex-direction: column; justify-content: center;
}
.stages > * { width: 100%; }
.stages .section-head { margin-bottom: 12px; }
.stage-bg { position: absolute; inset: 0; z-index: -1; max-width: none; margin: 0; }
.stage-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.1) brightness(.55);
  transition: opacity .7s ease;
}
.stage-bg img[data-stage-bg-next] { opacity: 0; }
.stage-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 10, 14, .92) 0%, rgba(11, 10, 14, .55) 38%, rgba(11, 10, 14, .2) 70%, rgba(11, 10, 14, .55) 100%),
    linear-gradient(rgba(11, 10, 14, .85), transparent 22%, transparent 75%, rgba(11, 10, 14, .95));
}
.stage-ui { min-width: 0; display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(20px, 4vw, 60px); align-items: center; }
.stage-list { display: flex; flex-direction: column; gap: 4px; }
.stage-list button {
  --band: rgba(60, 57, 66, .78);
  min-height: 40px;
  position: relative;
  display: flex; align-items: center; gap: 14px;
  isolation: isolate;
  padding: clamp(.3em, .9svh, .55em) 1.2em;
  border: 0; background: none; color: #ddd7d0;
  font: inherit; font-size: 1rem; font-weight: 600; text-align: left;
  cursor: pointer;
  transform-origin: left center;
  transition: transform .18s ease, filter .18s ease, color .18s;
}
.stage-list button::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--band);
  -webkit-mask: url(../img/band-row-white.png) center / 100% 100% no-repeat;
  mask: url(../img/band-row-white.png) center / 100% 100% no-repeat;
}
.stage-list button b { font-size: .8rem; color: var(--muted); width: 1.6em; }
.stage-list button:hover { filter: brightness(1.25); transform: scale(1.03); color: #fff; }
.stage-list button[aria-selected="true"] { --band: var(--magenta); color: #fff; transform: scale(1.08); }
.stage-list button[aria-selected="true"] b { color: #fff; }

.stage-stage { min-width: 0; position: relative; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; text-align: center; }
.stage-stage::before {
  /* ステージの色の傾いた帯 */
  content: ""; position: absolute; left: -10%; right: -10%; top: 46%; height: 34%;
  background: var(--stage);
  opacity: .22;
  transform: rotate(-6deg);
  -webkit-mask: url(../img/band-row-white.png) center / 100% 100% no-repeat;
  mask: url(../img/band-row-white.png) center / 100% 100% no-repeat;
  transition: background .5s ease;
}
.stage-count { position: relative; justify-self: end; display: flex; align-items: baseline; gap: 8px; color: var(--muted); font-size: .8rem; letter-spacing: .3em; }
.stage-count b { font-size: clamp(2.6rem, 6vw, 4rem); color: var(--stage); letter-spacing: 0; line-height: 1; transition: color .4s; }
.stage-enemy { position: relative; display: grid; place-items: center; width: min(68vw, 400px, 46svh); aspect-ratio: 1; }
.stage-enemy img {
  width: 100%; height: 100%; object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 24px var(--stage)) drop-shadow(0 0 2px rgba(0, 0, 0, .9));
}
.stage-enemy.is-enter img { animation: enemy-in .55s cubic-bezier(.2, .8, .2, 1); }
@keyframes enemy-in { from { opacity: 0; transform: translateX(14%) scale(.92); } to { opacity: 1; transform: none; } }
.stage-name { max-width: 100%; overflow-wrap: anywhere; position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stage-name ruby {
  font-size: clamp(2.2rem, min(6vw, 7svh), 4.2rem); font-weight: 900; color: var(--stage);
  text-shadow: 0 0 22px rgba(0, 0, 0, .8), 0 2px 0 rgba(0, 0, 0, .7);
  -webkit-text-stroke: 6px rgba(8, 7, 11, .9);
  paint-order: stroke fill;
  letter-spacing: .08em;
  transition: color .4s;
}
.stage-name rt { font-size: .26em; font-weight: 600; color: #e6e0d8; letter-spacing: .3em; -webkit-text-stroke: 0; }
.stage-name [data-stage-name-en] { font-size: .9rem; letter-spacing: .3em; color: #d8d2cb; text-transform: uppercase; }
:root[data-lang="en"] .stage-name [data-stage-name-en] {
  font-size: clamp(2rem, 5.6vw, 3.8rem); font-weight: 900; letter-spacing: .04em; text-transform: none;
  color: var(--stage); text-shadow: 0 0 22px rgba(0, 0, 0, .8), 0 2px 0 rgba(0, 0, 0, .7);
  -webkit-text-stroke: 6px rgba(8, 7, 11, .9); paint-order: stroke fill;
}
.stage-name.is-enter { animation: name-in .5s ease; }
@keyframes name-in { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.stage-help { margin-top: 22px; font-size: .85rem; color: var(--muted); }

@media (max-width: 820px) {
  .stage-ui { grid-template-columns: minmax(0, 1fr); }
  .stage-list { min-width: 0; max-width: 100%; flex-direction: row; overflow-x: auto; padding: 8px 4px 12px; scrollbar-width: thin; }
  .stage-list button { flex: 0 0 auto; transform-origin: center; }
  .stage-stage { min-height: 0; }
  .stage-count { justify-self: center; }
}

/* ---- 03 映像 ---- */
.movie { max-width: 1080px; }
.movie-label { font-weight: 700; margin-bottom: 12px; color: #fff; }
.movie-label::before { content: "▶"; color: var(--magenta); margin-right: 10px; }
.movie-frame { padding: 10px; aspect-ratio: 16 / 9; }
.movie-frame video, .movie-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #000; object-fit: cover; }
.movie-note { margin-top: 12px; color: var(--muted); font-size: .88rem; }

/* ---- 04 Steam・お問い合わせ ---- */
.action-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.dl { display: flex; flex-direction: column; gap: 20px; }
.dl h3 { font-size: 1.6rem; font-weight: 900; letter-spacing: .04em; }
.dl .band { align-self: flex-start; margin-top: auto; }
#steam .steam-note { margin-top: 16px; }
#steam .play-notice { margin-top: 24px; }

/* ---- 05 遊び方 ---- */
.howto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: start; }
.howto .rules { grid-column: 1 / -1; }
@media (max-width: 820px) {
  .howto { grid-template-columns: minmax(0, 1fr); }
}
.controls h3, .rules h3, .credits h3 { font-size: 1.12rem; margin-bottom: 16px; }
.control-map { margin: 0; }
.control-row { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.control-row dt { margin-bottom: 8px; color: var(--muted); font-size: .88rem; font-weight: 600; }
.control-row dd { margin: 0; }
.key-set { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.key-cluster { display: inline-grid; grid-template-columns: repeat(3, 32px); gap: 4px; }
.key-cluster kbd { margin: 0; min-width: 0; min-height: 32px; display: grid; place-items: center; }
.key-cluster kbd:first-child { grid-column: 2; }
.key-cluster kbd:nth-child(2) { grid-column: 1; }
.key-unit { display: inline-flex; align-items: center; flex-wrap: wrap; }
.controls .note { margin-top: 14px; overflow-wrap: anywhere; }
.controls small { color: var(--muted); }
.controls h4 { margin: 0 0 12px; font-size: 1.15rem; }
.player-maps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.player-map { --player: var(--p1); min-width: 0; padding: 16px; border: 1px solid var(--player); background: #0b0a0e88; }
.player-map--p2 { --player: var(--p2); }
.player-map kbd { border-color: var(--player); }
.controls-duo { min-width: 0; }
.or { color: var(--muted); font-size: .85em; margin: 0 4px; }
kbd {
  display: inline-block; min-width: 1.9em; margin: 2px 2px;
  padding: 1px 6px;
  border: 1px solid rgba(255, 255, 255, .25); border-bottom-width: 3px; border-radius: 4px;
  background: #1d1b22;
  font-size: .85em; font-weight: 700; text-align: center; line-height: 1.6;
}
kbd.wide { min-width: 4.4em; }
kbd.space { min-width: 7em; }
.key-set > kbd, .key-unit kbd { min-height: 32px; padding-top: 3px; padding-bottom: 3px; }
.rules ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: .93rem; }

/* ---- 06 制作 ---- */
.team-name { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 900; margin-bottom: 28px; }
.members { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.members li { padding: 18px 20px 18px 24px; }
.members li::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; background: var(--magenta); }
.members b { display: block; font-size: 1.2rem; }
.members span { color: var(--muted); font-size: .9rem; }

/* ---- 07 クレジット ---- */
.credits { display: grid; gap: 20px; }
.credit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.credit-list li { display: grid; grid-template-columns: minmax(10em, 15em) 1fr; gap: 4px 18px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: .9rem; }
.credit-list li > span { color: #d6d0c9; word-break: break-word; }
.credit-list small { grid-column: 2; color: var(--muted); }
.license {
  margin: 0; max-height: 360px; overflow: auto;
  padding: 16px; background: rgba(0, 0, 0, .35);
  font-family: ui-monospace, Consolas, monospace; font-size: .76rem; line-height: 1.6;
  white-space: pre-wrap; overflow-wrap: anywhere; color: #cfc9c2;
}
@media (max-width: 640px) {
  .player-maps { grid-template-columns: minmax(0, 1fr); }
  .section-title { font-size: clamp(1.35rem, 5.8vw, 1.9rem); }
  .band-title { padding-left: .85em; padding-right: .85em; }
  .section-head--alt .section-en { margin-left: 0; }
  .stage-name [data-stage-name-en] { letter-spacing: .12em; }
  .credit-list li { grid-template-columns: 1fr; }
  .credit-list small { grid-column: 1; }
}

/* ---- フッター ---- */
.footer { padding: 56px var(--gutter) max(40px, env(safe-area-inset-bottom, 0px)); text-align: center; border-top: 1px solid rgba(255, 255, 255, .06); background: #070609; }
.footer img { width: 160px; opacity: .85; }
.footer-team { margin-top: 12px; font-weight: 700; }
.copyright { margin-top: 6px; color: var(--muted); font-size: .8rem; }

/* 出てくる時の動き */
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
