:root {
  --navy: #193e7a; --blue: #278ce6; --sky: #67c2ff; --pale: #e8f7ff; --pink: #ff91c9; --lightpink: #ffe1f0;
  --line: #a3d7ff; --ink: #214b82
;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0; color: var(--ink); font: 16px/1.6 'Trebuchet MS', Verdana, sans-serif;
  background-color: #e7f6ff;
  background-image: linear-gradient(#acd9ff80 1px, transparent 1px), linear-gradient(90deg, #acd9ff80 1px, transparent 1px), radial-gradient(ellipse at top left, #ffe0ef 0, transparent 48%), radial-gradient(ellipse at bottom right, #c1eaff 0, transparent 55%);
  background-size: 32px 32px, 32px 32px, 100% 100%, 100% 100%; min-height: 100vh;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px dashed #e9459a; outline-offset: 4px;
}

.site-shell {
  width: min(1050px, calc(100% - 28px)); margin: 32px auto; border: 3px solid var(--blue);
  border-radius: 23px; background: #f7fcffdf; box-shadow: 8px 8px 0 #81bdf0; overflow: hidden;
}

.hero {
  text-align: center; padding: 35px 16px 25px;
  background: linear-gradient(160deg, #f5fbff 20%, #d3edff 75%, #ffe5f1);
  border-bottom: 3px solid var(--blue); position: relative;
}

.tiny-top {
  font-size: 11px; letter-spacing: 2px; color: #397bb6;
}

.hero-icon {
  font-family: monospace; color: var(--blue); font-size: 24px; margin: 8px;
}

.hero h1 {
  margin: 0; font-family: 'Courier New', monospace; font-size: clamp(2.4rem, 8vw, 5.1rem); line-height: 1.1;
  letter-spacing: -3px; color: white; -webkit-text-stroke: 2px #1766b4;
  text-shadow: 4px 4px 0 #76baff, 7px 7px 0 #ffb2d8;
}

.hero h1 span {
  color: #ffe6f2; -webkit-text-stroke: 2px #c95c9e;
}

.hero p {
  display: inline-block; margin: 20px 0 0; padding: 5px 18px; background: white;
  border: 2px solid var(--line); border-radius: 99px;
}

.sparkles {
  color: #eb70b3; font-size: 24px;
}

.nav {
  display: flex; justify-content: center; gap: 12px; padding: 15px; background: #d5eeff;
  border-bottom: 3px solid var(--blue);
}

.nav a {
  text-decoration: none; background: white; border: 2px solid #69b6f6; border-radius: 99px;
  padding: 6px 18px; font-weight: bold; transition: transform .15s, background .15s;
}

.nav a:hover {
  background: var(--lightpink); transform: translateY(-2px);
}

.layout {
  padding: 23px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(230px, 1fr); gap: 22px;
  align-items: start;
}

.window {
  min-width: 0; background: #f8fcff; border: 3px solid var(--blue); border-radius: 15px; overflow: hidden;
  box-shadow: 4px 4px 0 #b7dfff;
}

.titlebar {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: linear-gradient(90deg, #1687e9, #77c9ff); color: white; padding: 8px 14px;
  font: bold 17px 'Courier New', monospace; letter-spacing: 1px; border-bottom: 3px solid var(--blue);
}

.window-body {
  padding: 20px;
}

.window h2 {
  color: #1c63b4; line-height: 1.25; margin: 10px 0 14px;
}

.window p {
  margin: 10px 0;
}

.eyebrow {
  color: #e34d9d; font: bold 14px 'Courier New', monospace;
}

.status {
  margin-top: 18px; padding: 8px 12px; background: #e4f8ee; border: 1px dashed #76bca1; border-radius: 9px;
  color: #277b67; font-size: 13px;
}

.folder {
  display: flex; justify-content: space-between; text-decoration: none; border: 2px solid var(--line);
  border-radius: 9px; padding: 9px 11px; margin: 0 0 10px; background: #edf8ff; font-weight: bold;
}

.folder:hover {
  background: var(--lightpink); border-color: var(--pink);
}

.mini-note {
  margin-top: 20px; background: #fff0f8; border: 2px dashed var(--pink); border-radius: 10px; padding: 12px;
  font-size: 13px;
}

.gallery {
  grid-column: 1 / -1;
}

.pink {
  color: #ed5da5;
}

.cards-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px;
}

.cards-grid figure {
  margin: 0; background: #e8f5ff; border: 2px solid var(--line); padding: 9px; border-radius: 12px;
}

.cards-grid img {
  display: block; width: 100%; height: 245px; object-fit: contain;
  background: repeating-linear-gradient(45deg, #e4f2ff, #e4f2ff 10px, #f8fcff 10px, #f8fcff 20px);
  font-size: 12px;
}

.cards-grid figcaption {
  text-align: center; font-size: 13px; padding-top: 7px; font-weight: bold;
}

.hint {
  font-size: 12px; color: #5b79a1;
}

.hint code {
  background: #e3f3ff; padding: 2px 5px; border-radius: 4px;
}

.art-placeholder {
  min-height: 200px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; gap: 8px;
  background: repeating-linear-gradient(0deg, #edf8ff, #edf8ff 29px, #d1e9ff 30px);
  border: 2px dashed #8dc8ff; border-radius: 10px; padding: 20px;
}

.art-placeholder span {
  font-size: 40px;
}

.art-placeholder small {
  max-width: 250px;
}

.tags {
  display: flex; flex-wrap: wrap; gap: 7px;
}

.tags span {
  font-size: 12px; border: 1px solid #d995c0; background: #ffe9f4; border-radius: 30px; padding: 4px 10px;
  font-weight: bold;
}

footer {
  text-align: center; padding: 19px; background: #d8efff; border-top: 3px solid var(--blue);
  font-size: 13px; font-weight: bold;
}

@media (max-width:720px) {
  .layout {
    grid-template-columns: 1fr; padding: 14px; gap: 15px;
  }

  .gallery {
    grid-column: auto;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 25px;
  }

  .hero h1 {
    letter-spacing: -2px;
  }

  .window-body {
    padding: 15px;
  }

  .site-shell {
    margin: 14px auto;
  }

  .nav {
    gap: 7px;
  }

  .nav a {
    padding: 6px 12px; font-size: 14px;
  }
}

.cards-grid a img {
  cursor: zoom-in; transition: transform 0.2s ease;
}

.cards-grid a:hover img {
  transform: scale(1.02);
}

.art-grid {
  gap: 14px;
}

.art-grid figure {
  padding: 9px; background: #e8f5ff; border: 2px solid #a3d7ff; border-radius: 12px;
}

.art-grid img {
  object-fit: cover; border-radius: 7px; transition: transform 0.2s;
}

.art-grid a:hover img {
  transform: scale(1.03);
}

.art-grid figcaption {
  padding: 8px 4px 2px; font-weight: bold; font-size: 13px;
}

@media (max-width: 480px) {
  .art-grid {
    grid-template-columns: 1fr;
  }
}

/* =================================
   SPOTIFY.EXE — DEFUNKTBOT THEME
   ================================= */

.spotify-panel {
  background: #e8f5ff; border: 2px solid #42b4ff; border-radius: 12px; overflow: hidden; margin-top: 12px;
  box-shadow: 3px 3px 0 #b6dfff;
}

/* Retro window title bar */

.spotify-titlebar {
  background: #2498ea; color: white; padding: 8px 12px; font-family: monospace; font-weight: bold;
  font-size: 14px; display: flex; justify-content: space-between; align-items: center;
}

/* Widget content */

.spotify-content {
  padding: 12px; min-width: 0;
}

.spotify-content ws-widget {
  display: block; width: 100%; max-width: 100%;
}

/* Widget inner layout */

.spotify-content .spotistatus-widget {
  display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; color: #204a87;
  font-family: Arial, sans-serif;
}

/* Album artwork */

.spotify-content .spotistatus-album-art {
  width: 100px; height: 100px; object-fit: cover; border: 3px solid #58b9ff; border-radius: 8px;
  box-shadow: 3px 3px 0 #ffc0df;
}

/* Song title */

.spotify-content .spotistatus-song {
  color: #173e7a; font-size: 16px; font-weight: bold; text-decoration: none;
}

/* Artist */

.spotify-content .spotistatus-artist {
  color: #287cba; font-size: 14px; text-decoration: none;
}

/* Album */

.spotify-content .spotistatus-album {
  color: #7b8fb5; font-size: 12px; text-decoration: none;
}

/* Hover effects */

.spotify-content a:hover {
  color: #ed79b6; text-decoration: underline;
}

/* Mobile-friendly */

@media (max-width: 480px) {
  .spotify-content {
    padding: 8px;
  }

  .spotify-content .spotistatus-album-art {
    width: 80px; height: 80px;
  }
}

/* ===== ART GALLERY FOLDERS ===== */

.art-folders {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0;
}

.art-folder {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 8px;
  background: #e8f5ff; border: 2px solid #a4d8ff; border-radius: 12px; color: #173e7a; cursor: pointer;
  font: inherit; transition: 0.2s ease;
}

.folder-icon {
  font-size: 34px;
}

.art-folder:hover,
.art-folder.active {
  background: #d4ecff; border-color: #f28cc4; box-shadow: 3px 3px 0 #ffc5e4;
}

.gallery-browser {
  background: #f3faff; border: 2px solid #a4d8ff; border-radius: 12px; padding: 12px; min-width: 0;
}

.gallery-toolbar {
  display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; color: #23548b;
  font: bold 12px monospace; padding-bottom: 12px;
}

.art-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
}

.art-grid figure {
  margin: 0; min-width: 0; padding: 7px; background: white; border: 2px solid #b7dcff; border-radius: 9px;
}

.art-grid button {
  display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in;
}

.art-grid img {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 5px;
  background: #eaf5ff;
}

.art-grid figcaption {
  margin-top: 7px; color: #23548b; text-align: center; font-size: 12px;
}

/* ===== EXPLORER BREADCRUMBS ===== */

.gallery-explorer {
  min-width: 0;
}

.gallery-breadcrumbs {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 12px 0; padding: 10px;
  background: #e8f5ff; border: 2px solid #a4d8ff; border-radius: 8px; font-family: monospace;
  font-size: 12px;
}

.gallery-breadcrumbs button {
  border: 0; background: transparent; color: #287cba; cursor: pointer; font: inherit; padding: 3px;
}

.gallery-breadcrumbs button:hover {
  color: #e66aa9; text-decoration: underline;
}

.gallery-breadcrumbs button:disabled {
  color: #173e7a; font-weight: bold; cursor: default; text-decoration: none;
}

.art-folders:empty,
.art-grid:empty {
  display: none;
}

.art-grid:not(:empty) {
  margin-top: 12px;
}

/* ===== SITE-WIDE IMAGE VIEWER ===== */

.site-lightbox {
  display: none; position: fixed; inset: 0; z-index: 99999; background: rgba(8, 20, 45, 0.96); color: white;
  flex-direction: column; padding: 12px; box-sizing: border-box;
}

.site-lightbox.open {
  display: flex;
}

.viewer-header,
.viewer-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}

.viewer-main {
  display: flex; flex: 1; min-height: 0; align-items: center; gap: 8px;
}

.viewer-stage {
  position: relative; flex: 1; min-width: 0; height: 100%; overflow: hidden; display: flex;
  align-items: center; justify-content: center; touch-action: none; cursor: grab;
}

.viewer-stage:active {
  cursor: grabbing;
}

.viewer-stage img {
  display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  user-select: none; pointer-events: none; transform-origin: center; will-change: transform;
}

.site-lightbox button {
  background: #dff2ff; color: #173e7a; border: 2px solid #7bbff5; border-radius: 7px; padding: 8px 12px;
  cursor: pointer; font: inherit;
}

.site-lightbox button:hover {
  background: #ffc5e4;
}

.viewer-toolbar {
  justify-content: center; padding: 12px 0;
}

#viewerCounter {
  text-align: center; margin: 0; font: 12px monospace;
}

.gallery-artwork,
[data-lightbox] {
  cursor: zoom-in;
}

@media (max-width: 480px) {
  .site-lightbox {
    padding: 6px;
  }

  .viewer-main {
    gap: 3px;
  }

  .site-lightbox button {
    padding: 6px;
  }
}

/* Interactive image viewer and card previews */

.cards-grid img[data-lightbox] {
  cursor: zoom-in; transition: transform .2s ease;
}

.cards-grid img[data-lightbox]:hover {
  transform: scale(1.02);
}

.gallery-artwork:focus-visible, .site-lightbox button:focus-visible {
  outline: 3px dashed #ff91c9; outline-offset: 3px;
}

.viewer-stage {
  user-select: none;
}

/* ===== DISCORD-STYLE ART SPOILERS ===== */

.art-grid figure.spoiler-figure {
  position: relative;
}

.art-grid figure.spoiler-figure .spoiler-cover {
  position: absolute; inset: 0 0 auto 0; height: min(100%, 240px); min-height: 130px; z-index: 3;
}

.gallery-artwork.spoiler-thumbnail:not(.spoiler-revealed) img {
  filter: blur(24px) brightness(.3);
}

.viewer-stage.spoiler-stage:not(.spoiler-revealed) #viewerImage {
  visibility: hidden !important;
}

