/* ==========================================================================
   POSTER AESTHETIC - SORRYYY SORRYYY PIYUUUUUUU ♡
   Exact Match to Dream Mobile Wallpaper Design
   ========================================================================== */

:root {
  --night-deep: #09020c;
  --night-plum: #1c0823;
  --night-purple: #2f0e3a;
  --neon-pink: #ff3377;
  --neon-glow: rgba(255, 51, 119, 0.75);
  --paper-bg: #fff0ec;
  --paper-text: #2f0b1e;
  --font-hand: 'Caveat', cursive;
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background-color: var(--night-deep);
}

body.poster-page {
  min-height: 100vh;
  font-family: var(--font-sans);
  background: radial-gradient(ellipse at 50% 20%, #3e1648 0%, #240c2c 45%, #120516 75%, #08020b 100%);
  color: #ffffff;
  overflow-x: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 16px 12px 40px 12px;
}

/* ==========================================================================
   1. DUSKY ROMANTIC NIGHT SKY & LOW OPACITY AMBIENT STREAM
   ========================================================================== */
.night-sky-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-stars .star {
  position: absolute;
  color: rgba(255, 230, 240, 0.75);
  animation: starTwinkle 3s ease-in-out infinite alternate;
  user-select: none;
}

.s1 { top: 8%; left: 15%; font-size: 16px; animation-delay: 0.2s; }
.s2 { top: 12%; right: 28%; font-size: 18px; animation-delay: 0.9s; }
.s3 { top: 28%; left: 8%; font-size: 14px; animation-delay: 1.5s; }
.s4 { top: 38%; right: 12%; font-size: 15px; animation-delay: 0.5s; }
.s5 { top: 62%; left: 14%; font-size: 16px; animation-delay: 1.2s; }
.s6 { top: 78%; right: 16%; font-size: 14px; animation-delay: 0.8s; }

@keyframes starTwinkle {
  0% { opacity: 0.25; transform: scale(0.85); }
  100% { opacity: 0.95; transform: scale(1.15); filter: drop-shadow(0 0 6px #ff80aa); }
}

/* Ambient low-opacity "SORRY" stream */
.sorry-stream-ambient {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  opacity: 0.22;
  user-select: none;
}

.stream-col {
  display: flex;
  flex-direction: column;
  gap: 40px;
  animation: scrollStream 30s linear infinite;
}

.stream-col span {
  font-family: var(--font-hand);
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(255, 100, 150, 0.15);
  white-space: nowrap;
  letter-spacing: 1px;
}

.col-2 {
  animation-duration: 38s;
  animation-delay: -10s;
}

@keyframes scrollStream {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* ==========================================================================
   2. FLOATING CHOCOLATES & NEON HEARTS LAYER
   ========================================================================== */
.floating-items-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.floating-ambient-item {
  position: absolute;
  bottom: -60px;
  user-select: none;
  animation: floatAmbientUp linear infinite;
}

.floating-ambient-item.heart-item {
  color: rgba(255, 120, 160, 0.7);
  font-family: var(--font-hand);
  font-size: 26px;
  filter: drop-shadow(0 0 8px rgba(255, 50, 100, 0.6));
}

.floating-ambient-item.choc-item {
  font-size: 22px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

@keyframes floatAmbientUp {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.85);
    opacity: 0;
  }
  15% { opacity: 0.75; }
  85% { opacity: 0.75; }
  100% {
    transform: translateY(-110vh) rotate(360deg) scale(1.15);
    opacity: 0;
  }
}

/* ==========================================================================
   3. MAIN POSTER CONTAINER (9:16 MOBILE POSTER LAYOUT)
   ========================================================================== */
.poster-phone-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0 auto;
}

/* ==========================================================================
   4. TOP BAR: TAPED NOTE & CRESCENT MOON
   ========================================================================== */
.poster-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 6px 4px 0 4px;
}

/* Taped Note: Piyuuuuuuu ♡ */
.tape-note-wrapper {
  position: relative;
  transform: rotate(-6deg);
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.45));
}

.washi-tape-strip {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 18px;
  background: rgba(255, 205, 225, 0.65);
  border-left: 2px dashed rgba(255, 170, 195, 0.6);
  border-right: 2px dashed rgba(255, 170, 195, 0.6);
  z-index: 2;
  backdrop-filter: blur(2px);
}

