/* ==========================================================================
   marlow design — Integrated Sections V2
   Divider (Idee A) | Werdegang Side-Scroller | Know-How Skill Tree | Arbeiten Cartridges
   ========================================================================== */

/* Shared centered section header aligned with IT'S A ME & LOWINS-KI */
.v2-section-header {
  position: relative;
  width: 100%;
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.32rem;
  z-index: 35;
  flex-shrink: 0;
}

.v2-chapter-title {
  margin: 0 auto 0.35rem !important;
  font-family: var(--font-headline) !important;
  font-weight: 800 !important;
  font-size: clamp(2.35rem, 4.5vw, 4.2rem) !important;
  letter-spacing: -0.02em !important;
  line-height: 1.0 !important;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
}

.v2-chapter-sub {
  font-family: var(--font-mono);
  font-size: clamp(0.76rem, 0.98vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e677ad;
}

.v2-archive-count {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--role-theme-color, #de4992);
}

.works-header .v2-archive-count {
  position: absolute;
  right: clamp(4.8rem, 6.4vw, 6.2rem);
  bottom: 0.2rem;
}

@media (min-width: 993px) and (max-width: 1600px) {
  .v2-section-header {
    padding-right: calc(clamp(1.5rem, 4vw, 3.5rem) + 48px);
  }
}

/* ==========================================================================
   1. DIVIDER GAMING PROTOTYP (IDEE A)
   ========================================================================== */
.dg-runway {
  position: relative;
  min-height: 230vh;
  background:
    radial-gradient(ellipse 65% 50% at 50% 50%, rgba(var(--role-theme-rgb, 222, 73, 146), 0.045) 0%, transparent 72%),
    var(--canvas-void, #0e0e13);
  border-top: 1px solid rgba(var(--role-theme-rgb, 230, 119, 173), 0.18);
  border-bottom: 1px solid rgba(var(--role-theme-rgb, 230, 119, 173), 0.18);
}

.dg-orb-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140px;
  height: 140px;
  margin-left: -70px;
  margin-top: -70px;
  pointer-events: none;
  z-index: 30;
  opacity: 0;
  will-change: transform, opacity;
}

#dgOrbCanvas,
#scArrivalOrbCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.dg-sticky {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem clamp(1.25rem, 4vw, 3.5rem);
  overflow: hidden;
}

.dg-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.75rem, 4vw, 3.75rem);
  max-width: 1180px;
  width: 100%;
  cursor: pointer;
}

.dg-sep {
  width: 1px;
  height: 84px;
  background: rgba(var(--role-theme-rgb, 222, 73, 146), 0.42);
  flex-shrink: 0;
}

.dg-headline {
  margin: 0;
  font-weight: 900;
  font-size: clamp(1.85rem, 3.4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: #ffffff;
}

.dg-down-cue {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dg-down-cue.is-ready {
  opacity: 1;
  transform: translateX(-50%) translateY(4px);
}

.dg-down-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-magenta);
}

.dg-down-line {
  width: 1.5px;
  height: 26px;
  background: linear-gradient(180deg, var(--primary-magenta) 0%, rgba(var(--role-theme-rgb, 222, 73, 146), 0.25) 100%);
}

.dg-down-tip {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--primary-magenta);
}

.dg-pixel-frame {
  position: relative;
  border-radius: var(--radius-md);
  background: #121217;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dg-pixel-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.24) 50%, transparent 70%);
  transform: translateX(-130%);
  pointer-events: none;
}