.viewer-stage.spoiler-stage {
  position: relative;
}

.viewer-stage.spoiler-stage .spoiler-cover {
  position: absolute; inset: 0; z-index: 5;
}

.spoiler-cover {
  box-sizing: border-box; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 9px; padding: 16px; background: #1b2947; color: #fff;
  border: 2px dashed #f0a5ce; border-radius: 9px; text-align: center; font-size: 13px; line-height: 1.4;
}

.spoiler-cover strong {
  color: #ffd4ea; font-size: 15px;
}

.spoiler-cover .spoiler-icon {
  font-size: 23px;
}

.spoiler-reveal {
  display: inline-block; cursor: pointer; background: #f5b5d8; color: #182440; border: 2px solid #fff;
  border-radius: 6px; padding: 8px 12px; font: inherit; font-weight: 700;
}

.spoiler-reveal:hover,
.spoiler-reveal:focus-visible {
  background: #fff; outline: 2px solid #f5b5d8; outline-offset: 2px;
}

/* ===== SPOILER THUMBNAIL FIX ===== */

/* Anchor the spoiler to the artwork card */

#artGrid figure.spoiler-figure {
  position: relative !important; overflow: hidden; isolation: isolate;
}

/* Completely conceal the thumbnail and caption */

#artGrid figure.spoiler-figure > .spoiler-cover {
  position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important;
  min-height: 0 !important; max-height: none !important; box-sizing: border-box !important;
  z-index: 20 !important; display: flex !important; flex-direction: column !important;
  align-items: center !important; justify-content: center !important; gap: 10px !important;
  padding: 14px !important; margin: 0 !important; background: #1b2947 !important; color: #ffffff !important;
  border: 2px dashed #f0a5ce !important; border-radius: 8px !important; text-align: center !important;
}

/* Hide the actual image until revealed */

#artGrid .spoiler-thumbnail:not(.spoiler-revealed) img {
  visibility: hidden !important;
}

/* Make the warning and button readable */

#artGrid .spoiler-cover strong {
  color: #ffd4ea !important; font-size: 14px !important;
}

#artGrid .spoiler-cover .spoiler-reveal {
  display: inline-block !important; background: #f5b5d8 !important; color: #182440 !important;
  border: 2px solid #ffffff !important; border-radius: 6px !important; padding: 8px 12px !important;
  font: inherit !important; font-weight: 700 !important; cursor: pointer !important;
}

/* Prevent long warning text from overflowing */

#artGrid .spoiler-cover > span {
  max-width: 100%; overflow-wrap: anywhere;
}

/* ===== ART GALLERY REFERENCE LINKS ===== */

.art-references {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 10px; margin: 6px 0 10px;
  padding: 0 8px; font-size: 11px; line-height: 1.5; text-align: center;
}

.art-references a {
  color: #3465b4; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere;
}

.art-references a:hover,
.art-references a:focus-visible {
  color: #d35d9c;
}

/* ===== CLICKABLE SITE LOGO ===== */

.site-logo {
  color: inherit; text-decoration: none; cursor: pointer;
}

.site-logo:hover,
.site-logo:focus-visible {
  text-decoration: underline; text-underline-offset: 4px;
}

.site-logo:focus-visible {
  outline: 2px dashed #e89abf; outline-offset: 4px;
}

/* ===== MATCH ART GALLERY TO CARD COLLECTION STRIPES ===== */

.art-grid img {
  background: repeating-linear-gradient(
    45deg,
    #e4f2ff,
    #e4f2ff 10px,
    #f8fcff 10px,
    #f8fcff 20px
  );
}

/* ===== MATCH ART GALLERY HOVER TO CARD COLLECTION ===== */

/* Magnifying glass cursor + smooth animation */

.art-grid .gallery-artwork {
  cursor: zoom-in;
}

.art-grid .gallery-artwork img {
  cursor: zoom-in; transition: transform 0.2s ease;
}

/* Slight zoom when hovering over artwork */

.art-grid .gallery-artwork:hover img {
  transform: scale(1.02);
}

/* Keyboard accessibility */

.art-grid .gallery-artwork:focus-visible img {
  transform: scale(1.02);
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
  .art-grid .gallery-artwork img {
    transition: none;
  }
}

/* ===== ART GALLERY MOBILE LAYOUT ===== */

@media (max-width: 720px) {
  .art-grid,
  .art-folders {
    grid-template-columns: 1fr;
  }
}

/* ===== WELCOME & CAT MEME STACK ===== */

.welcome-stack {
  display: flex; flex-direction: column; gap: 22px; min-width: 0;
}

/* ===== CAT MEMES.JPG ===== */

.cat-memes .window-body {
  padding: 12px;
}

.cat-meme {
  margin: 0; padding: 8px;
  background: repeating-linear-gradient(
    45deg,
    #e4f2ff,
    #e4f2ff 10px,
    #f8fcff 10px,
    #f8fcff 20px
  );
  border: 2px solid var(--line); border-radius: 10px; text-align: center;
}

.cat-meme img {
  display: block; width: 100%; height: clamp(100px, 12vw, 170px); object-fit: contain; border-radius: 6px;
}

