/* ============================================================
   SCANLINES + VIGNETTE
   ============================================================ */
#ctg-scanlines {
  position: fixed; inset: 0; z-index: 90;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: .5;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,.5) 0px, rgba(0,0,0,.5) 1px,
    transparent 1px, transparent 3px
  );
}

#ctg-vignette {
  position: fixed; inset: 0; z-index: 91;
  pointer-events: none;
  opacity: .06;
  background: radial-gradient(circle at 50% 50%, transparent 60%, #000 100%);
}

/* ============================================================
   COMPONENT A: TICKER BAR
   Sits in normal document flow — scrolls away, then nav sticks.
   ============================================================ */
#ctg-ticker {
  overflow: hidden;
  background: var(--ctg-lime);
  border-bottom: 3px solid var(--ctg-dark);
  padding: 9px 0;
  white-space: nowrap;
  position: relative;
  z-index: 60;
}

.ctg-ticker__track {
  display: inline-flex;
  animation: ctgMarquee 22s linear infinite;
}

.ctg-ticker__track:hover {
  animation-play-state: paused;
}

.ctg-ticker__content {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  line-height: 1.4;
  color: var(--ctg-dark);
  padding-right: 80px;
  white-space: nowrap;
}

/* ============================================================
   COMPONENT B: STICKY NAV
   ============================================================ */
#ctg-nav {
  position: sticky;
  top: 0;
  z-index: 55;
  background: rgba(14, 10, 4, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255, 184, 28, .18);
  transition: box-shadow .3s ease;
}

#ctg-nav.is-scrolled {
  box-shadow: 0 4px 28px rgba(0, 0, 0, .7);
}

.ctg-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
}

/* --- Logo --- */
.ctg-nav__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.ctg-nav__logo img {
  height: 34px;
  width: auto;
  filter: drop-shadow(2px 2px 0 #0A0703);
}

.ctg-nav__site-name {
  font-family: 'Bungee', sans-serif;
  font-size: 1.2rem;
  color: var(--ctg-gold);
  filter: drop-shadow(2px 2px 0 #0A0703);
  white-space: nowrap;
}

/* --- Right controls --- */
.ctg-nav__controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* --- LIVE badge --- */
.ctg-nav__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ctg-red);
  color: #fff;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 6px 11px;
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
  animation: ctgPulse 2s infinite;
}

.ctg-nav__live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  animation: ctgBlink 1s steps(1) infinite;
}

/* --- Cart button --- */
.ctg-nav__cart {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--ctg-gold);
  color: var(--ctg-dark);
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 7px 12px;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  white-space: nowrap;
  transition: background .2s ease, transform .15s ease;
}

.ctg-nav__cart:hover {
  background: var(--ctg-lime);
}

.ctg-nav__cart.ctg-cart-pop {
  animation: ctgCartPop .5s ease forwards;
}

/* --- Hamburger button --- */
.ctg-nav__hamburger {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0 4px 8px;
  line-height: 1;
}

.ctg-nav__hamburger-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--ctg-fg);
  display: block;
  margin-bottom: 6px;
}

.ctg-nav__bar {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--ctg-gold);
  border-radius: 1px;
  margin-bottom: 4px;
  transition: transform .25s ease, opacity .25s ease;
  transform-origin: center;
}

.ctg-nav__bar:last-child { margin-bottom: 0; }

/* Hamburger → X transition */
.ctg-nav__hamburger[aria-expanded="true"] .ctg-nav__bar:nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}
.ctg-nav__hamburger[aria-expanded="true"] .ctg-nav__bar:nth-child(3) {
  opacity: 0;
}
.ctg-nav__hamburger[aria-expanded="true"] .ctg-nav__bar:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  .ctg-nav__inner { padding: 12px 16px; }
  .ctg-nav__controls { gap: 10px; }
  .ctg-nav__live { font-size: 8px; padding: 5px 8px; }
  .ctg-nav__cart { font-size: 8px; padding: 6px 10px; }
}
