body {
  margin: 0;
  min-height: 100vh;
  background-color: #3b332e;
  font-family: "Pixelify Sans", sans-serif;
}

.file-wrapper {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file {
  height: 90vh;
  transition: opacity 0.6s ease;
}

.closed {
  cursor: pointer;
  display: block;
  height: 90vh;
}

.open {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.pages-wrapper {
  position: relative;
  display: flex;
  width: fit-content;
}

.pages {
  display: flex;
  position: relative;
  width: fit-content;
}

.page {
  position: relative;
  height: 90vh;
  display: none;
  flex-shrink: 0;
  width: fit-content;
  overflow: hidden;
}

.page-bg {
  height: 100%;
  width: auto;
  display: block;
}

/* ── notebook ruled lines behind text area ── */
.page-content {
  position: absolute;
  top: 10%;
  left: 16%;
  right: 7%;
  bottom: 10%;
  overflow-y: auto;
  pointer-events: auto;
  box-sizing: border-box;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 22px,
    rgba(0, 0, 0, 0.06) 22px,
    rgba(0, 0, 0, 0.06) 23px
  );
  background-attachment: local;
}

.page-right {
  top: 10%;
  left: 7%;
  right: 16%;
  bottom: 10%;
}

/* ── cute scrollbar ── */
.page-content::-webkit-scrollbar {
  width: 6px;
}

.page-content::-webkit-scrollbar-track {
  background: transparent;
}

.page-content::-webkit-scrollbar-thumb {
  background: rgba(160, 90, 120, 0.35);
  border-radius: 999px;
}

.page-content::-webkit-scrollbar-thumb:hover {
  background: rgba(160, 90, 120, 0.6);
}

/* ── cute hr ── */
hr {
  border: none;
  margin: 14px 0;
  text-align: center;
  overflow: visible;
  height: 12px;
  line-height: 12px;
}

hr::before {
  content: '✦ · · · · · · ✦ · · · · · · ✦';
  font-family: "Pixelify Sans", sans-serif;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: #a07080;
  opacity: 0.6;
  display: block;
}

/* ── stat bars ── */
.stat-bar {
  width: 100%;
  height: 6px;
  background: rgba(0,0,0,0.12);
  border-radius: 999px;
  margin: 3px 0 10px 0;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c9a0b8, #dfd0d8);
}

.placeholder-img {
  display: block;
  width: 60%;
  object-fit: cover;
  border-radius: 4px;
  margin: 6px 0;
  background: rgba(0,0,0,0.08);
}

/* ── swatch paper card ── */
.color-swatch {
  margin: 3px 0 !important;
  font-size: 0.7rem !important;
  font-weight: bold;
  letter-spacing: 0.06em;
  display: inline-block;
  padding: 1px 6px;
  border-radius: 2px;
  position: relative;
  isolation: isolate;
}

.color-swatch::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0.25;
  border-radius: 2px;
  z-index: -1;
}

.swatch-card {
  position: relative;
  background: #fffdf9;
  border-radius: 3px;
  padding: 12px 12px 10px 14px;
  margin: 6px 0 10px 0;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #c4a882;
  box-shadow:
    0 2px 5px rgba(0,0,0,0.13),
    0 4px 14px rgba(0,0,0,0.09);
}

/* css-drawn shaded pink pin dot */
.swatch-card::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f0b8c8, #c9607e 55%, #8a3050 100%);
  box-shadow: 0 2px 4px rgba(0,0,0,0.25), inset 0 -1px 2px rgba(0,0,0,0.15);
  border: 1px solid #c4a882;
}

.profile-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.profile-img {
  width: 200px;
  height: auto;
  border-radius: 6px;
  flex-shrink: 0;
}

.profile-info {
  flex: 1;
  min-width: 0;
}

.profile-info p {
  margin: 2px 0 5px 0;
  font-size: 0.72rem;
  line-height: 1.65;
  word-break: break-word;
}