.cat-meme figcaption {
  padding-top: 7px; color: var(--ink); font: bold 12px 'Courier New', monospace;
}

/* ===== FAVORITES.INI ===== */

.favorites {
  grid-column: 1 / -1;
}

.favorites-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start;
  margin-top: 18px;
}

.favorite-category {
  min-width: 0; background: #edf8ff; border: 2px solid var(--line); border-radius: 10px; overflow: hidden;
  transition: border-color .2s ease,
              box-shadow .2s ease;
}

.favorite-category:hover {
  border-color: var(--pink); box-shadow: 3px 3px 0 #ffc5e4;
}

.favorite-category summary {
  display: flex; align-items: center; gap: 8px; padding: 12px; cursor: pointer; font-weight: bold;
  color: var(--navy); list-style: none; transition: background .2s ease;
}

.favorite-category summary::-webkit-details-marker {
  display: none;
}

.favorite-category summary::before {
  content: "▸"; color: var(--blue);
}

.favorite-category[open] summary::before {
  content: "▾";
}

.favorite-category summary:hover {
  background: var(--lightpink);
}

.favorite-category summary:focus-visible {
  outline: 2px dashed #e9459a; outline-offset: -4px;
}

.favorite-category[open] summary {
  border-bottom: 1px solid var(--line);
}

.favorite-count {
  margin-left: auto; color: #5b79a1; background: #d5eeff; padding: 2px 8px; border-radius: 20px;
  font: 11px monospace;
}

.favorite-tags {
  display: flex; flex-wrap: wrap; gap: 7px; padding: 12px;
}

.favorite-tags span {
  padding: 4px 10px; border: 1px solid #d995c0; border-radius: 30px; background: #ffe9f4; font-size: 12px;
  font-weight: bold; overflow-wrap: anywhere;
}

.favorites-credit {
  text-align: center; padding-top: 12px;
}

.favorites-credit a:hover {
  color: #e34d9d;
}

/* ===== MOBILE RESPONSIVENESS ===== */

@media (max-width: 720px) {
  .welcome-stack {
    gap: 15px;
  }

  .favorites-grid {
    grid-template-columns: 1fr;
  }

  .cat-meme img {
    height: auto; max-height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .favorite-category,
  .favorite-category summary {
    transition: none;
  }
}

/* ===== LONGCAT.TXT ===== */

.longcat {
  margin: 15px auto;
}

.cat-system-note {
  text-align: center; color: #e34d9d; font: bold 11px 'Courier New', monospace;
}

/* ===== FAVORITES.INI: PREFERENCE LEVELS ===== */

.favorites-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 12px; margin: 15px 0;
  background: repeating-linear-gradient(
    45deg,
    #e4f2ff,
    #e4f2ff 10px,
    #f8fcff 10px,
    #f8fcff 20px
  );
  border: 2px dashed #a3d7ff; border-radius: 10px;
}

.favorites .preference-tag {
  display: inline-block; max-width: 100%; padding: 5px 11px; border: 1px solid; border-radius: 15px;
  font-size: 12px; font-weight: bold; line-height: 1.6; white-space: normal; overflow-wrap: anywhere;
  transition: transform .15s ease,
              box-shadow .15s ease;
}

/* OBSESSED — BABY PINK */

.favorites .preference-tag.obsessed {
  background: #ffe0f1; border-color: #ed8cbe; color: #9d2869;
}

/* FAVOURITE — SKY BLUE */

.favorites .preference-tag.favourite {
  background: #e0f0ff; border-color: #8abff5; color: #205b9e;
}

/* OKAY — LAVENDER */

.favorites .preference-tag.okay {
  background: #f0e8ff; border-color: #bca4e6; color: #674597;
}

/* SAFE FOOD — MINT GREEN */

.favorites .preference-tag.safe-food {
  background: #e1f6e9; border-color: #91cbb0; color: #276c50;
}

/* FACT CHECKED — PASTEL YELLOW */

.favorites .preference-tag.fact-checked {
  background: #fff3d8; border-color: #e2c578; color: #88651e;
}

/* ===== SUBTLE HOVER EFFECT ===== */

.favorite-tags .preference-tag:hover {
  transform: translateY(-2px); box-shadow: 0 3px 0 rgba(39, 140, 230, .15);
}

/* ===== CATEGORY TITLES ===== */

.favorite-category summary > span:first-child {
  min-width: 0; overflow-wrap: anywhere;
}

.favorite-count {
  flex-shrink: 0;
}

/* ===== MOBILE NAVIGATION ===== */

.nav {
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .favorites-legend {
    justify-content: center; padding: 10px; gap: 6px;
  }

  .favorites .preference-tag {
    font-size: 12px; padding: 5px 9px;
  }

  .favorites-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== REDUCED MOTION ACCESSIBILITY ===== */

@media (prefers-reduced-motion: reduce) {
  .favorites .preference-tag {
    transition: none;
  }

  .favorite-tags .preference-tag:hover {
    transform: none;
  }
}

/* ===== FAVORITE COLOR SWATCHES ===== */

/* SKY BLUE */

.favorites .preference-tag.sky-blue {
  background: #d9f0ff; border-color: #87ceeb; color: #215c87;
}

/* BABY PINK */

.favorites .preference-tag.baby-pink {
  background: #ffe3ed; border-color: #f4a9c4; color: #a43e69;
}

/* TEAL */

.favorites .preference-tag.teal {
  background: #d1f1ed; border-color: #65b8b0; color: #226e68;
}

/* LAVENDER */

.favorites .preference-tag.lavender {
  background: #eee4ff; border-color: #bca4e6; color: #674597;
}

/* ===== FAVORITES EXPAND/COLLAPSE CONTROLS ===== */

.favorites-controls {
  display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin: 12px 0;
}

.favorites-controls button {
  padding: 8px 14px; background: #edf8ff; color: var(--navy); border: 2px solid var(--line);
  border-radius: 8px; font: inherit; font-size: 12px; font-weight: bold; cursor: pointer;
  transition: .15s ease;
}

.favorites-controls button:hover {
  background: #ffe0f1; border-color: #ed8cbe; box-shadow: 3px 3px 0 #ffc5e4; transform: translateY(-2px);
}

.favorites-controls button:active {
  transform: translateY(1px); box-shadow: none;
}

.favorites-controls button:focus-visible {
  outline: 2px dashed #e9459a; outline-offset: 3px;
}

@media (max-width: 720px) {
  .favorites-controls button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .favorites-controls button {
    transition: none; transform: none;
  }

  .favorites-controls button:hover,
  .favorites-controls button:active {
    transform: none;
  }
}

/* ===== ABOUT_ME.TXT — USER PROFILE ===== */

.about-profile {
  display: flex; align-items: center; gap: 12px; padding: 14px; margin: 15px 0; background: #edf8ff;
  border: 2px solid var(--line); border-radius: 12px;
}

.about-profile > div {
  min-width: 0; overflow-wrap: anywhere;
}

.about-avatar {
  width: 64px; height: 64px; flex-shrink: 0; object-fit: cover; border: 3px solid var(--blue);
  border-radius: 50%; box-shadow: 3px 3px 0 #ffc5e4;
}

.about-username {
  display: block; color: var(--navy); font: bold 20px 'Courier New', monospace;
}

.about-subtitle {
  color: #5b79a1; font-size: 12px;
}

.about-tagline {
  color: #c95c9e; font-size: 11px; font-weight: bold;
}

/* ===== LOCAL TIME & AGE ===== */

.about-stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 15px 0;
}

.about-stat {
  display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 12px 8px;
  border: 2px solid var(--line); border-radius: 10px; text-align: center;
}

.clock-stat {
  background: #edf8ff; color: var(--navy);
}

.age-stat {
  background: #fff0f8; border-color: var(--pink); color: #a43e69;
}

.stat-label {
  font: bold 11px 'Courier New', monospace;
}

.about-stat strong {
  font: bold clamp(15px, 2vw, 21px)
        'Courier New', monospace; font-variant-numeric: tabular-nums;
}

.about-stat small {
  font-size: 10px;
}

/* ===== IDENTITY CATEGORY DIVIDERS ===== */

.identity-divider {
  display: flex; align-items: center; justify-content: center; margin: 20px 0 14px;
}

.identity-divider img {
  display: block; width: 100%; max-width: 420px; height: auto; object-fit: contain;
}

.identity-category {
  margin: 10px 0;
}

.identity-heading {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px;
  margin: 10px 0 14px; color: #c95c9e; font-size: 13px; line-height: 1.5; text-align: center;
}

.identity-heart {
  display: inline-block; color: #e34d9d; font-size: 20px; font-weight: bold; line-height: 1; flex-shrink: 0;
}

/* ===== IDENTITY FLAG GRID ===== */

.identity-grid {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 9px;
}

.identity-flag {
  display: flex; flex-direction: column; align-items: center; gap: 6px; flex: 0 1 calc(50% - 5px);
  max-width: 145px; min-width: 0; padding: 9px 6px; background: #edf8ff; color: var(--navy);
  border: 2px solid var(--line); border-radius: 9px; font: inherit; cursor: help;
  transition: transform .15s ease,
              background .15s ease,
              box-shadow .15s ease;
}

