/* PENTHOUSE IN THE CLOUDS — Gemzy-Dee EP subsection */

.penthouse-page {
  --ph-rose: #ff6b9d;
  --ph-violet: #b026ff;
  --ph-cloud: #e8f4ff;
}

/* 4:3 cyberpunk bezel frame */
.bezel-43 {
  aspect-ratio: 4 / 3;
  max-width: min(720px, 92vw);
  margin-inline: auto;
  padding: 12px;
  background: linear-gradient(135deg, #1a1a2e 0%, #0a0a12 50%, #16213e 100%);
  border: 3px solid var(--cyan);
  box-shadow:
    inset 0 0 40px #00e5ff22,
    0 0 32px #b026ff44,
    0 0 0 1px #ff2d9b66;
  position: relative;
}

.bezel-43::before,
.bezel-43::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid var(--magenta);
  pointer-events: none;
}

.bezel-43::before {
  top: 6px;
  left: 6px;
  border-right: none;
  border-bottom: none;
}

.bezel-43::after {
  bottom: 6px;
  right: 6px;
  border-left: none;
  border-top: none;
}

.bezel-43 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid #ffffff22;
}

.copy-header-strip {
  font-family: var(--font-mono);
  font-size: clamp(0.75rem, 2vw, 0.95rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: #00000088;
  border: 1px solid var(--cyan-dim);
  padding: 0.75rem 1rem;
  margin: 1.5rem auto;
  max-width: 720px;
  text-align: center;
}

.copy-header-strip strong {
  color: var(--ph-rose);
}

.flavor-prose {
  max-width: 720px;
  margin: 1.5rem auto 0;
  font-size: 1.05rem;
  line-height: 1.75;
}

.flavor-prose .kersey-aside {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--magenta);
  background: #ff2d9b0a;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* Amiga jukebox cards */
.jukebox-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.juke-slot {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 100%;
}

.juke-slot:hover {
  border-color: var(--cyan-dim);
}

.juke-slot.is-playing {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.juke-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.juke-slot-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.juke-slot-copy {
  flex: 1;
}

.juke-slot-copy h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin: 0 0 0.35rem;
  color: var(--ph-cloud);
}

.juke-slot-copy p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-dim);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.genre-badge {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.4rem;
  border: 1px solid var(--purple);
  color: var(--purple);
  text-align: right;
  line-height: 1.2;
  max-width: 58%;
}

.tape-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.5rem 0.85rem;
  margin-top: auto;
  width: 100%;
  background: #00000066;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s;
}

.tape-btn:hover {
  background: var(--cyan);
  color: #000;
}

.tape-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* WASM viz bus */
.viz-bus-panel {
  margin-top: 2rem;
  border: 2px solid var(--green);
  background: #000000cc;
  min-height: 120px;
  position: relative;
  overflow: hidden;
}

.viz-bus-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--green);
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #39ff1433;
}

.viz-bus-canvas-wrap {
  padding: 0.5rem 1rem 1rem;
  width: 100%;
  box-sizing: border-box;
}

.viz-bus-canvas-wrap canvas,
#ph-spectrum,
#cj-spectrum {
  display: block;
  width: 100%;
  height: 120px;
  background: #000;
  border-radius: 2px;
  box-shadow: inset 0 0 24px #00e5ff11;
}

.viz-bus-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  padding: 0 0.75rem 0.5rem;
}

/* Sensory terminal */
.sensory-terminal {
  background: #020a04;
  border: 2px solid var(--green);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  padding: 1.25rem;
  margin-top: 1.5rem;
  max-height: 280px;
  overflow-y: auto;
}

.sensory-terminal .line {
  color: var(--green);
  margin: 0.25rem 0;
}

.sensory-terminal .line.dim {
  color: #39ff1488;
}

.sensory-terminal .line.warn {
  color: var(--amber);
}

.sensory-warning {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px dashed var(--amber);
  background: #ffb8000a;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--amber);
}

.track-notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.track-note {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 100%;
}

.track-note-head {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.track-note-icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
}

.track-note strong {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.track-note p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-dim);
}

@media (max-width: 960px) {
  .jukebox-matrix,
  .track-notes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .jukebox-matrix,
  .track-notes-grid {
    grid-template-columns: 1fr;
  }
}
