/* ================================================================
   ♡ makura's secret corner — pastel kawaii landing ♡
   mobile-first · vanilla css · transform/opacity-only animations
   ================================================================ */

:root {
  --pink:        #ffb6d5;
  --pink-soft:   #ffd6e8;
  --pink-deep:   #ff8fc0;
  --lilac:       #d9c8ff;
  --lilac-soft:  #ece4ff;
  --blue-soft:   #cfe6ff;
  --cream:       #fff6ee;
  --ink:         #6b5a70;
  --ink-soft:    #a08fa8;
  --card-glass:  rgba(255, 255, 255, 0.55);
  --card-border: rgba(255, 255, 255, 0.75);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: "Quicksand", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  animation: page-in 1.1s ease both;
}

@keyframes page-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ================================================================
   background: dreamy pastel gradient that drifts very slowly
   ================================================================ */

.bg-gradient {
  position: fixed;
  inset: -20%;
  z-index: -3;
  background: linear-gradient(
    130deg,
    #ffeef6 0%,
    #ffe0ef 20%,
    #f0e6ff 45%,
    #e2ecff 70%,
    #fff0e9 100%
  );
  background-size: 220% 220%;
  animation: gradient-drift 26s ease-in-out infinite alternate;
}

@keyframes gradient-drift {
  from { background-position: 0% 0%; }
  to   { background-position: 100% 100%; }
}

/* two huge soft glow blobs breathing behind the card */
.bg-glow {
  position: fixed;
  z-index: -2;
  width: 70vmax;
  height: 70vmax;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
}

.bg-glow--pink {
  background: radial-gradient(circle, rgba(255,182,213,0.55), transparent 60%);
  top: -25vmax;
  right: -20vmax;
  animation: glow-breathe 12s ease-in-out infinite alternate;
}

.bg-glow--lilac {
  background: radial-gradient(circle, rgba(217,200,255,0.55), transparent 60%);
  bottom: -25vmax;
  left: -20vmax;
  animation: glow-breathe 14s ease-in-out infinite alternate-reverse;
}

@keyframes glow-breathe {
  from { transform: scale(1);    opacity: 0.40; }
  to   { transform: scale(1.15); opacity: 0.60; }
}

/* ================================================================
   floaties: kaomoji · hearts · stars · sparkles (built by JS)
   two nested layers: outer rises, inner sways — transform-only
   ================================================================ */

.floaties {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.floaty {
  position: absolute;
  bottom: -12vh;
  will-change: transform;
  animation: floaty-rise linear infinite;
}

.floaty-inner {
  display: inline-block;
  font-weight: 700;
  animation: floaty-sway ease-in-out infinite alternate;
}

/* pastel but clearly visible, each with its own soft glow */
.floaty--heart .floaty-inner {
  color: #ff9dc9;
  text-shadow: 0 0 12px rgba(255, 157, 201, 0.75), 0 0 26px rgba(255, 157, 201, 0.4);
}

.floaty--star .floaty-inner {
  color: #c3a5ff;
  text-shadow: 0 0 12px rgba(195, 165, 255, 0.75), 0 0 26px rgba(195, 165, 255, 0.4);
}

.floaty--spark .floaty-inner {
  color: #a5cbff;
  text-shadow: 0 0 10px rgba(165, 203, 255, 0.8);
}

.floaty--kao .floaty-inner {
  color: #b394c9;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.9),
    0 0 18px rgba(214, 178, 255, 0.6);
  white-space: nowrap;
}

/* big dreamy blurred hearts far in the back — depth layer */
.floaty--deep .floaty-inner {
  color: rgba(255, 170, 208, 0.5);
  filter: blur(5px);
  text-shadow: none;
}

@keyframes floaty-rise {
  from { transform: translateY(0); opacity: 0; }
  6%   { opacity: var(--fo, 0.7); }
  86%  { opacity: var(--fo, 0.7); }
  to   { transform: translateY(-124vh); opacity: 0; }
}

@keyframes floaty-sway {
  from { transform: translateX(calc(var(--sway, 30px) * -1)) rotate(-9deg) scale(0.96); }
  to   { transform: translateX(var(--sway, 30px))            rotate(9deg)  scale(1.06); }
}

/* tiny twinkling star dots pinned in place */
.twinkle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 3px rgba(255, 195, 226, 0.95);
  animation: twinkle ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.2; transform: scale(0.7); }
  to   { opacity: 1;   transform: scale(1.25); }
}

/* ================================================================
   layout
   ================================================================ */

.scene {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 20px;
  perspective: 900px;
}

/* ================================================================
   the glass card
   ================================================================ */

