/* ==========================================================================
   KyodeSetsuna PFP — Ocean Blue & Deep Black Softed Glass Theme
   ========================================================================== */

:root,
body.theme-abyss {
  --bg-dark: #04070d;
  --card-surface: rgba(7, 13, 25, 0.62);
  --player-surface: rgba(6, 12, 24, 0.76);
  --box-bg: rgba(11, 22, 42, 0.56);
  --box-hover: rgba(16, 33, 62, 0.74);
  --border-glass: rgba(56, 189, 248, 0.24);
  --border-subtle: rgba(125, 211, 252, 0.14);
  --text-main: #e6f2ff;
  --text-heading: #ffffff;
  --text-muted: #8cb0d1;
  --accent: #0ea5e9;
  --accent-bright: #38bdf8;
  --accent-cyan: #22d3ee;
  --accent-deep: #1d4ed8;
  --grid-color: rgba(56, 189, 248, 0.055);
  --glow-shadow: rgba(14, 165, 233, 0.28);
  --card-shadow: 0 24px 64px rgba(0, 0, 0, 0.78);
  --bg-filter: blur(6px) brightness(0.42) saturate(1.18);
  --theme-name: "Abyssal Ocean";
}

body.theme-midnight {
  --bg-dark: #050611;
  --card-surface: rgba(10, 14, 32, 0.64);
  --player-surface: rgba(9, 13, 30, 0.78);
  --box-bg: rgba(18, 25, 54, 0.55);
  --box-hover: rgba(25, 36, 76, 0.75);
  --border-glass: rgba(96, 165, 250, 0.28);
  --border-subtle: rgba(147, 197, 253, 0.14);
  --text-main: #eaefff;
  --text-heading: #ffffff;
  --text-muted: #98abd6;
  --accent: #3b82f6;
  --accent-bright: #60a5fa;
  --accent-cyan: #2dd4bf;
  --accent-deep: #4338ca;
  --grid-color: rgba(96, 165, 250, 0.055);
  --glow-shadow: rgba(59, 130, 246, 0.3);
  --card-shadow: 0 24px 64px rgba(0, 0, 0, 0.8);
  --bg-filter: blur(6px) brightness(0.38) saturate(1.22);
  --theme-name: "Midnight Deep";
}

