/* Voidfall Pitch Deck — Slide-specific visuals */

/* ── Player core ── */

.player-core {
  width: var(--core-size, 48px);
  height: var(--core-size, 48px);
  background: var(--player);
  box-shadow:
    0 0 12px var(--player),
    0 0 24px rgba(0, 191, 255, 0.6),
    inset 0 0 8px rgba(255, 255, 255, 0.4);
  animation: pulse-glow 2.5s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.player-core--lg { --core-size: 72px; }
.player-core--xl { --core-size: clamp(56px, 9vh, 80px); }

/* ── Enemy shapes ── */

.enemy-shape {
  position: absolute;
  animation: drift 6s ease-in-out infinite;
}

.enemy-shape svg {
  filter: drop-shadow(var(--glow-red));
}

/* ── XP orbs ── */

.xp-orb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--xp);
  box-shadow: var(--glow-gold);
  position: absolute;
}

/* ── Hazard field ── */

.hazard-field {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, rgba(124, 58, 237, 0.08) 50%, transparent 70%);
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: var(--glow-purple);
}

/* ── Slide 1: Title ── */

.title-visual {
  position: relative;
  width: clamp(160px, 24vh, 280px);
  height: clamp(160px, 24vh, 280px);
  margin: 0 auto clamp(1rem, 2vh, 1.5rem);
  flex-shrink: 0;
}

.title-visual .player-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  --core-size: clamp(48px, 7vh, 68px);
}

.title-orbit {
  position: absolute;
  inset: 0;
}

.title-orbit .enemy-shape {
  top: 50%;
  left: 50%;
  margin-top: -20px;
  margin-left: -20px;
  --orbit-r: clamp(70px, 10vh, 110px);
  animation: orbit 12s linear infinite;
}

.title-orbit .enemy-shape:nth-child(1) { animation-duration: 10s; }
.title-orbit .enemy-shape:nth-child(2) { animation-duration: 14s; animation-delay: -3s; }
.title-orbit .enemy-shape:nth-child(3) { animation-duration: 11s; animation-delay: -6s; }
.title-orbit .enemy-shape:nth-child(4) { animation-duration: 13s; animation-delay: -9s; }
.title-orbit .enemy-shape:nth-child(5) { animation-duration: 9s; animation-delay: -2s; }

.title-slide {
  text-align: center;
  align-items: center;
}

.title-slide .slide-subtitle {
  margin-bottom: 0;
}

.title-credit {
  margin-top: 1rem;
  font-size: clamp(0.8rem, 1.3vh, 0.95rem);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* ── Slide 2: Market comps ── */

.slide-intro {
  font-size: clamp(1.25rem, 2.2vh, 1.55rem);
  font-weight: 500;
  color: var(--text-body);
  margin-bottom: clamp(0.65rem, 1.2vh, 0.9rem);
  flex-shrink: 0;
}

.comp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.45rem, 0.85vh, 0.65rem);
  flex: 1;
  min-height: 0;
  align-content: center;
  max-width: 52rem;
}

.comp-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(0.6rem, 1.1vh, 0.85rem) clamp(0.75rem, 1.2vw, 1rem);
  background: var(--bg-panel);
  border: 1px solid rgba(0, 230, 255, 0.2);
  border-radius: 6px;
}

.comp-card h3 {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.8vh, 1.3rem);
  font-weight: 600;
  color: var(--ui-white);
  margin-bottom: 0.25rem;
  letter-spacing: 0;
  text-transform: none;
}

