/* ===== INTERACTIVE — Rich desktop stage ===== */
.interactive-page {
  min-height: 100vh;
  padding-top: var(--nav-h);
  overflow-x: hidden;
  background: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(168, 85, 247, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(34, 211, 238, 0.06), transparent 50%),
    var(--bg);
}

.interactive-page .reveal {
  opacity: 1;
  transform: none;
}

.interact-ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.interact-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: interact-orb-drift 18s ease-in-out infinite;
}

.interact-orb-1 {
  width: 420px;
  height: 420px;
  background: rgba(168, 85, 247, 0.25);
  top: 10%;
  left: -5%;
}

.interact-orb-2 {
  width: 360px;
  height: 360px;
  background: rgba(34, 211, 238, 0.15);
  bottom: 5%;
  right: 5%;
  animation-delay: -8s;
}

.interact-orb-3 {
  width: 280px;
  height: 280px;
  background: rgba(168, 85, 247, 0.12);
  bottom: 20%;
  left: 35%;
  animation-delay: -14s;
}

@keyframes interact-orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.08); }
}

.interactive-page #particle-canvas {
  opacity: 0.32;
}

/* ---- Page chrome (fills empty margins) ---- */
.interact-chrome {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.interact-grid-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(168, 85, 247, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 85, 247, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, black 20%, transparent 75%);
  opacity: 0.5;
}

.interact-chrome .hud-corner {
  position: fixed;
  width: 56px;
  height: 56px;
  border-color: rgba(168, 85, 247, 0.35);
  border-style: solid;
  border-width: 0;
  opacity: 0.65;
}

.interact-chrome .hud-corner.tl {
  top: calc(var(--nav-h) + 0.75rem);
  left: 1.25rem;
  border-top-width: 2px;
  border-left-width: 2px;
}

.interact-chrome .hud-corner.tr {
  top: calc(var(--nav-h) + 0.75rem);
  right: 1.25rem;
  border-top-width: 2px;
  border-right-width: 2px;
}

.interact-chrome .hud-corner.bl {
  bottom: calc(var(--footer-h) + 3.5rem);
  left: 1.25rem;
  border-bottom-width: 2px;
  border-left-width: 2px;
}

.interact-chrome .hud-corner.br {
  bottom: calc(var(--footer-h) + 3.5rem);
  right: 1.25rem;
  border-bottom-width: 2px;
  border-right-width: 2px;
}

.interact-side-label {
  position: fixed;
  top: 50%;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.18);
  white-space: nowrap;
  z-index: 2;
}

.interact-side-left {
  left: 0.65rem;
  transform: translateY(-50%) rotate(-90deg);
}

.interact-side-right {
  right: 0.65rem;
  transform: translateY(-50%) rotate(90deg);
}

.interact-rail {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  z-index: 2;
}

.interact-rail-left {
  left: clamp(0.5rem, 2vw, 2rem);
}

.interact-rail-right {
  right: clamp(0.5rem, 2vw, 2rem);
  align-items: flex-end;
}

.rail-chip {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(168, 85, 247, 0.15);
  background: rgba(8, 10, 20, 0.55);
  backdrop-filter: blur(8px);
  min-width: 88px;
}

.rail-k {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.rail-v {
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.rail-meter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.rail-meter i {
  display: block;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.rail-meter i::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p, 50%);
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  border-radius: 2px;
}

.interactive-page .scanlines {
  display: none;
}

/* ---- Layout ---- */
.interactive-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  grid-template-rows: auto auto;
  gap: 1rem 2rem;
  max-width: 1520px;
  margin: 0 auto;
  padding: 1rem clamp(1.5rem, 4vw, 3.5rem) calc(var(--footer-h) + 3.5rem);
  min-height: calc(100vh - var(--nav-h));
  align-items: start;
}

.stage-column {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.control-panel {
  grid-column: 2;
  grid-row: 1 / 3;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  align-self: start;
}

.stage-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 0.25rem;
}

