/* ============================================================
   FONTS
============================================================ */


@font-face {
  font-family: "Cavalhatriz";
  src: url("/fonts/Cavalhatriz.ttf");
}

@font-face {
  font-family: "kuchibue";
  src: url("/fonts/kuchibue.ttf");
}

@font-face {
  font-family: "Spirit";
  src: url("/fonts/Spirit.ttf");
}

@font-face {
  font-family: "PixelatedElegance";
  src: url("/fonts/elegance.ttf");
}

@font-face {
  font-family: "Emoji";
  src: url("/fonts/EmojiFont.ttf");
}
@font-face {
  font-family: "Pixel";
  src: url("/fonts/pixel.otf");
}
@font-face {
  font-family: "Mademoiselle";
  src: url("/fonts/Mademoiselle.ttf");
}
@font-face {
  font-family: "Willow";
  src: url("/fonts/willow.ttf");
}
/* ============================================================
   ROOT VARIABLES
============================================================ */

:root {
  --shadow-soft: 0 6px 16px rgba(141, 124, 118, 0.25);
    --dash:#bfa68c;
  --dash-w:1px;
}

/* ============================================================
   RESET / BASE
============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Willow', sans-serif;
  color: var(--brown-dark);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #ffe0ef;
  background-image: url('/media/background/back.png');
  background-size: 500px;
  background-repeat: repeat;
  background-attachment: fixed;
}

[data-theme='dark'] body {
  background-image: url('https://f2.toyhou.se/file/f2-toyhou-se/images/35342460_Iv97SvQcTNgFjtb.png');
  background-size: 500px;
  background-repeat: repeat;
  background-attachment: fixed;
}

body::after {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  opacity: 50%;
  background-image: url('/media/decor/microblog.png');
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% auto;
  filter: drop-shadow(0 -6px 14px rgba(0, 0, 0, 0.08));
  pointer-events: none;
  z-index: -1;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
    opacity: 50%;
  height: auto;
  aspect-ratio: 16 / 9;
  background-image: url(/media/decor/microblog.png);
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 100% auto;
  transform: scaleY(-1);
  filter: drop-shadow(0 -6px 14px rgba(0, 0, 0, 0.08));
  pointer-events: none;
  z-index: -2;
}

[data-theme='dark'] body::after {
  background-image: url('/pic/tumblr_f689bf2a977f6c08bb401f35b332070b_3e7ac08c_400.png');
      opacity: 100%;


}

[data-theme='dark'] body::before {
  background-image: url('/pic/tumblr_f689bf2a977f6c08bb401f35b332070b_3e7ac08c_400.png');
      opacity: 100%;

}

h3 {
  margin-bottom: 6px;
}

      ::selection {
         text-shadow: 0 0 3px rgb(156, 102, 133);
         color: white;
      }

      ::-moz-selection {
         text-shadow: 0 0 3px black;
         color: white;
      }

::-webkit-scrollbar {
  width: 8px;
  height: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
  margin: 5px;
}

::-webkit-scrollbar-thumb {
  background-color: #ffcce6;
  border-radius: 50px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #ffb3d9;
}

mark {
  background-color: #ffe9f2;
  color: #8d7c76;
  padding: 0 4px;
  border-radius: 10px;
}

ul {
  list-style: none;
}



/* ============================================================
   DESKTOP / FRAME LAYOUT
============================================================ */

.desktop {
  position: relative;
  z-index: 1;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

.frame-wrapper {
  position: relative;
  border: 10px solid;
  border-image: url(/media/borders/whitelace.png) 30 fill repeat;
  border-image-outset: 9px;
  border-radius: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.405);
  background: white;
}



.frame::before {
content: "";
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
background-image: url('/placeholder.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  pointer-events: none;
  z-index: 10;
}

[data-theme='dark'] .frame::before {
content: "";
  width: 50px;
background-image: url('/media/decor/draculaura.gif');

}

.frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100vh;
  background: white;
  border-radius: 10px;
  border: 1px solid #ffffff;
  outline: 2px solid #ffd8e8;
  padding: 0;
  display: flex;
  flex-direction: column;
      border:var(--dash-w) solid var(--dash);
  outline:var(--dash-w) dashed var(--dash);
  outline-offset:-4px;
}

