/* =================================================================
   POKI.LOVE — Site A: Dark Neon Gaming (Cyberpunk esports)
   All design tokens from _scratch/design-spec-site-a-neon.md
   ================================================================= */

/* ----- Tokens ----- */
:root {
  --bg-deep: #0a0e27;
  --bg-card: #131836;
  --bg-card-2: #1a2046;
  --neon-pink: #ff006e;
  --neon-cyan: #00f5ff;
  --neon-yellow: #fcee0a;
  --text-main: #e8eaf6;
  --text-dim: #8a91b4;
  --border-cyan: rgba(0, 245, 255, 0.2);
  --border-pink: rgba(255, 0, 110, 0.3);
  --grad-neon: linear-gradient(135deg, var(--neon-pink) 0%, var(--neon-cyan) 100%);
  --grad-cyber: linear-gradient(135deg, #ff006e 0%, #8338ec 50%, #00f5ff 100%);
  --grad-yellow: linear-gradient(135deg, #fcee0a 0%, #ff006e 100%);
  --shadow-pink: 0 0 20px rgba(255, 0, 110, 0.6);
  --shadow-cyan: 0 0 20px rgba(0, 245, 255, 0.6);
  --shadow-yellow: 0 0 20px rgba(252, 238, 10, 0.5);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.5;
  font-size: 15px;
  position: relative;
  /* Force mobile width */
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  box-shadow: 0 0 80px rgba(0, 245, 255, 0.05);
  /* Subtle vignette */
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at top, rgba(255, 0, 110, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at bottom, rgba(0, 245, 255, 0.10) 0%, transparent 50%);
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  /* CRT scanlines */
  background: repeating-linear-gradient(to bottom,
      rgba(255, 255, 255, 0.02) 0px,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 3px);
  opacity: 0.5;
}

.scanlines {
  display: none;
}

/* CSS scanlines handled via body::after */

/* Make sure content stacks above overlay */
.topbar,
.status-row,
.hero,
.section,
.article-topbar,
.article-hero,
.article-main,
.site-footer,
.page-head,
.filter-bar,
.drawer-backdrop {
  position: relative;
  z-index: 2;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* ----- Typography helpers ----- */
.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.title-accent {
  color: var(--neon-pink);
  text-shadow: 0 0 12px rgba(255, 0, 110, 0.7);
}

/* ----- Brand ----- */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.08em;
  background: var(--grad-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 6px rgba(255, 0, 110, 0.4));
}

.brand-text.big {
  font-size: 22px;
}

.brand-dot {
  color: var(--neon-pink);
  -webkit-text-fill-color: var(--neon-pink);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  display: block;
  margin-top: 2px;
}

/* ----- Neon glow text utility (matches design token: text-shadow 0 0 10px) ----- */
.neon-glow-pink {
  text-shadow:
    0 0 10px rgba(255, 0, 110, 0.8),
    0 0 20px rgba(255, 0, 110, 0.4);
}

.neon-glow-cyan {
  text-shadow:
    0 0 10px rgba(0, 245, 255, 0.8),
    0 0 20px rgba(0, 245, 255, 0.4);
}

.neon-glow-yellow {
  text-shadow:
    0 0 10px rgba(252, 238, 10, 0.8),
    0 0 20px rgba(252, 238, 10, 0.4);
}

/* Explicit hover glow (matches design token: box-shadow 0 0 20px) */
.hover-pink:hover {
  box-shadow: 0 0 20px rgba(255, 0, 110, 0.7);
}

.hover-cyan:hover {
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.7);
}

/* ----- Top bar ----- */
.topbar {
  height: 56px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-cyan);
  position: sticky;
  top: 0;
  z-index: 50;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all 0.2s ease;
  position: relative;
}

.icon-btn:hover {
  background: rgba(0, 245, 255, 0.1);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.4);
}

.top-actions {
  display: flex;
  gap: 4px;
}

