:root {
  --bg-0: #050505;
  --bg-1: #101010;
  --bg-2: #1a1a1a;
  --panel: rgba(10, 10, 10, 0.72);
  --panel-strong: rgba(8, 8, 8, 0.92);
  --border: rgba(255, 255, 255, 0.14);
  --text: #f3f3f3;
  --muted: #a8a8a8;
  --accent: #b31217;
  --accent-strong: #e02931;
  --accent-soft: rgba(179, 18, 23, 0.18);
  --signal: #f2e85c;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
  --content-width: min(1180px, calc(100vw - 48px));
  --ease-out: cubic-bezier(0.2, 0.8, 0.18, 1);
  --hero-shift: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top, rgba(179, 18, 23, 0.18), transparent 30%),
    linear-gradient(180deg, #0f0f10 0%, #070707 40%, #000 100%);
  color: var(--text);
  font-family:
    "Hiragino Sans",
    "Yu Gothic",
    "Yu Gothic Medium",
    "Noto Sans JP",
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body.is-loading,
body.has-modal,
body.is-entering {
  overflow: hidden;
}

body.is-scroll-locked {
  position: fixed;
  left: 0;
  width: 100%;
  overflow: hidden;
}

body.is-pre-entry .site-content,
body.is-pre-entry .chrome,
body.is-pre-entry .bgm-toggle {
  opacity: 0;
  visibility: hidden;
}

a {
  color: var(--text);
}

button {
  font: inherit;
}

.background-stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.66));
}

.background-stage__noise,
.background-stage__scanlines,
.background-stage__grid,
.background-stage__stripes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.background-stage__noise {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.04) 0, transparent 22%),
    radial-gradient(circle at 70% 10%, rgba(255, 255, 255, 0.03) 0, transparent 20%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.02) 0, transparent 22%);
  mix-blend-mode: screen;
  opacity: 0.35;
}

.background-stage__scanlines {
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.035) 0 1px,
      transparent 1px 4px
    );
  opacity: 0.14;
}

.background-stage__grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 140px 140px;
  opacity: 0.08;
  transform: perspective(1000px) rotateX(74deg) translateY(34vh);
  transform-origin: center top;
}

.background-stage__stripes {
  background:
    linear-gradient(120deg, transparent 0 58%, rgba(255, 255, 255, 0.03) 58% 60%, transparent 60%),
    linear-gradient(120deg, transparent 0 24%, rgba(242, 232, 92, 0.18) 24% 24.45%, transparent 24.45%),
    linear-gradient(120deg, transparent 0 78%, rgba(242, 232, 92, 0.12) 78% 78.4%, transparent 78.4%);
  opacity: 0.5;
}

.background-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  overflow: hidden;
  will-change: transform, opacity;
}

.background-layer--base {
  opacity: 1;
}

.background-layer__image {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: saturate(0.88) brightness(0.82) contrast(1.02);
  transform: scale(1.02);
}

.background-layer__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) brightness(0.82) contrast(1.02);
  transform: scale(1.02);
}

.background-layer__video[hidden] {
  display: none;
}

.background-layer__video.is-fading {
  opacity: 0;
  transition: opacity 1.2s ease-out;
}

.background-layer__video-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.12) 0 1px,
      transparent 1px 3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.06) 0 1px,
      transparent 1px 3px
    );
}

.background-layer__video-grid[hidden] {
  display: none;
}

.background-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0.12) 35%, rgba(0, 0, 0, 0.66)),
    linear-gradient(120deg, rgba(179, 18, 23, 0.16), transparent 28%, transparent 74%, rgba(255, 255, 255, 0.08));
}

.background-layer--plain::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.1) 36%, rgba(0, 0, 0, 0.56)),
    linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 26%, transparent 74%, rgba(255, 255, 255, 0.06));
  z-index: 1;
}