.profile-info p strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a5c70;
  margin-top: 4px;
  margin-bottom: 1px;
  opacity: 0.9;
  font-weight: 900;
}

.section {
  margin-bottom: 14px;
}

.section p {
  margin: 0px 0 4px 0;
  font-size: 0.72rem;
  line-height: 1.7;
  word-break: break-word;
  color: #2e1f28;
}

/* field labels */
.section p strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a06080;
  margin-top: 5px;
  margin-bottom: 0px;
  opacity: 0.85;
  font-weight: 900;
}

/* section header labels like BODY MEASUREMENTS, FACE etc */
@keyframes header-pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.section > p:first-child {
  text-align: center;
}

.section > p:first-child strong {
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: #7a4a62;
  font-weight: 900;
  background: transparent;
  border: 1px dashed rgba(160, 90, 120, 0.45);
  padding: 2px 8px;
  border-radius: 0;
  margin-bottom: 12px;
  margin-top: 6px;
  opacity: 1;
  display: inline-block;
  cursor: default;
  transition: border-color 0.3s ease;
}

.section > p:first-child strong:hover {
  animation: header-pulse 1.2s ease-in-out infinite;
  border-color: rgba(160, 90, 120, 0.75);
}

/* ── measurement pairs (5'2 • 160cm) ── */
.measure-pair {
  font-family: "Pixelify Sans", monospace;
  font-size: 0.74rem;
  color: #3a2030;
  letter-spacing: 0.04em;
}

.measure-pair .sep {
  color: #c9a0b8;
  margin: 0 4px;
  font-size: 0.65rem;
}

/* ── indent bullets ── */
.indent {
  margin-left: 12px;
  padding-left: 6px;
  border-left: 1px solid rgba(140, 80, 110, 0.2);
}

/* ── consistent rounded corners on all content images ── */
.page-content img:not(.page-bg):not(.stamp):not(.blinkie):not(.button-badge) {
  border-radius: 6px;
}

/* ── nickname two-column table ── */
.nickname-table {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  margin: 4px 0 6px 12px;
  font-size: 0.72rem;
  line-height: 1.7;
}

.nick-name {
  white-space: nowrap;
}

.nick-by {
  color: #8a5c70;
  font-size: 0.75rem;
  opacity: 0.85;
}

.closed-wrapper {
  position: absolute;
  cursor: pointer;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.closed-name {
  position: absolute;
  bottom: 67%;
  left: 45%;
  transform: translateX(-50%);
  width: 60%;
  text-align: center;
  font-size: 1.14rem;
  color: #272424;
  pointer-events: none;
  font-family: "Pixelify Sans", sans-serif;
}

.page-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  background: rgba(18,18,18,0.85);
  border: none;
  border-radius: 50%;
  color: #e6e6e6;
  font-size: 2rem;
  cursor: pointer;
  z-index: 9999;
  transition: all 0.2s ease;
}

.page-arrow:hover {
  background: rgba(18,18,18,0.95);
}

.left-arrow { left: 20px; }
.right-arrow { right: 20px; }

.top-bar {
  position: fixed;
  top: 20px;
  width: 100%;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  z-index: 9999;
  box-sizing: border-box;
}

.left-group,
.right-group {
  display: flex;
  gap: 10px;
}

.nav-btn {
  padding: 8px 12px;
  background: rgba(18,18,18,0.95);
  border-radius: 6px;
  font-size: 0.8rem;
  color: #e6e6e6;
  text-decoration: none;
}

