/* DS CAST theme. Rules: corners at most 2px (circles 50%), buttons of one role share one width. */
:root {
  --bg: #0c0a14;
  --bg2: #15121f;
  --panel: #1c1828;
  --line: #3a3150;
  --text: #f3eefc;
  --muted: #b3a9c9;
  --pink: #ff3d7f;
  --cyan: #35e0ff;
  --yellow: #ffd23f;
  --accent: var(--pink);
  --r: 2px;
  --jp: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --disp: "Dela Gothic One", var(--jp);
  --pixel: "Press Start 2P", monospace;
  --dot: "DotGothic16", var(--jp);
  --btn-w: 10.5em;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--text); font: 500 16px/1.8 var(--jp);
  background-color: var(--bg);
  /* arcade carpet: little confetti shapes */
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 61, 127, .10) 0 3px, transparent 4px),
    radial-gradient(circle at 70% 60%, rgba(53, 224, 255, .09) 0 3px, transparent 4px),
    radial-gradient(circle at 45% 85%, rgba(255, 210, 63, .08) 0 2px, transparent 3px),
    linear-gradient(45deg, transparent 47%, rgba(140, 90, 255, .07) 48% 52%, transparent 53%);
  background-size: 90px 90px, 110px 110px, 70px 70px, 60px 60px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--cyan); }
