:root {
  --bg1: #fff9c2;
  --bg2: #b5f8ff;
  --bg3: #ffd2ed;
  --ink: #251a1e;
  --card: #fff;
  --line: #1d1218;
  --pink: #ff4fab;
  --cyan: #00c2ff;
  --yellow: #ffd62e;
  --orange: #ff9b2f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 700;
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 10%, var(--bg1), transparent 40%),
    radial-gradient(circle at 90% 20%, var(--bg2), transparent 38%),
    radial-gradient(circle at 30% 80%, var(--bg3), transparent 42%),
    linear-gradient(140deg, #fffefa 0%, #f4feff 50%, #fff4fb 100%);
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: radial-gradient(#000 0.5px, transparent 0.5px);
  background-size: 4px 4px;
  z-index: -5;
}

.flash-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(#ffffff00 95%, #ffffff55 95%), linear-gradient(90deg, #ffffff00 95%, #ffffff55 95%);
  background-size: 34px 34px;
  opacity: 0.16;
  mix-blend-mode: soft-light;
  animation: grid-pulse 4.2s ease-in-out infinite;
  z-index: -4;
}

#spark-layer,
#fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

#spark-layer {
  z-index: 50;
}

#fx-layer {
  z-index: 60;
}

.orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.52;
  z-index: -2;
  will-change: transform;
  animation: float 7s ease-in-out infinite;
}

.orb-a {
  width: 180px;
  height: 180px;
  background: var(--pink);
  top: -40px;
  left: -30px;
}

.orb-b {
  width: 220px;
  height: 220px;
  background: var(--cyan);
  right: -80px;
  top: 25%;
  animation-delay: 1.4s;
}

.orb-c {
  width: 200px;
  height: 200px;
  background: var(--yellow);
  bottom: -80px;
  left: 20%;
  animation-delay: 0.8s;
}

