:root {
  --red: #E93030;
  --deep: #7A0E1A;
  --gold: #FFC93C;
  --gold-deep: #E89A0A;
  --cream: #FFF7E3;
  --pink: #FF6B9D;
  --orange: #FF7A1A;
  --ink: #2B0E14;
  --bold: "Baloo Da 2", "Hind Siliguri", sans-serif;
  --round: "Baloo Da 2", "Hind Siliguri", sans-serif;
}

/* SAME FONT EVERYWHERE: Baloo Da 2 supports both Bangla + English,
   Titan One had no Bangla glyphs so BN buttons looked different */
.mega,
.headline,
.poster-top,
.sticker,
.q-badge,
.to,
.name,
.recv-name,
.input-row button,
#shareBtn,
#copyBtn,
#recvOpen,
.m-actions button,
#mysteryBtn .env-label,
.env-letter p {
  font-family: var(--round) !important;
  font-weight: 800 !important;
  letter-spacing: .01em;
}

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

html {
  -webkit-text-size-adjust: 100%
}

img,
svg {
  max-width: 100%
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--round);
  overflow-x: hidden
}

button,
input {
  font: inherit;
  max-width: 100%
}

::selection {
  background: var(--gold)
}

/* dotted bg */
#intro,
#card {
  background-color: var(--cream);
  background-image: radial-gradient(#f3d9a0 2.2px, transparent 2.3px);
  background-size: 26px 26px;
}

/* bunting flags */
.bunting {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  position: relative;
  z-index: 3;
  max-width: 100%;
  overflow: hidden
}

.bunting i {
  width: 34px;
  height: 30px;
  clip-path: polygon(0 0, 100% 0, 50% 100%)
}

.bunting i:nth-child(4n+1) {
  background: var(--red)
}

.bunting i:nth-child(4n+2) {
  background: var(--gold)
}

.bunting i:nth-child(4n+3) {
  background: var(--deep)
}

.bunting i:nth-child(4n+4) {
  background: var(--orange)
}

.bunting::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--deep)
}

.bunting i {
  margin-top: 6px
}

.bunting.small {
  padding-bottom: 6px
}

/* ===== INTRO ===== */
#intro {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2.5rem calc(1rem + 52px) 5rem;
  position: relative;
  overflow: hidden
}

.floaties .f {
  position: absolute;
  font-size: clamp(1.8rem, 5vw, 3rem);
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .12))
}

.f1 {
  left: 6%;
  top: 14%
}

.f2 {
  right: 8%;
  top: 16%;
  animation-delay: .4s
}

.f3 {
  left: 10%;
  bottom: 18%;
  animation-delay: .8s
}

.f4 {
  right: 10%;
  bottom: 22%;
  animation-delay: 1.2s
}

.f5 {
  left: 50%;
  top: 8%;
  animation-delay: .6s
}

.f6 {
  right: 44%;
  bottom: 8%;
  animation-delay: 1s
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(-8deg)
  }

  50% {
    transform: translateY(-16px) rotate(8deg)
  }
}

.intro-card {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 32px;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  max-width: 620px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  text-align: center;
  box-shadow: 10px 10px 0 var(--ink)
}

.pill-badge {
  display: inline-block;
  background: var(--ink);
  color: var(--gold);
  font-weight: 800;
  letter-spacing: .08em;
  font-size: clamp(.7rem, 2.4vw, .9rem);
  padding: .5rem 1.1rem;
  border-radius: 999px;
  transform: rotate(-2deg);
  max-width: 100%
}

.bn-big {
  font-weight: 800;
  color: var(--red);
  font-size: clamp(2.4rem, 9vw, 4.2rem);
  line-height: 1;
  margin-top: .6rem
}

.mega {
  font-family: var(--bold);
  line-height: .9;
  font-size: clamp(3.4rem, 14vw, 6.5rem);
  color: var(--red);
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 4px 4px 0 var(--gold), 8px 8px 0 var(--ink);
  margin: .2rem 0
}

.mega span {
  color: var(--gold);
  -webkit-text-stroke: 2px var(--ink)
}

.cute-row {
  font-size: clamp(2rem, 7vw, 3rem);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin: .4rem 0
}