.stage-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1.05;
  margin-top: 0.15rem;
  background: linear-gradient(135deg, #fff 30%, #c4b5fd 70%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stage-header h1 span {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(168, 85, 247, 0.7);
  background: none;
}

.stage-header-desc {
  text-align: right;
  max-width: 300px;
  flex-shrink: 0;
}

.bilingual-line,
.bilingual-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.bilingual-line span:last-child,
.bilingual-block span:last-child {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ---- 3D Stage ---- */
.stage3d-frame {
  position: relative;
  height: min(80vh, 780px);
  min-height: 540px;
  border-radius: 22px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  overflow: hidden;
  background: #080c18;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 40px 120px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(168, 85, 247, 0.08);
  animation: stage-border-glow 4s ease-in-out infinite;
}

@keyframes stage-border-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,0.03) inset, 0 40px 120px rgba(0,0,0,0.55), 0 0 60px rgba(168,85,247,0.06); }
  50% { box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset, 0 40px 120px rgba(0,0,0,0.55), 0 0 100px rgba(34,211,238,0.1); }
}

.stage-vignette {
  display: none;
}

.stage-corner {
  position: absolute;
  z-index: 4;
  width: 28px;
  height: 28px;
  pointer-events: none;
  border-color: rgba(34, 211, 238, 0.55);
  border-style: solid;
}

.stage-corner-tl { top: 16px; left: 16px; border-width: 2px 0 0 2px; }
.stage-corner-tr { top: 16px; right: 16px; border-width: 2px 2px 0 0; }
.stage-corner-bl { bottom: 40px; left: 16px; border-width: 0 0 2px 2px; }
.stage-corner-br { bottom: 40px; right: 16px; border-width: 0 2px 2px 0; }

.stage-canvas-host,
#stage3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.stage-canvas-host canvas,
#stage3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.stage-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(transparent, rgba(4, 6, 12, 0.75));
  pointer-events: none;
}

/* Stable video interaction mode: the idle loop is replaced by a prepared
   action clip, then restored automatically when that clip finishes. */
.simple-video-stage {
  overflow: hidden;
  background: #faf9fe;
}

.simple-stage-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 120ms ease;
  background: #faf9fe;
}

.simple-stage-video.active {
  opacity: 1;
  visibility: visible;
}

.stage-touch-hint { position:absolute; z-index:6; left:50%; bottom:3.2rem; transform:translateX(-50%); display:flex; align-items:center; gap:.55rem; padding:.48rem .75rem; border:1px solid rgba(255,255,255,.12); border-radius:999px; background:rgba(6,8,16,.58); backdrop-filter:blur(12px); color:rgba(255,255,255,.6); font:.52rem/1 var(--font-mono); letter-spacing:.11em; pointer-events:none; transition:opacity .3s ease; }
.touch-ripple { width:7px; height:7px; border-radius:50%; background:var(--cyan); box-shadow:0 0 0 0 rgba(34,211,238,.4); animation:touch-ping 2s infinite; }
@keyframes touch-ping { 60%,100% { box-shadow:0 0 0 9px rgba(34,211,238,0); } }
.stage-touched .stage-touch-hint { opacity:0; }
.stage3d-frame.presence-pulse::after { content:""; position:absolute; z-index:3; inset:0; pointer-events:none; border:1px solid rgba(207,190,255,.85); box-shadow:inset 0 0 90px rgba(168,85,247,.25),0 0 80px rgba(34,211,238,.18); animation:presence-flash 1.1s ease-out both; }
@keyframes presence-flash { 0% { opacity:0; } 25% { opacity:1; } 100% { opacity:0; } }

/* ---- Meta cards below stage ---- */
.stage-meta-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.meta-card {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(168, 85, 247, 0.15);
  background: rgba(10, 12, 22, 0.65);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, background 0.2s;
}

.meta-card:hover {
  border-color: rgba(34, 211, 238, 0.25);
  background: rgba(14, 16, 28, 0.75);
}

