/* =====================================================================
   ISEKOI — Global styles
   ---------------------------------------------------------------------
   Consumed by Astro Layout. Imports tokens.css upstream.
   Contains: reset, body composition (background image, grid, grain,
   scanline), all component styles, responsive media queries.

   Does NOT contain: design tokens or decorative utility classes
   (.tech-label, .id-stamp, .slash-prefix, .rotated-label) — those
   live in tokens.css and are shared with the WC child theme.

   Reference: mockup-v4-homepage.html (visual ground truth)
   ===================================================================== */


/* ---------------------------------------------------------------------
   Reset
   --------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse at 22% 20%, rgba(180, 60, 200, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 78% 65%, rgba(61, 168, 255, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 90%, rgba(120, 40, 180, 0.2) 0%, transparent 50%),
    linear-gradient(135deg, #050a18 0%, #1a0824 40%, #060912 100%);
  background-attachment: fixed;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* CAD grid overlay (64px squares) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}

/* Noise / grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.page-content {
  position: relative;
  z-index: 3;
}


/* =====================================================================
   STICKY TOP BAR — sticky position, HUD step-frame shape, content
   follows the shape via 3-column grid (left full-height / center
   constrained to upper notch / right full-height)
   ===================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-height);
  pointer-events: none;
}

/* Background layer with the HUD step-frame clip-path + backdrop blur.
   Separated from content because clip-path + backdrop-filter on the
   same element misbehaves in Chrome. */
.topbar-bg {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 24, 0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  clip-path: polygon(
    0 0,
    100% 0,
    100% 100%,
    78% 100%,
    76% 60%,
    24% 60%,
    22% 100%,
    0 100%
  );
}

.topbar-outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.topbar-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  pointer-events: auto;
}

.topbar-left {
  display: flex;
  align-items: center;
  padding: 0 var(--space-xl);
}

.topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--topbar-notch-height);
}

.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-lg);
  padding: 0 var(--space-xl);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-family: 'TR-909', var(--font-display);
  font-size: 1.625rem;
  color: var(--text-bright);
  letter-spacing: 0.18em;
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border: 1px solid var(--accent);
  position: relative;
  flex-shrink: 0;
  transform: rotate(45deg);
  box-shadow: var(--glow-cold);
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--accent);
  opacity: 0.7;
}

.topnav {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.topnav a {
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: var(--space-2xs) var(--space-sm);
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  font-family: var(--font-display);
  font-size: 0.8125rem;
}

.topnav a:hover {
  color: var(--accent-bright);
  border-color: var(--line-soft);
  text-shadow: 0 0 8px rgba(125, 224, 255, 0.6);
}

.topnav a.active {
  color: var(--accent-bright);
  border-color: var(--line-medium);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-soft 2s ease-in-out infinite;
}

.utc-time {
  color: var(--text-secondary);
  font-size: 0.8125rem;
}


/* =====================================================================
   HERO — text content layered over the body background image
   ===================================================================== */
.hero {
  position: relative;
  padding: var(--space-3xl) var(--space-xl) var(--space-4xl);
  min-height: calc(100vh - var(--topbar-height));
  display: flex;
  align-items: center;
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-bright);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-eyebrow::before {
  content: '> ';
  color: var(--accent);
}

.hero-title {
  font-family: 'TR-909', var(--font-display);
  font-size: clamp(4.5rem, 13vw, 12rem);
  line-height: 0.85;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text-bright);
  text-stroke: 1.5px var(--text-bright);
  text-shadow: var(--glow-white), 0 4px 24px rgba(0, 0, 0, 0.6);
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: var(--space-xl);
  max-width: 560px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.hero-prompt {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent-bright);
  margin-top: var(--space-xl);
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--line-medium);
  background: rgba(8, 17, 30, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-prompt::before {
  content: '> ';
  color: var(--accent);
  font-weight: 700;
}

.hero-specs {
  position: relative;
  z-index: 2;
  background: var(--bg-panel);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
}

.hero-specs::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-medium);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  pointer-events: none;
}

.specs-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.16em;
  color: var(--accent-bright);
  text-transform: uppercase;
  padding-bottom: var(--space-sm);
  border-bottom: 1px dashed var(--line-soft);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.spec-key {
  color: var(--text-muted);
  text-transform: uppercase;
}

.spec-val {
  color: var(--accent-bright);
  font-weight: 500;
}

.specs-footer {
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px dashed var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.6;
}