.love-btn {
  cursor: pointer;
  font-size: clamp(2.6rem, 9vw, 3.8rem);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 50%;
  width: 1.8em;
  height: 1.8em;
  display: grid;
  place-items: center;
  line-height: 1;
  box-shadow: 4px 4px 0 var(--red);
  animation: beat 1s ease-in-out infinite;
  transition: transform .15s
}

.love-btn:hover {
  transform: scale(1.12)
}

@keyframes beat {

  0%,
  100% {
    transform: scale(1)
  }

  25% {
    transform: scale(1.18)
  }

  40% {
    transform: scale(1.05)
  }

  60% {
    transform: scale(1.15)
  }
}

.love-bit {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  font-size: 1.6rem
}

.dhak-cute {
  display: inline-block;
  animation: drum .5s infinite alternate ease-in-out
}

.flip {
  transform: scaleX(-1)
}

@keyframes drum {
  from {
    transform: rotate(-14deg)
  }

  to {
    transform: rotate(14deg)
  }
}

.sub {
  font-weight: 600;
  font-size: clamp(1rem, 3vw, 1.2rem);
  line-height: 1.6;
  opacity: .85
}

#nameForm {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .7rem
}

#nameForm label {
  font-weight: 800;
  letter-spacing: .06em;
  font-size: .9rem
}

.input-row {
  display: flex;
  gap: .7rem;
  flex-wrap: wrap
}

#nameInput {
  flex: 1 1 220px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: .6em .9em;
  font-weight: 800;
  font-size: 1.6rem;
  background: var(--cream);
  outline: none;
  min-width: 0
}

#nameInput:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 5px rgba(233, 48, 48, .2)
}

.input-row button {
  cursor: pointer;
  border: 3px solid var(--ink);
  background: var(--red);
  color: #fff;
  font-family: var(--bold);
  font-size: 1.4rem;
  padding: .5em 1.3em;
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .15s
}

.input-row button:hover {
  transform: translateY(-3px) rotate(-1deg) scale(1.03)
}

.input-row button:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--ink)
}

/* share box (blob link) */
.share-box{margin-top:1.1rem;border:3px dashed var(--deep);border-radius:18px;padding:.9rem;
  background:var(--cream);display:flex;flex-direction:column;gap:.6rem;text-align:left}
.share-box label{font-weight:800;font-size:.85rem;letter-spacing:.05em}
#msgInput{font:inherit;font-weight:600;font-size:1rem;border:3px solid var(--ink);border-radius:14px;
  padding:.6em .8em;background:#fff;outline:none;resize:vertical;min-height:3.2em;width:100%}
#msgInput:focus{border-color:var(--red);box-shadow:0 0 0 5px rgba(233,48,48,.2)}
#shareBtn{cursor:pointer;border:3px solid var(--ink);background:var(--deep);color:var(--gold);
  font-family:var(--bold);font-size:1.05rem;padding:.55em 1.2em;border-radius:14px;
  box-shadow:4px 4px 0 var(--ink);transition:transform .15s}
#shareBtn:hover{transform:translateY(-2px)}
#shareBtn:disabled{opacity:.6;cursor:wait;transform:none}
.share-out{display:flex;gap:.5rem}
#shareLink{flex:1;min-width:0;font:inherit;font-size:.85rem;font-weight:600;border:3px solid var(--ink);
  border-radius:12px;padding:.5em .7em;background:#fff}
#copyBtn{cursor:pointer;border:3px solid var(--ink);background:var(--gold);color:var(--ink);
  font-family:var(--bold);font-size:.95rem;padding:.5em 1em;border-radius:12px;box-shadow:3px 3px 0 var(--ink)}
/* receiver view: name in a div, no input */
#receiverBox{margin-top:1.2rem;display:flex;flex-direction:column;gap:.7rem;align-items:center;text-align:center}
#receiverBox[hidden]{display:none}
.recv-label{font-weight:800;font-size:.95rem;letter-spacing:.05em}
.recv-name{font-family:var(--bold);font-size:clamp(2rem,9vw,3rem);color:var(--red);
  -webkit-text-stroke:1px var(--ink);text-transform:uppercase;overflow-wrap:anywhere;max-width:100%}
#recvOpen{cursor:pointer;border:3px solid var(--ink);background:var(--red);color:#fff;
  font-family:var(--bold);font-size:1.3rem;padding:.5em 1.4em;border-radius:18px;
  box-shadow:5px 5px 0 var(--ink);transition:transform .15s}
