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

:root {
  --bg: #090911;
  --text: #f7f3f0;
  --muted: rgba(247, 243, 240, .68);
  --soft: rgba(255, 255, 255, .48);
  --border: rgba(255, 255, 255, .16);
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  font-family: Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.page {
  position: relative;
  min-height: 100svh;
  padding: 24px;
  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      rgba(8, 8, 18, .38),
      rgba(8, 8, 18, .82)
    ),
    url("assets/cover.jpg") center / cover fixed no-repeat,
    #12121d;
}

.glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: .32;
  pointer-events: none;
  z-index: 0;
}

.glow-one {
  background: #b58cff;
  top: -100px;
  left: -80px;
}

.glow-two {
  background: #ff8fb3;
  right: -100px;
  bottom: -100px;
}

.glass {
  position: relative;
  z-index: 1;

  width: min(760px, 100%);
  margin: 0 auto 24px;

  padding: clamp(32px, 7vw, 72px) clamp(22px, 6vw, 60px);

  text-align: center;

  background: rgba(255, 255, 255, .075);
  border: 1px solid var(--border);
  border-radius: 32px;

  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  box-shadow:
    0 24px 80px rgba(0, 0, 0, .38),
    inset 0 1px 0 rgba(255, 255, 255, .1);

  animation: appear 1.2s ease both;
}

.hero {
  margin-top: 4vh;
}

.eyebrow {
  color: rgba(255, 255, 255, .68);
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

h1,
h2,
h3 {
  font-family: "DM Serif Display", serif;
  font-weight: 400;
}

h1 {
  font-size: clamp(2.7rem, 10vw, 6.5rem);
  line-height: .98;
  letter-spacing: -.03em;
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
}

.subtitle {
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(.9rem, 2.5vw, 1.05rem);
}

.countdown {
  margin: 38px auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 2vw, 16px);
}

.time-box {
  min-width: clamp(55px, 15vw, 100px);
}

.time-box span {
  display: block;
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -.05em;
}

.time-box small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.separator {
  color: rgba(255, 255, 255, .3);
  font-size: clamp(1.4rem, 5vw, 2.5rem);
  margin-top: -18px;
}

.date-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: var(--muted);
  font-size: .8rem;
}

.hint {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 8px 0 30px;
  color: rgba(255, 255, 255, .48);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  animation: float 2.5s ease-in-out infinite;
}

/* =========================================================
   SPOTIFY
   ========================================================= */

.music-section {
  padding-top: 38px;
  padding-bottom: 38px;
}

.music-section h2 {
  margin-bottom: 24px;
}

.spotify-player {
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
}

.spotify-player iframe {
  display: block;
  width: 100%;
  height: 352px;
  min-height: 352px;
  border: 0;
  border-radius: 16px;
  background: transparent;
}

/* =========================================================
   WISHES
   ========================================================= */

.wishes-section {
  padding-top: 48px;
  padding-bottom: 44px;
}

.wish-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 17px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;

  background: rgba(255, 255, 255, .065);

  font-size: 22px;

  box-shadow:
    0 12px 30px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

.wish-eyebrow {
  margin-bottom: 17px;
}

.wish-intro {
  max-width: 540px;
  margin: 17px auto 30px;

  color: var(--muted);

  font-size: .92rem;
  line-height: 1.7;
}

/* Form is intentionally scoped by ID so it cannot be
   overridden by generic form/input styles elsewhere. */

#wish-form {
  width: min(560px, 100%);
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  gap: 12px;

  text-align: left;
}

.wish-field {
  width: 100%;
}

#wish-form input,
#wish-form textarea {
  display: block;

  width: 100%;

  appearance: none;
  -webkit-appearance: none;

  outline: none;

  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;

  background: rgba(255, 255, 255, .055);

  color: rgba(255, 255, 255, .94);

  font-family: Inter, sans-serif;
  font-size: 14px;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .045);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transition:
    background .25s ease,
    border-color .25s ease,
    box-shadow .25s ease,
    transform .25s ease;
}

#wish-form input {
  height: 54px;
  padding: 0 18px;
}

#wish-form textarea {
  min-height: 145px;
  padding: 16px 18px;

  resize: vertical;
  line-height: 1.6;
}

#wish-form input::placeholder,
#wish-form textarea::placeholder {
  color: rgba(255, 255, 255, .36);
}

#wish-form input:focus,
#wish-form textarea:focus {
  border-color: rgba(255, 255, 255, .30);

  background: rgba(255, 255, 255, .075);

  box-shadow:
    0 0 0 3px rgba(255, 255, 255, .035),
    inset 0 1px 0 rgba(255, 255, 255, .07);
}

