:root {
  --rose-50: #fff2f8;
  --rose-100: #ffd8e8;
  --rose-300: #ff8fbb;
  --rose-400: #ff5b9a;
  --rose-500: #ed2c78;
  --wine-700: #74133f;
  --wine-900: #230512;
}

* { box-sizing: border-box; }

html,
body {
  min-height: 100%;
  margin: 0;
}

button { font: inherit; }

body {
  background: #17040d;
  color: var(--rose-50);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "PingFang SC", "Microsoft YaHei", sans-serif;
}

.entry-page {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 52% 23%, rgb(207 41 106 / 31%), transparent 24%),
    linear-gradient(155deg, #2b0818 0%, #13030a 52%, #080205 100%);
}

.entry-page::before {
  position: absolute;
  inset: -12%;
  z-index: -5;
  background:
    radial-gradient(circle at 50% 18%, rgb(255 124 173 / 22%), transparent 8%),
    repeating-radial-gradient(ellipse at 50% 31%, transparent 0 58px, rgb(255 129 179 / 7%) 60px 61px);
  content: '';
  filter: blur(1px);
  transform: perspective(500px) rotateX(4deg);
}

.entry-background {
  position: absolute;
  inset: 0;
  z-index: -6;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.93;
  filter: saturate(1.08) contrast(1.02);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 43%, rgb(0 0 0 / 78%) 58%, transparent 82%);
  mask-image: linear-gradient(180deg, #000 0%, #000 43%, rgb(0 0 0 / 78%) 58%, transparent 82%);
}

