/*
Theme Name: RGB Nostalgia
Theme URI: https://rgbnostalgia.com
Author: RGB Nostalgia
Author URI: https://rgbnostalgia.com
Description: A retro CRT-inspired directory theme for curated links, store locations, and nostalgic content. Features scanline overlays, 8-bit particle effects, sticky nav with filter pills, and full accessibility menu.
Version: 1.9.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rgbnostalgia
Tags: retro, gaming, directory, dark, one-column, custom-menu, custom-logo, featured-images
*/

/* ═══════════════════════════════════════════════════
   RGB NOSTALGIA — CORE THEME STYLES
   ═══════════════════════════════════════════════════ */

:root {
  --red: #ff2d2d;
  --green: #39ff14;
  --blue: #00d4ff;
  --amber: #ffbf00;
  --magenta: #ff00ff;
  --bg-dark: #0a0a0e;
  --bg-card: #111118;
  --bg-card-hover: #1a1a24;
  --text-primary: #e0e0e0;
  --text-dim: #777;
  --scanline: rgba(0,0,0,0.12);
  --glow-r: rgba(255,45,45,0.35);
  --glow-g: rgba(57,255,20,0.35);
  --glow-b: rgba(0,212,255,0.35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video, iframe, object, embed { max-width: 100%; height: auto; }
.card, .section-header, .disclosure, .footer { max-width: 100%; }

html {
  overflow-x: hidden;
  max-width: 100vw;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: 'Space Mono', 'Courier New', Courier, monospace;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  max-width: 100vw;
}

/* ── Scanline overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    var(--scanline) 0px,
    var(--scanline) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ── Noise texture ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
}

/* ═══ HEADER ═══ */
.header {
  text-align: center;
  padding: 60px 20px 40px;
  position: relative;
}

.logo-monitor {
  display: inline-block;
  position: relative;
  padding: 10px 0 16px;
  margin-bottom: 8px;
}

.starfield {
  position: absolute;
  inset: -20px -40px;
  overflow: hidden;
  border-radius: 4px;
  z-index: 0;
}

.starfield::before {
  content: '· ✦ · · ✦ · ✧ · · ✦ · · ✧ · ✦ · · · ✦ · ✧ · · ✦ · ✧ · · ✦ · · ✧ ✦ · · ✧ · ✦ · ✦ ·';
  position: absolute;
  white-space: nowrap;
  font-size: 10px;
  top: 8px;
  color: rgba(255,255,255,0.15);
  letter-spacing: 8px;
  animation: scrollStars 20s linear infinite;
}

.starfield::after {
  content: '✧ · ✦ · · ✧ · · ✦ · ✧ · · ✦ · · · ✧ ✦ · · ✧ · ✦ · · ✧ · ✦ · ✧ · · · ✦ · ✧ · · ✦ ·';
  position: absolute;
  white-space: nowrap;
  font-size: 8px;
  bottom: 10px;
  color: rgba(255,255,255,0.08);
  letter-spacing: 12px;
  animation: scrollStars 35s linear infinite reverse;
}

@keyframes scrollStars {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logo-text {
  font-family: 'Press Start 2P', 'Courier New', Courier, monospace;
  font-size: clamp(28px, 6vw, 58px);
  letter-spacing: 4px;
  display: block;
  position: relative;
  z-index: 1;
  margin: 0;
  color: transparent;
  background: linear-gradient(
    180deg,
    #fff 0%,
    #ffe566 20%,
    #ffbf00 40%,
    #ff8800 60%,
    #ff4400 80%,
    #cc0000 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter:
    drop-shadow(0 0 2px rgba(255,200,0,0.8))
    drop-shadow(0 0 20px rgba(255,150,0,0.4))
    drop-shadow(0 0 40px rgba(255,100,0,0.2));
  text-transform: uppercase;
  line-height: 1.2;
  paint-order: stroke fill;
  -webkit-text-stroke: 1px rgba(255,100,0,0.15);
}

.logo-shadow {
  position: absolute;
  top: 0; left: 0; right: 0;
  font-family: 'Press Start 2P', 'Courier New', Courier, monospace;
  font-size: clamp(28px, 6vw, 58px);
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  z-index: 0;
  pointer-events: none;
}

.logo-shadow-red {
  color: var(--red);
  opacity: 0.3;
  transform: translate(-3px, 3px);
  filter: blur(1px);
}

.logo-shadow-blue {
  color: var(--blue);
  opacity: 0.25;
  transform: translate(3px, -2px);
  filter: blur(1px);
}

.logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
  position: relative;
  z-index: 1;
}

.logo-bar-line {
  flex: 0 1 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

.logo-bar-text {
  font-family: 'VT323', 'Courier New', Courier, monospace;
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--amber);
  text-shadow: 0 0 6px rgba(255,191,0,0.4);
  white-space: nowrap;
}

.pixel-deco {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--amber);
  opacity: 0.5;
  z-index: 1;
  animation: pixelFloat 3s ease-in-out infinite;
}
.pixel-deco:nth-child(2) { top: 10px; left: 20px; background: var(--red); animation-delay: 0.5s; width: 4px; height: 4px; }
.pixel-deco:nth-child(3) { top: 50%; right: 15px; background: var(--blue); animation-delay: 1s; width: 5px; height: 5px; }
.pixel-deco:nth-child(4) { bottom: 20px; left: 30px; background: var(--green); animation-delay: 1.5s; width: 4px; height: 4px; }
.pixel-deco:nth-child(5) { top: 15px; right: 40px; background: var(--magenta); animation-delay: 2s; width: 3px; height: 3px; }

@keyframes pixelFloat {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%      { transform: translateY(-8px); opacity: 1; }
}

.insert-coin {
  font-family: 'VT323', 'Courier New', Courier, monospace;
  font-size: 18px;
  color: var(--green);
  letter-spacing: 3px;
  margin-top: 14px;
  position: relative;
  z-index: 1;
  animation: coinBlink 1.2s step-end infinite;
}

@keyframes coinBlink {
  0%, 60% { opacity: 1; }
  61%, 100% { opacity: 0; }
}

.tagline {
  font-family: 'VT323', 'Courier New', Courier, monospace;
  font-size: clamp(16px, 3vw, 24px);
  color: var(--amber);
  text-shadow: 0 0 8px rgba(255,191,0,0.4);
  letter-spacing: 3px;
  margin-top: 10px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.4s;
}

.subtitle {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 14px;
  letter-spacing: 1px;
  opacity: 0;
  animation: fadeUp 0.6s ease forwards 0.7s;
}
.subtitle a { color: var(--amber); text-decoration: none; }

/* ═══ NAV WRAPPER ═══ */
/* Contains global nav + sub-nav as one unit for sticky behavior */
.nav-wrap {
  z-index: 9997;
}
.nav-wrap.fixed {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9997;
  background: #0a0a0e;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
  /* iOS Safari: extend background above the top edge to cover notch + dynamic toolbar transitions */
  border-top: env(safe-area-inset-top, 0px) solid #0a0a0e;
}
/* Desktop: show logo + divider when scrolled */
.nav-wrap.fixed .nav-logo { display: block; }
.nav-wrap.fixed .nav-divider { display: block; }
.nav-wrap.fixed .nav {
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 8px 14px;
}
.nav-wrap.fixed .nav .nav-pill { font-size: 16px; padding: 6px 14px; }
.admin-bar .nav-wrap.fixed {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .nav-wrap.fixed {
    top: 46px;
  }
}
/* When inside fixed nav-wrap, children inherit the wrap's background */
.nav-wrap.fixed .nav,
.nav-wrap.fixed .sub-nav {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  position: static !important;
}
/* When nav-wrap is fixed, show the compact logo and adjust nav pill sizes */
/* Mobile — hide logo/divider when fixed, keep horizontal scroll */
/* Mobile — nav wraps into centered rows, logo shows on top */
@media (max-width: 768px) {
  .nav-wrap.fixed .nav-logo {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-right: 0 !important;
    margin-bottom: 2px;
    font-size: 9px;
  }
  .nav-wrap.fixed .nav-divider { display: none !important; }
  .nav-wrap.fixed .nav {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 5px 10px !important;
  }
  .nav-wrap.fixed .nav .nav-pill {
    font-size: 13px !important;
    padding: 5px 10px !important;
  }
  /* Sub-nav also wraps */
  .nav-wrap.fixed .sub-nav {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    justify-content: center !important;
  }
}
/* Bottom border on the entire wrap */
.nav-wrap.fixed::after {
  content: '';
  display: block;
  height: 1px;
  background: #333;
}

/* ═══ NAV PILLS ═══ */
.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 20px 10px;
  z-index: 9997;
  transition: box-shadow 0.3s ease;
}

/* .nav.fixed is no longer used — .nav-wrap.fixed handles sticky behavior */

/* sub-nav fixed styling now handled by nav-wrap */

.nav-logo {
  display: none;
  font-family: 'Press Start 2P', 'Courier New', Courier, monospace;
  font-size: 11px;
  color: var(--amber);
  text-shadow: 0 0 6px rgba(255,191,0,0.3);
  white-space: nowrap;
  margin-right: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s ease;
}
.nav-logo:hover { color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.3); }

.nav-divider {
  display: none;
  width: 1px; height: 24px;
  background: #333;
  flex-shrink: 0;
  margin-right: 4px;
}

.nav-spacer { height: 0; }