#wish-form textarea:focus {
  transform: translateY(-1px);
}

.wish-footer {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 14px;
  margin-top: 2px;
}

#wish-count {
  color: rgba(255, 255, 255, .34);
  font-size: 11px;
  white-space: nowrap;
}

#wish-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  min-height: 44px;
  padding: 0 20px;

  appearance: none;
  -webkit-appearance: none;

  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.13),
      rgba(255,255,255,.06)
    );

  color: rgba(255, 255, 255, .92);

  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 500;

  cursor: pointer;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 8px 24px rgba(0, 0, 0, .12);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  transition:
    transform .2s ease,
    background .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

#wish-submit:hover {
  transform: translateY(-2px);

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.18),
      rgba(255,255,255,.09)
    );

  border-color: rgba(255, 255, 255, .27);

  box-shadow:
    0 12px 30px rgba(0, 0, 0, .20);
}

#wish-submit:active {
  transform: translateY(0);
}

#wish-submit:disabled {
  opacity: .5;
  cursor: wait;
  transform: none;
}

#wish-result {
  min-height: 24px;
  margin-top: 17px;

  text-align: center;

  color: rgba(255, 255, 255, .68);

  font-size: 12px;
  line-height: 1.5;
}

#wish-result.success {
  color: rgba(255, 225, 238, .94);
}

#wish-result.error {
  color: rgba(255, 185, 185, .94);
}

.wish-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;

  gap: 6px;

  margin-top: 8px;
  padding: 9px 16px;

  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 999px;

  background: rgba(255, 255, 255, .045);

  color: rgba(255, 255, 255, .48);

  font-size: 12px;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wish-total strong {
  color: rgba(255, 255, 255, .9);
  font-weight: 600;
}

/* =========================================================
   BIRTHDAY REVEAL
   ========================================================= */
   
.birthday-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    padding: 18px 26px;

    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;

    background: rgba(255,255,255,.06);

    color: rgba(255,255,255,.9);

    font-family: "DM Serif Display", serif;
    font-size: clamp(1.4rem, 4vw, 2rem);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 12px 35px rgba(0,0,0,.15);

    animation: birthdayGlow 2s ease-in-out infinite;
}

.birthday-message span {
    white-space: nowrap;
}

@keyframes birthdayGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.08),
            0 12px 35px rgba(0,0,0,.15);
    }

    50% {
        transform: scale(1.025);
        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.08),
            0 15px 45px rgba(255,150,190,.18);
    }
}



.birthday-wishes {
  margin-top: 38px;
  padding-top: 30px;

  border-top:
    1px solid rgba(255, 255, 255, .09);
}

.hidden {
  display: none !important;
}

.reveal-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  color: rgba(255,255,255,.72);
}

.reveal-heading h3 {
  font-size: 2rem;
}

.reveal-note {
  margin-top: 7px;
  color: var(--muted);
  font-size: .8rem;
}

.wish-list {
  display: grid;
  gap: 13px;
  margin-top: 25px;
  text-align: left;
}

.wish-card {
  padding: 21px;

  border:
    1px solid rgba(255, 255, 255, .11);

  border-radius: 20px;

  background:
    rgba(255, 255, 255, .045);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .055);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  opacity: 0;

  animation:
    wishReveal .7s ease forwards;
}

.wish-heart {
  margin-bottom: 9px;
  font-size: 18px;
}

.wish-message {
  color: rgba(255,255,255,.88);
  font-size: .9rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.wish-author {
  margin-top: 12px;
  color: rgba(255,255,255,.43);
  font-size: .72rem;
}

.empty-wishes {
  color: var(--muted);
  text-align: center;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  position: relative;
  z-index: 1;

  padding: 10px 0 25px;

  text-align: center;

  color: rgba(255,255,255,.32);
  font-size: .7rem;
}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes wishReveal {
  from {
    opacity: 0;
    transform: translateY(16px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
  .page {
    padding: 16px 12px 35px;

    background:
      linear-gradient(
        180deg,
        rgba(8, 8, 18, .38),
        rgba(8, 8, 18, .84)
      ),
      url("assets/cover.jpg") center / cover no-repeat,
      #12121d;
  }

  .glass {
    border-radius: 26px;
  }

  .hero {
    margin-top: 2vh;
  }

  .countdown {
    gap: 4px;
  }

  .separator {
    font-size: 1.2rem;
  }

  .wishes-section {
    padding:
      40px 20px 36px;
  }

  #wish-form input {
    height: 52px;
  }

  #wish-form textarea {
    min-height: 135px;
  }

  .wish-footer {
    align-items: center;
  }

  #wish-submit {
    padding: 0 16px;
  }
}
