/* ==========================================================================
   LANDING.CSS — ARCESYS Entry Hall
   ========================================================================== */

/* ── Override base layout for landing ─────────────────────────────────────── */
body.landing-body {
  overflow-y: auto;
  overflow-x: hidden;
}
body.landing-body main.container {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
  overflow: visible;
}

/* Trang landing đã có dải pillar trong hero — ẩn 6 nút hub trùng dưới header */
body.landing-body .header-shell {
  display: none;
}

/* Header bar: see app_header.css (included from base.html on all pages) */

/* ==========================================================================
   SECTION 1 — HERO
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 80px); /* subtract header height */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  overflow: hidden;
  z-index: 1;
  padding-top: 0;
}

/* ==========================================================================
   POKÉMON CAROUSELS — Infinite Scroll Strips
   ========================================================================== */
.carousel-section {
  position: relative;
  z-index: 3;
  width: 100%;
  margin: 0 0 4px;
  contain: layout style;
}

/* Same horizontal band as .hero-tools-row — fades align with Type Balance (left) & Nature (right) */
.carousel-viewport-align {
  width: min(680px, 95vw);
  margin-inline: auto;
  box-sizing: border-box;
}

/* Label row above each strip */
.carousel-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 8px;
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(160, 200, 255, 0.45);
}

.carousel-label--mixed {
  text-transform: none;
  letter-spacing: 0.14em;
  font-weight: 600;
}

/* Overflow-hidden strip */
.carousel-strip {
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint;
}

/*
 * Mega carousel — fade hai cạnh bằng mask (alpha mượt), không lớp phủ tối đè lên thẻ.
 */
.carousel-strip--mega {
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 3%,
    rgba(0, 0, 0, 0.55) 8%,
    rgba(0, 0, 0, 0.95) 13%,
    #000 18%,
    #000 82%,
    rgba(0, 0, 0, 0.95) 87%,
    rgba(0, 0, 0, 0.55) 92%,
    rgba(0, 0, 0, 0.12) 97%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.12) 3%,
    rgba(0, 0, 0, 0.55) 8%,
    rgba(0, 0, 0, 0.95) 13%,
    #000 18%,
    #000 82%,
    rgba(0, 0, 0, 0.95) 87%,
    rgba(0, 0, 0, 0.55) 92%,
    rgba(0, 0, 0, 0.12) 97%,
    transparent 100%
  );
}

/* Track holds cards × 2 (original + duplicate) side by side */
.carousel-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 6px 0 10px;
  /* Prevent layout flash on initial render */
  will-change: transform;
}

/* Mega row — slow horizontal scroll */
.carousel-track--mega {
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  animation: carouselScrollLeft 600s linear infinite;
}

@keyframes carouselScrollLeft {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Không pause khi hover — track vẫn scroll (click thẻ vẫn hoạt động). */

/* Pause khi strip ra khỏi viewport — giảm CPU/GPU khi đã cuộn xuống */
.carousel-strip--mega.is-offscreen .carousel-track--mega {
  animation-play-state: paused !important;
}

/* Glass vừa phải: blur thấp + gradient — desktop; touch tắt blur ở block coarse bên dưới */
.carousel-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 14px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.11) 0%,
    rgba(255, 255, 255, 0.04) 38%,
    rgba(8, 16, 36, 0.38) 100%
  );
  /* Không box-shadow bên ngoài — tránh vệt tối “phía sau” thẻ khi chạy carousel */
  backdrop-filter: blur(5px) saturate(1.12);
  -webkit-backdrop-filter: blur(5px) saturate(1.12);
  text-decoration: none;
  color: inherit;
  width: 118px;
  transition: background 0.22s ease, border-color 0.22s ease;
}

.carousel-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.06) 36%,
    rgba(10, 20, 44, 0.48) 100%
  );
}

