/* GAIP GAME CENTER — neon reel / series select (2026-10-10) */

:root {
  --ink: #05050a;
  --panel: #0c0d16;
  --panel-2: #141522;
  --line: #2c2f42;
  --text: #f6f7fb;
  --text-dim: #b1b5c9;
  --outline: #0a0a10;

  --yellow: #ffe63b;
  --pink: #ff3f8e;
  --cyan: #19e3ff;
  --orange: #ff7a12;
  --purple: #9a5cff;
  --lime: #7dff5a;
  --red: #ff2e44;
  --white: #f6f7fb;
  --on-neon: #0a0a10;

  --font-ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", system-ui, sans-serif;
  --font-latin: "Arial Black", "Segoe UI Black", "Helvetica Neue", Arial, var(--font-ja);
  --font-body: "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", system-ui, sans-serif;

  --ease-punch: cubic-bezier(.2, 1.55, .35, 1);
  --ease-smear: cubic-bezier(.12, .9, .2, 1);
  --d-punch: 280ms;
  --d-smear: 340ms;
  --d-stamp: 240ms;

  --punch-shadow: 0 .05em 0 var(--outline), 0 .09em 0 var(--outline), .03em .03em 0 var(--outline), -.03em .03em 0 var(--outline);

  --accent: var(--yellow);
  --accent-2: var(--pink);
  --glow: rgba(255, 230, 59, .55);
  --glow-2: rgba(255, 63, 142, .5);
  color-scheme: dark;
}

/* シリーズごとに1色。切り替えはフェードせずに一瞬で変える */
body[data-theme="passage"] { --accent: var(--yellow); --accent-2: var(--pink); --glow: rgba(255, 230, 59, .55); --glow-2: rgba(255, 63, 142, .5); }
body[data-theme="hanabi"]  { --accent: var(--pink); --accent-2: var(--yellow); --glow: rgba(255, 63, 142, .55); --glow-2: rgba(255, 230, 59, .45); }
body[data-theme="shoot"]   { --accent: var(--orange); --accent-2: var(--yellow); --glow: rgba(255, 122, 18, .55); --glow-2: rgba(255, 230, 59, .45); }
body[data-theme="sport"]   { --accent: var(--cyan); --accent-2: var(--purple); --glow: rgba(25, 227, 255, .55); --glow-2: rgba(154, 92, 255, .55); }
body[data-theme="sim"]     { --accent: var(--lime); --accent-2: var(--cyan); --glow: rgba(125, 255, 90, .55); --glow-2: rgba(25, 227, 255, .45); }
body[data-theme="job"]     { --accent: var(--purple); --accent-2: var(--yellow); --glow: rgba(154, 92, 255, .55); --glow-2: rgba(255, 230, 59, .45); }
body[data-theme="action"]  { --accent: var(--red); --accent-2: var(--yellow); --glow: rgba(255, 46, 68, .55); --glow-2: rgba(255, 230, 59, .45); }

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  background: var(--ink);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 12px;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.7;
  background: var(--ink);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, h4 { margin: 0; }

:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-neon);
  font-weight: 800;
  text-decoration: none;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 背景 ---------- */

.fx-streaks {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.grid-floor {
  position: absolute;
  left: -40%;
  right: -40%;
  bottom: -8%;
  height: 46%;
  perspective: 520px;
  perspective-origin: 50% 0%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  opacity: .45;
}

.grid-floor-inner {
  position: absolute;
  inset: -64px 0 0 0;
  transform-origin: 50% 0%;
  transform: rotateX(62deg);
  background-image:
    linear-gradient(var(--glow-2) 2px, transparent 2px),
    linear-gradient(90deg, var(--glow-2) 2px, transparent 2px);
  background-size: 64px 64px;
  animation: grid-run 1.2s linear infinite;
}

@keyframes grid-run {
  from { translate: 0 0; }
  to { translate: 0 64px; }
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(0, 0, 0, .75) 100%);
}

.site-header, main, .site-footer { position: relative; z-index: 1; }