.entry-page::after {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    radial-gradient(circle at 12% 18%, #ffbed7 0 1px, transparent 1.5px),
    radial-gradient(circle at 85% 13%, #ff8fb9 0 1px, transparent 1.8px),
    radial-gradient(circle at 75% 39%, #ffd2e2 0 1px, transparent 1.6px),
    radial-gradient(circle at 20% 47%, #f65b98 0 1px, transparent 1.7px),
    radial-gradient(circle at 64% 6%, #fff1f7 0 1px, transparent 1.5px);
  background-size: 210px 220px, 270px 250px, 310px 290px, 360px 340px, 420px 380px;
  content: '';
  opacity: 0.62;
}

.entry-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgb(10 1 6 / 5%) 0%, rgb(13 2 8 / 25%) 41%, rgb(13 2 8 / 91%) 72%, #100208 100%);
}

.aurora {
  position: absolute;
  z-index: -4;
  border-radius: 50%;
  filter: blur(42px);
  opacity: 0.54;
}

.aurora-one {
  top: -18%;
  left: 8%;
  width: 48vw;
  height: 62vh;
  background: rgb(142 17 73 / 58%);
  transform: rotate(24deg);
}

.aurora-two {
  top: 3%;
  right: -18%;
  width: 46vw;
  height: 54vh;
  background: rgb(255 59 133 / 30%);
}

.glow-orbit {
  position: absolute;
  z-index: -2;
  border: 1px solid rgb(255 165 199 / 16%);
  border-radius: 50%;
  box-shadow: 0 0 70px rgb(255 47 126 / 9%);
}

.orbit-one {
  top: -22vh;
  width: min(84vw, 660px);
  height: min(84vw, 660px);
}

.orbit-two {
  top: -7vh;
  width: min(58vw, 460px);
  height: min(58vw, 460px);
}

.entry-content {
  position: relative;
  z-index: 2;
  width: min(100%, 460px);
  padding: 0 28px calc(34px + env(safe-area-inset-bottom));
  text-align: center;
}

.eyebrow {
  margin-bottom: 12px;
  color: rgb(255 187 213 / 74%);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.42em;
}

.heart-mark {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 6px;
  place-items: center;
  border: 1px solid rgb(255 139 183 / 28%);
  border-radius: 50%;
  background: rgb(107 10 50 / 34%);
  box-shadow: 0 0 32px rgb(255 57 134 / 34%), inset 0 0 18px rgb(255 103 162 / 14%);
  animation: heartBeat 1.9s ease-in-out infinite;
}

.heart-mark span {
  color: #ff72aa;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 43px;
  line-height: 1;
  filter: drop-shadow(0 0 11px rgb(255 61 139 / 90%));
  transform: translateY(-1px);
}

h1 {
  margin: 0;
  color: #ffc0d8;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 12vw, 58px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
  text-shadow: 0 0 10px #e71968, 0 0 28px rgb(255 43 126 / 65%);
}

.message {
  min-height: 24px;
  margin: 13px 0 21px;
  color: #ffc6dc;
  font-size: 14px;
  letter-spacing: 0.14em;
  line-height: 24px;
}

.progress-shell {
  padding: 11px 12px 9px;
  border: 1px solid rgb(255 146 189 / 22%);
  border-radius: 17px;
  background: rgb(36 4 19 / 50%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%), 0 11px 35px rgb(0 0 0 / 18%);
  backdrop-filter: blur(13px);
}

.progress-track {
  position: relative;
  height: 13px;
  overflow: hidden;
  border: 1px solid rgb(255 151 194 / 68%);
  border-radius: 999px;
  background: rgb(27 2 14 / 72%);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 4%), 0 0 15px rgb(255 34 120 / 22%);
}

.progress-fill {
  position: absolute;
  inset: 2px auto 2px 2px;
  min-width: 9%;
  border-radius: 999px;
  background: linear-gradient(90deg, #cf0f58, #ff5f9e 65%, #ffd4e4);
  box-shadow: 0 0 14px rgb(255 75 148 / 85%);
  transition: width 0.46s cubic-bezier(0.34, 1.15, 0.64, 1);
}

.progress-fill span {
  position: absolute;
  top: -6px;
  right: 3px;
  color: #fff5f9;
  font-size: 15px;
  text-shadow: 0 0 7px #fff;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  color: rgb(255 169 202 / 68%);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.progress-meta strong {
  color: #ffadd0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 13px;
  opacity: 0.58;
  transform: translateY(5px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.actions.is-ready {
  opacity: 1;
  transform: translateY(0);
}

.actions button {
  height: 46px;
  border-radius: 13px;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.actions button:active:not(:disabled) { transform: scale(0.98); }
.actions button:disabled { cursor: wait; }

.primary-button {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid rgb(255 190 216 / 72%);
  background: linear-gradient(180deg, #e5377e 0%, #a71250 100%);
  color: #fff7fa;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 38%), 0 9px 24px rgb(93 4 42 / 42%);
}

.primary-button span { font-size: 17px; }

.tip {
  margin: 10px 0 0;
  color: rgb(238 142 181 / 64%);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 18px;
}

.spark {
  position: absolute;
  z-index: 1;
  color: #ff85b5;
  text-shadow: 0 0 10px #ff397f;
  animation: float 3.4s ease-in-out infinite;
}

.spark-one { top: 15%; right: 13%; font-size: 22px; }
.spark-two { top: 34%; left: 13%; font-size: 11px; animation-delay: -0.7s; }
.spark-three { right: 10%; bottom: 27%; font-size: 15px; animation-delay: -1.8s; }
.spark-four { bottom: 39%; left: 9%; font-size: 13px; animation-delay: -2.5s; }

@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes float {
  0%, 100% { opacity: 0.52; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-9px); }
}

@media (max-height: 660px) {
  .entry-content { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .heart-mark { width: 52px; height: 52px; margin-bottom: 2px; }
  .heart-mark span { font-size: 36px; }
  h1 { font-size: 40px; }
  .message { margin: 8px 0 12px; }
  .tip { display: none; }
}

@media (min-width: 720px) {
  .entry-background {
    left: 50%;
    width: min(58vw, 720px);
    transform: translateX(-50%);
  }
  .entry-content { padding-bottom: clamp(46px, 7vh, 74px); }
}

@media (prefers-reduced-motion: reduce) {
  .heart-mark, .spark { animation: none; }
  .progress-fill, .actions { transition: none; }
}