.carousel-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.carousel-card-name {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(200, 218, 255, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 102px;
  text-align: center;
}

.carousel-card-badge {
  font-family: var(--font-sans);
  font-size: 0.42rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 20px;
}

/* Mega badge — orange/gold accent */
.badge-mega {
  background: rgba(255, 140, 40, 0.14);
  border: 1px solid rgba(255, 140, 40, 0.35);
  color: rgba(255, 180, 80, 0.9);
}

/* G-Max badge — purple accent */
.badge-gmax {
  background: rgba(130, 60, 255, 0.14);
  border: 1px solid rgba(130, 60, 255, 0.35);
  color: rgba(180, 120, 255, 0.9);
}

/* ── Particles canvas ──────────────────────────────────────────────────── */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Arceus Divine Presence ─────────────────────────────────────────────── */
.arceus-presence {
  position: absolute;
  bottom: 0;
  left: -10vw;
  z-index: 1;
  pointer-events: none;
  line-height: 0;
}

.arceus-image {
  display: block;
  height: 100vh;
  width: auto;
  opacity: 0.95;
  mix-blend-mode: screen;
  filter: blur(3px) brightness(1.1);
  animation: alphaPulse 20s ease-in-out infinite;
}

@keyframes alphaPulse {
  0%, 100% { transform: scale(1); opacity: 0.42; }
  50%      { transform: scale(1.02); opacity: 0.48; }
}

/* ── Ambient Neon Glows (Arceus Gold & Mega Evolution) ─────────────────── */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  animation: ambientGlowDrift 14s ease-in-out infinite alternate;
}

/* Arceus Gold / Fairy Pink (Left side) */
.hero::before {
  top: -20%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  min-width: 500px;
  min-height: 500px;
  background: radial-gradient(circle, rgba(255, 180, 60, 0.22) 0%, rgba(255, 100, 150, 0.08) 60%, transparent 80%);
}

/* Mega Evolution Cyan / Purple (Right side) */
.hero::after {
  bottom: -20%;
  right: -10%;
  width: 65vw;
  height: 65vw;
  min-width: 600px;
  min-height: 600px;
  background: radial-gradient(circle, rgba(60, 220, 255, 0.2) 0%, rgba(140, 60, 255, 0.08) 60%, transparent 80%);
  animation-delay: -7s;
}

@keyframes ambientGlowDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 10%) scale(1.1); }
}

/* ── Title group — below top-nav-hub ─────────────────────────────────────── */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  flex: 1;
  justify-content: center;
}

/* .hero-brand removed — ARCESYS title lives in shared header (app_header.css) */

/* ── Scroll indicator ──────────────────────────────────────────────────── */
.scroll-indicator {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  z-index: 2;
  opacity: 0.42;
  animation: scrollBounce 2s ease-in-out infinite;
  pointer-events: none;
}

.scroll-indicator span {
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.scroll-indicator svg {
  width: 13px;
  height: 13px;
  stroke: rgba(255, 255, 255, 0.4);
  fill: none;
  stroke-width: 2;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(5px); }
}

/* ==========================================================================
   POKÉ BALL ENERGY MATRIX — Hover System Keyframes & Custom Properties
   ========================================================================== */

/* CSS Houdini: enables smooth animated conic-gradient rotation */
@property --nav-border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* Rotating fiber-optic border */
@keyframes navBorderSpin {
  to { --nav-border-angle: 360deg; }
}

/* Rectangular burst — vàng / trắng ấm (vibe Arceus), một lần khi hover */
@keyframes navPulseRect {
  0% {
    transform: scale(0.86);
    box-shadow:
      0 0  0  0px rgba(255, 214, 120, 0.88),
      0 0  0  0px rgba(255, 252, 235, 0.58),
      0 0  0  0px rgba(200, 155, 60, 0.36);
    opacity: 1;
  }
  42% {
    transform: scale(1.02);
    box-shadow:
      0 0  0  9px rgba(255, 208, 100, 0.2),
      0 0  0 19px rgba(255, 245, 220, 0.13),
      0 0  0 31px rgba(215, 170, 75, 0.07);
    opacity: 0.86;
  }
  100% {
    transform: scale(1.12);
    box-shadow:
      0 0  0 17px rgba(255, 200, 90, 0),
      0 0  0 32px rgba(255, 248, 230, 0),
      0 0  0 48px rgba(190, 145, 55, 0);
    opacity: 0;
  }
}

