:root {
  /* DAY — Aesthetic Pixel Clouds & Sky Train */
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-tint: rgba(226, 243, 255, 0.78);
  --dialog-bg: rgba(30, 108, 192, 0.44);
  --dialog-bar: rgba(255, 255, 255, 0.24);
  --bar-bg: rgba(37, 123, 224, 0.14);
  --border-px: #1f487a;
  --border-soft: rgba(31, 72, 122, 0.24);
  --shadow-px: 5px 5px 0 rgba(16, 48, 92, 0.3);
  --text-main: #132c4c;
  --text-sub: #305076;
  --text-muted: #52749c;
  --accent: #257be0;
  --accent-soft: rgba(37, 123, 224, 0.14);
  --ease-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --font-pixel: "Silkscreen", "JetBrains Mono", monospace;
  --font-mono: "JetBrains Mono", monospace;
  --font-sans: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* NIGHT — Midnight Lantern Forest & Fireflies */
body[data-world="night"] {
  --surface: rgba(10, 28, 52, 0.84);
  --surface-strong: rgba(13, 35, 64, 0.94);
  --surface-tint: rgba(20, 56, 94, 0.72);
  --dialog-bg: rgba(10, 38, 68, 0.56);
  --dialog-bar: rgba(156, 228, 255, 0.16);
  --bar-bg: rgba(103, 232, 249, 0.14);
  --border-px: #8ee4ff;
  --border-soft: rgba(142, 228, 255, 0.28);
  --shadow-px: 5px 5px 0 rgba(3, 10, 22, 0.72);
  --text-main: #ebfbff;
  --text-sub: #bce0f2;
  --text-muted: #7eb2ce;
  --accent: #67e8f9;
  --accent-soft: rgba(103, 232, 249, 0.16);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: #2c8ff0;
  overflow-x: clip;
  position: relative;
}

body[data-world="night"] {
  background-color: #061326;
}

:focus-visible {
  outline: 2px solid var(--border-px);
  outline-offset: 2px;
}

#pixel-world {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

body.has-custom-bg {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

body.has-custom-bg #pixel-world {
  opacity: 0.28;
}

body.can-pet {
  cursor: pointer;
}

/* Cute speech bubble above the interactive pixel cat / monitor */
.room-bubble {
  position: fixed;
  z-index: 25;
  transform: translate(-50%, -100%);
  padding: 0.4rem 0.72rem;
  border: 2px solid #ffffff;
  background: rgba(15, 44, 88, 0.92);
  color: #ffffff;
  font-family: var(--font-pixel);
  font-size: 0.66rem;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 3px 3px 0 rgba(5, 16, 36, 0.45);
  animation: bubblePop 0.28s var(--ease-expo) both;
}

.room-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #ffffff;
}

.room-bubble[hidden] {
  display: none;
}

@keyframes bubblePop {
  from {
    opacity: 0;
    transform: translate(-50%, -82%) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -100%) scale(1);
  }
}

/* Nút nổi khi người dùng chọn "No" để ngắm mây */
.wake-pill {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 30;
  padding: 0.7rem 1.25rem;
  border: 2px solid #ffffff;
  background: rgba(18, 58, 112, 0.8);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  box-shadow: 4px 4px 0 rgba(8, 24, 52, 0.45);
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.wake-pill:hover {
  transform: translateX(-50%) translateY(-2px);
  background: rgba(25, 80, 152, 0.94);
}

.wake-pill[hidden] {
  display: none;
}

/* Gentle Cloud-Watching Music Prompt */
.music-prompt {
  position: fixed;
  inset: 0;
  z-index: 28;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
}

.music-prompt[hidden] {
  display: none;
}

.music-prompt-box {
  pointer-events: auto;
  width: 100%;
  max-width: 440px;
  animation: fadeRise 0.55s var(--ease-expo) both;
}

.mp-body {
  padding: 1.05rem 1.15rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.mp-message {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.96);
  text-shadow: 0 1px 4px rgba(8, 24, 52, 0.45);
}

.mp-track-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: flex-start;
  padding: 0.28rem 0.6rem;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  background: rgba(12, 38, 76, 0.42);
  font-family: var(--font-pixel);
  font-size: 0.64rem;
  color: #fef08a;
}

