:root {
  --ink: #50384b;
  --muted: #8f758b;
  --pink: #f48bb8;
  --pink-deep: #e76ba3;
  --pink-soft: #fff0f6;
  --lilac: #b9a4f4;
  --lilac-soft: #f3efff;
  --blue-soft: #edf5ff;
  --line: #f4deea;
  --white: #fff;
  --shadow: 0 24px 80px rgba(181, 111, 153, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 208, 230, .55), transparent 26rem),
    radial-gradient(circle at 88% 78%, rgba(218, 208, 255, .52), transparent 30rem),
    linear-gradient(135deg, #fff8fb 0%, #fff5fa 46%, #f7f5ff 100%);
  font-family: 'DM Sans', sans-serif;
}
button, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(231, 107, 163, .4); outline-offset: 3px; }
.ambient { position: fixed; z-index: 0; width: 18rem; height: 18rem; border-radius: 50%; filter: blur(65px); opacity: .26; pointer-events: none; }
.ambient-one { top: -8rem; left: -6rem; background: #ffb8d5; }
.ambient-two { right: -8rem; bottom: -8rem; background: #bba8ff; }
.floating-decor { position: fixed; z-index: 0; pointer-events: none; color: rgba(227, 125, 174, .48); animation: floaty 6s ease-in-out infinite; }
.decor-heart { font-size: 2rem; }
.decor-one { top: 22%; left: 8%; transform: rotate(-14deg); }
.decor-two { right: 9%; top: 32%; font-size: 1.5rem; animation-delay: -2s; }
.decor-star { font-size: 2rem; color: rgba(173, 151, 234, .65); }
.decor-three { top: 70%; left: 12%; animation-delay: -3s; }
.decor-four { top: 15%; right: 17%; animation-delay: -1s; }
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -13px; } }