/* Chữ label: kim loại vàng + aberration trắng/vàng (không còn xanh/tím) */
@keyframes navGoldGlitch {
  0%, 82%, 100% {
    text-shadow: 0 0 10px rgba(255, 228, 180, 0.38);
    filter: brightness(1);
  }
  84% {
    text-shadow:
      -2.5px 0 rgba(255, 252, 245, 0.95),
       2.5px 0 rgba(255, 195, 85, 0.92),
       0     0 16px rgba(255, 220, 150, 0.58);
    filter: brightness(1.38) contrast(1.08);
  }
  87% {
    text-shadow:
       2px 0 rgba(255, 248, 230, 0.68),
      -2px 0 rgba(230, 175, 70, 0.68),
       0   0 11px rgba(255, 215, 140, 0.46);
    filter: brightness(1.18);
  }
  91% {
    text-shadow:
      -1px 0 rgba(255, 255, 252, 0.5),
       1px 0 rgba(218, 170, 65, 0.5),
       0   0  7px rgba(255, 235, 200, 0.32);
    filter: brightness(1.08);
  }
}

/* ==========================================================================
   TOP NAVIGATION HUB — High-Tech Horizontal Nav Bar
   ========================================================================== */

/*
 * .top-nav-hub is overflow: visible so pulse rings on .nav-pillar::after
 * can freely expand downward into the hero section below.
 * Horizontal scrolling is delegated to the inner .top-nav-scroll wrapper.
 */