/* Sub-nav: contextual filter pills below global nav */
.sub-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px 20px;
  background: transparent;
  border-bottom: none;
}
.sub-nav .nav-pill {
  font-size: 16px;
  padding: 5px 12px;
}
/* When sub-nav is inside fixed nav-wrap, it inherits the dark background */
.sub-nav.fixed {
  position: fixed;
  left: 0; right: 0;
  z-index: 9996;
  background: rgba(10, 10, 14, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-top: none;
  border-bottom: 1px solid #333;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}
/* sub-nav fixed styling now handled by nav-wrap */

.nav-pill {
  font-family: 'VT323', 'Courier New', Courier, monospace;
  font-size: 21px;
  padding: 8px 20px;
  border: 1px solid var(--text-dim);
  border-radius: 0;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-pill:hover, .nav-pill.active {
  color: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 10px rgba(57,255,20,0.2), inset 0 0 10px rgba(57,255,20,0.05);
}

.nav-pill-pressplay { color: var(--green); border-color: rgba(57,255,20,0.3); }
.nav-pill-pressplay:hover, .nav-pill-pressplay.active {
  color: var(--green); border-color: var(--green);
  box-shadow: 0 0 10px rgba(57,255,20,0.2), inset 0 0 10px rgba(57,255,20,0.05);
}

.nav-pill-featured { color: var(--amber); border-color: rgba(255,191,0,0.3); font-size: inherit; padding: inherit; }
.nav-pill-featured:hover, .nav-pill-featured.active {
  color: var(--amber); border-color: var(--amber);
  box-shadow: 0 0 10px rgba(255,191,0,0.2), inset 0 0 10px rgba(255,191,0,0.05);
}

/* ═══ SECTION HEADERS ═══ */
.section-header {
  font-family: 'Press Start 2P', 'Courier New', Courier, monospace;
  font-size: clamp(13px, 2.5vw, 18px);
  padding: 30px 20px 16px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-header .icon { font-size: 24px; }
.section-header .line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--text-dim) 0%, transparent 100%); }

.section-header[data-color="red"] { color: var(--red); text-shadow: 0 0 12px var(--glow-r); }
.section-header[data-color="green"] { color: var(--green); text-shadow: 0 0 12px var(--glow-g); }
.section-header[data-color="blue"] { color: var(--blue); text-shadow: 0 0 12px var(--glow-b); }
.section-header[data-color="amber"] { color: var(--amber); text-shadow: 0 0 12px rgba(255,191,0,0.35); }
.section-header[data-color="magenta"] { color: var(--magenta); text-shadow: 0 0 12px rgba(255,0,255,0.35); }

/* ═══ GRID ═══ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 20px;
}

/* ═══ CARD ═══ */
.card {
  background: var(--bg-card);
  border: 1px solid #222;
  padding: 20px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  opacity: 0;
  animation: fadeUp 0.4s ease forwards;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--red), var(--green), var(--blue));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: #333;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.card:hover::before { opacity: 1; }