.card {
  width: min(400px, 100%);
  padding: 40px 28px 34px;
  text-align: center;
  border-radius: 36px;
  background: var(--card-glass);
  border: 1.5px solid var(--card-border);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow:
    0 24px 60px -18px rgba(214, 148, 190, 0.45),
    0 4px 18px rgba(222, 187, 255, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  animation: card-in 0.9s cubic-bezier(0.34, 1.4, 0.5, 1) 0.15s both;
  will-change: transform;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(36px) scale(0.94); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ================================================================
   avatar + orbiting decor
   ================================================================ */

.avatar-zone {
  position: relative;
  display: inline-block;
  margin-bottom: 6px;
}

/* soft conic pastel ring with a gentle glow pulse */
.avatar-ring {
  padding: 5px;
  border-radius: 50%;
  background: conic-gradient(
    from 20deg,
    var(--pink), var(--lilac), var(--blue-soft),
    var(--cream), var(--pink-soft), var(--pink)
  );
  box-shadow: 0 0 0 0 rgba(255, 165, 204, 0.45);
  animation: ring-glow 4.5s ease-in-out infinite;
}

@keyframes ring-glow {
  0%, 100% { box-shadow: 0 0 18px 2px rgba(255, 165, 204, 0.35); }
  50%      { box-shadow: 0 0 30px 8px rgba(214, 178, 255, 0.55); }
}

.avatar-frame {
  padding: 4px;
  border-radius: 50%;
  background: #fff;
}

.avatar {
  display: block;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  animation: avatar-bob 6s ease-in-out infinite;
}

@keyframes avatar-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* little symbols orbiting the avatar */
.orbit {
  position: absolute;
  font-size: 18px;
  color: var(--pink-deep);
  text-shadow: 0 0 10px rgba(255, 182, 213, 0.8);
  animation: orbit-float 5s ease-in-out infinite alternate;
  pointer-events: none;
}

.orbit--1 { top: -4px;   left: -18px;  color: #c9a8ff; animation-delay: 0s;   }
.orbit--2 { top: 12px;   right: -22px; color: #ff9ecb; animation-delay: 1.2s; }
.orbit--3 { bottom: 6px; left: -24px;  color: #a8c8ff; animation-delay: 2.1s; }
.orbit--4 { bottom: -2px; right: -14px; color: #ffc7a8; animation-delay: 0.6s; font-size: 14px; }

@keyframes orbit-float {
  from { transform: translateY(0)   rotate(-8deg) scale(1); }
  to   { transform: translateY(-8px) rotate(8deg)  scale(1.15); }
}

/* kaomoji badge under the avatar */
.avatar-badge {
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--pink-soft);
  border-radius: 999px;
  padding: 3px 12px;
  box-shadow: 0 4px 12px rgba(240, 170, 205, 0.35);
}

/* ================================================================
   text
   ================================================================ */

.title {
  margin-top: 26px;
  font-size: clamp(26px, 7.5vw, 32px);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #7c5a77;
  animation: fade-up 0.8s ease 0.45s both;
}

.title-deco {
  font-size: 0.55em;
  color: var(--pink-deep);
  vertical-align: middle;
  opacity: 0.85;
}

.subtitle {
  margin-top: 10px;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-soft);
  animation: fade-up 0.8s ease 0.6s both;
}

.subtitle-soft {
  font-size: 14px;
  opacity: 0.85;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   ♡ THE button ♡
   ================================================================ */

.cta {
  position: relative;
  display: block;
  margin: 26px auto 0;
  max-width: 300px;
  padding: 18px 20px;
  border-radius: 999px;
  text-decoration: none;
  overflow: hidden;
  background: linear-gradient(120deg, #ff9ecb, #d9a8ff 55%, #ffb6d5);
  background-size: 200% 200%;
  box-shadow:
    0 10px 28px -6px rgba(255, 143, 192, 0.65),
    0 2px 8px rgba(217, 168, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  animation:
    cta-pop 0.8s cubic-bezier(0.34, 1.7, 0.5, 1) 0.8s both,
    cta-pulse 3.2s ease-in-out 2s infinite,
    cta-gradient 8s ease-in-out infinite alternate;
  transition: transform 0.25s cubic-bezier(0.34, 1.6, 0.5, 1), box-shadow 0.25s ease;
  will-change: transform;
}

@keyframes cta-pop {
  from { opacity: 0; transform: scale(0.7); }
  60%  { opacity: 1; transform: scale(1.06); }
  to   { opacity: 1; transform: scale(1); }
}

/* a soft heartbeat so the eye keeps coming back */
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 10px 28px -6px rgba(255, 143, 192, 0.65), 0 2px 8px rgba(217, 168, 255, 0.4), inset 0 1px 0 rgba(255,255,255,0.55); }
  50%      { box-shadow: 0 12px 36px -4px rgba(255, 143, 192, 0.85), 0 4px 14px rgba(217, 168, 255, 0.55), inset 0 1px 0 rgba(255,255,255,0.55); }
}

@keyframes cta-gradient {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-3px) scale(1.045);
  box-shadow:
    0 16px 40px -6px rgba(255, 143, 192, 0.9),
    0 6px 18px rgba(217, 168, 255, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.cta:active {
  transform: translateY(0) scale(0.97);
}

.cta-text {
  position: relative;
  z-index: 2;
  display: block;
  font-family: inherit;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
  text-shadow: 0 1px 6px rgba(200, 90, 150, 0.45);
}

/* shimmer sweep */
.cta-shine {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 70%
  );
  transform: translateX(-110%);
  animation: shine 4.5s ease-in-out 2.2s infinite;
  pointer-events: none;
}

@keyframes shine {
  0%       { transform: translateX(-110%); }
  38%, 100% { transform: translateX(110%); }
}

/* tiny whisper under the button */
.cta-whisper {
  margin-top: 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  opacity: 0;
  animation: fade-up 0.9s ease 1.5s both;
}

/* ================================================================
   desktop niceties
   ================================================================ */

@media (min-width: 640px) {
  .card { padding: 48px 40px 40px; }
  .avatar { width: 150px; height: 150px; }
}

/* respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .floaties { display: none; }
}
