/*
 * WAGMINE - Coming Soon Landing Page
 * Custom styles
 * © 2026 WAGMINE. All rights reserved.
 *
 * Brand gradient (from frontend/components/layout/Header.tsx):
 *   from-purple-400 (#c084fc) → to-purple-500 (#a855f7)
 * Bunny purple: #c27aff (exact match from public/bunny.svg)
 * Background: #111827 → #1f2937 (dark, mirrors globals.css)
 */

/* ─────────────────────────────────────────────────────────────
   RESET / BASE
───────────────────────────────────────────────────────────── */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: linear-gradient(to bottom right, #111827, #1f2937, #111827);
  min-height: 100vh;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #c084fc;
  outline-offset: 2px;
  border-radius: 6px;
}

/* ─────────────────────────────────────────────────────────────
   BRAND GRADIENT UTILITIES
   Used throughout as bg and text - mirrors Header.tsx gradient
───────────────────────────────────────────────────────────── */
.brand-gradient-text {
  background: linear-gradient(90deg, #c084fc, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-gradient-bg {
  background: linear-gradient(90deg, #c084fc, #a855f7);
}

/* ─────────────────────────────────────────────────────────────
   ANIMATED GRID BACKGROUND
   Subtle scrolling dot-grid motif
───────────────────────────────────────────────────────────── */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(168,85,247,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridScroll 30s linear infinite;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,0.4) 15%,
    rgba(0,0,0,0.4) 85%,
    transparent 100%
  );
}

@keyframes gridScroll {
  from { background-position: 0 0; }
  to   { background-position: 0 120px; }
}

/* ─────────────────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────────────────── */
#header {
  background: rgba(17, 24, 39, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

#header.scrolled {
  background: rgba(17, 24, 39, 0.85);
  border-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ─────────────────────────────────────────────────────────────
   HERO TITLE
───────────────────────────────────────────────────────────── */
.hero-title {
  font-size: clamp(4rem, 14vw, 9rem);
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 60%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  line-height: 1;
  filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.4));
}

/* ─────────────────────────────────────────────────────────────
   FLOATING GLOW BLOBS (hero)
───────────────────────────────────────────────────────────── */
.mine-float {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.07;
  animation: floatMine ease-in-out infinite;
}