/* ----- Status row ----- */
.status-row {
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, rgba(255, 0, 110, 0.15) 0%, rgba(0, 245, 255, 0.1) 100%);
  border-bottom: 1px solid var(--border-cyan);
  font-size: 10px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon-pink);
  box-shadow: 0 0 8px var(--neon-pink);
  animation: pulse 1.5s ease-in-out infinite;
}

.status-spacer {
  flex: 1;
}

.status-temp {
  color: var(--neon-cyan);
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

/* ----- Drawer ----- */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 80%;
  max-width: 380px;
  background: rgba(10, 14, 39, 0.92);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-right: 2px solid var(--neon-pink);
  box-shadow: 0 0 60px rgba(255, 0, 110, 0.4);
  transform: translateX(-105%);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-bottom: 24px;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-head {
  padding: 18px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-cyan);
  background: linear-gradient(180deg, rgba(255, 0, 110, 0.1), transparent);
}

.drawer-nav {
  padding: 12px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--text-main);
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.drawer-link:hover,
.drawer-link.active {
  background: linear-gradient(90deg, rgba(255, 0, 110, 0.18), transparent);
  border-left-color: var(--neon-pink);
  color: var(--neon-pink);
  text-shadow: 0 0 8px rgba(255, 0, 110, 0.6);
}

.dl-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--neon-cyan);
  letter-spacing: 0.1em;
}

.drawer-sub {
  padding: 18px;
  border-top: 1px solid var(--border-cyan);
  border-bottom: 1px solid var(--border-cyan);
}

.drawer-sub h4 {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--neon-yellow);
  margin-bottom: 4px;
}

.drawer-sub p {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.sub-form {
  display: flex;
  gap: 6px;
}

.sub-form input {
  flex: 1;
  background: rgba(0, 245, 255, 0.06);
  border: 1px solid var(--border-cyan);
  color: var(--text-main);
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 13px;
  border-radius: 6px;
  outline: none;
}

.sub-form input:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.4);
}

.sub-form button {
  background: var(--neon-pink);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 0 14px;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(255, 0, 110, 0.5);
  transition: all 0.2s;
}

.sub-form button:hover {
  box-shadow: 0 0 22px rgba(255, 0, 110, 0.8);
  transform: translateY(-1px);
}

.drawer-foot {
  padding: 16px 18px;
}

.socials {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.socials a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-cyan);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--neon-cyan);
  transition: all 0.2s;
}

.socials a:hover {
  background: var(--neon-cyan);
  color: var(--bg-deep);
  box-shadow: var(--shadow-cyan);
}

.drawer-foot small {
  font-size: 10px;
  color: var(--text-dim);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.drawer-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* ----- Hero ----- */
.hero {
  height: 70vh;
  min-height: 480px;
  max-height: 640px;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero-card {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.1) contrast(1.05);
  animation: heroPan 18s ease-in-out infinite alternate;
}

@keyframes heroPan {
  0% {
    transform: scale(1.05) translate(0, 0);
  }

  100% {
    transform: scale(1.12) translate(-10px, -10px);
  }
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 39, 0.2) 0%, rgba(10, 14, 39, 0.55) 50%, var(--bg-deep) 100%),
    linear-gradient(135deg, rgba(255, 0, 110, 0.2) 0%, transparent 50%);
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: white;
  text-shadow:
    0 0 12px rgba(255, 0, 110, 0.7),
    0 0 30px rgba(0, 245, 255, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.6);
  margin: 10px 0 8px;
}

.hero-summary {
  font-size: 13px;
  color: rgba(232, 234, 246, 0.85);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
}

.hero-author {
  color: var(--neon-cyan);
  font-weight: 600;
}

.hero-date {
  color: var(--text-dim);
}

.hero-cta {
  margin-left: auto;
  color: var(--neon-pink);
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-shadow: 0 0 8px rgba(255, 0, 110, 0.5);
}

/* ----- Badges ----- */
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 4px;
  font-weight: 600;
}

.badge-gamespot {
  background: var(--neon-pink);
  color: white;
  box-shadow: 0 0 10px rgba(255, 0, 110, 0.6);
}

.badge-ign {
  background: var(--neon-cyan);
  color: var(--bg-deep);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.6);
}