#recvOpen:hover{transform:translateY(-3px)}
.char-count{display:block;text-align:right;font-size:.75rem;font-weight:700;opacity:.6}

/* ===== CARD ===== */
#card {
  display: none;
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  padding: 0 calc(1rem + 52px) 2rem
}

.shiuli-rain {
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  overflow: hidden
}

.fall {
  position: absolute;
  top: -60px;
  font-size: 1.7rem
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  padding: 1rem 0 0
}

.sticker {
  position: absolute;
  z-index: 3;
  font-family: var(--bold);
  font-size: .95rem;
  padding: .5rem .9rem;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--ink)
}

.s1 {
  background: var(--gold);
  left: -8px;
  top: 64px;
  transform: rotate(-10deg)
}

.s2 {
  background: var(--pink);
  color: #fff;
  right: -6px;
  top: 150px;
  transform: rotate(8deg)
}

/* ===== POSTER CARD (cute box) ===== */
.poster {
  background: #fff;
  border: 4px solid var(--ink);
  border-radius: 36px;
  text-align: center;
  box-shadow: 12px 12px 0 var(--red), 12px 12px 0 4px var(--ink);
  position: relative;
  z-index: 2;
  padding-bottom: 1.6rem;
  height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none
}

.poster::-webkit-scrollbar {
  display: none
}

.poster-top {
  background: var(--deep);
  color: var(--gold);
  font-family: var(--bold);
  letter-spacing: .12em;
  font-size: clamp(.8rem, 2.6vw, 1rem);
  padding: .8rem;
  border-radius: 30px 30px 0 0
}

.durga-wrap {
  position: relative;
  display: grid;
  place-items: center;
  padding: 1rem 0 .2rem
}

/* cute devi cartoon face instead of sponsor logo */
.devi-face {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #fff6dd, #ffe6a8);
  border: 4px solid var(--ink);
  border-radius: 50%;
  padding: .6rem;
  box-shadow: 6px 6px 0 var(--ink);
  animation: bob 2.6s ease-in-out infinite
}

.devi-face svg {
  width: min(210px, 52vw);
  height: auto;
  display: block
}

.durga {
  width: min(300px, 70vw);
  height: auto;
  position: relative;
  z-index: 2;
  animation: bob 2.6s ease-in-out infinite
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0) rotate(-1deg)
  }

  50% {
    transform: translateY(-10px) rotate(1deg)
  }
}

.halo {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--gold) 0 55%, transparent 56%), repeating-conic-gradient(var(--gold) 0 8deg, #ffe08a 8deg 16deg);
  opacity: .5;
  animation: spin 24s linear infinite
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.bn-sticker {
  display: inline-block;
  background: var(--gold);
  border: 3px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  padding: .25em 1em;
  transform: rotate(-3deg);
  box-shadow: 4px 4px 0 var(--ink);
  margin-top: .4rem
}

.headline {
  display: flex;
  flex-direction: column;
  line-height: .92;
  margin: .5rem 0;
  font-family: var(--bold);
  font-size: clamp(3.2rem, 15vw, 6.2rem)
}

.headline .line .ch {
  display: inline-block;
  -webkit-text-stroke: 2px var(--ink);
  text-shadow: 3px 3px 0 var(--ink)
}

.line1 .ch:nth-child(odd) {
  color: var(--red)
}

.line1 .ch:nth-child(even) {
  color: var(--orange)
}

.line2 .ch {
  color: var(--gold)
}

.line2 .ch:nth-child(even) {
  color: var(--pink);
  -webkit-text-stroke: 2px #fff;
  text-shadow: 3px 3px 0 var(--ink)
}

.line {
  display: block
}

.who {
  margin: .6rem auto 0;
  background: var(--cream);
  border: 3px dashed var(--deep);
  border-radius: 20px;
  padding: .7rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 92%
}

.to {
  font-weight: 800;
  background: var(--deep);
  color: #fff;
  padding: .25em .8em;
  border-radius: 999px;
  font-size: .95rem
}

.name {
  font-family: var(--bold);
  font-size: clamp(1.8rem, 8vw, 3rem);
  color: var(--red);
  text-transform: uppercase;
  overflow-wrap: anywhere
}

.name .ch {
  display: inline-block
}

.msg {
  margin: 1rem auto 0;
  max-width: 52ch;
  font-weight: 500;
  font-size: clamp(1.02rem, 3vw, 1.2rem);
  line-height: 1.65;
  padding: 0 1.4rem
}

.msg b {
  color: var(--red)
}

:focus-visible {
  outline: 3px dashed var(--red);
  outline-offset: 3px
}

@media (max-width:560px) {
  .s1 {
    left: 2px
  }

  .s2 {
    right: 2px
  }
}

/* ===== MYSTERY BOX (left side) ===== */
.mystery-outer {
  position: fixed;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  align-items: center
}

.mystery-outer small {
  display: none
}

#mysteryBtn {
  cursor: pointer;
  background: none;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  padding: .3rem
}