body.theme-arctic {
  --bg-dark: #e8f4fc;
  --card-surface: rgba(240, 248, 255, 0.78);
  --player-surface: rgba(238, 247, 255, 0.86);
  --box-bg: rgba(214, 235, 252, 0.68);
  --box-hover: rgba(194, 226, 250, 0.86);
  --border-glass: rgba(2, 132, 199, 0.28);
  --border-subtle: rgba(14, 165, 233, 0.2);
  --text-main: #0c2238;
  --text-heading: #061526;
  --text-muted: #3c5f7d;
  --accent: #0284c7;
  --accent-bright: #0ea5e9;
  --accent-cyan: #0891b2;
  --accent-deep: #1d4ed8;
  --grid-color: rgba(2, 132, 199, 0.08);
  --glow-shadow: rgba(2, 132, 199, 0.2);
  --card-shadow: 0 20px 52px rgba(6, 24, 44, 0.18);
  --bg-filter: blur(5px) brightness(0.92) saturate(1.05);
  --theme-name: "Arctic Ice";
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: "Plus Jakarta Sans", "Noto Sans JP", system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (pointer: fine) {
  body:not(.reduced-motion),
  body:not(.reduced-motion) a,
  body:not(.reduced-motion) button,
  body:not(.reduced-motion) input,
  body:not(.reduced-motion) textarea {
    cursor: none;
  }
}

.hidden {
  display: none !important;
}

/* ---------- Entry Splash Screen ---------- */
.entry-screen {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: radial-gradient(circle at 50% 45%, #071426 0%, #020409 75%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  cursor: pointer;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.entry-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.entry-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.entry-title {
  position: relative;
  font-family: "Space Mono", monospace;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #f0f9ff;
  letter-spacing: 0.08em;
  text-shadow: 0 0 22px rgba(56, 189, 248, 0.55);
  animation: glitch 3.2s infinite;
}

.entry-subtitle {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: #7dd3fc;
  opacity: 0.85;
}

.entry-prompt {
  margin-top: 8px;
  font-family: "Space Mono", monospace;
  font-size: 0.9rem;
  color: #bae6fd;
  animation: blink 1.6s ease-in-out infinite;
}

.entry-track-hint {
  margin-top: 10px;
  font-size: 0.78rem;
  color: #6488aa;
  font-family: "Space Mono", monospace;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

@keyframes glitch {
  0%, 90%, 100% {
    transform: translate(0);
    text-shadow: -1.5px 0 rgba(34, 211, 238, 0.7), 1.5px 0 rgba(59, 130, 246, 0.7), 0 0 22px rgba(56, 189, 248, 0.5);
  }
  92% {
    transform: translate(-2px, 1px);
    text-shadow: 2px 0 rgba(34, 211, 238, 0.9), -2px 0 rgba(244, 63, 94, 0.65);
  }
  94% {
    transform: translate(2px, -1px);
    text-shadow: -2px 0 rgba(56, 189, 248, 0.9), 2px 0 rgba(59, 130, 246, 0.85);
  }
  96% {
    transform: translate(0);
  }
}

/* ---------- Parallax Background Stack ---------- */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-layer {
  position: absolute;
  inset: -32px;
  background-image: url("../assets/img/bg-pc.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: var(--bg-filter);
  transform: translate3d(0, 0, 0) scale(1.04);
  will-change: transform;
  transition: filter 0.4s ease;
}

/* Mobile & vertical screens keep the full uncropped vertical image without compression */
@media (max-width: 768px), (max-aspect-ratio: 1 / 1) {
  .bg-layer {
    background-image: url("../assets/img/bg-mobile.jpg");
    background-position: center center;
  }
}

.grid-overlay {
  position: absolute;
  inset: -24px;
  z-index: 2;
  background-image:
    linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  background-size: 24px 24px;
  will-change: transform;
}

.vignette-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: radial-gradient(circle at 50% 45%, transparent 30%, rgba(2, 5, 12, 0.68) 100%);
}

body.theme-arctic .vignette-overlay {
  background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.08) 35%, rgba(12, 42, 74, 0.22) 100%);
}

/* ---------- Particles & Custom Cursor ---------- */
#mouse-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9000;
  pointer-events: none;
}

#cursor-dot,
#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

#cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan), 0 0 20px var(--accent);
}

#cursor-ring {
  width: 30px;
  height: 30px;
  border: 1.5px solid rgba(56, 189, 248, 0.72);
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.28);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, opacity 0.25s ease;
}

#cursor-ring.hovered {
  width: 48px;
  height: 48px;
  border-color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.08);
}

@media (pointer: coarse) {
  #cursor-dot,
  #cursor-ring {
    display: none !important;
  }
}

body.reduced-motion #cursor-dot,
body.reduced-motion #cursor-ring {
  display: none !important;
}

/* ---------- Top Controls ---------- */
.top-controls {
  position: fixed;
  top: 20px;
  right: 22px;
  z-index: 200;
  display: flex;
  gap: 10px;
}

.glass-circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: var(--card-surface);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  color: var(--text-heading);
  font-size: 1rem;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-circle-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent-bright);
  box-shadow: 0 0 18px var(--glow-shadow);
}

/* ---------- Main Layout ---------- */
.main-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px 118px;
}

.cards-container {
  width: 100%;
  max-width: 1060px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 26px;
}

/* ---------- 3D Tilt & Softed Glass Card Frame ---------- */
.card-tilt {
  perspective: 1400px;
  transform-style: preserve-3d;
  will-change: transform;
}

.profile-card {
  width: 460px;
  max-width: 100%;
}

.side-card {
  width: 365px;
  max-width: 100%;
  display: flex;
}