.badge-lg {
  font-size: 11px;
  padding: 6px 12px;
}

/* ----- Chip row ----- */
.chips-row {
  display: flex;
  gap: 8px;
  padding: 14px 14px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chips-row::-webkit-scrollbar {
  display: none;
}

.chips-row--compact {
  padding: 10px 14px;
}

.chip {
  flex-shrink: 0;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  background: rgba(19, 24, 54, 0.6);
  border: 1px solid var(--border-cyan);
  border-radius: 100px;
  transition: all 0.2s;
}

.chip:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.4);
}

.chip.is-active {
  background: var(--neon-pink);
  color: white;
  border-color: var(--neon-pink);
  box-shadow: 0 0 14px rgba(255, 0, 110, 0.6);
}

/* ----- Sections ----- */
.section {
  padding: 8px 14px 22px;
}

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

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.08em;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-bar {
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--neon-cyan);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--neon-cyan);
}

.title-bar.pink {
  background: var(--neon-pink);
  box-shadow: 0 0 8px var(--neon-pink);
}

.title-bar.yellow {
  background: var(--neon-yellow);
  box-shadow: 0 0 8px var(--neon-yellow);
}

.title-bar.cyan {
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}

.section-more {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--neon-cyan);
  font-weight: 700;
}

.section-more:hover {
  text-shadow: 0 0 8px rgba(0, 245, 255, 0.7);
}

.tag-live {
  color: var(--neon-yellow);
  text-shadow: 0 0 6px rgba(252, 238, 10, 0.7);
}

/* ----- Card base ----- */
.card {
  display: block;
  background: var(--bg-card);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-cyan);
  transition: all 0.25s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--neon-pink);
  box-shadow: 0 6px 24px rgba(255, 0, 110, 0.25), 0 0 18px rgba(0, 245, 255, 0.15);
}

.card-img {
  background-color: var(--bg-card-2);
  background-size: cover;
  background-position: center;
  position: relative;
}

.card-body {
  padding: 10px 12px 12px;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.25;
  color: var(--text-main);
  margin: 8px 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-summary {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}

.card-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Row card (latest) */
.card-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.card-row .card-img {
  width: 100px;
  height: 70px;
  border-radius: 6px;
}

.card-row .card-body {
  padding: 4px 10px 4px 0;
}

.card-row .card-title {
  font-size: 13px;
  margin-top: 6px;
  -webkit-line-clamp: 3;
}

.card-row .badge {
  font-size: 9px;
  padding: 3px 7px;
}

.latest-grid {
  display: block;
}

/* Col card (news grid) */
.card-col .card-img {
  width: 100%;
  aspect-ratio: 16/10;
}

.card-col .card-title {
  font-size: 12px;
  -webkit-line-clamp: 2;
}

/* Large card (trending, editor's pick) */
.card-large {
  display: block;
}

.card-large .card-img {
  width: 100%;
  aspect-ratio: 16/10;
}

.card-large .card-title {
  font-size: 14px;
  -webkit-line-clamp: 3;
}

/* Trending scroller */
.trend-scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 0 12px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.trend-scroller::-webkit-scrollbar {
  display: none;
}

.trend-scroller .card-large {
  flex: 0 0 78%;
  scroll-snap-align: start;
}

/* Editor's pick */
.editors-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 380px) {
  .editors-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .editors-grid .card-large .card-title {
    font-size: 12px;
  }
}

/* News grid */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.card-news {
  display: block;
}

.card-news .card-img {
  width: 100%;
  aspect-ratio: 4/3;
}

.card-news .card-title {
  font-size: 12px;
  -webkit-line-clamp: 3;
}

.card-news .card-summary {
  -webkit-line-clamp: 2;
}

.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 9px;
  padding: 3px 7px;
}

/* Video cards */
.videos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.card-video .card-img {
  width: 100%;
  aspect-ratio: 16/9;
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 0, 110, 0.85);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  padding-left: 4px;
  box-shadow: 0 0 22px rgba(255, 0, 110, 0.8);
  backdrop-filter: blur(4px);
  transition: all 0.25s;
}