.chrome {
  position: fixed;
  inset: 18px 18px auto 18px;
  display: block;
  z-index: 4;
  pointer-events: none;
  transition: opacity 1.5s var(--ease-out), visibility 1.5s var(--ease-out);
}

.chrome__topline {
  display: flex;
  align-items: center;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  width: min(546px, calc(100vw - 132px));
  min-height: 198px;
  padding: 84px 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.82)),
    linear-gradient(120deg, rgba(179, 18, 23, 0.06), transparent 42%);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  will-change: padding, min-height;
}

.chrome__brand {
  color: var(--text);
}

.chrome__brand .dud,
.chrome__meta .dud {
  color: var(--accent-strong);
  opacity: 0.72;
}

.chrome__meta {
  color: rgba(255, 255, 255, 0.86);
}

.chrome__dot {
  width: 8px;
  height: 8px;
  background: var(--accent-strong);
  box-shadow: 0 0 12px rgba(224, 41, 49, 0.66);
  animation: dot-pulse 1.0s ease-in-out infinite;
}

.chrome__sidebar {
  position: fixed;
  top: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.chrome__sidebar-label,
.chrome__sidebar-date {
  padding: 12px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 7, 7, 0.48);
}

.chrome__share {
  flex: 0 0 100%;
  display: block;
  width: fit-content;
  pointer-events: auto;
  opacity: 0.72;
  transition: opacity 0.3s ease;
  margin-top: 10px;
}

.chrome__share:hover {
  opacity: 1;
}

.chrome__share img {
  display: block;
  height: 28px;
  width: auto;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.site-content {
  position: relative;
  z-index: 2;
  padding-bottom: 80px;
  transition: opacity 1.5s var(--ease-out), visibility 1.5s var(--ease-out);
}

.section,
.site-footer {
  width: var(--content-width);
  margin: 0 auto;
}

.section:not(.hero),
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 960px;
}

.hero {
  position: relative;
  width: min(calc(100vw - 36px), 1840px);
  min-height: 100vh;
  padding: 148px 0 72px;
  margin: 0 auto;
}

.hero__ghost {
  position: absolute;
  top: 20vh;
  left: 12.2%;
  z-index: 1;
  font-size: clamp(7rem, 18.6vw, 18.8rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.16);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  transform: translate3d(0, calc(var(--hero-shift) * -0.55), 0);
  will-change: transform;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero__meta {
  position: absolute;
  top: 246px;
  left: 96px;
  max-width: 760px;
  z-index: 3;
}

.hero__meta .section-chip {
  display: none;
}

.hero__copy {
  margin: 0;
  max-width: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.85rem, 2.15vw, 2.65rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0.02em;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.42);
  transform: translate3d(0, calc(var(--hero-shift) * 0.45), 0);
  will-change: transform;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── 진입 연출: site-content 즉시 표시, 개별 요소가 순차 등장 ── */
body.is-entering .site-content {
  opacity: 1;
  visibility: visible;
  transition: none;
}

body.is-entering .chrome,
body.is-entering .bgm-toggle {
  transition: none;
}

body.is-entering .chrome {
  animation: elem-enter 700ms 0ms ease-out both;
}

body.is-entering .hero__ghost {
  animation: ghost-enter 1.1s 200ms ease-out both;
  transition: none;
}

body.is-entering .hero__copy {
  animation: text-focus-in 1.1s 400ms ease-out both;
  transition: none;
}

body.is-entering .hero__panel.panel {
  animation: elem-fade-in 700ms 650ms ease-out both;
}

body.is-entering .bgm-toggle {
  animation: elem-fade-in 600ms 950ms ease-out both;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

@keyframes elem-enter {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes elem-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ghost-enter {
  from { opacity: 0; translate: 0 -36px; }
  to   { opacity: 1; translate: 0 0px; }
}

@keyframes text-focus-in {
  0%   { filter: blur(12px); opacity: 0; }
  100% { filter: blur(0px);  opacity: 1; }
}

.hero__panel.panel {
  position: absolute;
  right: clamp(6px, calc((100vw - 1216px) / 2), 330px);
  bottom: 34px;
  width: min(920px, calc(100% - 52px));
  max-width: calc(100% - 52px);
  z-index: 3;
  transform: translate3d(0, var(--hero-shift), 0);
}

.panel {
  position: relative;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(18, 18, 18, 0.92), rgba(8, 8, 8, 0.94)),
    linear-gradient(90deg, rgba(179, 18, 23, 0.08), transparent 28%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06), transparent 12%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 48%);
  pointer-events: none;
}

.panel__eyebrow,
.section-chip,
.entry-card__label,
.period-banner__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.panel__eyebrow::before,
.section-chip::before,
.entry-card__label::before,
.period-banner__label::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--signal);
  box-shadow: 0 0 10px rgba(242, 232, 92, 0.32);
}