#lace {
  background-image: url(https://file.garden/aS-t0Aj4K3mdDujK/kkul/graphics/lacey.png);
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-color: transparent;
  width: 100%;
  height: 20px;
  filter: drop-shadow(0px 1px #D1B9B3);
  flex-shrink: 0;
  z-index: 10;
  image-rendering: crisp-edges;
}



/* ============================================================
   WINDOW HEADER / DECOR
============================================================ */

.win-decor {
  position: absolute;
  top: -62px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: auto;
  pointer-events: none;
  z-index: 5;
  filter: drop-shadow(0 2px 2px rgba(141, 124, 118, 0.25));
}

.win-header {
  background: #ffeff7;
  background-image: url('/media/background/invertedpinkpolka.gif');
  padding: 8px 12px;
  display: flex;
  font-family: pixel;
  text-align: center;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid #ffdaed;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  box-shadow: inset 2px 2px 0px rgba(255, 255, 255, 0.8), inset -2px -2px 2px rgba(215, 127, 171, 0.15);
  user-select: none;
  flex-shrink: 0;
}

[data-theme='dark'] .win-header {
   background-image:
    radial-gradient(circle, white 19%, transparent 21%),
    radial-gradient(circle, white 19%, transparent 21%),
    linear-gradient(to bottom, #F7E8FF 0%, #F7E8FF 5%, #B799C4 100%);
  background-size: 18px 18px, 18px 18px, 100% 100%;
  background-position: 0 0, 9px 9px, 0 0;
    border-bottom: 1px solid #b29abf;
      box-shadow: inset 2px 2px 0px rgba(255, 255, 255, 0.8), inset -2px -2px 2px rgba(215, 127, 171, 0.15);


}

.win-title {
  background: linear-gradient(to top, #e4aec9 2%,  #ffffff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        -webkit-text-stroke-width: 0px;
        -webkit-text-stroke-color: #FE62B6;
  filter: drop-shadow( 0 1px #a3846e) drop-shadow( 1px 0 #a3846e) drop-shadow( 0 -1px #dbb79e) drop-shadow( -1px 0 #a3846e) drop-shadow( 0 5px white) drop-shadow( 3px 0 white) drop-shadow( 0 -3px white) drop-shadow( -3px 0 white) drop-shadow(1px 1px 0 rgba(172,172,172,0.6)) drop-shadow(1px 1px 0 rgba(172,172,172,0.6)) drop-shadow( 0 0 2px #424242);
  color:#FDE6FF;
  font-family: pixel;
  text-align: center;
  justify-content: center;
  font-size: 1.3em;
  margin-left: 10px;
  
}

[data-theme='dark'] .win-title {
  background: linear-gradient(to top, #bca1c7 2%,  #ffffff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        -webkit-text-stroke-width: 0px;
        -webkit-text-stroke-color: #FE62B6;
  filter: drop-shadow( 0 1px #a3846e) drop-shadow( 1px 0 #a3846e) drop-shadow( 0 -1px #dbb79e) drop-shadow( -1px 0 #a3846e) drop-shadow( 0 5px white) drop-shadow( 3px 0 white) drop-shadow( 0 -3px white) drop-shadow( -3px 0 white) drop-shadow(1px 1px 0 rgba(172,172,172,0.6)) drop-shadow(1px 1px 0 rgba(172,172,172,0.6)) drop-shadow( 0 0 2px #424242);
  color:#FDE6FF;
  font-family: pixel;
  text-align: center;
  justify-content: center;
  font-size: 1.3em;
  margin-left: 10px;
  
}


.win-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  font-weight: normal;
  font-size: 12px;
  color: #333333;
  flex: 1;
  min-height: 0;
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
}


/* ============================================================
   MESSAGE POSTS
============================================================ */

.msg-post {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  margin-bottom: 22px;
  box-sizing: border-box;
}

.msg-post.left {
  justify-content: flex-start;
}

.msg-post.right {
  justify-content: flex-end;
}

.msg-post.right .msg-user-wrap {
  order: 2;
}

.msg-user-wrap {
  position: relative;
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
}

.msg-user {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 5px solid #ffffff;
filter: drop-shadow(0px 5px 5px  rgba(0, 0, 0, 0.5));
  border-image: url('/media/borders/lacev2-3.png') 25 fill round;
  border-radius: 14px;
  box-sizing: border-box;
}

[data-theme='dark'] .msg-user {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 5px solid #ffffff;
filter: drop-shadow(0px 5px 5px  rgba(0, 0, 0, 0.5));
  border-image: url('/media/borders/lacev2-1.png') 25 fill round;
  border-radius: 14px;
  box-sizing: border-box;
}

.msg-user-decor {
  position: absolute;
 top: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: auto;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 2px 1px rgba(141, 124, 118, 0.25));
}

.msg-post.left .msg-content {
  align-items: flex-start;
}

.msg-post.right .msg-content {
  align-items: flex-end;
}

.msg-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 65%;
}

.msg-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  margin-bottom: 5px;
}

.msg-post.right .msg-meta {
  flex-direction: row-reverse;
}

.msg-name {
  font-family: 'kuchibue';
  font-size: 1.5em;
  color: #e1afc4;
  letter-spacing: .5px;
}

[data-theme='dark'] .msg-name {
  color: #ab96b0;

}

        .msg-name::before {
content:  url('/media/decor/pencil.png');
}

[data-theme='dark'] .msg-name::before {
content:  url('/pic/IMG_0567.gif');

    }
    
  
.msg-post.right .msg-name {
  color: #c6a38e;
}

[data-theme='dark'] .msg-post.right .msg-name {
  color: #4d3c52;
}

.msg-reading {
  font-family: 'willow';
  font-size: 11px;
  color: #9e7b67;
  letter-spacing: .3px;
}

[data-theme='dark'] .msg-reading {
  color: #b4a3c4;
}

        .msg-post.right .msg-name::before {
          align-items: center;
content: "";
    }



.msg-mood {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* ============================================================
   MESSAGE BUBBLES
============================================================ */

.msg-bubble {
  position: relative;
  display: inline-block;
  min-width: 55px;
  max-width: 100%;
  padding: 13px 17px;
  background: #fef5f9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 4px 4px 0px rgba(255, 255, 255, 0.8), inset -4px -4px 4px rgba(215, 127, 171, 0.15);
  border-radius: 0 10px 10px 10px;
  border: 1px solid #fcc9de;
  box-sizing: border-box;
  font-family: "pixelatedelegance", sans-serif;
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: 0.5px;
  color: #ac9287;
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
    border:var(--dash-w) solid var(--dash);
  outline:var(--dash-w) dashed var(--dash);
  outline-offset:-4px;
}

[data-theme='dark'] .msg-bubble {
  background: #f1e9f7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 4px 4px 0px rgba(255, 255, 255, 0.8), inset -4px -4px 4px rgba(149, 119, 173, 0.15);
  border-radius: 0 10px 10px 10px;
  border: 1px solid #ab92bf;
  color: #ab92bf;
}


.msg-bubble a {
  color: #e9bacd;
  text-decoration: underline;
  text-decoration-color: #fcc9de;
}

.msg-bubble strong {
  color: #977f75;
  font-weight: 700;
}

.msg-bubble img.inline-emote {
  display: inline-block;
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  margin: 0 2px;
}

.msg-post.right .msg-bubble {
  background: #fcfafa;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 4px 4px 0px rgb(255, 255, 255), inset -4px -4px 4px rgba(128, 112, 120, 0.15);
  border: 1px solid #ac9287;
  border-radius: 10px 0 10px 10px;
}

[data-theme='dark'] .msg-post.right .msg-bubble {
  background: #a3a3a3;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), inset 4px 4px 0px rgb(186, 186, 186), inset -4px -4px 4px rgba(77, 77, 77, 0.15);
  border: 1px solid #383838;
  border-radius: 10px 0 10px 10px;
}

.msg-bubble.image {
  padding: 6px;
  line-height: 0;
  overflow: hidden;
}

.msg-bubble.image img {
  display: block;
  width: 100%;
  max-width: 280px;
  border-radius: 6px;
  object-fit: cover;

}

.msg-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
  width: 100%;
}

.msg-post.right .msg-footer {
  flex-direction: row-reverse;
}

.msg-post.right .msg-footer.time-left {
  flex-direction: row;
  justify-content: space-between;
}

.msg-mood-label {
  font-family: 'willow';
  font-size: 9px;
  letter-spacing: 0.3px;
  color: #a2876d;
  opacity: .7;
}

.msg-time {
  font-family: 'mademoiselle';
  font-size: 9px;
  letter-spacing: 0.3px;
  color: #a2876d;
  opacity: .7;
  text-transform: lowercase;
}

/* ============================================================
   VIDEO BUBBLE
============================================================ */

.msg-bubble.video {
  padding: 6px;
  overflow: hidden;
  max-width: 290px;
}

.video-media {
  position: relative;
  line-height: 0;
  cursor: pointer;
}

.video-media img,
.video-media iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: contain;
  border: none;
  background: #00000000;
}

.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.85);
  border: 2px solid #fcc9de;
  padding-top: 7px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(141, 124, 118, 0.3);
  transition: transform 0.15s ease, background 0.2s ease;

}