a:hover { color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: #fff; color: #000; padding: 8px 12px; }
.skip:focus { left: 8px; top: 8px; }
.sp { display: none; }
@media (max-width: 599px) { .sp { display: inline; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; width: var(--btn-w); max-width: 100%; padding: .7em 0; text-align: center;
  font: 900 15px/1.2 var(--jp); letter-spacing: .08em; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; border-radius: var(--r); transition: transform .08s, filter .15s, background .15s, color .15s;
}
.btn:active { transform: translateY(2px); }
.btn--play { background: var(--accent); color: #fff; box-shadow: 0 4px 0 rgba(0, 0, 0, .45), 0 0 18px color-mix(in srgb, var(--accent) 55%, transparent); }
.btn--play:hover { color: #fff; filter: brightness(1.12); }
.btn--sub { background: transparent; color: var(--text); border-color: var(--line); }
.btn--sub:hover { color: #fff; border-color: var(--cyan); background: rgba(53, 224, 255, .08); }
.btn--big { --btn-w: 13em; font-size: 16px; padding: .85em 0; }

/* ---------- header ---------- */
.site-head { position: absolute; inset: 0 0 auto; z-index: 20; }
.site-head__in { max-width: 1200px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; }
.logo__neon {
  font: 400 26px/1 var(--disp); letter-spacing: .06em; color: #ffe6f0;
  text-shadow: 0 0 4px #fff, 0 0 10px var(--pink), 0 0 22px var(--pink), 0 0 40px rgba(255, 61, 127, .6);
}
.logo__flick { animation: flick 6s infinite; }
@keyframes flick { 0%, 92%, 96%, 100% { opacity: 1; } 93%, 95% { opacity: .25; text-shadow: none; } }
.logo__sub { margin-top: 5px; font: 400 8px/1 var(--pixel); letter-spacing: .3em; color: var(--cyan); text-shadow: 0 0 6px var(--cyan); }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav__list a {
  display: block; padding: 8px 14px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px;
  border: 1px solid transparent; border-radius: var(--r); background: rgba(12, 10, 20, .45);
}
.nav__list a:hover, .nav__list .current-menu-item > a { border-color: var(--cyan); color: #fff; box-shadow: 0 0 10px rgba(53, 224, 255, .35); }
.nav-toggle { display: none; }
@media (max-width: 599px) {
  .nav-toggle {
    display: block; width: 44px; height: 44px; position: relative; border: 1px solid var(--line); border-radius: var(--r);
    background: rgba(12, 10, 20, .7); cursor: pointer;
  }
  .nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after {
    position: absolute; left: 11px; width: 20px; height: 2px; background: #fff; content: "";
  }
  .nav-toggle span:first-child { top: 21px; }
  .nav-toggle span:first-child::before { left: 0; top: -6px; }
  .nav-toggle span:first-child::after { left: 0; top: 6px; }
  .nav { position: absolute; top: 66px; left: 16px; right: 16px; display: none; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; gap: 0; background: rgba(12, 10, 20, .96); border: 1px solid var(--line); border-radius: var(--r); }
  .nav__list a { padding: 14px 16px; background: none; border-bottom-color: var(--line); }
  .logo__neon { font-size: 22px; }
}

/* ---------- the arcade (front page) ---------- */
.arcade {
  /* --v: the height the cabinet is fitted to. The cabinet is big: its top (the sign) may go
     above the viewport, and on phones its sides may be cut, but the screen, lever and buttons stay in. */
  --v: max(520px, 100svh);
  position: relative; overflow: hidden; isolation: isolate; height: var(--v);
}
.arcade__room {
  position: absolute; inset: -12px; z-index: -2; background: #000 center 38% / cover no-repeat;
  filter: blur(3px) brightness(.62) saturate(1.15);
  transform: scale(1.04);
}
.arcade__haze {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 50% 62%, rgba(120, 180, 255, .16), transparent 70%),
    linear-gradient(to bottom, rgba(12, 10, 20, .75), transparent 22%, transparent 70%, var(--bg));
}
.arcade__howto {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 5; margin: 0; font: 700 13px/1.6 var(--jp); color: var(--muted); text-align: center;
}
.key {
  display: inline-block; min-width: 3.2em; padding: 0 .5em; margin: 0 .2em; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); color: var(--text); font-size: 12px;
}
.key--a { background: #c8102e; border-color: #ff5a6e; color: #fff; }

/* the cabinet: a photo with a transparent screen; the live screen sits behind it */
.cab {
  /* width: the command card above the screen (its top at 16.5% of the height) just fits under the
     viewport top (10px) while the panel line (78% of the height) sits above the how-to line (56px):
     .615 h = v - 66, h = 1.4233 w. On narrow screens at most 124vw, so the lever (from 21% of
     the width) and the buttons (to 85%) stay inside. */
  --w: min(calc((var(--v) - 66px) / .8753), 124vw);
  --h: calc(var(--w) * 2246 / 1578);
  position: absolute; left: 50%; bottom: calc(56px - var(--h) * .22); margin-left: calc(var(--w) / -2);
  width: var(--w); aspect-ratio: 1578 / 2246; user-select: none; -webkit-user-select: none;
  touch-action: pan-y;
}
.cab__body {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent 100%); mask-image: linear-gradient(to bottom, #000 86%, transparent 100%);
  filter: brightness(.86) contrast(1.06) saturate(.9)
    drop-shadow(-5px 0 10px rgba(53, 140, 255, .32)) drop-shadow(5px 0 10px rgba(255, 61, 127, .3));
}
.cab__shadow {
  position: absolute; left: -12%; right: -12%; bottom: -4%; height: 9%; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .8), transparent 70%);
}
.cab__screen {
  position: absolute; left: 20.5%; top: 24.0%; width: 58.9%; height: 29.3%; z-index: 1; overflow: hidden; background: #000;
}
.cab__crt {
  position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background:
    repeating-linear-gradient(to bottom, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%),
    linear-gradient(160deg, rgba(255, 255, 255, .10), transparent 35%);
  animation: crt 7s infinite;
}
@keyframes crt { 0%, 97%, 100% { opacity: 1; } 98% { opacity: .75; } }
/* light from the screen falling on the control panel */
.cab__spill {
  position: absolute; left: 14%; right: 14%; top: 60%; height: 12%; z-index: 3; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(ellipse at 50% 0, color-mix(in srgb, var(--glow, #6cf) 38%, transparent), transparent 70%);
  transition: background .4s;
}
.cab__marquee {
  position: absolute; left: 19%; top: 6.2%; width: 62%; height: 7.4%; z-index: 3; pointer-events: none;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cab__marquee span {
  font: 400 clamp(16px, calc(var(--w) * .075), 96px)/1 var(--disp); letter-spacing: .08em; white-space: nowrap;
  color: #e8174f; -webkit-text-stroke: 1px #7a0b2b;
  text-shadow: 0 1px 0 #fff, 0 0 12px rgba(255, 255, 255, .8);
  transform: perspective(200px) rotateX(6deg);
}

/* the screen contents */
.scr { position: absolute; inset: 0; font-family: var(--dot); color: #fff; }
.scr__pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.15) contrast(1.05); transition: opacity .15s; }
.scr__noise {
  position: absolute; inset: -50%; opacity: 0; transition: opacity .1s;
  background-image:
    repeating-radial-gradient(circle at 17% 32%, #fff 0 1px, transparent 1px 3px),
    repeating-radial-gradient(circle at 63% 71%, #888 0 1px, transparent 1px 4px);
  background-size: 7px 9px, 11px 6px; background-color: #222;
  animation: noise .25s steps(4) infinite;
}
@keyframes noise { 0% { transform: translate(0, 0); } 25% { transform: translate(-6%, 4%); } 50% { transform: translate(5%, -3%); } 75% { transform: translate(-3%, -6%); } }
.scr[data-kind="soon"] .scr__noise, .scr.is-switching .scr__noise { opacity: .85; }
.scr[data-kind="soon"] .scr__pic { opacity: 0; }
.scr__top {
  position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center;
  padding: 4% 5% 0; font: 400 clamp(7px, calc(var(--w) * .019), 22px)/1 var(--pixel); letter-spacing: .1em; z-index: 2;
}
.scr__label, .scr__count { background: rgba(0, 0, 0, .65); padding: 4px 6px; }
.scr__label { color: var(--yellow); }
.scr__count b { font-weight: 400; }
.scr__soon {
  position: absolute; inset: 0; margin: 0; display: none; align-items: center; justify-content: center; text-align: center; z-index: 2;
  font: 400 clamp(10px, calc(var(--w) * .034), 40px)/1.8 var(--pixel); color: var(--yellow); text-shadow: 2px 2px 0 #000;
}
.scr[data-kind="soon"] .scr__soon { display: flex; }
.scr__bottom {
  position: absolute; left: 0; right: 0; bottom: 15%; display: flex; align-items: center; justify-content: center; gap: 6%; z-index: 2;
}
.scr__title {
  max-width: 62%; padding: 3px 10px; background: rgba(0, 0, 0, .72); border: 1px solid rgba(255, 255, 255, .6);
  font-size: clamp(12px, calc(var(--w) * .04), 46px); line-height: 1.3; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.scr__arrow { font-size: clamp(10px, calc(var(--w) * .032), 36px); color: var(--yellow); text-shadow: 1px 1px 0 #000; animation: nudge .8s ease-in-out infinite alternate; }
.scr__arrow--l { animation-name: nudgeL; }
@keyframes nudge { to { transform: translateX(3px); } }
@keyframes nudgeL { to { transform: translateX(-3px); } }
.scr__start {
  position: absolute; left: 0; right: 0; bottom: 4%; margin: 0; text-align: center; z-index: 2;
  font: 400 clamp(6px, calc(var(--w) * .019), 22px)/1 var(--pixel); letter-spacing: .12em; color: #fff; text-shadow: 1px 1px 0 #000, 0 0 6px var(--pink);
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { to { visibility: hidden; } }
.scr__flash { position: absolute; inset: 0; background: #fff; opacity: 0; z-index: 4; pointer-events: none; }
.scr.is-start .scr__flash { animation: flash .7s ease-out forwards; }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: .95; } 100% { opacity: 0; } }
.scr.is-start .scr__start { animation: blink .12s steps(2, start) infinite; color: var(--yellow); }
.scr.is-msg .scr__start { animation: none; color: var(--yellow); }

/* the control panel: lever on the left, buttons on the right */
.cab__panel { position: absolute; left: 12%; right: 12%; top: 64.4%; height: 11.3%; z-index: 4; }
.lever {
  position: absolute; left: 12%; top: -22%; width: 24%; height: 112%; cursor: grab; touch-action: none; outline: none;
}
.lever:active { cursor: grabbing; }
.lever:focus-visible { outline: 2px dashed var(--cyan); outline-offset: 2px; }
.lever__dust { /* the black dust washer around the shaft */
  position: absolute; left: 50%; bottom: 14%; width: 58%; aspect-ratio: 2.6 / 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse at 50% 40%, #3a3a3a, #0b0b0b 70%); box-shadow: 0 2px 2px rgba(0, 0, 0, .6);
}
.lever__stick {
  position: absolute; left: 50%; bottom: 22%; width: 7%; height: 58%; margin-left: -3.5%; transform-origin: 50% 100%;
  background: linear-gradient(90deg, #555, #ddd 40%, #888 60%, #333); transition: transform .12s cubic-bezier(.3, 1.6, .5, 1);
}
.lever__ball {
  position: absolute; left: 50%; top: 0; width: 640%; aspect-ratio: 1; transform: translate(-50%, -62%); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffb3b3 0 6%, #ff2a3d 22%, #b0001a 62%, #4a0008 100%);
  box-shadow: 0 6px 10px rgba(0, 0, 0, .55), inset -3px -5px 8px rgba(0, 0, 0, .35);
}
.lever.is-l .lever__stick { transform: rotate(-24deg); }
.lever.is-r .lever__stick { transform: rotate(24deg); }
.pbtns { position: absolute; left: 50%; right: 4%; top: 22%; height: 62%; display: flex; justify-content: space-between; align-items: center; }
.pbtn {
  position: relative; width: 28%; aspect-ratio: 1.6 / 1; padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pbtn::before { /* the ring and the side of the button, seen a little from above */
  content: ""; position: absolute; left: 0; right: 0; top: 18%; bottom: 0; border-radius: 50%;
  background: radial-gradient(ellipse at 50% 35%, #2b2b2b, #050505 70%); box-shadow: 0 3px 3px rgba(0, 0, 0, .55);
}
.pbtn__cap {
  position: absolute; left: 12%; right: 12%; top: 0; bottom: 22%; border-radius: 50%;
  background: radial-gradient(ellipse at 40% 30%, var(--c1) 0 12%, var(--c2) 45%, var(--c3) 100%);
  box-shadow: 0 5px 0 var(--c3), 0 6px 4px rgba(0, 0, 0, .5);
  transition: transform .06s, box-shadow .06s;
}
.pbtn.is-down .pbtn__cap, .pbtn:active .pbtn__cap { transform: translateY(4px); box-shadow: 0 1px 0 var(--c3), 0 2px 2px rgba(0, 0, 0, .5); }
.pbtn--a { --c1: #ffd0d0; --c2: #ff2a3d; --c3: #8a0012; width: 34%; }
.pbtn--b { --c1: #d0ecff; --c2: #2a8cff; --c3: #003a8a; }
.pbtn--c { --c1: #fff6c8; --c2: #ffd22a; --c3: #8a6a00; }
.pbtn__lbl {
  position: absolute; left: 0; right: 0; top: 100%; margin-top: 2px; text-align: center;
  font: 900 clamp(8px, calc(var(--w) * .024), 26px)/1 var(--jp); color: #e9e9e9; text-shadow: 0 1px 0 #000; white-space: nowrap;
}
.pbtn--a .pbtn__lbl { color: #fff; }
.pbtn:focus-visible { outline: 2px dashed var(--cyan); outline-offset: 2px; border-radius: 50%; }

/* ---------- sections ---------- */
.sec { padding: 56px 0; }
.sec__in { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sec__in--text { max-width: 800px; }
.sec__ttl {
  margin: 0 0 28px; font: 400 26px/1.3 var(--disp); display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.sec__en { font: 400 13px/1 var(--pixel); color: var(--cyan); text-shadow: 0 0 8px rgba(53, 224, 255, .7); letter-spacing: .12em; }
.empty { color: var(--muted); }
.more { margin: 24px 0 0; text-align: center; }

/* game cards: arcade instruction cards */
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.gcard {
  display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--accent);
  border-radius: var(--r); overflow: hidden; transition: transform .15s, box-shadow .15s;
}
.gcard:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .5), 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent); }
.gcard__thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.gcard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.gcard:hover .gcard__thumb img { transform: scale(1.04); }
.gcard__genre {
  position: absolute; left: 10px; top: 10px; padding: 2px 8px; font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(0, 0, 0, .7); border: 1px solid var(--accent); border-radius: var(--r);
}
.gcard__body { flex: 1; display: flex; flex-direction: column; padding: 16px 18px 18px; }
.gcard__title { margin: 0 0 6px; font: 400 19px/1.45 var(--disp); }
.gcard__title a { color: var(--text); text-decoration: none; }
.gcard__catch { margin: 0 0 6px; font-size: 14px; line-height: 1.7; }
.gcard__meta { margin: 0 0 14px; font-size: 12px; color: var(--muted); }
.gcard__btns { margin-top: auto; display: flex; gap: 10px; }
.gcard__btns .btn { flex: 1; width: auto; }
.gcard--soon { --accent: #4d4466; border-style: dashed; border-top-style: solid; }
.gcard--soon .gcard__thumb {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, #1a1626 0 14px, #211b30 14px 28px);
}
.gcard__q { font: 400 64px/1 var(--pixel); color: #4d4466; animation: blink 1.6s steps(2, start) infinite; }
.gcard--soon .gcard__title { color: var(--muted); }
.gcard--soon .gcard__catch { color: var(--muted); }

/* news */
.sec--news { padding-top: 24px; }
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news__row { border-bottom: 1px solid var(--line); }
.news__link { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 16px 4px; color: var(--text); text-decoration: none; }
.news__link:hover { background: rgba(53, 224, 255, .06); color: #fff; }
.news__date { font: 400 11px/1 var(--pixel); color: var(--yellow); }
.news__cat {
  font-size: 11px; font-weight: 700; padding: 1px 8px; border: 1px solid var(--pink); color: var(--pink); border-radius: var(--r); letter-spacing: 0;
  font-family: var(--jp); text-shadow: none;
}
.news__ttl { flex-basis: 100%; font-weight: 700; }
@media (min-width: 700px) { .news__ttl { flex-basis: auto; flex: 1; } }
.nav-links { display: flex; justify-content: center; gap: 6px; margin-top: 28px; }
.nav-links .page-numbers {
  min-width: 40px; padding: 6px 10px; text-align: center; border: 1px solid var(--line); border-radius: var(--r); color: var(--text); text-decoration: none;
}
.nav-links .current { background: var(--pink); border-color: var(--pink); }

/* page heads (news, pages) */
.page-head { padding: 120px 0 36px; background: linear-gradient(to bottom, #1b1430, var(--bg)); border-bottom: 1px solid var(--line); }
.page-head__en { margin: 0 0 6px; font: 400 12px/1 var(--pixel); color: var(--cyan); display: flex; gap: 12px; align-items: center; }
.page-head__ttl { margin: 0; font: 400 clamp(24px, 5vw, 34px)/1.4 var(--disp); }
.page-head__date { display: block; margin-top: 10px; font: 400 11px/1 var(--pixel); color: var(--yellow); }
.entry__eye { margin: 0 0 28px; }
.entry__eye img { display: block; width: 100%; border-radius: var(--r); }
.entry__nav { margin-top: 48px; text-align: center; }
.prose { font-size: 16px; line-height: 1.95; }
.prose h2 { font: 400 22px/1.5 var(--disp); margin: 2em 0 .8em; padding-left: 12px; border-left: 4px solid var(--pink); }
.prose h3 { font-size: 18px; margin: 1.8em 0 .6em; color: var(--yellow); }
.prose img { border-radius: var(--r); }
.prose blockquote { margin: 1.5em 0; padding: 12px 18px; background: var(--panel); border-left: 4px solid var(--cyan); }
.prose a { color: var(--cyan); }

/* ---------- game page ---------- */
.game__hero { position: relative; overflow: hidden; isolation: isolate; padding: 116px 0 48px; }
.game__room {
  position: absolute; inset: -12px; z-index: -1; background: #000 center / cover no-repeat;
  filter: blur(6px) brightness(.4) saturate(1.2);
}
.game__hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, transparent 50%, var(--bg)); }
.game__hero-in { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.game__crumb { margin: 0 0 12px; font: 400 10px/1.6 var(--pixel); color: var(--muted); }
.game__crumb a { color: var(--cyan); text-decoration: none; }
.game__ttl { margin: 0; font: 400 clamp(26px, 6vw, 46px)/1.3 var(--disp); text-shadow: 0 0 16px color-mix(in srgb, var(--accent) 60%, transparent), 3px 3px 0 #000; }
.game__catch { margin: 10px 0 24px; font-size: clamp(15px, 2.6vw, 19px); font-weight: 700; }
.game__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.game__btns .dscast-size { font-size: 14px; font-weight: 700; }
.game__btns .dscast-size__sel { min-height: 48px; }
/* PC-only / phone-only text; the game plugin's script puts .dscast-is-pc on <html> */
.dscast-pc { display: none; }
.dscast-is-pc .dscast-pc { display: inline; }
.dscast-is-pc .dscast-sp { display: none; }
.game__spec { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 28px 0 0; font-size: 14px; }
.game__spec div { display: flex; gap: 10px; }
.game__spec dt { color: var(--muted); }
.game__spec dd { margin: 0; font-weight: 700; }
.game__play { padding-top: 8px; }
.game__note { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 767px) {
  .game__btns .btn { flex: 1; }
}

/* ---------- 404 ---------- */
.gameover { min-height: 80svh; padding: 140px 16px 60px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gameover__big { margin: 0; font: 400 clamp(28px, 8vw, 64px)/1.2 var(--pixel); color: var(--pink); text-shadow: 4px 4px 0 #000, 0 0 24px rgba(255, 61, 127, .6); }
.gameover__txt { margin: 24px 0 8px; }
.gameover__cont { margin: 0 0 28px; font: 400 14px/1.6 var(--pixel); color: var(--yellow); }
.gameover__count { animation: blink 1s steps(2, start) infinite; }

/* ---------- footer ---------- */
.site-foot { margin-top: 40px; border-top: 1px solid var(--line); background: #08070d; }
.site-foot__in { max-width: 1120px; margin: 0 auto; padding: 36px 16px 28px; text-align: center; }
.site-foot__motto { margin: 0 0 16px; font: 400 17px/1.7 var(--disp); }
.site-foot__menu { list-style: none; margin: 0 0 14px; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 18px; font-size: 14px; }
.site-foot__menu a { color: var(--muted); text-decoration: none; }
.site-foot__copy { margin: 0; font-size: 12px; color: var(--muted); }
.site-foot__insert { margin: 14px 0 0; font: 400 10px/1 var(--pixel); color: var(--yellow); letter-spacing: .2em; animation: blink 1.4s steps(2, start) infinite; }

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

/* Japanese headings: break between phrases, not inside words */
h1, h2, h3, .game__catch, .gcard__catch { word-break: auto-phrase; }

/* keep the footer at the bottom on short pages */
body { min-height: 100svh; display: flex; flex-direction: column; }
.site-main { flex: 1 0 auto; }

/* optional image logo (assets/img/logo.png, 4:1, transparent) */
.logo__img { display: block; height: 46px; width: auto; filter: drop-shadow(0 0 8px rgba(255, 61, 127, .45)); }
@media (max-width: 599px) { .logo__img { height: 38px; } }