.hero .rotated-label--left  { left: 8px;  top: 50%; transform: rotate(180deg) translateY(50%); }
.hero .rotated-label--right { right: 8px; top: 50%; transform: rotate(180deg) translateY(50%); }


/* =====================================================================
   DECORATIVE BREAK
   ===================================================================== */
.deco-break {
  position: relative;
  height: 80px;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}

.deco-break svg {
  width: 100%;
  height: 100%;
  display: block;
}


/* =====================================================================
   MODULES
   ===================================================================== */
.modules {
  position: relative;
  padding: var(--space-xl) var(--space-xl) var(--space-3xl);
  max-width: 1600px;
  margin: 0 auto;
}

.modules-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-sm);
  border-bottom: 1px dashed var(--line-soft);
}

.modules-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: var(--space-md);
}

.module {
  position: relative;
  background: var(--bg-panel);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  transition: all var(--transition-normal);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.module::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--line-soft);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  pointer-events: none;
  transition: border-color var(--transition-normal);
}

.module:hover::before { border-color: var(--line-bright); }
.module:hover { background: var(--bg-elevated); }

.module::after {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  width: 32px;
  height: 1px;
  background: var(--accent);
  box-shadow: var(--glow-cold);
  transition: width var(--transition-normal);
}

.module:hover::after { width: 80px; }

.module-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}

.module-title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--text-bright);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}


/* --- Module: Live signal --- */
.module-live {
  grid-column: 1 / 4;
  grid-row: 1 / 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.live-left, .live-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Now-playing block */
.np-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.np-label {
  /* "Now playing" label sits above the row, not next to the art */
}

.np-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.np-art {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  background: var(--bg-solid-deep);
  transition: filter var(--transition-normal);
}

.np-art--lost {
  filter: grayscale(1) brightness(0.5);
}

.np-row-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

/* Formats list takes the full width below the row, no left indent */
.np-formats {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-top: var(--space-xs);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Right column: meta on top, waveform stack pinned to the bottom */
.live-right-meta {
  /* no margin-top auto — stays right after waveform-stack */
}

.waveform-stack {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.waveform-stack .waveform {
  margin-top: 0;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-2xs) var(--space-sm);
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid var(--accent-warm);
  color: var(--accent-warm);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  width: fit-content;
  transition: background var(--transition-normal), border-color var(--transition-normal), color var(--transition-normal);
}

/* Auto/playlist mode — neutral green, signals "broadcasting but unattended" */
.live-badge--auto {
  background: rgba(61, 200, 120, 0.12);
  border-color: #3DC878;
  color: #3DC878;
}

.live-badge--auto .live-pulse {
  background: #3DC878;
  box-shadow: 0 0 14px rgba(61, 200, 120, 0.5);
}

/* Off / signal lost — muted */
.live-badge--off {
  background: transparent;
  border-color: var(--text-muted);
  color: var(--text-muted);
}

.live-badge--off .live-pulse {
  background: var(--text-muted);
  box-shadow: none;
  animation: none;
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-warm);
  box-shadow: var(--glow-warm);
  animation: pulse-warm 1.4s ease-in-out infinite;
}

.np-track {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-bright);
  letter-spacing: 0.04em;
  margin-top: var(--space-xs);
}

.np-artist {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.np-meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-top: var(--space-xs);
}

.waveform {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 64px;
  margin-top: auto;
}

.waveform span {
  flex: 1;
  background: var(--accent);
  opacity: 0.55;
  animation: wave-bounce 0.9s ease-in-out infinite;
  transform-origin: bottom;
  min-height: 4px;
}

.waveform span:nth-child(1)  { animation-delay: 0.00s; }
.waveform span:nth-child(2)  { animation-delay: 0.05s; }
.waveform span:nth-child(3)  { animation-delay: 0.10s; }
.waveform span:nth-child(4)  { animation-delay: 0.15s; }
.waveform span:nth-child(5)  { animation-delay: 0.20s; }
.waveform span:nth-child(6)  { animation-delay: 0.25s; }
.waveform span:nth-child(7)  { animation-delay: 0.30s; }
.waveform span:nth-child(8)  { animation-delay: 0.35s; }
.waveform span:nth-child(9)  { animation-delay: 0.40s; }
.waveform span:nth-child(10) { animation-delay: 0.45s; }
.waveform span:nth-child(11) { animation-delay: 0.50s; }
.waveform span:nth-child(12) { animation-delay: 0.55s; }
.waveform span:nth-child(13) { animation-delay: 0.60s; }
.waveform span:nth-child(14) { animation-delay: 0.65s; }
.waveform span:nth-child(15) { animation-delay: 0.70s; }
.waveform span:nth-child(16) { animation-delay: 0.75s; }
.waveform span:nth-child(17) { animation-delay: 0.80s; }
.waveform span:nth-child(18) { animation-delay: 0.85s; }
.waveform span:nth-child(19) { animation-delay: 0.90s; }
.waveform span:nth-child(20) { animation-delay: 0.95s; }
.waveform span:nth-child(21) { animation-delay: 1.00s; }
.waveform span:nth-child(22) { animation-delay: 1.05s; }
.waveform span:nth-child(23) { animation-delay: 1.10s; }
.waveform span:nth-child(24) { animation-delay: 1.15s; }