.mine-1 {
  width: 300px; height: 300px;
  top: 10%; left: -80px;
  background: radial-gradient(circle, #c27aff 30%, transparent 70%);
  animation-duration: 9s;
}
.mine-2 {
  width: 200px; height: 200px;
  top: 30%; right: -60px;
  background: radial-gradient(circle, #a855f7 30%, transparent 70%);
  animation-duration: 12s;
  animation-delay: -4s;
}
.mine-3 {
  width: 150px; height: 150px;
  bottom: 20%; left: 15%;
  background: radial-gradient(circle, #a855f7 30%, transparent 70%);
  animation-duration: 7s;
  animation-delay: -2s;
}

@keyframes floatMine {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-25px) scale(1.05); }
}

/* ─────────────────────────────────────────────────────────────
   SECTIONS
───────────────────────────────────────────────────────────── */
.section-pad {
  padding-top: 6rem;
  padding-bottom: 6rem;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  background: linear-gradient(90deg, #c084fc, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 999px;
  background-color: rgba(168, 85, 247, 0.06);
}

.section-title {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #ededed;
}

.section-sub {
  margin-top: 1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  color: #9ca3af;
  font-size: 1rem;
  line-height: 1.7;
}

/* ─────────────────────────────────────────────────────────────
   ONBOARDING STEPS
───────────────────────────────────────────────────────────── */
.onboarding-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.onboarding-step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: rgba(45, 55, 72, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.25s, transform 0.25s;
}

.onboarding-step:hover {
  border-color: rgba(192, 132, 252, 0.2);
  transform: translateX(4px);
}

.step-number {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: white;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ─────────────────────────────────────────────────────────────
   FEATURE CARDS
───────────────────────────────────────────────────────────── */
.feature-card {
  background: rgba(45, 55, 72, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(192, 132, 252, 0.18);
}

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   TRANSPARENCY CARDS
───────────────────────────────────────────────────────────── */
.transparency-card {
  background: rgba(45, 55, 72, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: transform 0.25s, border-color 0.25s;
}

.transparency-card:hover {
  transform: translateY(-4px);
  border-color: rgba(192, 132, 252, 0.18);
}

.transparency-icon {
  font-size: 2rem;
  line-height: 1;
}

/* ─────────────────────────────────────────────────────────────
   MASCOT CLIP (muted looping brand video + opt-in sound toggle)
───────────────────────────────────────────────────────────── */
.mascot-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(192, 132, 252, 0.25);
  background: #1f2937;
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.18);
}

.mascot-sound {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(17, 24, 39, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #e5e7eb;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.mascot-sound:hover,
.mascot-sound:focus-visible {
  background: rgba(17, 24, 39, 0.9);
  border-color: rgba(192, 132, 252, 0.6);
}

.mascot-sound[aria-pressed="true"] {
  border-color: rgba(192, 132, 252, 0.7);
  color: #c084fc;
}


/* ─────────────────────────────────────────────────────────────
   SCREENSHOT PLACEHOLDERS
───────────────────────────────────────────────────────────── */
.screenshot-placeholder {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: #1f2937;
  min-height: 180px;
}

.screenshot-placeholder .screenshot-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-placeholder .screenshot-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screenshot-placeholder .placeholder-label {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  color: #6b7280;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ─────────────────────────────────────────────────────────────
   USP CARDS
───────────────────────────────────────────────────────────── */
.usp-card {
  background: rgba(31, 41, 55, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.25s, border-color 0.25s;
}

.usp-card:hover {
  transform: translateY(-4px);
  border-color: rgba(192, 132, 252, 0.25);
}

.usp-icon { font-size: 2rem; line-height: 1; }

/* ─────────────────────────────────────────────────────────────
   TOKENOMICS
───────────────────────────────────────────────────────────── */
.tokenomics-chart-placeholder {
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  padding: 2rem;
}

.token-stat {
  background: rgba(45, 55, 72, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.25s, transform 0.25s;
}

.token-stat:hover {
  border-color: rgba(192, 132, 252, 0.22);
  transform: translateY(-2px);
}

.token-stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
  margin-bottom: 0.375rem;
}

.token-stat-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ededed;
  line-height: 1.3;
}

.token-stat-sub {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.3rem;
  line-height: 1.5;
}

/* Utility chips */
.chip {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(192, 132, 252, 0.12);
  border: 1px solid rgba(192, 132, 252, 0.28);
  color: #d8b4fe;
  font-size: 0.72rem;
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────
   TRUST SCORE CARD (bot protection)
───────────────────────────────────────────────────────────── */
.trust-score-card {
  background: rgba(45, 55, 72, 0.4);
  border: 1px solid rgba(192, 132, 252, 0.15);
  border-radius: 18px;
  padding: 1.75rem;
}

.trust-score-badge {
  background: rgba(192, 132, 252, 0.1);
  border: 1px solid rgba(192, 132, 252, 0.25);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 100px;
}

/* ─────────────────────────────────────────────────────────────
   ROADMAP
───────────────────────────────────────────────────────────── */
.roadmap-list {
  position: relative;
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.roadmap-list::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(to bottom, #c084fc, #7c3aed, rgba(255,255,255,0.06));
}

.roadmap-item {
  position: relative;
  padding-left: 2.75rem;
  padding-bottom: 2.5rem;
}

.roadmap-item:last-child { padding-bottom: 0; }

.roadmap-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2d3748;
  border: 2px solid rgba(255, 255, 255, 0.12);
  z-index: 1;
}

.roadmap-dot--done {
  background: #c084fc;
  border-color: #a855f7;
  box-shadow: 0 0 0 4px rgba(192, 132, 252, 0.18);
}

.roadmap-dot--active {
  background: #a855f7;
  border-color: #7c3aed;
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.25);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(168,85,247,0.25); }
  50%       { box-shadow: 0 0 0 8px rgba(168,85,247,0.07); }
}

.roadmap-content {
  background: rgba(45, 55, 72, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.25s;
}

.roadmap-content:hover { border-color: rgba(192, 132, 252, 0.14); }

.roadmap-phase {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.25rem;
}

.roadmap-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #ededed;
  margin-bottom: 0.75rem;
}

.roadmap-tasks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: #9ca3af;
  line-height: 1.5;
}

/* ─────────────────────────────────────────────────────────────
   COMMUNITY CARD (footer)
───────────────────────────────────────────────────────────── */
.community-card {
  background: rgba(45, 55, 72, 0.35);
  border: 1px solid rgba(192, 132, 252, 0.15);
  border-radius: 24px;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

/* ─────────────────────────────────────────────────────────────
   REVEAL ON SCROLL
───────────────────────────────────────────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────────────────────────
   ACCESSIBILITY - reduced motion
───────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .grid-bg { animation: none; background-image: none; }
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .section-pad { padding-top: 4rem; padding-bottom: 4rem; }
  .roadmap-list::before { left: 9px; }
  .roadmap-dot { width: 20px; height: 20px; }
  .roadmap-item { padding-left: 2.25rem; }
  .onboarding-step { flex-direction: column; gap: 0.75rem; }
}

/* ─────────────────────────────────────────────────────────────
   WHY MINESWEEPER SECTION
───────────────────────────────────────────────────────────── */
.why-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(45, 55, 72, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 1.25rem;
  transition: border-color 0.25s, transform 0.25s;
}

.why-card:hover {
  border-color: rgba(168, 85, 247, 0.2);
  transform: translateX(4px);
}

.why-card-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-quote-card {
  background: rgba(45, 55, 72, 0.35);
  border: 1px solid rgba(168, 85, 247, 0.18);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
}

.why-quote-card::before {
  content: '\201C';
  position: absolute;
  top: -0.25rem;
  left: 1.25rem;
  font-size: 5rem;
  line-height: 1;
  background: linear-gradient(90deg, #c084fc, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  opacity: 0.4;
}

.stat-pill {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.25);
  color: #d8b4fe;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ─────────────────────────────────────────────────────────────
   HERO TITLE ROW - bunny left of WAGMINE text
───────────────────────────────────────────────────────────── */
.hero-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  /* allow text-center alignment of sibling elements */
  width: 100%;
}

.hero-bunny {
  /* size: roughly the cap-height of the hero title so they optically align */
  height: clamp(80px, 14vw, 140px);
  width: auto;
  flex-shrink: 0;
  /* soft purple drop-shadow to anchor it on the dark bg */
  filter: drop-shadow(0 0 20px rgba(194,122,255,0.4));
  animation-duration: 7s;
}

/* On very small screens stack vertically */
@media (max-width: 420px) {
  .hero-title-row {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* ─────────────────────────────────────────────────────────────
   BURN MECHANICS (tokenomics)
───────────────────────────────────────────────────────────── */
.burn-row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.12);
}

.burn-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #d8b4fe;
}

/* ─────────────────────────────────────────────────────────────
   PLATFORM VISION SECTION
───────────────────────────────────────────────────────────── */
.platform-card {
  background: rgba(45, 55, 72, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}

.platform-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.22);
}

.platform-card-icon {
  font-size: 2rem;
  line-height: 1;
}

.platform-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  align-self: flex-start;
}

.platform-badge--live {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.35);
  color: #d8b4fe;
}

.platform-badge--soon {
  background: rgba(251, 146, 60, 0.1);
  border-color: rgba(251, 146, 60, 0.3);
  color: #fdba74;
}

.platform-table-wrap {
  background: rgba(31, 41, 55, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 1.5rem;
}

.platform-layer {
  background: rgba(168, 85, 247, 0.07);
  border: 1px solid rgba(168, 85, 247, 0.14);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c4b5fd;
}

/* ─────────────────────────────────────────────────────────────
   SCREENSHOT LIGHTBOX (full-screen viewer on a native <dialog>)
───────────────────────────────────────────────────────────── */
/* Screenshot triggers are <button>s: reset button chrome, add hover affordance */
.screenshot-zoom {
  position: relative;
  display: block;
  padding: 0;
  width: 100%;
  cursor: zoom-in;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.screenshot-zoom:hover,
.screenshot-zoom:focus-visible {
  border-color: rgba(192, 132, 252, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.22);
}

.screenshot-zoom:focus-visible {
  outline: 2px solid #c084fc;
  outline-offset: 3px;
}

.zoom-hint {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  padding: 0.4rem;
  border-radius: 9999px;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e5e7eb;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.screenshot-zoom:hover .zoom-hint { opacity: 1; }

/* Page scroll lock while the viewer is open */
html.lightbox-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 3.5rem 1rem 3rem;
  border: 0;
  background: rgba(8, 11, 20, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #e5e7eb;
  align-items: center;
  justify-content: center;
}

.lightbox[open] {
  display: flex;
  animation: lightboxIn 0.18s ease-out;
}

.lightbox::backdrop { background: transparent; }

@keyframes lightboxIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(192, 132, 252, 0.3);
  box-shadow: 0 0 80px rgba(168, 85, 247, 0.25);
}

.lightbox-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(31, 41, 55, 0.8);
  color: #e5e7eb;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.lightbox-btn:hover,
.lightbox-btn:focus-visible {
  background: rgba(168, 85, 247, 0.5);
  border-color: rgba(192, 132, 252, 0.8);
}

.lightbox-close { top: 0.75rem; right: 0.75rem; }
.lightbox-prev  { left: 0.75rem;  top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 0.75rem; top: 50%; transform: translateY(-50%); }

.lightbox-count {
  position: absolute;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #9ca3af;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox[open] { animation: none; }
  .screenshot-zoom:hover, .screenshot-zoom:focus-visible { transform: none; }
}

/* Small screens: arrows move below the image so they never cover the screenshot */
@media (max-width: 640px) {
  .lightbox { padding-bottom: 5rem; }
  .lightbox-prev,
  .lightbox-next { top: auto; bottom: 0.75rem; transform: none; }
  .lightbox-prev { left: calc(50% - 4.5rem); }
  .lightbox-next { right: calc(50% - 4.5rem); }
  .lightbox-count { display: none; }
}