.video-media:hover .video-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: #ffdeef;
}



/* ============================================================
   SPOTIFY BUBBLE
============================================================ */

.msg-bubble.spotify {
  padding: 10px;
  max-width: 280px;
}

.spotify-media {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.spotify-cover {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #b79ea9;
}

.spotify-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.spotify-title {
  font-family: "Spirit", sans-serif;
  font-size: 12px;
  font-weight: 100px;
  color: #a07e6f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme='dark'] .spotify-title {
    font-family: "Spirit", sans-serif;
  font-size: 12px;
  font-weight: 100px;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

}

.spotify-artist {
  font-family: "pixelatedelegance", sans-serif;
  font-size: 6px;
  color: #a68b95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

[data-theme='dark'] .spotify-artist {
  color: #000;

}


.spotify-play-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffe9f4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease;
  box-shadow:
    inset 2px 2px 3px rgba(255, 255, 255, 0.6),
    inset -2px -2px 3px rgba(183, 95, 129, 0.5);
}

[data-theme='dark'] .spotify-play-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e8ddf2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease;
  box-shadow:
    inset 2px 2px 3px rgba(255, 255, 255, 0.6),
    inset -2px -2px 3px rgba(183, 95, 129, 0.5);
}

.spotify-media:hover .spotify-play-btn {
  transform: scale(1.1);
}