.identity-flag img {
  display: block; width: 100%; max-width: 90px; height: 52px; object-fit: contain; border-radius: 4px;
}

.identity-label {
  font-size: 11px; line-height: 1.4; font-weight: bold; text-align: center; overflow-wrap: anywhere;
}

.identity-flag:hover,
.identity-flag.flag-active {
  background: var(--lightpink); border-color: var(--pink); box-shadow: 3px 3px 0 #ffc5e4;
  transform: translateY(-2px);
}

.identity-flag:focus-visible {
  outline: 2px dashed #e9459a; outline-offset: 3px;
}

/* ===== FLAG INFORMATION TOOLTIP ===== */

.identity-tooltip {
  position: fixed; z-index: 99990; width: max-content; max-width: min(340px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px); overflow-y: auto; padding: 14px; background: #f8fcff; color: var(--ink);
  border: 2px solid var(--blue); border-radius: 10px; box-shadow: 4px 4px 0 #ffc5e4; font-size: 12px;
  line-height: 1.6; overflow-wrap: anywhere;
}

.identity-tooltip[hidden],
.identity-tooltip [hidden] {
  display: none;
}

.tooltip-title {
  display: block; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px dashed var(--line);
  color: #1c63b4; font-size: 14px;
}

.tooltip-flag-description {
  margin: 0; color: #5b79a1; font-size: 11px; font-style: italic;
}

.tooltip-description {
  margin: 10px 0 0;
}

/* ===== FOOTNOTES ===== */

.flag-hint {
  padding: 10px; background: #fff0f8; border: 1px dashed var(--pink); border-radius: 8px; color: #a43e69;
  font-size: 11px; text-align: center;
}

.about-credit {
  text-align: center;
}

.about-credit a:hover {
  color: #e34d9d;
}

/* ===== MOBILE RESPONSIVENESS ===== */

@media (max-width: 720px) {
  .about-avatar {
    width: 60px; height: 60px;
  }

  .about-stat strong {
    font-size: 18px;
  }

  .identity-flag {
    max-width: 135px;
  }

  .identity-flag img {
    height: 48px;
  }

  .identity-tooltip {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .identity-flag {
    transition: none;
  }

  .identity-flag:hover,
  .identity-flag.flag-active {
    transform: none;
  }
}

/* ===== FULL-WIDTH ABOUT & ART WINDOWS ===== */

.art,
.about {
  grid-column: 1 / -1;
}

#identityFlags {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start;
}

#identityFlags > .identity-divider {
  grid-column: 1 / -1;
}

#identityFlags > .identity-divider:not(:first-child):not(:last-child) {
  display: none;
}

.identity-flag {
  flex-basis: 100px;
}

@media (min-width: 721px) {
  .art-folders {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  #identityFlags {
    grid-template-columns: 1fr; gap: 10px;
  }

  #identityFlags > .identity-divider {
    display: flex !important;
  }
}

/* ===== NEURODIVERGENT UMBRELLA LAYOUT ===== */

.identity-category[data-category="disabilities"] .identity-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: stretch;
}

.identity-category[data-category="disabilities"] .identity-flag {
  width: 100%; max-width: none; min-width: 0;
}

/* UMBRELLA IDENTITY */

.identity-category .umbrella-flag {
  grid-column: 1 / -1; position: relative; margin-bottom: 12px; padding: 12px;
  background: linear-gradient(
    135deg,
    #edf8ff,
    #fff0f8
  );
}

.umbrella-flag img {
  max-width: 100px; height: 55px;
}

.umbrella-flag .identity-label {
  font-size: 13px;
}

/* DECORATIVE CONNECTOR */

.umbrella-flag::after {
  content: ""; position: absolute; top: 100%; left: 50%; height: 22px; border-left: 2px dashed var(--line);
  pointer-events: none;
}

/* MOBILE: BALANCED 2 × 2 GRID */

@media (max-width: 720px) {
  .identity-category[data-category="disabilities"] .identity-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===== THE UNNECESSARY EXPANSION PACK ===== */

.extras-grid {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px;
  align-items: stretch; min-width: 0;
}

.guestbook-window {
  grid-column: 1 / -1;
}

.extra-center {
  text-align: center;
}

.extra-screen {
  margin: 14px 0; padding: 16px; border: 2px solid var(--line); border-radius: 10px;
  background: repeating-linear-gradient(
    45deg,
    #e4f2ff,
    #e4f2ff 10px,
    #f8fcff 10px,
    #f8fcff 20px
  );
  text-align: center; overflow-wrap: anywhere;
}

.extra-button {
  padding: 9px 16px; background: #edf8ff; color: var(--navy); border: 2px solid var(--line);
  border-radius: 9px; font: inherit; font-size: 13px; font-weight: bold; cursor: pointer;
  transition: .15s ease;
}

.extra-button:not(:disabled):hover {
  background: var(--lightpink); border-color: var(--pink); box-shadow: 3px 3px 0 #ffc5e4;
  transform: translateY(-2px);
}

.extra-button:not(:disabled):active {
  transform: translateY(1px); box-shadow: none;
}

.extra-button:focus-visible,
.change-entry summary:focus-visible {
  outline: 2px dashed #e9459a; outline-offset: 3px;
}

.extra-button:disabled {
  opacity: .65; cursor: not-allowed;
}

/* ===== LONGCAT.EXE ===== */

.longcat-body {
  text-align: center;
}

#longcatScreen {
  position: relative; overflow: hidden; padding: 12px 8px; margin-bottom: 12px;
}

.longcat {
  margin: 12px auto; font: bold clamp(9px, 2.5vw, 21px)/1.2 monospace; color: var(--navy); white-space: pre;
  overflow-x: auto; text-align: center;
}

.longcat-hearts {
  color: #e34d9d; font-size: 18px; font-weight: bold;
}

#petLongcat {
  background: #fff0f8; border-color: var(--pink); color: #a43e69;
}

.pet-counter {
  font-size: 13px;
}

#longcatCount {
  color: var(--blue);
}

#longcatAchievement {
  color: #c95c9e; font-weight: bold; min-height: 18px;
}

.cat-happy {
  animation: cat-bounce .4s ease;
}

@keyframes cat-bounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }

  40% {
    transform: translateY(-5px) scale(1.03);
  }

  70% {
    transform: translateY(0) scale(.98);
  }
}

.pet-particle {
  position: absolute; bottom: 25%; z-index: 2; color: #e34d9d; font-size: 22px; font-weight: bold;
  pointer-events: none; animation: floating-pet-heart 1s ease-out forwards;
}

.pet-particle:nth-child(even) {
  color: #67c2ff;
}

@keyframes floating-pet-heart {
  0% {
    opacity: 0; transform: translate(0, 0) scale(.5);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0; transform: translate(var(--drift), -85px)
      rotate(15deg)
      scale(1.3);
  }
}

/* ===== CURRENTLY_INTO.TXT ===== */

.current-interest {
  padding: 12px 4px; border-bottom: 1px dashed var(--line); overflow-wrap: anywhere; font-size: 14px;
}

.current-interest small {
  display: block; margin-bottom: 4px; font: bold 11px 'Courier New', monospace; color: #c95c9e;
}

.current-interest:last-of-type {
  border-bottom: 0;
}

/* ===== CHANGE.LOG ===== */

.change-entry {
  margin: 10px 0; border: 2px solid var(--line); border-radius: 9px; background: #edf8ff; overflow: hidden;
}

.change-entry summary {
  padding: 10px 12px; font-size: 13px; font-weight: bold; cursor: pointer;
}

.change-entry summary:hover {
  background: var(--lightpink);
}

.change-entry[open] summary {
  border-bottom: 1px solid var(--line);
}

.change-content {
  padding: 10px 12px; font-size: 13px;
}

.change-content small {
  font-family: monospace; color: #5b79a1;
}

.change-content ul {
  margin: 8px 0; padding-left: 20px;
}

.change-content li {
  margin: 4px 0;
}

.change-content li::marker {
  color: #e34d9d;
}

/* ===== RANDOM_MEME.EXE ===== */

.ascii-cat {
  font: bold 26px/1.2 monospace; white-space: pre; color: var(--navy); margin: 10px auto;
}

.meme-window .extra-screen {
  min-height: 185px; display: flex; flex-direction: column; align-items: center; justify-content: center;
}

#memeText {
  font-size: 14px;
}

.meme-refresh {
  animation: meme-appear .25s ease;
}

@keyframes meme-appear {
  from {
    opacity: .4; transform: scale(.97);
  }

  to {
    opacity: 1; transform: scale(1);
  }
}

/* ===== SOCIAL_BATTERY.SYS ===== */

.battery-screen {
  min-height: 185px; display: flex; flex-direction: column; align-items: center; justify-content: center;
}

.battery-shell {
  position: relative; width: 80%; max-width: 240px; height: 65px; padding: 7px; margin: 8px auto 15px;
  border: 3px solid var(--blue); border-radius: 10px; background: #f8fcff;
}

.battery-shell::after {
  content: ""; position: absolute; left: 100%; top: 50%; transform: translateY(-50%); width: 10px;
  height: 24px; background: var(--blue); border-radius: 0 4px 4px 0;
}