/* ---------- ヘッダー ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 14px clamp(14px, 3vw, 36px);
}

.brand {
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
}

.brand-dot {
  width: .45em;
  height: .45em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--glow);
}

.header-label {
  font-family: var(--font-latin);
  font-size: .75rem;
  letter-spacing: .2em;
  color: var(--text-dim);
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.header-tools {
  order: 3;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.home-link {
  order: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 8px 4px;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.home-link:hover { color: var(--accent); }
.home-short { display: none; }

.tool-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 5, 10, .75);
  font-weight: 800;
  font-size: .85rem;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}
.tool-btn:hover { border-color: var(--accent); }

.tool-icon {
  display: inline-grid;
  place-items: center;
  width: 1.25em;
  height: 1.25em;
  font-size: 1rem;
  line-height: 1;
}
.tool-icon--voice {
  width: 1.5em;
  height: 1.5em;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-size: .72rem;
}
.tool-icon--dot::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-dim);
}

.tool-state {
  font-family: var(--font-latin);
  font-size: .7rem;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--line);
  color: var(--text);
}

.label-short { display: none; }

.tool-btn[aria-pressed="true"] { border-color: var(--accent); }
.tool-btn[aria-pressed="true"] .tool-state { background: var(--accent); color: var(--on-neon); }
.tool-btn[aria-pressed="true"] .tool-icon--dot::before { background: var(--accent); box-shadow: 0 0 8px var(--glow); }
/* 音声ガイドの再生中だけアイコンを光らせる（ON/OFFの表示は他のボタンと同じ） */
.voice-toggle.is-speaking .tool-icon--voice { background: var(--accent); border-color: var(--accent); color: var(--on-neon); box-shadow: 0 0 8px var(--glow); }
.tool-btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }

/* ---------- 共通の文字 ---------- */

.hero-title,
.panel-title,
.cut-word,
.reel-word {
  font-family: var(--font-ja);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.02;
  -webkit-text-stroke: .035em var(--outline);
  paint-order: stroke fill;
}

.ghost {
  position: absolute;
  font-family: var(--font-latin);
  font-weight: 900;
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
  opacity: .16;
  pointer-events: none;
  user-select: none;
}

.chip {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: .8rem;
  letter-spacing: .04em;
  line-height: 1.6;
}
.chip--accent { background: var(--accent); color: var(--on-neon); box-shadow: 0 0 14px var(--glow); }

/* ---------- 斜めの帯 ---------- */

.tapes, .stage-tapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.tape {
  position: absolute;
  left: -10%;
  width: 120%;
  display: flex;
  white-space: nowrap;
  overflow: hidden;
  height: clamp(30px, 4vw, 52px);
  align-items: center;
  background: var(--accent);
  color: var(--on-neon);
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: clamp(.9rem, 2.2vw, 1.75rem);
  letter-spacing: .02em;
  box-shadow: 0 0 22px var(--glow);
}

.tape > span {
  flex: none;
  padding-right: .4em;
  animation: tape-run 38s linear infinite;
}

/* 帯はヒーローの上下の余白だけを通し、見出しや説明文にかからない */
.hero .tape--a { top: clamp(8px, 1.4vw, 20px); transform: rotate(2deg); }
.hero .tape--b { bottom: clamp(8px, 1.4vw, 20px); transform: rotate(-2deg); background: var(--accent-2); box-shadow: 0 0 22px var(--glow-2); }
.hero .tape--b > span { animation-direction: reverse; }