.top-nav-hub {
  position: relative;
  z-index: 3;
  padding-top: 40px;
  padding-bottom: 0;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

/* Inner wrapper — single row for four landing pills; horizontal scroll if
 * viewport is too narrow. padding/negative-margin keep hover glow uncropped. */
.top-nav-scroll {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding-top:    22px;
  /* Extra bottom room so [data-tooltip]::after below pills is not clipped by overflow-x */
  padding-bottom: 34px;
  padding-left:   max(12px, env(safe-area-inset-left, 0px));
  padding-right:  max(12px, env(safe-area-inset-right, 0px));
  margin-top:    -22px;
  margin-bottom: -34px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.top-nav-scroll::-webkit-scrollbar {
  display: none;
}

/* Ô search toàn cục — ngay dưới 4 nút National Pokédex / Poké Ball / … (chỉ trang landing) */
.hero-landing-search {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 36px 0 0;
  padding: 0 max(14px, env(safe-area-inset-left, 0px)) 0 max(14px, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

.hero-landing-search-btn.global-search-trigger {
  max-width: min(100%, 460px);
  padding: 10px 20px;
  border-radius: 22px;
}

.hero-landing-search .lph-search-text {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
}

/* Unified pill-style buttons — Poké Ball Energy Matrix */
.nav-pillar {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  min-height: 46px;
  flex-shrink: 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  cursor: pointer;
  transition:
    transform    0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.35s ease,
    box-shadow   0.42s ease;
  text-decoration: none;
  color: var(--text);
  overflow: visible;
  isolation: isolate;
}

/* ── Neon fiber-optic contour border — hidden at rest ──────────────────── */
.nav-pillar::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 22px;
  /* Viền quay: vàng đậm → vàng sáng → trắng ấm → champagne (Arceus) */
  background: conic-gradient(
    from var(--nav-border-angle),
    transparent                0deg,
    transparent               36deg,
    rgba(95, 70, 22, 0.55)    50deg,
    #a67c1a                   66deg,
    #d4a84a                   82deg,
    #ffe9a8                   98deg,
    #fffdf6                  114deg,
    #ffefc4                  130deg,
    #c9a44a                  146deg,
    rgba(75, 55, 16, 0.52)   162deg,
    transparent              178deg,
    transparent              198deg,
    rgba(88, 62, 18, 0.48)   214deg,
    #b8860b                  230deg,
    #fff8e8                  248deg,
    #ffd97a                  266deg,
    #e8c066                  282deg,
    rgba(55, 40, 12, 0.5)    300deg,
    transparent              318deg,
    transparent              360deg
  );
  /* Donut mask: reveal only the 2-3px border ring, hide center */
  mask:
    linear-gradient(#000 0 0) center / calc(100% - 4px) calc(100% - 4px) no-repeat,
    linear-gradient(#000 0 0);
  -webkit-mask:
    linear-gradient(#000 0 0) center / calc(100% - 4px) calc(100% - 4px) no-repeat,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  filter: blur(0.5px) brightness(1.35);
  opacity: 0;
  transition: opacity 0.38s ease;
  pointer-events: none;
  z-index: -1;
}

.nav-pillar:hover::before {
  opacity: 1;
  animation: navBorderSpin 2.8s linear infinite;
}

/* ── Pulse burst is handled via JS ghost overlay (see index.html) ────────
 * Using position: fixed ghosts injected into <body> fully bypasses all
 * ancestor overflow / clip contexts. CSS ::after is no longer used for
 * the pulse so the tooltip ::after on [data-tooltip] buttons is unaffected. */

/* ── Hover — nền tối ấm + highlight vàng/trắng ── */
.nav-pillar:hover {
  transform: scale(1.05);
  background: linear-gradient(
    140deg,
    rgba(22, 18, 8, 0.95)     0%,
    rgba(72, 52, 14, 0.91)    22%,
    rgba(255, 248, 230, 0.26) 50%,
    rgba(110, 78, 22, 0.90)   78%,
    rgba(14, 11, 4, 0.96)     100%
  );
  border-color: rgba(255, 210, 130, 0.58);
  box-shadow:
    0  22px 55px rgba(0, 0, 0, 0.58),
    0   0  12px rgba(255, 205, 110, 0.34),
    0   0  30px rgba(255, 245, 215, 0.14),
    0   0  52px rgba(200, 150, 55, 0.09),
    inset 0  1px 0 rgba(255, 252, 245, 0.24),
    inset 0 -1px 0 rgba(65, 48, 14, 0.38);
}

/* Icons — vertically centered, unified size */
.nav-pillar-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  opacity: 0.7;
  transition: opacity 0.35s ease, stroke 0.35s ease, filter 0.35s ease;
}
.nav-pillar:hover .nav-pillar-icon {
  opacity: 0.98;
  stroke: rgba(255, 248, 230, 0.95);
  filter:
    drop-shadow(0 0 4px rgba(255, 235, 190, 0.75))
    drop-shadow(0 0 12px rgba(255, 200, 90, 0.45))
    drop-shadow(0 0 20px rgba(255, 250, 235, 0.2));
}

.nav-pillar-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.35s ease, filter 0.35s ease;
  flex-shrink: 0;
}
.nav-pillar:hover .nav-pillar-icon-img {
  filter: brightness(0) invert(1) sepia(1) saturate(1.65) hue-rotate(3deg) brightness(1.32);
  opacity: 0.98;
}

.nav-pillar-label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.85;
  white-space: nowrap;
  transition: color 0.35s ease, opacity 0.35s ease;
}

/* Chữ trắng kem + glitch vàng/trắng */
.nav-pillar:hover .nav-pillar-label {
  opacity: 1;
  color: rgba(255, 250, 235, 0.98);
  animation: navGoldGlitch 5.5s ease-in-out 0.6s infinite;
}

/* ── "Coming Soon" tooltip — compact so it stays inside nav scroll / hero clip */
.nav-pillar[data-tooltip] { position: relative; z-index: 2; }
.nav-pillar[data-tooltip]::after {
  /* Reset sizing from .nav-pillar::after so tooltip positions correctly */
  top: auto;
  right: auto;
  width: auto;
  height: auto;
  box-sizing: border-box;
  /* Tooltip */
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 6px);
  bottom: auto;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding: 2px 7px;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(20, 25, 50, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 30;
  backdrop-filter: blur(10px);
}
.nav-pillar[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Professor Contact — locked for publish; tooltip on hover only */
.nav-pillar.nav-pillar--locked {
  cursor: not-allowed;
  opacity: 0.68;
}
button.nav-pillar.nav-pillar--locked {
  cursor: not-allowed;
}
.nav-pillar.nav-pillar--locked:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}
.nav-pillar.nav-pillar--locked:hover::before {
  opacity: 0;
  animation: none;
}
.nav-pillar.nav-pillar--locked:hover .nav-pillar-icon,
.nav-pillar.nav-pillar--locked:hover .nav-pillar-icon-img {
  opacity: 0.65;
  filter: brightness(0) invert(1);
}
.nav-pillar.nav-pillar--locked:hover .nav-pillar-label {
  animation: none;
  color: rgba(255, 255, 255, 0.72);
  opacity: 0.88;
}

/* Button as nav-pillar (Main Series) — match glass styles exactly */
button.nav-pillar {
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  /* Same as .nav-pillar — override browser button defaults */
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

button.nav-pillar:hover {
  background: linear-gradient(
    140deg,
    rgba(22, 18, 8, 0.95)     0%,
    rgba(72, 52, 14, 0.91)    22%,
    rgba(255, 248, 230, 0.26) 50%,
    rgba(110, 78, 22, 0.90)   78%,
    rgba(14, 11, 4, 0.96)     100%
  );
  border-color: rgba(255, 210, 130, 0.58);
  box-shadow:
    0  22px 55px rgba(0, 0, 0, 0.58),
    0   0  12px rgba(255, 205, 110, 0.34),
    0   0  30px rgba(255, 245, 215, 0.14),
    0   0  52px rgba(200, 150, 55, 0.09),
    inset 0  1px 0 rgba(255, 252, 245, 0.24),
    inset 0 -1px 0 rgba(65, 48, 14, 0.38);
}

.news-section {
  position: relative;
  width: 100%;
  padding: 80px 0 120px;
  z-index: 2;
  background: rgba(5, 10, 25, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ── Neon Top Edge (Legends Z-A green-cyan → soft sky blue) ───────────── */
.news-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(0, 230, 190, 0.92) 28%,
    rgba(100, 180, 255, 0.88) 72%,
    transparent 100%
  );
  z-index: 3;
}

/* Soft neon glow — extends deep toward “Keep up with news”, fades vertically */
.news-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: min(220px, 32vh);
  background:
    linear-gradient(
      180deg,
      rgba(5, 12, 28, 0) 0%,
      rgba(5, 12, 28, 0.15) 45%,
      rgba(5, 12, 28, 0.55) 82%,
      rgba(5, 12, 28, 0.85) 100%
    ),
    linear-gradient(90deg,
      transparent 0%,
      rgba(0, 230, 190, 0.42) 28%,
      rgba(110, 185, 255, 0.38) 72%,
      transparent 100%
    );
  filter: blur(32px);
  pointer-events: none;
  z-index: 1;
}

.news-inner {
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

.news-header {
  text-align: center;
  margin-bottom: 48px;
}

.news-title {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  color: var(--text);
}

.news-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ── News grid ─────────────────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── News card ─────────────────────────────────────────────────────────── */
.news-card {
  position: relative;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.35s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(255,255,255,0.12) 50%, transparent 90%);
  z-index: 1;
}

.news-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(100, 160, 255, 0.06);
}

.news-card.has-video:hover {
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 25px rgba(230, 0, 18, 0.08);
  border-color: rgba(230, 50, 50, 0.18);
}

/* ── Video thumbnail ───────────────────────────────────────────────────── */
.news-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.news-card-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
}

.thumb-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.85;
}

