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

:root {
  --pink:        #52d6ff;
  --pink-soft:   #c8f5ff;
  --pink-deep:   #0786c8;
  --lilac:       #75b9ff;
  --lilac-soft:  #ddecff;
  --blue-soft:   #aeedff;
  --sky-bg:      #8bdcf7;
  --ticket-blue: #018cf1;
  --cream:       #f8fdff;
  --ink:         #07577f;
  --ink-soft:    #4e8aa8;
  --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: var(--sky-bg);
}

@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(192, 244, 255, 0.5), transparent 60%);
  top: -25vmax;
  right: -20vmax;
  animation: glow-breathe 12s ease-in-out infinite alternate;
}

.bg-glow--lilac {
  background: radial-gradient(circle, rgba(35, 112, 224, 0.28), 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;
}

/* icy blue decorations tuned for the bright cyan background */
.floaty--heart .floaty-inner {
  color: #e8fbff;
  text-shadow: 0 0 12px rgba(220, 250, 255, 0.9), 0 0 26px rgba(48, 178, 255, 0.55);
}

.floaty--star .floaty-inner {
  color: #8be8ff;
  text-shadow: 0 0 12px rgba(139, 232, 255, 0.85), 0 0 24px rgba(0, 105, 214, 0.42);
}

.floaty--spark .floaty-inner {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(220, 250, 255, 0.95), 0 0 20px rgba(55, 190, 255, 0.6);
}

.floaty--kao .floaty-inner {
  color: #0878b8;
  text-shadow:
    0 0 10px rgba(225, 250, 255, 0.82),
    0 0 18px rgba(0, 105, 190, 0.34);
  white-space: nowrap;
}

/* big dreamy blurred hearts far in the back — depth layer */
.floaty--deep .floaty-inner {
  color: rgba(184, 239, 255, 0.56);
  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(196, 244, 255, 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(0, 96, 170, 0.34),
    0 4px 18px rgba(117, 210, 255, 0.3),
    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;
}

/* cool cyan-to-azure 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(74, 211, 255, 0.45);
  animation: ring-glow 4.5s ease-in-out infinite;
}

@keyframes ring-glow {
  0%, 100% { box-shadow: 0 0 18px 2px rgba(93, 221, 255, 0.4); }
  50%      { box-shadow: 0 0 30px 8px rgba(69, 146, 255, 0.5); }
}

.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(206, 246, 255, 0.85);
  animation: orbit-float 5s ease-in-out infinite alternate;
  pointer-events: none;
}

.orbit--1 { top: -4px;   left: -18px;  color: #75dfff; animation-delay: 0s;   }
.orbit--2 { top: 12px;   right: -22px; color: #e8fbff; animation-delay: 1.2s; }
.orbit--3 { bottom: 6px; left: -24px;  color: #62adff; animation-delay: 2.1s; }
.orbit--4 { bottom: -2px; right: -14px; color: #ffffff; 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(24, 145, 208, 0.3);
}

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

.title {
  margin-top: 26px;
  font-size: clamp(26px, 7.5vw, 32px);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #075f94;
  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;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
  animation: fade-up 0.8s ease 1.35s both;
}

.social-link {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow:
    0 9px 22px rgba(7, 118, 181, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #fff;
  text-decoration: none;
  touch-action: manipulation;
  transition: transform 0.24s cubic-bezier(0.34, 1.6, 0.5, 1), box-shadow 0.24s ease;
}

.social-link svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.social-link--instagram {
  background: linear-gradient(145deg, #8ee6fa, #3ca7e8);
}

.social-link--tiktok {
  background: linear-gradient(145deg, #70d4f5, #248dcc);
}

.social-link--telegram {
  background: linear-gradient(145deg, #a1ebfb, #4bb6e8);
}

.social-link:hover,
.social-link:focus-visible {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 28px rgba(7, 118, 181, 0.34);
}

.social-link:focus-visible {
  outline: 3px solid #0786c8;
  outline-offset: 3px;
}

.social-link:active {
  transform: scale(0.94);
}

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

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

.cta-list {
  display: grid;
  gap: 12px;
  max-width: 300px;
  margin: 20px auto 0;
}

.cta {
  position: relative;
  display: block;
  width: 100%;
  min-height: 60px;
  padding: 18px 20px;
  border-radius: 999px;
  text-decoration: none;
  overflow: hidden;
  background: var(--ticket-blue);
  box-shadow:
    0 10px 28px -6px rgba(1, 140, 241, 0.62),
    0 2px 8px rgba(0, 94, 190, 0.38),
    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;
  transition: transform 0.25s cubic-bezier(0.34, 1.6, 0.5, 1), box-shadow 0.25s ease;
  will-change: transform;
}

.cta--secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  height: 60px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: linear-gradient(120deg, #a9e4f8, #79c7ee);
  box-shadow:
    0 6px 16px -9px rgba(7, 108, 165, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  animation: cta-pop 0.8s cubic-bezier(0.34, 1.7, 0.5, 1) 0.95s both;
}

.cta-x-icon {
  position: relative;
  z-index: 2;
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  fill: #07577f;
}

.cta--secondary .cta-shine {
  display: none;
}

.cta--exclusive {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 60px;
  padding: 0 14px;
  overflow: visible;
}

.cta-exclusive-wrap {
  height: 60px;
}

.cta--exclusive .cta-shine {
  display: block;
  overflow: hidden;
  border-radius: inherit;
  background: none;
  transform: none;
  animation: none;
}

.cta--exclusive .cta-shine::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.62) 50%,
    transparent 70%
  );
  transform: translateX(-110%);
  animation: shine 4.5s ease-in-out 2.2s infinite;
}

.cta-brand-icon {
  position: relative;
  z-index: 2;
  display: block;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  object-fit: contain;
  animation: none;
  transform: none;
}

.cta-exclusive-badge {
  position: absolute;
  top: -11px;
  right: 14px;
  z-index: 4;
  padding: 6px 13px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(120deg, #ff6fac, #c681f5);
  box-shadow:
    0 6px 14px rgba(226, 91, 165, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
  line-height: 1;
  pointer-events: none;
  animation: exclusive-float 2.6s ease-in-out infinite;
}

@keyframes exclusive-float {
  0%, 100% { transform: translateY(0) rotate(1deg); }
  50% { transform: translateY(-4px) rotate(-1deg); }
}

@keyframes cta-shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

@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(1, 140, 241, 0.62), 0 2px 8px rgba(0, 94, 190, 0.38), inset 0 1px 0 rgba(255,255,255,0.55); }
  50%      { box-shadow: 0 12px 36px -4px rgba(1, 140, 241, 0.82), 0 4px 14px rgba(0, 94, 190, 0.52), 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(1, 140, 241, 0.88),
    0 6px 18px rgba(0, 94, 190, 0.56),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.cta--secondary:hover,
.cta--secondary:focus-visible {
  transform: translateY(-1px);
  box-shadow:
    0 8px 18px -9px rgba(7, 108, 165, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.cta-exclusive-wrap:hover,
.cta-exclusive-wrap:focus-within {
  animation: cta-shake 0.6s ease-in-out 1;
}

.cta:focus-visible {
  outline: 3px solid #7c5a77;
  outline-offset: 4px;
}

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

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

.cta--exclusive .cta-text {
  font-size: clamp(14px, 4vw, 17px);
  letter-spacing: 1px;
  white-space: nowrap;
}

.cta--secondary .cta-text {
  color: #07577f;
  font-weight: 600;
  text-shadow: none;
}

/* 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; }
}

@media (max-height: 760px) {
  body { overflow-y: auto; }
  .scene { padding-block: 16px; }
}

/* 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; }
}