.side-card .card-border {
  width: 100%;
  display: flex;
}

.card-border {
  position: relative;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.55), rgba(14, 165, 233, 0.14), rgba(34, 211, 238, 0.55), rgba(29, 78, 216, 0.35));
  background-size: 280% 280%;
  animation: shimmerBorder 7s ease infinite;
  box-shadow: 0 0 36px var(--glow-shadow), var(--card-shadow);
  transform-style: preserve-3d;
}

@keyframes shimmerBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.card-inner {
  position: relative;
  width: 100%;
  border-radius: 22px;
  background: var(--card-surface);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(186, 230, 253, 0.14);
  box-shadow: inset 0 1px 0 rgba(224, 242, 254, 0.16);
  padding: 18px 22px 20px;
  overflow: hidden;
  transform-style: preserve-3d;
}

.side-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
}

.hologram-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 4;
  mix-blend-mode: screen;
  opacity: 0.36;
  background: linear-gradient(
    125deg,
    transparent 24%,
    rgba(56, 189, 248, 0.16) 44%,
    rgba(34, 211, 238, 0.24) 50%,
    rgba(96, 165, 250, 0.14) 56%,
    transparent 76%
  );
  background-size: 240% 240%;
  background-position: 50% 50%;
}

/* ---------- Banner & Avatar ---------- */
.profile-banner {
  position: relative;
  height: 132px;
  margin: -18px -22px 0;
  background-image: url("../assets/img/bg-pc.jpg");
  background-size: cover;
  background-position: center 42%;
  overflow: hidden;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(4, 7, 13, 0.12) 0%,
    rgba(4, 7, 13, 0.38) 55%,
    var(--card-surface) 100%
  );
}

.banner-pill {
  position: absolute;
  top: 12px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: "Space Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #e0f2fe;
  background: rgba(4, 9, 18, 0.56);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
  animation: blink 2s infinite;
}

.avatar-row {
  display: flex;
  justify-content: center;
  margin-top: -54px;
  position: relative;
  z-index: 20;
  transform-style: preserve-3d;
}

.avatar-wrapper {
  position: relative;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  padding: 4px;
  background: radial-gradient(circle at 50% 45%, rgba(14, 165, 233, 0.26) 0%, rgba(5, 11, 22, 0.78) 72%);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 28px rgba(14, 165, 233, 0.35), 0 12px 24px rgba(0, 0, 0, 0.5);
  animation: floatAvatar 4.2s ease-in-out infinite;
  transform: translateZ(26px);
}