/* --- Module: Visual archive image slot --- */
.module-image {
  grid-column: 4 / 7;
  grid-row: 1 / 3;
  position: relative;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  overflow: hidden;
  background-image:
    radial-gradient(ellipse at 70% 60%, rgba(255, 0, 200, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 30%, rgba(125, 60, 200, 0.4) 0%, transparent 60%),
    linear-gradient(135deg, #0a0a14 0%, #1a0820 60%, #050008 100%);
}

.module-image::before { border-color: var(--line-faint); }

.module-image-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.module-image-tag {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  padding: var(--space-2xs) var(--space-sm);
  background: rgba(2, 8, 18, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-secondary);
  z-index: 2;
}


/* --- Module: Latest release --- */
.module-release {
  grid-column: 1 / 3;
  grid-row: 3 / 5;
}

.release-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(135deg, rgba(61, 168, 255, 0.15), rgba(125, 224, 255, 0.05)),
    repeating-linear-gradient(45deg, transparent 0, transparent 12px, rgba(125, 224, 255, 0.06) 12px, rgba(125, 224, 255, 0.06) 13px);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.release-cover::before {
  content: '';
  width: 40%;
  height: 40%;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
  opacity: 0.5;
}

.release-cover::after {
  content: 'ARTWORK 0473-A';
  position: absolute;
  bottom: var(--space-xs);
  left: var(--space-xs);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.release-meta { display: flex; flex-direction: column; gap: var(--space-2xs); }
.release-title { font-family: var(--font-display); font-size: 1.0625rem; color: var(--text-bright); letter-spacing: 0.04em; }
.release-artist { font-family: var(--font-body); font-size: 0.875rem; color: var(--text-secondary); }
.release-date { font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-top: var(--space-2xs); }


/* --- Module: Next event --- */
.module-event { grid-column: 3 / 5; grid-row: 3 / 4; }

.event-date-block {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  font-family: var(--font-display);
  padding-bottom: var(--space-md);
  border-bottom: 1px dashed var(--line-faint);
}

.event-day { font-size: 2.75rem; color: var(--text-bright); line-height: 1; letter-spacing: 0.02em; }
.event-month-year { font-family: var(--font-mono); font-size: 0.875rem; color: var(--accent-bright); letter-spacing: 0.12em; text-transform: uppercase; }
.event-name { font-family: var(--font-display); font-size: 1rem; color: var(--text-bright); letter-spacing: 0.08em; text-transform: uppercase; }
.event-loc { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-secondary); letter-spacing: 0.08em; }

.event-genres {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: auto;
}

.genre-tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  border: 1px solid var(--line-medium);
  padding: 2px 8px;
  text-transform: uppercase;
}


/* --- Module: Signals status list --- */
.module-status { grid-column: 5 / 7; grid-row: 3 / 4; }

.status-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 2px 0;
}

.status-name::before { content: '◇ '; color: var(--accent); }

.status-state {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--accent-bright);
}

.status-state-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}


/* --- Module: Shop teaser --- */
.module-shop {
  grid-column: 3 / 7;
  grid-row: 4 / 5;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: var(--space-md);
  align-items: stretch;
}

.module-shop .module-head { grid-column: 1 / -1; }

.shop-item {
  background: rgba(8, 17, 30, 0.55);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.shop-item:hover { background: rgba(18, 40, 67, 0.7); }

.shop-item-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(ellipse at 50% 60%, rgba(61, 168, 255, 0.2), transparent 60%),
    var(--bg-solid-deep);
  border: 1px solid var(--line-faint);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-item-image::before {
  content: '';
  width: 56%;
  height: 56%;
  background: rgba(18, 40, 67, 0.7);
  clip-path: polygon(15% 15%, 30% 5%, 70% 5%, 85% 15%, 100% 30%, 90% 38%, 85% 30%, 85% 100%, 15% 100%, 15% 30%, 10% 38%, 0% 30%);
  opacity: 0.7;
}

.shop-item-image::after {
  content: attr(data-sku);
  position: absolute;
  top: var(--space-xs);
  right: var(--space-xs);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.shop-item-name {
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--text-bright);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: var(--space-xs);
}

.shop-item-price {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--accent-bright);
}