#mysteryBtn:hover {
  transform: scale(1.06) rotate(-1deg)
}

#mysteryBtn .env {
  position: relative;
  width: 86px;
  height: 62px;
  background: #fffdf6;
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: 5px 5px 0 var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden;
  animation: mJump 1.6s ease-in-out infinite
}

#mysteryBtn .env-flap-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 56%
}

#mysteryBtn .env-flap-svg path {
  fill: var(--red);
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linejoin: round
}

#mysteryBtn .env i {
  font-style: normal;
  font-size: 1.7rem;
  position: relative;
  z-index: 1;
  margin-top: 14px
}

#mysteryBtn .env-label {
  font-family: var(--bold);
  font-size: .85rem;
  letter-spacing: .04em;
  background: var(--gold);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: .35em 1.05em;
  box-shadow: 3px 3px 0 var(--ink)
}

@keyframes mJump {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-7px) rotate(1deg)
  }
}

#mysteryModal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  background: rgba(43, 14, 20, .6);
  backdrop-filter: blur(3px);
  padding: 1rem
}

#mysteryModal.open {
  display: grid
}

.m-box {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 22px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  padding: 1.2rem 1.1rem 1.3rem;
  box-shadow: 6px 6px 0 var(--ink)
}

.m-label {
  display: inline-block;
  background: var(--gold);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .06em;
  font-size: .8rem;
  padding: .4em 1em;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-2deg)
}

/* modal envelope: ONE box, flap+letter+pocket anchored inside it */
.m-big-wrap {
  position: relative;
  width: min(270px, 100%);
  height: 300px;
  margin: .7rem auto .9rem
}

.env-big {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 170px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 14px
}

/* envelope side fold lines */
.env-big::before,
.env-big::after {
  content: "";
  position: absolute;
  bottom: 14px;
  width: 60%;
  height: 2px;
  background: var(--ink);
  opacity: .3;
  z-index: 2
}

.env-big::before {
  left: 12px;
  transform: rotate(-41deg);
  transform-origin: left center
}

.env-big::after {
  right: 12px;
  transform: rotate(41deg);
  transform-origin: right center
}

.env-letter {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  z-index: 1;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 1rem .8rem;
  min-height: 78px;
  display: grid;
  place-items: center;
  opacity: 0
}

.env-letter p {
  font-family: var(--bold);
  font-size: 1.2rem;
  color: var(--deep);
  line-height: 1.35
}

.env-pocket {
  position: absolute;
  inset: -3px;
  z-index: 2;
  background: transparent;
  border-radius: 10px;
  clip-path: polygon(0 10%, 50% 55%, 100% 10%, 100% 100%, 0 100%);
  filter: drop-shadow(2px 0 0 var(--ink)) drop-shadow(-2px 0 0 var(--ink)) drop-shadow(0 2px 0 var(--ink)) drop-shadow(0 -2px 0 var(--ink))
}

/* upper V = flap's own edges + deep pocket notch (no extra lines) */

.env-flap {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  height: 52%;
  z-index: 3;
  transform-origin: top center
}

.env-flap svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible
}

.env-flap path {
  fill: var(--red);
  stroke: var(--ink);
  stroke-width: 7;
  stroke-linejoin: round
}

.m-actions {
  display: flex;
  gap: .6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: .3rem
}

.m-actions button {
  cursor: pointer;
  font-family: var(--bold);
  font-size: .95rem;
  padding: .55em 1.3em;
  border-radius: 999px;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink)
}

#mAgain {
  background: var(--red);
  color: #fff
}

#mClose {
  background: #fff;
  color: var(--ink)
}

/* ===== QUOTE SLIDER (right side) ===== */
.quote-slider {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 200px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 20px;
  padding: .9rem .8rem;
  text-align: center;
  box-shadow: 5px 5px 0 var(--red), 5px 5px 0 8px var(--ink)
}