.comp-stat {
  font-size: clamp(2.2rem, 4.5vh, 3.2rem);
  font-weight: 700;
  color: var(--ui-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.comp-label {
  font-size: clamp(0.95rem, 1.6vh, 1.15rem);
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.35;
}

.gap-line {
  font-size: clamp(1.2rem, 2vh, 1.4rem);
  color: var(--text-body);
  line-height: 1.45;
  margin-top: clamp(0.6rem, 1.1vh, 0.85rem);
  flex-shrink: 0;
  max-width: 52rem;
}

.gap-line strong {
  font-weight: 600;
  color: var(--ui-white);
}

.source-note {
  font-size: clamp(0.65rem, 1vh, 0.75rem);
  color: rgba(184, 200, 220, 0.45);
  margin-top: 0.35rem;
  flex-shrink: 0;
}

/* ── Slide 2: Background enemies ── */

.bg-enemies {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.12;
}

/* ── Slide 3: Gameplay media ── */

.gameplay-media {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: min(42vh, 360px);
  aspect-ratio: 1920 / 1160;
  margin: 0 auto;
  border: 1px solid rgba(0, 230, 255, 0.4);
  border-radius: 6px;
  background: rgba(5, 12, 28, 0.85);
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0, 230, 255, 0.1);
}

.gameplay-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(rgba(0, 230, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 230, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}

.gameplay-media__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 5px;
  background: #000;
}

/* ── Slide 4: Loop diagram ── */

.loop-diagram {
  position: relative;
  width: 100%;
  max-width: min(520px, 90vw);
  margin: 0 auto;
  aspect-ratio: 1;
  flex-shrink: 1;
}

.loop-diagram svg {
  width: 100%;
  height: 100%;
  display: block;
}

.loop-ring-path {
  fill: none;
  stroke: rgba(0, 230, 255, 0.35);
  stroke-width: 1.5;
  stroke-dasharray: 8 4;
  animation: dash-flow 4s linear infinite;
}

.loop-node__dot {
  fill: var(--bg);
  stroke: var(--player);
  stroke-width: 2;
}

.loop-node__label {
  fill: var(--ui-white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-anchor: middle;
}

.loop-center-label {
  fill: rgba(0, 230, 255, 0.65);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-anchor: middle;
}

.loop-node.active .loop-node__dot {
  stroke: var(--player);
  filter: none;
}

.loop-node.active .loop-node__label {
  fill: var(--player);
}

/* ── Slide 5: Buildcraft showcase ── */

.feature-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.4rem, 0.75vw, 0.65rem);
  width: 100%;
  flex-shrink: 0;
  margin-bottom: clamp(0.5rem, 1vh, 0.75rem);
}

.feature-highlight {
  padding: clamp(0.45rem, 0.85vh, 0.6rem) clamp(0.5rem, 0.9vw, 0.7rem);
  background: var(--bg-panel);
  border: 1px solid rgba(0, 230, 255, 0.3);
  border-radius: 6px;
  font-size: clamp(0.8rem, 1.35vh, 0.95rem);
  font-weight: 600;
  color: var(--ui-white);
  text-align: center;
  line-height: 1.3;
}

.buildcraft-showcase {
  display: flex;
  flex-direction: column;
  gap: clamp(0.35rem, 0.7vh, 0.55rem);
  width: 100%;
  flex: 1;
  min-height: 0;
}

.showcase-section {
  flex-shrink: 0;
}

.showcase-label {
  font-size: clamp(0.7rem, 1.15vh, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 230, 255, 0.75);
  margin-bottom: 0.3rem;
}

.item-slot-grid {
  display: grid;
  gap: clamp(0.3rem, 0.55vw, 0.45rem);
}

.item-slot-grid--8 {
  grid-template-columns: repeat(8, 1fr);
}

.item-slot-grid--4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 50%;
}

.item-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
}