.mp-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Floating Now-Playing Pixel Pill */
.music-pill {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border: 2px solid #ffffff;
  background: rgba(16, 48, 94, 0.86);
  backdrop-filter: blur(10px);
  color: #ffffff;
  box-shadow: 4px 4px 0 rgba(6, 18, 40, 0.45);
  animation: fadeRise 0.35s var(--ease-expo) both;
}

.music-pill[hidden] {
  display: none;
}

.music-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.music-eq i {
  display: block;
  width: 2px;
  background: #fef08a;
  animation: eqPulse 0.85s ease-in-out infinite alternate;
}

.music-eq i:nth-child(1) {
  height: 5px;
  animation-delay: 0s;
}

.music-eq i:nth-child(2) {
  height: 11px;
  animation-delay: 0.22s;
}

.music-eq i:nth-child(3) {
  height: 7px;
  animation-delay: 0.44s;
}

.music-pill.is-paused .music-eq i {
  animation: none;
  height: 3px;
  opacity: 0.5;
}

@keyframes eqPulse {
  from {
    transform: scaleY(0.35);
  }
  to {
    transform: scaleY(1);
  }
}

.music-pill-title {
  font-family: var(--font-pixel);
  font-size: 0.64rem;
  letter-spacing: 0.03em;
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-pill-btn {
  width: 24px;
  height: 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 0.7rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.music-pill-btn:hover {
  background: rgba(255, 255, 255, 0.32);
}

@media (max-width: 540px) {
  .music-pill {
    right: 12px;
    bottom: 72px;
  }
}

/* ============================================================
   STAGE 1: MÀN HÌNH START ("VISIT SOMEWHERE SAFE...")
   ============================================================ */
.title-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.85rem, 3vw, 2rem);
  transition: opacity 0.42s var(--ease-expo), transform 0.42s var(--ease-expo), visibility 0.42s;
}

body[data-stage="hub"] .title-screen,
body.watching-clouds .title-screen {
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  pointer-events: none;
  visibility: hidden;
}

.title-stack {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  animation: fadeRise 0.6s var(--ease-expo) both;
}

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

.sky-prompt {
  font-family: var(--font-pixel);
  font-size: clamp(0.84rem, 2.5vw, 1.1rem);
  letter-spacing: 0.08em;
  color: #ffffff;
  text-align: center;
  text-shadow: 2px 2px 0 rgba(12, 42, 86, 0.65), 0 0 18px rgba(255, 255, 255, 0.45);
}

.pixel-dialog {
  width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: var(--dialog-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 6px 6px 0 rgba(10, 32, 68, 0.4), 0 22px 54px rgba(8, 24, 52, 0.28);
  color: #ffffff;
}

.px-win-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  background: var(--dialog-bar);
  border-bottom: 2px solid rgba(255, 255, 255, 0.85);
}

.px-win-title {
  font-family: var(--font-pixel);
  font-size: clamp(0.7rem, 1.7vw, 0.82rem);
  letter-spacing: 0.07em;
  color: #ffffff;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.35);
}

.px-win-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.px-ctrl-btn,
.px-ctrl-box {
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: rgba(12, 38, 76, 0.34);
  color: #ffffff;
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  line-height: 1;
}

.px-ctrl-btn {
  cursor: pointer;
  transition: background-color 0.16s ease;
}

.px-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

.px-world-btn {
  padding: 0 8px;
  font-size: 0.64rem;
}