.meta-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--cyan);
  background: rgba(168, 85, 247, 0.06);
  flex-shrink: 0;
}

.meta-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  margin-bottom: 0.2rem;
  color: var(--silver);
}

.meta-card span {
  font-size: 0.68rem;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ---- Marquee + footer ---- */
.interact-marquee {
  position: fixed;
  bottom: var(--footer-h);
  left: 0;
  right: 0;
  z-index: 850;
  margin: 0;
}

.interact-footer {
  z-index: 900;
}

.stage-hud {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  pointer-events: none;
}

.hud-tag {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.12em;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  background: rgba(6, 8, 16, 0.8);
  color: var(--text-dim);
  backdrop-filter: blur(10px);
}

.hud-tag.hud-live {
  color: var(--cyan);
  border-color: rgba(34, 211, 238, 0.4);
}

.hud-tag.hud-3d {
  color: var(--purple);
  border-color: rgba(168, 85, 247, 0.4);
}

.stage-stats {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

/* ---- Side panel ---- */
.panel-card {
  position: relative;
  padding: 1.6rem 1.4rem;
  border-radius: 20px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  background: linear-gradient(160deg, rgba(16, 18, 32, 0.92) 0%, rgba(8, 10, 20, 0.88) 100%);
  backdrop-filter: blur(24px);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.panel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), transparent);
  opacity: 0.6;
}

.panel-head {
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-head h2 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.25rem;
  color: var(--silver);
}

.panel-sub {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}

.control-panel .desc {
  font-size: 0.76rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 1.3rem;
}

.action-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-height: 60px;
  padding: 0.9rem 1.05rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  cursor: pointer;
  color: var(--text);
  text-align: left;
  transition: all 0.22s ease;
}

.action-btn:hover:not(:disabled) {
  border-color: rgba(168, 85, 247, 0.45);
  background: linear-gradient(135deg, rgba(168,85,247,0.12) 0%, rgba(34,211,238,0.04) 100%);
  transform: translateX(4px);
  box-shadow: 0 4px 24px rgba(168, 85, 247, 0.12);
}

.action-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.action-btn.active {
  border-color: rgba(34, 211, 238, 0.55);
  background: linear-gradient(135deg, rgba(34,211,238,0.12) 0%, rgba(168,85,247,0.06) 100%);
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.15);
}

.action-btn .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: rgba(168, 85, 247, 0.08);
  box-shadow: inset 0 0 20px rgba(168, 85, 247, 0.08);
}

.action-btn .name {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  display: block;
}

.action-btn .sub {
  font-size: 0.7rem;
  color: var(--text-dim);
  display: block;
  margin-top: 0.1rem;
}

