/* Hide scrollbars for Firefox, IE, and Edge across the entire page and all elements */
html,
body,
* {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* Hide scrollbars for Chrome, Safari, and Opera across the entire page and all elements */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none;
}














/* ==========================================================================
   Base Styles & Design Tokens (Muted Atmospheric Palette)
   ========================================================================== */
:root {
  --bg-color: #000000;

  /* Muted, desaturated soft rose tones */
  --text-primary: #ebd2d8;
  --text-secondary: #bca0a9;

  /* Soft glowing border tokens */
  --border-pink: rgba(216, 162, 177, 0.68);
  --border-glow-soft: 0 0 6px rgba(222, 165, 180, 0.42),
    0 0 14px rgba(202, 138, 155, 0.24),
    0 0 28px rgba(180, 110, 128, 0.12);
  --border-glow-inset: inset 0 0 8px rgba(216, 162, 177, 0.08);

  /* Muted, atmospheric header glow layers */
  --glow-pink-text: 0 0 3px rgba(235, 200, 210, 0.8),
    0 0 8px rgba(220, 160, 176, 0.55),
    0 0 18px rgba(200, 135, 152, 0.35),
    0 0 32px rgba(175, 108, 125, 0.18),
    0 0 46px rgba(155, 90, 106, 0.1);

  --font-main: 'Poppins', 'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
}

/* ==========================================================================
   Background Flicker Animation Keyframes
   ========================================================================== */
@keyframes bg-flicker {

  0%,
  47%,
  49%,
  73%,
  75%,
  100% {
    opacity: 1;
  }

  48% {
    opacity: 0.72;
  }

  74% {
    opacity: 0.60;
  }
}

/* ==========================================================================
   Blurred Background Image (top-left, native resolution, flickering)
   ========================================================================== */
body::before {
  content: '';
  position: fixed;
  top: -15px;
  /* offset to hide blur-edge bleed */
  left: -15px;
  width: auto;
  height: auto;
  /* Use a large area so blur doesn't clip — actual image stays top-left */
  min-width: calc(100vw + 30px);
  min-height: calc(100vh + 30px);
  background-image: url('b1.png');
  background-repeat: no-repeat;
  background-position: 15px 15px;
  /* compensates for the -15px offset */
  background-size: auto;
  /* native resolution */
  filter: blur(5px);
  z-index: 0;
  pointer-events: none;
  animation: bg-flicker 9s ease-in-out infinite;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
}

img,
svg,
a {
  -webkit-user-drag: none;
  user-drag: none;
}

input[type="range"] {
  -webkit-user-select: none;
  user-select: none;
}

html,
body {
  background-color: var(--bg-color);
  /* solid black fallback beneath image */
  color: var(--text-secondary);
  font-family: var(--font-main);
  position: relative;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none;
  user-select: none;
}

/* ==========================================================================
   Typography & Soft Glowing Headers
   ========================================================================== */
.glow-pink {
  color: var(--text-primary);
  text-shadow: var(--glow-pink-text);
  letter-spacing: -0.01em;
  font-weight: 500;
  line-height: 1.1;
  transition: text-shadow 0.3s ease;
}