@keyframes tape-run {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

/* ---------- ヒーロー ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(88px, 11vw, 156px) clamp(16px, 4vw, 56px) clamp(96px, 11vw, 160px);
  min-height: min(860px, 94vh);
  display: flex;
  align-items: center;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.hero-copy { position: relative; min-width: 0; }

.ghost--hero {
  font-size: clamp(9rem, 26vw, 22rem);
  left: -4%;
  top: 50%;
  translate: 0 -50%;
}

.hero-kicker {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-weight: 700;
  color: var(--text);
}

.hero-title {
  position: relative;
  display: flex;
  flex-direction: column;
  font-family: var(--font-latin);
}

.ht-word {
  display: block;
  font-size: clamp(2.6rem, 9vw, 8rem);
  text-shadow: var(--punch-shadow), 0 0 .4em var(--glow);
}

.ht-word--game { color: var(--white); text-shadow: var(--punch-shadow), 0 0 .3em rgba(255, 255, 255, .25); }
.ht-word--center { color: var(--accent); margin-top: -.06em; }

.hero-lead {
  position: relative;
  margin-top: 18px;
  font-family: var(--font-ja);
  font-weight: 900;
  font-size: clamp(1.15rem, 2.6vw, 1.9rem);
  line-height: 1.25;
}

.lead-prompt {
  display: inline-block;
  color: var(--accent-2);
  text-shadow: 0 2px 0 var(--outline);
}

.lead-ja { text-shadow: 0 2px 0 var(--outline); }

.hero-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 28px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-neon);
  font-size: 1.1rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 0 0 3px var(--outline), 0 0 26px var(--glow);
  transform: skewX(-8deg);
}
.primary-link > span { transform: skewX(8deg); }
.primary-link:hover { filter: brightness(1.08); }

.sound-hint {
  position: relative;
  margin-top: 16px;
  font-size: .85rem;
  color: var(--text-dim);
}

/* リール：光る枠とL字の角、下の名札 */

.reel {
  position: relative;
  margin: 0;
  padding: 18px;
  min-width: 0;
  pointer-events: none;
}

.brackets {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.brackets i {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 0 solid var(--accent-2);
  filter: drop-shadow(0 0 6px var(--glow-2));
}
.brackets i:nth-child(1) { left: 0; top: 0; border-left-width: 4px; border-top-width: 4px; }
.brackets i:nth-child(2) { right: 0; top: 0; border-right-width: 4px; border-top-width: 4px; }
.brackets i:nth-child(3) { left: 0; bottom: 0; border-left-width: 4px; border-bottom-width: 4px; }
.brackets i:nth-child(4) { right: 0; bottom: 0; border-right-width: 4px; border-bottom-width: 4px; }

.reel-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 3px solid var(--accent);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 0 26px var(--glow), inset 0 0 18px var(--glow);
}

.reel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(.72);
}

.reel-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 4px);
  mix-blend-mode: multiply;
}

.reel-word {
  position: absolute;
  left: 50%;
  top: 44%;
  translate: -50% -50%;
  width: max-content;
  max-width: 92%;
  text-align: center;
  font-size: clamp(1.8rem, 5vw, 4rem);
  color: var(--accent);
  text-shadow: var(--punch-shadow), 0 0 .4em var(--glow);
}

.reel-word.is-stamp {
  padding: .06em .3em;
  border: .08em solid var(--accent);
  border-radius: .08em;
  rotate: -5deg;
  box-shadow: 0 0 0 .05em var(--outline), 0 0 .4em var(--glow), inset 0 0 0 .05em var(--outline);
  background: rgba(5, 5, 10, .35);
}
.reel-word.is-white { color: var(--white); text-shadow: var(--punch-shadow), 0 0 .3em rgba(255, 255, 255, .35); }

.reel-third {
  position: absolute;
  left: -2%;
  bottom: -8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  rotate: -2deg;
}

.reel-series {
  padding: 2px 12px;
  border-radius: 4px;
  background: var(--outline);
  color: var(--accent);
  font-weight: 800;
  font-size: .8rem;
  border: 1px solid var(--accent);
}

