/* Heartbeat — illustrated rhythm-game website.
   Original copy, artwork and movie configuration remain in HTML / JS. */
:root {
  --purple: #7850ca; --purple-deep: #35204f; --purple-light: #b29ae9;
  --lavender: #efe9fc; --yellow: #fff1a1; --pink: #ec66a3;
  --ink: #35204f; --muted: #746782; --paper: #fff;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --header-offset: 112px;
}
* { box-sizing: border-box; }
/* The anchor offset is applied on sections, not twice on both ends. */
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--lavender); font-family: var(--font); font-size: 16px; -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; }
body.is-locked .site { visibility: hidden; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
img { max-width: 100%; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
::selection { color: var(--purple-deep); background: var(--yellow); }
:focus-visible { outline: 3px solid #a52f78; outline-offset: 5px; }
section[id] { scroll-margin-top: var(--header-offset); }

/* Fixed navigation uses existing section names and the official X link. */
.site { position: relative; min-height: 100vh; overflow: clip; }
.site-header {
  position: fixed; z-index: 100; top: 18px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: min(1240px, calc(100% - 64px)); min-height: 72px; padding: 10px 20px 10px 24px;
  border: 2px solid var(--purple-deep); border-radius: 22px; background: #fff;
  box-shadow: 0 5px 0 rgba(53, 32, 79, .18);
}
.site-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; color: var(--pink); }
.site-brand > span { font-family: var(--display); font-size: 23px; font-style: italic; font-weight: 900; letter-spacing: -.8px; line-height: 1; }
.site-brand small { display: block; margin-top: 5px; font-family: var(--font); font-size: 12px; font-style: normal; font-weight: 700; letter-spacing: .26em; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a { position: relative; padding: 12px 19px; border-radius: 12px; font-size: 15px; font-weight: 700; text-decoration: none; transition: background .2s, color .2s; }
.site-nav a:hover { background: var(--lavender); }
.site-nav a.is-active { color: var(--purple-deep); background: var(--yellow); }
.header-social { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 17px; border: 1px solid var(--purple-deep); border-radius: 12px; color: #fff; background: var(--purple-deep); font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s; }
.header-social:hover { background: var(--purple); }
.bg-hearts { display: none; }

/* Full, uncropped hero artwork with a separate title ticket. */
.hero {
  position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center;
  padding: 124px 48px 76px; overflow: hidden; background-color: var(--purple-light);
  background-image: radial-gradient(#fff6 1.2px, transparent 1.2px); background-size: 20px 20px;
}
.hero::before { content: ""; position: absolute; z-index: -1; width: 660px; height: 660px; top: 90px; left: -390px; border: 76px solid #cbbbef; border-radius: 50%; box-shadow: 0 0 0 18px #ffffff2b; }
.hero::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -360px; bottom: -50px; border: 72px solid #9678d5; border-radius: 50%; }
.kv-frame { position: relative; width: 100%; max-width: 1280px; padding: 8px; border: 2px solid var(--purple-deep); border-radius: 26px; background: #fff; box-shadow: 10px 10px 0 rgba(53, 32, 79, .22); }
.kv-frame picture { display: block; overflow: hidden; border-radius: 16px; }
.kv { display: block; width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: contain; }
.title-block {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: 36px;
  width: min(1100px, calc(100% - 56px)); margin-top: 24px; padding: 28px 40px 30px;
  border: 2px solid var(--purple-deep); border-radius: 6px 26px 6px 26px;
  background: var(--yellow); box-shadow: 7px 7px 0 var(--purple-deep);
}
.title-block::before { content: ""; position: absolute; top: -18px; right: 40px; width: 42px; height: 42px; background: var(--pink); clip-path: polygon(50% 0, 61% 35%, 100% 50%, 61% 61%, 50% 100%, 38% 61%, 0 50%, 38% 35%); transform: rotate(15deg); }
.hero-heading { min-width: 0; }
.title-en { font-family: var(--display); font-size: clamp(50px, 6.6vw, 92px); font-style: italic; font-weight: 950; line-height: .98; letter-spacing: -.055em; }
.title-zh { margin-top: 13px; padding-left: 5px; font-size: clamp(22px, 2.2vw, 30px); font-weight: 900; line-height: 1.3; letter-spacing: .42em; }
.hero-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 16px 14px; padding-left: 32px; border-left: 1px solid #35204f3b; }
.tagline { width: 100%; font-size: clamp(16px, 1.45vw, 20px); font-weight: 700; line-height: 1.6; letter-spacing: .07em; }
.genre { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.genre li { padding: 7px 11px; border: 1px solid #35204f66; border-radius: 5px; font-size: 14px; font-weight: 700; line-height: 1.4; white-space: nowrap; }
.x-link { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; padding: 11px 19px; border: 2px solid var(--purple-deep); border-radius: 9px; background: var(--purple-deep); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; transition: transform .2s, background .2s; }
.x-link:hover { transform: translateY(-3px); background: var(--purple); }
.is-entered .kv-frame { animation: enter-stage .65s ease both; }
.is-entered .title-block { animation: enter-stage .65s .12s ease both; }
@keyframes enter-stage { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.rhythm-strip { height: 38px; border-top: 2px solid var(--purple-deep); border-bottom: 2px solid var(--purple-deep); background-color: var(--yellow); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 34' width='200' height='34'%3E%3Cpath d='M0 17h52l6-7 6 14 8-20 9 26 7-13h30' fill='none' stroke='%237850ca' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='m155 10 2 5 5 2-5 2-2 5-2-5-5-2 5-2Z' fill='%237850ca'/%3E%3C/svg%3E"); }

/* Distinct section titles, without adding marketing copy. */
.sec-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; width: min(1180px, calc(100% - 96px)); margin: 0 auto 40px; }
.sec-head::after { content: ""; flex: 1; height: 2px; background: currentColor; opacity: .2; order: 1; }
.sec-en { font-family: var(--display); font-size: clamp(44px, 7.5vw, 102px); font-style: italic; font-weight: 950; letter-spacing: -.055em; line-height: 1; }
.sec-zh { order: 2; flex-shrink: 0; padding: 11px 20px; border: 2px solid currentColor; border-radius: 6px; font-size: 20px; font-weight: 800; line-height: 1.4; letter-spacing: .14em; white-space: nowrap; transform: rotate(-4deg); }

/* Preserve the horizontal flex track and JS-owned translation. */
.movie { position: relative; width: 100%; padding: 82px 0 76px; overflow: hidden; background: #f6f2ff; }
.movie .sec-en { color: var(--purple); }
.movie .sec-zh { background: #fff; box-shadow: 4px 4px 0 #d9caf2; }
.movie-carousel { --w: min(860px, 74vw); --gap: clamp(24px, 5vw, 80px); position: relative; outline: none; }
.movie-viewport { overflow: hidden; padding: 12px 0 30px; touch-action: pan-y; }
.movie-track { position: relative; display: flex; flex-wrap: nowrap; gap: var(--gap); list-style: none; will-change: transform; transition: transform .55s cubic-bezier(.22, .8, .3, 1); }
.movie-track.no-anim, .movie-track.no-anim .movie-slide { transition: none; }
.movie-slide { flex: 0 0 var(--w); min-width: 0; opacity: .35; transform: scale(.92); cursor: pointer; transition: opacity .55s, transform .55s; }
.movie-slide.is-active { opacity: 1; transform: none; cursor: default; }
.movie-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 8px solid #fff; border-radius: 21px; background: var(--purple-deep); box-shadow: 0 0 0 2px var(--purple-deep), 9px 10px 0 #d1bdeb; }
.movie-frame::after { content: ""; position: absolute; z-index: 3; inset: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px #35204f33; pointer-events: none; }
.movie-carousel:focus-visible .movie-slide.is-active .movie-frame { outline: 4px solid #a52f78; outline-offset: 5px; }
.movie-slide:not(.is-active) .movie-frame > * { pointer-events: none; }
.movie-frame video, .movie-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.movie-placeholder { position: absolute; inset: 0; }
.movie-poster { position: absolute; inset: -10px; background-position: center 35%; background-size: cover; background-repeat: no-repeat; filter: blur(3px) brightness(.6) saturate(.8); }
.movie-placeholder::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #35204f22, #35204fa6); }
.movie-msg { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 20px; color: #fff; text-align: center; }
.movie-msg .t { font-size: clamp(14px, 1.4vw, 17px); font-weight: 700; line-height: 1.5; letter-spacing: .1em; }
.movie-msg p { font-size: clamp(16px, 2.2vw, 27px); font-weight: 800; line-height: 1.5; letter-spacing: .08em; }
.movie-play { position: relative; display: block; width: clamp(48px, 6vw, 78px); aspect-ratio: 1; margin-bottom: 3px; border: 2px solid var(--purple-deep); border-radius: 50%; background: var(--yellow); box-shadow: 4px 4px 0 #35204f8c; }
.movie-play::before { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%); width: 0; height: 0; border-top: 11px solid transparent; border-bottom: 11px solid transparent; border-left: 17px solid var(--purple-deep); }
.movie-arrow { position: absolute; z-index: 5; top: calc(50% - 9px); width: 58px; height: 58px; padding: 0; border: 2px solid var(--purple-deep); border-radius: 50%; background: var(--yellow); box-shadow: 3px 4px 0 var(--purple-deep); cursor: pointer; transform: translateY(-50%); transition: background .2s, box-shadow .2s; }
.movie-arrow::before { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; border-top: 3px solid var(--purple-deep); border-right: 3px solid var(--purple-deep); }
.movie-arrow--prev { left: calc(50% - var(--w) / 2 - 29px); }
.movie-arrow--next { right: calc(50% - var(--w) / 2 - 29px); }
.movie-arrow--prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.movie-arrow--next::before { transform: translate(-70%, -50%) rotate(45deg); }
.movie-arrow:hover { background: #fff; box-shadow: 1px 2px 0 var(--purple-deep); }
.movie-caption { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; padding: 0 24px; margin-top: 5px; font-size: 17px; font-weight: 700; line-height: 1.7; }
.movie-caption b { padding: 2px 12px; border-radius: 4px; background: #e3d7f7; color: #5a3689; font-family: var(--display); font-size: 15px; font-weight: 800; letter-spacing: .06em; }
.movie-dots { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 12px; }
.movie-dot { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 9px; background: transparent; cursor: pointer; }
.movie-dot::before { content: ""; width: 12px; height: 12px; border: 2px solid #765a98; border-radius: 999px; background: #fff; transition: width .2s, background .2s; }
.movie-dot.is-active::before { width: 30px; background: var(--yellow); border-color: var(--purple-deep); }
.movie-dot:hover::before { background: var(--purple-light); }

/* Character section heading and disclaimer. */
.chara { position: relative; padding: 88px 0 72px; border-top: 2px solid var(--purple-deep); background-color: var(--purple); background-image: radial-gradient(#ffffff18 1px, transparent 1px); background-size: 16px 16px; }
.chara .sec-head { color: #fff; margin-bottom: 48px; }
.chara .sec-en { font-size: clamp(44px, 7.2vw, 96px); }
.chara .sec-zh { border-color: var(--purple-deep); background: var(--yellow); color: var(--purple-deep); box-shadow: 4px 4px 0 #35204f66; }












.chara-note { margin: 42px 24px 0; color: #f3eaff; font-size: 14px; line-height: 1.8; text-align: center; }

/* Original copyright, age notice and official account. */
.footer { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 32px max(48px, calc((100vw - 1180px) / 2)); border-top: 1px solid #ffffff20; background: var(--purple-deep); color: #fff; }
.footer > p:first-child { font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.footer-note { color: #e4d6f3; font-size: 13px; line-height: 1.7; }
.footer-sns a { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; font-size: 14px; font-weight: 700; text-decoration: none; }
.footer-sns a:hover { color: var(--yellow); }

/* Age confirmation retains the same decision, storage key and exit flow. */
.age-gate { position: fixed; z-index: 9999; inset: 0; display: flex; align-items: center; justify-content: center; overflow-y: auto; padding: 32px 24px; background-color: #b29ae9; background-image: radial-gradient(#fff7 1.2px, transparent 1.2px); background-size: 20px 20px; transition: opacity .3s, visibility .3s; }
.age-gate::before, .age-gate::after { content: ""; position: fixed; pointer-events: none; width: 420px; height: 420px; border: 54px solid #cbbbeb; border-radius: 50%; }
.age-gate::before { top: -170px; left: -140px; }
.age-gate::after { right: -180px; bottom: -170px; border-color: #987cd2; }
.age-gate.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.age-card { position: relative; z-index: 1; width: 100%; max-width: 470px; padding: 38px 36px 34px; border: 2px solid var(--purple-deep); border-radius: 28px; background: #fff; box-shadow: 9px 10px 0 var(--purple-deep); text-align: center; }
.age-logo { color: var(--purple-deep); font-family: var(--display); font-size: 27px; font-style: italic; font-weight: 900; letter-spacing: -.06em; }
.age-logo span { display: block; margin-top: 6px; font-family: var(--font); font-size: 14px; font-style: normal; letter-spacing: .24em; }
.age-badge { display: grid; place-items: center; width: 84px; height: 84px; margin: 28px auto 22px; border: 2px solid var(--purple-deep); border-radius: 22px; background: var(--yellow); font-family: var(--display); font-size: 30px; font-weight: 900; transform: rotate(-8deg); box-shadow: 4px 4px 0 #e5d7f6; }
.age-title { font-size: 25px; font-weight: 800; line-height: 1.5; }
.age-desc { margin: 15px 0 26px; color: #746782; font-size: 16px; line-height: 1.9; }
.age-actions { display: flex; flex-direction: column; gap: 13px; }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 12px 18px; border: 2px solid var(--purple-deep); border-radius: 11px; font-size: 16px; font-weight: 800; cursor: pointer; transition: background .2s, transform .2s; }
.btn-yes { background: var(--purple); color: #fff; box-shadow: 3px 4px 0 var(--purple-deep); }
.btn-yes:hover { background: #6540b4; transform: translateY(-2px); }
.btn-no { background: #f7f4fc; color: #746782; border-color: #ded5e8; }
.btn-no:hover { color: var(--purple-deep); background: #ece3f7; }
.age-denied { margin-top: 22px; color: #9c326e; font-size: 16px; font-weight: 700; line-height: 1.9; }

/* Tablet layouts. */
@media (max-width: 1100px) {
  .site-header { gap: 18px; padding-left: 18px; }
  .site-nav a { padding-inline: 14px; }
  .title-block { width: calc(100% - 20px); gap: 24px; padding: 28px; }
  .title-en { font-size: clamp(48px, 7vw, 76px); }
  .hero-info { padding-left: 24px; }





}
@media (max-width: 900px) {
  .site-header { width: calc(100% - 36px); }
  .header-social { width: 44px; padding: 10px; }
  .header-social span { display: none; }
  .hero { padding: 120px 28px 60px; }
  .title-block { grid-template-columns: 1fr; gap: 22px; text-align: center; }
  .title-en { font-size: clamp(58px, 11vw, 88px); }
  .title-zh { margin-top: 12px; font-size: 25px; padding-left: .42em; }
  .hero-info { justify-content: center; padding: 20px 0 0; border-left: 0; border-top: 1px solid #35204f33; }
  .tagline { font-size: 18px; }
  .sec-head { width: calc(100% - 56px); gap: 22px; }
  .sec-zh { padding: 10px 16px; font-size: 17px; }




  .footer { justify-content: center; padding: 28px; gap: 14px 28px; }
  .footer-note { order: 3; width: 100%; text-align: center; }
}

/* Mobile: compact two-row menu, complete artwork and clear tap targets. */
@media (max-width: 600px) {
  :root { --header-offset: 122px; }
  .site-header { top: 10px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; width: calc(100% - 28px); min-height: 96px; padding: 10px 14px 9px; border-radius: 17px; }
  .site-brand { gap: 7px; }
  .brand-mark { width: 28px; height: 28px; }
  .site-brand > span { font-size: 21px; }
  .site-brand small { display: inline; margin-left: 10px; font-size: 12px; letter-spacing: .1em; }
  .header-social { grid-column: 2; grid-row: 1; width: 34px; min-height: 34px; padding: 7px; border-radius: 8px; }
  .header-social svg { width: 15px; height: 15px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: stretch; gap: 4px; }
  .site-nav a { flex: 1; padding: 9px 6px; border-radius: 8px; font-size: 14px; text-align: center; line-height: 1.4; }
  .hero { padding: 140px 16px 42px; }
  .hero::before { width: 400px; height: 400px; left: -280px; border-width: 42px; }
  .kv-frame { padding: 4px; border-radius: 15px; box-shadow: 5px 6px 0 #35204f44; }
  .kv-frame picture { border-radius: 8px; }
  .title-block { width: calc(100% - 8px); margin-top: 22px; padding: 26px 18px 25px; border-radius: 5px 21px 5px 21px; gap: 18px; box-shadow: 5px 5px 0 var(--purple-deep); }
  .title-block::before { width: 30px; height: 30px; top: -14px; right: 20px; }
  .title-en { font-size: clamp(47px, 13.2vw, 72px); letter-spacing: -.06em; }
  .title-zh { font-size: 23px; letter-spacing: .35em; padding-left: .35em; margin-top: 10px; }
  .hero-info { gap: 15px; padding-top: 18px; }
  .tagline { font-size: 16px; letter-spacing: .02em; }
  .genre { gap: 9px; }
  .genre li { padding: 6px 12px; font-size: 14px; }
  .x-link { width: min(236px, 100%); margin: 0 auto; }
  .rhythm-strip { height: 32px; background-size: 176px 30px; }
  .sec-head { width: calc(100% - 40px); gap: 14px; margin-bottom: 28px; }
  .sec-head::after { display: none; }
  .sec-en { font-size: 52px; }
  .sec-zh { padding: 8px 12px; border-width: 1.5px; font-size: 16px; letter-spacing: .08em; }
  .movie { padding: 46px 0 40px; }
  .movie-carousel { --w: 82vw; --gap: 16px; }
  .movie-viewport { padding: 9px 0 24px; }
  .movie-frame { border-width: 5px; border-radius: 14px; box-shadow: 0 0 0 1.5px var(--purple-deep), 5px 6px 0 #d1bdeb; }
  .movie-frame::after { border-radius: 8px; }
  .movie-arrow { top: calc(50% - 7px); width: 44px; height: 44px; box-shadow: 2px 3px 0 var(--purple-deep); }
  .movie-arrow--prev { left: 9px; }
  .movie-arrow--next { right: 9px; }
  .movie-arrow::before { width: 10px; height: 10px; border-width: 2.5px; }
  .movie-msg { gap: 8px; padding: 12px 8px; }
  .movie-play { width: 44px; margin-bottom: 0; }
  .movie-play::before { border-top-width: 7px; border-bottom-width: 7px; border-left-width: 11px; }
  .movie-msg .t { font-size: 13px; letter-spacing: .03em; }
  .movie-msg p { font-size: 15px; letter-spacing: .02em; }
  .movie-caption { gap: 9px; font-size: 15px; }
  .movie-caption b { font-size: 13px; padding: 2px 9px; }
  .movie-dots { margin-top: 7px; }
  .chara { padding: 48px 0 42px; }
  .chara .sec-head { flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
  .chara .sec-en { font-size: clamp(38px, 9.8vw, 55px); }
  .chara .sec-zh { font-size: 15px; }







  .chara-note { font-size: 13px; margin-top: 30px; }
  .footer { flex-direction: column; gap: 10px; padding: 28px 20px; }
  .footer-note { order: initial; }
  .age-gate { padding: 24px 18px; }
  .age-card { max-width: 420px; padding: 30px 23px 28px; border-radius: 24px; box-shadow: 6px 7px 0 var(--purple-deep); }
  .age-logo { font-size: 27px; }
  .age-badge { width: 74px; height: 74px; margin: 24px auto 19px; font-size: 28px; }
  .age-title { font-size: 23px; }
  .age-desc { margin: 13px 0 24px; font-size: 15px; }
}
@media (max-width: 370px) {
  .site-brand small { display: none; }
  .title-en { font-size: 45px; }
  .sec-en { font-size: 45px; }
  .sec-zh { padding: 8px 10px; font-size: 14px; }

  .age-card { padding-inline: 18px; }
  .age-title { font-size: 21px; }
}
@media (max-height: 640px) and (min-width: 601px) {
  .age-card { padding: 22px 30px; }
  .age-badge { width: 60px; height: 60px; margin: 14px auto; font-size: 24px; border-radius: 16px; }
  .age-desc { margin: 10px 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== Full-bleed hero (no frame) + wish button ===== */
.hero { padding: 0 0 64px; }
.kv-frame { max-width: none; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); mask-image: linear-gradient(to bottom, #000 72%, transparent 100%); }
.kv-frame picture { border-radius: 0; }
.kv { width: 100%; max-height: 100vh; object-fit: cover; object-position: center top; }
.title-block { margin-top: -96px; grid-template-columns: 1fr auto; }
.hero-info { flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding-left: 40px; }
.wish-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 260px; min-height: 72px; padding: 14px 34px;
  border: 2px solid var(--purple-deep); border-radius: 999px; background: linear-gradient(135deg, #ff8cc0, var(--pink) 55%, #c84f9d); color: #fff;
  font-family: var(--font); font-size: 24px; font-weight: 900; letter-spacing: .18em; cursor: pointer;
  box-shadow: 5px 6px 0 var(--purple-deep); transition: transform .2s, box-shadow .2s, filter .2s; animation: wish-pulse 2.4s ease-in-out infinite; }
.wish-btn:hover { transform: translateY(-3px); box-shadow: 6px 9px 0 var(--purple-deep); filter: brightness(1.05); }
.wish-btn:active { transform: translateY(2px); box-shadow: 2px 3px 0 var(--purple-deep); }
.wish-btn:focus-visible { outline: 4px solid var(--purple); outline-offset: 4px; }
.wish-icon { display: inline-block; font-size: 26px; line-height: 1; letter-spacing: 0; }
.wish-btn.is-done { background: linear-gradient(135deg, #b29ae9, var(--purple)); animation: none; }
.wish-btn.is-pop .wish-icon { animation: wish-pop .5s ease; }
.wish-count { font-size: 15px; font-weight: 700; letter-spacing: .08em; color: var(--purple-deep); }
.wish-count b { margin: 0 2px; font-family: var(--display); font-size: 26px; color: #c84f9d; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
@keyframes wish-pulse { 0%, 100% { box-shadow: 5px 6px 0 var(--purple-deep), 0 0 0 0 #ec66a366; } 50% { box-shadow: 5px 6px 0 var(--purple-deep), 0 0 0 14px #ec66a300; } }
@keyframes wish-pop { 0% { transform: scale(1); } 40% { transform: scale(1.6); } 100% { transform: scale(1); } }
@media (max-width: 900px) {
  .title-block { grid-template-columns: 1fr; margin-top: -48px; }
  .hero-info { padding: 20px 0 0; }
}
@media (max-width: 600px) {
  .hero { padding: 108px 0 42px; }
  .kv { max-height: none; }
  .title-block { width: calc(100% - 32px); margin-top: -28px; }
  .wish-btn { min-width: 0; width: 100%; min-height: 60px; font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .wish-btn { animation: none; } }

/* Animated key visual. The original responsive picture is the loading fallback. */
.kv-rig {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0;
  background:
    linear-gradient(0deg, #eef3fc, transparent 66%),
    linear-gradient(104deg, #e8e3fb, #dbe2f8 43%, #c5e2fb 77%, #c1e1f9);
  transition: opacity .35s ease;
}
.kv-rig.is-ready { opacity: 1; }
.kv-rig canvas { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