.battery-segments {
  display: flex; gap: 4px; width: 100%; height: 100%;
}

.battery-segment {
  flex: 1; min-width: 0; border-radius: 3px;
}

#batteryPercentage {
  font: bold 30px 'Courier New', monospace; text-shadow: 1px 1px 0 var(--navy);
}

#batteryMood {
  font-size: 13px; font-weight: bold;
}

/* ===== GUESTBOOK.EXE ===== */

.guestbook-window .window-body {
  background-image: radial-gradient(
    ellipse at top,
    #ffe9f4 0%,
    transparent 60%
  );
}

.mail-art {
  display: flex; align-items: center; justify-content: center; gap: 15px; margin: 16px 0 0; color: #e34d9d;
  font-size: 25px;
}

.mail-envelope {
  display: inline-block; font-size: 65px; line-height: 1.2;
  animation: floating-mail 3s ease-in-out infinite;
}

@keyframes floating-mail {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.guestbook-paper {
  max-width: 580px; margin: 24px auto; padding: 5px;
  background: repeating-linear-gradient(
    -45deg,
    #ffb7d9 0px,
    #ffb7d9 12px,
    #ffffff 12px,
    #ffffff 24px,
    #a3d7ff 24px,
    #a3d7ff 36px,
    #ffffff 36px,
    #ffffff 48px
  );
  border: 1px solid var(--line); border-radius: 13px; box-shadow: 4px 4px 0 #d5eaff;
}

.guestbook-paper-header {
  display: flex; justify-content: space-between; padding: 12px 16px; background: #ffe1f0; color: #a43e69;
  border-radius: 8px 8px 0 0; font: bold 13px 'Courier New', monospace;
}

.guestbook-fields {
  display: flex; flex-direction: column; gap: 8px; padding: 18px; background: #f8fcff;
  border-radius: 0 0 8px 8px; text-align: left;
}

.guestbook-fields label {
  color: #c95c9e; font-size: 12px; font-weight: bold;
}

.guestbook-fields input,
.guestbook-fields textarea {
  width: 100%; min-width: 0; padding: 10px 12px; margin-bottom: 6px; background: #edf8ff;
  color: var(--navy); border: 2px solid var(--line); border-radius: 8px; font: inherit; font-size: 13px;
}

.guestbook-fields textarea {
  resize: vertical;
}

.guestbook-fields input:focus,
.guestbook-fields textarea:focus {
  outline: 2px solid var(--pink);
}

.guestbook-fields .extra-button {
  align-self: center; background: #ffe1f0; border-color: var(--pink); color: #a43e69;
}

.guestbook-fields .hint {
  text-align: center;
}

.guestbook-inbox {
  max-width: 580px; margin: 20px auto 0; padding: 16px; background: #edf8ff; border: 2px dashed var(--line);
  border-radius: 12px;
}

.guestbook-inbox h3 {
  margin: 0; color: var(--navy); font: bold 14px 'Courier New', monospace;
}

.guestbook-inbox p {
  font-size: 13px;
}

/* ===== MOBILE RESPONSIVENESS ===== */

@media (max-width: 720px) {
  .extras-grid {
    grid-template-columns: 1fr; gap: 15px;
  }

  .extras-grid .titlebar {
    font-size: 14px; letter-spacing: 0;
  }

  .ascii-cat {
    font-size: 22px;
  }

  .guestbook-fields {
    padding: 12px;
  }

  .battery-shell {
    height: 55px;
  }

  .battery-segments {
    gap: 3px;
  }
}

/* ===== REDUCED MOTION ===== */

@media (prefers-reduced-motion: reduce) {
  .extra-button {
    transition: none;
  }

  .extra-button:not(:disabled):hover,
  .extra-button:not(:disabled):active {
    transform: none;
  }

  .cat-happy,
  .meme-refresh,
  .mail-envelope {
    animation: none;
  }

  .pet-particle {
    display: none;
  }
}

/* ===== GUESTBOOK.EXE — FUNCTIONAL MAILBOX ===== */

.guestbook-character-count {
  margin-top: -8px; color: #5b79a1; font: 11px 'Courier New', monospace; text-align: right;
}

.guestbook-privacy {
  padding: 10px; background: #edf8ff; border: 1px dashed var(--line); border-radius: 8px; color: #5b79a1;
  font-size: 11px; text-align: center;
}

.guestbook-fields input:hover,
.guestbook-fields textarea:hover {
  border-color: var(--blue);
}

.guestbook-fields input:focus,
.guestbook-fields textarea:focus {
  background: #ffffff; border-color: var(--pink); outline: 2px solid #ffc5e4; outline-offset: 2px;
}

#guestSubmit:disabled {
  opacity: .65; cursor: wait; transform: none; box-shadow: none;
}

#guestStatus {
  transition: background .2s ease,
              border-color .2s ease,
              color .2s ease;
}

#guestStatus.sending {
  background: #edf8ff; border-color: var(--blue); color: var(--navy);
}

#guestStatus.delivered {
  background: #e4f8ee; border-color: #76bca1; color: #277b67;
}

#guestStatus.failed {
  background: #fff0f8; border-color: var(--pink); color: #a43e69;
}

@media (prefers-reduced-motion: reduce) {
  #guestStatus {
    transition: none;
  }
}

/* ===== WELCOME STACK & SIDEBAR ALIGNMENT ===== */

@media (min-width: 721px) {
  /* stretch both columns to equal heights */

  .layout > .welcome-stack,
  .layout > .side {
    align-self: stretch;
  }

  /* allow longcat to fill the remaining height */

  .welcome-stack > .cat-memes {
    flex: 1; display: flex; flex-direction: column;
  }

  /* keep longcat content vertically centered */

  .cat-memes > .window-body {
    flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center;
  }

  #longcatScreen {
    width: 100%;
  }

  /* stretch the sidebar */

  .layout > .side {
    display: flex; flex-direction: column;
  }

  .side > .window-body {
    flex: 1; display: flex; flex-direction: column;
  }

  /* anchor Spotify to the bottom */

  .side .mini-note {
    margin-top: auto;
  }
}

/* ===== WEBSITE_STATS.SYS ===== */

.stats-window {
  grid-column: 1 / -1;
}

.website-stats-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0;
}

/* ===== STATISTIC CARDS ===== */

.stat-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  min-width: 0; padding: 20px 12px; background: #edf8ff; border: 2px solid var(--line); border-radius: 12px;
  text-align: center; box-shadow: 3px 3px 0 #d5eaff;
  transition: transform .15s ease,
              box-shadow .15s ease;
}

.stat-card:nth-child(even) {
  background: #fff0f8; border-color: #ffb7d9; box-shadow: 3px 3px 0 #ffd5e9;
}

.stat-card:hover {
  transform: translateY(-3px); box-shadow: 4px 6px 0 #d5eaff;
}

.stat-card:nth-child(even):hover {
  box-shadow: 4px 6px 0 #ffd5e9;
}

.stat-icon {
  color: var(--blue); font-size: 28px; font-weight: bold; line-height: 1.2;
}

.stat-card:nth-child(even) .stat-icon {
  color: #e34d9d;
}

.stat-number {
  display: block; max-width: 100%; margin: 5px 0; color: var(--navy);
  font: bold clamp(22px, 4vw, 34px)/1.2
        'Courier New', monospace;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}

.stat-label {
  color: var(--navy); font-size: 14px; font-weight: bold;
}

.stat-card small {
  color: #5b79a1; font-size: 11px; overflow-wrap: anywhere;
}

/* ===== SYSTEM INFORMATION ===== */

.stats-system {
  padding: 16px; margin-top: 22px; background: #edf8ff; border: 2px solid var(--line); border-radius: 10px;
}

.stats-system h3 {
  margin: 0 0 12px; color: var(--navy); font: bold 15px 'Courier New', monospace;
}

.stats-system-row {
  display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 10px 2px;
  border-bottom: 1px dashed var(--line); font-size: 13px;
}

.stats-system-row:last-child {
  border-bottom: 0;
}

.stats-system-row span {
  color: #5b79a1;
}

.stats-system-row strong {
  color: var(--navy); text-align: right; overflow-wrap: anywhere;
}

/* ===== FOOTNOTES ===== */

.stats-disclaimer {
  text-align: center; font-size: 11px;
}

.stats-credit {
  text-align: center; color: #c95c9e; font-weight: bold;
}

/* ===== MOBILE RESPONSIVENESS ===== */

@media (max-width: 720px) {
  .website-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  }

  /* prevent the ninth card from being orphaned */

  .stat-card:last-child {
    grid-column: 1 / -1;
  }

  .stat-card {
    padding: 15px 8px;
  }

  .stat-number {
    font-size: clamp(18px, 5vw, 28px);
  }

  .stat-label {
    font-size: 12px;
  }

  .stat-card small {
    font-size: 10px;
  }

  .stats-system {
    padding: 12px;
  }

  .stats-system-row {
    font-size: 12px;
  }
}

/* ===== REDUCED MOTION ===== */

@media (prefers-reduced-motion: reduce) {
  .stat-card {
    transition: none;
  }

  .stat-card:hover {
    transform: none;
  }
}

/* ===== FLOATING SYSTEM CONTROLS ===== */