.tape-paper-note {
  background: #fde6ee;
  border: 1px solid rgba(255, 185, 205, 0.5);
  border-radius: 4px;
  padding: 7px 18px 6px 18px;
  box-shadow: inset 0 0 10px rgba(255, 160, 190, 0.25);
}

.tape-text {
  font-family: var(--font-hand);
  font-size: 1.65rem;
  font-weight: 700;
  color: #350b22;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* Crescent Moon with Clouds */
.moon-cloud-widget {
  position: relative;
  width: 60px;
  height: 50px;
}

.glowing-crescent-moon {
  position: absolute;
  top: 4px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: -5px 5px 0 0 #fff3ce, 0 0 20px rgba(255, 240, 180, 0.7);
  transform: rotate(-10deg);
}

.fluffy-cloud {
  position: absolute;
  background: rgba(140, 60, 120, 0.35);
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.c1 { width: 44px; height: 16px; top: 22px; right: 0; }
.c2 { width: 30px; height: 12px; top: 16px; right: 18px; opacity: 0.6; }

/* ==========================================================================
   5. NEON TITLE: Sorryyy ♡ Sorryyy
   ========================================================================== */
.neon-sorry-title-section {
  position: relative;
  text-align: center;
  padding: 4px 0 0 0;
}

.neon-handwriting-title {
  font-family: var(--font-hand);
  font-size: 3.5rem;
  line-height: 0.95;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-shadow: 
    0 0 8px #ffffff,
    0 0 18px #ff3377,
    0 0 35px #ff2066,
    0 0 55px rgba(255, 32, 102, 0.8);
}

.title-row-1 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: rotate(-2deg);
}

.heart-crack {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 10px #ff3377);
  animation: pulseCrack 2s ease-in-out infinite;
}

.title-row-2 {
  transform: rotate(2deg) translateX(12px);
}

.title-sparkle {
  position: absolute;
  color: #fff4d0;
  font-size: 18px;
  animation: sparkleTwinkle 2s infinite alternate ease-in-out;
}

.t-left { top: 10px; left: 24px; }
.t-right { top: 20px; right: 28px; animation-delay: 1s; }

.neon-heart-icon {
  position: absolute;
  font-family: var(--font-hand);
  font-size: 2.2rem;
  color: #ff6699;
  filter: drop-shadow(0 0 12px #ff2568);
  animation: heartFloat 3s ease-in-out infinite alternate;
}

.h-left { top: 40px; left: 16px; }
.h-right { top: 48px; right: 20px; animation-delay: 1.5s; }

@keyframes sparkleTwinkle {
  0% { transform: scale(0.8) rotate(0deg); opacity: 0.5; }
  100% { transform: scale(1.25) rotate(15deg); opacity: 1; }
}

@keyframes heartFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px) scale(1.08); }
}

@keyframes pulseCrack {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* ==========================================================================
   6. CENTER HERO: ADORABLE CRYING MOCHI CHARACTER
   ========================================================================== */
.crying-character-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -6px;
}

.ambient-wire-heart {
  position: absolute;
  font-family: var(--font-hand);
  color: #ff6b9d;
  font-size: 2.1rem;
  filter: drop-shadow(0 0 12px #ff3377);
  animation: floatWireHeart 3.5s ease-in-out infinite alternate;
  user-select: none;
}

.wh-1 { top: 20px; left: 22px; animation-delay: 0.3s; }
.wh-2 { top: 75px; left: 12px; font-size: 1.8rem; animation-delay: 1.1s; }
.wh-3 { top: 30px; right: 18px; animation-delay: 0.7s; }
.wh-4 { top: 85px; right: 22px; font-size: 1.8rem; animation-delay: 1.8s; }

@keyframes floatWireHeart {
  0% { transform: translateY(0) scale(0.95); opacity: 0.7; }
  100% { transform: translateY(-10px) scale(1.1); opacity: 1; }
}

.character-display-wrap {
  position: relative;
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crying-mochi-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 25px rgba(255, 60, 120, 0.55));
  animation: floatMochi 4s ease-in-out infinite;
  user-select: none;
}