@keyframes floatAvatar {
  0%, 100% { transform: translateZ(26px) translateY(0); }
  50% { transform: translateZ(26px) translateY(-6px); }
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.avatar-decoration {
  position: absolute;
  inset: -14%;
  width: 128%;
  height: 128%;
  pointer-events: none;
}

.status-dot {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid #070d19;
  box-shadow: 0 0 10px currentColor;
}

.status-online { background: #22c55e; color: #22c55e; }
.status-idle { background: #eab308; color: #eab308; }
.status-dnd { background: #ef4444; color: #ef4444; }
.status-offline { background: #64748b; color: #64748b; }

/* ---------- User Info & Chromatic Name ---------- */
.user-info {
  text-align: center;
  margin-top: 12px;
  position: relative;
  z-index: 15;
  transform: translateZ(18px);
}

.name-header-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.display-name {
  position: relative;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  line-height: 1.2;
}

/* Chromatic Aberration + Shimmer Effect */
.chromatic-text {
  background: linear-gradient(90deg, #ffffff 0%, #7dd3fc 35%, #38bdf8 55%, #ffffff 80%, #a5f3fc 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: chromaticFlow 5.5s linear infinite;
  text-shadow:
    -1.6px 0 0 rgba(34, 211, 238, 0.45),
    1.6px 0 0 rgba(59, 130, 246, 0.5);
}

body.theme-arctic .chromatic-text {
  background: linear-gradient(90deg, #061526 0%, #0284c7 45%, #0891b2 75%, #061526 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow:
    -1.2px 0 0 rgba(6, 182, 212, 0.35),
    1.2px 0 0 rgba(29, 78, 216, 0.35);
}

.chromatic-text::before,
.chromatic-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.55;
}

.chromatic-text::before {
  color: #22d3ee;
  transform: translate(-1.5px, 0);
  animation: chromaJitterA 4s infinite ease-in-out;
}

.chromatic-text::after {
  color: #3b82f6;
  transform: translate(1.5px, 0);
  animation: chromaJitterB 4s infinite ease-in-out;
}

body.theme-arctic .chromatic-text::before,
body.theme-arctic .chromatic-text::after {
  mix-blend-mode: multiply;
  opacity: 0.25;
}

@keyframes chromaticFlow {
  0% { background-position: 0% center; }
  100% { background-position: 220% center; }
}

@keyframes chromaJitterA {
  0%, 100% { transform: translate(-1.4px, 0); opacity: 0.48; }
  50% { transform: translate(-2.4px, -0.5px); opacity: 0.72; }
}

@keyframes chromaJitterB {
  0%, 100% { transform: translate(1.4px, 0); opacity: 0.48; }
  50% { transform: translate(2.4px, 0.5px); opacity: 0.72; }
}

.verified-badge {
  color: var(--accent-bright);
  font-size: 1rem;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.6));
}

.handle-row {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.handle-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--box-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.handle-chip:hover {
  border-color: var(--accent-bright);
  transform: translateY(-1px);
}

.dot-sep {
  opacity: 0.45;
}

.status-pill-text {
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--accent-bright);
}

.scramble-line {
  margin-top: 9px;
  font-family: "Space Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  min-height: 1.2em;
}

.bio-text {
  position: relative;
  display: inline-block;
  margin-top: 8px;
  font-family: "Noto Sans JP", "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-main);
}

.bio-chromatic {
  background: linear-gradient(
    90deg,
    #22d3ee 0%,
    #3b82f6 20%,
    #a855f7 40%,
    #ec4899 60%,
    #38bdf8 80%,
    #22d3ee 100%
  );
  background-size: 260% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ledRgbFlow 4.2s linear infinite;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.35));
}

.bio-chromatic::before,
.bio-chromatic::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.45;
}

.bio-chromatic::before {
  color: #00f5d4;
  transform: translate(-1.2px, 0);
  animation: chromaJitterA 3.4s ease-in-out infinite;
}

.bio-chromatic::after {
  color: #ec4899;
  transform: translate(1.2px, 0);
  animation: chromaJitterB 3.4s ease-in-out infinite;
}

body.theme-arctic .bio-chromatic::before,
body.theme-arctic .bio-chromatic::after {
  mix-blend-mode: multiply;
  opacity: 0.22;
}

@keyframes ledRgbFlow {
  0% { background-position: 0% center; }
  100% { background-position: 260% center; }
}

/* ---------- Tabs ---------- */
.tab-nav {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  padding: 5px;
  border-radius: 14px;
  background: var(--box-bg);
  border: 1px solid var(--border-subtle);
  position: relative;
  z-index: 20;
  transform: translateZ(20px);
}

.tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.24s ease;
}

.tab-btn:hover {
  color: var(--text-heading);
  background: rgba(56, 189, 248, 0.08);
}

.tab-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.34), rgba(29, 78, 216, 0.32));
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.25);
}

body.theme-arctic .tab-btn.active {
  color: #061526;
  background: rgba(14, 165, 233, 0.2);
}

.tab-panels {
  margin-top: 16px;
  position: relative;
  z-index: 15;
  transform: translateZ(14px);
}

.tab-panel {
  display: none;
  animation: fadeSlide 0.28s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Social Icons ---------- */
.social-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
}

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--box-bg);
  color: var(--text-heading);
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.osu-svg {
  width: 24px;
  height: 24px;
  display: block;
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.06);
  color: #ffffff;
}