.reel-name {
  padding: .1em .55em .15em;
  background: var(--accent);
  color: var(--on-neon);
  font-family: var(--font-ja);
  font-weight: 900;
  font-size: clamp(1.3rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  box-shadow: 0 0 0 3px var(--outline), 0 0 24px var(--glow);
}

/* 登場とリールの切り替え */

.hero .tape--a { animation: tape-in-l 520ms var(--ease-smear) both; }
.hero .tape--b { animation: tape-in-r 520ms var(--ease-smear) 120ms both; }
.ht-word--game { animation: punch-in var(--d-punch) var(--ease-punch) 160ms both; }
.ht-word--center { animation: punch-in var(--d-punch) var(--ease-punch) 420ms both; }
.lead-prompt { animation: pop-in 300ms var(--ease-punch) 700ms both; }

.reel.is-cut .reel-img { animation: reel-punch 260ms var(--ease-smear) both; }
.reel.is-cut .reel-word { animation: punch-in var(--d-punch) var(--ease-punch) 80ms both; }
.reel.is-cut .reel-word.is-stamp { animation: stamp-in var(--d-stamp) var(--ease-punch) 80ms both; }
.reel.is-cut .reel-word.is-smear { animation: smear-in var(--d-smear) var(--ease-smear) 80ms both; }
.reel.is-cut .reel-name { animation: smear-in var(--d-smear) var(--ease-smear) both; }
.reel.is-cut .brackets i { animation: bracket-snap 260ms var(--ease-punch) both; }

@keyframes tape-in-l { from { translate: -110% 0; } to { translate: 0 0; } }
@keyframes tape-in-r { from { translate: 110% 0; } to { translate: 0 0; } }

@keyframes punch-in {
  0% { opacity: 0; scale: 2.3; filter: blur(10px); }
  60% { opacity: 1; scale: .94; filter: blur(0); }
  100% { opacity: 1; scale: 1; filter: none; }
}

@keyframes pop-in {
  0% { opacity: 0; scale: .3; }
  70% { opacity: 1; scale: 1.18; }
  100% { opacity: 1; scale: 1; }
}

@keyframes stamp-in {
  0% { opacity: 0; scale: 1.7; rotate: -12deg; }
  70% { opacity: 1; scale: .96; rotate: -4deg; }
  100% { opacity: 1; scale: 1; rotate: -5deg; }
}

@keyframes smear-in {
  0% { opacity: 0; transform: translateX(-45%) skewX(-22deg); filter: blur(8px); }
  100% { opacity: 1; transform: none; filter: none; }
}

@keyframes reel-punch {
  0% { scale: 1.12; filter: saturate(1.2) brightness(1.15); }
  100% { scale: 1; filter: saturate(1.05) brightness(.72); }
}

@keyframes bracket-snap {
  0% { scale: 1.6; opacity: 0; }
  100% { scale: 1; opacity: 1; }
}

/* 画面外・非表示のときは帯と床を止める */
html.hero-off .hero .tape > span,
html.hero-off .grid-floor-inner,
.stage.is-off .tape > span { animation-play-state: paused; }

html.page-hidden *,
html.page-hidden *::before,
html.page-hidden *::after { animation-play-state: paused !important; }

/* ---------- シリーズ選択 ---------- */

.select {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 88px) clamp(14px, 4vw, 48px);
}

.section-head { position: relative; max-width: 760px; margin-bottom: clamp(20px, 3vw, 36px); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-family: var(--font-latin);
  font-size: .8rem;
  letter-spacing: .18em;
  color: var(--accent);
}

.eyebrow-num {
  padding: 0 8px;
  border-radius: 4px;
  background: var(--accent-2);
  color: var(--on-neon);
  letter-spacing: .04em;
}

.section-title {
  font-family: var(--font-ja);
  font-weight: 900;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.15;
  text-shadow: var(--punch-shadow);
}

.section-lead { margin-top: 10px; color: var(--text-dim); }