.system-control {
  position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 9000; width: 46px;
  height: 46px; border: 2px solid var(--line); border-radius: 12px;
  font: bold 26px/1 'Courier New', monospace; cursor: pointer;
  transition: background .2s ease,
    color .2s ease,
    border-color .2s ease,
    transform .2s ease,
    opacity .2s ease,
    box-shadow .2s ease;
}

.system-control:hover {
  transform: translateY(-4px);
}

.system-control:active {
  transform: translateY(2px); box-shadow: none;
}

.system-control:focus-visible {
  outline: 2px dashed var(--pink); outline-offset: 4px;
}

/* ===== BACK TO TOP ===== */

#backToTop {
  left: calc(20px + env(safe-area-inset-left, 0px)); background: #edf8ff; color: var(--blue);
  border-color: var(--blue); box-shadow: 3px 3px 0 #a3d7ff; opacity: 0; visibility: hidden;
  pointer-events: none; transform: translateY(10px);
}

#backToTop.is-visible {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}

#backToTop.is-visible:hover {
  background: #d5edff; transform: translateY(-4px);
}

/* ===== DARK MODE TOGGLE ===== */

#themeToggle {
  right: calc(20px + env(safe-area-inset-right, 0px)); background: #fff0f8; color: #a43e69;
  border-color: var(--pink); box-shadow: 3px 3px 0 #ffc5e4;
}

#themeToggle:hover {
  background: #ffe1f0;
}

#themeIcon {
  display: block;
}

/* ===== MOBILE CONTROLS ===== */

@media (max-width: 720px) {
  .system-control {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; font-size: 24px;
  }

  #backToTop {
    left: calc(12px + env(safe-area-inset-left, 0px));
  }

  #themeToggle {
    right: calc(12px + env(safe-area-inset-right, 0px));
  }

  body {
    padding-bottom: 55px;
  }
}

/* ===== REDUCED MOTION ===== */

@media (prefers-reduced-motion: reduce) {
  .system-control {
    transition: none;
  }

  .system-control:hover,
  .system-control:active,
  #backToTop.is-visible:hover {
    transform: none;
  }
}

/* =========================================
   DEFUNKTBOT.EXE — MIDNIGHT MODE
   ========================================= */

/* ===== DARK MODE VARIABLES ===== */

html[data-theme="dark"] {
  color-scheme: dark; --navy: #d0e3ff; --blue: #80b5f5; --sky: #a3ceff; --pale: #233654; --pink: #ffa6d5;
  --lightpink: #39263f; --line: #557eb8; --ink: #c4d5ed; --dark-bg: #10192d; --dark-window: #19263e;
  --dark-surface: #233654; --dark-pink: #39263f; --dark-shadow: #0b1222; --dark-muted: #a6b9d5;
}

/* ===== PAGE BACKGROUND ===== */

html[data-theme="dark"] body {
  color: var(--ink);
  background-color: var(--dark-bg);
  background-image:
    linear-gradient(
      rgba(128, 181, 245, .06) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(128, 181, 245, .06) 1px,
      transparent 1px
    ),
    radial-gradient(
      ellipse at top left,
      #35233f,
      transparent 65%
    ),
    radial-gradient(
      ellipse at bottom right,
      #263456,
      transparent 65%
    );
  background-size:
    24px 24px,
    24px 24px,
    100% 100%,
    100% 100%;
}

html[data-theme="dark"] .site-shell {
  background: #141f34; border-color: #557eb8; box-shadow: 8px 8px 0 #0b1222;
}

/* ===== HEADER & NAVIGATION ===== */

html[data-theme="dark"] .hero {
  background: linear-gradient(
    135deg,
    #243b65,
    #34283f
  ); border-color: var(--line);
}

html[data-theme="dark"] .site-logo {
  color: #b8d9ff; text-shadow: 2px 2px 0 #10192d;
}

html[data-theme="dark"] .tiny-top,
html[data-theme="dark"] .tagline,
html[data-theme="dark"] .hero-icon {
  color: var(--ink);
}

html[data-theme="dark"] .sparkles {
  color: var(--pink);
}

html[data-theme="dark"] nav {
  background: #19263e; border-color: var(--line);
}

html[data-theme="dark"] nav a {
  background: var(--dark-surface); color: var(--navy); border-color: var(--line); box-shadow: none;
}

html[data-theme="dark"] nav a:hover {
  background: var(--dark-pink); border-color: var(--pink); color: #ffd0e8;
}

/* ===== GENERAL WINDOWS ===== */

html[data-theme="dark"] .window {
  background: var(--dark-window); border-color: var(--line); box-shadow: 4px 4px 0 var(--dark-shadow);
}

html[data-theme="dark"] .titlebar,
html[data-theme="dark"] .spotify-titlebar {
  background: linear-gradient(
    90deg,
    #253f70,
    #405b91
  ); color: #f1f6ff;
  border-color: var(--line);
}

html[data-theme="dark"] .window-body {
  color: var(--ink);
}

html[data-theme="dark"] .window h2,
html[data-theme="dark"] .window h3 {
  color: var(--sky);
}

html[data-theme="dark"] .eyebrow {
  color: var(--pink);
}

html[data-theme="dark"] a {
  color: #a3ceff;
}

html[data-theme="dark"] a:hover {
  color: #ffa6d5;
}

/* Preserve logo colors on hover */
html[data-theme="dark"] .site-logo:hover,
html[data-theme="dark"] .site-logo:focus-visible {
  color: #b8d9ff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

html[data-theme="dark"] .hint,
html[data-theme="dark"] .window small {
  color: var(--dark-muted);
}

/* ===== GENERAL INTERACTIVE SURFACES ===== */

html[data-theme="dark"] .folder,
html[data-theme="dark"] .art-folder,
html[data-theme="dark"] .extra-button,
html[data-theme="dark"] .favorites-controls button,
html[data-theme="dark"] .identity-flag,
html[data-theme="dark"] .favorite-category,
html[data-theme="dark"] .change-entry {
  background: var(--dark-surface); color: var(--navy); border-color: var(--line); box-shadow: none;
}

html[data-theme="dark"] .folder:hover,
html[data-theme="dark"] .art-folder:hover,
html[data-theme="dark"] .extra-button:not(:disabled):hover,
html[data-theme="dark"] .favorites-controls button:hover,
html[data-theme="dark"] .identity-flag:hover,
html[data-theme="dark"] .identity-flag.active,
html[data-theme="dark"] .favorite-category summary:hover,
html[data-theme="dark"] .change-entry summary:hover {
  background: var(--dark-pink); color: #ffd0e8; border-color: var(--pink); box-shadow: 3px 3px 0 #10192d;
}

/* ===== PINK ACCENT SURFACES ===== */

html[data-theme="dark"] .mini-note,
html[data-theme="dark"] #petLongcat,
html[data-theme="dark"] .guestbook-fields .extra-button {
  background: var(--dark-pink); color: #ffd0e8; border-color: #bd76a7; box-shadow: none;
}

html[data-theme="dark"] #petLongcat:hover,
html[data-theme="dark"] .guestbook-fields
.extra-button:not(:disabled):hover {
  background: #50324d; border-color: var(--pink);
}

/* ===== STATUS COLORS ===== */

/* green / active */

html[data-theme="dark"] .status {
  border-color: #69a991;
}

/* yellow / inactive */

html[data-theme="dark"] .status.inactive {
  border-color: #99824a;
}

/* guestbook transmission states */

html[data-theme="dark"] #guestStatus.sending {
  background: var(--dark-surface); border-color: var(--blue); color: var(--navy);
}

html[data-theme="dark"] #guestStatus.delivered {
  background: #203b36; border-color: #69a991; color: #a4e6ca;
}

html[data-theme="dark"] #guestStatus.failed {
  background: #442638; border-color: #bd76a7; color: #ffb5d6;
}

/* ===== SPOTIFY ===== */

html[data-theme="dark"] .spotify-panel,
html[data-theme="dark"] .spotify-content {
  background: var(--dark-surface); color: var(--ink); border-color: var(--line); box-shadow: none;
}

/* ===== CARD COLLECTION & ART GALLERY ===== */

html[data-theme="dark"] .card-collection figure,
html[data-theme="dark"] .card-grid figure,
html[data-theme="dark"] .gallery-artwork,
html[data-theme="dark"] .art-references {
  background: var(--dark-surface); color: var(--ink); border-color: var(--line); box-shadow: none;
}

html[data-theme="dark"] .card-collection figcaption,
html[data-theme="dark"] .gallery-artwork figcaption,
html[data-theme="dark"] #galleryPath,
html[data-theme="dark"] #galleryCount {
  color: var(--ink);
}

html[data-theme="dark"] #galleryBreadcrumbs {
  color: var(--sky);
}

html[data-theme="dark"] #galleryBreadcrumbs button {
  background: var(--dark-surface); color: var(--navy); border-color: var(--line);
}

/* ===== ABOUT ME ===== */

html[data-theme="dark"] .about-profile,
html[data-theme="dark"] .about-stats,
html[data-theme="dark"] .about-stats > *,
html[data-theme="dark"] .about-tag {
  background: var(--dark-surface); color: var(--ink); border-color: var(--line); box-shadow: none;
}