.thumb-play svg {
  width: 68px;
  height: 48px;
}

.news-card:hover .thumb-play {
  transform: translate(-50%, -50%) scale(1.08);
  opacity: 1;
}

/* ── Card body ─────────────────────────────────────────────────────────── */
.news-card-body {
  padding: 24px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ── Category tags — driven by data-category attribute ─────────────────── */
.news-card-tag {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  align-self: flex-start;
  margin-bottom: 14px;
  /* Fallback: sleek silver/glass for any unknown category */
  background: rgba(180, 190, 210, 0.12);
  color: rgba(200, 210, 225, 0.9);
}

.news-card-tag[data-category="switch-game"] {
  background: rgba(230, 0, 18, 0.15);
  color: rgba(255, 90, 90, 0.95);
}

.news-card-tag[data-category="mega-discovery"] {
  background: rgba(255, 120, 0, 0.18);
  color: #ff8c1a;
  text-shadow: 0 0 8px rgba(255, 120, 0, 0.3);
}

.news-card-tag[data-category="field-report"] {
  background: rgba(100, 160, 255, 0.12);
  color: rgba(140, 190, 255, 0.9);
}

.news-card-tag[data-category="ecology"] {
  background: rgba(100, 255, 160, 0.12);
  color: rgba(140, 255, 190, 0.9);
}

.news-card-tag[data-category="legendary"] {
  background: rgba(180, 140, 255, 0.14);
  color: rgba(200, 170, 255, 0.95);
}

.news-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 10px;
  color: var(--text);
}

