/* ═══════════════════════════════════════════════
   may15 — features: background upgrade + new apps
   ═══════════════════════════════════════════════ */

/* ─── sun, skyline, stars, scanlines ─── */

/* big pixel sun */
.pixel-sun {
  position: fixed;
  bottom: 22%;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 180px;
  z-index: 0;
  pointer-events: none;
  animation: sun-pulse 6s ease-in-out infinite;
}
.pixel-sun::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #FFE4F1 0%, #FFAAD6 30%, #FF4FA3 65%, #B0408A 100%);
  image-rendering: pixelated;
  box-shadow:
    0 0 60px rgba(255,79,163,0.6),
    0 0 120px rgba(255,79,163,0.3);
  filter: contrast(1.1);
}
.pixel-sun::after {
  /* chunky pixel edge illusion */
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 52%, rgba(255,215,0,0.18) 54%, transparent 58%);
}
@keyframes sun-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50%      { transform: translateX(-50%) scale(1.04); }
}

/* pixel skyline at the bottom */
.skyline {
  position: fixed;
  bottom: 36px;
  left: 0;
  right: 0;
  height: 140px;
  z-index: 0;
  pointer-events: none;
  image-rendering: pixelated;
}
.skyline svg { width: 100%; height: 100%; display: block; }

/* twinkling pixel stars in the sky */
.sky-stars { position: fixed; inset: 0 0 36px 0; pointer-events: none; z-index: 0; }
.sky-star {
  position: absolute;
  width: 3px; height: 3px;
  background: #FFFFFF;
  box-shadow: 0 0 4px rgba(255,255,255,0.9);
  animation: sky-twinkle 3s ease-in-out infinite;
}
.sky-star.gold { background: #FFD700; box-shadow: 0 0 6px #FFD700; }
.sky-star.pink { background: #FFD6EC; box-shadow: 0 0 4px #FF4FA3; }
@keyframes sky-twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.7); }
  50%      { opacity: 1; transform: scale(1.2); }
}

/* shooting star */
.shooting-star {
  position: fixed;
  width: 2px; height: 2px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 0 6px #FFFFFF;
  pointer-events: none;
  z-index: 0;
}
.shooting-star::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(255,255,255,0));
  transform-origin: left center;
}
.shooting-star.streak { animation: shoot 1.1s linear forwards; }
@keyframes shoot {
  0%   { opacity: 0; transform: translate(0,0) rotate(25deg); }
  10%  { opacity: 1; }
  100% { opacity: 0; transform: translate(520px, 240px) rotate(25deg); }
}

/* CRT scanlines overlay */
.crt-scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9500;
  background: repeating-linear-gradient(
    180deg,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}
.crt-scanlines::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.15) 100%);
}