.px-win-body {
  padding: clamp(1rem, 3vw, 1.45rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.title-intro {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.25rem);
}

.title-avatar-box {
  width: clamp(76px, 16vw, 96px);
  height: clamp(76px, 16vw, 96px);
  border: 2px solid #ffffff;
  box-shadow: 4px 4px 0 rgba(9, 28, 60, 0.45);
  overflow: hidden;
  flex-shrink: 0;
  background: #102a4e;
}

.title-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--avatar-pos, center 45%);
  display: block;
}

.title-info {
  min-width: 0;
}

.title-badge {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  padding: 0.2rem 0.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  background: rgba(12, 38, 76, 0.4);
  color: #e0f6ff;
  margin-bottom: 0.4rem;
}

.title-name {
  font-family: var(--font-pixel);
  font-size: clamp(1.45rem, 4.4vw, 2.1rem);
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 3px 3px 0 rgba(12, 40, 82, 0.58);
  margin-bottom: 0.28rem;
}

.title-tagline {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.94);
}

.rpg-menu {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 2px dashed rgba(255, 255, 255, 0.45);
  padding-top: 0.95rem;
}

.rpg-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 0.95rem;
  border: 2px solid rgba(255, 255, 255, 0.48);
  background: rgba(12, 40, 80, 0.36);
  color: #ffffff;
  font-family: var(--font-pixel);
  font-size: clamp(0.72rem, 1.8vw, 0.86rem);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.rpg-option:hover,
.rpg-option.is-focused {
  background: rgba(255, 255, 255, 0.94);
  border-color: #ffffff;
  color: #103262;
  transform: translateX(4px);
  box-shadow: 4px 4px 0 rgba(9, 28, 60, 0.35);
}

.rpg-label {
  flex: 1;
}

.rpg-cursor {
  opacity: 0;
}

.rpg-option:hover .rpg-cursor,
.rpg-option.is-focused .rpg-cursor {
  opacity: 1;
  animation: nudge 0.85s steps(2, start) infinite;
}

@keyframes nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-4px);
  }
}

.px-win-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.86);
}

/* ============================================================
   STAGE 2: THẺ GIỚI THIỆU CÁ NHÂN GỌN GÀNG, ĐẸP MẮT
   ============================================================ */
.bio-hub {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.85rem, 3vw, 2rem) clamp(0.7rem, 2.4vw, 1.25rem);
  animation: fadeRise 0.45s var(--ease-expo) both;
}

.bio-hub[hidden] {
  display: none;
}

.bio-window {
  width: 100%;
  max-width: 580px;
  background: var(--surface);
  border: 2px solid var(--border-px);
  box-shadow: var(--shadow-px), 0 24px 56px rgba(10, 32, 68, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.bio-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.95rem;
  background: var(--bar-bg);
  border-bottom: 2px solid var(--border-px);
}

.bio-bar-title {
  font-family: var(--font-pixel);
  font-size: 0.74rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.bio-bar-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bar-btn {
  padding: 0.34rem 0.58rem;
  border: 1.5px solid var(--border-px);
  background: var(--surface-strong);
  color: var(--text-main);
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, transform 0.14s ease;
}

.bar-btn:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

body[data-world="night"] .bar-btn:hover {
  color: #061326;
}

.bio-body {
  padding: clamp(1.1rem, 3vw, 1.6rem);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

/* Phần đầu hồ sơ */
.profile-head {
  display: flex;
  align-items: center;
  gap: clamp(0.95rem, 2.6vw, 1.35rem);
}

.bio-avatar-wrap {
  width: clamp(92px, 18vw, 112px);
  height: clamp(92px, 18vw, 112px);
  border: 2px solid var(--border-px);
  box-shadow: 4px 4px 0 rgba(16, 48, 92, 0.25);
  overflow: hidden;
  flex-shrink: 0;
  background: #0d2342;
}

.bio-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--avatar-pos, center 45%);
  display: block;
}

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

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
}

.px-chip {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  padding: 0.2rem 0.5rem;
  border: 1.5px solid var(--border-soft);
  background: var(--surface-tint);
  color: var(--text-sub);
}