.desktop-bookmarks {
  position: absolute;
  right: -23px;
  top: 10%;
  transform: translateY(0);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 9999;
  pointer-events: auto;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.bookmark-tab {
  width: 52px;
  height: 22px;
  background: var(--c);
  border: none;
  border-radius: 0 4px 4px 0;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 0.55rem;
  color: #2a2a2a;
  cursor: pointer;
  text-align: center;
  padding: 0 4px;
  opacity: 0.85;
  transition: opacity 0.2s, width 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bookmark-tab:hover {
  opacity: 1;
  width: 62px;
}

.bookmark-tab.active {
  opacity: 1;
  width: 60px;
  font-weight: bold;
}

@media (min-width: 769px) {
  .bookmark-tab:nth-child(odd) {
    display: none;
  }
}

.mobile-bookmarks {
  display: none;
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  text-align: center;
}

.bookmark-dropdown-btn {
  padding: 6px 14px;
  background: rgba(18,18,18,0.88);
  border: none;
  border-radius: 6px;
  color: #e6e6e6;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 0.75rem;
  cursor: pointer;
}

.bookmark-dropdown-menu {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18,18,18,0.96);
  border-radius: 8px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 50vh;
  overflow-y: auto;
  min-width: 140px;
}

.bookmark-option {
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  background: var(--c);
  font-family: "Pixelify Sans", sans-serif;
  font-size: 0.7rem;
  color: #2a2a2a;
  cursor: pointer;
  text-align: left;
  opacity: 0.9;
  transition: opacity 0.15s;
}

.bookmark-option:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .desktop-bookmarks {
    display: none !important;
  }

  .mobile-bookmarks {
    display: block;
  }
}

.blinkie-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0;
  justify-content: center;
}

.stamp {
  height: 56px;
  width: auto;
  display: inline-block;
  image-rendering: pixelated;
}

.blinkie {
  height: 20px;
  width: auto;
  display: inline-block;
  image-rendering: pixelated;
}

.button-badge {
  height: 31px;
  width: auto;
  display: inline-block;
  image-rendering: pixelated;
}

.audio-player {
  width: 100%;
  height: 32px;
  margin: 6px 0;
}

.media-link {
  display: inline-block;
  margin: 3px 4px 3px 0;
  padding: 3px 10px;
  color: #7a4a62;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 0.68rem;
  text-decoration: none;
  border: 1px solid rgba(160, 90, 120, 0.4);
  border-radius: 2px;
  background: rgba(220, 180, 210, 0.12);
  letter-spacing: 0.06em;
  transition: background 0.2s, border-color 0.2s;
}

.media-link:hover {
  background: rgba(220, 180, 210, 0.25);
  border-color: rgba(160, 90, 120, 0.7);
}

.spotify-box {
  width: 100%;
  height: 400px;
  margin: 6px 0;
  overflow: hidden;
  border-radius: 6px;
}

.spotify-box iframe {
  border-radius: 6px;
}

.media-text {
  font-size: 0.72rem;
  line-height: 1.5;
  margin: 4px 0;
  word-break: break-word;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 6px 0;
}

.gallery-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 4px;
  background: rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-img {
    height: 200px;
  }

  .spotify-box {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .file {
    width: 90vw;
    height: auto;
  }

  .page {
    width: 90vw !important;
    height: auto;
  }

  .page-bg {
    width: 100%;
    height: auto;
  }

  .page-content {
    top: 12%;
    left: 16%;
    right: 7%;
    bottom: 12%;
    padding: 0;
  }

  .page-right {
    left: 7%;
    right: 16%;
  }

  .profile-row {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 0;
  }

  .profile-img {
    width: 45%;
    max-width: 45%;
    height: auto;
  }

  .profile-info {
    width: 100%;
  }

  .profile-info p {
    margin: 3px 0;
    font-size: 0.72rem;
    line-height: 1.4;
    word-break: break-word;
  }

  .page-arrow {
    bottom: 20px;
    top: auto;
    transform: none;
  }
}