.item-slot__box {
  width: 100%;
  aspect-ratio: 1;
  max-width: clamp(40px, 5.5vh, 54px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 10, 22, 0.95);
  border: 2px solid var(--slot-accent, rgba(0, 230, 255, 0.45));
  border-radius: 4px;
  box-shadow: 0 0 8px color-mix(in srgb, var(--slot-accent, #00e6ff) 25%, transparent);
}

.item-slot__icon {
  font-size: clamp(1rem, 2vh, 1.35rem);
  line-height: 1;
  color: var(--slot-accent, var(--player));
  font-weight: 600;
}

.item-slot__label {
  font-size: clamp(0.5rem, 0.85vh, 0.62rem);
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.15;
  letter-spacing: 0.02em;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-slot--common { --slot-accent: #6b7280; }
.item-slot--blue { --slot-accent: #3b82f6; }
.item-slot--purple { --slot-accent: #a855f7; }
.item-slot--gold { --slot-accent: #eab308; }
.item-slot--cyan { --slot-accent: #00e6ff; }
.item-slot--tier2 { --slot-accent: #4488ff; }
.item-slot--tier3 { --slot-accent: #aa66ff; }
.item-slot--tier4 { --slot-accent: #ff66aa; }

/* ── Slide 4: Loop stats ── */

.loop-callouts {
  font-size: clamp(1rem, 1.75vh, 1.2rem);
  color: var(--text-body);
  margin-bottom: clamp(0.35rem, 0.65vh, 0.5rem);
  flex-shrink: 0;
  list-style: none;
  padding: 0;
  max-width: 54rem;
}

.loop-callouts li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.2rem;
}

.loop-callouts li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: rgba(0, 230, 255, 0.7);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.45rem, 0.85vw, 0.7rem);
  width: 100%;
  max-width: 40rem;
  margin: clamp(0.4rem, 0.8vh, 0.65rem) auto 0;
  flex-shrink: 0;
}

.stat-chip {
  padding: clamp(0.5rem, 0.9vh, 0.7rem);
  background: var(--bg-panel);
  border: 1px solid rgba(0, 230, 255, 0.25);
  border-radius: 6px;
  text-align: center;
}

.stat-chip__val {
  display: block;
  font-size: clamp(1.15rem, 2vh, 1.45rem);
  font-weight: 700;
  color: var(--ui-white);
  line-height: 1.15;
}

.stat-chip__label {
  display: block;
  font-size: clamp(0.7rem, 1.15vh, 0.82rem);
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ── Shipped slide ── */

.shipped-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1rem, 2vw, 1.75rem);
  width: 100%;
  flex: 1;
  min-height: 0;
  align-items: center;
}

.shipped-list {
  font-size: clamp(1rem, 1.75vh, 1.2rem);
  color: var(--text-body);
  list-style: none;
  padding: 0;
}

.shipped-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.shipped-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--player);
  font-weight: 700;
}

.screenshot-frame {
  border: 1px solid rgba(0, 230, 255, 0.45);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(0, 230, 255, 0.12);
  background: #000;
  max-height: min(48vh, 400px);
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* ── Business diff panel ── */

.diff-panel {
  padding: clamp(0.65rem, 1.1vh, 0.9rem);
}

.diff-panel h3 {
  font-size: clamp(0.95rem, 1.55vh, 1.1rem);
  font-weight: 700;
  color: var(--ui-white);
  margin-bottom: 0.55rem;
  text-transform: none;
  letter-spacing: 0;
}

.diff-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: clamp(0.85rem, 1.4vh, 1rem);
  line-height: 1.35;
}

.diff-row:last-child {
  border-bottom: none;
}

.diff-row__voidfall {
  color: var(--player);
  font-weight: 600;
}

.diff-row__typical {
  color: var(--text-muted);
}

.platform-tags {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.4rem, 0.75vw, 0.55rem);
  margin-top: clamp(0.55rem, 1vh, 0.75rem);
  width: 100%;
}

.platform-tag {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 1.25vh, 0.88rem);
  font-weight: 600;
  padding: clamp(0.4rem, 0.75vh, 0.55rem) clamp(0.5rem, 0.9vw, 0.65rem);
  border: 1px solid rgba(0, 230, 255, 0.3);
  border-radius: 4px;
  color: var(--text-body);
  text-align: center;
  background: rgba(0, 230, 255, 0.06);
  line-height: 1.25;
}

/* ── Slide 6: Codeplain flow ── */

.codeplain-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1.2vw, 1.25rem);
  margin-top: clamp(1rem, 2vh, 1.5rem);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.flow-box {
  font-family: var(--font-display);
  padding: clamp(0.7rem, 1.2vh, 0.9rem) clamp(0.9rem, 1.5vw, 1.2rem);
  border: 1px solid var(--ui-cyan);
  border-radius: 6px;
  background: var(--bg-panel);
  font-size: clamp(1.05rem, 1.8vh, 1.3rem);
  color: var(--player);
  letter-spacing: 0.04em;
  text-align: center;
  min-width: 110px;
}

.flow-arrow {
  color: var(--player);
  font-size: 1.4rem;
  opacity: 0.7;
}

.codeplain-flow--extended {
  gap: clamp(0.35rem, 0.8vw, 0.75rem);
  margin-top: clamp(0.75rem, 1.5vh, 1.25rem);
}

.codeplain-flow--extended .flow-box {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.5vh, 1.1rem);
  font-weight: 600;
  letter-spacing: 0;
  min-width: 90px;
  padding: clamp(0.55rem, 1vh, 0.75rem) clamp(0.65rem, 1.1vw, 0.9rem);
}

.codeplain-flow--extended .flow-arrow {
  font-size: 1.2rem;
}

/* ── Slide 7: Architecture diagram ── */

.arch-diagram {
  width: 100%;
  max-width: 420px;
  max-height: min(42vh, 320px);
  margin: 0 auto;
}

.arch-diagram svg {
  width: 100%;
  height: 100%;
  display: block;
}

.arch-box {
  fill: rgba(8, 16, 36, 0.95);
  stroke: rgba(0, 230, 255, 0.6);
  stroke-width: 1;
}

.arch-box--highlight {
  stroke: var(--player);
}

.arch-label {
  fill: var(--text-body);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 600;
  text-anchor: middle;
}

.arch-connector {
  fill: none;
  stroke: rgba(0, 230, 255, 0.4);
  stroke-width: 1;
  stroke-dasharray: 4 3;
  animation: dash-flow 3s linear infinite;
}

/* ── Slide 9: Roadmap grid ── */

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.55rem, 1vw, 0.85rem);
  width: 100%;
  align-items: stretch;
}