.glow-pink:hover {
  text-shadow: 0 0 4px rgba(240, 210, 218, 0.9),
    0 0 10px rgba(225, 170, 185, 0.65),
    0 0 22px rgba(205, 140, 158, 0.45),
    0 0 38px rgba(185, 115, 132, 0.25);
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* ==========================================================================
   Carrd Container
   ========================================================================== */
.carrd-wrapper {
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  /* sits above the ::before background layer */
  padding: 48px 24px 60px;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Top Profile Card with Soft Glowing Outline
   ========================================================================== */
.profile-card {
  width: 100%;
  border: 1px solid var(--border-pink);
  box-shadow: var(--border-glow-soft), var(--border-glow-inset);
  display: flex;
  align-items: stretch;
  margin-bottom: 34px;
  background-color: #000000;
  position: relative;
  transition: box-shadow 0.35s ease;
}

.profile-card:hover {
  box-shadow: 0 0 8px rgba(225, 170, 185, 0.5),
    0 0 18px rgba(205, 142, 160, 0.32),
    0 0 35px rgba(185, 115, 132, 0.16),
    var(--border-glow-inset);
}

.profile-left {
  flex: 1 1 57%;
  padding: 24px 18px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.header-title {
  width: 100%;
  max-width: 310px;
  font-size: 2.7rem;
  text-align: center;
  margin-bottom: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.heart-icon {
  width: 32px;
  height: 32px;
  stroke: var(--text-primary);
  filter: drop-shadow(0 0 2px rgba(235, 200, 210, 0.8)) drop-shadow(0 0 6px rgba(220, 160, 176, 0.55)) drop-shadow(0 0 14px rgba(200, 135, 152, 0.35));
  display: inline-block;
  vertical-align: middle;
  transform: translateY(-1px);
}

.bio-text {
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--text-secondary);
  margin-bottom: 14px;
  text-align: left;
}

.bio-text p {
  margin: 0;
  letter-spacing: 0.01em;
}

/* Banner Image Box (replaces Japanese quote box) */
.banner-box {
  border: none;
  box-shadow: none;
  background-color: transparent;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  margin-top: 2px;
}

.banner-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 320px;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  filter: brightness(0.92) contrast(0.97);
  transition: filter 0.3s ease;
}

.banner-box:hover .banner-img {
  filter: brightness(1) contrast(1);
}

/* ==========================================================================
   Automated Profile Picture Slideshow (Fixed Size & Seamless Fit)
   ========================================================================== */
/* Outer flex cell — holds the spacing gap from parent card edges */
.profile-slideshow-wrapper {
  flex: 1 1 43%;
  min-width: 0;
  display: flex;
  align-items: stretch;
  padding: 10px 10px 10px 0;
  background-color: #000000;
}

/* Inner container — its own border, glow, and clipping */
.profile-slideshow-container {
  flex: 1;
  min-height: 180px;
  position: relative;
  overflow: hidden;
  background-color: #060404;
  border: 1px solid rgba(216, 162, 177, 0.6);
  box-shadow:
    0 0 6px rgba(222, 165, 180, 0.38),
    0 0 14px rgba(202, 138, 155, 0.20),
    0 0 28px rgba(180, 110, 128, 0.10),
    inset 0 0 8px rgba(216, 162, 177, 0.06);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

.profile-slideshow-container:hover {
  border-color: rgba(230, 178, 192, 0.85);
  box-shadow:
    0 0 8px rgba(230, 178, 192, 0.55),
    0 0 20px rgba(208, 148, 164, 0.30),
    0 0 36px rgba(185, 115, 132, 0.14),
    inset 0 0 10px rgba(216, 162, 177, 0.08);
}

.slideshow-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slideshow-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slideshow-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* ==========================================================================
   Two-Column Content Grid
   ========================================================================== */
.content-grid {
  display: grid;
  grid-template-columns: 46% 54%;
  column-gap: 24px;
  row-gap: 16px;
  width: 100%;
}

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

/* Section titles */
.section-title {
  font-size: 2.05rem;
  margin-bottom: 6px;
  font-weight: 500;
}

/* Block body text styling */
.block-body {
  font-size: 0.96rem;
  line-height: 1.38;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.block-body p {
  margin: 0;
}

/* Individual blocks */
.anime-block {
  margin-bottom: 22px;
}

.comfort-block {
  margin-bottom: 28px;
}

.music-block {
  margin-bottom: 28px;
}

/* ==========================================================================
   Scrollable Music Player Widget (Cohesive Theme-Matched Styling)
   ========================================================================== */
.music-player-widget {
  border: 1px solid var(--border-pink);
  box-shadow: var(--border-glow-soft), var(--border-glow-inset);
  padding: 12px 14px 14px;
  background-color: rgba(10, 7, 9, 0.7);
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
  margin-top: 6px;
}

.music-player-widget:hover {
  box-shadow: 0 0 8px rgba(225, 170, 185, 0.5),
    0 0 18px rgba(205, 142, 160, 0.3),
    0 0 32px rgba(185, 115, 132, 0.15),
    var(--border-glow-inset);
}

.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(216, 162, 177, 0.2);
}

.player-header-title {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.player-track-counter {
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  opacity: 0.85;
}

/* Scrollable Tracklist Container */
.tracks-scroll-container {
  max-height: 275px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 8px;
  padding-right: 5px;
  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 162, 177, 0.35) rgba(216, 162, 177, 0.05);
}

/* Custom Webkit Scrollbar */
.tracks-scroll-container::-webkit-scrollbar {
  width: 4px;
}

.tracks-scroll-container::-webkit-scrollbar-track {
  background: rgba(216, 162, 177, 0.05);
  border-radius: 2px;
}

.tracks-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(216, 162, 177, 0.32);
  border-radius: 2px;
  box-shadow: 0 0 4px rgba(216, 162, 177, 0.25);
  transition: background 0.2s ease;
}

.tracks-scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(230, 175, 190, 0.65);
  box-shadow: 0 0 8px rgba(225, 170, 185, 0.5);
}

/* Individual Track Item */
.track-item {
  border: 1px solid rgba(216, 162, 177, 0.16);
  box-shadow: 0 0 3px rgba(216, 162, 177, 0.05);
  background-color: rgba(14, 10, 12, 0.5);
  padding: 8px 10px;
  margin-bottom: 8px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.track-item:last-child {
  margin-bottom: 2px;
}

.track-item:hover {
  border-color: rgba(216, 162, 177, 0.45);
  box-shadow: 0 0 7px rgba(216, 162, 177, 0.2);
  background-color: rgba(20, 14, 17, 0.65);
}

/* Active / Playing Track Item */
.track-item.is-playing {
  border-color: rgba(225, 175, 188, 0.75);
  box-shadow: 0 0 10px rgba(222, 165, 180, 0.35), inset 0 0 8px rgba(216, 162, 177, 0.08);
  background-color: rgba(28, 18, 22, 0.75);
}

/* Track Main Row: Album Art + Details + Play Button */
.track-main-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Album Art Image Container & Image */
.album-art-container {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border: 1px solid var(--border-pink);
  box-shadow: 0 0 5px rgba(216, 162, 177, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(6, 4, 5, 0.85);
  overflow: hidden;
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.album-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: contrast(0.95) brightness(0.9);
}

.track-item:hover .album-art-container {
  border-color: rgba(228, 172, 187, 0.8);
  box-shadow: 0 0 7px rgba(222, 165, 180, 0.35);
}

.track-item:hover .album-art-img {
  filter: contrast(1) brightness(1);
  transform: scale(1.05);
}

.track-item.is-playing .album-art-container {
  border-color: var(--text-primary);
  box-shadow: 0 0 10px rgba(222, 165, 180, 0.55);
}

.track-item.is-playing .album-art-img {
  filter: contrast(1.05) brightness(1.05);
}

/* Track Details */
.track-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.track-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.track-artist {
  font-size: 0.71rem;
  color: var(--text-secondary);
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* Play/Pause Button */
.play-pause-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  border: 1px solid var(--border-pink);
  background: transparent;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 4px rgba(216, 162, 177, 0.2);
  transition: all 0.2s ease;
  padding: 0;
}

.play-pause-btn:hover {
  background: rgba(216, 162, 177, 0.15);
  box-shadow: 0 0 8px rgba(222, 165, 180, 0.5);
  border-color: rgba(230, 175, 190, 0.85);
  transform: scale(1.05);
}

.track-item.is-playing .play-pause-btn {
  background: rgba(225, 175, 188, 0.22);
  border-color: var(--text-primary);
  box-shadow: 0 0 9px rgba(222, 165, 180, 0.6);
}

/* Music Progress / Scrubber Slider */
.track-scrubber-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding-left: 2px;
}

.track-time {
  font-size: 0.67rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
  min-width: 26px;
  letter-spacing: 0.02em;
}

.slider-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  height: 14px;
}

.music-scrubber {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: rgba(216, 162, 177, 0.16);
  outline: none;
  cursor: pointer;
  margin: 0;
  position: relative;
  z-index: 2;
  transition: background 0.2s ease;
}

/* Slider Track Fill (Synced visually with slider value) */
.scrubber-fill {
  position: absolute;
  left: 0;
  top: calc(50% - 1.5px);
  height: 3px;
  border-radius: 2px;
  background: rgba(216, 162, 177, 0.35);
  pointer-events: none;
  z-index: 1;
  transition: width 0.08s linear, background 0.2s ease, box-shadow 0.2s ease;
}

/* Active State for Fill */
.track-item.is-playing .scrubber-fill,
.slider-wrapper:hover .scrubber-fill {
  background: rgba(235, 195, 205, 0.85);
  box-shadow: 0 0 6px rgba(222, 165, 180, 0.55);
}

/* Scrubber Thumb - Passive State */
.music-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #bca0a9;
  border: 1px solid var(--border-pink);
  box-shadow: 0 0 3px rgba(216, 162, 177, 0.3);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.music-scrubber::-moz-range-thumb {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #bca0a9;
  border: 1px solid var(--border-pink);
  box-shadow: 0 0 3px rgba(216, 162, 177, 0.3);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

/* Scrubber Thumb - Active State (Hovered, Playing, or Dragging) */
.track-item.is-playing .music-scrubber::-webkit-slider-thumb,
.music-scrubber:hover::-webkit-slider-thumb,
.music-scrubber:active::-webkit-slider-thumb {
  background: #f7e4ea;
  border-color: #ffffff;
  box-shadow: 0 0 7px rgba(240, 180, 195, 0.9);
  transform: scale(1.2);
}

.track-item.is-playing .music-scrubber::-moz-range-thumb,
.music-scrubber:hover::-moz-range-thumb,
.music-scrubber:active::-moz-range-thumb {
  background: #f7e4ea;
  border-color: #ffffff;
  box-shadow: 0 0 7px rgba(240, 180, 195, 0.9);
  transform: scale(1.2);
}

/* Sentiment Boxes (:) and :() with Soft Glowing Outline */
.sentiment-boxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.sentiment-box {
  border: 1px solid var(--border-pink);
  box-shadow: var(--border-glow-soft);
  padding: 6px 12px;
  font-size: 0.95rem;
  line-height: 1.35;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  width: 215px;
  max-width: 100%;
  background: transparent;
  transition: box-shadow 0.35s ease;
}

.sentiment-box:hover {
  box-shadow: 0 0 8px rgba(225, 170, 185, 0.5),
    0 0 16px rgba(205, 142, 160, 0.3);
}

.sentiment-box p {
  margin: 0;
}

/* ==========================================================================
   ASCII Art Section (Moth Replacement)
   ========================================================================== */
.ascii-art-container {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 4px 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ascii-art-container::-webkit-scrollbar {
  display: none;
}

.ascii-art {
  font-family: 'Courier New', Courier, Consolas, Monaco, monospace;
  font-size: clamp(0.5rem, 1.45vw, 0.65rem);
  line-height: 1.14;
  white-space: pre;
  color: var(--text-secondary);
  text-shadow: 0 0 3px rgba(220, 160, 175, 0.4),
    0 0 8px rgba(200, 135, 150, 0.22);
  letter-spacing: -0.01em;
  margin: 0;
  padding: 0;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
}

.ascii-art:hover {
  color: var(--text-primary);
  text-shadow: 0 0 4px rgba(235, 195, 205, 0.7),
    0 0 12px rgba(220, 155, 172, 0.4);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 600px) {
  .carrd-wrapper {
    padding: 24px 16px 40px;
  }

  .profile-card {
    flex-direction: column;
  }

  .profile-left {
    padding: 20px 14px 16px;
    width: 100%;
  }

  .header-title {
    max-width: 100%;
    font-size: 2.2rem;
  }

  .profile-slideshow-wrapper {
    padding: 0 12px 12px;
  }

  .profile-slideshow-container {
    width: 100%;
    height: 210px;
    min-height: 210px;
  }

  .japanese-quote-box {
    max-width: 100%;
    width: 100%;
  }

  .jp-line {
    white-space: normal;
    word-break: break-all;
  }

  .content-grid {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .sentiment-box {
    width: 100%;
    max-width: 100%;
  }

  .ascii-art-container {
    justify-content: center;
    margin-top: 12px;
  }

  .ascii-art {
    font-size: clamp(0.52rem, 2.6vw, 0.68rem);
  }

  .music-player-widget {
    margin-top: 10px;
    padding: 10px 10px 12px;
  }

  .tracks-scroll-container {
    max-height: 250px;
  }
}

/* ==========================================================================
   Preloader Overlay
   ========================================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Fade-out transition — triggered by JS adding .preloader--done */
  transition: opacity 0.7s ease, visibility 0.7s ease;
  opacity: 1;
  visibility: visible;
}

.preloader.preloader--done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.preloader-text {
  font-family: 'Poppins', 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  /* muted rose — #bca0a9 */
  text-shadow: var(--glow-pink-text);
  animation: preloader-pulse 2.4s ease-in-out infinite;
}

@keyframes preloader-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

/* Thin progress bar */
.preloader-bar-track {
  width: 120px;
  height: 1px;
  background: rgba(216, 162, 177, 0.15);
  border-radius: 1px;
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: rgba(216, 162, 177, 0.65);
  box-shadow: 0 0 6px rgba(222, 165, 180, 0.55);
  border-radius: 1px;
  transition: width 0.3s ease;
}