.page-shell { position: relative; z-index: 1; min-height: 100vh; width: min(100% - 36px, 980px); margin: 0 auto; padding: 25px 0 30px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 25px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-family: 'Nunito', sans-serif; font-weight: 900; letter-spacing: -.03em; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 11px; background: #ffe4ef; color: #e46e9f; font-size: 20px; box-shadow: 0 5px 15px rgba(225, 124, 169, .14); }
.topbar-note { color: #a78ba0; font-size: .78rem; font-weight: 700; }
.sparkle-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #a890ed; box-shadow: 0 0 0 4px rgba(168,144,237,.12); }
.game-wrap { width: min(100%, 720px); margin: 0 auto; }
.progress-wrap { margin: 0 7px 15px; }
.progress-meta { display: flex; justify-content: space-between; margin: 0 2px 8px; color: #a08399; font-size: .75rem; font-weight: 800; letter-spacing: .02em; }
.progress-track { height: 7px; overflow: hidden; border-radius: 99px; background: rgba(226, 201, 218, .55); }
.progress-fill { width: 16.66%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f18cb9, #b9a5f2); transition: width .55s cubic-bezier(.2,.8,.2,1); }
.game-card { position: relative; min-height: 610px; overflow: hidden; padding: 48px clamp(22px, 6vw, 62px) 65px; border: 1px solid rgba(255,255,255,.9); border-radius: 34px; background: rgba(255,255,255,.86); box-shadow: var(--shadow), inset 0 0 0 1px rgba(241, 213, 228, .42); backdrop-filter: blur(14px); }
.game-card::before { position: absolute; top: -100px; right: -80px; width: 250px; height: 250px; border-radius: 50%; background: radial-gradient(circle, rgba(255,225,239,.55), transparent 70%); content: ''; pointer-events: none; }
.game-card::after { position: absolute; bottom: -125px; left: -115px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(229,223,255,.52), transparent 72%); content: ''; pointer-events: none; }
.card-sticker { position: absolute; z-index: 2; color: #bf91ad; font-size: .72rem; font-weight: 800; letter-spacing: .02em; }
.sticker-top { top: 17px; right: 24px; display: flex; align-items: center; gap: 7px; transform: rotate(5deg); }
.sticker-face { display: grid; place-items: center; width: 54px; height: 36px; border-radius: 13px 13px 13px 3px; background: #fff0f6; color: #b8789b; font-size: .78rem; }
.sticker-bottom { bottom: 20px; left: 50%; display: flex; gap: 8px; align-items: center; transform: translateX(-50%); white-space: nowrap; }
.sticker-bottom span { color: #ef94b9; font-size: 1rem; }
.screen { position: relative; z-index: 1; display: none; text-align: center; animation: screen-in .45s ease both; }
.screen.active { display: block; }
@keyframes screen-in { from { opacity: 0; transform: translateY(13px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 17px; padding: 8px 13px; border: 1px solid #f8e2ed; border-radius: 99px; background: #fff8fb; color: #c17fa2; font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow span { color: #ee8ab5; font-size: .95rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: 'Nunito', sans-serif; }
h1 { margin-bottom: 15px; font-size: clamp(2.35rem, 7vw, 3.6rem); line-height: 1.05; font-weight: 900; letter-spacing: -.055em; }
h2 { margin-bottom: 11px; font-size: clamp(1.9rem, 5.7vw, 2.65rem); line-height: 1.08; font-weight: 900; letter-spacing: -.045em; }
.gradient-text { color: #e779a9; background: linear-gradient(100deg, #e77eab 10%, #a58be9 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lead { max-width: 490px; margin: 0 auto 25px; color: var(--muted); font-size: .98rem; line-height: 1.75; }
.notice-pill { display: flex; align-items: flex-start; gap: 9px; max-width: 465px; margin: 0 auto 23px; padding: 12px 15px; border: 1px solid #f5e3ec; border-radius: 16px; background: #fff8fb; color: #967b8e; font-size: .75rem; line-height: 1.55; text-align: left; }
.notice-pill span { flex: 0 0 auto; }
.micro-copy { margin: 14px 0 0; color: #b49bae; font-size: .73rem; font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 23px; border: 0; border-radius: 15px; font-weight: 900; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { color: white; background: linear-gradient(105deg, #f18bb7, #d982bc 56%, #ac91e9); box-shadow: 0 11px 23px rgba(224, 126, 174, .25); }
.btn-primary:hover { box-shadow: 0 15px 28px rgba(224, 126, 174, .34); }
.btn-soft { color: #9b7b91; border: 1px solid #efdce7; background: #fff7fb; box-shadow: 0 7px 17px rgba(177, 126, 157, .08); }
.btn-lilac { color: #7865b3; border: 1px solid #e4ddfb; background: #f4f0ff; }
.btn-wide { width: min(100%, 335px); }
.btn-small { min-height: 39px; padding: 0 15px; border-radius: 12px; font-size: .78rem; }
.hero-cat { position: relative; display: grid; place-items: center; width: 160px; height: 150px; margin: 2px auto 17px; }
.cat-halo { position: absolute; width: 135px; height: 120px; border-radius: 50%; background: #fff0f6; box-shadow: 0 0 0 13px rgba(255,240,246,.48), 0 12px 28px rgba(218, 147, 178, .1); }
.cat-face { position: relative; width: 107px; height: 88px; margin-top: 16px; border: 3px solid #6e5267; border-radius: 47% 47% 43% 43%; background: #fff; box-shadow: 0 8px 0 rgba(235, 211, 225, .6); }
.cat-ear { position: absolute; top: -18px; width: 35px; height: 39px; border: 3px solid #6e5267; background: #fff; transform: rotate(0deg); }
.ear-left { left: 1px; border-radius: 5px 24px 4px 6px; transform: rotate(-16deg); }
.ear-right { right: 1px; border-radius: 24px 5px 6px 4px; transform: rotate(16deg); }
.cat-eye { position: absolute; top: 38px; width: 7px; height: 10px; border-radius: 50%; background: #523e50; }
.eye-left { left: 27px; }.eye-right { right: 27px; }
.cat-blush { position: absolute; top: 53px; width: 15px; height: 8px; border-radius: 50%; background: #f5a5c4; opacity: .8; }
.blush-left { left: 13px; }.blush-right { right: 13px; }
.cat-nose { position: absolute; top: 52px; left: 50%; width: 7px; height: 5px; border-radius: 50%; background: #ec8db1; transform: translateX(-50%); }
.cat-mouth { position: absolute; top: 56px; left: 50%; width: 11px; height: 7px; border-bottom: 2px solid #6e5267; border-radius: 50%; transform: translateX(-50%); }
.cat-whisker { position: absolute; top: 55px; width: 19px; height: 1px; background: #9a7b91; }
.whisker-left { left: -12px; transform: rotate(9deg); box-shadow: 0 7px #9a7b91; }.whisker-right { right: -12px; transform: rotate(-9deg); box-shadow: 0 7px #9a7b91; }
.hero-heart { position: absolute; color: #ef8bb6; font-size: 1.6rem; animation: heartbeat 1.9s ease-in-out infinite; }
.heart-a { right: 7px; top: 21px; }.heart-b { left: 8px; bottom: 14px; font-size: 1.3rem; animation-delay: -.7s; }
@keyframes heartbeat { 0%,100% { transform: scale(1); } 12% { transform: scale(1.2); } 24% { transform: scale(1); } 36% { transform: scale(1.14); } }
.mini-illustration { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px auto 13px; }
.mini-cat { display: grid; place-items: center; width: 62px; height: 58px; border-radius: 20px; background: #fff1f7; font-size: 2rem; transform: rotate(-7deg); }
.mini-heart { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 15px; background: #f2efff; font-size: 1.5rem; transform: rotate(8deg); }
.button-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.love-options { position: relative; min-height: 64px; align-items: flex-start; }
.no-runaway { position: relative; transition: transform .22s cubic-bezier(.2,.8,.2,1); }
.reaction-line { min-height: 22px; margin: 19px 0 0; color: #b17a9c; font-size: .83rem; font-weight: 800; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; max-width: 465px; margin: 0 auto; }
.option-card { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 55px; padding: 12px 16px; border: 1px solid #f0dfeb; border-radius: 16px; background: #fffafd; color: #70576d; font-weight: 800; text-align: left; transition: .18s ease; }
.option-card span { font-size: 1.17rem; }
.option-card:hover, .option-card.selected { border-color: #eaa4c4; background: #fff1f7; box-shadow: 0 8px 18px rgba(219, 147, 181, .12); transform: translateY(-2px); }
.option-wide { grid-column: 1 / -1; }
.option-list { display: grid; gap: 9px; max-width: 455px; margin: 0 auto; }
.option-list .option-card { min-height: 49px; }
.mission-card { margin: 15px 0; padding: 17px; border: 1px solid #f1e2ed; border-radius: 21px; background: linear-gradient(135deg, rgba(255,249,252,.98), rgba(249,247,255,.96)); text-align: left; }
.mission-head { display: flex; align-items: center; gap: 11px; }
.mission-icon { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: #fff; font-size: 1.25rem; box-shadow: 0 4px 12px rgba(186, 143, 177, .1); }
.mission-head h3 { margin: 0 0 3px; color: #634b61; font-size: .95rem; font-weight: 900; }
.mission-head p { margin: 0; color: #a0889c; font-size: .72rem; line-height: 1.45; }
.mission-status { margin-left: auto; padding: 6px 9px; border-radius: 9px; background: #fff; color: #bf7fa1; font-size: .72rem; font-weight: 900; white-space: nowrap; }
.hug-cat-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin: 14px 0 9px; padding: 8px; border: 1px dashed #e8c7da; border-radius: 14px; background: rgba(255,255,255,.7); color: #a97d9b; font-weight: 900; transition: transform .15s ease; }
.hug-cat-button:hover { transform: scale(1.015); }.hug-cat-button:active { transform: scale(.97); }
.hug-cat-button { font-size: 1.7rem; }.hug-cat-button span { font-size: .75rem; }
.heart-meter { height: 7px; overflow: hidden; border-radius: 99px; background: #f0e3ee; }
.heart-meter div { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f28bb6, #b49aef); transition: width .3s ease; }
.mission-feedback { margin: 8px 0 0; color: #a4899d; font-size: .7rem; text-align: center; }
.date-options { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.date-chip { padding: 9px 12px; border: 1px solid #eee0ef; border-radius: 12px; background: #fff; color: #846d84; font-size: .75rem; font-weight: 800; transition: .18s ease; }
.date-chip:hover, .date-chip.selected { border-color: #c8b8f0; background: #f4f0ff; color: #7561af; transform: translateY(-2px); }
.text-answer { display: block; width: 100%; resize: vertical; margin-top: 13px; padding: 13px 14px; border: 1px solid #eaddea; border-radius: 14px; outline: none; background: rgba(255,255,255,.85); color: var(--ink); font-size: .85rem; line-height: 1.55; }
.text-answer::placeholder { color: #b5a1b2; }.text-answer:focus { border-color: #d3b9e9; box-shadow: 0 0 0 3px rgba(186, 164, 244, .13); }
.field-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; color: #af9aaa; font-size: .69rem; }
#finish-btn:disabled { cursor: not-allowed; opacity: .45; filter: grayscale(.2); transform: none; box-shadow: none; }
.final-art { position: relative; display: flex; align-items: center; justify-content: center; height: 133px; margin: -2px auto 4px; }
.final-cat, .final-cat-two { position: relative; z-index: 1; font-size: 4.6rem; filter: drop-shadow(0 9px 6px rgba(190, 128, 165, .14)); }
.final-cat { transform: rotate(-9deg) translateX(8px); }.final-cat-two { transform: rotate(8deg) translateX(-8px); }
.final-big-heart { position: absolute; top: 2px; left: 50%; font-size: 2.3rem; transform: translateX(-50%); animation: heartbeat 1.8s infinite; }
.final-sparkle { position: absolute; top: 23px; right: 24%; color: #b59be9; font-size: 1.8rem; }
.final-message { margin-bottom: 19px; }
.love-note { max-width: 455px; margin: 0 auto 23px; padding: 20px 22px; border: 1px solid #f3dce9; border-radius: 20px; background: linear-gradient(135deg, #fff4f8, #f7f3ff); text-align: left; }
.note-label { color: #c184a4; font-size: .65rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.love-note p { margin: 10px 0 14px; color: #7e647b; font-family: 'Nunito', sans-serif; font-size: 1rem; font-weight: 800; line-height: 1.55; }
.note-sign { display: block; color: #a985a2; font-size: .76rem; font-weight: 800; text-align: right; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 6px 0; color: #b29bae; font-size: .68rem; font-weight: 700; }
.connection-status { text-align: right; }
.connection-status.demo { color: #a184a4; }.connection-status.live { color: #75a18b; }
.toast { position: fixed; z-index: 20; right: 20px; bottom: 20px; max-width: min(340px, calc(100% - 40px)); padding: 12px 16px; border: 1px solid #f0dce9; border-radius: 14px; background: rgba(255,255,255,.96); color: #795d75; box-shadow: 0 12px 35px rgba(121, 82, 115, .14); font-size: .8rem; font-weight: 800; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .25s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.confetti-layer { position: fixed; z-index: 15; inset: 0; overflow: hidden; pointer-events: none; }
.confetti-piece { position: absolute; top: -22px; width: 10px; height: 14px; border-radius: 3px; animation: confetti-fall 2.8s linear forwards; }
@keyframes confetti-fall { to { transform: translateY(110vh) rotate(720deg); opacity: .3; } }

@media (max-width: 600px) {
  .page-shell { width: min(100% - 22px, 540px); padding-top: 15px; }
  .topbar { margin-bottom: 17px; }.topbar-note { font-size: .66rem; }
  .game-card { min-height: 590px; padding: 48px 18px 61px; border-radius: 27px; }
  .sticker-top { top: 12px; right: 13px; }.sticker-face { width: 46px; height: 31px; font-size: .67rem; }
  .progress-wrap { margin-bottom: 11px; }
  .lead { font-size: .9rem; line-height: 1.65; }
  .notice-pill { font-size: .7rem; }
  .option-grid { gap: 8px; }.option-card { min-height: 51px; padding: 10px 12px; font-size: .82rem; }
  .mission-card { padding: 13px; }.mission-head h3 { font-size: .87rem; }
  .site-footer { flex-direction: column; text-align: center; }.connection-status { text-align: center; }
  .decor-one { left: 2%; }.decor-two { right: 2%; }.decor-three { left: 3%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
