:root {
  --ink: #241d2d;
  --muted: #675b76;
  --paper: rgba(255, 255, 255, 0.74);
  --pink: #ffd9e8;
  --pink-hot: #d94f8d;
  --blue: #d8efff;
  --blue-hot: #2488c8;
  --violet: #8568e8;
  --gold: #c48b3d;
  --shadow: 0 34px 90px rgba(50, 36, 62, 0.24);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  font-family: "Nunito", system-ui, sans-serif;
  background:
    linear-gradient(115deg, rgba(255, 219, 234, 0.74), rgba(255, 255, 255, 0.54), rgba(216, 239, 255, 0.78)),
    #fff8f4;
}

button,
a {
  font: inherit;
}

.invitation-shell {
  display: grid;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(14px, 4vw, 38px);
  place-items: center;
}

.cover,
.invite {
  grid-area: 1 / 1;
  width: min(100%, 460px);
  transition:
    opacity 520ms ease,
    transform 620ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 520ms ease;
}

.cover {
  z-index: 2;
  display: grid;
  min-height: min(760px, calc(100vh - 28px));
  place-items: center;
}

.baby-button {
  position: relative;
  display: grid;
  width: min(82vw, 330px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  place-items: center;
}

.baby-button img {
  display: block;
  width: 100%;
  border-radius: 999px;
  box-shadow:
    0 26px 70px rgba(111, 75, 109, 0.26),
    0 0 0 14px rgba(255, 255, 255, 0.72);
  transition:
    transform 280ms ease,
    box-shadow 280ms ease;
}

.baby-button span {
  position: absolute;
  top: -56px;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: linear-gradient(100deg, rgba(255, 225, 238, 0.95), rgba(224, 242, 255, 0.95));
  box-shadow: 0 16px 34px rgba(45, 37, 58, 0.16);
  font-family: "Great Vibes", cursive;
  font-size: 2.2rem;
  line-height: 1;
}

.baby-button:hover img,
.baby-button:focus-visible img {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 34px 84px rgba(111, 75, 109, 0.3),
    0 0 0 14px rgba(255, 255, 255, 0.8);
}

.baby-button:focus-visible,
.guess-option:focus-visible,
.location-button:focus-visible {
  outline: 3px solid rgba(36, 136, 200, 0.42);
  outline-offset: 5px;
}

.invite {
  z-index: 1;
  opacity: 0;
  transform: translateY(26px) scale(0.97);
  visibility: hidden;
}

.invite-card {
  position: relative;
  min-height: min(820px, calc(100vh - 28px));
  overflow: hidden;
  padding: clamp(18px, 4vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.82) 52%, rgba(255, 255, 255, 0.92)),
    url("assets/cinsiyet-arka-plan.png") center / cover;
  box-shadow: var(--shadow);
}

.invite-card::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.58), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.82) 62%);
  content: "";
}

.music-bar,
.invite-heading,
.details,
.guess-panel,
.actions {
  position: relative;
  z-index: 1;
}

.music-bar {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  width: min(100%, 350px);
  margin: 0 auto 38px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 32px rgba(42, 34, 52, 0.14);
  color: var(--ink);
  text-decoration: none;
  backdrop-filter: blur(14px);
}

.play-dot {
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #1db954;
  color: white;
  font-size: 0.95rem;
  place-items: center;
}

.track strong,
.track span {
  display: block;
}

.track strong {
  font-size: 0.95rem;
  font-weight: 900;
}

.track span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.sound-bars {
  display: flex;
  height: 28px;
  align-items: end;
  gap: 3px;
}

.sound-bars i {
  display: block;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(var(--pink-hot), var(--blue-hot));
}

.sound-bars i:nth-child(1) {
  height: 12px;
}

.sound-bars i:nth-child(2) {
  height: 23px;
}

.sound-bars i:nth-child(3) {
  height: 17px;
}

.sound-bars i:nth-child(4) {
  height: 27px;
}