.q-badge {
  font-family: var(--bold);
  font-size: .75rem;
  background: var(--deep);
  color: var(--gold);
  border-radius: 999px;
  padding: .3em .7em;
  letter-spacing: .06em
}

.q-text {
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.5;
  min-height: 4.5em;
  display: grid;
  place-items: center;
  margin: .6rem 0 .4rem
}

.q-dots {
  display: flex;
  gap: 5px;
  justify-content: center
}

.q-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5cfa0;
  border: 1.5px solid var(--ink)
}

.q-dots i.on {
  background: var(--red);
  transform: scale(1.25)
}

/* ===== PRODIP (diya) BORDER FRAME ===== */
.prodip-frame {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none
}

.p-row {
  position: absolute;
  left: 0;
  right: 0;
  height: 46px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  font-size: 1.7rem;
  background: transparent;
  border: 0;
  overflow: hidden
}

.p-top {
  top: 0
}

.p-bottom {
  bottom: 0
}

.p-col {
  position: absolute;
  top: 46px;
  bottom: 46px;
  width: 46px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  font-size: 1.7rem;
  background: transparent;
  border: 0;
  overflow: hidden
}

.p-left {
  left: 0
}

.p-right {
  right: 0
}

.bunting {
  margin-top: 42px
}

#card {
  padding-top: 42px
}

.wrap {
  padding-bottom: 38px !important
}

.p-row span,
.p-col span {
  display: inline-block;
  background: transparent;
  border-radius: 0;
  width: auto;
  height: auto;
  line-height: 0;
  animation: flame 1.1s ease-in-out infinite alternate
}

.prodip-frame svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 7px rgba(255, 150, 0, .95)) drop-shadow(0 2px 2px rgba(0, 0, 0, .35))
}

.p-row span:nth-child(even),
.p-col span:nth-child(even) {
  animation-delay: .45s
}

@keyframes flame {
  from {
    transform: scale(1);
    opacity: .85
  }

  to {
    transform: scale(1.18);
    opacity: 1
  }
}

/* keep side widgets clear of diya frame */
.mystery-outer {
  left: 58px
}

.quote-slider {
  right: 58px
}

/* ===== LOVE GATE (very first screen) ===== */
#loveGate {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1rem;
  text-align: center;
  position: relative;
  z-index: 2;
  padding: 2rem calc(1rem + 52px);
  background-color: var(--cream);
  background-image: radial-gradient(#f3d9a0 2.2px, transparent 2.3px);
  background-size: 26px 26px
}

#gateLove {
  cursor: pointer;
  background: none;
  border: 0;
  font-size: clamp(6rem, 28vmin, 12rem);
  line-height: 1;
  animation: beat 1.1s ease-in-out infinite;
  filter: drop-shadow(0 12px 20px rgba(233, 48, 48, .45))
}

.gate-text {
  font-weight: 800;
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  color: var(--deep);
  line-height: 1.5
}

.gate-text span {
  font-size: .65em;
  color: var(--red)
}

/* intro stays hidden until love gate opens */
#intro {
  display: none
}

/* ===== LOVE TRANSITION (huge heart reveal) ===== */
#loveTransition {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  pointer-events: none
}

#loveTransition.show {
  display: grid
}

#loveTransition span {
  font-size: 22vmin;
  line-height: 1;
  display: inline-block;
  filter: drop-shadow(0 10px 24px rgba(233, 48, 48, .5))
}

/* ===== FULL RESPONSIVE ===== */
/* tablets & small laptops: dock side widgets to bottom */
@media (max-width:1100px) {
  .mystery-outer {
    left: 56px;
    top: auto;
    bottom: 56px;
    transform: none
  }

  #mysteryBtn .env-label {
    font-size: .78rem
  }

  .quote-slider {
    right: 56px;
    left: auto;
    top: auto;
    bottom: 56px;
    transform: none;
    width: 180px;
    padding: .65rem
  }

  .q-text {
    font-size: .82rem;
    min-height: 3.8em
  }

  .wrap {
    padding-bottom: 110px !important
  }
}