.roadmap-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: clamp(0.65rem, 1.2vh, 0.9rem);
  background: var(--bg-panel);
  border: 1px solid rgba(0, 230, 255, 0.25);
  border-radius: 6px;
  min-height: 0;
}

.roadmap-card--active {
  border-color: rgba(0, 230, 255, 0.55);
  background: rgba(0, 230, 255, 0.06);
  box-shadow: none;
}

.roadmap-num {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2.2vh, 1.55rem);
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1;
}

.roadmap-card--active .roadmap-num {
  color: var(--player);
}

.roadmap-card h3 {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2vh, 1.4rem);
  font-weight: 700;
  color: var(--ui-white);
  line-height: 1.25;
  text-transform: none;
  letter-spacing: 0;
}

.roadmap-card p {
  font-size: clamp(1.05rem, 1.75vh, 1.2rem);
  line-height: 1.45;
  color: var(--text-muted);
  flex: 1;
}

.roadmap-now {
  display: inline-block;
  font-size: 0.7em;
  font-weight: 700;
  color: var(--bg);
  background: var(--player);
  padding: 0.1em 0.45em;
  border-radius: 3px;
  margin-left: 0.25em;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Slide 10: Bounty columns ── */

.bounty-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.bounty-panel h3 {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2vh, 1.45rem);
  font-weight: 700;
  color: var(--ui-white);
  letter-spacing: 0;
  margin-bottom: 0.6rem;
  text-transform: none;
  line-height: 1.35;
  flex-shrink: 0;
}

.bounty-panel h3 span {
  color: var(--text-muted);
  font-weight: 500;
}

.bounty-panel .slide-body {
  font-size: clamp(1.2rem, 2vh, 1.45rem);
  flex: 1;
  min-height: 0;
}

.bounty-panel .slide-body li {
  margin-bottom: 0.35rem;
}

.closing-statement {
  margin-top: clamp(0.65rem, 1.2vh, 0.9rem);
  text-align: center;
  font-size: clamp(1.2rem, 2vh, 1.4rem);
  font-weight: 500;
  font-style: italic;
  color: var(--text-muted);
  letter-spacing: 0;
  line-height: 1.45;
  padding: clamp(0.65rem, 1vh, 0.85rem) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

/* ── Slide 11: Closing ── */

.closing-slide {
  text-align: center;
  align-items: center;
}

.closing-visual {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: clamp(120px, 20vh, 200px);
  margin-bottom: clamp(1.25rem, 2.5vh, 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.closing-visual .player-core {
  z-index: 3;
}

.enemy-wave {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: clamp(10px, 1.5vw, 22px);
  align-items: center;
}

.enemy-wave-item {
  animation: enemy-advance 3s ease-in-out infinite;
}

.enemy-wave-item:nth-child(1) { animation-delay: 0s; }
.enemy-wave-item:nth-child(2) { animation-delay: 0.4s; }
.enemy-wave-item:nth-child(3) { animation-delay: 0.8s; }
.enemy-wave-item:nth-child(4) { animation-delay: 1.2s; }
.enemy-wave-item:nth-child(5) { animation-delay: 1.6s; }

.closing-tagline {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2vh, 1.4rem);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: none;
  margin-top: 0.5rem;
}

.closing-credits {
  margin-top: clamp(1rem, 2vh, 1.5rem);
  font-size: clamp(0.8rem, 1.2vh, 0.9rem);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ── SVG shape helpers ── */

.shape-enemy-triangle { fill: none; stroke: var(--enemy); stroke-width: 2; }
.shape-enemy-hex { fill: none; stroke: var(--enemy-alt); stroke-width: 2; }
.shape-enemy-diamond { fill: none; stroke: var(--enemy); stroke-width: 2; }