.hero__title,
.section__heading h2 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0.02em;
}

.hero__title {
  font-size: clamp(1.72rem, 2rem + 0.35vw, 2.52rem);
  max-width: 100%;
  line-height: 1.14;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  text-wrap: nowrap;
}

.hero__lead {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.8;
  max-width: none;
}

.section {
  position: relative;
  padding: 72px 0;
}

.section__heading {
  margin-bottom: 28px;
  max-width: 740px;
}

.section__heading h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.entry-grid,
.prize-grid {
  display: grid;
  gap: 24px;
}

.entry-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-card {
  min-height: 100%;
}

.entry-card h3,
.prize-panel h3 {
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 2vw, 1.72rem);
}

.entry-card__label {
  margin-bottom: 4px;
}

.entry-card__list,
.prize-list,
.figure-list,
.notice-list {
  margin: 0;
  padding-left: 1.25rem;
}

.entry-card__list li,
.prize-list li,
.figure-list li,
.notice-list li {
  margin-bottom: 12px;
}

.entry-card__link {
  margin: 18px 0 10px;
  word-break: break-all;
}

.entry-card__link a {
  color: #ffb400;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 180, 0, 0.36);
}

.entry-card__note,
.prize-panel__note {
  color: var(--muted);
}

.prize-panel {
  padding-bottom: 34px;
}

.prize-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 28px;
}

.prize-list,
.figure-list {
  list-style: none;
  padding-left: 0;
}

.prize-list li,
.figure-list li {
  position: relative;
  padding-left: 1.05rem;
}

.prize-list li::before,
.figure-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent-strong);
  box-shadow: 0 0 8px rgba(224, 41, 49, 0.72), 0 0 18px rgba(224, 41, 49, 0.36);
}