.shop-item-stock {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shop-cta-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg) var(--space-xl);
  border-left: 1px dashed var(--line-soft);
  min-width: 200px;
}

.shop-cta-count {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--text-bright);
  letter-spacing: 0.04em;
  line-height: 1;
}

.shop-cta-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-secondary);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}


/* =====================================================================
   BUTTONS
   ===================================================================== */
.shop-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: transparent;
  border: 1px solid var(--accent-warm);
  color: var(--accent-warm);
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.shop-cta:hover {
  background: var(--accent-warm);
  color: var(--bg-deep);
  box-shadow: var(--glow-warm);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: transparent;
  border: 1px solid var(--line-medium);
  color: var(--accent-bright);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  margin-top: auto;
  transition: all var(--transition-normal);
  width: fit-content;
}

.btn:hover {
  border-color: var(--accent-bright);
  background: rgba(125, 224, 255, 0.08);
  box-shadow: var(--glow-cold);
}


/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  position: relative;
  margin-top: var(--space-2xl);
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid var(--line-soft);
  background: var(--bg-surface);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.footer-divider { color: var(--line-medium); }

.footer-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-bright);
}


/* =====================================================================
   ENTRANCE ANIMATIONS
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .hero, .module {
    opacity: 0;
    transform: translateY(12px);
    animation: reveal 600ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }
  .hero            { animation-delay: 100ms; }
  .module-live     { animation-delay: 350ms; }
  .module-image    { animation-delay: 450ms; }
  .module-release  { animation-delay: 550ms; }
  .module-event    { animation-delay: 650ms; }
  .module-status   { animation-delay: 750ms; }
  .module-shop     { animation-delay: 850ms; }
}


/* =====================================================================
   RESPONSIVE — Desktop and mobile are independent concerns
   ===================================================================== */

@media (max-width: 1280px) {
  .modules-grid { grid-template-columns: repeat(4, 1fr); }
  .module-live    { grid-column: 1 / 3; grid-row: 1 / 3; }
  .module-image   { grid-column: 3 / 5; grid-row: 1 / 3; }
  .module-release { grid-column: 1 / 2; grid-row: 3 / 5; }
  .module-event   { grid-column: 2 / 4; grid-row: 3 / 4; }
  .module-status  { grid-column: 4 / 5; grid-row: 3 / 4; }
  .module-shop    { grid-column: 2 / 5; grid-row: 4 / 5; }
}

@media (max-width: 900px) {
  .topbar-left, .topbar-right { padding: 0 var(--space-md); }
  .brand { font-size: 1.25rem; gap: var(--space-sm); }
  .brand-mark { width: 22px; height: 22px; }
  .topnav { gap: var(--space-xs); }
  .topnav a { font-size: 0.6875rem; padding: var(--space-2xs) var(--space-2xs); }

  .hero-stage { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: 1fr 1fr; }
  .module-live, .module-image,
  .module-release, .module-event, .module-status, .module-shop {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .module-live { display: flex; }
  .module-shop { grid-template-columns: 1fr; }
  .module-image { aspect-ratio: 16 / 9; }
}

@media (max-width: 640px) {
  /* On narrow screens the 3-zone HUD layout becomes too cramped.
     Switch to a vertical stack and disable the clip-path notch so the
     bar becomes a clean rectangle that actually fits the content. */
  :root {
    --topbar-height: auto;
  }
  .topbar { height: auto; }
  .topbar-bg { clip-path: none; }
  .topbar-outline { display: none; }
  .topbar-content {
    grid-template-columns: 1fr;
    padding: var(--space-sm) 0;
  }
  .topbar-center { height: auto; }
  .topbar-right { justify-content: center; flex-wrap: wrap; gap: var(--space-md); }
  .topnav { flex-wrap: wrap; justify-content: center; gap: var(--space-xs); }

  .hero { padding: var(--space-2xl) var(--space-md) var(--space-3xl); }
  .modules { padding: var(--space-lg) var(--space-md); }
  .modules-grid { grid-template-columns: 1fr; }
}