.news-card-excerpt {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  flex: 1;
}

.news-card-date {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.04em;
  margin-top: 16px;
}

/* ==========================================================================
   NEWS DETAIL MODAL
   ========================================================================== */
.news-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.news-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.news-modal {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 24px;
  background: rgba(12, 16, 32, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.news-modal-overlay.is-open .news-modal {
  transform: translateY(0) scale(1);
}

/* specular edge */
.news-modal::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 10%, rgba(255,255,255,0.15) 50%, transparent 90%);
  z-index: 1;
  border-radius: 24px 24px 0 0;
}

.news-modal-close {
  position: sticky;
  top: 12px;
  float: right;
  margin: 12px 16px 0 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}

.news-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ── Video embed ───────────────────────────────────────────────────────── */
.news-modal-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}

.news-modal-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── Fallback when embed is blocked ────────────────────────────────────── */
.modal-video-fallback {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-video-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.fallback-play-btn {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: transform 0.25s ease;
}

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

.fallback-play-btn svg {
  width: 72px;
  height: 50px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.fallback-play-btn span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ── Modal content ─────────────────────────────────────────────────────── */
.news-modal-content {
  padding: 32px 36px 40px;
}

.news-modal-content .news-card-tag {
  margin-bottom: 12px;
}

.news-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 8px;
  color: var(--text);
}

.news-modal-date {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.news-modal-text {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--muted);
}

.news-modal-text p {
  margin: 0 0 16px;
}

.news-modal-text p:last-child {
  margin-bottom: 0;
}

/* ── Pokémon detail link button ─────────────────────────────────────────── */
.news-modal-pokemon-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 14px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.news-modal-pokemon-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 120, 0, 0.3);
  box-shadow: 0 0 20px rgba(255, 120, 0, 0.08);
  transform: translateX(4px);
}

.news-modal-pokemon-link svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.6;
}

.news-modal-pokemon-link svg.arrow {
  width: 18px;
  height: 18px;
  margin-left: auto;
  opacity: 0.35;
  transition: opacity 0.2s, transform 0.2s;
}

.news-modal-pokemon-link:hover svg.arrow {
  opacity: 0.7;
  transform: translateX(3px);
}

.news-modal-image {
  width: 100%;
  border-radius: 16px;
  margin-top: 28px;
  object-fit: cover;
}

.news-modal-image[src=""] {
  display: none;
}

/* ==========================================================================
   PARALLAX GRADIENT SEPARATOR
   ========================================================================== */
.parallax-divider {
  position: relative;
  height: 140px;
  margin-top: -140px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(5, 11, 24, 0.1) 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* ==========================================================================
   HERO FEATURED TOOLS ROW — Type Balance & Nature CTAs
   ========================================================================== */
.hero-tools-row {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  width: min(680px, 95vw);
  position: relative;
  z-index: 3;
}

.hero-tool-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  text-decoration: none;
  color: var(--text);
  flex: 1;
  min-width: 240px;
  max-width: 330px;
  overflow: hidden;
  transition:
    transform    0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.35s ease,
    box-shadow   0.42s ease;
}

/* Shimmer overlay on hover */
.hero-tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.hero-tool-card.tool-type-balance::before {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.07) 0%, transparent 60%);
}

.hero-tool-card.tool-nature::before {
  background: linear-gradient(135deg, rgba(52, 211, 153, 0.07) 0%, transparent 60%);
}

.hero-tool-card:hover::before { opacity: 1; }

/* Type Balance — cyan accent */
.hero-tool-card.tool-type-balance:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(56, 189, 248, 0.18),
    0 0 50px rgba(56, 189, 248, 0.07),
    inset 0 1px 0 rgba(56, 189, 248, 0.12);
}