.invite-heading {
  display: grid;
  min-height: 310px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.script-line {
  margin: 0 0 2px;
  color: var(--gold);
  font-family: "Great Vibes", cursive;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1;
  text-shadow: 0 8px 20px rgba(255, 255, 255, 0.72);
}

h2 {
  display: block;
  max-width: 8ch;
  margin: -0.04em 0 -0.08em;
  padding: 0.12em 0 0.2em;
  color: transparent;
  background: linear-gradient(105deg, var(--pink-hot), var(--violet), var(--blue-hot));
  -webkit-background-clip: text;
  background-clip: text;
  font-family: "Great Vibes", cursive;
  font-size: clamp(3.05rem, 10vw, 5.15rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.86;
  filter: drop-shadow(0 10px 18px rgba(255, 255, 255, 0.56));
}

.guest-note {
  max-width: 23rem;
  margin: 8px auto 0;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  color: #4d3f59;
  font-size: clamp(0.82rem, 2.2vw, 0.96rem);
  font-weight: 900;
  line-height: 1.3;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(10px);
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
  font: italic;
}

.details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 14px;
}

.details div {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 92px;
  align-content: center;
  padding: 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 241, 248, 0.78)),
    rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    0 14px 30px rgba(45, 35, 56, 0.12);
  text-align: center;
  backdrop-filter: blur(12px);
}

.details div:nth-child(2) {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(226, 244, 255, 0.82)),
    rgba(255, 255, 255, 0.74);
}

.details span,
.details strong {
  display: block;
}

.details span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.details strong {
  margin-top: 6px;
  color: var(--ink);
  font-size: clamp(1.16rem, 3.6vw, 1.34rem);
  font-weight: 700;
  line-height: 1.08;
}

.details em {
  margin-top: 2px;
  color: var(--gold);
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-style: normal;
  line-height: 1;
}

.guess-panel {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 16px 40px rgba(44, 35, 56, 0.14);
  text-align: center;
  backdrop-filter: blur(16px);
}

.guess-title {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 1.22rem;
  font-weight: 900;
}

.guess-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.guess-option {
  min-height: 82px;
  padding: 10px 14px;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.82),
    0 12px 26px rgba(42, 34, 52, 0.1);
  transition:
    box-shadow 180ms ease,
    transform 180ms ease,
    filter 180ms ease;
}

.guess-option span {
  display: block;
  font-family: "Great Vibes", cursive;
  font-size: 2.35rem;
  font-weight: 400;
  line-height: 1;
}

.guess-option.girl {
  background: linear-gradient(150deg, #fff, var(--pink));
}

.guess-option.boy {
  background: linear-gradient(150deg, #fff, var(--blue));
}

.guess-option:hover,
.guess-option.is-selected {
  transform: translateY(-3px);
  filter: saturate(1.04);
}

.guess-option.is-selected.girl {
  box-shadow:
    inset 0 0 0 2px var(--pink-hot),
    0 18px 34px rgba(217, 79, 141, 0.22);
}

.guess-option.is-selected.boy {
  box-shadow:
    inset 0 0 0 2px var(--blue-hot),
    0 18px 34px rgba(36, 136, 200, 0.22);
}

.choice-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 900;
}

.actions {
  display: grid;
  margin-top: 14px;
}

.location-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(100deg, var(--pink-hot), var(--violet), var(--blue-hot));
  color: white;
  box-shadow: 0 18px 34px rgba(89, 84, 153, 0.24);
  cursor: pointer;
  font-family: "Great Vibes", cursive;
  font-size: 2rem;
  font-weight: 400;
  text-decoration: none;
}

body.is-open .cover {
  opacity: 0;
  transform: translateY(-24px) scale(0.96);
  visibility: hidden;
}

body.is-open .invite {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
}

@media (max-width: 520px) {
  .invitation-shell {
    padding: 12px;
  }

  .cover,
  .invite {
    width: 100%;
  }

  .baby-button {
    width: min(78vw, 300px);
  }

  .invite-card {
    min-height: 0;
    padding: 16px;
  }

  .music-bar {
    margin-bottom: 24px;
  }

  .invite-heading {
    min-height: 320px;
  }

  .script-line {
    font-size: clamp(2.35rem, 10vw, 3.2rem);
  }

  h2 {
    font-size: clamp(4rem, 17vw, 5.7rem);
    line-height: 0.86;
  }

  .guest-note {
    max-width: 20rem;
    font-size: clamp(0.86rem, 3.2vw, 1rem);
  }

  .details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .details div {
    min-height: 84px;
    padding: 12px 8px;
    border-radius: 20px;
  }

  .details strong {
    font-size: clamp(1rem, 4.2vw, 1.2rem);
  }

  .details em {
    font-size: clamp(1.25rem, 5vw, 1.55rem);
  }
}