.msg-bubble.spotify iframe {
  display: block;
  width: 100%;
  height: 152px;
  border-radius: 8px;
  border: none;
}

/* ============================================================
   DAY DIVIDER
============================================================ */

.day-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 6px 0 22px;
  user-select: none;
}

.day-divider:first-child {
  margin-top: 4px;
}

.day-divider::before,
.day-divider::after {
  content: "";
  flex: 1;
  height: 0;
  border-top:8px solid #501e33;
  border-image: url('/media/decor/linedheading.png') 15 round;
}

[data-theme='dark'] .day-divider::before, [data-theme='dark'] .day-divider::after {
  content: "";
  flex: 1;
  height: 0;
  border-top:8px solid #501e33;
  border-image: url('/media/decor/black-lined-heading.png') 15 round;
}




.day-divider span {
  font-family: 'Spirit';
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #a38b72;
  border-radius: 10px;
  padding: 4px 12px;
  white-space: nowrap;
  opacity: .7;
  text-transform: capitalize;
  -webkit-background-clip: text;
-webkit-text-fill-color: transparent;
-webkit-text-stroke-width: 0.5px;
-webkit-text-stroke-color: #a38b72;
font-weight:100px;
-webkit-animation: glow 2.0s linear infinite;
-moz-animation: glow 2.0s linear infinite;
-ms-animation: glow 2.0s linear infinite;
-o-animation: glow 2.0s linear infinite;
animation: glow 2.0s linear infinite;
}

[data-theme='dark'] .day-divider span {
  font-family: 'Spirit';
  font-size: 10px;
  letter-spacing: 0.5px;
  color: #000;
  border-radius: 10px;
  padding: 4px 12px;
  white-space: nowrap;
  opacity: .7;
  text-transform: capitalize;
  -webkit-background-clip: text;
-webkit-text-fill-color: transparent;
-webkit-text-stroke-width: 0.5px;
-webkit-text-stroke-color: #8f76a3;
font-weight:100px;
-webkit-animation: glow 2.0s linear infinite;
-moz-animation: glow 2.0s linear infinite;
-ms-animation: glow 2.0s linear infinite;
-o-animation: glow 2.0s linear infinite;
animation: glow 2.0s linear infinite;
}


@keyframes glow {
0% {
text-shadow: 0 0 15px rgb(255, 115, 161);
}

50% {
text-shadow: none;
}

100% {
text-shadow: 0 0 15px rgb(255, 115, 161);
}
}

@-webkit-keyframes glow {
0% {
text-shadow: 0 0 15px rgb(255, 115, 161);
}

50% {
text-shadow: 0 0 0;
}

100% {
text-shadow: 0 0 15px rgb(255, 115, 161);
}
}

/* ============================================================
   EMOTE POPUP
============================================================ */

.emote-popup {
  display: none;
  position: absolute;
  bottom: 46px;
  left: 14px;
  width: 222px;
  max-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #fff;
  border: 3px solid #fff;
  outline: 1px solid #fcc9de;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 8px;
  z-index: 999;
}