.neon-character-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 51, 102, 0.45) 0%, rgba(255, 51, 102, 0) 70%);
  animation: auraPulse 2.5s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes floatMochi {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes auraPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.28); opacity: 0.95; }
}

/* Button to toggle polaroid of drawing he made */
.btn-toggle-drawing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: -6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 180, 210, 0.3);
  color: #ffe6ef;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.btn-toggle-drawing:hover,
.btn-toggle-drawing:active {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(0.97);
}

.drawing-popup-card {
  margin-top: 10px;
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.drawing-polaroid {
  background: #ffffff;
  padding: 10px 10px 14px 10px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  text-align: center;
  width: 200px;
}

.polaroid-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  background: #faf8f5;
  border-radius: 6px;
}

.polaroid-caption {
  font-family: var(--font-hand);
  font-size: 1.15rem;
  font-weight: 700;
  color: #331122;
  margin-top: 8px;
}

@keyframes popIn {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   7. TORN PAPER APOLOGY LETTER (WITH WASHI TAPE)
   ========================================================================== */
.torn-paper-letter-section {
  position: relative;
  margin: 6px 4px 0 4px;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
}

.washi-tape-pin {
  position: absolute;
  top: -8px;
  left: 14px;
  width: 52px;
  height: 20px;
  background: rgba(255, 190, 215, 0.65);
  border-left: 2px dashed rgba(255, 150, 180, 0.6);
  border-right: 2px dashed rgba(255, 150, 180, 0.6);
  transform: rotate(-15deg);
  z-index: 3;
}

.torn-paper-content {
  background: var(--paper-bg);
  border-radius: 16px;
  padding: 22px 20px 20px 20px;
  color: var(--paper-text);
  position: relative;
  box-shadow: inset 0 0 20px rgba(255, 190, 210, 0.25);
  border: 1px solid rgba(255, 200, 220, 0.6);
}

.letter-top-badge {
  text-align: center;
  margin-bottom: 12px;
}

.letter-heading {
  font-family: var(--font-hand);
  font-size: 2.3rem;
  font-weight: 700;
  color: #3d0c24;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.letter-body-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--font-hand);
  font-size: 1.55rem;
  line-height: 1.35;
  color: #401028;
  font-weight: 600;
  text-align: center;
}

.intro-hindi {
  font-size: 1.45rem;
  color: #63183d;
}

.user-marathi-msg {
  font-size: 1.6rem;
  line-height: 1.4;
  color: #2b0618;
  font-weight: 700;
  background: rgba(255, 220, 235, 0.4);
  padding: 8px 12px;
  border-radius: 10px;
  border-left: 3px solid #ff3377;
  text-align: left;
}

.closing-plea {
  font-size: 1.6rem;
  color: #ff1966;
  font-weight: 700;
}

/* ==========================================================================
   8. FROSTED GLASS MUSIC PLAYER (FROM 45s)
   ========================================================================== */
.glass-music-player {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 140, 185, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 40px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.08);
}

.player-btn-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff2a70, #ff5e92);
  border: 2px solid rgba(255, 210, 230, 0.8);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255, 42, 112, 0.7);
  transition: transform 0.18s ease;
  flex-shrink: 0;
}

.player-btn-play:active {
  transform: scale(0.92);
}

.player-btn-icon {
  font-size: 15px;
  font-weight: 900;
}

.player-info-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.song-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
}

.music-note-icon {
  font-size: 13px;
  animation: noteBounce 1.5s ease-in-out infinite;
}

.player-song-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffe6ef;
  text-overflow: ellipsis;
  overflow: hidden;
  letter-spacing: 0.3px;
}

@keyframes noteBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.player-scrubber-row {
  width: 100%;
}

.music-progress-bar {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.music-progress-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: #ff548d;
  border: 2px solid #ffffff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px #ff2568;
}

.player-timestamp-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 215, 230, 0.75);
}