.marquee-wrap {
  width: 100%;
  border-top: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
  background: linear-gradient(90deg, #ffec64 0%, #ffc1f3 50%, #8ceaff 100%);
  overflow: hidden;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 45;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.marquee-track {
  display: flex;
  gap: 12px;
  padding: 7px 0;
  width: max-content;
}

.track-a {
  animation: marquee 14s linear infinite;
}

.track-b {
  animation: marquee-rev 14s linear infinite;
  opacity: 0.9;
  border-top: 2px solid #0000001f;
}

.marquee-track span {
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 2px 12px;
  font-weight: 900;
  font-size: 0.78rem;
  white-space: nowrap;
}

.episodes-link {
  position: fixed;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: calc(14px + env(safe-area-inset-left));
  z-index: 95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(125deg, #fffef1 0%, #ecf7ff 100%);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 4px 4px 0 #46507a;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.episodes-link:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 6px 6px 0 #46507a;
  filter: saturate(1.06);
}

.episodes-link:active {
  transform: translateY(0) scale(0.98);
}

.episodes-link:focus-visible {
  outline: 3px solid #1c62e5;
  outline-offset: 3px;
}

.mini-game-gimmick-trigger {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 72px;
  height: 72px;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  background: radial-gradient(circle at 30% 28%, #ffffff 0%, #f4ecff 56%, #d8e7ff 100%);
  box-shadow: 0 8px 20px #00000036, 0 0 0 3px #ffffff80;
  cursor: pointer;
  touch-action: manipulation;
  transform: translate3d(var(--mini-game-gimmick-start-x, 110vw), var(--mini-game-gimmick-y, 40vh), 0) scale(0.86);
  opacity: 0;
  animation: mini-game-gimmick-drift var(--mini-game-gimmick-duration, 6s) linear forwards;
}

.mini-game-gimmick-trigger:hover {
  filter: saturate(1.08);
}

.mini-game-gimmick-trigger:focus-visible {
  outline: 3px solid #1c62e5;
  outline-offset: 4px;
}

.mini-game-gimmick-trigger.is-static {
  left: 50%;
  top: 42%;
  transform: translate3d(-50%, -50%, 0) scale(0.95);
  animation: mini-game-gimmick-static var(--mini-game-gimmick-duration, 6s) ease-out forwards;
}

.mini-game-gimmick-trigger.is-hit {
  opacity: 0 !important;
  transition: opacity 120ms ease-out !important;
}

.mini-game-gimmick-face {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 120ms ease-out;
}

.mini-game-gimmick-trigger.is-hit .mini-game-gimmick-face {
  transform: scale(1.16);
}

.mini-game-gimmick-trigger.is-fallback {
  background: radial-gradient(circle at 32% 30%, #ffeeb8 0%, #ffd6b1 54%, #ff9ad2 100%);
}

.mini-game-gimmick-trigger.is-fallback::before {
  content: "GO";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #402238;
}

.hero,
.layout,
.site-footer {
  width: min(1100px, 100% - 28px);
  margin-inline: auto;
}

.hero {
  margin-top: 18px;
  background: linear-gradient(130deg, #fff 0%, #fff7fd 45%, #f7ffff 100%);
  border: 4px solid var(--line);
  border-radius: 26px;
  padding: 28px;
  position: relative;
  box-shadow: 10px 10px 0 #00000020, 0 0 0 4px #ffffff, 0 0 24px #ff70c182;
  overflow: hidden;
}

.kicker {
  margin: 0;
  display: inline-block;
  background: var(--yellow);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  animation: kicker-hop 1.4s ease-in-out infinite;
}

h1,
h2 {
  font-family: "Yusei Magic", sans-serif;
}

h1 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 5.4vw, 4.2rem);
  line-height: 1.05;
}

.hero-title {
  animation: title-pop 900ms cubic-bezier(0.34, 1.56, 0.64, 1) both, neon-flicker 2.8s ease-in-out infinite;
  text-shadow: 0 2px 0 #fff, 0 0 18px #ff7dcf66;
}

.countdown-panel {
  margin: 10px 0 14px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(120deg, #fff6c9 0%, #ffe7f6 52%, #dffdff 100%);
  box-shadow: 4px 4px 0 #0000001a;
}

.countdown-label {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #7a5965;
}

.countdown-text {
  margin: 4px 0 0;
  font-size: clamp(1.52rem, 4.6vw, 2.18rem);
  font-weight: 900;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.35;
}

.countdown-text--ended {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  font-size: clamp(1rem, 3.6vw, 1.2rem);
  line-height: 1.25;
  white-space: normal;
}

.countdown-ended-main {
  display: block;
  max-width: 100%;
  font-weight: 900;
  font-size: clamp(0.98rem, 4.8vw, 1.16rem);
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.countdown-ended-sub {
  max-width: 100%;
  text-align: center;
  font-size: clamp(0.58rem, 2.6vw, 0.84rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.highlights {
  list-style: none;
  margin: 14px 0 10px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.highlights li {
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff7cf;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.pre-cta-message,
.no-archive-note {
  margin: 0 0 8px;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.pre-cta-message {
  background: linear-gradient(125deg, #ffe6f5 0%, #fff7d5 100%);
}

.no-archive-note {
  margin-top: 12px;
  background: linear-gradient(125deg, #fff7d8 0%, #ffecec 100%);
  color: #7d2c2c;
}

.hero-flyer {
  width: min(100%, 520px);
  display: block;
  margin: 14px auto 8px;
  border-radius: 14px;
  border: 3px solid var(--line);
  box-shadow: 8px 8px 0 #0000001f, 0 0 18px #ff72c17a;
}

.summary {
  margin: 0;
  font-size: clamp(1rem, 2.3vw, 1.2rem);
  font-weight: 700;
  line-height: 1.5;
  white-space: pre-line;
}

.story-images {
  margin: 14px auto 0;
  width: min(100%, 560px);
  display: grid;
  gap: 10px;
}

.story-image {
  width: 100%;
  height: auto;
  display: block;
  border: 3px solid var(--line);
  border-radius: 14px;
  box-shadow: 8px 8px 0 #0000001f;
  background: #fff;
}

.story-caption {
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: #6c4d5a;
}

.orbit-badges {
  position: relative;
  height: 38px;
  margin: 8px 0 10px;
}

.orbit-badges span {
  position: absolute;
  top: 8px;
  left: 8px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 2px 8px;
  animation: badge-orbit 6s ease-in-out infinite;
}

.orbit-badges span:nth-child(2) { animation-delay: 0.8s; background: #eaffff; }
.orbit-badges span:nth-child(3) { animation-delay: 1.6s; background: #fff7d8; }
.orbit-badges span:nth-child(4) { animation-delay: 2.4s; background: #ffe8f8; }
.orbit-badges span:nth-child(5) { animation-delay: 3.2s; background: #e8f1ff; }

.meta {
  margin-top: 20px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.meta-item {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 4px 4px 0 #00000016;
  animation: soft-wave 4s ease-in-out infinite;
}

.meta-item:nth-child(2) { animation-delay: 0.4s; }
.meta-item:nth-child(3) { animation-delay: 0.8s; }

.meta-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #7a5965;
}

#event-venue {
  display: block;
  line-height: 1.42;
  padding-bottom: 2px;
}

.cta-row {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-row .btn {
  width: 100%;
}

.mini-game-promo {
  margin-top: 14px;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(125deg, #fff9ce 0%, #e9f9ff 100%);
  box-shadow: 4px 4px 0 #00000016;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-game-avatar {
  width: 58px;
  height: 58px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: #fff;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 3px 3px 0 #0000001c;
}

.mini-game-promo .btn-minigame {
  flex: 1 1 auto;
  margin: 0;
}

.action-block {
  margin-top: 10px;
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  background: linear-gradient(125deg, #ffffffd8 0%, #f9fbffdc 100%);
}

.action-title {
  margin: 0 0 6px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  line-height: 1.35;
  color: #7a5965;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-actions {
  margin-top: 12px;
}

.share-actions .action-row {
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.share-actions .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.reminder-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.btn:hover {
  transform: translateY(-4px) scale(1.06);
  filter: saturate(1.1);
}

.btn:active {
  transform: translateY(0) scale(0.96);
}

button.btn {
  appearance: none;
  -webkit-appearance: none;
}

.btn-main {
  background: linear-gradient(135deg, #ff4fab 0%, #ff7a4f 100%);
  color: #fff;
  min-height: 96px;
  box-shadow: 4px 4px 0 #8a295f, 0 0 14px #ff67bd88;
}

#cta-primary {
  line-height: 1.45;
  padding-bottom: 14px;
}

.btn-minigame {
  background: linear-gradient(135deg, #ffec77 0%, #9ff2ff 100%);
  color: var(--ink);
  min-height: 48px;
  box-shadow: 4px 4px 0 #426b85, 0 0 12px #9ce6ff85;
}

.btn-sub {
  background: #fff;
  color: var(--ink);
  box-shadow: 4px 4px 0 #4b6e7f;
}

.btn-share {
  background: linear-gradient(125deg, #ffffff 0%, #f5f8ff 100%);
  color: var(--ink);
  box-shadow: 4px 4px 0 #4f5488;
}

.btn-copy {
  background: linear-gradient(125deg, #fffef1 0%, #f3fff1 100%);
  color: var(--ink);
  box-shadow: 4px 4px 0 #507e56;
  cursor: pointer;
}

.btn-remind {
  background: linear-gradient(125deg, #eaf9ff 0%, #ffffff 100%);
  color: var(--ink);
  box-shadow: 4px 4px 0 #356b8f;
}

.copy-toast {
  position: absolute;
  right: 18px;
  bottom: 16px;
  margin: 0;
  display: block;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 4px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
}

.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.sticker {
  position: absolute;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  font-weight: 900;
}

.sticker-a {
  right: 22px;
  top: 18px;
  background: var(--cyan);
  animation: swing 2.4s ease-in-out infinite;
}

.sticker-b {
  right: 20px;
  bottom: 20px;
  background: var(--orange);
  animation: swing 2.9s ease-in-out infinite reverse;
}

.burst {
  position: absolute;
  border-radius: 999px;
  z-index: -1;
  opacity: 0.28;
}

.burst-a {
  width: 180px;
  height: 180px;
  top: -70px;
  right: 110px;
  background: radial-gradient(circle, #ff61bc 0%, transparent 70%);
}

.burst-b {
  width: 220px;
  height: 220px;
  left: -90px;
  bottom: -110px;
  background: radial-gradient(circle, #58d8ff 0%, transparent 72%);
}

.layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.card {
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 8px 8px 0 #0000001a;
  transition: transform 220ms ease, box-shadow 220ms ease;
  position: relative;
}

.card:hover {
  transform: translateY(-5px) scale(1.01) rotate(-0.4deg);
  box-shadow: 12px 12px 0 #00000022, 0 0 16px #74deff44;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
}

.chips,
.link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips li {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  transition: transform 140ms ease;
}

.talent-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.talent-card {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(125deg, #fffef6 0%, #fff9ff 100%);
  padding: 8px;
  box-shadow: 4px 4px 0 #00000016;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  position: relative;
  overflow: hidden;
}

.talent-card.role-mc {
  background: linear-gradient(125deg, #fffce0 0%, #ffeef8 100%);
}

.talent-card.role-guest {
  background: linear-gradient(125deg, #f3fdff 0%, #edf1ff 100%);
}

.talent-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(115deg, transparent 8%, #ffffffcf 50%, transparent 92%);
  transform: skewX(-18deg);
  pointer-events: none;
}

.talent-card.reveal {
  transform: translateY(14px) scale(0.95) rotate(-0.6deg);
}

.talent-card.reveal.in {
  transform: translateY(0) scale(1) rotate(0deg);
  animation: talent-pop-in 440ms cubic-bezier(0.22, 1.3, 0.3, 1);
}

.talent-card.reveal.in::after {
  animation: talent-shine 620ms ease 1;
}

.talent-card:hover,
.talent-card.is-tapped {
  transform: translateY(-3px) scale(1.02) rotate(-0.4deg);
  box-shadow: 7px 7px 0 #00000021, 0 0 12px #74deff3b;
  filter: saturate(1.04);
}

.talent-avatar-wrap {
  position: relative;
  width: 104px;
  height: 104px;
  flex: 0 0 104px;
}

.talent-avatar {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 2px solid var(--line);
  object-fit: cover;
  display: block;
  opacity: 0;
}

.talent-avatar-fallback {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: linear-gradient(140deg, #fff6c9 0%, #ffe4f4 100%);
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 900;
}

.talent-avatar-wrap.loaded .talent-avatar {
  opacity: 1;
}

.talent-avatar-wrap.loaded .talent-avatar-fallback {
  display: none;
}

.talent-meta {
  min-width: 0;
}

.talent-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.2;
}

.talent-role {
  margin: 2px 0 0;
  font-size: 0.74rem;
  font-weight: 800;
  color: #7a5965;
}

.talent-tags {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.talent-tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid #f09fc3;
  background: #fff0f7;
  color: #8a2d57;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.45;
}

.talent-offer {
  margin-top: 5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px 3px 4px;
  border-radius: 999px;
  border: 1px solid #f5b65a;
  background: linear-gradient(120deg, #fff8e0 0%, #ffe9f3 100%);
}

.talent-offer-avatar-wrap {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.talent-offer-avatar,
.talent-offer-avatar-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 1px solid #2f2430;
}

.talent-offer-avatar {
  object-fit: cover;
  display: block;
  opacity: 0;
}

.talent-offer-avatar-fallback {
  display: grid;
  place-items: center;
  background: #fff;
  color: #6d3f15;
  font-size: 0.58rem;
  font-weight: 900;
}

.talent-offer-avatar-wrap.loaded .talent-offer-avatar {
  opacity: 1;
}

.talent-offer-avatar-wrap.loaded .talent-offer-avatar-fallback {
  display: none;
}

.talent-offer-text {
  font-size: 0.68rem;
  font-weight: 900;
  color: #7d3b0e;
  line-height: 1.2;
}

.talent-link {
  margin-top: 4px;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  color: #153a78;
  text-decoration-thickness: 2px;
}

.talent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.next-pickup-teaser {
  margin: 12px 0 0;
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 9px 10px;
  background: linear-gradient(125deg, #ecfbff 0%, #ffeefd 100%);
  font-size: 0.9rem;
  font-weight: 900;
  text-align: center;
}

.recommend-liver-section {
  text-align: center;
}

.recommend-liver-lead {
  margin: 2px 0 10px;
  font-weight: 800;
  line-height: 1.55;
}

.btn-recommend-form {
  min-width: min(100%, 420px);
}

.chips li:hover {
  animation: mini-bounce 360ms ease;
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-list a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(125deg, #fff 0%, #fff9e6 100%);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  transition: transform 180ms ease, background 220ms ease, box-shadow 180ms ease;
  position: relative;
  overflow: hidden;
}

.link-list a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, #ffffffaa 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 420ms ease;
}

.link-list a:hover {
  transform: translateX(9px) scale(1.02);
  background: linear-gradient(125deg, #fff5d0 0%, #ecfdff 100%);
  box-shadow: 6px 6px 0 #00000018;
}

.link-list a:hover::after {
  transform: translateX(120%);
}

.site-footer {
  margin: 18px auto 30px;
  text-align: center;
  font-weight: 700;
}

.site-footer p {
  margin: 4px 0;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#bgm-ui {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.bgm-toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(125deg, #fffdf2 0%, #eff9ff 100%);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1;
  padding: 10px 14px;
  box-shadow: 4px 4px 0 #4f5488;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.bgm-toggle:hover {
  transform: translateY(-2px) scale(1.03);
  filter: saturate(1.08);
}

.bgm-toggle:active {
  transform: translateY(0) scale(0.98);
}

.bgm-toggle.is-playing {
  background: linear-gradient(125deg, #fff1ce 0%, #ffe7f8 100%);
  box-shadow: 5px 5px 0 #8a295f, 0 0 12px #ff7fc485;
}

.bgm-hint {
  position: relative;
  max-width: min(280px, calc(100vw - 34px));
  border: 2px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(130deg, #fff7c7 0%, #ffdff2 100%);
  box-shadow: 4px 4px 0 #00000018;
  padding: 9px 32px 9px 12px;
  animation: bgm-hint-pop 380ms cubic-bezier(0.22, 1.2, 0.34, 1);
}

.bgm-hint::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -10px;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
  background: #ffe7f8;
  transform: rotate(45deg);
}

.bgm-hint-text {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.35;
}

.bgm-hint-close {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 4px;
  right: 5px;
  border: 0;
  background: transparent;
  color: #5d4851;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
}

.bgm-hint.is-hidden {
  display: none;
}

.reveal {
  opacity: 0;
  transition: opacity 550ms ease, transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up {
  transform: translateY(20px);
}

.zoom-pop {
  transform: translateY(18px) scale(0.9);
}

.slide-pop {
  transform: translateX(30px) scale(0.97);
}

.reveal.in {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.reveal.in.card {
  animation: pop-drop 460ms cubic-bezier(0.17, 0.67, 0.3, 1.4);
}

.pulse {
  animation: pulse 1.6s ease-in-out infinite;
}

.confetti-piece {
  position: absolute;
  width: 14px;
  height: 26px;
  border-radius: 2px;
  opacity: 0.95;
  animation: confetti-fall var(--dur, 1100ms) cubic-bezier(0.18, 0.75, 0.25, 1) forwards;
  will-change: transform;
}

.particle {
  position: absolute;
  pointer-events: none;
  opacity: 0.62;
  will-change: transform, opacity;
}

.particle-spark {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  box-shadow: 0 0 18px currentColor;
  animation: drift-down var(--dur, 7s) cubic-bezier(0.2, 0.65, 0.3, 1) infinite, pulse-glow 1.8s ease-in-out infinite;
}

.particle-shard {
  width: 11px;
  height: 34px;
  border-radius: 2px;
  animation: drift-diagonal var(--dur, 8s) cubic-bezier(0.2, 0.62, 0.32, 1) infinite;
}

.particle-ring {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 3px solid currentColor;
  background: transparent;
  animation: float-spin var(--dur, 9s) cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marquee-rev {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

@keyframes title-pop {
  0% { transform: scale(0.75) rotate(-2deg); opacity: 0; }
  70% { transform: scale(1.09) rotate(1deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); }
}

@keyframes neon-flicker {
  0%, 100% { text-shadow: 0 2px 0 #fff, 0 0 18px #ff7dcf66; }
  50% { text-shadow: 0 2px 0 #fff, 0 0 28px #ff56cbcc; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(12px); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 4px 4px 0 #8a295f, 0 0 14px #ff67bd88; }
  50% { box-shadow: 9px 9px 0 #8a295f, 0 0 22px #ff67bdba; }
}

@keyframes swing {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(8deg) translateY(-6px); }
}

@keyframes mini-bounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes pop-drop {
  0% { transform: scale(0.88) translateY(12px); }
  70% { transform: scale(1.02) translateY(-3px); }
  100% { transform: scale(1) translateY(0); }
}

@keyframes bgm-hint-pop {
  0% { transform: translateY(8px) scale(0.92); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes talent-pop-in {
  0% { transform: translateY(14px) scale(0.94) rotate(-0.8deg); }
  60% { transform: translateY(-2px) scale(1.02) rotate(0.2deg); }
  100% { transform: translateY(0) scale(1) rotate(0deg); }
}

@keyframes talent-shine {
  0% { left: -120%; }
  100% { left: 155%; }
}

@keyframes grid-pulse {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.18; }
}

@keyframes badge-orbit {
  0% { transform: translate(0, 0) rotate(-5deg); }
  25% { transform: translate(80px, -4px) rotate(4deg); }
  50% { transform: translate(160px, 0) rotate(-3deg); }
  75% { transform: translate(240px, -4px) rotate(5deg); }
  100% { transform: translate(320px, 0) rotate(-5deg); }
}

@keyframes kicker-hop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes soft-wave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes confetti-fall {
  0% { transform: translate3d(var(--x0), var(--y0), 0) rotate(0deg); }
  100% {
    transform: translate3d(var(--x1), var(--y1), 0) rotate(var(--rot, 680deg));
    opacity: 0;
  }
}

@keyframes drift-down {
  0% {
    transform: translate3d(var(--x0), var(--y0), 0) scale(0.95);
    opacity: calc(var(--opa, 0.6) * 0.55);
  }
  50% { opacity: var(--opa, 0.6); }
  100% {
    transform: translate3d(var(--x1), var(--y1), 0) scale(1.1);
    opacity: calc(var(--opa, 0.6) * 0.5);
  }
}

@keyframes drift-diagonal {
  0% {
    transform: translate3d(var(--x0), var(--y0), 0) rotate(0deg);
    opacity: calc(var(--opa, 0.65) * 0.45);
  }
  50% { opacity: var(--opa, 0.65); }
  100% {
    transform: translate3d(var(--x1), var(--y1), 0) rotate(var(--rot, 360deg));
    opacity: calc(var(--opa, 0.65) * 0.35);
  }
}

@keyframes float-spin {
  0% {
    transform: translate3d(var(--x0), var(--y0), 0) rotate(0deg) scale(0.7);
    opacity: calc(var(--opa, 0.55) * 0.4);
  }
  50% {
    transform: translate3d(var(--xm), var(--ym), 0) rotate(180deg) scale(1);
    opacity: var(--opa, 0.55);
  }
  100% {
    transform: translate3d(var(--x1), var(--y1), 0) rotate(360deg) scale(0.75);
    opacity: calc(var(--opa, 0.55) * 0.35);
  }
}

@keyframes pulse-glow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.35); }
}

@keyframes mini-game-gimmick-drift {
  0% {
    transform: translate3d(var(--mini-game-gimmick-start-x, 110vw), var(--mini-game-gimmick-y, 40vh), 0) scale(0.82);
    opacity: 0;
  }
  12% {
    opacity: 0.95;
  }
  76% {
    opacity: 0.96;
  }
  100% {
    transform: translate3d(var(--mini-game-gimmick-end-x, -94px), var(--mini-game-gimmick-y, 40vh), 0) scale(1);
    opacity: 0;
  }
}

@keyframes mini-game-gimmick-static {
  0% {
    transform: translate3d(-50%, -50%, 0) scale(0.9);
    opacity: 0;
  }
  16% {
    opacity: 0.95;
  }
  84% {
    opacity: 0.95;
  }
  100% {
    transform: translate3d(-50%, -50%, 0) scale(1);
    opacity: 0;
  }
}

@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
  .meta { grid-template-columns: 1fr; }
  .talent-grid { grid-template-columns: 1fr; }
  .slide-pop { transform: translateY(18px) scale(0.98); }
  .orbit-badges {
    display: block;
    height: 40px;
    margin: 6px 0 10px;
    overflow: visible;
    z-index: 2;
  }
  .orbit-badges span {
    font-size: 0.66rem;
    padding: 2px 7px;
  }
}

@media (max-width: 640px) {
  .episodes-link {
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: calc(10px + env(safe-area-inset-left));
  }

  .mini-game-gimmick-trigger {
    width: 64px;
    height: 64px;
  }

  .hero {
    padding: 20px;
    padding-top: 74px;
  }

  .summary {
    font-size: 1.03rem;
    line-height: 1.62;
  }

  .story-images {
    margin-top: 12px;
    gap: 8px;
  }

  .meta {
    margin-top: 16px;
    gap: 8px;
  }

  .meta-item {
    padding: 9px 10px;
  }

  .mini-game-promo {
    padding: 9px;
    gap: 8px;
  }

  .mini-game-avatar {
    width: 52px;
    height: 52px;
  }

  .countdown-text {
    font-size: clamp(1.28rem, 6.4vw, 1.8rem);
  }

  .orbit-badges {
    margin-bottom: 12px;
  }

  h1 {
    margin-top: 8px;
  }

  .kicker {
    position: absolute;
    top: 20px;
    left: 12px;
    margin: 0;
  }

  .sticker {
    position: absolute;
    top: 20px;
    margin: 0;
    padding: 4px 10px;
    min-width: 102px;
    text-align: center;
    font-size: 0.72rem;
    line-height: 1;
    z-index: 4;
    transform: rotate(0deg);
  }

  .sticker-a {
    top: 18px;
    right: 12px;
    animation: swing 2.8s ease-in-out infinite;
  }

  .sticker-b {
    top: 52px;
    right: 12px;
    bottom: auto;
    animation: swing 3.1s ease-in-out infinite reverse;
  }

  .btn { width: 100%; text-align: center; }
  .action-row { gap: 7px; }
  .share-actions .btn {
    width: auto;
    flex: 0 0 auto;
  }
  .reminder-actions .btn {
    width: auto;
    flex: 1 1 0;
  }
  .copy-toast {
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    text-align: center;
  }
  #bgm-ui {
    right: 10px;
    bottom: 10px;
  }
  .highlights { flex-direction: column; }
  .highlights li { width: fit-content; max-width: 100%; }
  .confetti-piece { width: 8px; height: 14px; }
  .marquee-track span { font-size: 0.7rem; }
  .site-footer { margin-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
  .particle,
  .confetti-piece { display: none; }
  .talent-card::after { display: none; }
  .bgm-hint { animation: none; }

  .mini-game-gimmick-trigger {
    animation: mini-game-gimmick-static var(--mini-game-gimmick-duration, 6s) ease-out forwards !important;
    transition: opacity 120ms ease !important;
  }
}