.card-emoji { font-size: 28px; margin-bottom: 10px; }
.card-title {
  font-family: 'VT323', 'Courier New', Courier, monospace;
  font-size: 22px;
  margin-bottom: 6px;
  color: #fff;
}
.card-desc { font-size: 13px; color: var(--text-dim); line-height: 1.6; flex: 1; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.tag {
  font-family: 'VT323', 'Courier New', Courier, monospace;
  font-size: 14px;
  padding: 2px 8px;
  border: 1px solid;
  letter-spacing: 0.5px;
}
.tag-affiliate { color: var(--text-dim); border-color: rgba(119,119,119,0.3); }
.tag-category { color: var(--green); border-color: rgba(57,255,20,0.3); }
.tag-info { color: var(--blue); border-color: rgba(0,212,255,0.3); }
.tag-community { color: var(--magenta); border-color: rgba(255,0,255,0.3); }

.tag-link { text-decoration: none; cursor: pointer; transition: all 0.2s ease; position: relative; z-index: 2; }
.tag-link:hover { filter: brightness(1.4); transform: scale(1.05); }
.tag-discord { color: #7289da; border-color: rgba(114,137,218,0.3); }
.tag-discord:hover { background: rgba(114,137,218,0.1); }
.tag-reddit { color: #ff4500; border-color: rgba(255,69,0,0.3); }
.tag-reddit:hover { background: rgba(255,69,0,0.1); }
.tag-x { color: #aaa; border-color: rgba(170,170,170,0.3); }
.tag-x:hover { background: rgba(170,170,170,0.1); }
.tag-youtube { color: #ff0000; border-color: rgba(255,0,0,0.3); }
.tag-youtube:hover { background: rgba(255,0,0,0.1); }
.tag-bsky { color: #0085ff; border-color: rgba(0,133,255,0.3); }
.tag-bsky:hover { background: rgba(0,133,255,0.1); }
.tag-patreon { color: #f96854; border-color: rgba(249,104,84,0.3); }
.tag-patreon:hover { background: rgba(249,104,84,0.1); }
.tag-facebook { color: #1877f2; border-color: rgba(24,119,242,0.3); }
.tag-facebook:hover { background: rgba(24,119,242,0.1); }
.tag-instagram { color: #e1306c; border-color: rgba(225,48,108,0.3); }
.tag-instagram:hover { background: rgba(225,48,108,0.1); }
.tag-tiktok { color: #69c9d0; border-color: rgba(105,201,208,0.3); }
.tag-tiktok:hover { background: rgba(105,201,208,0.1); }

/* ═══ FEATURED CARD ═══ */
.card.featured {
  border-color: rgba(255,191,0,0.25);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255,191,0,0.03) 100%);
  box-shadow: 0 0 0 1px rgba(255,191,0,0.08);
}
.card.featured::before { background: linear-gradient(90deg, var(--amber), #ffe566, var(--amber)); opacity: 1; height: 2px; }
.card.featured::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(ellipse at top right, rgba(255,191,0,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.card.featured:hover { border-color: rgba(255,191,0,0.4); box-shadow: 0 8px 30px rgba(0,0,0,0.5), 0 0 20px rgba(255,191,0,0.08); }
.tag-featured { color: var(--amber); border-color: rgba(255,191,0,0.35); background: rgba(255,191,0,0.06); font-weight: normal; }

/* ═══ DISCLOSURE ═══ */
.disclosure {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 20px;
  border-top: 1px solid #222;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.7;
  text-align: center;
}

/* ═══ FOOTER ═══ */
.footer {
  text-align: center;
  padding: 30px 20px 50px;
  font-family: 'VT323', 'Courier New', Courier, monospace;
  font-size: 18px;
  color: var(--text-dim);
  letter-spacing: 2px;
}
.footer span.cursor { /* blinking cursor animation if present */ }
.footer > span:first-child { color: var(--red); }

.footer-links { margin-top: 12px; font-size: 13px; letter-spacing: 1px; color: var(--text-dim); }
.footer-links a { color: var(--text-dim); text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--amber); }
.footer-dot { margin: 0 8px; opacity: 0.4; color: var(--text-dim); }
.footer-disclaimer { opacity: 0.5; color: var(--text-dim); }
.footer-ai-disclosure { margin-top: 10px; font-size: 11px; color: var(--text-dim); opacity: 0.45; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.5; }

/* ═══ NEWSLETTER ═══ */
.newsletter-section {
  max-width: 560px;
  margin: 30px auto 0;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid #222;
  background: var(--bg-card);
  position: relative;
  overflow: hidden;
}
.newsletter-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.newsletter-title {
  font-family: 'VT323', 'Courier New', Courier, monospace;
  font-size: 22px; color: var(--green);
  letter-spacing: 3px; text-transform: uppercase;
  margin-bottom: 8px; text-shadow: 0 0 8px rgba(57,255,20,0.2);
  position: relative; z-index: 2;
}
.newsletter-desc { font-size: 13px; color: var(--text-dim); line-height: 1.6; margin-bottom: 18px; position: relative; z-index: 2; }
.newsletter-form { display: flex; gap: 0; max-width: 420px; margin: 0 auto; position: relative; z-index: 2; }
.newsletter-input {
  flex: 1;
  font-family: 'VT323', 'Courier New', Courier, monospace;
  font-size: 18px; padding: 10px 14px;
  border: 1px solid #333; border-right: none;
  background: var(--bg-dark); color: var(--green);
  outline: none; transition: all 0.3s ease;
  min-width: 0; letter-spacing: 1px; caret-color: var(--green);
}
.newsletter-input::placeholder { color: #444; letter-spacing: 1px; }
.newsletter-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(57,255,20,0.1), inset 0 0 20px rgba(57,255,20,0.03);
  text-shadow: 0 0 4px rgba(57,255,20,0.3);
  background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(57,255,20,0.02) 100%);
}
.newsletter-input.typing { border-color: var(--green); animation: inputPulse 1.5s ease-in-out infinite; }

@keyframes inputPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(57,255,20,0.1), inset 0 0 15px rgba(57,255,20,0.02); }
  50% { box-shadow: 0 0 16px rgba(57,255,20,0.2), inset 0 0 25px rgba(57,255,20,0.04); }
}

.newsletter-progress {
  position: absolute; bottom: -3px; left: 0;
  height: 2px; background: var(--green);
  transition: width 0.15s ease, opacity 0.3s ease;
  opacity: 0; box-shadow: 0 0 6px rgba(57,255,20,0.4); z-index: 1;
}
.newsletter-progress.visible { opacity: 1; }

.newsletter-xp {
  font-family: 'VT323', 'Courier New', Courier, monospace;
  font-size: 13px; color: var(--green); opacity: 0;
  margin-top: 8px; letter-spacing: 2px;
  transition: opacity 0.3s ease;
  text-shadow: 0 0 4px rgba(57,255,20,0.3);
  position: relative; z-index: 2;
}
.newsletter-xp.visible { opacity: 1; }

.newsletter-btn {
  font-family: 'VT323', 'Courier New', Courier, monospace;
  font-size: 17px; padding: 10px 20px;
  border: 1px solid var(--green); background: transparent;
  color: var(--green); cursor: pointer;
  transition: all 0.2s ease; letter-spacing: 1px;
  white-space: nowrap; flex-shrink: 0;
}
.newsletter-btn:hover { background: rgba(57,255,20,0.08); box-shadow: 0 0 12px rgba(57,255,20,0.15); }

.newsletter-btn.ready { animation: btnReady 0.8s ease-in-out infinite; text-shadow: 0 0 8px rgba(57,255,20,0.5); }

@keyframes btnReady {
  0%, 100% { box-shadow: 0 0 8px rgba(57,255,20,0.2), inset 0 0 8px rgba(57,255,20,0.05); transform: scale(1); border-color: var(--green); }
  50% { box-shadow: 0 0 25px rgba(57,255,20,0.5), inset 0 0 15px rgba(57,255,20,0.1), 0 0 40px rgba(57,255,20,0.15); background: rgba(57,255,20,0.1); transform: scale(1.05); border-color: #6fff4a; }
}

.newsletter-btn.waiting { opacity: 0.4; cursor: not-allowed; animation: none; }
.newsletter-btn.subscribed { border-color: var(--amber); color: var(--amber); animation: none; text-shadow: 0 0 8px rgba(255,191,0,0.4); }

/* ── GDPR ── */
.newsletter-gdpr { display: flex; align-items: flex-start; gap: 10px; max-width: 420px; margin: 14px auto 0; text-align: left; position: relative; z-index: 2; }
.gdpr-checkbox-wrap { position: relative; flex-shrink: 0; width: 22px; height: 22px; margin-top: 1px; }
.gdpr-checkbox-wrap input { position: absolute; opacity: 0; width: 22px; height: 22px; cursor: pointer; z-index: 3; margin: 0; }
.gdpr-box {
  width: 22px; height: 22px; border: 1px solid #444; background: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease; font-family: 'VT323', monospace; font-size: 16px; color: transparent;
}
.gdpr-box.needs-check { animation: gdprPulse 1s ease-in-out infinite; }

@keyframes gdprPulse {
  0%, 100% { border-color: rgba(57,255,20,0.3); box-shadow: 0 0 4px rgba(57,255,20,0.1); }
  50% { border-color: var(--green); box-shadow: 0 0 14px rgba(57,255,20,0.35); }
}

.gdpr-checkbox-wrap input:checked + .gdpr-box {
  border-color: var(--green); color: var(--green);
  background: rgba(57,255,20,0.06); box-shadow: 0 0 10px rgba(57,255,20,0.2);
  animation: gdprCheck 0.3s ease;
}
.gdpr-checkbox-wrap input:checked + .gdpr-box.needs-check { animation: gdprCheck 0.3s ease; }

@keyframes gdprCheck {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.gdpr-label { font-size: 11px; color: var(--text-dim); line-height: 1.5; cursor: pointer; }
.gdpr-label a { color: var(--amber); text-decoration: none; border-bottom: 1px solid rgba(255,191,0,0.2); }
.gdpr-label a:hover { border-color: var(--amber); }

.newsletter-msg {
  font-family: 'VT323', 'Courier New', Courier, monospace;
  font-size: 15px; margin-top: 10px; min-height: 20px;
  letter-spacing: 1px; position: relative; z-index: 2;
}
.newsletter-msg.success { color: var(--green); }
.newsletter-msg.error { color: var(--red); }

/* ═══ CONTACT ═══ */
.contact-section { max-width: 1200px; margin: 0 auto; padding: 24px 20px; text-align: center; border-top: 1px solid #222; }
.contact-title {
  font-family: 'VT323', 'Courier New', Courier, monospace;
  font-size: 18px; color: var(--text-dim);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px;
}
.contact-desc { font-size: 12px; color: var(--text-dim); line-height: 1.7; margin-bottom: 14px; }
.contact-btn {
  display: inline-block;
  font-family: 'VT323', 'Courier New', Courier, monospace;
  font-size: 17px; padding: 8px 22px;
  border: 1px solid #333; color: var(--amber);
  text-decoration: none; transition: all 0.2s ease; letter-spacing: 1px;
}
.contact-btn:hover { border-color: var(--amber); box-shadow: 0 0 12px rgba(255,191,0,0.15); }

.cursor { display: inline-block; width: 10px; height: 2px; background: var(--green); animation: blink 1s step-end infinite; vertical-align: middle; margin-left: 4px; }

/* ═══ FAQ ═══ */
.faq-section { max-width: 1200px; margin: 0 auto; padding: 0 20px 20px; }
.faq-list { max-width: 1200px; margin: 0 auto; }
.faq-item { border: 1px solid #222; margin-bottom: 8px; background: var(--bg-card); transition: all 0.2s ease; }
.faq-item[open] { border-color: #333; background: var(--bg-card-hover); }
.faq-q {
  font-family: 'VT323', 'Courier New', Courier, monospace;
  font-size: 20px; padding: 16px 20px; cursor: pointer;
  color: var(--green); list-style: none;
  display: flex; align-items: center; gap: 10px; transition: color 0.2s ease;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::before { content: '▸'; font-size: 14px; transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item[open] .faq-q::before { transform: rotate(90deg); }
.faq-q:hover { color: #fff; }
.faq-a { padding: 0 20px 16px 38px; font-size: 14px; color: var(--text-dim); line-height: 1.7; }
.faq-a a { color: var(--amber); text-decoration: none; border-bottom: 1px solid rgba(255,191,0,0.2); transition: border-color 0.2s ease; }
.faq-a a:hover { border-color: var(--amber); }

/* ═══ SHARE BAR ═══ */
.share-bar { max-width: 1200px; margin: 30px auto 0; padding: 20px; text-align: center; border-top: 1px solid #222; }
.share-title { font-family: 'VT323', 'Courier New', Courier, monospace; font-size: 18px; color: var(--text-dim); letter-spacing: 2px; margin-bottom: 14px; text-transform: uppercase; }
.share-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.share-btn {
  font-family: 'VT323', 'Courier New', Courier, monospace;
  font-size: 16px; padding: 8px 18px; border: 1px solid #333;
  background: transparent; color: var(--text-dim); cursor: pointer;
  transition: all 0.2s ease; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; letter-spacing: 1px;
}
.share-btn:hover { border-color: var(--green); color: var(--green); box-shadow: 0 0 10px rgba(57,255,20,0.15); }
.share-btn-copy.copied { border-color: var(--green); color: var(--green); }

/* ═══ LEADERBOARD PAGE ═══ */

/* Period selector (top-level time filter) */
.lb-period-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 1rem;
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
}
.lb-period-tab {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(.4rem, 1.1vw, .55rem);
  padding: .6rem .8rem;
  background: var(--bg-card);
  color: var(--text-dim);
  cursor: pointer;
  border: none;
  border-right: 1px solid #333;
  flex: 1;
  text-align: center;
  transition: all .2s;
  letter-spacing: .5px;
}
.lb-period-tab:last-child { border-right: none; }
.lb-period-tab:hover { background: rgba(255,255,255,0.04); color: #ccc; }
.lb-period-tab.active {
  background: rgba(255,191,0,0.1);
  color: var(--amber);
  box-shadow: inset 0 -2px 0 var(--amber);
}
.lb-period-panel { display: none; }
.lb-period-panel.active { display: block; }

/* Filter pills */
.lb-filters {
  margin-bottom: 1rem;
  padding: .6rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
}
.lb-filter-pill {
  font-family: 'VT323', monospace;
  font-size: .8rem;
  padding: .25rem .5rem;
  border: 1px solid #444;
  border-radius: 3px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .5px;
}
.lb-filter-pill:hover {
  color: var(--pill-color, #ccc);
  border-color: var(--pill-color, #666);
}
.lb-filter-pill.active {
  color: var(--pill-color, var(--amber));
  border-color: var(--pill-color, var(--amber));
  background: rgba(255,255,255,0.04);
}

/* Category tabs (within each period) */
.lb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 1.25rem;
  justify-content: center;
}
.lb-tab {
  font-family: 'VT323', monospace;
  font-size: .85rem;
  padding: .35rem .65rem;
  border: 1px solid #333;
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  letter-spacing: .5px;
}
.lb-tab:hover { border-color: #555; color: #ccc; }
.lb-tab.active {
  color: var(--tab-color, var(--amber));
  border-color: var(--tab-color, var(--amber));
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 8px rgba(255,191,0,0.1);
}
.lb-panel { display: none; }
.lb-panel.active { display: block; }

.lb-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .75rem;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  margin-bottom: .35rem;
  background: var(--bg-card);
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.lb-row:hover { border-color: rgba(255,191,0,0.25); background: var(--bg-card-hover); }
.lb-rank {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', monospace;
  font-size: .45rem;
  border-radius: 50%;
  background: rgba(136,136,136,0.1);
  color: #888;
  border: 1px solid rgba(136,136,136,0.3);
}
.lb-rank-1 { background: rgba(255,191,0,0.2); color: #ffbf00; border-color: rgba(255,191,0,0.5); }
.lb-rank-2 { background: rgba(192,192,192,0.15); color: #c0c0c0; border-color: rgba(192,192,192,0.4); }
.lb-rank-3 { background: rgba(205,127,50,0.15); color: #cd7f32; border-color: rgba(205,127,50,0.4); }
.lb-emoji { font-size: 1.2rem; flex-shrink: 0; }
.lb-info { flex: 1; min-width: 0; }
.lb-name {
  font-family: 'VT323', monospace;
  font-size: 1rem;
  color: #fff;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: .5px;
}
.lb-sub {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: .1rem;
}
.lb-votes {
  flex-shrink: 0;
  font-family: 'VT323', monospace;
  font-size: .85rem;
  color: var(--green);
  min-width: 45px;
  text-align: right;
}
.lb-stat {
  flex-shrink: 0;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(.35rem, 1vw, .45rem);
  white-space: nowrap;
  min-width: 60px;
  text-align: right;
}
@media (max-width: 500px) {
  .lb-row { gap: .4rem; padding: .45rem .5rem; }
  .lb-rank { width: 24px; height: 24px; font-size: .35rem; }
  .lb-emoji { font-size: 1rem; }
  .lb-votes { font-size: .75rem; min-width: 35px; }
  .lb-stat { font-size: .3rem; min-width: 45px; }
  .lb-tab { font-size: .75rem; padding: .25rem .45rem; }
  .lb-period-tab { font-size: .35rem; padding: .5rem .4rem; }
  .lb-trend { font-size: .55rem; min-width: 18px; }
}

/* Trend indicators */
.lb-trend {
  flex-shrink: 0;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(.3rem, .8vw, .4rem);
  min-width: 22px;
  text-align: center;
}
.lb-trend-up {
  color: #39ff14;
  animation: lb-pulse-up 2s ease-in-out infinite;
}
.lb-trend-down { color: #f87171; opacity: .6; }
.lb-trend-new {
  color: #ffbf00;
  font-size: clamp(.25rem, .7vw, .35rem);
  background: rgba(255,191,0,0.1);
  border: 1px solid rgba(255,191,0,0.3);
  padding: .1rem .25rem;
  border-radius: 3px;
  animation: lb-glow-new 1.5s ease-in-out infinite;
}
.lb-trend-hot { font-size: .7rem; }
.lb-trend-stable { color: #555; font-size: .5rem; }

/* Row highlight for new entries */
.lb-row-new {
  border-color: rgba(255,191,0,0.2) !important;
  background: rgba(255,191,0,0.02) !important;
}
/* Row highlight for hot/trending */
.lb-row-hot {
  border-color: rgba(248,113,113,0.2) !important;
  background: rgba(248,113,113,0.02) !important;
}

/* Animations */
@keyframes lb-pulse-up {
  0%, 100% { opacity: 1; text-shadow: 0 0 4px rgba(57,255,20,0.3); }
  50% { opacity: .7; text-shadow: 0 0 8px rgba(57,255,20,0.6); }
}
@keyframes lb-glow-new {
  0%, 100% { box-shadow: 0 0 2px rgba(255,191,0,0.2); }
  50% { box-shadow: 0 0 6px rgba(255,191,0,0.4); }
}

/* ═══ HOMEPAGE — ATTRACT SCREEN ═══ */

/* XP Activity Ticker */
.xp-ticker {
  display: flex;
  align-items: center;
  background: rgba(10, 10, 14, 0.8);
  border-bottom: 1px solid rgba(57, 255, 20, 0.15);
  overflow: hidden;
  white-space: nowrap;
  font-family: 'VT323', monospace;
  font-size: .9rem;
}
.xp-ticker-label {
  flex-shrink: 0;
  padding: .4rem .75rem;
  background: rgba(57, 255, 20, 0.1);
  border-right: 1px solid rgba(57, 255, 20, 0.2);
  color: #39ff14;
  font-family: 'Press Start 2P', monospace;
  font-size: .45rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: ticker-label-pulse 2s ease-in-out infinite;
}
@keyframes ticker-label-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}
.xp-ticker-track {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.xp-ticker-scroll {
  display: inline-flex;
  gap: 0;
  animation: ticker-scroll 60s linear infinite;
  will-change: transform;
}
.xp-ticker-item {
  color: var(--text-dim);
  text-decoration: none;
  flex-shrink: 0;
  padding: .35rem 0;
}
.xp-ticker-sep {
  color: rgba(57, 255, 20, 0.3);
  padding: .35rem .75rem;
  flex-shrink: 0;
  font-size: .6rem;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Homepage sections */
.hp-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}
.hp-section-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}
.hp-section-icon { font-size: 1.2rem; }
.hp-section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(.55rem, 1.5vw, .7rem);
  color: var(--amber);
  letter-spacing: 1px;
  white-space: nowrap;
}
.hp-section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,191,0,0.3), transparent);
}

/* Dual High Scores — side by side */
.hp-dual-scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .hp-dual-scores { grid-template-columns: 1fr; }
}
.hp-score-column {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  overflow: hidden;
}
.hp-score-col-header {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(.45rem, 1.2vw, .6rem);
  padding: .6rem .75rem;
  letter-spacing: 1px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hp-score-col-shops {
  color: var(--amber);
  background: rgba(255,191,0,0.04);
  border-bottom-color: rgba(255,191,0,0.15);
}
.hp-score-col-online {
  color: var(--blue);
  background: rgba(0,212,255,0.04);
  border-bottom-color: rgba(0,212,255,0.15);
}
.hp-hs-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .75rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  transition: background 0.15s;
}
.hp-hs-row:hover { background: rgba(255,255,255,0.03); }
.hp-hs-row:last-of-type { border-bottom: none; }
.hp-hs-rank {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(.5rem, 1.2vw, .65rem);
  min-width: 1.5rem;
  text-align: center;
  flex-shrink: 0;
}
.hp-hs-emoji { font-size: 1.1rem; flex-shrink: 0; }
.hp-hs-name {
  font-family: 'VT323', monospace;
  font-size: .95rem;
  color: #fff;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: .5px;
}
.hp-hs-xp {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(.35rem, .9vw, .45rem);
  color: #39ff14;
  text-shadow: 0 0 4px rgba(57,255,20,0.4);
  flex-shrink: 0;
  white-space: nowrap;
}
.hp-score-more {
  display: block;
  text-align: center;
  padding: .4rem;
  font-family: 'VT323', monospace;
  font-size: .8rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 1px;
  border-top: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.hp-score-more:hover { color: var(--green); }

/* Type badges (used in high scores + recent) */
.hp-hs-type {
  font-family: 'VT323', monospace;
  font-size: .75rem;
  padding: .1rem .35rem;
  border-radius: 3px;
  letter-spacing: .5px;
}
.hp-hs-type-store { color: var(--amber); border: 1px solid rgba(255,191,0,0.3); background: rgba(255,191,0,0.06); }
.hp-hs-type-resource { color: var(--blue); border: 1px solid rgba(0,212,255,0.3); background: rgba(0,212,255,0.06); }
.hp-hs-type-event { color: var(--green); border: 1px solid rgba(57,255,20,0.3); background: rgba(57,255,20,0.06); }

/* Recently Added */
.hp-recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .75rem;
}
.hp-recent-card {
  display: block;
  padding: .75rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.hp-recent-card:hover {
  border-color: rgba(57,255,20,0.25);
  background: var(--bg-card-hover);
}
.hp-recent-top {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .3rem;
}
.hp-recent-emoji { font-size: 1.2rem; flex-shrink: 0; }
.hp-recent-name {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(.4rem, 1.1vw, .55rem);
  color: #fff;
  line-height: 1.4;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hp-recent-desc {
  font-family: 'VT323', monospace;
  font-size: .85rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin: .3rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hp-recent-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .3rem;
}
.hp-recent-subtitle {
  font-family: 'VT323', monospace;
  font-size: .8rem;
  color: var(--text-dim);
  letter-spacing: .5px;
}
.hp-recent-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-top: .4rem;
}
.hp-trending-badge {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(.35rem, .9vw, .45rem);
  color: #f87171;
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.3);
  padding: .15rem .4rem;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  text-shadow: 0 0 4px rgba(248,113,113,0.4);
}

/* Explore by Topic */
.hp-explore-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
}
.hp-explore-pill {
  font-family: 'VT323', monospace;
  font-size: .95rem;
  padding: .3rem .7rem;
  border: 1px solid;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
  letter-spacing: .5px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.hp-explore-pill:hover {
  filter: brightness(1.3);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hp-explore-count {
  font-size: .75rem;
  opacity: .5;
}

/* Directory Stats */
.hp-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  flex-wrap: wrap;
}
.hp-stat { text-align: center; min-width: 80px; }
.hp-stat-num {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(.7rem, 2vw, 1rem);
  color: #39ff14;
  text-shadow: 0 0 6px rgba(57,255,20,0.4);
}
.hp-stat-label {
  font-family: 'VT323', monospace;
  font-size: .75rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-top: .2rem;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .hp-highscores { gap: .4rem; }
  .hp-hs-card { padding: .5rem; }
  .hp-hs-emoji { font-size: 1.2rem; }
  .hp-recent-grid { grid-template-columns: 1fr; }
  .hp-stats { gap: 1rem; }
  .hp-stat { min-width: 60px; }
  .xp-ticker-label { padding: .4rem .5rem; font-size: .4rem; }
}

/* ═══ ACCESSIBILITY MENU ═══ */
.a11y-toggle {
  position: fixed; bottom: 20px; right: 20px;
  width: 44px; height: 44px;
  background: var(--bg-card); border: 1px solid #333; border-radius: 50%;
  color: var(--text-dim); font-size: 20px; cursor: pointer;
  z-index: 9997; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease; box-shadow: 0 2px 10px rgba(0,0,0,0.4);
  padding: 0; line-height: 1;
}
.a11y-toggle:hover { border-color: var(--amber); color: var(--amber); box-shadow: 0 0 12px rgba(255,191,0,0.2); }

.a11y-panel {
  position: fixed; bottom: 74px; right: 20px;
  background: var(--bg-card); border: 1px solid #333;
  padding: 16px; z-index: 9997; width: 220px;
  display: none; box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}
.a11y-panel.open { display: block; }
.a11y-title {
  font-family: 'VT323', 'Courier New', Courier, monospace;
  font-size: 16px; color: var(--amber); letter-spacing: 1px;
  margin-bottom: 14px; text-transform: uppercase; text-align: center;
  border-bottom: 1px solid #222; padding-bottom: 8px;
}
.a11y-group { margin-bottom: 14px; }
.a11y-label { font-family: 'VT323', 'Courier New', Courier, monospace; font-size: 14px; color: var(--text-dim); letter-spacing: 1px; margin-bottom: 8px; text-transform: uppercase; }
.a11y-row { display: flex; gap: 6px; }
.a11y-btn {
  font-family: 'VT323', 'Courier New', Courier, monospace;
  font-size: 14px; padding: 5px 10px; border: 1px solid #333;
  background: transparent; color: var(--text-dim); cursor: pointer;
  transition: all 0.15s ease; flex: 1; text-align: center; letter-spacing: 0.5px;
}
.a11y-btn:hover { border-color: var(--green); color: var(--green); }
.a11y-btn.active { border-color: var(--green); color: var(--green); background: rgba(57,255,20,0.06); }

.a11y-swatch { width: 100%; height: 28px; border: 1px solid #333; cursor: pointer; transition: all 0.15s ease; }
.a11y-swatch:hover { border-color: var(--green); }
.a11y-swatch.active { border-color: var(--green); box-shadow: 0 0 8px rgba(57,255,20,0.2); }
.a11y-swatch-default { background: var(--bg-dark); }
.a11y-swatch-highcon { background: #000; }
.a11y-swatch-light { background: #f0ede6; }
.a11y-swatch-sepia { background: #2a2218; }

/* ═══ ANIMATIONS ═══ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 50% { opacity: 0; } }

.card.hidden { display: none; }

/* Stagger card animations */
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }
.card:nth-child(6) { animation-delay: 0.3s; }
.card:nth-child(7) { animation-delay: 0.35s; }
.card:nth-child(8) { animation-delay: 0.4s; }
.card:nth-child(9) { animation-delay: 0.45s; }
.card:nth-child(10) { animation-delay: 0.5s; }
.card:nth-child(11) { animation-delay: 0.55s; }
.card:nth-child(12) { animation-delay: 0.6s; }
.card:nth-child(n+13) { animation-delay: 0.65s; }

/* ═══ ACCESSIBILITY SIZE OVERRIDES ═══ */
/* A+ (large) — base scale 112.5% (18px) */
html.a11y-large { font-size: 112.5%; }
html.a11y-large body { font-size: 1rem; }
html.a11y-large .card-desc { font-size: 1rem; }
html.a11y-large .card-title { font-size: 1.55rem; }
html.a11y-large .tag { font-size: 0.95rem; }
html.a11y-large .subtitle { font-size: 1rem; }
html.a11y-large .disclosure { font-size: 0.85rem; }
html.a11y-large .section-header { font-size: clamp(15px, 3vw, 20px); }
html.a11y-large .nav-pill { font-size: 1.15rem; }
html.a11y-large .nav-wrap.fixed .nav .nav-pill { font-size: 0.95rem; }
html.a11y-large .faq-q { font-size: 1.3rem; }
html.a11y-large .faq-a { font-size: 1rem; }
html.a11y-large .store-landing-mission { font-size: 1.05rem; }
html.a11y-large .store-landing-cta p { font-size: 1rem; }
html.a11y-large .store-search-input { font-size: 1.2rem; }
html.a11y-large .store-details { font-size: 0.9rem; }
html.a11y-large .store-page-intro p { font-size: 1rem; }
html.a11y-large .nearby-link { font-size: 1.05rem; }
html.a11y-large .breadcrumb { font-size: 0.9rem; }
html.a11y-large .footer { font-size: 1rem; }
html.a11y-large .footer-links { font-size: 0.85rem; }
html.a11y-large .footer-ai-disclosure { font-size: 0.75rem; }
html.a11y-large .market-card-header h3 { font-size: 1.4rem; }
html.a11y-large .market-count { font-size: 1rem; }
html.a11y-large .market-city-pill { font-size: 0.9rem; }
html.a11y-large .category-pill-landing { font-size: 1.05rem; }
html.a11y-large .contact-btn { font-size: 1rem; }

/* A++ (xlarge) — base scale 125% (20px) */
html.a11y-xlarge { font-size: 125%; }
html.a11y-xlarge body { font-size: 1rem; }
html.a11y-xlarge .card-desc { font-size: 1.05rem; }
html.a11y-xlarge .card-title { font-size: 1.75rem; }
html.a11y-xlarge .tag { font-size: 1.05rem; padding: 3px 10px; }
html.a11y-xlarge .subtitle { font-size: 1.1rem; }
html.a11y-xlarge .disclosure { font-size: 0.95rem; }
html.a11y-xlarge .section-header { font-size: clamp(17px, 3.5vw, 22px); }
html.a11y-xlarge .nav-pill { font-size: 1.25rem; }
html.a11y-xlarge .nav-wrap.fixed .nav .nav-pill { font-size: 1.05rem; }
html.a11y-xlarge .faq-q { font-size: 1.45rem; }
html.a11y-xlarge .faq-a { font-size: 1.1rem; }
html.a11y-xlarge .store-landing-mission { font-size: 1.15rem; }
html.a11y-xlarge .store-landing-cta p { font-size: 1.1rem; }
html.a11y-xlarge .store-search-input { font-size: 1.3rem; }
html.a11y-xlarge .store-details { font-size: 1rem; }
html.a11y-xlarge .store-page-intro p { font-size: 1.1rem; }
html.a11y-xlarge .nearby-link { font-size: 1.15rem; }
html.a11y-xlarge .breadcrumb { font-size: 1rem; }
html.a11y-xlarge .footer { font-size: 1.1rem; }
html.a11y-xlarge .footer-links { font-size: 0.95rem; }
html.a11y-xlarge .footer-ai-disclosure { font-size: 0.85rem; }
html.a11y-xlarge .market-card-header h3 { font-size: 1.55rem; }
html.a11y-xlarge .market-count { font-size: 1.1rem; }
html.a11y-xlarge .market-city-pill { font-size: 1rem; }
html.a11y-xlarge .category-pill-landing { font-size: 1.15rem; }
html.a11y-xlarge .contact-btn { font-size: 1.1rem; }

/* ═══ ACCESSIBILITY COLOR THEMES ═══ */
html.a11y-highcon { --bg-dark: #000; --bg-card: #0a0a0a; --bg-card-hover: #111; --text-primary: #fff; --text-dim: #bbb; }
html.a11y-highcon body::after, html.a11y-highcon body::before { opacity: 0; }

html.a11y-light {
  --bg-dark: #f0ede6; --bg-card: #e4e0d8; --bg-card-hover: #d8d4cc;
  --text-primary: #1a1a1a; --text-dim: #555;
  --red: #cc0000; --green: #007a00; --blue: #0066aa; --amber: #996600; --magenta: #990099;
}
html.a11y-light body::after, html.a11y-light body::before { opacity: 0; }
html.a11y-light .card { border-color: #ccc; }
html.a11y-light .card-title { color: #111; }
html.a11y-light .logo-text { background: linear-gradient(180deg, #333 0%, #666 50%, #333 100%); -webkit-background-clip: text; filter: none; -webkit-text-stroke: 0; }
html.a11y-light .nav-wrap.fixed .nav { background: rgba(240,237,230,0.95); border-bottom-color: #ccc; }
html.a11y-light .nav-logo { color: #666; }

html.a11y-sepia { --bg-dark: #2a2218; --bg-card: #342a1e; --bg-card-hover: #3e3428; --text-primary: #e8d8c4; --text-dim: #a08060; --amber: #d4a040; }
html.a11y-sepia body::after { background: repeating-linear-gradient(0deg, rgba(0,0,0,0.06) 0px, rgba(0,0,0,0.06) 1px, transparent 1px, transparent 3px); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .grid { max-width: 100%; padding: 0 16px 20px; }
  .section-header { max-width: 100%; padding: 30px 16px 16px; }
  .disclosure { max-width: 100%; }
}

@media (max-width: 768px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 0 14px 16px; }
  .header { padding: 50px 16px 30px; }
  .logo-text, .logo-shadow { font-size: clamp(22px, 5vw, 40px); }
  .section-header { font-size: 13px; padding: 24px 14px 14px; }
  .card-desc { font-size: 13px; }
  .tagline { font-size: clamp(14px, 2.5vw, 20px); }
  .insert-coin { font-size: 16px; }
  .pixel-deco { display: none; }

  /* ── Mobile nav: wrapping centered rows ── */
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
    padding: 6px 12px;
    overflow-x: visible;
  }
  .nav-logo {
    display: none !important;
  }
  .nav-divider { display: none !important; }
  .nav-pill {
    font-size: 14px;
    padding: 6px 12px;
  }

  /* Fixed nav on mobile — same wrapping, slightly smaller */
  .nav-wrap.fixed .nav {
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 5px 10px !important;
  }
  .nav-wrap.fixed .nav .nav-pill {
    font-size: 13px;
    padding: 5px 10px;
  }

  /* Sub-nav: also wraps */
  .sub-nav {
    flex-wrap: wrap;
    justify-content: center;
    padding: 5px 12px;
    gap: 5px;
    overflow-x: visible;
  }
  .sub-nav .nav-pill {
    font-size: 13px;
    padding: 5px 10px;
  }
  .nav-wrap.fixed .sub-nav .nav-pill {
    font-size: 12px;
    padding: 4px 8px;
  }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; padding: 0 12px 16px; gap: 10px; }
  .header { padding: 40px 12px 24px; }
  .card { padding: 16px; max-width: 100%; }
  .card-tags { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .card-title { font-size: 22px; }
  .card-desc { font-size: 13px; }
  .card-emoji { font-size: 24px; }
  .logo-monitor { padding: 8px 0 12px; }
  .logo-text, .logo-shadow { font-size: clamp(18px, 6vw, 32px); letter-spacing: 2px; }
  .logo-text { word-break: break-word; }
  .logo-bar-text { font-size: 12px; letter-spacing: 2px; }
  .logo-bar-line { flex: 0 1 30px; }
  .starfield { display: none; }
  .section-header { padding: 24px 12px 12px; font-size: 11px; }

  .nav { gap: 5px; padding: 5px 10px; }
  .nav-pill { font-size: 14px; padding: 6px 12px; }
  .nav-wrap.fixed .nav .nav-pill { font-size: 13px; padding: 5px 10px; }
  .sub-nav .nav-pill { font-size: 13px; padding: 5px 10px; }
  .nav-wrap.fixed .sub-nav .nav-pill { font-size: 12px; padding: 4px 8px; }

  .disclosure { padding: 16px 12px; font-size: 11px; }
  .insert-coin { font-size: 14px; }
  .tagline { font-size: 14px; letter-spacing: 1px; }
  .subtitle { font-size: 12px; }
  .footer { font-size: 14px; padding: 20px 12px 40px; }
  .footer-links { font-size: 11px; }
  .footer-disclaimer { display: block; margin-top: 6px; }
  .contact-section { padding: 20px 12px; }
  .contact-desc { font-size: 11px; }
  .contact-btn { font-size: 15px; }

  .newsletter-section { margin: 20px 12px 0; padding: 22px 16px; }
  .newsletter-form { flex-direction: column; gap: 8px; }
  .newsletter-input { border-right: 1px solid #333; font-size: 16px; }
  .newsletter-btn { width: 100%; padding: 12px 20px; }
  .newsletter-title { font-size: 20px; }
  .newsletter-desc { font-size: 12px; }
  .newsletter-progress { bottom: auto; top: calc(100% - 46px); }

  .faq-q { font-size: 18px; padding: 14px 14px; }
  .faq-a { font-size: 13px; padding: 0 14px 14px 30px; }
  .faq-section { padding: 0 12px 16px; }
  .share-bar { padding: 16px 12px; }
  .share-btn { font-size: 14px; padding: 7px 14px; }

  .a11y-toggle { bottom: 16px; right: 12px; width: 40px; height: 40px; font-size: 18px; }
  .a11y-panel { bottom: 64px; right: 12px; width: 200px; padding: 14px; }

  .affiliate-cta { margin-left: 12px; margin-right: 12px; }
  .suggest-section { margin-left: 12px; margin-right: 12px; }
  .nearby-section { padding: 0 12px; }
  .store-page-intro { padding: 0 12px; }
}

@media (max-width: 360px) {
  .logo-text, .logo-shadow { font-size: 16px; letter-spacing: 1px; }
  .logo-bar-text { font-size: 10px; letter-spacing: 1px; }
  .nav-pill { font-size: 13px; padding: 7px 11px; }
  .nav-wrap.fixed .nav-logo { font-size: 10px; }
  .nav-wrap.fixed .nav .nav-pill { font-size: 12px; padding: 6px 10px; }
  .card-title { font-size: 20px; }
  .card { padding: 14px; }
  .section-header { font-size: 10px; }
  .grid { padding: 0 8px 12px; }
}

/* ═══ STORE LOCATION PAGES ═══ */
.store-page-intro { max-width: 900px; margin: 2rem auto; padding: 0 1rem; text-align: center; }
.store-page-intro h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(.9rem, 2.5vw, 1.3rem);
  color: #fff; line-height: 1.6; margin-bottom: 1rem;
}
.store-page-intro .city-name { color: var(--amber); }
.store-page-intro p { font-size: .9rem; color: var(--text-dim); line-height: 1.7; max-width: 700px; margin-left: auto; margin-right: auto; }
.store-count {
  display: inline-block; font-family: 'VT323', monospace; font-size: 1.1rem;
  color: var(--green); border: 1px solid rgba(57,255,20,0.3);
  padding: .2rem .6rem; border-radius: 3px; margin-top: .75rem;
  background: rgba(57,255,20,0.04);
}

.breadcrumb {
  font-size: .75rem; color: var(--text-dim); margin-top: .5rem;
  max-width: 1200px; margin-left: auto; margin-right: auto; padding: 0 20px;
  text-align: center;
}
.breadcrumb a { color: var(--amber); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb span.bc-sep { margin: 0 .35rem; color: #444; }
.breadcrumb .bc-current { color: var(--green); text-shadow: 0 0 6px rgba(57,255,20,0.2); }

/* Store card details (for location pages) */
.store-details { font-size: .8rem; color: var(--text-dim); margin-bottom: .75rem; }
.detail-row { display: flex; align-items: flex-start; gap: .5rem; margin-bottom: .35rem; }
.detail-label { color: #555; min-width: 18px; text-align: center; flex-shrink: 0; }
.detail-value { color: var(--text-primary); }
.detail-value a { color: var(--amber); text-decoration: none; }
.detail-value a:hover { text-decoration: underline; }

.card-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: auto; }
.card-btn {
  font-family: 'VT323', monospace; font-size: .9rem;
  padding: .35rem .7rem; border: 1px solid #222; border-radius: 3px;
  background: transparent; color: var(--text-dim); cursor: pointer;
  text-decoration: none; transition: all .2s; min-height: 36px;
  display: inline-flex; align-items: center; gap: .3rem;
}
.card-btn:hover { border-color: var(--amber); color: #fff; background: rgba(255,191,0,.06); }
.card-btn.primary { border-color: var(--amber); color: var(--amber); }
.card-btn.primary:hover { background: rgba(255,191,0,.12); color: #fff; }

/* ═══ SINGLE STORE DETAIL CARD ═══ */
body.single-store .card {
  border-color: #333;
  cursor: default;
  opacity: 1;
  animation: none;
}
body.single-store .card:hover {
  transform: none;
  box-shadow: none;
}
body.single-store .card::before {
  opacity: 1;
}
body.single-store .card.featured::before {
  background: linear-gradient(90deg, var(--amber), #ffe566, var(--amber));
}

.suggest-section {
  max-width: 900px; margin: 0 auto 3rem; padding: 1.5rem;
  background: var(--bg-card); border: 1px dashed #333; border-radius: 6px;
  text-align: center;
}
.suggest-section h3 { font-family: 'VT323', monospace; font-size: 1.3rem; color: #fff; margin-bottom: .5rem; }
.suggest-section p { font-size: .85rem; color: var(--text-dim); margin-bottom: .75rem; line-height: 1.6; }
.suggest-section a { color: var(--amber); text-decoration: none; }
.suggest-section a:hover { text-decoration: underline; }

.nearby-section { max-width: 900px; margin: 0 auto 3rem; padding: 0 1rem; text-align: center; }
.nearby-section h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(.55rem, 1.5vw, .7rem);
  color: var(--text-dim); margin-bottom: 1rem; letter-spacing: 1px;
}
.nearby-links { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.nearby-link {
  font-family: 'VT323', monospace; font-size: 1.15rem;
  padding: .45rem .85rem; border: 1px solid rgba(255,191,0,0.4); border-radius: 3px;
  color: var(--amber); text-decoration: none; transition: all .2s;
  background: rgba(255,191,0,0.04);
}
.nearby-link:hover {
  border-color: var(--amber); color: #fff;
  background: rgba(255,191,0,0.1);
  box-shadow: 0 0 10px rgba(255,191,0,0.15);
}
.nearby-link.coming-soon {
  border-color: #2a2a2a; color: #444; background: transparent;
  cursor: default; pointer-events: none;
}
.nearby-link.coming-soon::after { content: ' ⏳'; font-size: .85rem; }

/* ═══ AFFILIATE CTA BOX ═══ */
.affiliate-cta {
  max-width: 900px; margin: 0 auto 3rem; padding: 1.5rem;
  background: var(--bg-card); border: 1px solid #222; border-radius: 6px;
  text-align: center; position: relative; overflow: hidden;
}

/* ═══ STORE MAP EMBED ═══ */
.store-map {
  margin-top: 2rem; border: 1px solid #222; overflow: hidden;
  background: var(--bg-card); position: relative;
}
.store-map iframe {
  width: 100%; height: 300px; border: none; display: block;
  filter: invert(90%) hue-rotate(180deg) brightness(0.8) contrast(1.2);
}
.store-map-label {
  font-family: 'VT323', monospace; font-size: .85rem;
  color: var(--text-dim); padding: .5rem .75rem;
  letter-spacing: 1px; display: flex; align-items: center; gap: .5rem;
  border-top: 1px solid #222; flex-wrap: wrap;
}
.store-map-label a { color: var(--amber); text-decoration: none; font-size: .9rem; }
.store-map-label a:hover { text-decoration: underline; }

/* ═══ STORE PHOTO GALLERY ═══ */
.store-gallery { margin-top: 2rem; }
.store-gallery-title {
  font-family: 'VT323', monospace; font-size: 1.1rem;
  color: var(--text-dim); letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: .75rem;
}
.store-gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.store-gallery-grid img {
  width: 100%; height: 140px; object-fit: cover;
  border: 1px solid #222; cursor: pointer;
  transition: all .2s ease; display: block;
}
.store-gallery-grid img:hover {
  border-color: var(--amber); transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.store-lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92);
  z-index: 10000; display: none; align-items: center; justify-content: center;
  cursor: pointer; padding: 2rem;
}
.store-lightbox.open { display: flex; }
.store-lightbox img {
  max-width: 90vw; max-height: 85vh; object-fit: contain; border: 2px solid #333;
}
.store-lightbox-close {
  position: absolute; top: 1rem; right: 1.5rem;
  font-family: 'VT323', monospace; font-size: 2rem;
  color: var(--text-dim); cursor: pointer; background: none; border: none;
  transition: color .2s;
}
.store-lightbox-close:hover { color: #fff; }

@media (max-width: 480px) {
  .store-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .store-gallery-grid img { height: 120px; }
  .store-map iframe { height: 220px; }
}

/* ═══ FILTER: Divider between primary and secondary results ═══ */
.filter-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.5rem 0;
  grid-column: 1 / -1;
  min-height: 30px;
}
.filter-divider-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.filter-divider-text {
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
  color: var(--text-dim);
  letter-spacing: 2px;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════
   STORE DIRECTORY LANDING PAGE (/stores/)
   ═══════════════════════════════════════════════════ */

.store-landing-hero {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}
.store-landing-badge {
  font-family: 'VT323', monospace;
  font-size: 1rem;
  color: var(--amber);
  letter-spacing: 3px;
  margin-bottom: 1rem;
}
.store-landing-hero h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--green);
  text-shadow: 0 0 20px rgba(0,255,65,0.3);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.store-landing-mission {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Search Bar */
.store-landing-search {
  max-width: 500px;
  margin: 0 auto 2rem;
}
.store-search-wrap {
  position: relative;
}
.store-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  pointer-events: none;
  z-index: 2;
}
.store-search-input {
  width: 100%;
  padding: 14px 18px 14px 44px;
  font-family: 'VT323', monospace;
  font-size: 1.15rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.store-search-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 12px rgba(0,255,65,0.15);
}
.store-search-input::placeholder {
  color: var(--text-dim);
  opacity: 0.6;
}
.store-search-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.15);
  border-top: none;
  border-radius: 0 0 8px 8px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 100;
}
.store-search-dropdown.active { display: block; }
.store-search-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.store-search-result:hover {
  background: rgba(0,255,65,0.08);
}
.store-search-result:last-child { border-bottom: none; }
.search-result-path {
  font-size: 0.85rem;
  color: var(--text-dim);
}
.search-result-count {
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
  color: var(--amber);
  white-space: nowrap;
  margin-left: 12px;
}
.store-search-empty {
  padding: 14px 16px;
  color: var(--text-dim);
  font-size: 0.9rem;
  text-align: center;
}

/* Stats Row */
.store-landing-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-number {
  display: block;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--green);
  text-shadow: 0 0 10px rgba(0,255,65,0.2);
}
.stat-label {
  font-family: 'VT323', monospace;
  font-size: 0.95rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.stat-dot {
  color: var(--text-dim);
  opacity: 0.3;
  font-size: 1.5rem;
}

/* Market Cards */
.store-landing-markets {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}
.store-landing-markets h2 {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: var(--amber);
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 1.5rem;
}
.market-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.market-card {
  display: block;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.market-card:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,255,65,0.08);
}
.market-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}
.market-card-header h3 {
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  color: var(--green);
  margin: 0;
}
.market-count {
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.market-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.market-city-pill {
  font-size: 0.8rem;
  color: var(--text-dim);
  background: rgba(255,255,255,0.05);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.market-city-pill small {
  opacity: 0.6;
}
.market-city-more {
  font-family: 'VT323', monospace;
  font-size: 0.85rem;
  color: var(--amber);
  padding: 3px 8px;
}

/* Category Breakdown */
.store-landing-categories {
  max-width: 700px;
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem;
  text-align: center;
}
.store-landing-categories h2 {
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
  color: var(--amber);
  letter-spacing: 3px;
  margin-bottom: 1rem;
}
.category-pills-landing {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.category-pill-landing {
  font-family: 'VT323', monospace;
  font-size: 1rem;
  padding: 6px 14px;
  border-radius: 6px;
  background: rgba(0,255,65,0.08);
  border: 1px solid rgba(0,255,65,0.2);
  color: var(--green);
}
.category-pill-landing small {
  opacity: 0.5;
  margin-left: 4px;
}
.category-pill-landing.tag-arcades { background: rgba(255,107,0,0.1); border-color: rgba(255,107,0,0.3); color: #ff6b00; }
.category-pill-landing.tag-music { background: rgba(0,200,120,0.08); border-color: rgba(0,200,120,0.2); color: #00c878; }
.category-pill-landing.tag-tabletop { background: rgba(255,191,0,0.08); border-color: rgba(255,191,0,0.2); color: var(--amber); }
.category-pill-landing.tag-thrift { background: rgba(0,180,220,0.08); border-color: rgba(0,180,220,0.2); color: #00b4dc; }
.category-pill-landing.tag-comics,
.category-pill-landing.tag-collectibles { background: rgba(200,0,200,0.08); border-color: rgba(200,0,200,0.2); color: #c850c8; }

/* CTA */
.store-landing-cta {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}
.store-landing-cta h2 {
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.store-landing-cta p {
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Mobile */
@media (max-width: 600px) {
  .store-landing-hero { padding: 2rem 1rem 1.5rem; }
  .market-cards { grid-template-columns: 1fr; }
  .stat-dot { display: none; }
  .store-landing-stats { gap: 1.5rem 2rem; }
}
.search-result-store .search-result-path { color: var(--green); }
.search-result-store .search-result-count { color: var(--green); opacity: 0.7; }
.search-result-icon { font-size: 14px; }

/* ═══════════════════════════════════════════════════
   STORE CLAIM SYSTEM
   ═══════════════════════════════════════════════════ */

/* Claim button on single store */
.claim-btn {
  margin-top: 0.75rem;
  border: 1px dashed rgba(255, 191, 0, 0.4) !important;
  color: var(--amber) !important;
  background: rgba(255, 191, 0, 0.06) !important;
}
.claim-btn:hover {
  background: rgba(255, 191, 0, 0.12) !important;
  border-style: solid !important;
}
.claim-hint {
  font-family: 'VT323', monospace;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 0.4rem;
  letter-spacing: 0.5px;
}

/* Claim / verified badges */
.store-claim-badge {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-family: 'VT323', monospace;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.store-claim-badge.verified {
  color: var(--green);
  background: rgba(57, 255, 20, 0.06);
  border: 1px solid rgba(57, 255, 20, 0.3);
}
.store-claim-badge.verified a {
  color: var(--green);
  text-decoration: underline;
}
.store-claim-badge.pending {
  color: var(--amber);
  background: rgba(255, 191, 0, 0.06);
  border: 1px solid rgba(255, 191, 0, 0.3);
}

/* Claim modal overlay */
.rgbn-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.rgbn-modal {
  background: var(--bg-card, #111);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.rgbn-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.rgbn-modal-close:hover { color: #fff; }
.rgbn-modal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.rgbn-modal-header h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.6rem, 2vw, 0.8rem);
  color: #fff;
  margin: 0;
  line-height: 1.5;
}
.rgbn-modal-subtitle {
  font-family: 'VT323', monospace;
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  line-height: 1.4;
}

/* Auth tabs */
.rgbn-claim-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid #333;
}
.rgbn-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-dim);
  font-family: 'VT323', monospace;
  font-size: 1rem;
  padding: 0.5rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.rgbn-tab:hover { color: #fff; }
.rgbn-tab.active {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

/* Form fields in claim modal + dashboard */
.rgbn-field {
  margin-bottom: 0.75rem;
}
.rgbn-field label {
  display: block;
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
  letter-spacing: 0.5px;
}
.rgbn-field input[type="text"],
.rgbn-field input[type="email"],
.rgbn-field input[type="password"],
.rgbn-field input[type="url"],
.rgbn-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid #333;
  border-radius: 4px;
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  padding: 0.5rem 0.6rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.rgbn-field input:focus,
.rgbn-field textarea:focus {
  outline: none;
  border-color: var(--amber);
}
.rgbn-field textarea {
  resize: vertical;
  min-height: 80px;
}
.rgbn-field small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
}
.rgbn-claim-domain-note {
  color: var(--green);
  font-family: 'VT323', monospace;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}
.rgbn-claim-result {
  margin-top: 0.75rem;
  font-family: 'VT323', monospace;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}
.rgbn-claim-result.success { color: var(--green); }
.rgbn-claim-result.error { color: var(--red); }
.rgbn-claim-result.pending { color: var(--amber); }

/* ═══════════════════════════════════════════════════
   OWNER DASHBOARD (/my-store/)
   ═══════════════════════════════════════════════════ */

.rgbn-dashboard {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem;
}
.rgbn-dashboard-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #222;
}
.rgbn-dashboard-welcome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.rgbn-dashboard-welcome h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.6rem, 2vw, 0.8rem);
  color: #fff;
  margin: 0;
  line-height: 1.5;
}
.rgbn-dashboard-welcome p {
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0.2rem 0 0;
}
.rgbn-dashboard-welcome p a {
  color: var(--red);
  text-decoration: none;
}
.rgbn-dashboard-avatar {
  font-size: 36px;
}

.rgbn-dashboard-section h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: var(--amber);
  margin-bottom: 0.75rem;
}
.rgbn-dashboard-pending-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 191, 0, 0.04);
  border: 1px solid rgba(255, 191, 0, 0.2);
  border-radius: 6px;
  margin-bottom: 0.75rem;
}
.rgbn-dashboard-pending-card strong {
  color: #fff;
  font-family: 'VT323', monospace;
  font-size: 1.1rem;
}
.rgbn-dashboard-pending-card p {
  color: var(--text-dim);
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
  margin: 0.2rem 0 0;
}
.rgbn-dashboard-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-dim);
  font-family: 'VT323', monospace;
  font-size: 1rem;
}
.rgbn-dashboard-empty .card-btn { margin-top: 1rem; }

/* Store edit card */
.rgbn-dashboard-store {
  background: var(--bg-card, #111);
  border: 1px solid #222;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.rgbn-dashboard-store::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--green));
}
.rgbn-dashboard-store-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.rgbn-dashboard-store-header h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.55rem, 1.8vw, 0.7rem);
  color: #fff;
  line-height: 1.5;
}
.rgbn-dashboard-store-header a {
  color: var(--green);
  text-decoration: none;
  font-family: 'VT323', monospace;
}
.rgbn-dashboard-form { }

.rgbn-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 500px) {
  .rgbn-field-row { grid-template-columns: 1fr; }
}

/* Photo grid in dashboard */
.rgbn-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.rgbn-photo-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #333;
}
.rgbn-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rgbn-photo-delete {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  background: rgba(255, 45, 45, 0.8);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}
.rgbn-photo-thumb:hover .rgbn-photo-delete { display: flex; }
.rgbn-photo-upload {
  aspect-ratio: 1;
  border: 2px dashed #333;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.rgbn-photo-upload:hover { border-color: var(--green); }
.rgbn-photo-upload span {
  font-family: 'VT323', monospace;
  font-size: 1rem;
  color: var(--text-dim);
}
.rgbn-save-status {
  font-family: 'VT323', monospace;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════
   CLAIM LANDING PAGE (/my-store/ logged out)
   ═══════════════════════════════════════════════════ */

.rgbn-claim-landing {
  max-width: 700px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Hero */
.rgbn-claim-landing-hero {
  text-align: center;
  padding: 2.5rem 1rem 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #222;
}
.rgbn-claim-landing-badge {
  display: inline-block;
  font-family: 'VT323', monospace;
  font-size: 0.85rem;
  color: var(--green);
  border: 1px solid rgba(57, 255, 20, 0.35);
  background: rgba(57, 255, 20, 0.06);
  padding: 0.2rem 0.75rem;
  border-radius: 3px;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}
.rgbn-claim-landing-hero h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.7rem, 2.5vw, 1rem);
  color: #fff;
  line-height: 1.8;
  margin: 0 0 0.75rem;
}
.rgbn-claim-landing-hero p {
  font-family: 'VT323', monospace;
  font-size: 1.15rem;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 520px;
  margin: 0 auto;
  letter-spacing: 0.3px;
}

/* Feature cards */
.rgbn-claim-landing-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.rgbn-claim-feature {
  padding: 1rem;
  background: var(--bg-card, #111);
  border: 1px solid #222;
  border-radius: 6px;
  text-align: center;
}
.rgbn-claim-feature-icon {
  display: block;
  font-size: 24px;
  margin-bottom: 0.5rem;
}
.rgbn-claim-feature h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: #fff;
  margin: 0 0 0.4rem;
  line-height: 1.6;
}
.rgbn-claim-feature p {
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.4;
  margin: 0;
}

/* Steps */
.rgbn-claim-landing-steps {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #222;
}
.rgbn-claim-landing-steps h2,
.rgbn-claim-landing-cta h2,
.rgbn-claim-landing-faq h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.55rem, 1.8vw, 0.7rem);
  color: var(--amber);
  text-align: center;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
.rgbn-claim-steps-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.rgbn-claim-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-card, #111);
  border: 1px solid #222;
  border-radius: 6px;
}
.rgbn-claim-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 191, 0, 0.12);
  border: 1px solid rgba(255, 191, 0, 0.3);
  border-radius: 50%;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: var(--amber);
}
.rgbn-claim-step strong {
  display: block;
  font-family: 'VT323', monospace;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 0.5px;
}
.rgbn-claim-step p {
  font-family: 'VT323', monospace;
  font-size: 0.9rem;
  color: var(--text-dim);
  margin: 0.15rem 0 0;
  line-height: 1.4;
}
.rgbn-claim-step a {
  color: var(--green);
  text-decoration: none;
}

/* CTA */
.rgbn-claim-landing-cta {
  text-align: center;
  padding: 1.5rem 1rem;
  margin-bottom: 2rem;
  background: var(--bg-card, #111);
  border: 1px solid #222;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.rgbn-claim-landing-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--amber), var(--green));
}
.rgbn-claim-landing-cta p {
  font-family: 'VT323', monospace;
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  line-height: 1.4;
}
.rgbn-claim-landing-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* FAQ */
.rgbn-claim-landing-faq {
  margin-bottom: 2rem;
}
.rgbn-claim-faq-item {
  border: 1px solid #222;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.rgbn-claim-faq-item summary {
  padding: 0.65rem 0.85rem;
  font-family: 'VT323', monospace;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.5px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.rgbn-claim-faq-item summary::before {
  content: '▸';
  color: var(--amber);
  font-size: 0.8rem;
  transition: transform 0.2s;
}
.rgbn-claim-faq-item[open] summary::before {
  transform: rotate(90deg);
}
.rgbn-claim-faq-item summary::-webkit-details-marker { display: none; }
.rgbn-claim-faq-item p {
  padding: 0 0.85rem 0.65rem;
  font-family: 'VT323', monospace;
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}
.rgbn-claim-faq-item a {
  color: var(--green);
  text-decoration: none;
}

/* Mobile */
@media (max-width: 600px) {
  .rgbn-claim-landing-features { grid-template-columns: 1fr; }
  .rgbn-claim-landing-hero { padding: 1.5rem 0.5rem 1.25rem; }
}

/* ═══════════════════════════════════════════════════
   STICKY ACTION BAR — stores, resources, events
   ═══════════════════════════════════════════════════ */
.rgbn-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: rgba(10, 10, 14, 0.95);
  border-top: 1px solid rgba(57, 255, 20, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0;
}
.rgbn-action-bar-glow {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(57,255,20,.3), rgba(57,255,20,.5), rgba(57,255,20,.3), transparent);
}
.rgbn-action-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  max-width: 700px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.rgbn-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(0.4rem, 1.1vw, 0.5rem);
  padding: 0.45rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
}
.rgbn-action-share {
  background: rgba(0, 212, 255, 0.06);
  border-color: rgba(0, 212, 255, 0.25);
  color: #00d4ff;
}
.rgbn-action-share:hover {
  background: rgba(0, 212, 255, 0.15);
  border-color: rgba(0, 212, 255, 0.45);
}
.rgbn-action-link {
  background: rgba(255, 191, 0, 0.06);
  border-color: rgba(255, 191, 0, 0.25);
  color: #ffbf00;
}
.rgbn-action-link:hover {
  background: rgba(255, 191, 0, 0.15);
  border-color: rgba(255, 191, 0, 0.45);
}
.rgbn-action-shortlink {
  background: rgba(57, 255, 20, 0.04);
  border-color: rgba(57, 255, 20, 0.2);
  color: #39ff14;
  font-family: 'VT323', monospace !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.5px;
}
.rgbn-action-shortlink:hover {
  background: rgba(57, 255, 20, 0.12);
  border-color: rgba(57, 255, 20, 0.4);
}

/* Add bottom padding to page content so it doesn't get hidden behind bar */
body.single-store .footer,
body.single-resource .footer,
body.single-event .footer {
  padding-bottom: 70px;
}

/* iOS safe area */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .rgbn-action-bar {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Mobile: smaller gaps, wrap gracefully */
@media (max-width: 480px) {
  .rgbn-action-bar-inner {
    gap: 6px;
    padding: 8px 10px;
  }
  .rgbn-action-btn {
    font-size: clamp(0.35rem, 2.5vw, 0.45rem);
    padding: 0.4rem 0.6rem;
  }
  .rgbn-xp-attend {
    font-size: clamp(0.35rem, 2.5vw, 0.45rem) !important;
    padding: 0.4rem 0.7rem !important;
  }
  .rgbn-xp-upvote {
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
  }
}