@media (max-width:640px) {

  /* slimmer diya frame on phones */
  .p-row {
    height: 32px;
    font-size: 1.2rem
  }

  .p-col {
    top: 32px;
    bottom: 32px;
    width: 32px;
    font-size: 1.2rem
  }

  .prodip-frame svg {
    width: 24px;
    height: 24px
  }

  .bunting {
    margin-top: 30px;
    gap: 4px;
    padding: 0 4px
  }

  .bunting i {
    width: 22px;
    height: 19px
  }

  .bunting i:nth-child(n+9) {
    display: none
  }

  #intro {
    padding: 1.2rem calc(.6rem + 36px) 4rem
  }

  #loveGate {
    padding: 1.5rem calc(.6rem + 36px)
  }

  #gateLove {
    font-size: clamp(4.5rem, 32vw, 7rem)
  }

  .gate-text {
    font-size: clamp(1.15rem, 6vw, 1.6rem)
  }

  #card {
    padding: 32px calc(.6rem + 36px) 1.5rem
  }

  .intro-card {
    border-radius: 24px;
    box-shadow: 6px 6px 0 var(--ink);
    padding: 1.2rem 1rem
  }

  .mega {
    font-size: clamp(2.2rem, 13vw, 3.2rem);
    -webkit-text-stroke: 1.5px var(--ink);
    text-shadow: 3px 3px 0 var(--gold), 5px 5px 0 var(--ink)
  }

  .bn-big {
    font-size: clamp(1.9rem, 10vw, 2.6rem)
  }

  #nameInput {
    font-size: 1.25rem
  }

  .input-row button {
    font-size: 1.15rem;
    width: 100%
  }

  .floaties .f {
    font-size: 1.5rem;
    opacity: .85
  }

  .f5,
  .f6 {
    display: none
  }

  .poster {
    border-radius: 24px;
    box-shadow: 7px 7px 0 var(--red), 7px 7px 0 3px var(--ink);
    height: auto;
    max-height: none;
    overflow: visible;
    padding-left: .9rem;
    padding-right: .9rem
  }

  .poster-top {
    margin-left: -.9rem;
    margin-right: -.9rem;
    border-radius: 19px 19px 0 0
  }

  .headline {
    font-size: clamp(2rem, 13.5vw, 3.2rem)
  }

  .headline .line .ch {
    -webkit-text-stroke: 1.5px var(--ink)
  }

  .durga {
    width: min(200px, 60vw)
  }

  .halo {
    width: 150px;
    height: 150px
  }

  .sticker {
    font-size: .75rem;
    padding: .35rem .7rem
  }

  .s1 {
    left: 4px;
    top: 150px
  }

  .s2 {
    right: 4px;
    top: 210px
  }

  .who {
    max-width: 100%;
    padding: .6rem .7rem
  }

  .to {
    font-size: .8rem
  }

  .name {
    font-size: clamp(1.4rem, 7vw, 1.8rem)
  }

  .msg {
    font-size: 1rem;
    padding: 0 .8rem
  }

  .bn-sticker {
    font-size: clamp(.95rem, 4.5vw, 1.15rem);
    max-width: 100%
  }

  .m-actions {
    flex-wrap: wrap
  }

  .m-actions button {
    font-size: .9rem;
    padding: .5em 1em
  }

  /* mobile: side widgets show in-flow, slider scrolls inside */
  .mystery-outer {
    position: static;
    transform: none;
    display: flex;
    margin: 1.2rem 0
  }

  .quote-slider {
    position: static;
    transform: none;
    width: 100%;
    margin-top: .8rem;
    margin-bottom: 1.2rem;
    max-height: 38vh;
    overflow-y: auto
  }

  .q-text {
    font-size: .9rem
  }

  .wrap {
    padding-bottom: 38px !important
  }

  .m-box {
    padding: 1rem .9rem 1.1rem
  }

  .m-big-wrap {
    height: 280px
  }

  .env-letter p {
    font-size: 1.05rem
  }
}

@media (max-width:380px) {
  .bunting i:nth-child(n+7) {
    display: none
  }

  .pill-badge {
    font-size: .62rem;
    padding: .4rem .8rem
  }

  .sub {
    font-size: .92rem
  }

  .headline {
    font-size: clamp(2rem, 15vw, 2.8rem)
  }

  .quote-slider {
    width: 100%
  }

  .q-text {
    font-size: .7rem
  }
}

@media (prefers-reduced-motion:reduce) {
  * {
    animation: none !important;
    transition: none !important
  }
}