.select-layout {
  display: grid;
  grid-template-columns: minmax(270px, 360px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.series-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 16px;
  padding-right: 16px;
}

.series-bar {
  --bar-c: var(--yellow);
  --bar-glow: rgba(255, 230, 59, .5);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "num ja count" "num en count";
  align-items: center;
  column-gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 10px 16px 10px 14px;
  text-align: left;
  background: var(--panel);
  border: 2px solid var(--line);
  border-left: 8px solid var(--bar-c);
  border-radius: 8px;
  cursor: pointer;
  transition: transform 160ms var(--ease-smear), background-color 120ms, border-color 120ms;
}
.series-bar[data-series="hanabi"] { --bar-c: var(--pink); --bar-glow: rgba(255, 63, 142, .5); }
.series-bar[data-series="shoot"] { --bar-c: var(--orange); --bar-glow: rgba(255, 122, 18, .5); }
.series-bar[data-series="sport"] { --bar-c: var(--cyan); --bar-glow: rgba(25, 227, 255, .5); }
.series-bar[data-series="sim"] { --bar-c: var(--lime); --bar-glow: rgba(125, 255, 90, .5); }
.series-bar[data-series="job"] { --bar-c: var(--purple); --bar-glow: rgba(154, 92, 255, .5); }
.series-bar[data-series="action"] { --bar-c: var(--red); --bar-glow: rgba(255, 46, 68, .5); }

.series-bar:hover { transform: translateX(6px); border-color: var(--bar-c); }

.sb-num {
  grid-area: num;
  font-family: var(--font-latin);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--bar-c);
  line-height: 1;
}

.sb-ja {
  grid-area: ja;
  font-weight: 900;
  font-size: 1.02rem;
  line-height: 1.3;
}

.sb-en {
  grid-area: en;
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: .76rem;
  letter-spacing: .08em;
  color: var(--bar-c);
}

.sb-count {
  grid-area: count;
  font-family: var(--font-latin);
  font-size: .7rem;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid currentColor;
  color: var(--text-dim);
  white-space: nowrap;
}

.series-bar[aria-selected="true"] {
  background: var(--bar-c);
  border-color: var(--outline);
  color: var(--on-neon);
  transform: translateX(12px) rotate(-1.2deg);
  box-shadow: 0 0 0 3px var(--outline), 0 0 28px var(--bar-glow);
}
.series-bar[aria-selected="true"]::after {
  content: "▶";
  position: absolute;
  right: -16px;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.1rem;
  color: var(--bar-c);
  text-shadow: 0 0 10px var(--bar-glow);
}
.series-bar[aria-selected="true"] .sb-num,
.series-bar[aria-selected="true"] .sb-en,
.series-bar[aria-selected="true"] .sb-count { color: var(--on-neon); }

/* JSが動かないときはタブを隠し、全シリーズを順に並べる */
html:not(.js) .series-bars { display: none; }
html:not(.js) .select-layout { grid-template-columns: minmax(0, 1fr); }
.js .series-panel:not(.is-active) { display: none; }

/* ---------- ステージ ---------- */

.stage {
  position: relative;
  padding: 18px;
  min-width: 0;
  overflow: hidden;
}

.stage > .brackets { z-index: 3; }

.stage-tapes { z-index: 0; inset: -8% -20%; }
.stage-tapes .tape { top: 30%; transform: rotate(-6deg); opacity: .16; filter: blur(2px); }

.series-panel {
  position: relative;
  z-index: 1;
  border: 3px solid var(--accent);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(12, 13, 22, .96), rgba(8, 8, 14, .96));
  box-shadow: 0 0 28px var(--glow), inset 0 0 22px var(--glow);
  padding: clamp(18px, 3vw, 36px);
  overflow: hidden;
}

.series-panel + .series-panel { margin-top: 28px; }
.js .series-panel + .series-panel { margin-top: 0; }

/* JSなしで全シリーズを並べるときは、それぞれの色を使う */
html:not(.js) #panel-passage { --accent: var(--yellow); --glow: rgba(255, 230, 59, .55); }
html:not(.js) #panel-hanabi { --accent: var(--pink); --glow: rgba(255, 63, 142, .55); }
html:not(.js) #panel-shoot { --accent: var(--orange); --glow: rgba(255, 122, 18, .55); }
html:not(.js) #panel-sport { --accent: var(--cyan); --glow: rgba(25, 227, 255, .55); }
html:not(.js) #panel-sim { --accent: var(--lime); --glow: rgba(125, 255, 90, .55); }
html:not(.js) #panel-job { --accent: var(--purple); --glow: rgba(154, 92, 255, .55); }
html:not(.js) #panel-action { --accent: var(--red); --glow: rgba(255, 46, 68, .55); }

