/* D001-only presentation; shared controls remain in gacha.css. */

/* 履歴とランキングは同じカード・ヘッダーで表示する。 */
#rush001-rankingModal { --gacha-header-color: #0788e9; }
#rush001-collectionModal {
  --gacha-header-color: var(--wk-button-history-red);
  --cont-record-rank-background: var(--wk-button-history-red);
  --cont-record-rank-color: #fff;
}
#rush001-rankingModal,
#rush001-collectionModal {
  --gacha-header-margin: 0;
  --gacha-header-height: 76px;
  --gacha-header-padding: 18px 68px 18px 24px;
  --gacha-header-radius: 18px 18px 0 0;
  --gacha-title-display: inline-flex;
  --gacha-title-align: center;
  --gacha-title-min-height: 0;
  --gacha-title-gap: 10px;
  --gacha-title-line: 1.25;
  --gacha-title-size: 26px;
  --gacha-title-transform: none;
  --gacha-title-white-space: nowrap;
  --gacha-close-right: 20px;
  --gacha-close-hover: translateY(-50%);
  --gacha-close-active: translateY(-50%);
  width: 600px;
  max-width: min(90vw, 600px);
  padding: 0 0 20px;
  border: 1px solid #d2e5df;
  border-radius: 18px;
  color: #233c39;
  font-family: var(--wk-record-font);
  font-weight: 700;
  line-height: 1.5;
}
#rush001-rankingModal .gacha-collection-header,
#rush001-collectionModal .gacha-collection-header { justify-content: flex-start; }
#rush001-rankingModal .gacha-collection-title::before,
#rush001-collectionModal .gacha-collection-title::before { margin: 0; font-size: .85em; }
#rush001-rankingModal .gacha-collection-title::after,
#rush001-collectionModal .gacha-collection-title::after,
#rush001-collectionStats { display: none; }
.cont-history-list { display: grid; gap: 14px; padding: 20px 22px 4px; }
.cont-history-section { display: grid; gap: 12px; min-width: 0; }
.cont-history-section + .cont-history-section { margin-top: 10px; }
.cont-history-section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; font-size: 18px; }
.cont-history-section-head strong { color: #73837e; font-size: 14px; font-weight: 500; }
.cont-history-best-note { padding: 6px 12px; border-radius: 20px; background: #e8f5f0; color: #197460; font-size: 14px; }
.cont-history-records { display: grid; gap: 12px; }
.cont-history-item {
  container-type: inline-size;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #d9e4e1;
  border-radius: 13px;
  background: #fff;
}
.cont-history-item.is-mine,
.cont-history-best-card { border: 2px solid #e71c50; padding: 15px 17px; background: #fff7f9; }
.cont-history-best-card { background: #fffbee; }
.cont-record-top { display: grid; grid-template-columns: 48px minmax(0, 1fr) max-content; align-items: center; gap: 10px 14px; }
.cont-history-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 48px;
  min-height: 48px;
  border-radius: 10px;
  background: var(--cont-record-rank-background, #e8f4ff);
  color: var(--cont-record-rank-color, #1676ba);
  font-weight: 900;
  line-height: 1.2;
}
.cont-history-rank strong { font-size: 22px; }
.cont-history-rank span { font-size: 14px; }
.cont-history-best-rank { background: #e71c50; color: #fff; }
.cont-history-best-rank strong { font-size: 15px; }
.cont-history-points { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; color: #d91547; font-size: 38px; font-weight: 900; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cont-history-points span { font-size: 14px; }
.cont-record-label { padding: 5px 8px; border-radius: 6px; font-size: 14px; white-space: nowrap; }
.cont-record-label.is-best-label { background: #fff0bb; color: #926206; }
.cont-record-label.is-own-label { background: #e71c50; color: #fff; }
.cont-history-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 13px 62px; }
.cont-history-continues,
.cont-history-rate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.cont-history-rate { padding-left: 16px; border-left: 1px solid #dce6e2; }
.cont-history-meta span { color: #69807a; font-size: 14px; font-weight: 500; }
.cont-history-meta strong { color: #263e3b; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cont-history-meta small { margin-left: 3px; font-size: 14px; }
.cont-history-date { border-top: 1px solid #e3eae7; padding: 11px 0 0 62px; color: #6a7d78; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cont-ranking-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 22px 0; }
.cont-ranking-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 10px; background: #eaf4fc; }
.cont-ranking-tab { min-height: 40px; padding: 7px 20px; border: 0; border-radius: 7px; background: transparent; color: #2274b4; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: none; }
.cont-ranking-tab.is-active { background: #1688dc; color: #fff; box-shadow: 0 2px 5px #1677bd20; }
.cont-ranking-period { color: #526c70; font-size: 14px; font-weight: 500; }
.cont-history-empty,
.cont-ranking-loading { padding: 28px 12px; color: #69807a; text-align: center; font-size: 16px; font-weight: 700; word-break: auto-phrase; }
.cont-history-code-panel { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #e3eae7; }
#rush001-collectionModal .cont-history-code-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; padding: 0; border: 0; }
#rush001-collectionModal .cont-history-code-row .gacha-collection-code-label { color: #69807a; font-size: 14px; }
#rush001-collectionModal .cont-history-best-code-value { flex: 0 1 auto; min-width: 0; padding: 4px 8px; border: 1px solid #d9e4e1; border-radius: 6px; color: #233c39; background: #fff; font-size: 14px; overflow-wrap: anywhere; }
#rush001-collectionModal .cont-history-best-x-button { width: min(100%, 360px); justify-self: center; border-radius: 999px; background: #e71c50; color: #fff; }
.cont-ranking-tab:focus-visible { outline: 2px solid #1688dc; outline-offset: 2px; }
@container (max-width: 400px) {
  .cont-record-top { grid-template-columns: 44px minmax(0, 1fr) max-content; gap: 8px 10px; }
  .cont-history-rank { width: 44px; min-height: 46px; }
  .cont-record-label { padding: 3px 6px; }
  .cont-history-points { font-size: 34px; }
  .cont-history-meta { margin-left: 56px; gap: 8px; }
  .cont-history-rate { padding-left: 10px; }
  .cont-history-date { padding-left: 56px; }
}
@container (max-width: 300px) {
  .cont-record-top { grid-template-columns: 44px minmax(0, 1fr); }
  .cont-record-label { grid-column: 2; justify-self: start; }
  .cont-history-continues,
  .cont-history-rate { flex-direction: column; align-items: flex-start; gap: 2px; }
}
@media (max-width: 480px) {
  #rush001-collectionOverlay,
  #rush001-rankingOverlay { padding-inline: 8px; }
  #rush001-collectionModal,
  #rush001-rankingModal {
    --gacha-header-height: 68px;
    --gacha-header-padding: 16px 60px 16px 18px;
    --gacha-title-size: 23px;
    --gacha-close-right: 16px;
    width: 100%;
    max-width: 100%;
  }
  .cont-history-list { padding: 16px 12px 4px; gap: 14px; }
  .cont-ranking-toolbar { margin: 16px 12px 0; gap: 8px; }
  .cont-ranking-tab { padding-inline: 14px; }
  .cont-history-item { padding: 14px 12px; }
  .cont-history-item.is-mine,
  .cont-history-best-card { padding: 13px 11px; }
  .cont-history-section-head { font-size: 16px; }
}

#rush001-gachaEffectOverlay .gacha-btn-row {
  width: min(92vw, 560px, calc(min(86vh, 760px) * 0.563));
}
@media screen and (max-width: 480px) {
  #rush001-gachaEffectOverlay .gacha-btn-row {
    width: min(94vw, calc(78vh * 0.563));
  }}
/* ================================================
 * 音声ボタン：テーマCSSの緑グロー・点滅を強制リセット
 * ================================================ */

/* ================================================
 * VOL.5 継続ガチャ
 * ================================================ */
.continuation-hero {
  position: relative;
  overflow: hidden;
  margin: 10px auto 22px;
  padding: 22px 18px;
  max-width: 620px;
  border-radius: 10px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(255, 255, 255, 0.35),
      transparent 34%
    ),
    linear-gradient(135deg, #101427 0%, #27114a 48%, #b51254 100%);
  box-shadow:
    0 8px 0 rgba(90, 20, 80, 0.45),
    0 16px 32px rgba(0, 0, 0, 0.28);
}
.continuation-hero::before,
.continuation-hero::after {
  content: "";
  position: absolute;
  inset: -40%;
  pointer-events: none;
}
.continuation-hero::before {
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 235, 59, 0.32) 0 5deg,
    transparent 5deg 13deg
  );
  animation: cont-rays 12s linear infinite;
}
.continuation-hero::after {
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 2px, transparent 3px)
      12% 20% / 120px 120px,
    radial-gradient(circle, rgba(255, 235, 59, 0.95) 0 2px, transparent 3px) 70%
      35% / 150px 150px;
  opacity: 0.55;
}
.continuation-hero > * {
  position: relative;
  z-index: 1;
}
.continuation-kicker {
  font-size: var(--wk-font-body, 16px);
  font-weight: 900;
  letter-spacing: 0.16em;
  color: #ffe85c;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
}
.continuation-title {
  margin-top: 4px;
  font-size: 36px;
  font-weight: 900;
  line-height: 1.18;
  color: #fff;
  text-shadow:
    0 4px 0 rgba(120, 0, 60, 0.65),
    0 0 16px rgba(255, 235, 59, 0.45);
}
.continuation-rate-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.continuation-rate-chip {
  min-width: 58px;
  padding: 6px 10px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}
.continuation-rule {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.continuation-rule strong {
  color: #ffe85c;
  font-size: 28px;
}

.continuation-effect-stage {
  width: min(92vw, 560px);
  min-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0;
  border-radius: 10px;
  color: #fff;
  text-align: center;
  background: transparent;
  box-shadow: none;
  animation: cont-stage-pop 0.38s ease both;
}
.cont-image-scene {
  position: relative;
  width: min(92vw, 560px, calc(min(86vh, 760px) * 0.563));
  aspect-ratio: 9 / 16;
  max-height: min(86vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  box-sizing: border-box;
  background: #090914;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.65);
}
.cont-image-scene.is-decided {
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.95),
    0 0 0 9px rgba(255, 232, 92, 0.5),
    0 0 42px rgba(255, 232, 92, 0.95),
    0 18px 58px rgba(0, 0, 0, 0.7);
  animation: cont-decision-glow 0.28s ease-in-out infinite alternate;
}
.cont-image-scene.is-rate-result {
  animation: none;
}
.cont-scene-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.cont-image-scene.is-layered .cont-scene-image {
  position: absolute;
  inset: 0;
}
.cont-image-scene.is-layered .is-layer-base {
  z-index: 1;
}
.cont-image-scene.is-layered .is-layer-overlay {
  z-index: 2;
  animation: cont-layer-pop 0.24s ease-out both;
}
.cont-image-scene.is-finale-scanline::before,
.cont-image-scene.is-finale-scanline::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cont-image-scene.is-finale-scanline .cont-scene-image {
  filter: grayscale(0.25) brightness(0.72) contrast(1.18) blur(0.45px);
  transform: scale(1.012);
}
.cont-image-scene.is-finale-scanline::before {
  z-index: 2;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.13) 0,
      rgba(255, 255, 255, 0.13) 1px,
      rgba(0, 0, 0, 0.38) 1px,
      rgba(0, 0, 0, 0.38) 4px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.06),
      transparent 18%,
      transparent 82%,
      rgba(255, 255, 255, 0.05)
    );
  opacity: 0.88;
  animation: cont-crt-flicker 1s steps(6, end) both;
}
.cont-image-scene.is-finale-scanline::after {
  z-index: 3;
  background:
    radial-gradient(
      ellipse at center,
      transparent 38%,
      rgba(0, 0, 0, 0.34) 78%,
      rgba(0, 0, 0, 0.68) 100%
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 0 1px,
      transparent 1px 3px
    );
  opacity: 0.95;
  animation: cont-crt-breathe 1s ease-in-out both;
}
.cont-scene-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 12px;
  pointer-events: none;
}
.cont-effect-label {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #ffe85c;
  text-shadow:
    0 3px 0 rgba(130, 20, 20, 0.6),
    0 0 16px rgba(255, 232, 92, 0.75);
}
.cont-effect-rate {
  font-size: clamp(82px, 22vw, 150px);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  text-shadow:
    0 7px 0 #b51254,
    0 0 26px rgba(255, 235, 59, 0.9);
  animation: cont-number-hit 0.55s ease both;
}
.cont-rate-pointer {
  position: absolute;
  left: 13.6%;
  top: 50%;
  z-index: 2;
  width: 0;
  height: 0;
  overflow: visible;
  color: transparent;
  font-size: 0;
  line-height: 0;
  border-top: clamp(17px, 4.2vw, 24px) solid transparent;
  border-bottom: clamp(17px, 4.2vw, 24px) solid transparent;
  border-left: clamp(28px, 6.5vw, 38px) solid #111;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 4px rgba(255, 255, 255, 0.75));
  transform: translateY(-50%);
  transition: top 0.08s ease-out;
  pointer-events: none;
}
.cont-rate-pointer.is-locked {
  animation: cont-pointer-lock 0.28s ease-in-out infinite alternate;
}
.cont-rate-pointer.is-rate-97 {
  top: 33.4%;
}
.cont-rate-pointer.is-rate-95 {
  top: 46%;
}
.cont-rate-pointer.is-rate-92 {
  top: 58.6%;
}
.cont-rate-pointer.is-rate-90 {
  top: 71.3%;
}
.cont-rate-pointer.is-rate-88 {
  top: 83.9%;
}

@media (min-width: 481px) {
  .cont-rate-pointer {
    left: 13.2%;
    width: clamp(30px, 2.5vw, 36px);
    height: clamp(26px, 2.2vw, 32px);
    border: 0;
    background: #111;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
  }}

.cont-purple-scene {
  width: min(92vw, 560px);
  min-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 18px;
  border-radius: 10px;
  box-sizing: border-box;
  background:
    radial-gradient(
      circle at 50% 28%,
      rgba(255, 255, 255, 0.38),
      transparent 28%
    ),
    repeating-conic-gradient(
      from 0deg,
      rgba(255, 235, 59, 0.28) 0 6deg,
      transparent 6deg 14deg
    ),
    linear-gradient(180deg, #070914 0%, #18133d 52%, #5a0b48 100%);
  box-shadow:
    inset 0 0 34px rgba(255, 255, 255, 0.12),
    0 20px 60px rgba(0, 0, 0, 0.8);
}
.cont-count-scene {
  text-align: center;
}
.cont-effect-count {
  font-size: clamp(72px, 18vw, 124px);
  font-weight: 900;
  line-height: 1;
  color: #61f2ff;
  text-shadow:
    0 7px 0 #0b5d78,
    0 0 24px rgba(97, 242, 255, 0.85);
  animation: cont-number-hit 0.45s ease both;
}
.cont-effect-points {
  font-size: clamp(34px, 9vw, 62px);
  font-weight: 900;
  line-height: 1.05;
  color: #ffe85c;
  text-shadow:
    0 5px 0 #8b2d00,
    0 0 20px rgba(255, 232, 92, 0.8);
  animation: cont-number-hit 0.45s ease both;
}
.cont-effect-sub {
  font-size: clamp(18px, 5vw, 28px);
  font-weight: 900;
  color: #fff;
  text-shadow:
    0 3px 0 rgba(80, 20, 70, 0.65),
    0 0 14px rgba(255, 255, 255, 0.55);
}
.cont-effect-points.is-final {
  font-size: clamp(52px, 14vw, 96px);
  color: #fff;
}
.cont-spin-scene {
  background: #ffd84f;
}
.cont-spin-video,
.cont-spin-end-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.cont-spin-video {
  z-index: 1;
  background: #ffd84f;
}
.cont-spin-total,
.cont-spin-total-meter,
.cont-spin-point-pop {
  position: absolute;
  z-index: 3;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
  -webkit-text-stroke: clamp(1.6px, 0.48vw, 3.4px) #050505;
  text-shadow:
    3px 3px 0 #050505,
    -1px -1px 0 #050505,
    1px -1px 0 #050505,
    -1px 1px 0 #050505;
  font-family:
    Impact, "Arial Black", "Hiragino Kaku Gothic Std", "Yu Gothic", sans-serif;
}
.cont-spin-total-meter {
  left: clamp(24px, 6.2%, 52px);
  top: clamp(28px, 6.6%, 58px);
  display: inline-flex;
  align-items: flex-end;
  gap: 0.1em;
  padding: 0.02em 0.08em 0.08em;
  color: #fff;
  font-family:
    "Arial Black", "Hiragino Kaku Gothic StdN", "Yu Gothic", sans-serif;
  font-size: clamp(34px, 8.2vw, 72px);
  letter-spacing: 0;
  -webkit-text-stroke: clamp(1.8px, 0.48vw, 3.6px) #050505;
  text-shadow:
    3px 3px 0 #050505,
    -1px -1px 0 #050505,
    1px -1px 0 #050505,
    -1px 1px 0 #050505;
}
.cont-spin-total-meter small {
  margin-bottom: 0.08em;
  font-size: max(var(--wk-font-min, 14px), 0.38em);
  line-height: 1;
  -webkit-text-stroke: clamp(1px, 0.24vw, 2px) #050505;
}
.cont-spin-point-pop {
  left: 50%;
  top: 42%;
  opacity: 0;
  padding: 0.04em 0.14em 0.08em;
  white-space: nowrap;
  transform-origin: center;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 12px rgba(255, 255, 255, 0.55));
}
.cont-spin-point-pop::before {
  content: "";
  position: absolute;
  inset: -14% -18%;
  z-index: -1;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(255, 230, 70, 0.85),
    rgba(255, 104, 0, 0.46) 48%,
    transparent 72%
  );
  transform: rotate(-8deg);
}
.cont-spin-point-pop.is-big-hit {
  color: #e4002b;
}
.cont-spin-point-pop.is-big-hit::before {
  background: radial-gradient(
    circle,
    rgba(255, 245, 120, 0.95),
    rgba(255, 73, 40, 0.5) 52%,
    transparent 74%
  );
}
.cont-spin-point-pop.is-pop {
  animation: cont-point-pop 0.66s cubic-bezier(0.2, 1.35, 0.22, 1) both;
}
.cont-spin-total span {
  margin-left: 0.08em;
  font-size: max(var(--wk-font-min, 14px), 0.55em);
}
.cont-spin-count,
.cont-spin-round-badge {
  position: absolute;
  right: 6.6%;
  top: auto;
  bottom: 6.2%;
  z-index: 3;
  min-width: clamp(68px, 15.5vw, 112px);
  min-height: clamp(52px, 11.8vw, 84px);
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.12em;
  padding: 5px 10px 7px;
  border: clamp(2px, 0.45vw, 4px) solid #050505;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    4px 4px 0 #050505,
    0 0 14px rgba(255, 255, 255, 0.42);
  font-size: clamp(24px, 5.7vw, 44px);
  font-weight: 900;
  line-height: 1;
  color: #050505;
  -webkit-text-stroke: 0;
  text-shadow: none;
  font-family:
    "Arial Black", "Hiragino Kaku Gothic StdN", "Yu Gothic", sans-serif;
}
.cont-spin-round-badge small {
  display: block;
  margin-top: 0.1em;
  font-size: max(var(--wk-font-min, 14px), 0.48em);
  letter-spacing: 0.08em;
  color: #050505;
  -webkit-text-stroke: 0;
  text-shadow: none;
}
.cont-spin-round-badge em {
  margin-top: 0.12em;
  font-style: normal;
  font-size: max(var(--wk-font-min, 14px), 0.54em);
}
.cont-spin-round-badge.is-over-10 .cont-spin-round-badge-value {
  color: #e4002b;
}
.cont-spin-round-badge.is-over-10 em {
  color: #050505;
}
.cont-spin-end-image {
  z-index: 4;
  opacity: 0;
  transform: scale(1.012);
  transition:
    opacity 0.12s ease-out,
    transform 0.16s ease-out;
}
.cont-spin-scene.is-end-visible .cont-spin-end-image {
  opacity: 1;
  transform: scale(1);
}
.cont-final-result-text {
  position: absolute;
  left: 20.5%;
  right: 20.5%;
  top: 27.8%;
  bottom: 16%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  gap: clamp(8px, 1.6vw, 14px);
  text-align: center;
  color: #050505;
  font-family:
    "Arial Black", "Hiragino Kaku Gothic StdN", "Yu Gothic", sans-serif;
}
.cont-final-result-scene.is-result-fade-out {
  animation: cont-result-fade-out 3.5s linear forwards;
}
.cont-final-result-row {
  width: 100%;
  min-height: 0;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(3px, 0.9vw, 8px);
  font-weight: 900;
  line-height: 1;
  color: #050505;
  -webkit-text-stroke: 0;
  text-shadow: none;
  border-bottom: 2px solid rgba(0, 0, 0, 0.12);
}
.cont-final-result-row:last-child {
  border-bottom: 0;
}
.cont-final-result-row span {
  display: block;
  flex: 0 0 auto;
  font-size: clamp(18px, 4.2vw, 34px);
  letter-spacing: 0.04em;
}
.cont-final-result-row strong {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  text-align: center;
  font-size: clamp(32px, 8.6vw, 68px);
  line-height: 0.96;
  letter-spacing: 0;
  white-space: nowrap;
}
.cont-final-result-row strong.is-long-value {
  font-size: clamp(25px, 6.2vw, 50px);
  transform: scaleX(0.92);
  transform-origin: center;
}
.cont-final-result-row:last-child strong {
  font-size: clamp(28px, 7.2vw, 56px);
}
.cont-final-result-row:last-child strong.is-long-value {
  font-size: clamp(23px, 5.7vw, 43px);
}
.cont-result-image-card {
  width: min(100%, 430px);
  margin: 16px auto 12px;
  text-align: center;
}
.cont-result-image-wrap {
  position: relative;
  width: min(70vw, 360px);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  background: #ffd84f;
  box-shadow:
    0 7px 0 rgba(105, 20, 70, 0.5),
    0 14px 28px rgba(0, 0, 0, 0.24);
}
.cont-result-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.cont-page-result-text {
  position: absolute;
  top: 27.8%;
  left: 20.5%;
  right: 20.5%;
  bottom: 22%;
  z-index: 4;
  pointer-events: none;
}
.cont-result-image-card .gacha-convert-button {
  min-width: min(66%, 230px);
  min-height: 48px;
  margin-top: 12px;
  padding: 10px 20px;
  font-size: max(var(--wk-font-control, 16px), clamp(15px, 3.8vw, 21px));
}
.cont-result-share-note {
  margin: 8px 0 0;
  font-size: var(--wk-font-body, 16px);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.cont-page-result-text .cont-final-result-row {
  gap: clamp(2px, 0.7vw, 5px);
}
.cont-page-result-text .cont-final-result-row span {
  font-size: max(var(--wk-font-min, 14px), clamp(13px, 3vw, 22px));
}
.cont-page-result-text .cont-final-result-row strong {
  font-size: clamp(24px, 5.7vw, 45px);
}
.cont-page-result-text .cont-final-result-row strong.is-long-value {
  font-size: clamp(21px, 4.9vw, 36px);
}
.cont-page-result-text .cont-final-result-row:last-child strong {
  font-size: clamp(22px, 5vw, 39px);
}
.cont-page-result-text .cont-final-result-row:last-child strong.is-long-value {
  font-size: clamp(19px, 4.4vw, 31px);
}
.cont-result-card {
  width: min(100%, 620px);
  margin: 20px auto;
  padding: 24px 18px;
  border-radius: 10px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #161b30, #54205a 54%, #d01c55);
  box-shadow:
    0 7px 0 rgba(105, 20, 70, 0.5),
    0 14px 28px rgba(0, 0, 0, 0.24);
}
.cont-result-title {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ffe85c;
}
.cont-result-rate {
  margin-top: 10px;
  font-size: 22px;
  font-weight: 900;
}
.cont-result-rate strong {
  font-size: 42px;
  color: #fff;
  text-shadow:
    0 4px 0 #b51254,
    0 0 14px rgba(255, 232, 92, 0.75);
}
.cont-result-points {
  margin-top: 8px;
  font-size: clamp(54px, 14vw, 88px);
  font-weight: 900;
  line-height: 1;
  color: #ffe85c;
  text-shadow:
    0 6px 0 #8b2d00,
    0 0 20px rgba(255, 232, 92, 0.8);
}
.cont-result-points span {
  margin-left: 4px;
  font-size: max(var(--wk-font-min, 14px), 0.36em);
}
.cont-result-detail {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.cont-result-detail span,
.cont-result-note {
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  font-size: var(--wk-font-body, 16px);
  font-weight: 900;
}

@keyframes cont-rays {
  to {
    transform: rotate(360deg);
  }
}
@keyframes cont-stage-pop {
  0% {
    transform: scale(0.96);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes cont-number-hit {
  0% {
    transform: scale(0.72) rotate(-3deg);
    opacity: 0;
  }
  70% {
    transform: scale(1.08) rotate(1deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}
@keyframes cont-point-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.52) rotate(var(--point-rot, 0deg));
    filter: brightness(1.2) drop-shadow(0 0 0 rgba(255, 255, 255, 0));
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.18) rotate(var(--point-rot, 0deg));
    filter: brightness(1.35) drop-shadow(0 0 14px rgba(255, 255, 255, 0.9));
  }
  68% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(var(--point-rot, 0deg));
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -76%) scale(0.96) rotate(var(--point-rot, 0deg));
  }
}

@keyframes cont-result-fade-out {
  0%,
  85.714% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes cont-layer-pop {
  0% {
    opacity: 0;
    transform: scale(1.025);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes cont-scanline-sweep {
  0% {
    transform: translateY(-115%);
  }
  100% {
    transform: translateY(415%);
  }
}
@keyframes cont-crt-flicker {
  0% {
    opacity: 0.78;
    transform: translateY(0);
  }
  18% {
    opacity: 0.92;
    transform: translateY(-1px);
  }
  37% {
    opacity: 0.84;
    transform: translateY(1px);
  }
  61% {
    opacity: 0.96;
    transform: translateY(0);
  }
  100% {
    opacity: 0.88;
    transform: translateY(0);
  }
}
@keyframes cont-crt-breathe {
  0% {
    opacity: 0.86;
    filter: brightness(0.9);
  }
  45% {
    opacity: 1;
    filter: brightness(1.08);
  }
  100% {
    opacity: 0.94;
    filter: brightness(1);
  }
}
@keyframes cont-decision-glow {
  0% {
    filter: brightness(1);
  }
  100% {
    filter: brightness(1.22);
  }
}
@keyframes cont-pointer-lock {
  0% {
    filter: brightness(1) drop-shadow(0 0 1px rgba(255, 255, 255, 0.95))
      drop-shadow(0 0 4px rgba(255, 255, 255, 0.75));
  }
  100% {
    filter: brightness(1.35) drop-shadow(0 0 2px #fff)
      drop-shadow(0 0 9px rgba(255, 255, 255, 0.95));
  }
}

@media (max-width: 480px) {
  .continuation-hero {
    padding: 18px 12px;
  }
  .continuation-title {
    font-size: 28px;
  }
  .continuation-rate-chip {
    min-width: 50px;
    font-size: 16px;
  }
  .continuation-rule {
    font-size: 15px;
  }
  .continuation-rule strong {
    font-size: 24px;
  }
  .continuation-effect-stage {
    width: 94vw;
    min-height: 78vh;
  }
  .cont-image-scene {
    width: min(94vw, calc(78vh * 0.563));
    max-height: 78vh;
  }
  .cont-rate-pointer {
    left: 12.8%;
    border-top-width: clamp(18px, 5vw, 24px);
    border-bottom-width: clamp(18px, 5vw, 24px);
    border-left-width: clamp(30px, 8vw, 40px);
  }}