/* Prize list items with goods image */
.prize-list .prize-item--image {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.prize-list .prize-item__text {
  display: block;
  line-height: 1.55;
}

.prize-list .prize-item--image img {
  display: block;
  width: 100%;
  max-width: 300px;
  border-radius: 4px;
  align-self: flex-start;
}

.prize-list .prize-item--plush img {
  width: auto;
  max-width: none;
  height: clamp(92px, 10vw, 128px);
  object-fit: contain;
}

.prize-list .prize-item--small img {
  max-width: 150px;
}

.prize-list .prize-item--clearfiles {
  margin-bottom: 24px;
}

.clearfile-gallery {
  --card-w: 130px;
  --card-overlap: 50px;
  display: flex;
  align-items: flex-end;
  padding-top: 40px;
}

.clearfile-card {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  flex: 0 0 var(--card-w);
  width: var(--card-w);
  aspect-ratio: 354 / 500;
  -webkit-perspective: 1400px;
  perspective: 1400px;
  cursor: pointer;
  position: relative;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.clearfile-card + .clearfile-card {
  margin-left: calc(-1 * var(--card-overlap));
}

.clearfile-card:nth-child(1) { z-index: 1; }
.clearfile-card:nth-child(2) { z-index: 2; }
.clearfile-card:nth-child(3) { z-index: 3; }
.clearfile-card:nth-child(4) { z-index: 4; }
.clearfile-card:nth-child(5) { z-index: 5; }

.clearfile-card.is-active {
  transform: translateY(-32px);
  z-index: 10;
}

.clearfile-card__inner {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.clearfile-card.is-flipped .clearfile-card__inner {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

.clearfile-card__face {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.32);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.clearfile-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.clearfile-card__face--back {
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
}

.clearfile-card:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

/* Figure list: 4-column image grid */
.figure-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
  padding-left: 0;
}

.figure-list li {
  padding-left: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.figure-list li::before {
  display: none;
}

.figure-list li img {
  width: 100%;
  aspect-ratio: 10 / 13;
  object-fit: cover;
  border-radius: 4px;
}

.figure-list li span {
  position: relative;
  padding-left: 1.05rem;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
}

.figure-list li span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent-strong);
  box-shadow: 0 0 8px rgba(224, 41, 49, 0.72), 0 0 18px rgba(224, 41, 49, 0.36);
}

.period-banner {
  display: grid;
  gap: 4px;
  align-items: center;
  grid-template-columns: 1fr auto;
  padding-block: 30px;
}

.period-banner__label {
  grid-column: 1 / -1;
}

.period-banner__title {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.period-banner__date {
  margin: 0;
  color: var(--signal);
  font-size: clamp(1.6rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
}

.notice-panel {
  padding-top: 30px;
}

.notice-panel__title {
  margin: 0 0 20px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.1;
}

.notice-list {
  columns: 2;
  column-gap: 36px;
}

.hide-text {
  color: transparent;
  font-size: 0;
  line-height: 0;
}

.download-panel {
  position: relative;
  padding-top: 34px;
  padding-bottom: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.download-panel::before {
  display: none;
}

.download-panel__top,
.download-panel__bottom {
  display: flex;
  align-items: center;
}

.download-panel__top {
  justify-content: center;
  flex-wrap: nowrap;
  gap: 22px;
  margin-bottom: 34px;
}

.download-panel__icon-link {
  flex: 0 0 auto;
  display: inline-flex;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.download-panel__icon-link img {
  display: block;
  width: 92px;
  height: 92px;
}

.download-panel__stores {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 14px;
}

.btn-download {
  display: inline-flex;
  transition: transform 220ms ease, filter 220ms ease;
}

.btn-download:hover,
.btn-download:focus-visible,
.download-panel__web-button:hover,
.download-panel__web-button:focus-visible,
.download-panel__top-button:hover,
.download-panel__top-button:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.btn-download img {
  display: block;
  height: 58px;
  width: auto;
}

.download-panel__bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 0;
}

.download-panel__web-button,
.download-panel__top-button {
  display: inline-flex;
}

.download-panel__web-button {
  margin-inline: auto;
  justify-content: center;
}

.download-panel__web-button img {
  display: block;
  width: min(100%, 340px);
  height: auto;
}

.download-panel__top-button {
  position: absolute;
  right: 0;
  bottom: 0;
}

.download-panel__top-button img {
  display: block;
  width: 144px;
  height: auto;
}

.section--notes {
  padding-bottom: 28px;
}

.section--downloads {
  padding-top: 12px;
  padding-bottom: 60px;
  content-visibility: visible;
}

.section--downloads + .site-footer {
  margin-top: 0;
  border-top: 1px solid var(--border);
}

.site-footer {
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding: 22px 30px;
  font-size: 0.94rem;
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 21;
}

.loading-screen__panel {
  position: absolute;
  left: 0;
  right: 0;
  background: #000;
  will-change: transform;
  transition: transform 900ms cubic-bezier(0.76, 0, 0.24, 1);
}

.loading-screen__panel--top {
  top: 0;
  bottom: 50%;
}

.loading-screen__panel--bottom {
  top: 50%;
  bottom: 0;
}

.loading-screen.is-splitting .loading-screen__panel--top {
  transform: translateY(-100%);
}

.loading-screen.is-splitting .loading-screen__panel--bottom {
  transform: translateY(100%);
}

.loading-screen__bar-wrap {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 2;
  transform: translateY(-50%);
  transition: opacity 250ms ease;
}

.loading-screen.is-splitting .loading-screen__bar-wrap {
  opacity: 0;
}

.loading-screen__percent {
  display: block;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.loading-screen__track {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.loading-screen__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent-strong);
  box-shadow: 0 0 20px rgba(224, 41, 49, 0.9), 0 0 60px rgba(224, 41, 49, 0.4);
  transition: width 200ms linear;
}

.bgm-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.42)),
    linear-gradient(120deg, rgba(179, 18, 23, 0.14), transparent 42%);
}

.bgm-modal::before {
  content: "";
  position: absolute;
  inset: -24px;
  background: url("../images/img_bg_01.webp") center center / cover no-repeat;
  filter: blur(4px);
  z-index: 0;
}

.bgm-modal__backdrop,
.bgm-modal__panel {
  position: relative;
  z-index: 1;
}

.bgm-modal[hidden] {
  display: none;
}

.bgm-modal.is-revealing {
  animation: modal-fade-out 900ms ease-out forwards;
  pointer-events: none;
}

.bgm-modal.is-revealing .bgm-modal__backdrop,
.bgm-modal.is-revealing .bgm-modal__panel {
  opacity: 0;
  transition: opacity 250ms ease-out;
}

.bgm-modal.is-revealing::before {
  animation: modal-unblur 900ms ease-out forwards;
}

@keyframes modal-fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes modal-unblur {
  from { filter: blur(10px); }
  to   { filter: blur(0px); }
}

.bgm-modal__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.36)),
    linear-gradient(120deg, rgba(179, 18, 23, 0.12), transparent 40%);
}