.card-video:hover .play-icon {
  background: var(--neon-cyan);
  box-shadow: 0 0 22px rgba(0, 245, 255, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--neon-yellow);
  color: var(--bg-deep);
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(252, 238, 10, 0.6);
}

/* ----- Page header (news list) ----- */
.page-head {
  padding: 20px 14px 14px;
  background: linear-gradient(180deg, rgba(255, 0, 110, 0.18), transparent);
  border-bottom: 1px solid var(--border-cyan);
}

.page-head-inner {
  max-width: 100%;
}

.back-link {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--neon-cyan);
  display: inline-block;
  margin-bottom: 8px;
}

.back-link:hover {
  text-shadow: 0 0 8px rgba(0, 245, 255, 0.7);
}

.page-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  letter-spacing: 0.05em;
  text-shadow: 0 0 14px rgba(255, 0, 110, 0.5);
  background: var(--grad-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-sub {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 4px;
}

/* Filter bar */
.filter-bar {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-cyan);
  background: rgba(19, 24, 54, 0.4);
}

.filter-tools {
  display: flex;
  gap: 8px;
  padding: 0 14px;
  margin-top: 4px;
}

.search-box {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(10, 14, 39, 0.6);
  border: 1px solid var(--border-cyan);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--text-dim);
}

.search-box input {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 9px 0;
}

.search-box:focus-within {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.4);
}

.sort-select {
  background: rgba(10, 14, 39, 0.6);
  border: 1px solid var(--border-cyan);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  outline: none;
}

/* Load more button */
.load-more-wrap {
  text-align: center;
  padding: 18px 0 24px;
}

.btn-neon {
  background: transparent;
  border: 2px solid var(--neon-pink);
  color: var(--neon-pink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  padding: 14px 28px;
  border-radius: 8px;
  position: relative;
  transition: all 0.25s;
  overflow: hidden;
}

.btn-neon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-neon);
  opacity: 0;
  transition: opacity 0.25s;
  z-index: -1;
}

.btn-neon:hover {
  color: white;
  box-shadow: 0 0 24px rgba(255, 0, 110, 0.6);
  border-color: transparent;
}

.btn-neon:hover::before {
  opacity: 1;
}

/* ----- Article page ----- */
.article-topbar {
  height: 56px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 14, 39, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-cyan);
  position: sticky;
  top: 0;
  z-index: 50;
}

.article-topbar .icon-btn {
  display: inline-flex;
  flex-direction: row;
  width: auto;
  padding: 0 12px;
  height: 36px;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.article-topbar .icon-btn-text {
  display: inline-block;
}

.article-hero {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: var(--bg-card-2);
  background-size: cover;
  background-position: center;
  position: relative;
}

.article-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 39, 0.4) 0%, rgba(10, 14, 39, 0.7) 60%, var(--bg-deep) 100%);
}

.article-hero-content {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
}

.article-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: white;
  text-shadow:
    0 0 14px rgba(255, 0, 110, 0.7),
    0 0 30px rgba(0, 245, 255, 0.3),
    0 2px 8px rgba(0, 0, 0, 0.7);
  margin-top: 8px;
}

.article-main {
  padding: 18px 14px 28px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-cyan);
  margin-bottom: 16px;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad-cyber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  color: white;
  font-size: 16px;
  box-shadow: 0 0 12px rgba(255, 0, 110, 0.4);
}

.article-author strong {
  display: block;
  font-size: 13px;
  color: var(--text-main);
}

.article-author small {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.article-tags-inline {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tag {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 8px;
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid var(--border-cyan);
  border-radius: 100px;
  color: var(--neon-cyan);
  letter-spacing: 0.05em;
}

.article-body p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-main);
  margin-bottom: 16px;
}

.article-body p::first-letter {
  /* slight styling for first letter of first paragraph */
}

/* video-frame removed: external video embeds disabled per spec */