.social-facebook:hover { background: rgba(24, 119, 242, 0.35); border-color: #3b82f6; box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4); }
.social-discord:hover  { background: rgba(88, 101, 242, 0.38); border-color: #818cf8; box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4); }
.social-steam:hover    { background: rgba(14, 165, 233, 0.32); border-color: #38bdf8; box-shadow: 0 8px 20px rgba(14, 165, 233, 0.38); }
.social-osu:hover      { background: rgba(236, 72, 153, 0.32); border-color: #f472b6; box-shadow: 0 8px 20px rgba(236, 72, 153, 0.38); }
.social-youtube:hover  { background: rgba(239, 68, 68, 0.35); border-color: #f87171; box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4); }

/* ---------- Sections & Interests ---------- */
.section-block,
.setup-section {
  margin-top: 16px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 9px;
}

.interests-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--box-bg);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.interest-pill i {
  color: var(--accent-bright);
  font-size: 0.76rem;
}

.interest-pill small {
  color: var(--text-muted);
  font-weight: 500;
}

.interest-pill:hover {
  border-color: var(--accent-bright);
  background: var(--box-hover);
  transform: translateY(-2px);
}

/* ---------- Embedded Discord Presence Box ---------- */
.activity-box {
  margin-top: 16px;
  background: var(--box-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 11px 13px;
}

.discord-presence {
  display: flex;
  align-items: center;
  gap: 12px;
}

.presence-avatar-wrap {
  position: relative;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.presence-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid var(--border-glass);
}

.mini-status-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #070d19;
}

.presence-meta {
  min-width: 0;
  flex: 1;
}

.presence-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.presence-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.presence-badge {
  font-family: "Space Mono", monospace;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(14, 165, 233, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent-bright);
}

.presence-sub {
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.view-pill,
.theme-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--box-bg);
  border: 1px solid var(--border-subtle);
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
}

/* ---------- Setup Tab ---------- */
.setup-section {
  margin-top: 9px;
}

.setup-section:first-child {
  margin-top: 0;
}

.setup-section .section-label {
  margin-bottom: 6px;
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.gear-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 11px;
  background: var(--box-bg);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.gear-item:hover {
  border-color: var(--accent-bright);
  transform: translateY(-2px);
}

.gear-item-wide {
  grid-column: span 2;
}

.gear-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: var(--accent-bright);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.gear-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.gear-kicker {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.gear-val {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.3;
}

.profile-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.profile-link-wide {
  grid-column: span 2;
}

.profile-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 11px;
  background: var(--box-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-heading);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.profile-link-card:hover {
  border-color: var(--accent-bright);
  background: var(--box-hover);
  transform: translateY(-2px);
}

.pl-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pl-badge {
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(14, 165, 233, 0.22);
  color: var(--accent-bright);
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pl-badge-icon {
  width: 32px;
  height: 32px;
  padding: 4px;
}

.pl-svg-osu {
  width: 22px;
  height: 22px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.45));
}

.pl-badge-val {
  width: 44px;
  height: 34px;
  padding: 3px 5px;
}

.pl-svg-val {
  width: 34px;
  height: 27px;
  display: block;
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.45));
}

.pl-title {
  font-size: 0.82rem;
  font-weight: 700;
}

.pl-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ---------- Message Tab ---------- */
.message-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background: var(--box-bg);
  color: var(--text-heading);
  font-family: inherit;
  font-size: 0.85rem;
  padding: 10px 12px;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.16);
}