.dg-pixel-frame.is-shine::after {
  animation: dgShineSweep 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes dgShineSweep {
  to { transform: translateX(130%); }
}

.dg-pixel-frame canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.dg-shockwave {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1.5px solid var(--primary-magenta);
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  pointer-events: none;
}

.dg-shockwave.is-firing {
  animation: dgRingPulse 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes dgRingPulse {
  0% { transform: translate(-50%, -50%) scale(0.65); opacity: 0.85; }
  100% { transform: translate(-50%, -50%) scale(2.15); opacity: 0; }
}

@keyframes dgSlam {
  0% { transform: scale(1.62); opacity: 0.35; }
  65% { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.va-year-frame {
  width: 260px;
  height: 128px;
}

.va-slam-slot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1ch;
  margin: 0 0.12em;
}

.va-slam-num {
  position: relative;
  z-index: 2;
  color: var(--primary-magenta);
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

.va-slam-num.is-slamming {
  animation: dgSlam 0.26s cubic-bezier(0.18, 0.89, 0.32, 1.2) forwards;
}

/* ==========================================================================
   2. WERDEGANG SCROLL-DRIVEN SIDE-SCROLLER (#resume)
   ========================================================================== */
.sc-integrated-section {
  --stage-accent: var(--role-theme-color, #de4992);
  position: relative;
  width: 100%;
  min-height: 390vh;
  background: var(--canvas-void, #0e0e13);
  border-top: 1px solid rgba(var(--role-theme-rgb, 230, 119, 173), 0.2);
  scroll-margin-top: 72px;
  user-select: none;
}

.sc-sticky-stage {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  padding-top: clamp(1.3rem, 2.6vh, 2.2rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 75% 55% at 50% 48%, rgba(255, 255, 255, 0.025) 0%, transparent 72%),
    var(--canvas-void, #0e0e13);
}

.sc-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  perspective: 1200px;
  perspective-origin: 50% 48%;
  cursor: grab;
  background: transparent;
}

.sc-viewport.is-dragging {
  cursor: grabbing;
}

.sc-floor-plane {
  position: absolute;
  left: -30%;
  right: -30%;
  bottom: -4%;
  height: 47%;
  transform: rotateX(74deg);
  transform-origin: center bottom;
  background-color: #0e0e13;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0px, rgba(255, 255, 255, 0.09) 2px, transparent 2px, transparent 240px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 240px 240px, 120px 120px, 120px 120px;
  background-position: 0px 0px, 0px 0px, 0px 0px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.92) 28%, #000 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.92) 28%, #000 100%);
  pointer-events: none;
  z-index: 1;
}

.sc-parallax-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 7%;
  perspective: 1000px;
}

.sc-live-year {
  font-weight: 900;
  font-size: clamp(6.5rem, 14.5vw, 12.5rem);
  line-height: 0.85;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.045);
  transform-origin: center center;
  white-space: nowrap;
  will-change: transform, color;
  transition: color 0.35s ease;
  font-variant-numeric: tabular-nums;
}

.sc-live-year.is-ticking {
  color: rgba(255, 255, 255, 0.09);
}

.sc-skyline-layer {
  position: absolute;
  left: 50%;
  width: clamp(380px, 36vw, 500px);
  transform: translateX(-50%);
  bottom: 24%;
  height: clamp(115px, 19%, 175px);
  z-index: 3;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.sc-skyline-track {
  position: relative;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.sc-skyline-item {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(14px) scale(0.985);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.sc-skyline-item.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sc-skyline-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.sc-sky-back { fill: rgba(255, 255, 255, 0.04); }
.sc-sky-front { fill: #151519; stroke: rgba(255, 255, 255, 0.20); stroke-width: 1.35; stroke-linejoin: round; }
.sc-sky-detail { fill: none; stroke: rgba(255, 255, 255, 0.11); stroke-width: 1; }
.sc-sky-horizon { stroke: rgba(255, 255, 255, 0.18); stroke-width: 1.5; }

.sc-signs-layer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 68px;
  z-index: 14;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, transparent 36%, #000 41%, #000 57%, transparent 62%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 36%, #000 41%, #000 57%, transparent 62%, transparent 100%);
}

.sc-signs-track {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 100%;
  will-change: transform;
}

.sc-milestone-post {
  position: absolute;
  bottom: 2px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.sc-milestone-tag {
  padding: 2px 8px;
  border-radius: 3px;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.6);
  transition: border-color 0.25s ease, color 0.25s ease;
}

.sc-milestone-post.is-passed .sc-milestone-tag {
  border-color: var(--primary-magenta);
  color: var(--text-pure);
}

.sc-milestone-stem {
  width: 2px;
  height: 10px;
  background: rgba(255, 255, 255, 0.24);
}

.sc-city-gate {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sc-city-sign {
  padding: 5px 14px 4px;
  border-radius: 4px;
  background: #f4c400;
  border: 2.5px solid #141414;
  font-family: 'Bahnschrift', 'DIN Alternate', 'Franklin Gothic Medium', 'Arial Narrow', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: #111111;
  white-space: nowrap;
  box-shadow:
    0 0 0 2px #f4c400,
    0 10px 24px rgba(0, 0, 0, 0.8);
}

.sc-city-pole {
  width: 3px;
  height: 12px;
  background: linear-gradient(90deg, #5a5d66 0%, #9fa3ad 50%, #484b52 100%);
}

.sc-stage-center {
  position: relative;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(240px, 340px) minmax(280px, 1.05fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 3.25rem);
  max-width: 1560px;
  margin: 0 auto;
  padding: 0.75rem clamp(3.4rem, 4.6vw, 4.8rem) 1.5rem clamp(1.25rem, 2.4vw, 2.5rem);
}

.sc-info-left {
  pointer-events: auto;
  position: relative;
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.sc-info-left.is-switching {
  opacity: 0.25;
  transform: translateY(10px);
}

.sc-station-meta {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--stage-accent);
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.sc-station-title {
  font-family: var(--font-subline);
  font-weight: 800;
  font-size: clamp(1.65rem, 2.5vw, 2.45rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.9rem;
  color: #ffffff;
}

.sc-station-desc {
  font-size: 0.92rem;
  line-height: 1.56;
  color: #c9c9d4;
  margin: 0;
  max-width: 39ch;
}

.sc-character-wrap {
  position: relative;
  height: clamp(230px, 38vh, 330px);
  align-self: end;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: visible;
}

.sc-arrival-orb-wrap {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 160px;
  height: 160px;
  margin-left: -80px;
  margin-top: -80px;
  pointer-events: none;
  z-index: 25;
  opacity: 0;
  will-change: transform, opacity;
}

.sc-spawn-shock {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 90px;
  height: 90px;
  margin-left: -45px;
  margin-top: -45px;
  border-radius: 50%;
  border: 2px solid var(--role-theme-color, #de4992);
  box-shadow: 0 0 24px rgba(var(--role-theme-rgb, 222, 73, 146), 0.6);
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
}

.sc-spawn-shock.is-burst {
  animation: scOrbBurst 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes scOrbBurst {
  0% { transform: scale(0.35); opacity: 0.95; }
  100% { transform: scale(2.4); opacity: 0; }
}

#scThreeCanvas {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 2;
  pointer-events: none;
  will-change: transform, opacity;
}

.sc-visual-right {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  perspective: 1000px;
}

.sc-media-tilt {
  width: 100%;
  max-width: 330px;
  transform: rotateY(-12deg) rotateX(2deg);
  transform-style: preserve-3d;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.sc-media-tilt:hover {
  transform: rotateY(-4deg) rotateX(0deg) scale(1.02);
}

.sc-media-tilt:hover .sc-media-card-3d {
  border-color: var(--stage-accent);
}

.sc-media-tilt.is-switching {
  opacity: 0.3;
  transform: rotateY(-20deg) translateX(28px) scale(0.95);
}

.sc-media-card-3d {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface-container-low);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.85);
  transition: border-color 0.3s ease;
}

.sc-media-card-3d img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sc-station-years {
  margin-top: 0.8rem;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.sc-bottom-hud {
  position: relative;
  z-index: 30;
  flex-shrink: 0;
  padding: 0.6rem 2rem clamp(1rem, 2.2vh, 1.6rem);
  background: linear-gradient(0deg, rgba(19, 19, 19, 0.96) 0%, rgba(19, 19, 19, 0) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.sc-hud-row {
  width: min(740px, 100%);
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.sc-arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(24, 24, 30, 0.85);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  cursor: pointer;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.sc-arrow-btn:hover {
  border-color: var(--primary-magenta);
  background: rgba(var(--role-theme-rgb, 222, 73, 146), 0.18);
}

.sc-progress-bar {
  flex: 1;
  height: 40px;
  position: relative;
  display: flex;
  align-items: center;
}

.sc-progress-bar::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-50%);
}

.sc-step-btn {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface-container-low);
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.sc-step-btn:hover .sc-step-dot {
  transform: scale(1.25);
  border-color: var(--step-accent, var(--primary-magenta));
}

.sc-step-btn.is-active .sc-step-dot {
  background: var(--step-accent, var(--primary-magenta));
  border-color: #fff;
  transform: scale(1.3);
  box-shadow: 0 0 12px var(--step-accent, var(--primary-magenta));
}

.sc-controls-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ==========================================================================
   3. KNOW-HOW SKILL TREE (#knowhow)
   ========================================================================== */
.st-scroll-runway {
  --active-color: #de4992;
  --active-rgb: 222, 73, 146;
  position: relative;
  min-height: 275vh;
  margin-bottom: clamp(4.5rem, 9vh, 8rem);
  background:
    radial-gradient(ellipse 68% 54% at 62% 52%, rgba(255, 255, 255, 0.028) 0%, transparent 70%),
    var(--canvas-void, #0e0e13);
  border-top: 1px solid rgba(230, 119, 173, 0.2);
  scroll-margin-top: 72px;
}

.st-sticky-stage {
  position: sticky;
  top: 72px;
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(0.65rem, 1.5vh, 1.25rem);
  max-width: 1460px;
  margin: 0 auto;
  padding: clamp(1.6rem, 3vh, 2.5rem) clamp(1.25rem, 3.5vw, 3rem) clamp(1rem, 2vh, 1.75rem);
  overflow: hidden;
}

.st-stage-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(270px, 345px) minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 2.25rem);
  align-items: stretch;
}

.st-left-col {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(500px, 68vh, 700px);
  overflow: visible;
  z-index: 9;
}

.st-companion-wrap {
  position: relative;
  width: clamp(200px, 18vw, 260px);
  height: clamp(240px, 32vh, 300px);
  margin-top: auto;
  margin-left: -10px;
  margin-bottom: 0;
  pointer-events: none;
  overflow: visible;
  will-change: transform;
  z-index: 10;
}

#khThreeCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.st-hud-panel {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  align-self: start;
  padding-top: clamp(0.25rem, 1.2vh, 0.75rem);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.st-hud-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.st-hud-title {
  margin: 0;
  font-family: var(--font-subline);
  font-size: clamp(1.45rem, 2.2vw, 2.0rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--active-color);
  transition: color 0.25s ease;
  white-space: pre-line;
}

.st-hud-copy {
  margin: 0.1rem 0 0;
  font-size: 0.90rem;
  line-height: 1.54;
  color: #c9c9d6;
  max-width: 38ch;
}

.st-tree-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1040 / 680;
  max-height: clamp(420px, 60vh, 620px);
}

.st-svg-bg,
.st-svg-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.st-svg-bg { z-index: 1; }
.st-svg-edges { z-index: 2; }

.st-watermark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 136px;
  letter-spacing: 0.12em;
  fill: rgba(255, 255, 255, 0.022);
  text-anchor: middle;
  user-select: none;
}

.st-astro-ring { fill: none; stroke: rgba(255, 255, 255, 0.065); stroke-width: 1.1; }
.st-astro-ring.is-dashed { stroke-dasharray: 4 7; stroke: rgba(255, 255, 255, 0.045); }
.st-astro-ray { stroke: rgba(255, 255, 255, 0.04); stroke-width: 1; }

.st-edge {
  fill: none;
  stroke: rgba(255, 255, 255, 0.24);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke 0.28s ease, stroke-width 0.28s ease, filter 0.28s ease, opacity 0.25s ease;
}

.st-edge.is-active {
  stroke: var(--branch-color);
  stroke-width: 3.4;
  filter: drop-shadow(0 0 7px rgba(var(--branch-rgb), 0.55));
}

.st-joint {
  fill: #1b1b22;
  stroke: rgba(255, 255, 255, 0.34);
  stroke-width: 1.4;
  opacity: 0;
  transition: opacity 0.25s ease, fill 0.25s ease, stroke 0.25s ease;
}

.st-joint.is-visible { opacity: 1; }
.st-joint.is-active { fill: var(--branch-color); stroke: #ffffff; }

.st-node {
  position: absolute;
  transform: translate(-50%, -50%) scale(0.74);
  opacity: 0;
  pointer-events: none;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 5;
  transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1), transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.st-node.is-built {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.st-node.is-root .st-orb {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #131319;
  border: 2px solid rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 4px 16px rgba(255, 255, 255, 0.05), 0 0 0 5px rgba(255, 255, 255, 0.05), 0 10px 28px rgba(0, 0, 0, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.72rem;
  line-height: 1.12;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-align: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.st-node.is-root:hover .st-orb,
.st-node.is-root.is-active .st-orb {
  border-color: var(--primary-magenta);
  box-shadow: inset 0 0 16px rgba(222, 73, 146, 0.18), 0 0 0 5px rgba(222, 73, 146, 0.20), 0 10px 30px rgba(0, 0, 0, 0.85);
  transform: scale(1.06);
}

.st-node.is-hub .st-orb {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  padding: 13px;
  background: #121217;
  border: 2px solid rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 4px 14px rgba(255, 255, 255, 0.03), 0 0 0 4px rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease, background 0.28s ease;
}

.st-node.is-hub .knowhow-lottie-box,
.st-node.is-hub .st-ki-emblem {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(100%) contrast(95%) brightness(0.92) opacity(0.68);
  transform: scale(0.95);
  transition: filter 0.32s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.st-node.is-hub .knowhow-lottie-box svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.st-node.is-hub.is-lit .st-orb,
.st-node.is-hub:hover .st-orb {
  border-color: var(--branch-color);
  background: #14141b;
  box-shadow: inset 0 0 20px rgba(var(--branch-rgb), 0.20), 0 0 0 5px rgba(var(--branch-rgb), 0.18), 0 0 26px rgba(var(--branch-rgb), 0.32);
  transform: scale(1.08);
}

.st-node.is-hub.is-lit .knowhow-lottie-box,
.st-node.is-hub:hover .knowhow-lottie-box,
.st-node.is-hub.is-lit .st-ki-emblem,
.st-node.is-hub:hover .st-ki-emblem {
  filter: grayscale(0%) contrast(106%) brightness(1.02) opacity(1);
  transform: scale(1.06);
}

@keyframes kiPulseOrbit {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(18deg); }
}
.st-node.is-hub.is-lit .st-ki-orbit,
.st-node.is-hub:hover .st-ki-orbit {
  transform-origin: 24px 24px;
  animation: kiPulseOrbit 2.4s ease-in-out infinite;
}

.st-node.is-tool .st-orb {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  padding: 4px;
  background: #141419;
  border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.68);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.26s ease, box-shadow 0.26s ease, transform 0.26s ease;
}

.st-node.is-tool img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  filter: grayscale(88%) brightness(0.84) contrast(1.02);
  transition: filter 0.26s ease;
}

.st-node.is-tool.is-lit .st-orb,
.st-node.is-tool:hover .st-orb {
  border-color: var(--branch-color);
  box-shadow: 0 0 0 4px rgba(var(--branch-rgb), 0.22), 0 0 18px rgba(var(--branch-rgb), 0.30);
}

.st-node.is-tool.is-selected .st-orb,
.st-node.is-tool:hover .st-orb {
  transform: scale(1.13);
  border-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(var(--branch-rgb), 0.38), 0 0 22px rgba(var(--branch-rgb), 0.45);
}

.st-node.is-tool.is-lit img,
.st-node.is-tool:hover img {
  filter: grayscale(0%) brightness(1) contrast(1.04);
}

.st-node-lbl {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.56);
  background: rgba(11, 11, 14, 0.92);
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  transition: color 0.24s ease;
}

.st-node.is-tool.is-lit .st-node-lbl,
.st-node.is-tool:hover .st-node-lbl {
  color: #ffffff;
}

/* ==========================================================================
   4. ARBEITEN CURVED 3D GAME BOY CARTRIDGE ARCHIVE (#portfolio + #dt Modal)
   ========================================================================== */
.works-cartridge-section {
  --arch-bg: #0e0e13;
  --arch-ink: #f4f4f8;
  --arch-muted: #9898a8;
  --arch-accent: var(--role-theme-color, #de4992);
  --hs: 316px;
  --ws: 45.8px;
  --d: 274.9px;
  --shelf-center-x: 50%;

  position: relative;
  width: 100%;
  min-height: 220vh;
  margin-bottom: clamp(4rem, 8vh, 7.5rem);
  background:
    radial-gradient(ellipse 86% 34% at var(--shelf-center-x) 64%, rgba(48, 52, 76, 0.28) 0%, rgba(var(--role-theme-rgb, 222, 73, 146), 0.06) 46%, transparent 74%),
    var(--canvas-void, #0e0e13);
  border-top: 1px solid rgba(var(--role-theme-rgb, 230, 119, 173), 0.2);
  border-bottom: 1px solid rgba(var(--role-theme-rgb, 230, 119, 173), 0.2);
  scroll-margin-top: 72px;
  user-select: none;
}

.works-sticky-stage {
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  padding: clamp(2.4rem, 4.4vh, 3.8rem) 0 clamp(1.6rem, 3.2vh, 2.6rem);
  overflow: hidden;
}

.works-stage-body {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: clamp(500px, 64vh, 640px);
  margin-top: clamp(0.8rem, 1.8vh, 1.6rem);
}

/* Left Stacked Horizontal Halftone Category Label (e.g. GRAFIK / DESIGN) */
.works-cartridge-section .bg-col {
  position: absolute;
  top: 31%;
  left: clamp(1rem, 2.2vw, 2.4rem);
  transform: translateY(-50%);
  z-index: 4;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.08em;
  overflow: hidden;
}

.works-cartridge-section .bg-word {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
}

.works-cartridge-section .bg-letter {
  display: inline-block;
  font-family: var(--font-halftone, 'League Spartan', sans-serif);
  font-weight: 900;
  font-size: clamp(3.4rem, 5.5vw, 5.2rem);
  line-height: 0.88;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  background-image: radial-gradient(
    circle at 50% 50%,
    color-mix(in srgb, var(--role-theme-color, #de4992) 86%, #ffffff) 1.65px,
    color-mix(in srgb, var(--role-theme-color, #de4992) 32%, transparent) 2.2px,
    transparent 2.55px
  );
  background-size: 4.5px 4.5px;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.78;
  filter: drop-shadow(0 0 22px rgba(var(--role-theme-rgb, 222, 73, 146), 0.28));
}

.works-cartridge-section .bg-col.is-compact .bg-letter {
  font-size: clamp(2.5rem, 4.1vw, 3.8rem);
  line-height: 0.88;
}

/* Left Flatter Dark-Grey 3D Game Boy Prop */
.works-gameboy-wrap {
  position: absolute;
  left: clamp(2.5rem, 5.8vw, 6.8rem);
  bottom: clamp(0.3rem, 2vh, 1.5rem);
  width: clamp(235px, 20vw, 310px);
  height: clamp(165px, 14vw, 215px);
  z-index: 8;
  pointer-events: none;
}

#gbThreeCanvas,
#pfThreeCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Right PSX Martin Depth Companion beside Cartridges */
.works-companion-wrap {
  position: absolute;
  right: clamp(16.2rem, 19.6vw, 21.2rem);
  bottom: clamp(1.2rem, 3.8vh, 2.8rem);
  width: clamp(200px, 16vw, 240px);
  height: clamp(290px, 44vh, 410px);
  z-index: 16;
  pointer-events: none;
  will-change: transform;
}

/* Right-Side 3D Tilted Cartridge Boxes (clears right floating dot rail) */
.works-cartridge-section .pack-dock {
  position: absolute;
  right: clamp(4.6rem, 5.6vw, 5.6rem);
  top: 52%;
  transform: translateY(-50%);
  z-index: 30;
  width: clamp(198px, 14.5vw, 232px);
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  perspective: 820px;
  will-change: transform, opacity;
}

.works-cartridge-section .pack-box {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0.78rem;
  width: 100%;
  padding: 12px 13px 12px 11px;
  border-radius: 3px 7px 7px 3px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    repeating-linear-gradient(125deg, rgba(255, 255, 255, 0.016) 0px, rgba(255, 255, 255, 0.016) 2px, transparent 2px, transparent 6px),
    linear-gradient(145deg, #262632 0%, #171720 55%, #101017 100%);
  color: var(--arch-ink);
  text-align: left;
  cursor: pointer;
  transform-style: preserve-3d;
  transform-origin: center center;
  transform: translate3d(0, 0, 26px) rotateY(-25deg) rotateX(6deg);
  box-shadow:
    -16px 11px 0 #09090e,
    -17px 11px 0 rgba(255, 255, 255, 0.09),
    -18px 18px 28px rgba(0, 0, 0, 0.76),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.works-cartridge-section .pack-box::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 1px;
  bottom: 1px;
  width: 24px;
  transform-origin: right center;
  transform: rotateY(-76deg);
  border-radius: 3px 0 0 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, #2a2a36 16%, #181822 84%, rgba(255, 255, 255, 0.1) 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.works-cartridge-section .pack-box::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 11px;
  right: 11px;
  height: 7px;
  border-radius: 3px 3px 0 0;
  background: #060609;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: none;
  box-shadow: inset 0 3px 4px rgba(0, 0, 0, 0.95);
  pointer-events: none;
}

.works-cartridge-section .pack-box:hover {
  transform: translate3d(-12px, 0, 36px) rotateY(-16deg) rotateX(3deg);
  border-color: color-mix(in srgb, var(--role-theme-color, #de4992) 65%, rgba(255, 255, 255, 0.35));
}

.works-cartridge-section .pack-box.is-active {
  transform: translate3d(-14px, 0, 46px) rotateY(-10deg) rotateX(1deg);
  border-color: var(--role-theme-color, #de4992);
  background:
    repeating-linear-gradient(125deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 2px, transparent 2px, transparent 6px),
    linear-gradient(145deg, color-mix(in srgb, var(--role-theme-color, #de4992) 18%, #242432) 0%, #15151e 72%);
  box-shadow:
    -16px 11px 0 #09090e,
    -17px 11px 0 rgba(var(--role-theme-rgb, 222, 73, 146), 0.55),
    -18px 20px 36px rgba(0, 0, 0, 0.85),
    0 0 26px rgba(var(--role-theme-rgb, 222, 73, 146), 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.works-cartridge-section .pack-box.is-active::before {
  background: linear-gradient(180deg, var(--role-theme-color, #de4992) 0%, color-mix(in srgb, var(--role-theme-color, #de4992) 65%, #16161f) 100%);
  border-color: rgba(255, 255, 255, 0.28);
}

.works-cartridge-section .pack-peeks {
  position: absolute;
  top: -16px;
  right: 14px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  z-index: 2;
  pointer-events: none;
}

.works-cartridge-section .pack-mini-cart {
  width: 15px;
  height: 14px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #4b4b5c, #282834);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: none;
  clip-path: polygon(0 0, 72% 0, 72% 28%, 100% 28%, 100% 100%, 0 100%);
  position: relative;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.65);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s ease;
}

.works-cartridge-section .pack-mini-cart::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2.5px;
  height: 4px;
  background: rgba(232, 232, 240, 0.6);
}

.works-cartridge-section .pack-box.is-active .pack-mini-cart::after,
.works-cartridge-section .pack-box:hover .pack-mini-cart::after {
  background: var(--role-theme-color, #de4992);
}

.works-cartridge-section .pack-box:hover .pack-mini-cart,
.works-cartridge-section .pack-box.is-active .pack-mini-cart {
  transform: translateY(-6px);
  filter: brightness(1.12);
}

.works-cartridge-section .pack-thumb {
  width: 46px;
  height: 46px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.45);
  background: #0b0b0f;
  flex-shrink: 0;
}

.works-cartridge-section .pack-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.works-cartridge-section .pack-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.works-cartridge-section .pack-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.86rem;
  line-height: 1.12;
  color: #ffffff;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.works-cartridge-section .pack-meta {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--arch-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.works-cartridge-section .pack-box.is-active .pack-meta {
  color: var(--role-theme-color, #de4992);
}

.works-cartridge-section .floor-shadow {
  position: absolute;
  left: var(--shelf-center-x);
  top: calc(46% + var(--hs) * 0.5 + 8px);
  transform: translateX(-50%);
  width: min(76vw, 1080px);
  height: 54px;
  pointer-events: none;
  z-index: 6;
  background:
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.62) 55%, transparent 80%),
    radial-gradient(ellipse 32% 45% at 50% 50%, rgba(var(--role-theme-rgb, 222, 73, 146), 0.14), transparent 72%);
  filter: blur(8px);
}

.works-cartridge-section .floor-shadows {
  position: absolute;
  inset: 0;
  top: 8px;
  bottom: 84px;
  pointer-events: none;
  z-index: 6;
}

.works-cartridge-section .floor-cart-shadow {
  position: absolute;
  left: var(--shelf-center-x);
  top: 46%;
  width: 280px;
  height: 38px;
  transform-origin: center center;
  border-radius: 50%;
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(0, 0, 0, 0.90) 0%, rgba(0, 0, 0, 0.45) 50%, transparent 78%);
  filter: blur(8px);
  pointer-events: none;
  will-change: transform, width, opacity;
}

.works-cartridge-section .shelf {
  position: absolute;
  inset: 0;
  top: 8px;
  bottom: 84px;
  z-index: 12;
  perspective: 1400px;
  perspective-origin: var(--shelf-center-x) 46%;
  cursor: grab;
  touch-action: pan-y;
}

.works-cartridge-section .shelf.is-dragging {
  cursor: grabbing;
}

.works-cartridge-section .row {
  position: absolute;
  left: var(--shelf-center-x);
  top: 46%;
  width: var(--ws);
  height: var(--hs);
  margin-left: calc(var(--ws) / -2);
  margin-top: calc(var(--hs) / -2);
  transform-style: preserve-3d;
  will-change: transform;
  cursor: pointer;
}

.works-cartridge-section .sp,
.works-cartridge-section .cv,
.works-cartridge-section .ls,
.works-cartridge-section .bk {
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
}

.works-cartridge-section .sp {
  width: var(--ws);
  height: var(--hs);
  border-radius: 5px;
  transform: translateZ(calc(var(--d) / 2));
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.01) 20%, rgba(0, 0, 0, 0.3) 86%, rgba(0, 0, 0, 0.56) 100%),
    #1b1b24;
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6px 4px 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.works-cartridge-section .sp-bar {
  width: calc(100% - 6px);
  height: 4px;
  border-radius: 2px;
  background: var(--item-color, #d8d8e2);
  flex-shrink: 0;
}

.works-cartridge-section .sp-thumb {
  width: calc(100% - 8px);
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0c0c10;
  margin-top: 5px;
  flex-shrink: 0;
}

.works-cartridge-section .sp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.works-cartridge-section .sp-title {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(8.5px, calc(var(--ws) * 0.21), 13.5px);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ededf5;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 5px 0;
}

.works-cartridge-section .sp-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 100%;
  flex-shrink: 0;
}

.works-cartridge-section .sp-maker {
  font-family: var(--font-mono);
  font-size: clamp(5.5px, calc(var(--ws) * 0.11), 7.5px);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--arch-muted);
  text-transform: uppercase;
}

.works-cartridge-section .sp-num {
  padding: 1.5px 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: clamp(6.5px, calc(var(--ws) * 0.14), 9.5px);
  font-weight: 800;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
}

.works-cartridge-section .cv {
  width: var(--d);
  height: var(--hs);
  left: 50%;
  margin-left: calc(var(--d) / -2);
  transform: translateX(calc(var(--ws) / 2)) rotateY(90deg);
  clip-path: polygon(0 0, calc(100% - 22px) 0, calc(100% - 22px) 13px, 100% 13px, 100% 100%, 0 100%);
  border-radius: 7px 0 8px 8px;
  background: linear-gradient(155deg, #2b2b38 0%, #1c1c26 48%, #14141b 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(9px, calc(var(--hs) * 0.042), 14px) clamp(8px, calc(var(--d) * 0.038), 12px) 8px;
  box-shadow:
    0 28px 55px rgba(0, 0, 0, 0.7),
    inset 0 2px 0 rgba(255, 255, 255, 0.2),
    inset 0 0 0 2px rgba(0, 0, 0, 0.55);
}

.works-cartridge-section .row[data-active="0"] .cv { pointer-events: none; }
.works-cartridge-section .row[data-active="1"] .cv {
  pointer-events: auto;
  cursor: pointer;
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 32px 68px rgba(0, 0, 0, 0.85), inset 0 2px 0 rgba(255, 255, 255, 0.26);
}

.works-cartridge-section .gb-top-band {
  display: flex;
  align-items: center;
  gap: clamp(4px, calc(var(--d) * 0.025), 8px);
  margin-bottom: clamp(5px, calc(var(--hs) * 0.028), 10px);
  padding-right: clamp(6px, calc(var(--d) * 0.04), 12px);
  flex-shrink: 0;
}

.works-cartridge-section .gb-ribs {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: clamp(18px, calc(var(--d) * 0.105), 34px);
  flex-shrink: 0;
}

.works-cartridge-section .gb-rib {
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.85);
}

.works-cartridge-section .gb-oval {
  flex: 1;
  min-width: 0;
  height: clamp(20px, calc(var(--hs) * 0.088), 28px);
  border-radius: 999px;
  background: linear-gradient(180deg, #101016, #181822);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.78), 0 1px 0 rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(6px, calc(var(--d) * 0.035), 12px);
}

.works-cartridge-section .gb-oval-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(7.5px, calc(var(--d) * 0.036), 11px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(215, 215, 226, 0.44);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.85), 0 1px 0 rgba(255, 255, 255, 0.08);
}

.works-cartridge-section .cv-sticker {
  flex: 1;
  min-height: 0;
  margin: 0 clamp(2px, calc(var(--d) * 0.02), 6px);
  padding: clamp(4px, calc(var(--hs) * 0.022), 7px);
  border-radius: 8px;
  background: #0d0d13;
  border: 1.5px solid rgba(0, 0, 0, 0.88);
  box-shadow: inset 0 2px 7px rgba(0, 0, 0, 0.85), 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: clamp(4px, calc(var(--hs) * 0.02), 7px);
}

.works-cartridge-section .cv-art {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 5px;
  overflow: hidden;
  background: #08080c;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.works-cartridge-section .cv-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.works-cartridge-section .row[data-active="1"]:hover .cv-art img { transform: scale(1.04); }

.works-cartridge-section .cv-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 0%, transparent 32%, transparent 66%, rgba(8, 8, 12, 0.55) 100%);
  pointer-events: none;
}

.works-cartridge-section .cv-video-pill {
  position: absolute;
  left: 7px;
  bottom: 7px;
  z-index: 3;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(11, 11, 14, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.works-cartridge-section .cv-video-pill svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
  transform: translateX(1px);
}

.works-cartridge-section .cv-open-orb {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.76);
  z-index: 4;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--role-theme-color, #de4992);
  color: #0b0b0e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.65), 0 0 22px rgba(var(--role-theme-rgb, 222, 73, 146), 0.5);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.works-cartridge-section .row[data-active="1"]:hover .cv-open-orb {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.works-cartridge-section .cv-label {
  padding: clamp(4px, calc(var(--hs) * 0.018), 6px) clamp(6px, calc(var(--d) * 0.026), 8px);
  border-radius: 4px;
  background: #13131b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid #d8d8e2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  min-width: 0;
}

.works-cartridge-section .cv-title {
  font-family: var(--font-subline);
  font-weight: 800;
  font-size: clamp(10px, calc(var(--d) * 0.048), 16px);
  line-height: 1.14;
  color: #ffffff;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.works-cartridge-section .cv-sub {
  font-family: var(--font-mono);
  font-size: clamp(7px, calc(var(--d) * 0.03), 8.5px);
  color: var(--arch-muted);
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.works-cartridge-section .gb-arrow-row {
  display: flex;
  justify-content: center;
  padding-top: 6px;
  flex-shrink: 0;
}

.works-cartridge-section .gb-arrow {
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 10px solid rgba(0, 0, 0, 0.65);
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.14));
}

.works-cartridge-section .ls {
  width: var(--d);
  height: var(--hs);
  left: 50%;
  margin-left: calc(var(--d) / -2);
  transform: translateX(calc(var(--ws) / -2)) rotateY(-90deg);
  border-radius: 5px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 4px, rgba(0, 0, 0, 0.35) 4px, rgba(0, 0, 0, 0.35) 9px),
    #13131b;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.works-cartridge-section .bk {
  width: var(--ws);
  height: var(--hs);
  border-radius: 5px;
  transform: translateZ(calc(var(--d) / -2)) rotateY(180deg);
  background: #0d0d12;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.works-cartridge-section .shade {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(7, 7, 10, var(--shade, 0));
  pointer-events: none;
  z-index: 6;
}

.works-cartridge-section .cap-wrap {
  position: absolute;
  left: var(--shelf-center-x);
  bottom: 8px;
  transform: translateX(-50%);
  z-index: 25;
  width: min(640px, 72vw);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.works-cartridge-section .cap-center {
  pointer-events: auto;
  text-align: center;
  min-width: min(340px, 46vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  overflow: hidden;
}

.works-cartridge-section .cap-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--arch-muted);
}

.works-cartridge-section .cap-title {
  margin: 0;
  font-family: var(--font-subline);
  font-weight: 800;
  font-weight: 900;
  font-size: clamp(1.3rem, 2.3vw, 1.95rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--role-theme-color, #de4992);
  text-shadow: 0 0 24px rgba(var(--role-theme-rgb, 222, 73, 146), 0.28);
}

.works-cartridge-section .cap-rule {
  width: 26px;
  height: 2px;
  margin: 2px auto;
  background: var(--role-theme-color, #de4992);
  border-radius: 2px;
  opacity: 0.7;
}

.works-cartridge-section .cap-meta-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--arch-ink);
}

.works-cartridge-section .cap-arrow {
  pointer-events: auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(14, 14, 20, 0.84);
  color: #f4f4f8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0 0.75rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.works-cartridge-section .cap-arrow:hover {
  border-color: var(--role-theme-color, #de4992);
  background: rgba(var(--role-theme-rgb, 222, 73, 146), 0.16);
  color: var(--role-theme-color, #de4992);
  transform: scale(1.06);
}

.works-cartridge-section .cap-open-btn {
  padding: 0.26rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--role-theme-rgb, 222, 73, 146), 0.55);
  background: rgba(var(--role-theme-rgb, 222, 73, 146), 0.14);
  color: #f9d5e8;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.works-cartridge-section .cap-open-btn:hover {
  background: var(--role-theme-color, #de4992);
  border-color: var(--role-theme-color, #de4992);
  color: #0b0b0e;
}

/* ================= TRANSLUCENT DETAIL MODAL (aside#dt) ================= */
aside#dt {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(8, 8, 12, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #f4f4f8;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2.8vw, 2.2rem);
  cursor: zoom-out;
}

aside#dt.is-open { display: flex; }

aside#dt .dt-shell {
  width: min(1160px, 94vw);
  max-height: 88vh;
  overflow-y: auto;
  background: rgba(18, 18, 26, 0.88);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(var(--role-theme-rgb, 222, 73, 146), 0.45);
  border-radius: 18px;
  padding: clamp(1.2rem, 2.5vw, 2.1rem);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  cursor: default;
}

aside#dt .dt-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

aside#dt .dt-close,
aside#dt .dt-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 36px;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: #f4f4f8;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

aside#dt .dt-close:hover,
aside#dt .dt-nav-btn:hover {
  border-color: var(--role-theme-color, #de4992);
  background: rgba(var(--role-theme-rgb, 222, 73, 146), 0.16);
}

aside#dt .dt-nav-group { display: flex; align-items: center; gap: 0.5rem; }

aside#dt .dt-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(1.35rem, 3.2vw, 2.6rem);
  align-items: start;
}

aside#dt .dt-video-tabs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.75rem; }

aside#dt .dt-video-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.36rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #9898a8;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

aside#dt .dt-video-tab:hover { color: #ffffff; border-color: rgba(255, 255, 255, 0.3); }
aside#dt .dt-video-tab.is-active { color: #0b0b0e; background: var(--role-theme-color, #de4992); border-color: var(--role-theme-color, #de4992); }

aside#dt .dt-media-stage {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(6, 6, 10, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.14);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

aside#dt .dt-media-stage.is-image { aspect-ratio: auto; min-height: 290px; max-height: 58vh; padding: 12px; }
aside#dt .dt-media-stage.is-vertical { aspect-ratio: 9 / 16; max-height: 58vh; width: auto; margin: 0 auto; }
aside#dt .dt-media-stage img { width: auto; max-width: 100%; max-height: calc(58vh - 24px); height: auto; object-fit: contain; display: block; border-radius: 6px; }
aside#dt .dt-media-stage.is-image img { cursor: zoom-in; }
aside#dt .dt-zoom-trigger {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.34rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(12, 12, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f4f4f8;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: zoom-in;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
aside#dt .dt-zoom-trigger:hover {
  background: var(--role-theme-color, #de4992);
  border-color: var(--role-theme-color, #de4992);
  color: #0b0b0e;
}
aside#dt .dt-media-stage video, aside#dt .dt-media-stage iframe { width: 100%; height: 100%; border: 0; display: block; background: #050508; }

aside#dt .dt-stage-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(12, 12, 18, 0.78);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
}

aside#dt .dt-stage-arrow:hover { background: var(--role-theme-color, #de4992); border-color: var(--role-theme-color, #de4992); color: #0b0b0e; }
aside#dt .dt-stage-arrow.prev { left: 10px; }
aside#dt .dt-stage-arrow.next { right: 10px; }

aside#dt .dt-thumbs { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.85rem; }
aside#dt .dt-thumb {
  width: 76px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  padding: 2px;
  background: #0d0d13;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

aside#dt .dt-thumb.is-active, aside#dt .dt-thumb:hover { border-color: var(--role-theme-color, #de4992); transform: translateY(-2px); }
aside#dt .dt-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }

aside#dt .dt-title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 3vw, 2.55rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--role-theme-color, #de4992);
}

aside#dt .dt-desc {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.6;
  color: #e4e4ef;
  white-space: pre-line;
}

aside#dt .dt-specs {
  display: flex;
  flex-direction: column;
  padding: 1.05rem 1.25rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 1.15rem;
}

aside#dt .dt-spec-item { padding: 0.72rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
aside#dt .dt-spec-item:first-child { padding-top: 0; }
aside#dt .dt-spec-item:last-child { padding-bottom: 0; border-bottom: none; }

aside#dt .dt-spec-label {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--role-theme-color, #de4992);
  margin-bottom: 0.28rem;
}

aside#dt .dt-spec-val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.48;
  color: #ffffff;
}

aside#dt .dt-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.58rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--role-theme-rgb, 222, 73, 146), 0.65);
  background: rgba(var(--role-theme-rgb, 222, 73, 146), 0.16);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}

aside#dt .dt-ext-link:hover { background: var(--role-theme-color, #de4992); color: #0b0b0e; }

/* Mobile-only Completed Quests helpers (hidden on desktop) */
.mobile-works-cat-title,
.mobile-works-cat-bar,
.mobile-cart-nav {
  display: none;
}

/* ================= RESPONSIVE ================= */
@media (min-width: 993px) and (max-width: 1600px) {
  .sc-sticky-stage,
  .st-sticky-stage {
    padding-right: 48px;
  }
}

@media (max-width: 1120px) {
  .works-cartridge-section { --shelf-center-x: 50%; min-height: auto; margin-bottom: 3rem; }
  .works-sticky-stage { position: static; height: auto; padding: 2.5rem 0 2rem; }
  .works-cartridge-section .pack-dock { display: none; }
  .works-cartridge-section .bg-col { display: none; }
  .mobile-works-cat-title {
    display: block;
    text-align: center;
    margin: 0.85rem auto 0.5rem;
    padding: 0 1rem;
    font-family: var(--font-halftone, 'League Spartan', sans-serif);
    font-weight: 900;
    font-size: clamp(1.75rem, 6.8vw, 2.6rem);
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    background-image: radial-gradient(
      circle at 50% 50%,
      color-mix(in srgb, var(--role-theme-color, #de4992) 86%, #ffffff) 1.55px,
      color-mix(in srgb, var(--role-theme-color, #de4992) 32%, transparent) 2.05px,
      transparent 2.4px
    );
    background-size: 4.2px 4.2px;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.88;
    filter: drop-shadow(0 0 16px rgba(var(--role-theme-rgb, 222, 73, 146), 0.25));
  }
  .mobile-works-cat-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.42rem;
    padding: 0 1rem;
    margin: 0 auto 0.35rem;
    max-width: 520px;
  }
  .mobile-works-cat-pill {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(20, 20, 28, 0.85);
    color: #b4b4c6;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.34rem 0.68rem;
    border-radius: 999px;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  }
  .mobile-works-cat-pill.is-active {
    border-color: var(--role-theme-color, #de4992);
    background: rgba(var(--role-theme-rgb, 222, 73, 146), 0.18);
    color: #ffffff;
  }
  .works-cartridge-section .cap-wrap {
    width: min(94vw, 520px);
    gap: 0.75rem;
    pointer-events: auto;
  }
  .works-cartridge-section .cap-center {
    min-width: 0;
    flex: 1;
  }
  .mobile-cart-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(20, 20, 28, 0.88);
    color: #ffffff;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.14s ease;
  }
  .mobile-cart-nav:active {
    border-color: var(--role-theme-color, #de4992);
    background: rgba(var(--role-theme-rgb, 222, 73, 146), 0.25);
    transform: scale(0.94);
  }
  .works-gameboy-wrap,
  .works-companion-wrap,
  .st-companion-wrap { display: none; }
  .works-header .v2-archive-count { right: clamp(1.25rem, 4vw, 3rem); }
  .st-stage-grid { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .st-left-col { min-height: auto; }
  .st-scroll-runway { min-height: 155vh; margin-bottom: 3rem; }
  .st-sticky-stage { min-height: auto; }
}

@media (max-width: 900px) {
  .dg-runway { min-height: 165vh; }
  .dg-orb-wrap { display: none; }
  .dg-lockup { flex-direction: column; gap: 1.25rem; text-align: center; }
  .dg-sep { width: 72px; height: 1px; }
  .sc-signs-layer { display: none !important; }
  .sc-skyline-layer {
    bottom: 42%;
    width: min(92vw, 360px);
    height: 112px;
  }
  .sc-controls-hint { display: none !important; }
  .sc-integrated-section { min-height: auto; height: auto; padding-bottom: 2.25rem; }
  .sc-sticky-stage { position: static; height: auto; min-height: auto; padding-top: 1.25rem; }
  .sc-bottom-hud { padding: 0.75rem 1.25rem 1.5rem; }
  .sc-stage-center {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.5rem 1.15rem 0.85rem;
  }
  .sc-station-title { font-size: clamp(1.35rem, 5vw, 1.75rem); margin-bottom: 0.45rem; }
  .sc-station-desc { font-size: 0.84rem; line-height: 1.46; max-width: 100%; }
  .sc-character-wrap { height: 155px; margin-bottom: -6px; order: 2; }
  .sc-info-left { order: 1; }
  .sc-visual-right { order: 3; justify-content: center; }
  .sc-media-tilt { max-width: 230px; margin: 0 auto; transform: none !important; }
  .sc-station-years { font-size: 0.82rem; margin-top: 0.4rem; text-align: center; }
  .works-header .v2-archive-count { position: static; margin-top: 0.25rem; }
  .works-stage-body { min-height: 460px; }
  aside#dt .dt-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .st-scroll-runway { min-height: auto; margin-bottom: 2.5rem; }
  .st-sticky-stage { position: static; min-height: auto; padding: 2.75rem 0.75rem 1.5rem; overflow: visible; }
  .st-left-col { min-height: auto; }
  .st-hud-panel { padding-top: 0; }
  .st-tree-stage {
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto !important;
    height: 480px;
    min-height: 480px;
    max-height: none;
  }
  .st-node.is-root .st-orb { width: 56px; height: 56px; font-size: 0.58rem; }
  .st-node.is-hub .st-orb { width: 46px; height: 46px; padding: 8px; }
  .st-node.is-tool .st-orb { width: 34px; height: 34px; padding: 3px; }
  .st-node-lbl {
    font-size: 0.52rem;
    padding: 1px 4px;
    letter-spacing: 0;
    max-width: 66px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