.bgm-modal__panel {
  position: relative;
  width: min(520px, calc(100vw - 48px));
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(14, 14, 14, 0.96), rgba(6, 6, 6, 0.94)),
    linear-gradient(120deg, rgba(179, 18, 23, 0.15), transparent 30%);
  box-shadow: var(--shadow);
}

.bgm-modal__eyebrow {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  text-transform: uppercase;
  text-align: left;
}

.bgm-modal__title {
  margin: 0;
  font-size: clamp(1.2rem, 4vw, 1.9rem);
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
}

.bgm-modal__text {
  margin: 14px 0 0;
  color: var(--muted);
  text-align: center;
}

.bgm-modal__actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.bgm-modal__actions .ui-button {
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 16px;
}

.ui-button,
.bgm-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 13px 18px;
  background: transparent;
  color: var(--text);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.ui-button:hover,
.bgm-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.4);
}

.ui-button--solid {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
}

.ui-button--ghost {
  background: rgba(255, 255, 255, 0.03);
}

.bgm-toggle {
  position: fixed;
  top: 234px;
  right: 18px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-inline: 16px;
  background: rgba(5, 5, 5, 0.58);
  backdrop-filter: blur(10px);
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease,
    opacity 1.5s var(--ease-out),
    visibility 1.5s var(--ease-out);
}

.bgm-toggle__state {
  display: none;
}

.bgm-toggle__bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  width: 18px;
  height: 14px;
  flex-shrink: 0;
}

.bgm-toggle__bar {
  flex: 1;
  height: 3px;
  background: var(--muted);
  transition: background 300ms ease;
}

.bgm-toggle[aria-pressed="true"] .bgm-toggle__bar {
  background: var(--signal);
  animation: eq-bar var(--eq-dur, 0.7s) ease-in-out infinite alternate;
}