.meie-script-regular {
  font-family: "Meie Script", cursive;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

/* ── behavioral pattern entries (when angry, when sad etc) ── */
.behavior-entry {
  margin: 0 0 10px 0;
  padding-left: 8px;
  border-left: 2px solid rgba(140, 80, 110, 0.18);
}

.behavior-entry p:first-child strong {
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #8a5c70;
  margin-bottom: 0px;
  opacity: 0.9;
  font-weight: 900;
}

.behavior-entry p:last-child {
  margin: 0;
  line-height: 1.65;
  font-size: 0.72rem;
}

/* ── inline quote style for catchphrases / example speech ── */
.speech-quote {
  display: block;
  font-style: italic;
  font-size: 0.69rem;
  color: #5a4050;
  background: rgba(140, 80, 110, 0.06);
  border-left: 2px solid rgba(140, 80, 110, 0.25);
  padding: 4px 8px;
  margin: 4px 0 6px 0;
  line-height: 1.6;
  border-radius: 0 3px 3px 0;
}

/* ── trait pill tags for positive / negative / neutral traits ── */
.trait-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 4px 0 8px 0;
}

.trait-pill {
  font-size: 0.64rem;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.trait-pill.pos {
  background: rgba(220, 180, 210, 0.2);
  color: #7a4570;
  border: 1px solid rgba(200, 150, 190, 0.4);
}

.trait-pill.neg {
  background: rgba(180, 120, 150, 0.18);
  color: #6b3055;
  border: 1px solid rgba(170, 110, 140, 0.35);
}

.trait-pill.neu {
  background: rgba(200, 170, 210, 0.18);
  color: #5a3a6a;
  border: 1px solid rgba(180, 150, 200, 0.32);
}

/* ── body measurements 2-column grid ── */
.measure-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 10px;
  margin: 4px 0 8px 0;
}

.measure-cell {
  padding: 5px 6px;
  border-bottom: 1px solid rgba(160, 90, 120, 0.1);
}

.measure-cell p {
  margin: 0 !important;
  line-height: 1.5 !important;
}

/* ── 2-column bullet list ── */
/* ── two column bullet list ── */
.two-col-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 10px;
  margin: 4px 0 8px 0;
  font-size: 0.72rem;
  line-height: 1.7;
}


/* ── custom audio player ── */
.custom-audio-player {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fffdf9;
  border: 1px solid #c4a882;
  border-radius: 4px;
  padding: 6px 10px;
  margin: 6px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cap-play-btn {
  background: none;
  border: 1px solid rgba(160, 90, 120, 0.4);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 0.6rem;
  color: #a06080;
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  padding: 0;
  line-height: 1;
}

.cap-play-btn:hover {
  background: rgba(160, 90, 120, 0.1);
}

.cap-track {
  flex: 1;
  height: 4px;
  background: rgba(0,0,0,0.1);
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
}

.cap-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c9a0b8, #dfd0d8);
  border-radius: 999px;
  transition: width 0.1s linear;
}

.cap-time {
  font-family: "Pixelify Sans", sans-serif;
  font-size: 0.6rem;
  color: #a06080;
  flex-shrink: 0;
  opacity: 0.85;
}

/* ── iPod widget ── */
.ipod-widget {
  position: fixed;
  bottom: 24px;
  left: 80px;
  z-index: 9998;
  width: 160px;
  background: #1a1a1a;
  border-radius: 20px;
  padding: 12px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 3px solid #000;
  box-shadow: 4px 4px 0px #000;
  transform: rotate(-10deg);
  transform-origin: bottom left;
}

.ipod-screen {
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #000;
  display: flex;
  flex-direction: column;
}

.ipod-marquee-wrap {
  background: #0d0d0d;
  padding: 4px 6px;
  overflow: hidden;
  border-bottom: 1px solid #222;
}

.ipod-marquee {
  font-family: "Pixelify Sans", monospace;
  font-size: 0.55rem;
  color: #c9a0b8;
  white-space: nowrap;
  display: inline-block;
  animation: ipod-scroll 10s linear infinite;
  letter-spacing: 0.04em;
}

@keyframes ipod-scroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.ipod-embed-wrap {
  width: 100%;
  height: 200px;
  background: #000;
}

.ipod-embed-wrap iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.ipod-artist {
  font-family: "Pixelify Sans", sans-serif;
  font-size: 0.5rem;
  color: #666;
  text-align: center;
  padding: 3px 6px 4px;
  letter-spacing: 0.06em;
  background: #111;
}