.gallery-scroller {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 0 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-scroller::-webkit-scrollbar {
  display: none;
}

.gallery-img {
  flex: 0 0 80%;
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  scroll-snap-align: start;
  border: 1px solid var(--border-cyan);
}

.share-cta {
  margin: 24px 0 16px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(255, 0, 110, 0.08), rgba(0, 245, 255, 0.05));
  border: 1px solid var(--border-cyan);
  border-radius: 10px;
  text-align: center;
}

.share-cta h3 {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--neon-yellow);
  margin-bottom: 12px;
}

.share-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn {
  padding: 8px 14px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  background: rgba(10, 14, 39, 0.6);
  border: 1px solid var(--border-cyan);
  border-radius: 6px;
  color: var(--text-main);
  transition: all 0.2s;
}

.share-btn:hover {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(0, 245, 255, 0.4);
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 380px) {
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .related-grid .card-col .card-title {
    font-size: 11px;
  }
}

/* ----- Footer ----- */
.site-footer {
  padding: 30px 14px 24px;
  border-top: 2px solid var(--border-cyan);
  background: linear-gradient(180deg, transparent, rgba(0, 245, 255, 0.04));
  text-align: center;
}

.footer-brand {
  margin-bottom: 16px;
}

.footer-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-top: 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-links a {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--text-main);
  text-transform: uppercase;
}

.footer-links a:hover {
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(0, 245, 255, 0.6);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ----- Responsive guards (mobile-first, max 480) ----- */
@media (min-width: 481px) {

  /* Show desktop-style framing outside mobile */
  body {
    box-shadow: 0 0 100px rgba(0, 245, 255, 0.1);
  }
}

/* Hide stuff on load until JS decides */
.hidden-article {
  display: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ===========================================================
   ADX / Ad-Exchange Banner Slots — visual placeholder
   ------------------------------------------------------------
   - Renders a clearly-labelled, dashed-border box so the slot
       cannot be mistaken for editorial content (policy-safe).
   - Width is fluid (100% up to 970px), height is auto-adaptive
       via `aspect-ratio` so it scales with viewport on desktop,
       tablet and mobile.
   - Inner markup is a placeholder only — drop your ADX tag (e.g.
       Google Publisher Tag `googletag.defineSlot(...).addService`
       or direct creative <iframe>) inside `.ad-slot-stage` when
       going live; the wrapper will retain its borders + label.
   =========================================================== */
.ad-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 970px;
  margin: 28px auto;
  padding: 18px 20px;
  box-sizing: border-box;
  background:
    linear-gradient(135deg, rgba(0, 245, 255, 0.05) 0%, rgba(255, 0, 110, 0.05) 100%),
    rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-cyan);
  border-radius: 12px;
  color: var(--text-dim);
  font-family: var(--font-body);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.ad-slot::after {
  /* corner watermark to reinforce "this is an ad" */
  content: "AD";
  position: absolute;
  right: -14px;
  bottom: -22px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 84px;
  letter-spacing: -0.04em;
  color: rgba(0, 245, 255, 0.05);
  pointer-events: none;
  z-index: 0;
}

/* ---- Responsive banner geometry (height auto-adapts) ---- */
.ad-banner {
  min-height: 90px;
  /* aspect-ratio: 970 / 90; desktop fallback */
}

@media (max-width: 760px) {
  /* .ad-banner { aspect-ratio: 728 / 90; } */
}

@media (max-width: 480px) {
  .ad-banner {
    /* aspect-ratio: 320 / 50; */
    min-height: 50px;
  }
}

/* ---- Visible compliance labels ---- */
.ad-slot-badge {
  position: absolute;
  top: 8px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--neon-cyan);
  background: rgba(0, 245, 255, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 1;
}

.ad-slot-choices {
  position: absolute;
  top: 8px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 1;
}

.ad-slot-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 88%;
  line-height: 1.4;
}

.ad-slot-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--text-main);
  text-transform: uppercase;
}

.ad-slot-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.ad-slot-id {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
}

.ad-slot-id b {
  color: var(--neon-pink);
  font-weight: 600;
}

/* When the slot is filled by a real creative, hide the placeholder copy */
.ad-slot.is-live .ad-slot-stage,
.ad-slot.is-live .ad-slot-choices {
  display: none;
}