.panel-head { position: relative; margin-bottom: clamp(18px, 2.6vw, 30px); }

.ghost--panel {
  right: -2%;
  top: -18%;
  font-family: var(--font-ja);
  font-size: clamp(7rem, 16vw, 15rem);
}

.panel-en {
  position: relative;
  margin-bottom: 6px;
  font-family: var(--font-latin);
  font-size: .78rem;
  letter-spacing: .14em;
  color: var(--accent);
}

.panel-title {
  position: relative;
  font-size: clamp(1.7rem, 4.2vw, 3.4rem);
  color: var(--accent);
  text-shadow: var(--punch-shadow), 0 0 .35em var(--glow);
  overflow-wrap: anywhere;
}

.panel-title .ch { display: inline-block; }

.panel-lead {
  position: relative;
  max-width: 62ch;
  margin-top: 12px;
  color: var(--text-dim);
}

.cut-word {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 22%;
  translate: -50% -50%;
  width: max-content;
  max-width: 94%;
  text-align: center;
  font-size: clamp(2.1rem, 6.4vw, 5.6rem);
  color: var(--white);
  text-shadow: var(--punch-shadow), 0 0 .4em var(--glow);
  pointer-events: none;
  opacity: 0;
}

/* タブ切り替えの演出。カードは短い遅れで出し、選んですぐ押せる */
.stage.is-cutting .cut-word { animation: cut-word 760ms linear both; }
.stage.is-cutting .series-panel.is-active { animation: frame-cut 420ms var(--ease-smear) both; }
.stage.is-cutting .panel-title .ch { animation: drop-char var(--d-punch) var(--ease-punch) calc(100ms + var(--ci, 0) * 32ms) both; }
.stage.is-cutting .game { animation: card-in 340ms var(--ease-smear) calc(120ms + var(--i, 0) * 70ms) both; }
.stage.is-cutting > .brackets i { animation: bracket-snap 260ms var(--ease-punch) both; }
.stage.is-cutting .ghost--panel { animation: ghost-in 600ms var(--ease-smear) both; }

@keyframes cut-word {
  0% { opacity: 0; scale: 2.4; filter: blur(10px); }
  20% { opacity: 1; scale: .94; filter: blur(0); }
  30% { scale: 1; }
  72% { opacity: 1; scale: 1.02; }
  100% { opacity: 0; scale: 1.25; filter: blur(4px); }
}

@keyframes frame-cut {
  0% { scale: .97; box-shadow: 0 0 60px var(--glow), inset 0 0 40px var(--glow); }
  100% { scale: 1; }
}

@keyframes drop-char {
  0% { opacity: 0; translate: 0 -60%; scale: 1.6; }
  100% { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes card-in {
  0% { opacity: 0; translate: 0 22px; clip-path: inset(0 100% 0 0); }
  100% { opacity: 1; translate: 0 0; clip-path: inset(0 0 0 0); }
}

@keyframes ghost-in {
  0% { opacity: 0; scale: 1.5; }
  100% { opacity: .16; scale: 1; }
}

/* ---------- ゲームカード ---------- */

.game-list {
  position: relative;
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}

.game-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.game-list--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.game-list--4, .game-list--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.game-list--solo { grid-template-columns: minmax(0, 1fr); }

.game { min-width: 0; }

.game-link {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: var(--panel-2);
  border: 2px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 120ms, transform 160ms var(--ease-smear), box-shadow 160ms;
}

.game-link:hover,
.game-link:focus-visible {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 0 0 2px var(--outline), 0 0 24px var(--glow);
}

.game-link:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; }

.game-shot {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
}

.game-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 260ms var(--ease-smear);
}
.game-link:hover .game-shot img { scale: 1.05; }
.game--tall .game-shot img { object-position: 50% 38%; }

.game-genre {
  position: absolute;
  left: -6px;
  bottom: 12px;
  padding: 2px 14px 2px 16px;
  background: var(--accent);
  color: var(--on-neon);
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: .72rem;
  letter-spacing: .06em;
  rotate: -3deg;
  box-shadow: 0 0 0 2px var(--outline);
}