.px-chip.is-accent {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.bio-name {
  font-family: var(--font-pixel);
  font-size: clamp(1.45rem, 4vw, 1.95rem);
  line-height: 1.15;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.bio-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-sub);
}

/* Các mục nội dung */
.bio-section {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 1.05rem;
  border-top: 2px dashed var(--border-soft);
}

.section-label {
  font-family: var(--font-pixel);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--accent);
}

/* Danh sách Mạng xã hội */
.socials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 0.65rem;
}

.social-card-wrap {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--border-px);
  background: var(--surface-strong);
  box-shadow: 3px 3px 0 rgba(16, 48, 92, 0.22);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
  min-width: 0;
}

.social-card-wrap:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(16, 48, 92, 0.3);
  background: var(--accent-soft);
}

.social-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 0.78rem;
  color: var(--text-main);
  text-decoration: none;
  flex: 1;
  min-width: 0;
}

.social-copy-btn {
  padding: 0 0.55rem;
  border: none;
  border-left: 1.5px solid var(--border-soft);
  background: var(--surface-tint);
  color: var(--accent);
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.social-copy-btn:hover {
  background: var(--accent);
  color: #ffffff;
}

body[data-world="night"] .social-copy-btn:hover {
  color: #061326;
}

.social-icon {
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--border-soft);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

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

.social-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.social-handle {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.15rem;
}

/* Sở thích */
.hobbies-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hobby-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.75rem;
  border: 1.5px solid var(--border-px);
  background: var(--surface-tint);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.hobby-tag:hover {
  transform: translateY(-2px);
  background: var(--surface-strong);
}

.hobby-icon {
  color: var(--accent);
  font-size: 0.86rem;
}

/* Currently Watching Tracker */
.watching-card {
  padding: 0.85rem 0.95rem;
  border: 2px solid var(--border-px);
  background: var(--surface-tint);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.watching-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

.watching-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.watching-badge {
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  padding: 0.18rem 0.46rem;
  border: 1.5px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.watching-note {
  font-size: 0.8rem;
  color: var(--text-sub);
}

.watching-progress-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.15rem;
}

.watching-track {
  flex: 1;
  height: 9px;
  border: 1.5px solid var(--border-px);
  background: var(--surface-strong);
  overflow: hidden;
}

.watching-fill {
  height: 100%;
  width: 0;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0px,
    var(--accent) 8px,
    rgba(255, 255, 255, 0.45) 8px,
    rgba(255, 255, 255, 0.45) 11px
  );
  transition: width 0.75s var(--ease-expo);
}

.watching-ep {
  font-family: var(--font-pixel);
  font-size: 0.64rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Góc Anime yêu thích */
.anime-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.anime-item {
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--border-soft);
  background: var(--surface-tint);
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.anime-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-main);
}

.anime-vibe {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Chân thẻ */
.bio-footer {
  padding: 0.72rem 1rem;
  text-align: center;
  background: var(--bar-bg);
  border-top: 2px solid var(--border-soft);
  font-family: var(--font-pixel);
  font-size: 0.64rem;
  color: var(--text-muted);
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 60;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  padding: 0.6rem 1.05rem;
  border: 2px solid #ffffff;
  background: rgba(14, 46, 88, 0.92);
  color: #ffffff;
  font-family: var(--font-pixel);
  font-size: 0.66rem;
  box-shadow: 4px 4px 0 rgba(5, 16, 36, 0.45);
  transition: opacity 0.22s ease, transform 0.25s var(--ease-expo);
  max-width: calc(100vw - 2rem);
  text-align: center;
}

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

/* ===== RESPONSIVE MƯỢT MỌI KÍCH THƯỚC ===== */
@media (max-width: 540px) {
  .title-intro,
  .profile-head {
    flex-direction: column;
    text-align: center;
  }

  .profile-tags {
    justify-content: center;
  }

  .anime-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