.ipod-wheel {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 0 auto;
  border-radius: 50%;
  background: #2a2a2a;
  border: 3px solid #000;
  box-shadow: 3px 3px 0px #000;
  flex-shrink: 0;
}

.ipod-btn {
  position: absolute;
  background: none;
  border: none;
  color: #888;
  font-size: 0.55rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.15s;
  font-family: "Pixelify Sans", sans-serif;
}

.ipod-btn:hover { color: #c9a0b8; }

.ipod-top    { top: 8px;  left: 50%; transform: translateX(-50%); }
.ipod-bottom { bottom: 8px; left: 50%; transform: translateX(-50%); }
.ipod-left   { left: 8px; top: 50%; transform: translateY(-50%); }
.ipod-right  { right: 8px; top: 50%; transform: translateY(-50%); }

.ipod-center-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #111;
  border: 2px solid #000;
  box-shadow: 2px 2px 0px #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #c9a0b8;
  cursor: pointer;
  transition: color 0.15s;
  font-family: "Pixelify Sans", sans-serif;
  user-select: none;
}

.ipod-center-btn:hover {
  color: #dfd0d8;
}



/* ── macbook keyboard decoration ── */
.desk-keyboard {
  position: fixed;
  top: -30px;
  right: -80px;
  z-index: 0;
  transform: rotate(8deg);
  transform-origin: top right;
  width: 580px;
  pointer-events: none;
}

.kb-body {
  background: #1c1c1e;
  border: 3px solid #000;
  border-radius: 14px;
  padding: 14px 16px 18px;
  box-shadow: 5px 5px 0px #000;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.kb-row {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.kb-key {
  background: #2c2c2e;
  border: 2px solid #000;
  border-radius: 4px;
  box-shadow: 2px 2px 0px #000;
  height: 28px;
  min-width: 28px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Pixelify Sans", sans-serif;
  font-size: 0.42rem;
  color: #888;
  letter-spacing: 0.03em;
}

.kb-key.wide-15  { flex: 1.5; }
.kb-key.wide-2   { flex: 2; }
.kb-key.wide-25  { flex: 2.5; }
.kb-key.wide-7   { flex: 7; }

.kb-trackpad {
  background: #252527;
  border: 2px solid #000;
  border-radius: 8px;
  box-shadow: 3px 3px 0px #000;
  height: 52px;
  margin: 6px auto 0;
  width: 55%;
}

@media (max-width: 768px) {
  .ipod-widget {
    display: none;
  }

  .desk-keyboard {
    display: none;
  }
}

/* ── coffee mug ── */
.desk-mug {
  position: fixed;
  bottom: 24px;
  right: 40px;
  z-index: 9997;
  pointer-events: none;
  transform: rotate(6deg);
  transform-origin: bottom right;
}

/* outer rim */
.mug-outer {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: #1c1c1e;
  border: 5px solid #000;
  box-shadow: 5px 5px 0px #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* inner coffee surface */
.mug-inner {
  width: 144px;
  height: 144px;
  border-radius: 50%;
  background: #2a1208;
  border: 2px solid #000;
  position: relative;
  overflow: hidden;
}

/* dark edge around coffee */
.mug-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 60%, #4a2010 30%, #1e0d04 100%);
}

/* highlight */
.mug-inner::after {
  content: '';
  position: absolute;
  top: 22px;
  left: 24px;
  width: 28px;
  height: 14px;
  background: rgba(255,220,180,0.12);
  border-radius: 50%;
  transform: rotate(-30deg);
  z-index: 1;
}

/* handle */
.mug-handle {
  position: absolute;
  right: -36px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 52px;
  background: #1c1c1e;
  border: 5px solid #000;
  border-left: none;
  border-radius: 0 20px 20px 0;
  box-shadow: 3px 2px 0px #000;
}

@media (max-width: 768px) {
  .desk-mug { display: none; }
}