.game-step {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--accent-2);
  color: var(--on-neon);
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: .9rem;
  box-shadow: 0 0 0 2px var(--outline), 0 0 12px var(--glow-2);
}

.game-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
  flex: 1;
}

.game-kicker { font-weight: 800; font-size: .88rem; color: var(--accent); }

.game-title {
  font-family: var(--font-ja);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.2;
  text-shadow: 0 3px 0 var(--outline);
}
.game-title--latin { font-family: var(--font-latin); letter-spacing: -.01em; }
.game-title small {
  display: block;
  margin-top: 2px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .04em;
  color: var(--text-dim);
  text-shadow: none;
}

.game-desc { font-size: .92rem; color: var(--text-dim); }

.game-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.game-meta > span {
  padding: 1px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
}

.game-play {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  gap: 8px;
  padding: 8px 18px;
  background: var(--accent);
  color: var(--on-neon);
  font-weight: 900;
  border-radius: 6px;
  box-shadow: 0 0 0 2px var(--outline);
}

.game-list--solo .game-link {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}
.game-list--solo .game-shot { aspect-ratio: auto; min-height: 320px; }
.game-list--solo .game-body { padding: clamp(18px, 3vw, 32px); justify-content: center; }
.game-list--solo .game-title { font-size: clamp(2rem, 4vw, 3.2rem); }
.game-list--solo .game-play { margin-top: 10px; }

.play-note {
  position: relative;
  margin-top: 28px;
  padding: 14px 18px;
  border-left: 4px solid var(--accent-2);
  background: rgba(12, 13, 22, .88);
  font-size: .88rem;
  color: var(--text-dim);
}

/* ---------- 締め ---------- */

.closing {
  position: relative;
  max-width: 1360px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(14px, 4vw, 48px) clamp(48px, 7vw, 88px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
}

.closing p {
  font-family: var(--font-ja);
  font-weight: 900;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  line-height: 1.3;
  color: var(--text-dim);
}
.closing strong {
  display: inline-block;
  margin-top: 4px;
  padding: .05em .45em .1em;
  background: var(--accent);
  color: var(--on-neon);
  font-size: 1.6em;
  rotate: -2deg;
  box-shadow: 0 0 0 3px var(--outline), 0 0 24px var(--glow);
}

.closing a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 22px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: rgba(5, 5, 10, .7);
  font-weight: 800;
  text-decoration: none;
}
.closing a:hover { background: var(--accent); color: var(--on-neon); }

/* ---------- ゲームの相談ページへの案内（2026-10-11） ---------- */

.request-band {
  position: relative;
  max-width: 1360px;
  margin: clamp(8px, 2vw, 24px) auto 0;
  padding: 0 clamp(14px, 4vw, 48px);
}

.rb-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 28px;
  padding: clamp(22px, 3.4vw, 36px) clamp(18px, 3.4vw, 40px);
  border-radius: 22px;
  background: rgba(12, 13, 22, .92);
  box-shadow: 0 0 0 3px var(--outline), 0 0 0 5px var(--accent-2), 0 0 30px var(--glow-2);
  overflow: hidden;
}
/* 流れる斜めのしま */
.rb-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .045) 0 14px, transparent 14px 28px);
  background-size: 200% 200%;
  animation: rb-stripes 3s linear infinite;
  pointer-events: none;
}
.rb-inner > * { position: relative; }

@keyframes rb-stripes { to { background-position: 39.6px 0; } }

/* ガチャのカプセル */
.rb-capsule {
  width: 68px;
  height: 68px;
  border: 4px solid var(--outline);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .75) 0 10%, transparent 11%),
    linear-gradient(var(--accent) 0 47%, var(--outline) 47% 53%, var(--white) 53%);
  box-shadow: 0 0 0 3px var(--accent-2), 0 0 22px var(--glow);
  animation: rb-capsule 2.8s var(--ease-punch) infinite;
}

@keyframes rb-capsule {
  0%, 100% { transform: translateY(0) rotate(-12deg); }
  40% { transform: translateY(-8px) rotate(18deg); }
  60% { transform: translateY(0) rotate(-6deg) scale(1.06, .94); }
}