.ad-slot.is-live::after {
  display: none;
}

.ad-slot.is-live {
  padding: 0;
  border-style: solid;
}

/* Insulate ads from flex parents that would distort width */
.section>.ad-slot,
.hero+.ad-slot,
.filter-bar+.ad-slot,
.article-main>.ad-slot,
.gallery-scroller+.ad-slot,
.share-cta+.ad-slot {
  align-self: stretch;
}

/* ===========================================================
   Card image fallback — for articles with no thumbnail
   When data.js lacks image_local AND image, the JS still
   renders a card-img div, but with no background. We layer
   a striped cyber pattern + a centered icon so it reads as
   "intentional placeholder" rather than broken layout.
   =========================================================== */
.card.card--no-image .card-img {
  background:
    radial-gradient(circle at 30% 30%, rgba(0, 245, 255, 0.10) 0%, transparent 55%),
    radial-gradient(circle at 70% 70%, rgba(255, 0, 110, 0.10) 0%, transparent 55%),
    repeating-linear-gradient(45deg,
      var(--bg-card) 0,
      var(--bg-card) 14px,
      var(--bg-card-2) 14px,
      var(--bg-card-2) 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-img-fallback {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: rgba(0, 245, 255, 0.55);
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.4);
  pointer-events: none;
}

.card-img-fallback small {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-shadow: none;
}

/* ===========================================================
   Compliance / legal pages (about, privacy, contact)
   Reuses .article-body, adds legal-updated header and bullet
   / code polish so policies read like real documents.
   =========================================================== */
.legal-main {
  max-width: 780px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

.legal-updated {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin: 0 0 26px;
  padding: 8px 12px;
  border-left: 2px solid var(--neon-cyan);
  background: rgba(0, 245, 255, 0.04);
  border-radius: 0 4px 4px 0;
}

.legal-body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.78;
  color: var(--text-main);
}

.legal-body>p {
  margin: 0 0 16px;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.08em;
  color: var(--neon-cyan);
  text-transform: uppercase;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-cyan);
}

.legal-body h3 {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--neon-pink);
  text-transform: uppercase;
  margin: 24px 0 10px;
}

.legal-body ul,
.legal-body ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.legal-body li {
  margin-bottom: 8px;
}

.legal-body li::marker {
  color: var(--neon-cyan);
}

.legal-body b {
  color: var(--neon-cyan);
  font-weight: 600;
}

.legal-body a {
  color: var(--neon-cyan);
  text-decoration: none;
  border-bottom: 1px dashed var(--border-cyan);
  transition: color .15s, border-color .15s;
}

.legal-body a:hover {
  color: var(--neon-pink);
  border-bottom-color: var(--border-pink);
}

.legal-body code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(0, 245, 255, 0.08);
  color: var(--neon-cyan);
  padding: 1px 6px;
  border-radius: 3px;
}

.legal-callout {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 2px solid var(--neon-pink);
  background: rgba(255, 0, 110, 0.05);
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  color: var(--text-main);
}

.legal-callout b {
  color: var(--neon-pink);
}

/* Contact card */
.contact-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 28px 0 12px;
}

.contact-card {
  position: relative;
  padding: 22px 18px 18px;
  background:
    linear-gradient(135deg, rgba(0, 245, 255, 0.06) 0%, rgba(255, 0, 110, 0.06) 100%),
    var(--bg-card);
  border: 1px solid var(--border-cyan);
  border-radius: 10px;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--neon-cyan);
  text-transform: uppercase;
  margin: 0 0 8px;
}

.contact-card p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 10px;
  color: var(--text-main);
}

.contact-card .mono-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.contact-card a.mail-link {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--neon-cyan);
  border-bottom: 1px dashed var(--border-cyan);
}

.contact-card a.mail-link:hover {
  color: var(--neon-pink);
  border-bottom-color: var(--border-pink);
}

/* Drawer active link for non-content routes */
.drawer-link.is-compact {
  font-size: 12px;
  padding: 10px 14px;
}