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

html,
body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1b2a4a 0, #050814 45%, #020308 100%);
  color: #f9fbff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}

.sky-lights {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 26px;
  pointer-events: none;
  z-index: 0;
}

.light-bulb {
  width: 18px;
  height: 26px;
  border-radius: 999px;
  background: #ff6b6b;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.55);
  position: relative;
  animation: twinkle 2.4s ease-in-out infinite;
}

.light-bulb::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 4px;
  right: 4px;
  height: 6px;
  border-radius: 4px 4px 0 0;
  background: #333b4d;
}

.light-bulb.red {
  background: #ff6b6b;
  box-shadow: 0 0 18px rgba(255, 107, 107, 0.9);
}
.light-bulb.yellow {
  background: #ffe66d;
  box-shadow: 0 0 18px rgba(255, 230, 109, 0.9);
  animation-delay: 0.3s;
}
.light-bulb.green {
  background: #4ecb71;
  box-shadow: 0 0 18px rgba(78, 203, 113, 0.9);
  animation-delay: 0.6s;
}
.light-bulb.blue {
  background: #5bc0ff;
  box-shadow: 0 0 18px rgba(91, 192, 255, 0.9);
  animation-delay: 0.9s;
}
.light-bulb.pink {
  background: #ff9ff3;
  box-shadow: 0 0 18px rgba(255, 159, 243, 0.9);
  animation-delay: 1.2s;
}
.light-bulb.teal {
  background: #1dd1a1;
  box-shadow: 0 0 18px rgba(29, 209, 161, 0.9);
  animation-delay: 1.5s;
}
.light-bulb.purple {
  background: #a66cff;
  box-shadow: 0 0 18px rgba(166, 108, 255, 0.9);
  animation-delay: 1.8s;
}

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

.snowflake {
  position: absolute;
  top: -10px;
  color: #ffffff;
  font-size: 0.9rem;
  opacity: 0.75;
  animation-name: snowfall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
}

.card {
  position: relative;
  z-index: 2;
  max-width: 960px;
  width: 100%;
}

.card-inner {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 55%),
    rgba(7, 12, 26, 0.92);
  border-radius: 24px;
  border: 1px solid rgba(220, 240, 255, 0.18);
  box-shadow:
    0 24px 80px rgba(3, 10, 30, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 28px 32px 26px;
  backdrop-filter: blur(18px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
}

.card-header {
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.45);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #a5f3fc;
}

.badge::before {
  content: "✦";
  font-size: 0.8rem;
}

h1 {
  margin-top: 10px;
  font-size: clamp(1.9rem, 2.6vw, 2.4rem);
  letter-spacing: 0.04em;
  background: linear-gradient(120deg, #fff7d6, #ffe6f7, #e0f7ff);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow:
    0 0 24px rgba(255, 255, 255, 0.18),
    0 0 40px rgba(14, 165, 233, 0.3);
}

.subtitle {
  margin-top: 6px;
  color: #cbd5f5;
  font-size: 0.95rem;
}

.sparkle {
  color: #facc15;
  animation: sparkle 1.6s ease-in-out infinite;
  display: inline-block;
  margin: 0 4px;
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.avatar-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-glow {
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 246, 255, 0.9), transparent 65%);
  opacity: 0.5;
  filter: blur(10px);
}

.avatar-border {
  position: relative;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  padding: 8px;
  background:
    conic-gradient(
      from 180deg,
      #fee2e2,
      #fed7aa,
      #fef9c3,
      #bbf7d0,
      #bfdbfe,
      #e9d5ff,
      #fee2e2
    );
  box-shadow:
    0 0 30px rgba(248, 250, 252, 0.75),
    0 0 70px rgba(56, 189, 248, 0.6);
  animation: slow-rotate 16s linear infinite;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(15, 23, 42, 0.95);
  box-shadow:
    0 16px 40px rgba(15, 23, 42, 0.9),
    inset 0 0 16px rgba(15, 23, 42, 0.85);
}

.message {
  font-size: 0.98rem;
  color: #e5ecff;
  line-height: 1.7;
}

.message p + p {
  margin-top: 10px;
}

.hint-code {
  display: inline-block;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.78rem;
  padding: 3px 7px;
  border-radius: 9px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 239, 0.45);
}

.heart {
  color: #fb7185;
  display: inline-block;
  animation: heart-beat 1.8s ease-in-out infinite;
}

@keyframes snowfall {
  0% {
    transform: translate3d(0, -10px, 0);
    opacity: 0;
  }
  10% {
    opacity: 0.85;
  }
  100% {
    transform: translate3d(0, 110vh, 0);
    opacity: 0;
  }
}

@keyframes sparkle {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.4;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.8));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 1));
  }
}

@keyframes slow-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes heart-beat {
  0%,
  100% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.18);
  }
  50% {
    transform: scale(0.95);
  }
  70% {
    transform: scale(1.13);
  }
}

@media (max-width: 768px) {
  body {
    padding: 14px;
  }

  .card-inner {
    padding: 20px 18px 18px;
  }

  .content {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }

  .avatar-frame {
    order: -1;
  }

  .message {
    text-align: left;
  }
}