/* ─── countdown widget on desktop ─── */
/* ─── countdown widget — pink, juicy, draggable ─── */
.countdown {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: linear-gradient(180deg, #FFE4F1 0%, #FFB8D8 65%, #FF9ECF 100%);
  border: 3px solid var(--chrome-shadow);
  border-radius: 14px;
  box-shadow:
    inset 2px 2px 0 rgba(255,255,255,0.7),
    inset -3px -3px 0 rgba(224,58,143,0.3),
    4px 5px 0 rgba(102,31,66,0.4),
    0 0 30px rgba(255,79,163,0.35);
  padding: 10px 22px 14px;
  font-family: 'Pixelify Sans', monospace;
  text-align: center;
  min-width: 380px;
  cursor: grab;
  user-select: none;
}
.countdown:active { cursor: grabbing; }
.countdown.dragging { transition: none; }

.countdown::before {
  content: '♡';
  position: absolute;
  top: -8px; left: 12px;
  font-size: 18px;
  color: var(--pink-title);
  text-shadow: 0 0 6px rgba(255,255,255,0.9);
  animation: heartbeat 1.2s ease-in-out infinite;
}
.countdown::after {
  content: '♡';
  position: absolute;
  top: -8px; right: 12px;
  font-size: 18px;
  color: var(--pink-title);
  text-shadow: 0 0 6px rgba(255,255,255,0.9);
  animation: heartbeat 1.2s ease-in-out infinite 0.4s;
}

.countdown-label {
  font-family: 'Special Elite', 'Courier New', monospace;
  font-weight: 400;
  font-size: 16px;
  color: var(--pink-title);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.85), 0 0 10px rgba(255,79,163,0.3);
  line-height: 1.15;
}
.countdown-digits {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-bottom: 8px;
}
.cd-cell {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFE4F1 50%, #FFC8E0 100%);
  color: var(--pink-title);
  border: 2px solid var(--chrome-shadow);
  border-radius: 6px;
  padding: 6px 4px 4px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 30px;
  font-weight: 700;
  min-width: 50px;
  text-shadow:
    1px 1px 0 rgba(255,255,255,0.9),
    0 0 8px rgba(255,79,163,0.3);
  line-height: 1;
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.9),
    inset -1px -1px 0 rgba(224,58,143,0.2),
    2px 2px 0 rgba(102,31,66,0.25);
}
.cd-cell .unit {
  display: block;
  font-family: 'Pixelify Sans', monospace;
  font-size: 9px;
  color: var(--chrome-shadow);
  letter-spacing: 0.15em;
  margin-top: 3px;
  text-shadow: none;
  text-transform: uppercase;
  font-weight: 700;
}
.countdown-sub {
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  font-size: 12px;
  color: var(--chrome-shadow);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cd-heart {
  display: inline-block;
  animation: heartbeat 1.2s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  20%      { transform: scale(1.25); }
  40%      { transform: scale(1); }
  60%      { transform: scale(1.15); }
}

/* frantic mode escalation — more urgent as the date approaches */
.countdown.frantic-soon  .cd-heart { animation-duration: 0.9s; }
.countdown.frantic-close .cd-heart { animation-duration: 0.6s; }
.countdown.frantic-close .cd-cell  { animation: cell-flicker 1.5s ease-in-out infinite; }
.countdown.frantic-imminent .cd-heart { animation-duration: 0.35s; }
.countdown.frantic-imminent .cd-cell {
  animation: cell-flicker 0.6s ease-in-out infinite;
  color: #FFFFFF;
  text-shadow: 0 0 10px #FFD700, 0 0 20px #FF4FA3;
}
.countdown.frantic-imminent { animation: frantic-shake 0.8s ease-in-out infinite; }

@keyframes cell-flicker {
  0%, 100% { background: #0A0418; }
  50%      { background: #1A0A2E; }
}
@keyframes frantic-shake {
  0%, 100% { transform: translateX(-50%); }
  25%      { transform: translateX(calc(-50% - 1px)); }
  75%      { transform: translateX(calc(-50% + 1px)); }
}

@media (max-width: 700px) {
  .countdown { bottom: 48px; padding: 8px 10px 6px; min-width: 0; }
  .cd-cell   { font-size: 16px; min-width: 26px; padding: 3px 4px 2px; }
  .countdown-sub { font-size: 10px; }
}

/* ─── MSN messenger window ─── */
#msn-window .msn-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  background: #FFFFFF;
  border: 2px solid var(--chrome-shadow);
  border-right-color: #FFFFFF;
  border-bottom-color: #FFFFFF;
  margin: 4px;
  min-height: 340px;
  font-family: 'VT323', 'Pixelify Sans', monospace;
}
.msn-buddies {
  background: #FFE4F1;
  border-right: 2px solid var(--chrome-dark);
  padding: 8px 6px;
  font-size: 14px;
}
.msn-buddies h4 {
  font-family: 'Pixelify Sans', monospace;
  font-size: 12px;
  color: #7A2E56;
  margin-bottom: 6px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--chrome-dark);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.buddy-group { margin-bottom: 10px; }
.buddy {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px;
  font-size: 13px;
  color: var(--text-dark);
}
.buddy.online .dot { background: #22C55E; }
.buddy.away   .dot { background: #F59E0B; }
.buddy.offline { color: #996688; }
.buddy.offline .dot { background: #CCCCCC; }
.buddy .dot {
  width: 8px; height: 8px; border-radius: 50%;
  box-shadow: 0 0 4px currentColor;
}
.buddy small { color: #996688; font-size: 11px; display: block; }
.buddy b { font-family: 'Pixelify Sans', monospace; font-size: 12px; }

.msn-chat {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
}
.msn-header {
  background: linear-gradient(90deg, var(--pink-title), var(--pink-title-2));
  color: white;
  padding: 4px 10px;
  font-family: 'Pixelify Sans', monospace;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 1px 1px 0 rgba(122,46,86,0.6);
}
.msn-messages {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.5;
  max-height: 300px;
}
.msn-msg { margin-bottom: 4px; }
.msn-msg .sender { font-weight: 700; }
.msn-msg.k .sender { color: #FF4FA3; }
.msn-msg.t .sender { color: #7C3AED; }
.msn-msg.sys {
  color: #996688;
  font-style: italic;
  font-size: 13px;
  text-align: center;
  padding: 4px 0;
}
.msn-msg.nudge {
  color: #FF4FA3;
  font-weight: 700;
  text-align: center;
  padding: 6px 0;
  animation: nudge-shake 0.4s;
}
@keyframes nudge-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translate(-6px, 2px); }
  40% { transform: translate(6px, -2px); }
  60% { transform: translate(-4px, 1px); }
  80% { transform: translate(4px, 0); }
}

.msn-typing {
  font-size: 12px;
  color: #996688;
  font-style: italic;
  padding: 2px 10px;
  min-height: 18px;
}
.msn-input {
  border-top: 2px solid var(--chrome-dark);
  background: #FFFFFF;
  padding: 8px;
  display: flex;
  gap: 6px;
}
.msn-input input {
  flex: 1;
  border: 2px inset var(--chrome-shadow);
  padding: 4px 8px;
  font-family: 'VT323', monospace;
  font-size: 15px;
  background: #FFFFFF;
  color: var(--text-dark);
  outline: none;
}
.msn-input .win98-btn { min-width: 60px; padding: 4px 10px; }

@media (max-width: 700px) {
  #msn-window .msn-body { grid-template-columns: 1fr; }
  .msn-buddies { border-right: none; border-bottom: 2px solid var(--chrome-dark); }
}

/* ─── minesweeper (heartsweeper) ─── */
#mines-window .mines-body {
  background: var(--chrome-face);
  border: 2px solid var(--chrome-shadow);
  border-right-color: #FFFFFF;
  border-bottom-color: #FFFFFF;
  margin: 4px;
  padding: 10px;
}
.mines-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0A0418;
  border: 2px inset #7A2E56;
  padding: 6px 10px;
  margin-bottom: 10px;
  font-family: 'VT323', monospace;
  color: #FF4FA3;
  font-size: 18px;
  font-weight: 700;
}
.mines-hud .smiley {
  font-size: 20px;
  background: var(--chrome-face);
  border: 2px solid #FFFFFF;
  border-right-color: var(--chrome-shadow);
  border-bottom-color: var(--chrome-shadow);
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
}
.mines-grid {
  display: grid;
  grid-template-columns: repeat(9, 28px);
  gap: 1px;
  background: var(--chrome-dark);
  padding: 1px;
  width: fit-content;
  margin: 0 auto;
  border: 2px inset var(--chrome-shadow);
}
.mines-cell {
  width: 28px; height: 28px;
  background: var(--chrome-face);
  border: 2px solid #FFFFFF;
  border-right-color: var(--chrome-shadow);
  border-bottom-color: var(--chrome-shadow);
  font-family: 'Pixelify Sans', monospace;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.mines-cell.revealed {
  background: #FFE4F1;
  border: 1px solid var(--chrome-dark);
}
.mines-cell.revealed.heart { background: #FF4FA3; color: white; }
.mines-cell.n1 { color: #0066FF; }
.mines-cell.n2 { color: #00A040; }
.mines-cell.n3 { color: #FF0000; }
.mines-cell.n4 { color: #000080; }
.mines-cell.n5 { color: #800000; }
.mines-cell.n6 { color: #008080; }
.mines-cell.flagged::before { content: '🚩'; font-size: 12px; }
.mines-footer {
  font-family: 'VT323', monospace;
  font-size: 13px;
  color: var(--text-dark);
  text-align: center;
  margin-top: 8px;
  padding: 4px;
}

/* ─── voice memos ─── */
.voice-memos-body {
  background: #FFFFFF;
  border: 2px solid var(--chrome-shadow);
  border-right-color: #FFFFFF;
  border-bottom-color: #FFFFFF;
  margin: 4px;
  padding: 14px 18px;
  font-family: 'VT323', monospace;
  color: var(--text-dark);
  font-size: 15px;
  min-height: 280px;
}
.memo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-bottom: 1px dotted rgba(122,46,86,0.25);
}
.memo:last-child { border-bottom: none; }
.memo-play {
  width: 32px; height: 32px;
  background: var(--pink-title);
  color: white;
  border: 2px solid #FFFFFF;
  border-right-color: var(--chrome-shadow);
  border-bottom-color: var(--chrome-shadow);
  box-shadow: inset -1px -1px 0 var(--chrome-dark), inset 1px 1px 0 var(--chrome-face-2);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.memo-play:active {
  border-color: var(--chrome-shadow) #FFFFFF #FFFFFF var(--chrome-shadow);
}
.memo-meta { flex: 1; }
.memo-name { font-family: 'Pixelify Sans', monospace; font-weight: 600; font-size: 14px; }
.memo-date { font-size: 12px; color: #996688; margin-top: 2px; }
.memo-dur { font-family: 'VT323', monospace; font-size: 13px; color: #7A2E56; }
.memo.playing .memo-play { background: #22C55E; }
.memo.playing .memo-name { color: var(--pink-title); }

/* ─── spotify iframe ─── */
.spotify-embed {
  background: #0A0418;
  border: 2px inset #7A2E56;
  margin-bottom: 10px;
  padding: 4px;
}
.spotify-embed iframe {
  display: block;
  width: 100%;
  border: none;
  border-radius: 2px;
}
.spotify-only { margin-bottom: 6px; }
.player-caption {
  font-family: 'Pacifico', cursive;
  font-size: 18px;
  color: #FFB8D8;
  text-align: center;
  padding: 6px 0 2px;
}

/* ─── date mode banners ─── */
.event-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  padding: 14px 20px;
  text-align: center;
  font-family: 'Pixelify Sans', monospace;
  font-weight: 700;
  color: white;
  font-size: 16px;
  box-shadow: 0 4px 20px rgba(122,46,86,0.4);
  animation: banner-drop 0.6s ease-out;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}
@keyframes banner-drop {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}
.event-banner.birthday   { background: linear-gradient(90deg, #FF85C0, #FFD700, #FF85C0); }
.event-banner.anniversary{ background: linear-gradient(90deg, #FF4FA3, #C8AAFF, #FF4FA3); }
.event-banner.wedding    { background: linear-gradient(90deg, #FFD700, #FF4FA3, #FFD700); background-size: 200% auto; animation: banner-drop 0.6s ease-out, shine 4s linear infinite; }
@keyframes shine {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* confetti / fireworks layer */
.confetti-layer, .firework-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 280;
  overflow: hidden;
}
.confetti {
  position: absolute;
  width: 10px; height: 14px;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 1; }
}
.firework {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  animation: fw-burst 1.4s ease-out forwards;
}
@keyframes fw-burst {
  0%   { transform: scale(0); opacity: 1; box-shadow: 0 0 0 0 currentColor; }
  40%  { opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; box-shadow: 0 0 80px 40px currentColor; }
}

/* ─── about_us rich content ─── */
.about-body {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.55;
}
.about-portrait {
  display: block;
  width: 180px;
  height: auto;
  image-rendering: pixelated;
  margin: 0 auto 12px;
  filter: drop-shadow(2px 4px 0 rgba(102,31,66,0.2));
}
.about-header {
  font-family: 'VT323', 'Courier New', monospace;
  font-size: 13px;
  color: #7A2E56;
  line-height: 1.3;
  margin-bottom: 14px;
  white-space: pre;
  text-align: center;
}
.about-intro { margin-bottom: 14px; font-size: 17px; }
.about-stats {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 14px;
  font-size: 15px;
  margin: 12px 0;
  padding: 10px 12px;
  background: #FFE4F1;
  border: 1px dashed rgba(122,46,86,0.3);
}
.about-stats dt { font-weight: 700; color: #7A2E56; text-transform: lowercase; }
.about-stats dd { color: var(--text-dark); }
.about-body h4 {
  font-family: 'Pixelify Sans', monospace;
  font-size: 13px;
  color: var(--pink-title);
  margin: 16px 0 6px;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(255,79,163,0.3);
  padding-bottom: 3px;
}
.about-body ul { list-style: none; padding-left: 4px; margin-bottom: 10px; }
.about-body ul li { padding: 2px 0; }
.about-body ul li::before { content: '♡ '; color: var(--pink-title); }
.about-body p { margin-bottom: 10px; }
.about-quote {
  font-family: 'Pixelify Sans', monospace;
  font-size: 15px;
  background: linear-gradient(135deg, #FFE4F1, #FFD6EC);
  border-left: 3px solid var(--pink-title);
  padding: 12px 14px;
  margin: 14px 0;
  line-height: 1.5;
  color: var(--text-dark);
}
.about-sig {
  font-family: 'Pacifico', cursive;
  font-size: 20px;
  color: var(--pink-title);
  text-align: right;
  margin-top: 16px !important;
}

/* ─── tina_pros_cons.txt ─── */
.pros-body {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.5;
  padding: 4px;
}
.pros-title {
  font-family: 'Pixelify Sans', monospace;
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.pros-sub {
  font-style: italic;
  color: #7A2E56;
  font-size: 14px;
  margin-bottom: 16px;
}
.pros-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'VT323', monospace;
  font-size: 16px;
  margin: 10px 0 14px;
  border: 2px solid var(--chrome-shadow);
}
.pros-table th, .pros-table td {
  padding: 6px 10px;
  border: 1px solid var(--chrome-dark);
  text-align: left;
  vertical-align: top;
}
.pros-table thead th {
  font-family: 'Pixelify Sans', monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  padding: 6px 10px;
  border-bottom: 2px solid var(--chrome-dark);
}
.pros-table th.pros-col, .pros-table td.pros-col { background: #FFD6EC; color: var(--pink-title); }
.pros-table th.cons-col, .pros-table td.cons-col { background: #E0EAF2; color: #7A2E56; }
.pros-table tbody tr:nth-child(even) td:not(.empty) { background: #FFF5FB; }
.pros-table tbody tr:nth-child(even) td.empty { background: #F5F5F7; }
.pros-table td.empty {
  background: repeating-linear-gradient(45deg, #F5F5F7 0 4px, #EEEEF2 4px 8px);
  color: #AAA;
  text-align: center;
  font-size: 14px;
}
.pros-table tfoot td.total {
  font-family: 'Pixelify Sans', monospace;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  border-top: 2px solid var(--chrome-dark);
  padding: 6px;
}
.pros-verdict {
  font-family: 'Pixelify Sans', monospace;
  font-size: 14px;
  text-align: center;
  padding: 8px;
  background: linear-gradient(90deg, #FFD6EC, #FFE4F1, #FFD6EC);
  border: 1px dashed var(--pink-title);
  color: var(--pink-title);
  margin: 10px 0;
}
.pros-footer {
  font-family: 'Pacifico', cursive;
  font-size: 20px;
  color: var(--pink-title);
  text-align: right;
  margin-top: 10px;
}

/* ─── polaroid gallery ─── */
.photos-body {
  background: #FFE4F1;
  border: 2px solid var(--chrome-shadow);
  border-right-color: #FFFFFF;
  border-bottom-color: #FFFFFF;
  margin: 4px;
  padding: 24px 16px;
  min-height: 340px;
  max-height: 65vh;
  overflow-y: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.polaroid {
  background: #FFFFFF;
  padding: 10px 10px 4px;
  border: 1px solid rgba(102,31,66,0.2);
  box-shadow:
    2px 4px 0 rgba(102,31,66,0.15),
    4px 10px 16px rgba(102,31,66,0.2);
  transform: rotate(var(--rot, 0deg));
  transition: transform 0.2s;
  max-width: 180px;
}
.polaroid:hover { transform: rotate(0deg) scale(1.05); z-index: 10; }
.polaroid img {
  display: block;
  width: 100%;
  max-width: 160px;
  height: auto;
  image-rendering: pixelated;
}
.polaroid-caption {
  font-family: 'Pacifico', cursive;
  font-size: 16px;
  color: var(--pink-title);
  text-align: center;
  padding: 8px 4px 4px;
}
.polaroid.broken img { display: none; }
.polaroid.broken::before {
  content: '🖼️ missing';
  display: block;
  background: #FFD6EC;
  color: #996688;
  padding: 24px 12px;
  font-family: 'VT323', monospace;
  text-align: center;
  font-size: 14px;
}
.polaroid-empty {
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: #7A2E56;
  text-align: center;
  padding: 40px 20px;
  line-height: 1.6;
}
.polaroid-empty code {
  background: #FFFFFF;
  border: 1px solid rgba(102,31,66,0.3);
  padding: 2px 6px;
  font-size: 13px;
}

/* ─── calendar ─── */
.cal-body {
  background: #FFFFFF;
  border: 2px solid var(--chrome-shadow);
  border-right-color: #FFFFFF;
  border-bottom-color: #FFFFFF;
  margin: 4px;
  padding: 0;
  min-height: 460px;
}
.cal-body iframe {
  display: block;
  width: 100%;
  height: 520px;
  border: none;
}
.cal-placeholder {
  padding: 48px 32px;
  text-align: center;
  font-family: 'VT323', monospace;
  color: var(--text-dark);
  line-height: 1.6;
}
.cal-placeholder-icon { font-size: 60px; margin-bottom: 16px; }
.cal-placeholder p { margin: 6px 0; font-size: 16px; }
.cal-placeholder b { font-family: 'Pixelify Sans', monospace; font-size: 18px; color: var(--pink-title); }
.cal-hint { color: #7A2E56; font-size: 14px; margin-top: 14px; }
.cal-hint code {
  background: #FFE4F1;
  border: 1px solid rgba(102,31,66,0.3);
  padding: 1px 5px;
  font-size: 13px;
}

/* ─── wallpaper variants ─── */
body[data-wallpaper="sunset"]   .wallpaper { background: linear-gradient(180deg,#FFD8A0 0%,#FF88B0 45%,#D04878 80%,#6A2048 100%); }
body[data-wallpaper="lavender"] .wallpaper { background: linear-gradient(180deg,#F0E0FF 0%,#D8B0FF 45%,#9868C0 100%); }
body[data-wallpaper="mint"]     .wallpaper { background: linear-gradient(180deg,#E8FFEC 0%,#B0EFC8 45%,#68B898 100%); }
body[data-wallpaper="night"]    .wallpaper { background: linear-gradient(160deg,#0A0418 0%,#2D1052 60%,#4A1A6E 100%); }
body[data-wallpaper="hearts"]   .wallpaper {
  background: #FFC8DC;
}
body[data-wallpaper="hearts"] .wallpaper::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ctext y='24' font-size='22' opacity='0.55'%3E%F0%9F%92%97%3C/text%3E%3C/svg%3E");
  background-size: 48px 48px;
  opacity: 0.8;
  pointer-events: none;
}

/* night wallpaper tweaks cloud visibility */
body[data-wallpaper="night"] .pcloud { opacity: 0.25; }

/* ─── wallpaper selector window ─── */
.wallpaper-body {
  background: #FFFFFF;
  border: 2px solid var(--chrome-shadow);
  border-right-color: #FFFFFF;
  border-bottom-color: #FFFFFF;
  margin: 4px;
  padding: 18px;
  font-family: 'VT323', monospace;
  color: var(--text-dark);
}
.wallpaper-h {
  font-family: 'Pixelify Sans', monospace;
  font-size: 14px;
  text-transform: lowercase;
  color: var(--pink-title);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255,79,163,0.3);
}
.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.wallpaper-swatch {
  height: 88px;
  border: 2px solid var(--chrome-shadow);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 6px;
  cursor: pointer;
  position: relative;
  transition: transform 0.12s, box-shadow 0.12s;
}
.wallpaper-swatch span {
  font-family: 'Pixelify Sans', monospace;
  font-size: 12px;
  color: var(--text-dark);
  background: rgba(255,255,255,0.9);
  padding: 2px 8px;
  border-radius: 2px;
}
.wallpaper-swatch:hover {
  transform: scale(1.05);
  box-shadow: 3px 3px 0 rgba(102,31,66,0.3);
}
.wallpaper-swatch.selected {
  outline: 3px solid var(--pink-title);
  outline-offset: 2px;
}
.wallpaper-hint {
  font-size: 13px;
  color: #7A2E56;
  text-align: center;
  margin-top: 8px;
}

/* ─── weather widget ─── */
.weather-body {
  background: linear-gradient(180deg, #FFE4F1 0%, #FFFFFF 100%);
  border: 2px solid var(--chrome-shadow);
  border-right-color: #FFFFFF;
  border-bottom-color: #FFFFFF;
  margin: 4px;
  padding: 20px;
  font-family: 'VT323', monospace;
  color: var(--text-dark);
  min-height: 280px;
}
.weather-loading, .weather-error {
  text-align: center;
  padding: 40px 20px;
  color: #7A2E56;
  font-size: 16px;
}
.weather-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 6px;
}
.weather-glyph {
  font-size: 56px;
  filter: drop-shadow(2px 4px 0 rgba(102,31,66,0.15));
}
.weather-temp-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 44px;
  color: var(--text-dark);
  line-height: 1;
}
.weather-temp-feels {
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: #7A2E56;
  margin-top: 2px;
  text-align: center;
}
.weather-condition {
  text-align: center;
  font-family: 'Pixelify Sans', monospace;
  font-size: 16px;
  color: var(--pink-title);
  text-transform: lowercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255,79,163,0.3);
}
.weather-translation {
  background: #FFFFFF;
  border: 1px dashed rgba(102,31,66,0.3);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.translation-label {
  font-family: 'Pixelify Sans', monospace;
  font-size: 10px;
  color: var(--pink-title);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.translation-body {
  font-family: 'VT323', monospace;
  font-size: 17px;
  line-height: 1.45;
  color: var(--text-dark);
}
.weather-footer {
  text-align: center;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: #7A2E56;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-top: 8px;
}

.memo-intro {
  font-family: 'Pacifico', cursive;
  font-size: 17px;
  color: var(--pink-title);
  text-align: center;
  padding: 4px 8px 14px;
  border-bottom: 1px dashed rgba(255,79,163,0.3);
  margin-bottom: 8px;
}

/* ─── 30_days folder file items — explicit + reliable styling ─── */
.window-body .file-item { min-height: 90px; }
.folder-file-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #FFF0F8 0%, #FFD6EC 100%);
  border: 2px solid var(--chrome-shadow);
  box-shadow:
    inset 2px 2px 0 rgba(255,255,255,0.8),
    inset -2px -2px 0 rgba(102,31,66,0.3),
    2px 2px 0 rgba(102,31,66,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  position: relative;
  flex-shrink: 0;
}
.folder-file-icon::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 12px 12px 0;
  border-color: transparent #FFAAD6 transparent transparent;
}
.folder-file-icon.locked {
  background: linear-gradient(135deg, #F5F5F7 0%, #E8E8EC 100%);
  border-color: #999;
  opacity: 0.85;
}

/* DEBUG: ensure folder items render */
#folder-contents .file-item {
  background: #FFFFFF !important;
  border: 1px solid rgba(255,79,163,0.25) !important;
  min-height: 100px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 8px 4px !important;
  visibility: visible !important;
}
#folder-contents .file-item .label {
  color: #2A0F1E !important;
  font-size: 12px !important;
  display: block !important;
  margin-top: 6px !important;
}

/* ─── KT5 photo viewer (compact) ─── */
.kt5-body {
  background: #FFFFFF;
  margin: 0;
  padding: 10px 10px 26px;
  border-radius: 2px;
  box-shadow: 0 6px 18px rgba(102,31,66,0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.kt5-body img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.kt5-caption {
  font-family: 'Pacifico', cursive;
  font-size: 22px;
  color: var(--pink-title);
  text-align: center;
  padding: 16px 0 0;
  letter-spacing: 0.02em;
  line-height: 1;
}

.heart-note-pop {
  display: inline-block;
  font-family: 'Pacifico', cursive;
  font-size: 18px;
  color: var(--pink-title);
  animation: heart-pop 0.5s ease-out;
}
@keyframes heart-pop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* ─── relationship cherry blossom 🌸 (bottom-right cluster, bigger) ─── */
.rel-plant {
  position: fixed;
  bottom: 70px;
  right: 280px;
  z-index: 3;
  width: 110px;
  text-align: center;
  font-family: 'Pixelify Sans', monospace;
  line-height: 1;
  pointer-events: auto;
  user-select: none;
}
.rel-plant-pot   { font-size: 44px; line-height: 1; }
.rel-plant-stage { font-size: 38px; line-height: 1; margin-top: -8px; transition: all 0.4s; }
.rel-plant-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: var(--chrome-shadow);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 6px;
  background: rgba(255,255,255,0.85);
  border-radius: 8px;
  padding: 2px 8px;
  display: inline-block;
  border: 1px solid rgba(102,31,66,0.2);
}

/* ─── pixel goldfish bowl 🐠 (bottom-right cluster, bigger) ─── */
.fishbowl {
  position: fixed;
  bottom: 40px;
  right: 130px;
  z-index: 3;
  width: 130px;
  height: 140px;
  padding-top: 20px;
  cursor: pointer;
  user-select: none;
}
.fishbowl-water {
  position: absolute;
  inset: 16px 6px 22px 6px;
  background: linear-gradient(180deg, rgba(160,220,255,0.6) 0%, rgba(80,170,230,0.78) 100%);
  border: 3px solid var(--chrome-shadow);
  border-radius: 50% 50% 18px 18px / 32% 32% 18px 18px;
  box-shadow:
    inset 3px 3px 0 rgba(255,255,255,0.55),
    3px 4px 0 rgba(102,31,66,0.35),
    0 0 16px rgba(80,170,230,0.4);
  overflow: hidden;
}
.fishbowl-water::before {
  content: '';
  position: absolute;
  top: 8px; left: 12px;
  width: 22px; height: 6px;
  background: rgba(255,255,255,0.75);
  border-radius: 50%;
}
.fishbowl-fish {
  position: absolute;
  top: 42px;
  left: 22px;
  font-size: 32px;
  animation: fish-swim 6s ease-in-out infinite;
  z-index: 2;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
}
.fishbowl-name {
  position: absolute;
  top: 0;
  left: 0; right: 0;
  text-align: center;
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 18px;
  color: var(--text-dark);
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.9);
}
.fishbowl-food {
  position: absolute;
  font-size: 16px;
  color: #FF8C00;
  font-weight: 700;
  pointer-events: none;
  z-index: 3;
  text-shadow: 0 0 4px rgba(255,140,0,0.6);
  animation: fish-food 2s ease-in forwards;
}
/* tank plant (kelp/seaweed inside the bowl) */
.fishbowl-plant {
  position: absolute;
  bottom: 22px;
  left: 18px;
  font-size: 22px;
  z-index: 1;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
  animation: kelp-sway 4s ease-in-out infinite;
  transform-origin: bottom center;
}
.fishbowl-plant.right {
  left: auto;
  right: 18px;
  font-size: 18px;
  animation-delay: 1.5s;
}
@keyframes kelp-sway {
  0%, 100% { transform: rotate(-4deg); }
  50%      { transform: rotate(4deg); }
}
@keyframes fish-swim {
  0%, 100% { transform: translateX(0) scaleX(1); }
  45%      { transform: translateX(60px) scaleX(1); }
  50%      { transform: translateX(60px) scaleX(-1); }
  95%      { transform: translateX(0) scaleX(-1); }
  100%     { transform: translateX(0) scaleX(1); }
}
@keyframes fish-food {
  0%   { top: 12px; opacity: 1; }
  100% { top: 50px; opacity: 0.4; }
}

/* ─── MSN profile window ─── */
.profile-body {
  background: #FFFFFF;
  border: 2px solid var(--chrome-shadow);
  border-right-color: #FFFFFF;
  border-bottom-color: #FFFFFF;
  margin: 4px;
  padding: 16px 18px;
  font-family: 'VT323', monospace;
  color: var(--text-dark);
}
.profile-header {
  text-align: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(102,31,66,0.3);
}
.profile-avatar { font-size: 56px; line-height: 1; filter: drop-shadow(2px 4px 0 rgba(102,31,66,0.2)); }
.profile-name {
  font-family: 'Pixelify Sans', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--pink-title);
  margin-top: 6px;
}
.profile-status {
  font-family: 'Pacifico', cursive;
  font-size: 16px;
  color: var(--text-dark);
  margin-top: 2px;
}
.profile-stats {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  font-size: 15px;
  margin-bottom: 14px;
}
.profile-stats dt {
  font-family: 'Pixelify Sans', monospace;
  font-weight: 700;
  font-size: 11px;
  color: var(--pink-title);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  align-self: center;
}
.profile-stats dd { color: var(--text-dark); }
.profile-about, .profile-quote {
  background: #FFE4F1;
  border: 1px dashed rgba(102,31,66,0.3);
  padding: 10px 12px;
  margin-bottom: 10px;
}
.profile-about h4, .profile-quote h4 {
  font-family: 'Pixelify Sans', monospace;
  font-size: 11px;
  color: var(--pink-title);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 4px;
}
.profile-about p, .profile-quote p {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.4;
}

/* ─── buddy poke shake ─── */
.buddy-poked { animation: poke-shake 0.4s ease-in-out; }
@keyframes poke-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px) rotate(-3deg); }
  40% { transform: translateX(6px) rotate(3deg); }
  60% { transform: translateX(-4px) rotate(-2deg); }
  80% { transform: translateX(4px) rotate(2deg); }
}

/* ─── where_we'll_be desktop widget (always visible, draggable) ─── */
.years-widget {
  position: fixed;
  bottom: 70px;
  left: 18px;
  z-index: 3;
  width: 320px;
  background: linear-gradient(180deg, #FFE4F1 0%, #FFFFFF 100%);
  border: 2px solid var(--chrome-shadow);
  border-radius: 12px;
  box-shadow:
    inset 2px 2px 0 rgba(255,255,255,0.7),
    3px 4px 0 rgba(102,31,66,0.35),
    0 0 16px rgba(255,79,163,0.25);
  padding: 12px 16px 14px;
  font-family: 'VT323', monospace;
  color: var(--text-dark);
  cursor: grab;
}
.years-widget:active { cursor: grabbing; }
.years-widget-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255,79,163,0.3);
}
.years-widget-glyph { font-size: 18px; line-height: 1; }
.years-widget-label {
  font-family: 'Pixelify Sans', monospace;
  font-size: 11px;
  color: var(--pink-title);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  flex: 1;
}
.years-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 26px;
  font-weight: 700;
  color: var(--pink-title);
  text-shadow: 0 0 8px rgba(255,79,163,0.3);
  line-height: 1;
}
.years-slider {
  width: 100%;
  height: 6px;
  margin: 8px 0 16px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, #FFD6EC, var(--pink-title));
  border-radius: 3px;
  outline: none;
}
.years-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--pink-title);
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(255,79,163,0.5);
  cursor: pointer;
}
.years-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--pink-title);
  border: 3px solid #FFFFFF;
  box-shadow: 0 2px 6px rgba(255,79,163,0.5);
  cursor: pointer;
}
.years-text {
  font-family: 'VT323', monospace;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dark);
  background: #FFFFFF;
  border: 1px dashed rgba(102,31,66,0.3);
  padding: 8px 12px;
  min-height: 70px;
  max-height: 130px;
  overflow-y: auto;
  animation: years-fade 0.3s ease-out;
}
@keyframes years-fade {
  from { opacity: 0.3; transform: translateY(4px); }
  to   { opacity: 1;   transform: translateY(0); }
}

/* ─── tray music bar (when playlist is minimized) ─── */
.tray-btn-music {
  background: linear-gradient(180deg, #1A0A2E 0%, #2D1052 100%) !important;
  color: #FFD6EC !important;
  border-right-color: #4A1A6E !important;
  border-bottom-color: #4A1A6E !important;
}
.tray-btn-music .tray-btn-glyph { color: #FF4FA3; }
.music-eq {
  display: inline-flex;
  gap: 2px;
  height: 12px;
  align-items: flex-end;
}
.music-eq i {
  display: inline-block;
  width: 3px;
  background: #FF4FA3;
  animation: music-eq-bar 0.7s ease-in-out infinite;
}
.music-eq i:nth-child(1) { animation-delay: 0s;   height: 50%; }
.music-eq i:nth-child(2) { animation-delay: 0.2s; height: 80%; }
.music-eq i:nth-child(3) { animation-delay: 0.4s; height: 60%; }
@keyframes music-eq-bar {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1); }
}

/* ═══════════════════════════════════════════════
   BROWSER WINDOW — landscape with url + bookmarks bar
   ═══════════════════════════════════════════════ */
.browser-tabs {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  padding: 6px 8px 0;
  background: linear-gradient(#E888C2, #D06AA8);
  overflow-x: auto;
  white-space: nowrap;
}
.browser-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 7px;
  background: #FFC8DC;
  border: 1px solid #A85278;
  border-bottom: none;
  border-radius: 7px 7px 0 0;
  font-family: 'Pixelify Sans', monospace;
  font-size: 11px;
  color: #5A2038;
  max-width: 200px;
  cursor: pointer;
  transition: background 0.1s;
  flex-shrink: 0;
}
.browser-tab:hover { background: #FFD8E8; }
.browser-tab.active {
  background: #FFF6FB;
  color: #3D1C2E;
  padding-bottom: 8px;
  margin-bottom: -1px;
  z-index: 1;
}
.bt-favicon { font-size: 11px; }
.bt-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-close {
  font-size: 10px;
  opacity: 0.5;
  padding: 0 2px;
  border-radius: 3px;
}
.bt-close:hover { opacity: 1; background: rgba(0,0,0,0.1); }
.browser-tab-new {
  width: 24px; height: 22px;
  margin-left: 4px;
  margin-bottom: 2px;
  border: 1px solid #A85278;
  background: rgba(255,255,255,0.4);
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  color: #FFFFFF;
  line-height: 1;
  font-weight: 700;
}
.browser-tab-new:hover { background: rgba(255,255,255,0.7); color: #5A2038; }
.browser-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background: linear-gradient(#FFF6FB, #FFE4F1);
  border-bottom: 1px solid #E8B8CF;
}
.browser-btn {
  width: 24px; height: 22px;
  border: 1px solid #C89BAF;
  background: linear-gradient(#FFFFFF, #FFE0EC);
  border-radius: 3px;
  cursor: pointer;
  font-size: 12px;
  color: #6A2C48;
  line-height: 1;
}
.browser-btn:hover { background: linear-gradient(#FFFFFF, #FFC8DC); }
.browser-btn:active { background: #FFB8D0; }
.browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 4px;
  padding: 3px 8px;
  background: #FFFFFF;
  border: 1px inset #B89BAF;
  border-radius: 3px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  color: #3D1C2E;
  min-width: 0;
  overflow: hidden;
}
.browser-lock { font-size: 11px; }
.browser-url-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-bookmarks-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background: #FFF0F7;
  border-bottom: 1px solid #E8B8CF;
  overflow-x: auto;
  white-space: nowrap;
}
.bm-star { color: #E0A040; font-size: 12px; padding: 0 4px 0 2px; }
.bm-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: #FFFFFF;
  border: 1px solid #E8B8CF;
  border-radius: 3px;
  font-family: 'Pixelify Sans', monospace;
  font-size: 12px;
  color: #3D1C2E;
  text-decoration: none;
  transition: background 0.1s, transform 0.08s;
  flex-shrink: 0;
}
.bm-tab:hover { background: #FFEDF5; transform: translateY(-1px); }
.bm-tab span { font-size: 13px; }
.browser-viewport {
  background: #FFFFFF;
  max-height: calc(100vh - 260px);
  min-height: 280px;
  padding: 30px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
}
.browser-homepage { text-align: center; width: 100%; max-width: 540px; }
.browser-logo {
  font-family: 'Fredoka One', cursive;
  font-size: 64px;
  color: var(--pink-title);
  text-shadow: 3px 3px 0 rgba(255,184,216,0.6);
  line-height: 1;
  margin-bottom: 18px;
}
.browser-logo span { color: #D04878; }
.browser-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid #E0A0C0;
  border-radius: 22px;
  padding: 8px 16px;
  box-shadow: 0 2px 8px rgba(102,31,66,0.12);
  margin: 0 auto 22px;
  max-width: 480px;
}
.browser-search-icon { font-size: 14px; opacity: 0.6; }
.browser-search-input {
  flex: 1;
  border: 0;
  outline: 0;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: #3D1C2E;
  background: transparent;
  min-width: 0;
  text-align: left;
}
.browser-search-caret {
  color: var(--pink-title);
  font-weight: 700;
  animation: search-caret 1s steps(2) infinite;
}
@keyframes search-caret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.browser-suggestions {
  text-align: left;
  max-width: 480px;
  margin: 0 auto;
}
.browser-suggest-label {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  color: #A0607A;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 4px 6px;
  border-bottom: 1px dashed #E8C0D4;
  margin-bottom: 4px;
}
.browser-suggest {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: #3D1C2E;
  border-radius: 4px;
  cursor: default;
}
.browser-suggest:hover { background: #FFF0F7; }
.browser-suggest span { font-size: 11px; opacity: 0.5; }

/* ═══════════════════════════════════════════════
   TOP DESKTOP BAR (Mac-style menu strip)
   ═══════════════════════════════════════════════ */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 40px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: linear-gradient(180deg, rgba(255,230,245,0.92) 0%, rgba(255,200,220,0.88) 100%);
  border-bottom: 1px solid rgba(102,31,66,0.35);
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 2px 6px rgba(102,31,66,0.15);
  font-family: 'Pixelify Sans', monospace;
  font-size: 12px;
  color: #3D1C2E;
  backdrop-filter: blur(4px);
}
.top-bar-left, .top-bar-right { display: flex; align-items: center; gap: 12px; }
.top-bar-center {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  color: #6A2C48;
  letter-spacing: 0.04em;
}
.tb-apple { color: #D04878; font-size: 14px; line-height: 1; }
.tb-menu { cursor: default; padding: 2px 4px; border-radius: 3px; }
.tb-menu:hover { background: rgba(208,72,120,0.2); }
.tb-sep { opacity: 0.4; }
body { padding-top: 40px; }
.desktop { inset: 40px 0 40px 0 !important; overflow: hidden; }
@media (max-width: 680px) {
  .top-bar { font-size: 10px; padding: 0 8px; }
  .top-bar-center { display: none; }
  .top-bar-left { gap: 8px; }
  .tb-menu:not(:nth-child(-n+2)) { display: none; }
}

/* ═══════════════════════════════════════════════
   BROWSER VIEWS — inbox + wedding tab
   ═══════════════════════════════════════════════ */
.browser-view { width: 100%; }
a.browser-suggest { text-decoration: none; color: #3D1C2E; display: flex; }
a.browser-suggest[data-open-tab] { cursor: pointer; }

.webmail { font-family: 'Pixelify Sans', monospace; max-width: 600px; margin: 0 auto; }
.webmail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: linear-gradient(#FFE4F1, #FFC8DC);
  border: 1px solid #E8B8CF;
  border-radius: 6px 6px 0 0;
  font-size: 13px;
}
.webmail-logo { font-family: 'Fredoka One', cursive; font-size: 18px; color: var(--pink-title); }
.webmail-user { font-family: 'Share Tech Mono', monospace; font-size: 11px; color: #6A2C48; }
.webmail-email {
  background: #FFFFFF;
  border: 1px solid #E8B8CF;
  border-top: 0;
  border-radius: 0 0 6px 6px;
  padding: 14px 18px;
}
.webmail-meta {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: #5A2038;
  line-height: 1.7;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px dashed #E8C0D4;
}
.webmail-meta b { color: #A0607A; font-weight: 400; margin-right: 4px; }
.webmail-body { font-family: 'Special Elite', monospace; font-size: 14px; color: #3D1C2E; line-height: 1.6; }
.webmail-body p { margin: 0 0 12px; }
.webmail-img {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 14px auto;
  border: 6px solid #FFFFFF;
  box-shadow: 0 4px 14px rgba(102,31,66,0.2);
  border-radius: 2px;
}
.webmail-sig { font-family: 'Pacifico', cursive; font-size: 22px; color: var(--pink-title); margin-top: 18px !important; }
.webmail-actions { display: flex; gap: 6px; margin-top: 16px; padding-top: 12px; border-top: 1px dashed #E8C0D4; }

.browser-wedding { text-align: center; padding: 40px 20px; }
.bw-date {
  font-family: 'Fredoka One', cursive;
  font-size: 56px;
  color: var(--pink-title);
  text-shadow: 3px 3px 0 rgba(255,184,216,0.6);
  line-height: 1;
}
.bw-sub { font-family: 'Special Elite', monospace; font-size: 16px; color: #A0607A; margin-top: 8px; }
.bw-countdown {
  font-family: 'Share Tech Mono', monospace;
  font-size: 40px;
  color: #D04878;
  margin: 28px 0 12px;
  font-weight: 700;
}
.bw-line { font-family: 'Pixelify Sans', monospace; font-size: 14px; color: #3D1C2E; }
.bw-note { font-family: 'Special Elite', monospace; font-size: 11px; color: #A0607A; margin-top: 28px; }

/* ═══════════════════════════════════════════════
   BROWSER POEM + LOVE FACT
   ═══════════════════════════════════════════════ */
.poem-page {
  max-width: 520px;
  margin: 0 auto;
  font-family: 'Special Elite', 'Courier New', monospace;
  color: #3D1C2E;
}
.poem-url {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: #A0607A;
  border-bottom: 1px dashed #E8C0D4;
  padding-bottom: 8px;
  margin-bottom: 18px;
}
.poem-title {
  font-family: 'Pacifico', cursive;
  font-size: 32px;
  color: var(--pink-title);
  margin: 0 0 4px;
  text-shadow: 2px 2px 0 rgba(255,184,216,0.5);
}
.poem-byline { font-size: 12px; color: #A0607A; margin: 0 0 18px; font-style: italic; }
.poem-body p { font-size: 15px; line-height: 1.8; margin: 0 0 16px; }
.poem-body i { color: #D04878; }
.poem-sig { font-family: 'Pacifico', cursive; font-size: 22px; color: var(--pink-title); margin-top: 20px !important; }

.browser-fact {
  margin: 22px auto 0;
  max-width: 460px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #FFF4FA 0%, #FFE4F1 100%);
  border: 1px dashed #E8A8C6;
  border-radius: 10px;
  text-align: left;
}
.fact-label {
  display: block;
  font-family: 'Pacifico', cursive;
  font-size: 14px;
  color: var(--pink-title);
  margin-bottom: 4px;
}
.fact-text {
  font-family: 'Special Elite', monospace;
  font-size: 12px;
  color: #5A2038;
  line-height: 1.5;
}

.poem-farsi {
  font-family: 'Noto Naskh Arabic', 'Scheherazade New', 'Amiri', serif;
  font-size: 20px !important;
  line-height: 2 !important;
  color: #6A2C48;
  text-align: center;
  padding: 14px 10px;
  margin: 0 0 20px !important;
  background: linear-gradient(180deg, #FFF6FB, #FFE4F1);
  border-radius: 8px;
  border: 1px dashed #E8A8C6;
}
.poem-note {
  font-family: 'Special Elite', monospace;
  font-size: 12px !important;
  color: #A0607A;
  font-style: italic;
  line-height: 1.5 !important;
  margin-top: 8px !important;
}

/* ═══════════════════════════════════════════════
   WEDDING DAY TRANSFORMATION — may 15, 2026
   white (#FFFFFF), pearl (#F8F4FF), silver (#C0C0C0)
   ═══════════════════════════════════════════════ */

/* ─── white ribbon banner at very top ─── */
.wedding-ribbon {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #E8E0F0, #FFFFFF 25%, #F8F4FF 50%, #FFFFFF 75%, #E8E0F0);
  background-size: 200% auto;
  animation: wedding-ribbon-shine 4s linear infinite;
  box-shadow:
    0 2px 12px rgba(200,190,220,0.4),
    inset 0 1px 0 rgba(255,255,255,0.9),
    inset 0 -1px 0 rgba(200,190,220,0.3);
  border-bottom: 1px solid #D8D0E4;
}
.wedding-ribbon-text {
  font-family: 'Pacifico', cursive;
  font-size: 16px;
  color: #6A5080;
  text-shadow: 0 1px 0 rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
}
@keyframes wedding-ribbon-shine {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* push everything down when ribbon is visible */
body.wedding-day { padding-top: 76px !important; }
body.wedding-day .top-bar { top: 36px; }
body.wedding-day .desktop { inset: 76px 0 40px 0 !important; }
body.wedding-day .wedding-ribbon { display: flex !important; }

/* ─── color overrides: pink → white/pearl ─── */
body.wedding-day {
  --pink-title: #8A6FA0;
  --pink-title-2: #A888C0;
}

/* wallpaper shifts to pure white/pearl */
body.wedding-day .wallpaper {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8F4FF 30%, #F0EAF8 60%, #E8E0F0 100%) !important;
}

/* pixel sun becomes soft white glow */
body.wedding-day .pixel-sun::before {
  background: radial-gradient(circle at 40% 35%, #FFFFFF 0%, #F0E8FF 35%, #D8C8F0 65%, #C0A8E0 100%);
  box-shadow:
    0 0 80px rgba(255,255,255,0.8),
    0 0 140px rgba(200,180,240,0.3);
}

/* stars become white/silver */
body.wedding-day .sky-star {
  background: #FFFFFF;
  box-shadow: 0 0 8px rgba(255,255,255,0.95);
}
body.wedding-day .sky-star.gold {
  background: #E0D8F0;
  box-shadow: 0 0 6px rgba(200,180,240,0.8);
}
body.wedding-day .sky-star.pink {
  background: #FFFFFF;
  box-shadow: 0 0 8px rgba(255,255,255,1);
}

/* top bar goes white */
body.wedding-day .top-bar {
  background: linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(248,244,255,0.95) 100%);
  border-bottom-color: #D8D0E4;
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 2px 6px rgba(150,130,180,0.15);
}
body.wedding-day .top-bar-center { color: #6A5080; font-weight: 700; }
body.wedding-day .tb-apple { color: #C0A8E0; }

/* countdown widget becomes white/pearl */
body.wedding-day .countdown {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8F4FF 50%, #F0E8FF 100%);
  border-color: #C0B0D8;
  box-shadow:
    inset 2px 2px 0 rgba(255,255,255,0.9),
    inset -3px -3px 0 rgba(160,140,200,0.15),
    4px 5px 0 rgba(100,80,140,0.15),
    0 0 40px rgba(200,180,240,0.25);
}
body.wedding-day .countdown::before,
body.wedding-day .countdown::after {
  color: #C0A8E0;
  text-shadow: 0 0 8px rgba(200,180,240,0.6);
}
body.wedding-day .countdown-label {
  color: #6A5080;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.9), 0 0 12px rgba(200,180,240,0.3);
}
body.wedding-day .cd-cell {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF8FF 50%, #F0E8FF 100%);
  color: #6A5080;
  border-color: #C0B0D8;
  text-shadow: 1px 1px 0 rgba(255,255,255,0.9);
  box-shadow:
    inset 1px 1px 0 rgba(255,255,255,0.9),
    inset -1px -1px 0 rgba(160,140,200,0.15),
    2px 2px 0 rgba(100,80,140,0.12);
}
body.wedding-day .cd-cell .unit { color: #8A6FA0; }
body.wedding-day .countdown-sub { color: #8A6FA0; }

/* title bars become white/pearl */
body.wedding-day .title-bar {
  background: linear-gradient(90deg, #E8E0F0, #FFFFFF, #E8E0F0) !important;
}
body.wedding-day .title-bar-text { color: #5A4070 !important; }

/* sticky notes become white/lavender */
body.wedding-day .sticky-note {
  background: linear-gradient(135deg, #FFFFFF 0%, #FAF8FF 60%, #F0E8FF 100%) !important;
  border-color: #D0C4E4 !important;
  box-shadow: 3px 4px 0 rgba(140,120,180,0.2) !important;
}
body.wedding-day .sticky-note .sticky-text { color: #5A4070 !important; }
body.wedding-day .sticky-tape { background: rgba(200,180,240,0.3) !important; }

/* taskbar white */
body.wedding-day .taskbar {
  background: linear-gradient(180deg, #FFFFFF, #F0E8FF) !important;
  border-top-color: #D8D0E4 !important;
}
body.wedding-day .start-btn {
  background: linear-gradient(180deg, #FFFFFF, #E8E0F0) !important;
  color: #5A4070 !important;
}

/* years widget white */
body.wedding-day .years-widget {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAF8FF 100%);
  border-color: #C0B0D8;
  box-shadow:
    inset 2px 2px 0 rgba(255,255,255,0.9),
    3px 4px 0 rgba(140,120,180,0.15),
    0 0 16px rgba(200,180,240,0.2);
}
body.wedding-day .years-widget-label { color: #8A6FA0; }
body.wedding-day .years-num { color: #8A6FA0; text-shadow: 0 0 8px rgba(200,180,240,0.3); }
body.wedding-day .years-slider { background: linear-gradient(90deg, #F0E8FF, #D8C8F0); }
body.wedding-day .years-slider::-webkit-slider-thumb {
  background: #C0A8E0;
  box-shadow: 0 2px 6px rgba(200,180,240,0.4);
}

/* window ring badges */
body.wedding-day .win98-window::after {
  content: '💍';
  position: absolute;
  top: 4px;
  right: 54px;
  font-size: 14px;
  z-index: 10;
  filter: drop-shadow(0 1px 3px rgba(200,180,240,0.5));
  animation: wedding-badge-glow 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes wedding-badge-glow {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%      { transform: scale(1.15); opacity: 1; }
}

/* continuous confetti layer */
.wedding-confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 280;
  overflow: hidden;
  display: none;
}
body.wedding-day .wedding-confetti-layer { display: block; }

.wedding-confetti-piece {
  position: absolute;
  top: -20px;
  width: 8px;
  height: 12px;
  opacity: 0.85;
  animation: wedding-confetti-fall linear forwards;
}
.wedding-confetti-piece.circle {
  border-radius: 50%;
  width: 8px;
  height: 8px;
}
.wedding-confetti-piece.diamond {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
}
@keyframes wedding-confetti-fall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 0.85; }
  100% { transform: translateY(110vh) rotate(1080deg); opacity: 0.6; }
}

/* boot screen override */
body.wedding-day .boot-sub {
  color: #C0A8E0 !important;
  text-shadow: 0 0 12px rgba(200,180,240,0.6) !important;
}
/* skyline lightens */
body.wedding-day .skyline svg g[fill="url(#sky-sil)"] { opacity: 0.3; }
body.wedding-day .skyline svg g[fill="#3D1C2E"] { opacity: 0.3; }
/* fishbowl label */
body.wedding-day .fishbowl-name { color: #6A5080 !important; }

/* event banner override for wedding-day class */
body.wedding-day .event-banner.wedding {
  background: linear-gradient(90deg, #B8860B, #FFD700, #FFFFF0, #FFD700, #B8860B);
  background-size: 300% auto;
  color: #3D1C00;
  font-size: 18px;
  text-shadow: 0 1px 0 rgba(255,255,255,0.5);
}

/* skyline silhouette becomes golden */
body.wedding-day .skyline svg g[fill="url(#sky-sil)"] { fill: rgba(184,134,11,0.5); }

/* MSN header gold */
body.wedding-day .msn-header {
  background: linear-gradient(90deg, #B8860B, #DAA520) !important;
}

/* browser tabs gold */
body.wedding-day .browser-tabs {
  background: linear-gradient(#DAA520, #B8860B) !important;
}
body.wedding-day .browser-tab {
  background: #FFF8DC;
  border-color: #B8860B;
  color: #5C3A00;
}
body.wedding-day .browser-tab.active {
  background: #FFFFF0;
}

/* scrollbar gold tint */
body.wedding-day ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #FFD700, #DAA520) !important;
}

/* CRT scanlines slightly warmer */
body.wedding-day .crt-scanlines {
  background: repeating-linear-gradient(
    180deg,
    rgba(255,248,220,0.03) 0px,
    rgba(255,248,220,0.03) 1px,
    transparent 1px,
    transparent 3px
  );
}

/* ═══════════════════════════════════════════════
   BROWSER VIEWS — distinct color schemes
   ═══════════════════════════════════════════════ */

/* favorites — warm cream/amber (not pink) */
.browser-view[data-view="favorites"] .browser-homepage {
  background: transparent;
}
.browser-view[data-view="favorites"] { background: linear-gradient(180deg, #FFF9F0, #FFF4E6); }
.browser-view[data-view="favorites"] .browser-logo { color: #C06828; text-shadow: 3px 3px 0 rgba(192,104,40,0.25); }
.browser-view[data-view="favorites"] .browser-logo span { color: #A05020; }
.browser-view[data-view="favorites"] .browser-search { border-color: #E0B880; box-shadow: 0 2px 8px rgba(192,120,40,0.12); }
.browser-view[data-view="favorites"] .browser-suggest-label { color: #A07040; border-bottom-color: #E8D0B0; }
.browser-view[data-view="favorites"] .browser-suggest:hover { background: #FFF0D8; }
.browser-view[data-view="favorites"] .browser-fact { background: linear-gradient(135deg, #FFFAF2, #FFF0D8); border-color: #E0C090; }
.browser-view[data-view="favorites"] .fact-label { color: #C06828; }

/* inbox — cool blue/grey */
.browser-view[data-view="inbox"] { background: linear-gradient(180deg, #F4F6FC, #E8ECF8); }
.browser-view[data-view="inbox"] .webmail-header {
  background: linear-gradient(#E8ECF8, #D0D8F0);
  border-color: #B0B8D0;
}
.browser-view[data-view="inbox"] .webmail-logo { color: #4060A0; }
.browser-view[data-view="inbox"] .webmail-email { border-color: #C0C8E0; }
.browser-view[data-view="inbox"] .webmail-meta { border-bottom-color: #D0D8EC; }
.browser-view[data-view="inbox"] .webmail-meta b { color: #6878A0; }
.browser-view[data-view="inbox"] .webmail-sig { color: #4060A0; }

/* poem — deep sage/forest green */
.browser-view[data-view="poem"] { background: linear-gradient(180deg, #F0F4F0, #E0EAE0); }
.browser-view[data-view="poem"] .poem-title { color: #3A6A4A; text-shadow: 2px 2px 0 rgba(58,106,74,0.15); }
.browser-view[data-view="poem"] .poem-byline { color: #5A8A6A; }
.browser-view[data-view="poem"] .poem-farsi {
  background: linear-gradient(180deg, #F4F8F4, #E0EAE0);
  border-color: #A0C0A8;
  color: #3A5A42;
}
.browser-view[data-view="poem"] .poem-body p { color: #2A4A34; }
.browser-view[data-view="poem"] .poem-body i { color: #4A7A5A; }
.browser-view[data-view="poem"] .poem-sig { color: #3A6A4A; }
.browser-view[data-view="poem"] .poem-note { color: #6A9A78; }
.browser-view[data-view="poem"] .poem-url { color: #6A9A78; border-bottom-color: #B0D0B8; }

/* wedding — midnight navy/ivory */
.browser-view[data-view="wedding"] { background: linear-gradient(180deg, #0C1428, #1A2440, #0C1428); }
.bw-header { padding: 20px 0 10px; }
.bw-date {
  font-family: 'Pacifico', cursive;
  font-size: 48px;
  color: #F0E8D8;
  text-shadow: 0 0 30px rgba(240,232,216,0.3);
  line-height: 1;
}
.bw-sub { font-family: 'Special Elite', monospace; font-size: 14px; color: #8898B8; margin-top: 6px; }
.bw-countdown {
  font-family: 'Share Tech Mono', monospace;
  font-size: 36px;
  color: #D0C8B0;
  margin: 24px 0 20px;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(208,200,176,0.25);
}
.bw-itinerary { text-align: left; max-width: 400px; margin: 0 auto 24px; }
.bw-section-title {
  font-family: 'Pacifico', cursive;
  font-size: 16px;
  color: #A0A8C0;
  margin: 0 0 12px;
}
.bw-item {
  display: flex;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: 'Special Elite', monospace;
  font-size: 13px;
}
.bw-time { color: #8898B8; width: 80px; flex-shrink: 0; text-align: right; }
.bw-event { color: #D0C8B8; }
.bw-promises {
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
  font-family: 'Special Elite', monospace;
  font-size: 13px;
  color: #B0A898;
  line-height: 1.7;
}
.bw-promises p { margin: 0 0 10px; }
.bw-promises-sig {
  font-family: 'Pacifico', cursive;
  font-size: 18px;
  color: #D0C0A0;
  margin-top: 14px !important;
}

/* ═══════════════════════════════════════════════
   CONFESSIONS TAB — things i've never told you
   ═══════════════════════════════════════════════ */
.browser-view[data-view="confessions"] { background: #1A1218; }
.confessions-page {
  max-width: 460px;
  margin: 0 auto;
  padding: 10px 0;
}
.conf-header { text-align: center; margin-bottom: 24px; }
.conf-title {
  font-family: 'Pacifico', cursive;
  font-size: 26px;
  color: #E8D0C0;
  text-shadow: 0 0 20px rgba(232,208,192,0.2);
}
.conf-sub {
  font-family: 'Special Elite', monospace;
  font-size: 11px;
  color: #7A6060;
  margin-top: 6px;
}
.conf-list { display: flex; flex-direction: column; gap: 6px; }
.conf-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.conf-item:hover { background: rgba(255,255,255,0.08); border-color: rgba(232,208,192,0.2); }
.conf-item.conf-open { background: rgba(232,208,192,0.1); border-color: rgba(232,208,192,0.3); }
.conf-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: #5A4848;
  min-width: 20px;
}
.conf-label {
  font-family: 'Special Elite', monospace;
  font-size: 14px;
  color: #C0A898;
}
.conf-reveal {
  display: none;
  margin: 20px 0;
  padding: 18px 20px;
  background: rgba(232,208,192,0.06);
  border-left: 3px solid rgba(232,208,192,0.3);
  border-radius: 0 8px 8px 0;
  font-family: 'Special Elite', monospace;
  font-size: 14px;
  color: #D8C0B0;
  line-height: 1.7;
}
.conf-fade { animation: conf-fade-in 0.6s ease-out; }
@keyframes conf-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.conf-footer {
  text-align: right;
  font-family: 'Pacifico', cursive;
  font-size: 18px;
  color: #8A6A5A;
  margin-top: 20px;
  padding-right: 10px;
}

/* ═══════════════════════════════════════════════
   KOREA TRIP TAB
   ═══════════════════════════════════════════════ */
.browser-view[data-view="korea"] { background: linear-gradient(180deg, #F8F0F0, #F0E8E8); }
.korea-page { max-width: 560px; margin: 0 auto; }
.korea-header { text-align: center; margin-bottom: 20px; }
.korea-flag { font-size: 40px; margin-bottom: 4px; }
.korea-title {
  font-size: 24px;
  color: #C03030;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.korea-title-en {
  font-family: 'Pacifico', cursive;
  font-size: 28px;
  color: #2A2A2A;
  margin-top: 2px;
}
.korea-sub {
  font-family: 'Special Elite', monospace;
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}
.korea-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 500px) { .korea-grid { grid-template-columns: 1fr; } }
.korea-card {
  background: #FFFFFF;
  border: 1px solid #E8E0E0;
  border-radius: 10px;
  padding: 14px 16px;
  transition: transform 0.1s, box-shadow 0.1s;
}
.korea-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.korea-card[data-category="food"] { border-left: 3px solid #E06040; }
.korea-card[data-category="places"] { border-left: 3px solid #4080C0; }
.korea-card[data-category="culture"] { border-left: 3px solid #C060A0; }
.korea-card[data-category="vibes"] { border-left: 3px solid #60A060; }
.korea-card-icon { font-size: 22px; margin-bottom: 4px; }
.korea-card-title {
  font-family: 'Pixelify Sans', monospace;
  font-size: 13px;
  font-weight: 700;
  color: #2A2A2A;
  margin-bottom: 8px;
}
.korea-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'Special Elite', monospace;
  font-size: 12px;
  color: #4A4A4A;
  line-height: 1.6;
}
.korea-list li { padding: 2px 0; }
.korea-list li::before { content: '· '; color: #C0B0B0; }
.korea-footer {
  text-align: center;
  margin-top: 20px;
  font-family: 'Special Elite', monospace;
  font-size: 13px;
  color: #6A5A5A;
}
.korea-footer p { margin: 0 0 4px; }
.korea-sig { font-family: 'Pacifico', cursive; font-size: 18px; color: #C03030; }

/* ═══════════════════════════════════════════════
   TOP BAR DROPDOWN MENUS
   ═══════════════════════════════════════════════ */
.tb-dropdown { position: relative; }
.tb-drop {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #FFFFFF;
  border: 1px solid #C89BAF;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(102,31,66,0.2);
  padding: 4px 0;
  z-index: 9999;
  font-family: 'Pixelify Sans', monospace;
  font-size: 12px;
}
.tb-dropdown:hover > .tb-drop,
.tb-dropdown.tb-open > .tb-drop { display: block; }
.tb-drop-item {
  padding: 6px 12px;
  color: #3D1C2E;
  cursor: pointer;
  white-space: nowrap;
}
.tb-drop-item:hover { background: #FFE4F1; color: #D04878; }
.tb-drop-sep { height: 1px; background: #E8C0D4; margin: 3px 8px; }

/* ═══════════════════════════════════════════════
   TOP BAR — marquee, clock, weather, now playing
   ═══════════════════════════════════════════════ */
.top-bar-center { flex: 1; overflow: hidden; margin: 0 12px; }
.tb-marquee {
  overflow: hidden;
  position: relative;
  height: 18px;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.tb-marquee-inner {
  display: inline-block;
  white-space: nowrap;
  animation: tb-scroll 180s linear infinite;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: #5A3048;
  line-height: 18px;
}
@keyframes tb-scroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
.tb-now-playing {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: #6A3A50;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#tb-weather-mini, #tb-clock-mini {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: #5A3048;
  white-space: nowrap;
}

.tb-drop-disabled {
  color: #B0A0A8 !important;
  cursor: default !important;
  font-style: italic;
}
.tb-drop-disabled:hover { background: transparent !important; color: #B0A0A8 !important; }

/* ═══════════════════════════════════════════════
   BOARDING PASS WIDGET
   ═══════════════════════════════════════════════ */
.boarding-pass {
  cursor: grab;
  user-select: none;
  filter: drop-shadow(2px 4px 8px rgba(0,0,0,0.25));
  transition: filter 0.2s;
}
.boarding-pass:hover { filter: drop-shadow(2px 6px 12px rgba(0,0,0,0.35)); }
.boarding-pass.dragging { cursor: grabbing; }

.bp-inner {
  display: flex;
  background: #F5F0E8;
  border: 2px solid #C8B8A0;
  border-radius: 8px;
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  overflow: hidden;
  max-width: 380px;
  min-width: 300px;
}

.bp-left {
  padding: 10px 14px;
  flex: 1;
  min-width: 0;
}

.bp-airline {
  font-size: 10px;
  font-weight: 700;
  color: #8A2050;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 6px;
  border-bottom: 1px solid #D8C8B0;
  padding-bottom: 4px;
}

.bp-route {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.bp-city {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bp-code {
  font-size: 22px;
  font-weight: 700;
  color: #2A1A18;
  letter-spacing: 2px;
  line-height: 1;
}

.bp-city-name {
  font-size: 8px;
  color: #8A7A68;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bp-arrow {
  font-size: 11px;
  color: #B08060;
  white-space: nowrap;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.bp-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
}

.bp-field {
  display: flex;
  flex-direction: column;
}

.bp-label {
  font-size: 7px;
  color: #A09080;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.bp-value {
  font-size: 11px;
  color: #2A1A18;
  font-weight: 600;
}

.bp-tear {
  width: 22px;
  flex-shrink: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 4px,
    #C8B8A0 4px,
    #C8B8A0 8px
  );
  position: relative;
}
.bp-tear::before,
.bp-tear::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 6px;
  background: var(--wallpaper-bg, #FFEDF5);
  border-radius: 0 0 50% 50%;
}
.bp-tear::before { top: -1px; border-radius: 0 0 50% 50%; }
.bp-tear::after { bottom: -1px; border-radius: 50% 50% 0 0; }

.bp-right {
  width: 80px;
  flex-shrink: 0;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  background: #F0EBE0;
  border-left: none;
}

.bp-stub-airline {
  font-size: 9px;
  font-weight: 700;
  color: #8A2050;
  letter-spacing: 2px;
}

.bp-stub-route {
  font-size: 12px;
  color: #2A1A18;
  font-weight: 600;
}

.bp-stub-date {
  font-size: 10px;
  color: #6A5A48;
}

.bp-barcode {
  width: 56px;
  height: 28px;
  overflow: hidden;
  margin: 4px 0;
}

.bp-barcode-lines {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    #2A1A18 0px,
    #2A1A18 2px,
    transparent 2px,
    transparent 3px,
    #2A1A18 3px,
    #2A1A18 4px,
    transparent 4px,
    transparent 7px,
    #2A1A18 7px,
    #2A1A18 9px,
    transparent 9px,
    transparent 10px,
    #2A1A18 10px,
    #2A1A18 11px,
    transparent 11px,
    transparent 14px
  );
}

.bp-stub-pax {
  font-size: 10px;
  font-weight: 700;
  color: #8A2050;
  letter-spacing: 1px;
}

/* mobile: smaller boarding pass */
@media (max-width: 700px) {
  .boarding-pass { right: 8px !important; bottom: 50px !important; }
  .bp-inner { max-width: 280px; min-width: 240px; }
  .bp-code { font-size: 18px; }
  .bp-right { width: 60px; padding: 8px 4px; }
}

/* ═══════════════════════════════════════════════
   DEPARTURES BOARD
   ═══════════════════════════════════════════════ */
.departures-body {
  background: #0A0A0A;
  padding: 0;
  font-family: 'Share Tech Mono', 'Courier New', monospace;
  overflow-x: auto;
}

.dep-header {
  background: #111;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 2px solid #222;
}

.dep-header-icon {
  font-size: 20px;
  color: #FFB800;
  filter: drop-shadow(0 0 4px rgba(255,184,0,0.5));
}

.dep-header-text {
  font-size: 18px;
  font-weight: 700;
  color: #FFB800;
  letter-spacing: 6px;
  text-transform: uppercase;
}

.dep-header-origin {
  margin-left: auto;
  font-size: 11px;
  color: #888;
  letter-spacing: 2px;
}

.dep-board {
  padding: 8px 0;
}

.dep-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  padding: 0 16px;
  min-height: 36px;
  align-items: center;
  border-bottom: 1px solid #1A1A1A;
}

.dep-row-header {
  min-height: 28px;
  border-bottom: 2px solid #333;
}

.dep-row-header .dep-col {
  font-size: 10px;
  color: #666;
  letter-spacing: 2px;
}

.dep-col {
  font-size: 14px;
  color: #FFB800;
  letter-spacing: 1px;
  padding: 6px 0;
  white-space: nowrap;
  overflow: hidden;
}

.dep-col-status {
  text-align: right;
}

/* split-flap animation */
.dep-flap {
  position: relative;
  overflow: hidden;
}
.dep-flap .dep-char {
  display: inline-block;
  animation: flapIn 0.12s ease-out forwards;
  opacity: 0;
}
@keyframes flapIn {
  0%   { opacity: 0; transform: rotateX(-90deg); }
  60%  { opacity: 1; transform: rotateX(10deg); }
  100% { opacity: 1; transform: rotateX(0deg); }
}

/* status colors */
.dep-status-departed { color: #888 !important; }
.dep-status-boarding { color: #00FF88 !important; animation: statusBlink 1.2s ease-in-out infinite; }
.dep-status-next { color: #FFB800 !important; }
.dep-status-scheduled { color: #FFB800 !important; }

@keyframes statusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.dep-footer {
  background: #111;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 2px solid #222;
}

.dep-footer-pax {
  font-size: 11px;
  color: #FFB800;
  letter-spacing: 2px;
}

.dep-footer-note {
  font-size: 9px;
  color: #555;
  letter-spacing: 1px;
}

/* ambient scan line on the board */
.dep-board::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(0,0,0,0.15) 2px,
    rgba(0,0,0,0.15) 4px
  );
}
.dep-board {
  position: relative;
}

@media (max-width: 700px) {
  .dep-row { grid-template-columns: 1.5fr 0.8fr 1.2fr 1fr; padding: 0 8px; }
  .dep-col { font-size: 11px; }
  .dep-header-origin { display: none; }
  .dep-header-text { font-size: 14px; letter-spacing: 3px; }
}

/* departures view inside browser */
.browser-view[data-view="departures"] { background: #0A0A0A; padding: 0 !important; }
.dep-page { width: 100%; }

/* ═══════════════════════════════════════════════
   MOBILE OVERRIDES — all new features
   ═══════════════════════════════════════════════ */
@media (max-width: 700px) {

  /* top bar: compact, hide center, shrink right */
  .top-bar {
    height: 32px !important;
    padding: 0 6px !important;
    font-size: 10px !important;
  }
  .top-bar-center { display: none !important; }
  .top-bar-left { gap: 6px !important; }
  .top-bar-right { gap: 4px !important; }
  .tb-now-playing { display: none !important; }
  #tb-weather-mini, #tb-clock-mini { font-size: 9px !important; }
  .tb-sep { display: none !important; }
  .tb-menu:not(:nth-child(-n+2)) { display: none !important; }
  .tb-apple { font-size: 12px !important; }
  body { padding-top: 32px !important; }
  .desktop { inset: 32px 0 40px 0 !important; }

  /* top bar dropdowns full width on mobile */
  .tb-drop { min-width: 70vw !important; right: 0; left: auto !important; }

  /* fixed widgets: stack vertically, full width, static flow */
  .rel-plant, .fishbowl, .years-widget, .countdown {
    position: static !important;
    left: auto !important; top: auto !important;
    right: auto !important; bottom: auto !important;
    transform: none !important;
    width: calc(100vw - 24px) !important;
    max-width: 360px !important;
    margin: 8px auto !important;
  }

  /* put widgets at end of desktop grid */
  .rel-plant, .fishbowl, .years-widget {
    grid-column: 1 / -1;
  }

  /* fishbowl centering */
  .fishbowl {
    height: auto !important;
    padding-top: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .fishbowl-name { position: static !important; margin-bottom: 4px; }
  .fishbowl-water { position: relative !important; inset: auto !important; width: 100px; height: 80px; margin: 0 auto; }
  .fishbowl-fish { top: 20px !important; left: 10px !important; }

  /* years widget */
  .years-widget { width: calc(100vw - 24px) !important; }

  /* countdown already has mobile styles, just ensure static */
  .countdown {
    position: static !important;
    grid-column: 1 / -1;
  }

  /* browser window: near fullscreen */
  #browser-window {
    width: 98vw !important;
    max-width: 98vw !important;
    max-height: calc(100vh - 80px) !important;
    top: 36px !important;
    left: 1vw !important;
    transform: none !important;
  }

  /* browser tabs: scrollable row */
  .browser-tabs { overflow-x: auto !important; flex-wrap: nowrap !important; }
  .browser-tab { font-size: 10px !important; padding: 4px 6px 5px !important; }
  .bt-title { max-width: 80px !important; }

  /* browser nav: compact */
  .browser-nav { padding: 3px 4px !important; gap: 2px !important; }
  .browser-btn { width: 20px !important; height: 18px !important; font-size: 10px !important; }
  .browser-url { font-size: 10px !important; padding: 2px 4px !important; }

  /* browser bookmarks bar scrollable */
  .browser-bookmarks-bar { padding: 3px 4px !important; gap: 3px !important; }
  .bm-tab { font-size: 10px !important; padding: 2px 6px !important; }

  /* browser viewport */
  .browser-viewport { min-height: 200px !important; max-height: calc(100vh - 220px) !important; padding: 16px 12px !important; }

  /* browser homepage */
  .browser-logo { font-size: 40px !important; }
  .browser-search { padding: 6px 10px !important; }
  .browser-search-input { font-size: 11px !important; }
  .browser-suggest { font-size: 11px !important; padding: 5px 6px !important; }
  .browser-fact { padding: 10px 12px !important; }

  /* webmail */
  .webmail-img { max-width: 200px !important; }
  .webmail-body { font-size: 13px !important; }
  .webmail-sig { font-size: 18px !important; }

  /* poem */
  .poem-title { font-size: 22px !important; }
  .poem-farsi { font-size: 16px !important; }
  .poem-body p { font-size: 13px !important; }

  /* korea */
  .korea-grid { grid-template-columns: 1fr !important; }
  .korea-title { font-size: 18px !important; }
  .korea-title-en { font-size: 22px !important; }
  .korea-card { padding: 10px 12px !important; }

  /* departures */
  .dep-header { flex-wrap: wrap !important; padding: 10px 8px !important; }
  .dep-header-text { font-size: 16px !important; }
  .dep-header-origin { font-size: 10px !important; }
  .dep-row { font-size: 11px !important; padding: 6px 8px !important; gap: 4px !important; }
  .dep-col-dest { flex: 2 !important; }
  .dep-col-code { display: none !important; }
  .dep-col-date { flex: 1.5 !important; font-size: 10px !important; }
  .dep-col-status { flex: 1 !important; font-size: 9px !important; }
  .dep-footer { font-size: 9px !important; padding: 6px 8px !important; }

  /* confessions */
  .conf-title { font-size: 20px !important; }
  .conf-item { padding: 10px 10px !important; }
  .conf-label { font-size: 12px !important; }
  .conf-reveal { font-size: 12px !important; padding: 14px 14px !important; }

  /* wedding day ribbon */
  .wedding-ribbon { height: 28px !important; }
  .wedding-ribbon-text { font-size: 12px !important; }
  body.wedding-day { padding-top: 60px !important; }
  body.wedding-day .top-bar { top: 28px !important; }
  body.wedding-day .desktop { inset: 60px 0 40px 0 !important; }
}