.bgm-toggle[aria-pressed="true"] .bgm-toggle__bar:nth-child(1) { --eq-dur: 0.55s; animation-delay: 0s; }
.bgm-toggle[aria-pressed="true"] .bgm-toggle__bar:nth-child(2) { --eq-dur: 0.8s;  animation-delay: 0.12s; }
.bgm-toggle[aria-pressed="true"] .bgm-toggle__bar:nth-child(3) { --eq-dur: 0.5s;  animation-delay: 0.22s; }
.bgm-toggle[aria-pressed="true"] .bgm-toggle__bar:nth-child(4) { --eq-dur: 0.65s; animation-delay: 0.06s; }

@keyframes eq-bar {
  from { height: 3px; }
  to   { height: 14px; }
}

[data-parallax-speed] {
  --section-parallax: 0px;
  transform: translate3d(0, var(--section-parallax), 0);
  will-change: transform;
}

@media (max-width: 1280px) {
  .hero__title {
    white-space: normal;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .hero__panel.panel {
    width: min(720px, calc(100% - 44px));
    max-width: calc(100% - 44px);
  }
}

@media (min-width: 1600px) {
  .hero__panel.panel {
    width: min(1040px, calc(100% - 84px));
    right: clamp(18px, calc((100vw - 1380px) / 2), 240px);
  }

  .hero__title {
    font-size: 2.46rem;
    line-height: 1.12;
    white-space: nowrap;
  }

  .hero__lead {
    font-size: 1.14rem;
    line-height: 1.78;
  }
}

@media (max-width: 1024px) {
  .chrome__topline {
    width: min(460px, calc(100vw - 128px));
    min-height: 154px;
    padding: 48px 14px 16px;
    gap: 10px;
    font-size: 0.66rem;
    letter-spacing: 0.18em;
  }

  .chrome__sidebar {
    gap: 8px;
    font-size: 0.66rem;
  }

  .bgm-toggle {
    top: 188px;
  }

  .hero {
    width: var(--content-width);
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 58%);
    align-items: start;
    gap: 24px;
    padding-top: 220px;
    padding-bottom: 56px;
  }

  .hero__ghost {
    top: 18vh;
    left: 50%;
    font-size: clamp(5.2rem, 15vw, 9rem);
    transform: translate3d(-40%, calc(var(--hero-shift) * -0.42), 0);
  }

  .hero__meta {
    position: relative;
    top: 0;
    left: 0;
    grid-column: 1 / -1;
    margin-bottom: 0;
    max-width: min(520px, 78vw);
  }

  .hero__copy {
    font-size: clamp(1.35rem, 2.8vw, 2rem);
  }

  .hero__panel.panel {
    position: relative;
    grid-column: 2;
    justify-self: end;
    align-self: end;
    right: auto;
    bottom: auto;
    width: min(100%, 640px);
    max-width: 100%;
    margin-top: clamp(140px, 18vh, 220px);
  }

  .entry-grid,
  .prize-grid,
  .notice-list {
    grid-template-columns: 1fr;
    columns: 1;
  }

  .figure-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }

  .download-panel__top {
    justify-content: center;
    align-items: center;
  }

  .download-panel__stores {
    gap: 12px;
  }

  .btn-download img {
    height: 52px;
  }

  .clearfile-gallery {
    --card-w: 100px;
    --card-overlap: 40px;
  }

  .period-banner {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 900px) {
  .chrome__topline {
    width: min(calc(100vw - 88px), 420px);
    min-height: 130px;
    padding: 34px 14px 14px;
  }

  .chrome__sidebar {
    display: none;
  }

  .bgm-toggle {
    top: 176px;
  }

  .hero {
    display: block;
    padding-top: 190px;
  }

  .hero__ghost {
    top: 22vh;
    left: 2px;
    font-size: clamp(4.6rem, 18vw, 7.8rem);
    transform: translate3d(0, calc(var(--hero-shift) * -0.35), 0);
  }

  .hero__meta {
    max-width: 420px;
    margin-bottom: 22px;
  }

  .hero__panel.panel {
    width: min(100%, 720px);
    margin-top: clamp(120px, 18vh, 220px);
  }
}