/* ============================================================
   IMAGE GALLERY BUBBLE
============================================================ */

.msg-bubble.gallery {
  padding: 6px;
  overflow: hidden;
  position: relative;
}

.gallery-track {
  display: flex;
  gap: 4px;
  width: 308px;
  max-width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 auto;
  width: 100px;
  height: calc(100px * var(--gallery-ratio, 1));
  border-radius: 6px;
  overflow: hidden;
  scroll-snap-align: start;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msg-bubble.gallery.gallery-count-1 .gallery-track,
.msg-bubble.gallery.gallery-count-2 .gallery-track {
  overflow: visible;
}

.gallery-count-1 .gallery-item {
  width: 280px;
  max-width: 100%;
  height: auto;
  aspect-ratio: var(--gallery-ar, 1);
}

.gallery-count-2 .gallery-item {
  flex: 1 1 0;
  width: auto;
  height: auto;
  aspect-ratio: var(--gallery-ar, 1);
}

.gallery-item.clickable {
  cursor: url(/media/cursor/normal-select.gif), pointer !important;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #fcc9de;
  background: rgba(255, 255, 255, 0.85);
  color: #ea85af;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(141, 124, 118, 0.2);
  transition: transform 0.15s ease, background 0.2s ease;
}

.gallery-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
}

.gallery-arrow.prev {
  left: 4px;
}

.gallery-arrow.next {
  right: 4px;
}

.gallery-dots {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}

.gallery-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid #fcc9de;
  transition: background 0.15s ease;
}

.gallery-dot.active {
  background: #ea85af;
  border-color: #ea85af;
}

.gallery-caption {
  padding: 8px 4px 2px;
  font-family: "pixelatedelegance", sans-serif;
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: 0.5px;
  color: #ac9287;
  overflow-wrap: anywhere;
}

[data-theme='dark'] .gallery-caption {
  color: #ab92bf;
}

/* ============================================================
   LIGHTBOX (popup de imagem)
============================================================ */

.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 240, 247, 0.75);
  z-index: 99998;
}

[data-theme='dark'] .lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(235, 224, 240, 0.75);
  z-index: 99998;
}

.lightbox-overlay.open {
  display: block;
}

.lightbox-popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99999;
  max-width: 90vw;
  max-height: 90vh;

}

.lightbox-popup.open {
  display: block;

}

.lightbox-popup img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  border: 4px solid #fff;
  border-image: url('/media/borders/whitelace.png') round 30;
  background-clip: padding-box;
  box-sizing: border-box;
    opacity: 1;
  transform: scale(1);

}

[data-theme='dark'] .lightbox-popup img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  border: 4px solid #fff;
  border-image: url('/media/borders/lacev2-1.pngg') round 50;
  background-clip: padding-box;
  box-sizing: border-box;
    opacity: 1;
  transform: scale(1);

}

/* ============================================================
   MOBILE / SMALL SCREENS
============================================================ */

@media (max-width: 700px) {

  .desktop {
    overflow-y: auto;
    padding: 30px 0;
  }


  .frame-wrapper {
    border-width: 12px;
    border-radius: 16px;
    width: 88vw;
  }

  .frame {
    width: 100%;
    max-width: 100%;
    height: 72vh;
    max-height: 72vh;
    border-radius: 6px;
  }


  .win-body {
    padding: 14px 12px;
  }

  .msg-content {
    max-width: 78%;
  }

  .msg-user-wrap {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
  }

  .msg-user {
    width: 48px;
    height: 48px;
  }

  .msg-user-decor {
    width: 36px;
  }

  .gallery-track {
    width: 100%;
  }

  .msg-bubble.video,
  .msg-bubble.spotify {
    max-width: 100%;
  }



}

.heart-pulse {
  background-color: #00000000;
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(0.95);
  }
}

.antisteal-popup{
  display:none;
  position:fixed;
  z-index:999999;
  background:#fff7fa;
  border:1px solid #d2c2c9;
  border-image: url('/media/borders/whitelace.png') 15 round;
  background-clip: padding-box;
  outline:1px dashed #b39d85;
  outline-offset:-4px;
  border-radius:10px;
  padding:14px 18px;
  text-align:center;
  box-shadow:0 4px 20px rgba(200,120,150,0.18);font-family:BodyFont,Segoe UI,sans-serif;
  color:#c08898;
  font-size:15px;
  max-width:220px;
  pointer-events:none;
}