.char-counter {
  align-self: flex-end;
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.btn-primary {
  width: 100%;
  padding: 11px 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #0ea5e9, #1d4ed8);
  color: #ffffff;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 22px rgba(14, 165, 233, 0.34);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.form-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

/* ---------- Side Card: Discord Activity + Track Showcase ---------- */
.side-section {
  position: relative;
  z-index: 15;
  transform: translateZ(16px);
}

.side-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.side-kicker {
  font-family: "Space Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.side-badge {
  font-family: "Space Mono", monospace;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent-cyan);
}

.discord-activity-body {
  background: var(--box-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 13px;
}

.rp-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rp-icon-box {
  position: relative;
  width: 62px;
  height: 62px;
  flex-shrink: 0;
}

.rp-icon-box > img:first-child {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid var(--border-glass);
}

.rp-small-img {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #070d19;
  object-fit: cover;
}

.rp-details {
  min-width: 0;
  flex: 1;
}

.rp-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-sub,
.rp-timer {
  margin-top: 2px;
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-timer {
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  color: var(--accent-bright);
}

.side-divider {
  height: 1px;
  margin: 12px 0;
  background: linear-gradient(to right, transparent, var(--border-glass), transparent);
}

.side-header-tight {
  margin-bottom: 8px;
}

/* ---------- Scrollable Discord Favourite Games ---------- */
.fav-games-scroll {
  max-height: 222px;
  overflow-y: auto;
  padding-right: 5px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(56, 189, 248, 0.45) transparent;
}

.fav-games-scroll::-webkit-scrollbar {
  width: 4px;
}

.fav-games-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.fav-games-scroll::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.45);
  border-radius: 999px;
}

.fav-games-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--accent-bright);
}

.fav-subsection {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.fav-sub-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.fav-sub-count {
  color: var(--text-muted);
  font-weight: 600;
}

.spotlight-game-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border-radius: 12px;
  background: var(--box-bg);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.spotlight-game-card:hover {
  border-color: var(--accent-bright);
  background: var(--box-hover);
  transform: translateY(-1px);
}

.spotlight-game-cover {
  width: 52px;
  height: 76px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-glass);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

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

.spotlight-game-title {
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
}

.spotlight-game-note {
  margin-top: 2px;
  font-size: 0.71rem;
  color: var(--text-muted);
}

.spotlight-game-tags {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.game-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--text-main);
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid var(--border-glass);
}

.game-tag i {
  color: var(--accent-bright);
  font-size: 0.6rem;
}

.fav-games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.fav-game-tile {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--box-bg);
  border: 1px solid var(--border-subtle);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.fav-game-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.fav-game-tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent-bright);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.32);
}

.fav-game-tile:hover img {
  transform: scale(1.05);
}

.side-track-card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 12px;
  border-radius: 14px;
  background: var(--box-bg);
  border: 1px solid var(--border-subtle);
}

.side-track-compact {
  flex-direction: row;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
}

.side-cover-art {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.side-cover-thumb {
  width: 60px;
  height: 60px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 9px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.side-track-meta {
  min-width: 0;
  flex: 1;
}

.side-track-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-track-artist {
  margin-top: 2px;
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--accent-bright);
}

.side-track-album {
  margin-top: 2px;
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-track-actions {
  margin-top: 11px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--box-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  text-decoration: none;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--accent-bright);
  background: var(--box-hover);
  transform: translateY(-2px);
}

/* ---------- Floating Bottom BGM Player ---------- */
.bgm-player {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: 480px;
  max-width: calc(100vw - 24px);
  border-radius: 18px;
  background: var(--player-surface);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--border-glass);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), 0 0 24px var(--glow-shadow);
  padding: 8px 14px 7px;
  z-index: 300;
  overflow: hidden;
}

#audio-visualizer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.28;
  pointer-events: none;
  z-index: 0;
}

.bgm-main-row,
.bgm-volume-row {
  position: relative;
  z-index: 2;
}

.bgm-main-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bgm-disc-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.35);
}

.bgm-spin {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.bgm-hole {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: #060b14;
  border: 1.5px solid rgba(125, 211, 252, 0.65);
}

.bgm-disc-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 9, 18, 0.56);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bgm-disc-wrap:hover .bgm-disc-overlay {
  opacity: 1;
}

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

.bgm-title-marquee {
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-heading);
}

.bgm-title-marquee span {
  display: inline-block;
}