@media (max-width: 720px) {
  :root {
    --content-width: min(100vw - 28px, 100%);
  }

  .chrome {
    inset: 12px 12px auto 12px;
  }

  .chrome__topline {
    width: min(calc(100vw - 92px), 100%);
    min-height: 112px !important;
    padding: 12px 12px 14px !important;
    gap: 8px;
    font-size: 0.6rem;
  }

  .chrome__sidebar {
    display: none;
  }

  .chrome__share img {
    height: 20px;
  }

  .hero {
    min-height: 100svh;
    padding-top: 128px;
    padding-bottom: 48px;
  }

  .hero__ghost {
    top: 23vh;
    left: 0;
    font-size: clamp(3.6rem, 22vw, 8rem);
  }

  .hero__copy {
    max-width: none;
    transform: none;
    will-change: auto;
  }

  .hero__panel.panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
    margin-top: clamp(80px, 22vh, 180px);
  }

  .hero__title {
    white-space: normal;
  }

  .section {
    padding: 52px 0;
  }

  .panel,
  .bgm-modal__panel {
    padding: 22px;
  }

  .bgm-modal__actions {
    flex-direction: row;
  }

  .site-footer {
    justify-content: center;
  }

  .bgm-toggle {
    top: auto;
    right: 12px;
    bottom: 16px;
  }

  .section--downloads {
    padding-bottom: 44px;
  }

  .download-panel {
    padding-bottom: 0;
  }

  .download-panel__top {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }

  .download-panel__stores {
    width: auto;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 6px;
    min-width: 0;
  }

  .download-panel__icon-link img {
    width: 54px;
    height: 54px;
  }

  .btn-download img {
    height: 38px;
  }

  .btn-download--steam {
    display: none;
  }

  .download-panel__bottom {
    padding-bottom: 0;
  }

  .download-panel__web-button img {
    width: min(100%, 260px);
  }

  .download-panel__top-button {
    position: absolute;
    right: 0;
    bottom: 0;
  }

  .download-panel__top-button img {
    width: 88px;
  }

  .clearfile-gallery {
    --card-w: 76px;
    --card-overlap: 30px;
  }
}

@media (max-width: 480px) {
  .chrome__topline {
    width: calc(100vw - 24px);
    min-height: auto !important;
    padding: 12px !important;
    gap: 7px;
  }

  .hero__copy {
    font-size: clamp(1.18rem, 6.6vw, 1.5rem);
  }

  .bgm-modal::before {
    inset: 0;
    filter: blur(2px);
  }

  .bgm-modal__panel {
    width: calc(100vw - 24px);
    padding: 18px;
  }

  .bgm-modal__title {
    white-space: normal;
    text-align: left;
    font-size: clamp(1.08rem, 5.2vw, 1.35rem);
  }

  .bgm-modal__text {
    text-align: left;
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .bgm-modal__actions {
    flex-direction: column;
  }

  .bgm-modal__actions .ui-button {
    flex-direction: row;
    justify-content: flex-start;
    padding: 16px 14px;
  }
}

/* ── Scroll reveal ── */
[data-reveal] {
  opacity: 0;
  translate: 0 30px;
  transition:
    opacity 0.75s ease-out,
    translate 0.75s ease-out;
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
  opacity: 1;
  translate: 0 0px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-parallax-speed],
  .hero__ghost,
  .hero__copy,
  .hero__panel {
    transform: none !important;
  }

  body.is-entering .chrome,
  body.is-entering .hero__ghost,
  body.is-entering .hero__copy,
  body.is-entering .hero__panel.panel,
  body.is-entering .bgm-toggle {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    translate: none !important;
  }

  .bgm-modal.is-revealing,
  .bgm-modal.is-revealing::before {
    animation: none !important;
    opacity: 0 !important;
    filter: blur(0px) !important;
  }

  .chrome__dot {
    animation: none !important;
  }

  [data-reveal] {
    translate: none !important;
  }

  .background-stage__noise,
  .background-stage__scanlines {
    opacity: 0.08;
  }
}