/* Nature — emerald accent */
.hero-tool-card.tool-nature:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.45),
    0 0 22px rgba(52, 211, 153, 0.18),
    0 0 50px rgba(52, 211, 153, 0.07),
    inset 0 1px 0 rgba(52, 211, 153, 0.12);
}

/* Icon wrapper */
.hero-tool-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.hero-tool-card.tool-type-balance:hover .hero-tool-icon-wrap {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.35);
}

.hero-tool-card.tool-nature:hover .hero-tool-icon-wrap {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.35);
}

.hero-tool-icon {
  width: 20px;
  height: 20px;
  stroke: rgba(160, 200, 255, 0.75);
  fill: none;
  stroke-width: 1.8;
  transition: stroke 0.3s ease, filter 0.3s ease;
}

.hero-tool-card.tool-type-balance:hover .hero-tool-icon {
  stroke: rgba(56, 189, 248, 0.95);
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
}

.hero-tool-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.hero-tool-card.tool-nature:hover .hero-tool-icon-img {
  opacity: 1;
  filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(100deg) brightness(1.1);
}

/* Text body */
.hero-tool-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-tool-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(220, 235, 255, 0.9);
  transition: color 0.3s ease;
}

.hero-tool-card.tool-type-balance:hover .hero-tool-name {
  color: rgba(180, 230, 255, 1);
}

.hero-tool-card.tool-nature:hover .hero-tool-name {
  color: rgba(160, 240, 200, 1);
}

.hero-tool-desc {
  font-size: 0.66rem;
  color: rgba(150, 175, 210, 0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Arrow */
.hero-tool-arrow {
  width: 16px;
  height: 16px;
  stroke: rgba(160, 200, 255, 0.3);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform 0.3s ease, stroke 0.3s ease;
}

.hero-tool-card:hover .hero-tool-arrow {
  transform: translateX(5px);
  stroke: rgba(180, 225, 255, 0.65);
}

/* Top edge specular highlight */
.hero-tool-card::after {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12) 50%, transparent);
  pointer-events: none;
}

/* ==========================================================================
   PROFESSOR CONTACT MODAL — AI Chat Interface
   ========================================================================== */
.prof-contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2, 6, 18, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.prof-contact-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.prof-contact-modal {
  position: relative;
  width: min(980px, 100%);
  max-height: 88vh;
  background: rgba(6, 12, 28, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(80, 140, 255, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.prof-contact-overlay.is-open .prof-contact-modal {
  transform: translateY(0) scale(1);
}

/* Specular top edge */
.prof-contact-modal::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(100, 170, 255, 0.2) 40%, rgba(180, 80, 255, 0.15) 60%, transparent 95%);
  z-index: 1;
}

.prof-contact-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(50, 100, 255, 0.04);
  flex-shrink: 0;
}

.prof-contact-modal-title {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(110, 175, 255, 0.8);
  margin: 0;
}

.prof-contact-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  line-height: 1;
}

.prof-contact-modal-close:hover {
  border-color: rgba(100, 200, 255, 0.45);
  color: #fff;
  box-shadow: 0 0 14px rgba(100, 200, 255, 0.2);
}

.prof-contact-modal-body {
  padding: 24px 28px 28px;
  overflow-y: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(80, 130, 255, 0.2) transparent;
}

.prof-contact-modal-body::-webkit-scrollbar { width: 4px; }
.prof-contact-modal-body::-webkit-scrollbar-thumb {
  background: rgba(80, 130, 255, 0.2);
  border-radius: 2px;
}

/* Override research-split inside modal so it fills the available space */
.prof-contact-modal-body .research-split {
  width: 100%;
  max-width: 900px;
}

@media (max-width: 700px) {
  .prof-contact-modal-body { padding: 16px; }
  .prof-contact-modal { border-radius: 16px; }
  .prof-contact-overlay { padding: 12px; }
}