html[data-theme="dark"] .identity-heading {
  color: var(--pink);
}

html[data-theme="dark"] .identity-category .umbrella-flag {
  background: linear-gradient(
    135deg,
    var(--dark-surface),
    var(--dark-pink)
  );
}

html[data-theme="dark"] .identity-tooltip {
  background: #233654; color: var(--ink); border-color: var(--line); box-shadow: 4px 4px 0 #0b1222;
}

html[data-theme="dark"] .tooltip-title {
  color: var(--pink);
}

html[data-theme="dark"] .tooltip-description,
html[data-theme="dark"] .tooltip-flag-description {
  color: var(--ink);
}

/* ===== FAVORITES.INI ===== */

html[data-theme="dark"] .favorite-count {
  background: #344d75; color: #d0e3ff; border-color: var(--line);
}

html[data-theme="dark"] .favorite-tags {
  background: var(--dark-window); border-color: var(--line);
}

html[data-theme="dark"] .preference-tag {
  background: var(--dark-surface); color: var(--ink); border-color: var(--line);
}

html[data-theme="dark"] .preference-tag.obsessed {
  background: #492b48; color: #ffc1e4; border-color: #bd76a7;
}

html[data-theme="dark"] .preference-tag.favourite {
  background: #293f65; color: #b8d9ff; border-color: #638ec5;
}

html[data-theme="dark"] .preference-tag.okay {
  background: #33394c; color: #c5cde1; border-color: #6c7895;
}

html[data-theme="dark"] .preference-tag.safe-food {
  background: #203e3d; color: #a8e5d7; border-color: #5d9e92;
}

html[data-theme="dark"] .preference-tag.fact-checked {
  background: #39304f; color: #d8c8ff; border-color: #9580bd;
}

/* ===== LONGCAT & EXTRA APPLICATIONS ===== */

html[data-theme="dark"] .cat-meme,
html[data-theme="dark"] .extra-screen {
  background: repeating-linear-gradient(
    45deg,
    #233654,
    #233654 10px,
    #1c2b45 10px,
    #1c2b45 20px
  );
  color: var(--ink); border-color: var(--line);
}

html[data-theme="dark"] .longcat,
html[data-theme="dark"] .ascii-cat,
html[data-theme="dark"] .cat-meme figcaption {
  color: var(--navy);
}

html[data-theme="dark"] .longcat-hearts,
html[data-theme="dark"] #longcatAchievement,
html[data-theme="dark"] .current-interest small {
  color: var(--pink);
}

html[data-theme="dark"] .change-content {
  background: var(--dark-window); color: var(--ink);
}

html[data-theme="dark"] .change-content small {
  color: var(--dark-muted);
}

html[data-theme="dark"] .change-content li::marker {
  color: var(--pink);
}

/* ===== SOCIAL BATTERY ===== */

html[data-theme="dark"] .battery-shell {
  background: #10192d; border-color: var(--blue);
}

html[data-theme="dark"] .battery-shell::after {
  background: var(--blue);
}

html[data-theme="dark"] #batteryPercentage {
  text-shadow: 1px 1px 0 #10192d;
}

html[data-theme="dark"] #batteryMood {
  color: var(--ink);
}

/* ===== GUESTBOOK.EXE ===== */

html[data-theme="dark"] .guestbook-window .window-body {
  background-image: radial-gradient(
    ellipse at top,
    #293b5b,
    transparent 65%
  );
}

html[data-theme="dark"] .guestbook-paper {
  background: repeating-linear-gradient(
    -45deg,
    #8c527e 0px,
    #8c527e 12px,
    #19263e 12px,
    #19263e 24px,
    #557eb8 24px,
    #557eb8 36px,
    #19263e 36px,
    #19263e 48px
  );
  box-shadow: 4px 4px 0 var(--dark-shadow);
}

html[data-theme="dark"] .guestbook-paper-header {
  background: #304b7d; color: var(--navy); border-color: var(--line);
}

html[data-theme="dark"] .guestbook-fields {
  background: var(--dark-window); color: var(--ink);
}

html[data-theme="dark"] .guestbook-fields label {
  color: var(--navy);
}

html[data-theme="dark"] .guestbook-fields input,
html[data-theme="dark"] .guestbook-fields textarea {
  background: var(--dark-surface); color: var(--navy); border-color: var(--line);
}

html[data-theme="dark"] .guestbook-fields input::placeholder,
html[data-theme="dark"] .guestbook-fields textarea::placeholder {
  color: var(--dark-muted);
}

html[data-theme="dark"] .guestbook-fields input:focus,
html[data-theme="dark"] .guestbook-fields textarea:focus {
  background: #293f65; border-color: var(--pink); outline-color: #8c527e;
}

html[data-theme="dark"] .guestbook-privacy,
html[data-theme="dark"] .guestbook-inbox {
  background: var(--dark-surface); color: var(--ink); border-color: var(--line);
}

html[data-theme="dark"] .guestbook-character-count {
  color: var(--dark-muted);
}

html[data-theme="dark"] .guestbook-fields .hint,
html[data-theme="dark"] .mail-art {
  color: var(--pink);
}

/* ===== WEBSITE_STATS.SYS ===== */

html[data-theme="dark"] .stat-card {
  background: var(--dark-surface); border-color: var(--line); box-shadow: 3px 3px 0 var(--dark-shadow);
}

html[data-theme="dark"] .stat-card:nth-child(even) {
  background: var(--dark-pink); border-color: #bd76a7; box-shadow: 3px 3px 0 var(--dark-shadow);
}

html[data-theme="dark"] .stat-card:hover {
  box-shadow: 4px 6px 0 var(--dark-shadow);
}

html[data-theme="dark"] .stat-card:nth-child(even)
.stat-icon {
  color: var(--pink);
}

html[data-theme="dark"] .stat-card small,
html[data-theme="dark"] .stats-system-row span {
  color: var(--dark-muted);
}

html[data-theme="dark"] .stats-system {
  background: var(--dark-surface); border-color: var(--line);
}

html[data-theme="dark"] .stats-credit {
  color: var(--pink);
}

/* ===== FOOTER ===== */

html[data-theme="dark"] footer {
  background: #19263e; color: var(--dark-muted); border-color: var(--line);
}

/* ===== FLOATING BUTTONS ===== */

html[data-theme="dark"] #backToTop {
  background: var(--dark-surface); color: var(--sky); border-color: var(--line);
  box-shadow: 3px 3px 0 var(--dark-shadow);
}

html[data-theme="dark"] #backToTop.is-visible:hover {
  background: #304b7d;
}

html[data-theme="dark"] #themeToggle {
  background: var(--dark-pink); color: #ffd0e8; border-color: #bd76a7;
  box-shadow: 3px 3px 0 var(--dark-shadow);
}

html[data-theme="dark"] #themeToggle:hover {
  background: #50324d;
}

/* ===== TEXT SELECTION ===== */

html[data-theme="dark"] ::selection {
  background: #80527e; color: #ffffff;
}

/* ===== SCROLLBARS ===== */

html[data-theme="dark"] {
  scrollbar-color: #557eb8 #10192d;
}

html[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #10192d;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #557eb8; border-radius: 8px;
}

/* ===== MIDNIGHT MODE — ADDITIONAL POLISH ===== */

/* Header tagline */

html[data-theme="dark"] .hero p {
  background: var(--dark-surface); color: var(--ink); border-color: var(--line);
}

/* Card collection & artwork containers */

html[data-theme="dark"] .cards-grid figure,
html[data-theme="dark"] .art-grid figure,
html[data-theme="dark"] .gallery-browser {
  background: var(--dark-surface); border-color: var(--line); color: var(--ink);
}

html[data-theme="dark"] .cards-grid figcaption,
html[data-theme="dark"] .art-grid figcaption {
  color: var(--ink);
}

/* Artwork background stripes */

html[data-theme="dark"] .cards-grid img,
html[data-theme="dark"] .art-grid img {
  background: repeating-linear-gradient(
    45deg,
    #233654,
    #233654 10px,
    #1c2b45 10px,
    #1c2b45 20px
  );
}

/* Gallery navigation */

html[data-theme="dark"] .gallery-breadcrumbs {
  background: var(--dark-surface); border-color: var(--line);
}

html[data-theme="dark"] .gallery-toolbar {
  color: var(--ink);
}

html[data-theme="dark"] .gallery-breadcrumbs button:disabled {
  color: var(--dark-muted);
}

/* About me tags */

html[data-theme="dark"] .tags span {
  background: var(--dark-pink); color: #ffd0e8; border-color: #bd76a7;
}

/* Spotify widget text */

html[data-theme="dark"] .spotify-content .spotistatus-widget,
html[data-theme="dark"] .spotify-content .spotistatus-song {
  color: var(--navy);
}

html[data-theme="dark"] .spotify-content .spotistatus-artist {
  color: var(--sky);
}

html[data-theme="dark"] .spotify-content .spotistatus-album {
  color: var(--dark-muted);
}

/* Artwork reference links */

html[data-theme="dark"] .art-references a {
  color: var(--sky);
}

html[data-theme="dark"] .art-references a:hover {
  color: var(--pink);
}