.panel-footer {
  margin-top: 1.3rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.presence-card { margin-top:1rem; }
.presence-head { display:flex; align-items:flex-start; justify-content:space-between; gap:1rem; }
.presence-state { flex:0 0 auto; padding:.35rem .55rem; border:1px solid rgba(34,211,238,.28); border-radius:999px; color:var(--cyan); font:.5rem/1 var(--font-mono); letter-spacing:.1em; background:rgba(34,211,238,.05); }
.affinity-readout { margin:.25rem 0 1rem; }
.affinity-copy { display:flex; justify-content:space-between; align-items:baseline; color:var(--text-dim); font:.56rem/1 var(--font-mono); letter-spacing:.11em; }
.affinity-copy strong { color:#d8ccff; font-size:.76rem; }
.affinity-track { height:3px; margin-top:.55rem; background:rgba(255,255,255,.08); overflow:hidden; }
.affinity-track i { display:block; width:var(--affinity); height:100%; background:linear-gradient(90deg,var(--purple),var(--cyan)); box-shadow:0 0 14px rgba(34,211,238,.5); transition:width .55s cubic-bezier(.2,.8,.2,1); }
.presence-projects { display:grid; gap:.45rem; }
.presence-project { display:grid; grid-template-columns:30px 1fr auto; align-items:center; gap:.7rem; padding:.65rem .7rem; border:1px solid rgba(255,255,255,.07); border-radius:12px; background:rgba(255,255,255,.02); }
.presence-icon { display:grid; place-items:center; width:30px; height:30px; border-radius:9px; color:#c9b8ff; background:rgba(168,85,247,.08); }
.presence-project strong { display:block; color:var(--silver); font:.56rem/1.2 var(--font-display); letter-spacing:.09em; }
.presence-project div span { display:block; margin-top:.18rem; color:var(--text-dim); font-size:.61rem; }
.presence-project em { color:rgba(34,211,238,.7); font:normal .46rem/1 var(--font-mono); letter-spacing:.08em; }
.sync-btn { position:relative; width:100%; margin-top:.75rem; min-height:54px; display:flex; align-items:center; justify-content:space-between; overflow:hidden; padding:.7rem .8rem; border:1px solid rgba(168,85,247,.28); border-radius:12px; color:var(--text); background:rgba(168,85,247,.045); cursor:pointer; text-align:left; touch-action:none; }
.sync-progress { position:absolute; inset:0 auto 0 0; width:0; background:linear-gradient(90deg,rgba(168,85,247,.18),rgba(34,211,238,.14)); }
.sync-btn.charging .sync-progress { width:100%; transition:width 1.4s linear; }
.sync-main,.sync-mark { position:relative; z-index:1; }
.sync-main b,.sync-main small { display:block; }
.sync-main b { font:.58rem/1.2 var(--font-display); letter-spacing:.12em; }
.sync-main small { margin-top:.22rem; color:var(--text-dim); font-size:.58rem; }
.sync-mark { color:var(--cyan); font-size:1.2rem; transition:transform .4s ease; }
.sync-btn.charging .sync-mark { animation:sync-spin 1.2s linear infinite; }
.sync-btn.synced { border-color:rgba(34,211,238,.62); box-shadow:0 0 28px rgba(34,211,238,.12); }
@keyframes sync-spin { to { transform:rotate(360deg); } }
.presence-whisper { margin:.7rem .15rem 0; min-height:1.4em; color:rgba(224,217,244,.6); font-size:.67rem; line-height:1.5; transition:color .3s; }
.presence-whisper.speak { color:#eee8ff; animation:whisper-in .55s ease both; }
@keyframes whisper-in { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }

.gesture-module { margin-top:.8rem; padding:.8rem; border:1px solid rgba(34,211,238,.16); border-radius:14px; background:linear-gradient(145deg,rgba(34,211,238,.035),rgba(168,85,247,.035)); }
.gesture-prominent { margin:0 0 1rem; border-color:rgba(34,211,238,.32); background:linear-gradient(145deg,rgba(34,211,238,.075),rgba(168,85,247,.07)); box-shadow:0 16px 50px rgba(0,0,0,.18), inset 0 0 36px rgba(34,211,238,.025); }
.gesture-prominent .gesture-module-head strong { color:#f0ebff; font-size:.64rem; }
.gesture-prominent .camera-btn { min-height:54px; border-color:rgba(34,211,238,.34); background:linear-gradient(90deg,rgba(34,211,238,.08),rgba(168,85,247,.06)); }
.gesture-module-head { display:flex; align-items:center; justify-content:space-between; gap:.6rem; margin-bottom:.65rem; }
.gesture-module-head strong,.gesture-module-head span { display:block; }
.gesture-module-head strong { color:var(--silver); font:.58rem/1.2 var(--font-display); letter-spacing:.11em; }
.gesture-module-head div span { margin-top:.18rem; color:var(--text-dim); font-size:.6rem; }
.gesture-led { width:7px; height:7px; border-radius:50%; background:rgba(255,255,255,.18); box-shadow:0 0 0 transparent; transition:.25s; }
.gesture-led.active { background:#7ee7a7; box-shadow:0 0 12px rgba(126,231,167,.8); }
.gesture-led.error { background:#ff7c91; box-shadow:0 0 12px rgba(255,124,145,.65); }
.gesture-preview { position:relative; aspect-ratio:16/9; margin:.2rem 0 .65rem; overflow:hidden; border:1px solid rgba(255,255,255,.1); border-radius:10px; background:#05070c; }
.gesture-preview[hidden] { display:none; }
.gesture-preview video,.gesture-preview canvas { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.gesture-preview video { transform:scaleX(-1); filter:saturate(.65) contrast(1.08) brightness(.72); }
.gesture-preview canvas { z-index:2; }
.gesture-preview::after { content:""; position:absolute; z-index:3; inset:0; pointer-events:none; box-shadow:inset 0 0 40px rgba(7,8,15,.55); background:linear-gradient(180deg,rgba(0,0,0,.06),transparent 45%,rgba(0,0,0,.45)); }
.gesture-readout { position:absolute; z-index:4; left:.55rem; right:.55rem; bottom:.45rem; display:flex; justify-content:space-between; align-items:center; gap:.6rem; pointer-events:none; }
.gesture-readout b { color:#e8e2ff; font:.5rem/1 var(--font-display); letter-spacing:.08em; }
.gesture-readout span { color:rgba(126,231,167,.8); font:.42rem/1 var(--font-mono); letter-spacing:.06em; }
.camera-btn { width:100%; min-height:46px; display:flex; align-items:center; gap:.65rem; padding:.55rem .7rem; border:1px solid rgba(34,211,238,.2); border-radius:10px; color:var(--text); background:rgba(34,211,238,.04); text-align:left; cursor:pointer; }
.camera-btn:hover { border-color:rgba(34,211,238,.4); background:rgba(34,211,238,.07); }
.camera-btn.active { border-color:rgba(126,231,167,.35); background:rgba(126,231,167,.05); }
.camera-btn:disabled { opacity:.55; cursor:wait; }
.camera-icon { width:27px; height:27px; display:grid; place-items:center; border:1px solid rgba(34,211,238,.25); border-radius:8px; color:var(--cyan); }
.camera-btn b,.camera-btn small { display:block; }
.camera-btn b { font:.54rem/1.2 var(--font-display); letter-spacing:.1em; }
.camera-btn small { margin-top:.16rem; color:var(--text-dim); font-size:.56rem; }
.gesture-status { margin:.55rem 0 0; color:rgba(229,224,242,.58); font-size:.58rem; line-height:1.5; }
.gesture-privacy { margin:.3rem 0 0; color:rgba(229,224,242,.3); font-size:.5rem; line-height:1.45; }

.char-status {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  min-height: 1.2em;
  line-height: 1.5;
}

.char-status.active { color: var(--cyan); }

.file-protocol-tip {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1.5;
  color: var(--yellow);
  background: rgba(250, 204, 21, 0.07);
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  margin-bottom: 1rem;
}

@media (max-width: 1100px) {
  .interactive-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: 1.25rem 1.25rem calc(var(--footer-h) + 3.5rem);
    align-items: start;
  }

  .stage-column {
    grid-column: 1;
    grid-row: 1;
  }

  .control-panel {
    grid-column: 1;
    grid-row: 2;
    position: static;
  }

  .stage-meta-row {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .interact-rail,
  .interact-side-label {
    display: none;
  }

  .stage-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .stage-header-desc {
    text-align: left;
    max-width: none;
  }

  .stage3d-frame {
    min-height: 440px;
    height: min(64vh, 620px);
  }
}

@media (max-width: 1400px) {
  .interact-rail { display: none; }
}

@media (max-width: 900px) {
  .interact-side-label { display: none; }
}

@media (max-width: 600px) {
  .interactive-layout { padding: 1rem 1rem calc(var(--footer-h) + 3rem); }
  .stage3d-frame { min-height: 380px; height: 54vh; }
  .interact-chrome .hud-corner { width: 36px; height: 36px; }
  .interact-footer .os-pills { display: none; }
}