/* ==========================================================================
   GSAP REVEAL STATES
   ========================================================================== */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 860px) {
  .top-nav-hub { padding-top: 28px; }
  .top-nav-scroll {
    gap: 8px;
    max-width: 100%;
    scroll-padding-inline: 12px;
  }
  .nav-pillar { padding: 11px 12px; min-height: 44px; }
  .nav-pillar-label { font-size: 0.68rem; letter-spacing: 0.12em; }
  .news-grid { grid-template-columns: 1fr; gap: 18px; }
  .arceus-presence { left: -20%; }
  .arceus-image { height: 70vh; }
  .news-modal { max-width: 95vw; }
  .news-modal-content { padding: 24px 20px 32px; }
  .news-modal-overlay { padding: 12px; }
  .hero-tools-row { gap: 10px; }
  .hero-tool-card { min-width: 200px; padding: 14px 16px; }
  .carousel-card { width: 104px; padding: 11px 12px; }
  .carousel-card img { width: 68px; height: 68px; }
  .carousel-card-name { max-width: 90px; font-size: 0.55rem; }
}

@media (max-width: 560px) {
  .top-nav-hub { padding: 20px 0 0; }
  .top-nav-scroll {
    gap: 6px;
    padding-top: 22px;
    padding-bottom: 34px;
    margin-bottom: -34px;
    padding-left: max(10px, env(safe-area-inset-left, 0px));
    padding-right: max(10px, env(safe-area-inset-right, 0px));
    max-width: 100%;
    scroll-padding-inline: 10px;
  }
  .nav-pillar { padding: 10px 11px; min-height: 40px; }
  .nav-pillar-label { font-size: 0.64rem; letter-spacing: 0.1em; }
  .arceus-presence { display: none; }
  .news-modal-title { font-size: 1.2rem; }
  .news-modal-content { padding: 20px 16px 28px; }
  .thumb-play { width: 42px; height: 42px; }
  .hero-tools-row { flex-direction: column; align-items: stretch; gap: 10px; width: min(340px, 90vw); }
  .hero-tool-card { min-width: unset; max-width: unset; }
  .carousel-viewport-align { width: min(340px, 90vw); }
  .carousel-card { width: 96px; padding: 10px 10px; }
  .carousel-card img { width: 62px; height: 62px; }
  .carousel-card-name { font-size: 0.52rem; max-width: 82px; }
}

/* ==========================================================================
   PERFORMANCE — giảm lag (animation / composite tốn GPU)
   ========================================================================== */

.news-section {
  contain: layout style;
  content-visibility: auto;
  contain-intrinsic-size: 860px;
}

/* Coarse pointer devices are usually GPU-constrained.
 * Lower blur/filter intensity and trim hover composites. */
@media (hover: none), (pointer: coarse) {
  .hero-particles {
    display: none;
  }

  .hero::before,
  .hero::after {
    animation: none;
    filter: blur(36px);
  }

  .arceus-image,
  .scroll-indicator {
    animation: none;
  }

  .news-section {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .news-section::after {
    filter: blur(8px);
  }

  .carousel-strip--mega {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .carousel-strip--mega::-webkit-scrollbar {
    display: none;
  }

  .carousel-track--mega {
    animation: none !important;
    padding-inline: 8px;
  }

  .carousel-card {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0.04) 40%,
      rgba(12, 20, 42, 0.82) 100%
    );
  }

  .carousel-card:hover {
    background: linear-gradient(
      155deg,
      rgba(255, 255, 255, 0.12) 0%,
      rgba(255, 255, 255, 0.05) 38%,
      rgba(16, 26, 50, 0.88) 100%
    );
  }

  .nav-pillar,
  button.nav-pillar,
  .hero-tool-card,
  .news-card,
  .news-modal,
  .prof-contact-overlay,
  .prof-contact-modal,
  .oak-report,
  .neural-bar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-pillar:hover,
  .hero-tool-card.tool-type-balance:hover,
  .hero-tool-card.tool-nature:hover,
  .news-card:hover {
    transform: none;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track--mega {
    animation: none !important;
  }

  .hero::before,
  .hero::after {
    animation: none;
  }

  .arceus-image {
    animation: none !important;
  }

  .scroll-indicator {
    animation: none;
  }

  .reveal-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .thumb-play,
  .news-card:hover .thumb-play {
    transform: translate(-50%, -50%);
  }

  .nav-pillar:hover::before {
    animation: none;
  }

  .nav-pillar-label {
    animation: none;
  }
}
