scrolling-carousel {
}

html:has(scrolling-carousel),
body:has(scrolling-carousel) {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--chalk);
  /* font-family: 'Space Grotesk', sans-serif; */
  overscroll-behavior: none;
  --bg: #0a0d14;
  --chalk: #ede7dc;
  --amber: #d4a24c;
  --line: rgba(237, 231, 220, 0.14);
}

scrolling-carousel .mono {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- NAV ---------- */
scrolling-carousel nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 40px;
  z-index: 50;
  mix-blend-mode: difference;
}
scrolling-carousel .logo {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
}
scrolling-carousel .logo span {
  color: var(--amber);
}
scrolling-carousel .nav-links {
  display: flex;
  gap: 28px;
  font-size: 12px;
}
scrolling-carousel .nav-links a {
  color: var(--chalk);
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 0.2s;
}
scrolling-carousel .nav-links a:hover {
  opacity: 1;
}

/* ---------- HORIZONTAL RIG ---------- */
scrolling-carousel .viewport {
  position: fixed;
  inset: 0;
  overflow: hidden;
  touch-action: none;
}
scrolling-carousel .track {
  display: flex;
  height: 100%;
  will-change: transform;
  cursor: grab;
}
scrolling-carousel .hpanel {
  flex: 0 0 100vw;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-right: 1px solid var(--line);
  padding: 0 clamp(24px, 6vw, 90px);
}

scrolling-carousel .panel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.8;
}
scrolling-carousel .panel-bg :is(canvas, img, video) {
  width: 100%;
  height: 100%;
  display: block;
}
scrolling-carousel .panel-bg :is(img, video) {
  object-fit: cover;
}
scrolling-carousel .panel-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--bg) 6%, rgba(10, 13, 20, 0.35) 45%, transparent 70%);
  background: linear-gradient(90deg, rgba(10, 13, 20, 0.45) 0%, rgba(10, 13, 20, 0.45) 1000%);
}

/* ---------- HERO PANEL ---------- */
scrolling-carousel .hero .hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(120% 120% at 20% 80%, transparent 30%, var(--bg) 90%);
}
scrolling-carousel .hero-body {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
scrolling-carousel .eyebrow {
  font-size: 11px;
  color: var(--amber);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
scrolling-carousel .eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  animation: pulse 1.8s infinite ease-in-out;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
scrolling-carousel h1.hero-title {
  font-size: clamp(46px, 8vw, 120px);
  line-height: 0.92;
  font-weight: 700;
}
scrolling-carousel .hero-sub {
  margin-top: 22px;
  max-width: 460px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(237, 231, 220, 0.7);
}
scrolling-carousel .hero-archive {
  margin-top: 34px;
  font-size: 11px;
  color: rgba(237, 231, 220, 0.5);
}

/* ---------- GAME PANELS ---------- */
scrolling-carousel .panel-body {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: auto;
  text-align: center;
  text-decoration: none;
}
scrolling-carousel .panel-index {
  font-size: 11px;
  color: var(--accent, var(--amber));
  margin-bottom: 14px;
  display: block;
}
scrolling-carousel .panel-title {
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
  line-height: .9;
  letter-spacing: -.2rem;
  font-size: clamp(50px, 24.286px + 8.036vw, 140px);
}
@media (max-width: 768px) {
  
  scrolling-carousel .panel-title {
    font-size: clamp(36px, 5.5vw, 72px);
    letter-spacing: -.1rem;
  }
}

scrolling-carousel .panel-tag {
  font-size: 16px;
  color: white;
  max-width: 560px;
  width: fit-content;
  margin: auto;
  margin-top: 16px;
  font-size: 1.2em;
  font-weight: 500;
}
scrolling-carousel .panel-tag {
  padding-bottom: 2px;
  background-size: 0 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  background-image: linear-gradient(var(--text), var(--text));
  transition:
  color 1s cubic-bezier(0.23, 1, 0.32, 1),
  background 1s cubic-bezier(0.23, 1, 0.32, 1);
}
scrolling-carousel .panel-body:hover .panel-tag {
  background-size: 100% 2px;
}

@media (max-width: 768px) {
  scrolling-carousel .panel-tag {
    background: none;
  }
}
scrolling-carousel .panel-meta {
  margin-top: 30px;
  display: flex;
  gap: 22px;
  font-size: 11px;
  color: rgba(237, 231, 220, 0.55);
}
scrolling-carousel .panel-meta:empty{
  display: none;
}
scrolling-carousel .panel-cta {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  padding: 12px 22px;
  border: 1px solid rgba(237, 231, 220, 0.35);
  background: transparent;
  color: var(--chalk);
  cursor: pointer;
  transition:
    border-color 0.25s,
    background 0.25s;
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
scrolling-carousel .panel-cta:hover {
  border-color: var(--accent, var(--amber));
  background: rgba(212, 162, 76, 0.08);
}

/* ---------- SCROLL UI ---------- */
scrolling-carousel .hud {
  position: fixed;
  z-index: 40;
  bottom: 34px;
  left: clamp(24px, 6vw, 90px);
  right: clamp(24px, 6vw, 90px);
  display: flex;
  align-items: center;
  gap: 18px;
  mix-blend-mode: difference;
  pointer-events: none;
  display: none;
}
scrolling-carousel .hud .count {
  font-size: 11px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
scrolling-carousel .hud .rail {
  flex: 1;
  height: 1px;
  background: rgba(237, 231, 220, 0.25);
  position: relative;
}
scrolling-carousel .hud .fill {
  position: absolute;
  top: -1px;
  left: 0;
  height: 3px;
  background: white;
  width: 0;
  transition: width 0.6s cubic-bezier(0.76, 0, 0.24, 1);
}
scrolling-carousel .hud .hint {
  font-size: 11px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
scrolling-carousel .hud .hint .arrows {
  animation: nudge 1.6s infinite ease-in-out;
}
@keyframes nudge {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.6;
  }
  50% {
    transform: translateX(5px);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  scrolling-carousel nav {
    padding: 18px 20px;
  }
  scrolling-carousel .hud .hint .word {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  scrolling-carousel .eyebrow::before,
  scrolling-carousel .hud .hint .arrows {
    animation: none;
  }
}