.bgm-progress-row {
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.bgm-time {
  font-family: "Space Mono", monospace;
  font-size: 0.67rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.bgm-seek,
.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
  outline: none;
}

.bgm-seek {
  flex: 1;
  min-width: 60px;
}

.bgm-seek::-webkit-slider-thumb,
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-bright);
}

.bgm-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.ctrl-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  display: grid;
  place-items: center;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ctrl-btn:hover {
  color: var(--text-heading);
  background: rgba(56, 189, 248, 0.14);
}

.ctrl-btn.active {
  color: var(--accent-bright);
}

.ctrl-play {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #0ea5e9, #1d4ed8);
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.45);
}

.ctrl-play:hover {
  transform: scale(1.06);
}

.bgm-volume-row {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
}

.vol-icon-btn {
  border: none;
  background: transparent;
  color: var(--accent-bright);
  font-size: 0.78rem;
  width: 22px;
  display: grid;
  place-items: center;
}

.volume-slider {
  flex: 1;
}

.bgm-vol-pct {
  font-family: "Space Mono", monospace;
  font-size: 0.66rem;
  color: var(--text-muted);
  width: 34px;
  text-align: right;
}

/* ---------- Settings Modal & Toast ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(2, 6, 14, 0.68);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: 400px;
  max-width: 100%;
  border-radius: 20px;
  background: var(--card-surface);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--card-shadow);
  padding: 20px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-head h2 {
  font-size: 1rem;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--box-bg);
  color: var(--text-main);
  display: grid;
  place-items: center;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--box-bg);
  border: 1px solid var(--border-subtle);
}

.setting-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-heading);
}

.setting-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.toggle-switch {
  -webkit-appearance: none;
  appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.45);
  position: relative;
  flex-shrink: 0;
  transition: background 0.25s ease;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.25s ease;
}

.toggle-switch:checked {
  background: var(--accent);
}

.toggle-switch:checked::after {
  transform: translateX(18px);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 132px;
  transform: translate(-50%, 14px);
  z-index: 950;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--player-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--accent-bright);
  color: var(--text-heading);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

#yt-player-host {
  position: fixed;
  width: 1px;
  height: 1px;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

.shield-lock {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 45%, #071426 0%, #020409 75%);
  color: #e6f2ff;
  font-family: "Space Mono", monospace;
  padding: 24px;
  text-align: center;
}

.shield-box {
  max-width: 420px;
  padding: 26px 24px;
  border-radius: 18px;
  background: rgba(7, 13, 25, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 36px rgba(14, 165, 233, 0.25);
}

.shield-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: 0.08em;
}

.shield-desc {
  margin-top: 10px;
  font-size: 0.82rem;
  color: #8cb0d1;
  line-height: 1.5;
}

/* ---------- Reduced Motion ---------- */
body.reduced-motion .card-border,
body.reduced-motion .avatar-wrapper,
body.reduced-motion .chromatic-text,
body.reduced-motion .chromatic-text::before,
body.reduced-motion .chromatic-text::after,
body.reduced-motion .bio-chromatic,
body.reduced-motion .bio-chromatic::before,
body.reduced-motion .bio-chromatic::after,
body.reduced-motion .entry-title,
body.reduced-motion .pulse-dot {
  animation: none !important;
}

body.reduced-motion .hologram-glare {
  display: none;
}

/* ---------- Mobile Responsive ---------- */
@media (max-width: 860px) {
  .main-content {
    padding: 72px 14px 158px;
  }

  .cards-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .profile-card,
  .side-card {
    width: 100%;
    max-width: 440px;
  }

  .top-controls {
    position: absolute;
    top: 14px;
    right: 14px;
  }

  .bgm-player {
    bottom: 14px;
    padding: 9px 12px 7px;
  }

  .bgm-controls .ctrl-btn#btn-shuffle,
  .bgm-controls .ctrl-btn#btn-repeat {
    display: none;
  }

  .toast {
    bottom: 118px;
  }
}