.player-heart-btn {
  background: transparent;
  border: none;
  color: #ff6699;
  font-family: var(--font-hand);
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.player-heart-btn:active {
  transform: scale(1.3);
  color: #ff1a66;
}

/* ==========================================================================
   9. GLOWING PINK PILL DECISION BUTTON
   ========================================================================== */
.maaf-button-section {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.btn-maaf-kar-do {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(255, 40, 105, 0.9), rgba(255, 80, 140, 0.95));
  border: 2.5px solid rgba(255, 215, 235, 0.9);
  border-radius: 50px;
  padding: 16px 20px;
  color: #ffffff;
  font-family: var(--font-hand);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 
    0 0 25px rgba(255, 40, 105, 0.75),
    0 0 50px rgba(255, 40, 105, 0.35),
    inset 0 0 16px rgba(255, 255, 255, 0.4);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.btn-maaf-kar-do:hover,
.btn-maaf-kar-do:active {
  transform: scale(0.97);
  box-shadow: 
    0 0 35px rgba(255, 40, 105, 0.9),
    0 0 70px rgba(255, 40, 105, 0.5),
    inset 0 0 20px rgba(255, 255, 255, 0.6);
}

.btn-heart-left {
  font-size: 1.9rem;
  animation: heartPulseSlow 1.8s infinite alternate ease-in-out;
}

@keyframes heartPulseSlow {
  0% { transform: scale(0.9); }
  100% { transform: scale(1.25); filter: drop-shadow(0 0 6px #ffffff); }
}

/* ==========================================================================
   10. BOTTOM LANDSCAPE: FLUFFY CLOUDS & CAT LOOKING UP
   ========================================================================== */
.poster-bottom-landscape {
  position: relative;
  height: 90px;
  margin-top: 4px;
  overflow: visible;
}

.clouds-backdrop {
  position: absolute;
  bottom: 0;
  left: -20px;
  right: -20px;
  height: 70px;
  pointer-events: none;
}

.landscape-cloud {
  position: absolute;
  bottom: 0;
  border-radius: 50px 50px 0 0;
  background: linear-gradient(to top, rgba(200, 90, 150, 0.35), rgba(120, 40, 90, 0.2));
  backdrop-filter: blur(6px);
}

.bg-1 { left: -10px; width: 180px; height: 50px; }
.bg-2 { left: 130px; width: 220px; height: 65px; background: linear-gradient(to top, rgba(230, 110, 170, 0.4), rgba(140, 50, 105, 0.25)); }
.bg-3 { right: -20px; width: 160px; height: 45px; }

/* Cat silhouette looking up */
.cat-silhouette-wrapper {
  position: absolute;
  bottom: 6px;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 5;
}

.speech-bubble-heart {
  background: #ffffff;
  color: #ff3377;
  font-family: var(--font-hand);
  font-size: 16px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  margin-bottom: 4px;
  animation: bubbleWobble 2.5s infinite alternate ease-in-out;
}

@keyframes bubbleWobble {
  0% { transform: translateY(0) scale(0.95); }
  100% { transform: translateY(-5px) scale(1.08); }
}

.cat-silhouette-shape {
  position: relative;
  width: 44px;
  height: 52px;
}

.cat-body {
  position: absolute;
  bottom: 0;
  width: 44px;
  height: 34px;
  background: #250b28;
  border-radius: 22px 22px 8px 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.cat-head {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 32px;
  height: 26px;
  background: #250b28;
  border-radius: 50%;
}

.cat-ears {
  position: absolute;
  top: 0;
  left: 6px;
  width: 32px;
  height: 12px;
}

.cat-ears::before,
.cat-ears::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 12px solid #250b28;
}

.cat-ears::before { left: 1px; transform: rotate(-15deg); }
.cat-ears::after { right: 1px; transform: rotate(15deg); }

.cat-collar {
  position: absolute;
  top: 24px;
  left: 10px;
  width: 24px;
  height: 3px;
  background: #ff3377;
  border-radius: 2px;
  box-shadow: 0 0 6px #ff3377;
}

/* ==========================================================================
   11. MOBILE SCREEN OPTIMIZATIONS
   ========================================================================== */
@media (max-width: 420px) {
  .neon-handwriting-title {
    font-size: 3rem;
  }

  .character-display-wrap {
    width: 220px;
    height: 220px;
  }

  .letter-heading {
    font-size: 2rem;
  }

  .letter-body-text {
    font-size: 1.45rem;
  }

  .user-marathi-msg {
    font-size: 1.45rem;
  }

  .btn-maaf-kar-do {
    font-size: 1.65rem;
    padding: 14px 18px;
  }
}
