/* =========================================================
   Birthday Bliss — styles.css
   Theme: Maximalist Kawaii / Pastel Bubblegum
   ========================================================= */

/* ── Reset & variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink-0:  #fff0f7;
  --pink-1:  #ffd6eb;
  --pink-2:  #ff9ec4;
  --pink-3:  #e91e8c;
  --pink-4:  #b5006a;
  --purple-1:#d8b4fe;
  --purple-2:#a855f7;
  --purple-3:#7c3aed;
  --teal-1:  #99f6e4;
  --teal-2:  #2dd4bf;
  --teal-3:  #0d9488;
  --red-bow: #dc2626;
  --red-bow2:#b91c1c;
  --text-dark:#3b0764;
  --text-mid: #6b21a8;
  --white:   #ffffff;
  --shadow:  rgba(233,30,140,.22);
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --transition: .25s cubic-bezier(.34,1.56,.64,1);
}

/* ── Body ── */
body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(145deg, #fce7f3 0%, #f5d0fe 40%, #e9d5ff 70%, #ddd6fe 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* =========================================================
   BACKGROUND PARTICLES
   ========================================================= */
#particles-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  font-size: 1rem;
  opacity: 0;
  animation: floatUp linear infinite;
  user-select: none;
}

@keyframes floatUp {
  0%   { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  8%   { opacity: .55; }
  92%  { opacity: .55; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: relative;
  z-index: 20;
  padding: 1.4rem 1rem .6rem;
  text-align: center;
}

.header-pill {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(14px);
  border: 2px solid rgba(255,255,255,.9);
  border-radius: var(--radius-pill);
  padding: .55rem 1.8rem;
  box-shadow: 0 6px 30px var(--shadow), inset 0 1px 0 rgba(255,255,255,.8);
}

.site-title {
  font-family: 'Bubblegum Sans', cursive;
  font-size: clamp(1.4rem, 5vw, 2rem);
  background: linear-gradient(135deg, var(--pink-3), var(--purple-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: .02em;
}

.hdr-icon {
  font-size: 1.6rem;
}
.hdr-icon.left  { animation: bounceIcon 2.4s ease-in-out infinite; }
.hdr-icon.right { animation: bounceIcon 2.4s ease-in-out infinite .4s; }

@keyframes bounceIcon {
  0%,100% { transform: translateY(0) rotate(0deg); }
  40%     { transform: translateY(-9px) rotate(-8deg); }
  60%     { transform: translateY(-6px) rotate(5deg); }
}

/* =========================================================
   MAIN WRAPPER
   ========================================================= */
.app-wrap {
  position: relative;
  z-index: 10;
  max-width: 460px;
  margin: 0 auto;
  padding: .8rem 1.25rem 7rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

/* =========================================================
   RECIPIENT BANNER
   ========================================================= */
.recipient-banner {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  background: linear-gradient(135deg, #fff, var(--pink-0));
  border: 2.5px solid var(--pink-2);
  border-radius: var(--radius-lg);
  padding: .75rem 1.25rem;
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-dark);
  box-shadow: 0 4px 16px var(--shadow);
  animation: slideDown .5s var(--transition);
}

.recipient-banner.show { display: flex; }

.banner-bow { font-size: 1.3rem; }

@keyframes slideDown {
  from { transform: translateY(-18px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* =========================================================
   QUBY SECTION
   ========================================================= */
.quby-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  position: relative;
}

/* Speech bubble */
.speech-bubble {
  background: var(--white);
  border: 2.5px solid var(--pink-1);
  border-radius: 20px;
  padding: .85rem 1.2rem;
  max-width: 270px;
  text-align: center;
  box-shadow: 0 5px 18px var(--shadow);
  position: relative;
  animation: fadeUpIn .4s ease;
  transition: all .3s ease;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -13px;
  left: 50%;
  transform: translateX(-50%);
  border: 13px solid transparent;
  border-top-color: var(--white);
  border-bottom: 0;
}
.speech-bubble::before {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  border: 14px solid transparent;
  border-top-color: var(--pink-1);
  border-bottom: 0;
}

#speechText {
  font-size: .9rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.45;
}

/* Quby SVG character */
.quby-char {
  width: 118px;
  height: 118px;
  margin-top: .2rem;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,.12));
  transition: filter .3s;
}
.quby-char svg { width: 100%; height: 100%; }

/* =========================================================
   GIFT BOX
   ========================================================= */
.gift-stage {
  position: relative;
  width: 155px;
  height: 175px;
  cursor: pointer;
  margin: .2rem 0;
}

.gift-box {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .15s ease;
}

.gift-stage:not(.opened):hover .gift-box {
  transform: scale(1.04) rotate(-1deg);
}

/* Lid */
.gift-lid {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 163px;
  height: 52px;
  background: linear-gradient(140deg, var(--teal-1), var(--teal-2));
  border-radius: 10px 10px 6px 6px;
  z-index: 4;
  box-shadow: 0 4px 14px rgba(45,212,191,.45), inset 0 1px 0 rgba(255,255,255,.35);
  transform-origin: center top;
}

.lid-stripe {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 22px;
  transform: translateX(-50%);
  background: var(--red-bow);
  border-radius: 4px;
}

/* Bow */
.lid-bow-wrap {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bow-loop {
  width: 32px;
  height: 24px;
  background: radial-gradient(circle at 40% 35%, #ef4444, var(--red-bow2));
  border-radius: 50%;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.2);
}

.loop-l { transform: rotate(-32deg) translateX(6px); }
.loop-r { transform: rotate(32deg) translateX(-6px); }

.bow-knot {
  position: absolute;
  width: 17px;
  height: 17px;
  background: radial-gradient(circle at 35% 30%, #f87171, var(--red-bow2));
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,.2);
}

/* Body */
.gift-body {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 155px;
  height: 118px;
  background: linear-gradient(165deg, #b2f5ea 0%, var(--teal-2) 60%, var(--teal-3) 100%);
  border-radius: 6px 6px 12px 12px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(13,148,136,.35), inset 0 1px 0 rgba(255,255,255,.3);
}

.body-stripe {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 22px;
  transform: translateX(-50%);
  background: var(--red-bow);
  opacity: .9;
}

.body-shine {
  position: absolute;
  top: 8px; left: 12px;
  width: 28px; height: 55px;
  background: rgba(255,255,255,.28);
  border-radius: 50%;
  transform: rotate(-20deg);
}
.shine-2 {
  top: 30px; left: 22px;
  width: 12px; height: 25px;
  background: rgba(255,255,255,.15);
}

/* ── Lid fly-up animation ── */
.gift-stage.opening .gift-lid {
  animation: lidFlyUp .65s cubic-bezier(.25,.46,.45,.94) forwards;
}

@keyframes lidFlyUp {
  0%   { transform: translateX(-50%) translateY(0)    rotate(0deg);  opacity: 1; }
  30%  { transform: translateX(-55%) translateY(-40px) rotate(-8deg); opacity: 1; }
  100% { transform: translateX(-82%) translateY(-160px) rotate(-28deg); opacity: 0; }
}

/* Surprise reveal */
.gift-surprise {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0);
  z-index: 5;
  pointer-events: none;
  transition: transform .6s cubic-bezier(.34,1.56,.64,1);
}

.gift-surprise.popped {
  transform: translate(-50%, -68%) scale(1);
}

.surprise-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 210px;
  height: 210px;
  animation: floatBob 2.4s ease-in-out infinite;
  filter: drop-shadow(0 12px 28px rgba(233,30,140,.28));
}
 
.surprise-sticker {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  display: block;
  animation: stickerPop .55s cubic-bezier(.34,1.56,.64,1) both;
}
 
@keyframes stickerPop {
  0%   { transform: scale(0) rotate(-12deg); opacity: 0; }
  60%  { transform: scale(1.1) rotate(3deg);  opacity: 1; }
  100% { transform: scale(1)   rotate(0deg);  opacity: 1; }
}
 
@keyframes floatBob {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.sparkle-ring {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  pointer-events: none;
}

.sparkle-ring span {
  position: absolute;
  font-size: .8rem;
  animation: orbitSpark linear infinite;
}

/* =========================================================
   TAP HINT
   ========================================================= */
.tap-hint {
  font-family: 'Bubblegum Sans', cursive;
  font-size: .9rem;
  color: var(--text-mid);
  text-align: center;
  animation: pulseFade 1.8s ease-in-out infinite;
}

@keyframes pulseFade {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .55; transform: scale(.96); }
}

/* =========================================================
   BIRTHDAY NOTE
   ========================================================= */
.bday-note {
  display: none;
  width: 100%;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
}

.bday-note.show {
  display: block;
  animation: fadeUpIn .5s ease;
}

.note-curl {
  position: absolute;
  bottom: 0; right: 0;
  width: 28px; height: 28px;
  background: linear-gradient(225deg, var(--pink-1) 50%, rgba(255,230,240,.2) 50%);
  border-top-left-radius: 14px;
  z-index: 2;
}

.note-body {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  background: linear-gradient(135deg, #fffde7, #fff8e1);
  border: 2px dashed #ffcc80;
  border-radius: 18px;
  padding: 1rem 1.1rem;
  box-shadow: 0 4px 14px rgba(255,167,38,.2);
}

.note-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: .1rem; }

#noteText {
  font-size: .88rem;
  font-weight: 700;
  color: #5d4037;
  line-height: 1.55;
}

/* =========================================================
   ACTION BUTTONS
   ========================================================= */
.action-row {
  display: none;
  gap: .9rem;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
}

.action-row.show { display: flex; animation: fadeUpIn .4s ease; }

.btn {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 1.05rem;
  letter-spacing: .03em;
  padding: .8rem 1.9rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background .2s;
}

.btn:hover::after { background: rgba(255,255,255,.12); }
.btn:active { transform: scale(.94) !important; }

/* Accept */
.btn-accept {
  background: linear-gradient(135deg, #4ade80, #16a34a);
  color: var(--white);
  box-shadow: 0 5px 18px rgba(22,163,74,.45);
}
.btn-accept:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 26px rgba(22,163,74,.55); }

/* Reject */
.btn-reject {
  background: linear-gradient(135deg, #fb7185, #e11d48);
  color: var(--white);
  box-shadow: 0 5px 18px rgba(225,29,72,.4);
}
.btn-reject:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 10px 26px rgba(225,29,72,.5); }

.btn-reject:disabled {
  opacity: .38;
  cursor: not-allowed;
  pointer-events: none;
}

/* =========================================================
   SHARE FAB
   ========================================================= */
.share-fab {
  position: fixed;
  bottom: 88px;
  right: 18px;
  background: linear-gradient(135deg, var(--pink-3), var(--purple-3));
  color: var(--white);
  font-family: 'Bubblegum Sans', cursive;
  font-size: .95rem;
  letter-spacing: .03em;
  padding: .7rem 1.4rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 6px 22px rgba(233,30,140,.5), 0 2px 8px rgba(124,58,237,.35);
  transition: transform var(--transition), box-shadow var(--transition);
  animation: fabPulse 3s ease-in-out infinite;
}

@keyframes fabPulse {
  0%,100% { box-shadow: 0 6px 22px rgba(233,30,140,.5), 0 2px 8px rgba(124,58,237,.35); }
  50%      { box-shadow: 0 8px 30px rgba(233,30,140,.7), 0 4px 12px rgba(124,58,237,.5); }
}

.share-fab:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 12px 32px rgba(233,30,140,.6);
  animation: none;
}

/* =========================================================
   SHARE MODAL
   ========================================================= */
.modal-veil {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-veil.show { display: flex; }

.share-modal {
  background: linear-gradient(155deg, var(--white) 0%, var(--pink-0) 100%);
  border: 2px solid rgba(255,255,255,.9);
  border-radius: var(--radius-xl);
  padding: 1.8rem 1.5rem;
  width: 100%;
  max-width: 410px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 70px rgba(233,30,140,.35);
  animation: modalPop .4s cubic-bezier(.34,1.56,.64,1);
}

@keyframes modalPop {
  from { transform: translateY(30px) scale(.92); opacity: 0; }
  to   { transform: translateY(0)    scale(1);   opacity: 1; }
}

.modal-x {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--pink-1);
  color: var(--text-dark);
  font-size: .85rem;
  font-weight: 900;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.modal-x:hover { background: var(--pink-2); transform: rotate(90deg); }

.modal-head { text-align: center; margin-bottom: 1.4rem; }

.modal-ribbon {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: .3rem;
}
.modal-sub { font-size: .8rem; color: var(--text-mid); font-weight: 600; }

.form-block { margin-bottom: 1.1rem; }

.form-lbl {
  display: block;
  font-size: .75rem;
  font-weight: 900;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .45rem;
}

/* Gift tiles */
.gift-type-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}

.gift-tile {
  background: var(--white);
  border: 2.5px solid var(--pink-1);
  border-radius: 16px;
  padding: .75rem .4rem .6rem;
  text-align: center;
  cursor: pointer;
  transition: all .22s ease;
  user-select: none;
}

.gift-tile:hover { border-color: var(--pink-2); transform: translateY(-2px); }

.gift-tile.active {
  border-color: var(--pink-3);
  background: linear-gradient(135deg, #fff0f7, var(--white));
  box-shadow: 0 4px 14px var(--shadow);
}

.tile-emoji { font-size: 1.5rem; margin-bottom: .25rem; }

.gift-tile p {
  font-size: .65rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.3;
}

/* Form fields */
.form-field {
  width: 100%;
  padding: .7rem .95rem;
  border: 2px solid var(--pink-1);
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.form-field:focus {
  border-color: var(--pink-3);
  box-shadow: 0 0 0 3px rgba(233,30,140,.12);
}

.form-textarea { resize: vertical; min-height: 76px; }

/* Generate button */
.gen-link-btn {
  width: 100%;
  padding: .85rem;
  background: linear-gradient(135deg, var(--pink-3), var(--purple-3));
  color: var(--white);
  font-family: 'Bubblegum Sans', cursive;
  font-size: 1.05rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(233,30,140,.45);
  transition: transform var(--transition), box-shadow var(--transition);
  margin-bottom: .9rem;
}

.gen-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(233,30,140,.55);
}

/* Share result */
.share-result {
  display: none;
  flex-direction: column;
  gap: .5rem;
}
.share-result.show { display: flex; animation: fadeUpIn .35s ease; }

.share-url-row {
  display: flex;
  gap: .45rem;
}

.share-url-box {
  flex: 1;
  padding: .6rem .85rem;
  border: 2px solid var(--pink-1);
  border-radius: 10px;
  font-size: .75rem;
  color: var(--text-mid);
  background: #fff9fb;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  outline: none;
  width: 100%;
}

.copy-btn {
  background: linear-gradient(135deg, #818cf8, var(--purple-3));
  color: var(--white);
  border: none;
  padding: .6rem 1rem;
  border-radius: 10px;
  font-size: .82rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s;
  margin-top: .3rem;
}
.copy-btn:hover { transform: scale(1.05); }

.copy-ok {
  display: none;
  text-align: center;
  font-size: .82rem;
  color: #16a34a;
  font-weight: 800;
}
.copy-ok.show { display: block; animation: fadeUpIn .3s ease; }

/* =========================================================
   CELEBRATION OVERLAY
   ========================================================= */
.celeb-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(233,30,140,.88), rgba(124,58,237,.88));
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.celeb-overlay.show { display: flex; }

.celeb-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.2rem 1.8rem 1.8rem;
  max-width: 360px;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: celebPop .5s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 28px 70px rgba(0,0,0,.3);
}

@keyframes celebPop {
  from { transform: scale(.4) rotate(-5deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg);  opacity: 1; }
}

.celeb-quby {
  width: 125px;
  height: 125px;
  margin: 0 auto .8rem;
  filter: drop-shadow(0 6px 14px rgba(233,30,140,.2));
}
.celeb-quby svg { width: 100%; height: 100%; }

.celeb-title {
  font-family: 'Bubblegum Sans', cursive;
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: .45rem;
  animation: titleWiggle .5s ease .3s both;
}

@keyframes titleWiggle {
  0%,100% { transform: rotate(0); }
  25%      { transform: rotate(-3deg); }
  75%      { transform: rotate(3deg); }
}

.celeb-msg {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.confetti-zone {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.conf-bit {
  position: absolute;
  border-radius: 2px;
  animation: confFall linear infinite;
}

@keyframes confFall {
  0%   { transform: translateY(-24px) rotate(0deg);    opacity: 1; }
  100% { transform: translateY(110%)  rotate(720deg);  opacity: 0; }
}

.celeb-close {
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, var(--pink-3), var(--purple-3));
  color: var(--white);
  font-family: 'Bubblegum Sans', cursive;
  font-size: 1.05rem;
  padding: .8rem 2.2rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(233,30,140,.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.celeb-close:hover { transform: scale(1.06); box-shadow: 0 10px 28px rgba(233,30,140,.55); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1.5px solid rgba(233,30,140,.13);
  padding: .42rem 1.25rem .44rem;
  text-align: center;
  z-index: 50;
  box-shadow: 0 -4px 18px rgba(233,30,140,.07);
  display: flex;
  flex-direction: column;
  gap: .18rem;
}
 
/* ── Line 1 ── */
.footer-line-one {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .52rem;
  flex-wrap: nowrap;
}
 
.footer-credit {
  font-size: .72rem;
  color: var(--text-mid);
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: .01em;
}
 
.heart-beat {
  display: inline-block;
  animation: heartPulse 1.3s ease-in-out infinite;
}
 
@keyframes heartPulse {
  0%,100% { transform: scale(1); }
  14%      { transform: scale(1.38); }
  28%      { transform: scale(1); }
  42%      { transform: scale(1.18); }
  70%      { transform: scale(1); }
}
 
/* ── Icon-only circle buttons ── */
.soc-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease;
}
 
.soc-icon-btn:hover {
  transform: translateY(-3px) scale(1.18);
}
 
/* Instagram — brand gradient */
.soc-icon-btn.soc-instagram {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
  box-shadow: 0 3px 10px rgba(220,39,67,.38);
}
.soc-icon-btn.soc-instagram:hover {
  box-shadow: 0 6px 18px rgba(220,39,67,.52);
}
 
/* X — pitch black */
.soc-icon-btn.soc-x {
  background: #0f172a;
  color: #fff;
  box-shadow: 0 3px 10px rgba(15,23,42,.32);
}
.soc-icon-btn.soc-x:hover {
  box-shadow: 0 6px 18px rgba(15,23,42,.48);
}
 
/* ── Line 2: copyright ── */
.footer-copy {
  font-size: .63rem;
  color: #a78baa;
  font-weight: 600;
  letter-spacing: .03em;
  white-space: nowrap;
}
 
/* very small screens */
@media (max-width: 320px) {
  .footer-credit { font-size: .65rem; }
  .soc-icon-btn  { width: 24px; height: 24px; }
}

/* =========================================================
   UTILITY ANIMATIONS
   ========================================================= */
@keyframes fadeUpIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Shake */
.do-shake { animation: doShake .5s ease; }

@keyframes doShake {
  0%,100% { transform: translateX(0); }
  15%      { transform: translateX(-10px) rotate(-2deg); }
  35%      { transform: translateX(10px)  rotate(2deg); }
  55%      { transform: translateX(-7px)  rotate(-1deg); }
  75%      { transform: translateX(7px)   rotate(1deg); }
}

/* Glitch */
.do-glitch { animation: doGlitch .25s steps(2) 6; }

@keyframes doGlitch {
  0%   { transform: translate(0);       filter: none; }
  25%  { transform: translate(-4px, 2px); filter: hue-rotate(90deg) saturate(2); }
  50%  { transform: translate(4px, -2px); filter: hue-rotate(200deg); }
  75%  { transform: translate(-2px, 3px); filter: hue-rotate(300deg) brightness(1.5); }
  100% { transform: translate(0);       filter: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 440px) {
  .app-wrap   { padding: .6rem .9rem 7.5rem; gap: .85rem; }
  .gift-stage { width: 138px; height: 158px; }
  .gift-lid   { width: 146px; height: 46px; }
  .gift-body  { width: 138px; height: 106px; }
  .btn        { padding: .72rem 1.5rem; font-size: .97rem; }
  .share-fab  { right: 12px; bottom: 82px; padding: .65rem 1.2rem; font-size: .88rem; }
  .speech-bubble { max-width: 235px; }
}

@media (max-width: 360px) {
  .action-row  { flex-direction: column; align-items: center; }
  .btn         { width: 195px; justify-content: center; }
  .gift-type-row { gap: .35rem; }
  .gift-tile p { font-size: .6rem; }
}

/* scrollbar for modal */
.share-modal::-webkit-scrollbar { width: 5px; }
.share-modal::-webkit-scrollbar-track { background: transparent; }
.share-modal::-webkit-scrollbar-thumb { background: var(--pink-2); border-radius: 99px; }