/* Reduced-motion scrolling */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ===== MIDNIGHT MODE — FINAL POLISH ===== */

/* Match flag hint to the pink about-me tags */

html[data-theme="dark"] .flag-hint {
  background: var(--dark-pink); color: #ffd0e8; border-color: #bd76a7;
}

/* Match favorites legend to art gallery stripes */

html[data-theme="dark"] .favorites-legend {
  background: repeating-linear-gradient(
    45deg,
    #233654,
    #233654 10px,
    #1c2b45 10px,
    #1c2b45 20px
  );
  border-color: var(--line);
}

/* ===== MIDNIGHT MODE — FAVORITE COLORS ===== */

/* SKY BLUE */

html[data-theme="dark"] .favorites .preference-tag.sky-blue {
  background: #293f65; color: #b8d9ff; border-color: #638ec5;
}

/* BABY PINK */

html[data-theme="dark"] .favorites .preference-tag.baby-pink {
  background: #492b48; color: #ffc1e4; border-color: #bd76a7;
}

/* TEAL */

html[data-theme="dark"] .favorites .preference-tag.teal {
  background: #203e3d; color: #a8e5d7; border-color: #5d9e92;
}

/* LAVENDER */

html[data-theme="dark"] .favorites .preference-tag.lavender {
  background: #39304f; color: #d8c8ff; border-color: #9580bd;
}

/* ===== DARK MODE — LOGO SHADOW ===== */

html[data-theme="dark"] .site-logo {
  text-shadow: 2px 3px 0 #315c96,
    4px 5px 0 #a85b91,
    6px 7px 0 #75466f;
}

/* ===== DARK MODE — FAVORITES TAG COLORS ===== */

html[data-theme="dark"] .preference-tag.okay {
  background: #39304f; color: #d8c8ff; border-color: #9580bd;
}

html[data-theme="dark"] .preference-tag.fact-checked {
  background: #39321f; color: #f3d68c; border-color: #99824a;
}

/* ===== FLOATING BUTTON — ICON ALIGNMENT ===== */

.system-control {
  display: flex; align-items: center; justify-content: center; padding: 0; line-height: 1;
}

.system-control span {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; line-height: 1;
  margin: 0;
}

/* Optical alignment adjustments */

#backToTop span {
  transform: translateY(-3px);
}

#themeIcon {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; line-height: 1;
  transform: translateY(3px);
}

/* Sun icon */

html[data-theme="dark"] #themeIcon {
  transform: translateY(2px);
}

/* ===== DARK MODE — GUESTBOOK PINK ACCENTS ===== */

html[data-theme="dark"] .guestbook-paper-header {
  background: #492b48; color: #ffd0e8;
}

html[data-theme="dark"] .guestbook-fields label {
  color: var(--pink);
}

/* ===== UNIFIED ART GALLERY DIRECTORY ===== */

.gallery-directory {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px 16px; margin-bottom: 14px;
  background: #e8f4ff; border: 2px solid var(--line); border-radius: 9px; font: 13px monospace;
}

.directory-icon {
  flex-shrink: 0;
}

.gallery-directory .gallery-breadcrumbs {
  display: flex; align-items: center; flex-wrap: wrap; flex: 1; min-width: 0; gap: 6px; padding: 0;
  margin: 0; border: none; background: transparent; box-shadow: none;
}

.gallery-directory #galleryCount {
  margin-left: auto; white-space: nowrap; font-size: 12px; color: var(--navy);
}

/* ===== DARK MODE ===== */

html[data-theme="dark"] .gallery-directory {
  background: var(--dark-surface); border-color: var(--line);
}

html[data-theme="dark"] .gallery-directory .gallery-breadcrumbs {
  background: transparent;
}

/* ===== MOBILE ===== */

@media (max-width: 720px) {
  .gallery-directory {
    padding: 12px; gap: 8px;
  }

  .gallery-directory #galleryCount {
    flex-basis: 100%; text-align: right; padding-top: 8px; border-top: 1px dashed var(--line);
  }
}

/* ===== GUESTBOOK — CUSTOM FLOATING ENVELOPE ===== */

.mail-art svg {
  display: block; width: 260px; max-width: 100%; height: auto; margin: 0 auto; stroke-linejoin: round;
  stroke-linecap: round; animation: floating-mail 3s ease-in-out infinite;
}

/* ===== LIGHT MODE ===== */

.mail-envelope-shape {
  fill: #c4e4ff; stroke: #438ce0; stroke-width: 2.2;
}

.mail-bottom-fold {
  fill: #d5edff; stroke: #438ce0; stroke-width: 2.2;
}

.mail-letter {
  fill: #ffffff; stroke: #a3d7ff; stroke-width: 2;
}

.mail-heart {
  fill: #ff91c9; stroke: #e34d9d; stroke-width: 1.5;
}

.mail-decoration {
  fill: none; stroke: #e34d9d; stroke-width: 1.8;
}

.mail-sparkle {
  fill: none; stroke: #438ce0; stroke-width: 1.5;
}

/* ===== DARK MODE ===== */

html[data-theme="dark"] .mail-envelope-shape {
  fill: #344d75; stroke: #80b5f5;
}

html[data-theme="dark"] .mail-bottom-fold {
  fill: #405b83; stroke: #80b5f5;
}

html[data-theme="dark"] .mail-letter {
  fill: #233654; stroke: #638ec5;
}

html[data-theme="dark"] .mail-heart {
  fill: #bd76a7; stroke: #ffa6d5;
}

html[data-theme="dark"] .mail-decoration {
  stroke: #ffa6d5;
}

html[data-theme="dark"] .mail-sparkle {
  stroke: #a3ceff;
}

/* ===== MOBILE ===== */

@media (max-width: 720px) {
  .mail-art svg {
    width: 220px;
  }
}

/* ===== REDUCED MOTION ===== */

@media (prefers-reduced-motion: reduce) {
  .mail-art svg {
    animation: none;
  }
}

/* ===== GUESTBOOK — DARK MODE PINK GRADIENT ===== */

html[data-theme="dark"] .guestbook-window .window-body {
  background: radial-gradient(
    ellipse at top center,
    #492b48 0%,
    #30283f 35%,
    #19263e 75%
  );
}

/* ===== GUESTBOOK — TRANSMISSION STATUS COLORS ===== */

/* Blue — awaiting transmission */
#guestStatus {
  background: #e0f0ff;
  border: 1px dashed #8abff5;
  color: #205b9e;
}

/* Yellow — sending */
#guestStatus.sending {
  background: #fff5d6;
  border: 1px dashed #dfbf65;
  color: #96701c;
}

/* Green — successfully delivered */
#guestStatus.delivered {
  background: #e4f8ee;
  border: 1px dashed #76bca1;
  color: #277b67;
}

/* Red — failed transmission */
#guestStatus.failed {
  background: #ffe5e5;
  border: 1px dashed #e57373;
  color: #c62828;
}

/* ===== DARK MODE ===== */

html[data-theme="dark"] #guestStatus {
  background: #293f65;
  border-color: #638ec5;
  color: #b8d9ff;
}

html[data-theme="dark"] #guestStatus.sending {
  background: #39321f;
  border-color: #99824a;
  color: #f3d68c;
}

html[data-theme="dark"] #guestStatus.delivered {
  background: #203b36;
  border-color: #69a991;
  color: #a4e6ca;
}

html[data-theme="dark"] #guestStatus.failed {
  background: #422630;
  border-color: #c97580;
  color: #ffb5bd;
}

/* ===== FAVORITES — ITALICIZED MEDIA TITLES ===== */

.favorites .preference-tag cite {
  font-style: italic;
}

/* ===== ART GALLERY — ITALICIZED MEDIA TITLES ===== */

#artGrid .media-title,
#artFolders .media-title,
#galleryBreadcrumbs .media-title {
  font-style: italic;
}

/* ===== DARK MODE — ABOUT ME TAGLINE ===== */

html[data-theme="dark"] .about-tagline {
  color: var(--pink);
}

/* ===== DARK MODE — ABOUT ME SUBTITLE ===== */

html[data-theme="dark"] .about-subtitle {
  color: var(--dark-muted);
}

/* ===== DARK MODE — IDENTITY CATEGORY HEADINGS ===== */

html[data-theme="dark"] .identity-heading > span {
  color: var(--pink);
}

/* ===== MIDNIGHT MODE — SYSTEM STATUSES ===== */

/* ACTIVE — GREEN */

html[data-theme="dark"] .status {
  background: #203b36; border: 1px dashed #69a991; color: #a4e6ca;
}

/* INACTIVE — YELLOW */

html[data-theme="dark"] .status.inactive {
  background: #39321f; border: 1px dashed #99824a; color: #f3d68c;
}

/* OFFLINE — RED */

html[data-theme="dark"] .status.offline {
  background: #422630; border: 1px dashed #c97580; color: #ffb5bd;
}

/* ===== LIGHT MODE — SYSTEM STATUSES ===== */

/* INACTIVE — YELLOW */

.status.inactive {
  background: #fff5d6; border: 1px dashed #dfbf65; color: #96701c;
}

/* OFFLINE — RED */

.status.offline {
  background: #ffe5e5; border: 1px dashed #e57373; color: #c62828;
}