.rb-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .85rem;
  font-weight: 800;
}

.rb-title {
  margin-top: 6px;
  font-family: var(--font-ja);
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.25;
  text-shadow: var(--punch-shadow), 0 0 .5em var(--glow);
}

.rb-lead { margin-top: 6px; color: var(--text-dim); font-size: .92rem; }
.rb-br { display: none; }

.rb-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 28px;
  border-radius: 10px;
  background: var(--accent-2);
  color: var(--on-neon);
  font-size: 1.05rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 0 3px var(--outline), 0 0 26px var(--glow-2);
  transform: skewX(-8deg);
  transition: transform .2s var(--ease-punch);
}
.rb-link > span { transform: skewX(8deg); }
.rb-link:hover { transform: skewX(-8deg) translateY(-3px) scale(1.04); }

@media (max-width: 760px) {
  .rb-inner { grid-template-columns: auto minmax(0, 1fr); }
  .rb-br { display: inline; }
  .rb-link { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .rb-capsule { width: 50px; height: 50px; align-self: start; }
  .rb-link { white-space: normal; }
}

/* ---------- フッター ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 24px clamp(14px, 4vw, 48px) 40px;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
  font-size: .85rem;
}
.footer-home { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-decoration: none; }
.footer-home:hover { color: var(--accent); }
.site-footer small { margin-left: auto; }

/* ---------- レスポンシブ ---------- */

@media (max-width: 1100px) {
  .game-list--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .reel { width: 100%; max-width: 640px; }
  .select-layout { grid-template-columns: minmax(0, 1fr); }
  .series-bars {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-right: 0;
  }
  .series-bar:hover { transform: none; }
  .series-bar[aria-selected="true"] { transform: rotate(-.8deg); }
  .series-bar[aria-selected="true"]::after { content: none; }
  .game-list--solo .game-link { display: flex; }
  .game-list--solo .game-shot { aspect-ratio: 16 / 9; min-height: 0; }
}

@media (max-width: 640px) {
  .site-header { padding-top: 10px; padding-bottom: 10px; }
  .header-label { display: none; }
  .home-link { margin-left: auto; }
  .header-tools { order: 5; flex: 1 1 100%; margin-left: 0; gap: 6px; }
  .tool-btn { flex: 1 1 0; min-width: 0; padding: 6px 10px; }
  .game-list--2, .game-list--3, .game-list--4, .game-list--5 { grid-template-columns: minmax(0, 1fr); }
  .stage { padding: 12px; }
  .series-panel { padding: 16px; }
  .series-bar {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "num ja" "num count";
    row-gap: 4px;
    column-gap: 8px;
    min-height: 68px;
    padding: 8px 10px 8px 8px;
    border-left-width: 6px;
  }
  .sb-en { display: none; }
  .sb-num { font-size: 1.2rem; }
  .sb-ja { font-size: .92rem; }
  .sb-count { justify-self: start; }
  .reel { padding: 12px; }
  .reel-third { left: 0; }
  .closing { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 400px) {
  .home-long { display: none; }
  .home-short { display: inline; }
  /* 3つのボタンとON/OFF表示を幅320pxでも1行に収める */
  .header-tools { gap: 4px; }
  .tool-btn { flex: 1 1 auto; padding: 6px 4px; gap: 4px; font-size: .78rem; }
  .tool-btn .tool-icon:not(.tool-icon--dot) { display: none; }
  .tool-icon--dot { width: 10px; }
  .tool-state { padding: 1px 5px; font-size: .62rem; }
  .label-long {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .label-short { display: inline; }
  .primary-link { width: 100%; justify-content: center; }
}

/* ---------- 動きOFF（ページ内の切り替え・端末の設定） ---------- */

html[data-motion="off"] *,
html[data-motion="off"] *::before,
html[data-motion="off"] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html[data-motion="off"] { scroll-behavior: auto; }
html[data-motion="off"] .fx-streaks { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .fx-streaks { display: none; }
}
