@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&family=Share+Tech+Mono&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:     #030314;
  --violet: #7c3aed;
  --cyan:   #00d4ff;
  --orange: #f97316;
  --red:    #dc2626;
}

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  background: var(--bg);
  font-family: 'Inter', sans-serif;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
}

/* Nebulosa */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(124,58,237,0.16) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 80% 60%, rgba(0,212,255,0.09) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 85%, rgba(26,26,78,0.35) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Stelle */
#stars-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle var(--d, 3s) var(--delay, 0s) ease-in-out infinite alternate;
}

@keyframes twinkle {
  0%   { opacity: calc(var(--op, 0.6) * 0.2); transform: scale(0.7); }
  100% { opacity: var(--op, 0.6); transform: scale(1); }
}

/* Main layout */
.main {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 24px;
  user-select: none;
}

/* Titolo 404 */
.title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 52px;
  color: #fff;
  letter-spacing: -2px;
  line-height: 1;
  text-shadow: 0 0 30px rgba(124,58,237,0.6), 0 0 60px rgba(124,58,237,0.2);
  margin-bottom: 14px;
}

/* Card terminale */
.terminal-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0,212,255,0.18);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 40px rgba(0,212,255,0.06),
    0 0 80px rgba(124,58,237,0.06),
    inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
  min-width: 480px;
}

/* Header terminale */
.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(0,212,255,0.05);
  border-bottom: 1px solid rgba(0,212,255,0.1);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-red    { background: #e5534b; box-shadow: 0 0 4px rgba(229,83,75,0.6); cursor: pointer; }
.dot-red:hover { filter: brightness(1.3); }
.dot-yellow { background: #e3b341; box-shadow: 0 0 4px rgba(227,179,65,0.6); }
.dot-green  { background: #3fb950; box-shadow: 0 0 4px rgba(63,185,80,0.6); }

.terminal-prompt {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: rgba(0,212,255,0.5);
  margin-left: 8px;
  letter-spacing: 0.05em;
}

/* Body terminale */
.terminal-body {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 28px 32px 20px;
}

/* Figure area — grid sovrapposta */
.figure-area {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  width: 160px;
  height: 180px;
  flex-shrink: 0;
}

.figure {
  grid-column: 1;
  grid-row: 1;
  width: 160px;
  height: 180px;
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(124,58,237,0.5));
  overflow: visible;
}

#fig-demon {
  filter: drop-shadow(0 0 18px rgba(220,38,38,0.7)) drop-shadow(0 0 36px rgba(255,107,53,0.35));
  animation: float 2.4s ease-in-out infinite;
}

#fig-lock-closed {
  filter: drop-shadow(0 0 16px rgba(124,58,237,0.7));
  cursor: pointer;
}

#fig-lock-open {
  filter: drop-shadow(0 0 16px rgba(0,212,255,0.7));
  cursor: pointer;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* Flicker */
@keyframes flicker-out {
  0%   { opacity: 1; }
  15%  { opacity: 0.6; }
  30%  { opacity: 1; }
  50%  { opacity: 0.2; }
  65%  { opacity: 0.8; }
  80%  { opacity: 0.1; }
  100% { opacity: 0; }
}

@keyframes flicker-in {
  0%   { opacity: 0; }
  20%  { opacity: 0.8; }
  35%  { opacity: 0.2; }
  55%  { opacity: 1; }
  70%  { opacity: 0.4; }
  85%  { opacity: 1; }
  100% { opacity: 1; }
}

.flicker-out { animation: flicker-out 0.5s ease-out forwards !important; }
.flicker-in  { animation: flicker-in  0.5s ease-in  forwards !important; }

/* Divisore */
.divider {
  width: 1px;
  height: 150px;
  background: linear-gradient(to bottom,
    transparent,
    rgba(0,212,255,0.2) 25%,
    rgba(0,212,255,0.2) 75%,
    transparent
  );
  flex-shrink: 0;
  align-self: center;
}

/* Digit scroll */
.label {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

.digit-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.arrow {
  background: none;
  border: none;
  color: rgba(255,255,255,0.2);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s;
  font-family: 'Share Tech Mono', monospace;
}

.digit-wrapper:hover .arrow { opacity: 1; }
.arrow:hover { color: var(--cyan); text-shadow: 0 0 8px var(--cyan); }

.digit {
  font-family: 'Share Tech Mono', monospace;
  font-size: 48px;
  color: #fff;
  line-height: 1;
  text-shadow: 0 0 14px rgba(124,58,237,0.9), 0 0 28px rgba(124,58,237,0.4);
  animation: pulse 4s ease-in-out infinite;
  display: block;
  width: 54px;
  text-align: center;
}

@keyframes pulse {
  0%, 100% { text-shadow: 0 0 14px rgba(124,58,237,0.9), 0 0 28px rgba(124,58,237,0.4); }
  50%       { text-shadow: 0 0 18px rgba(0,212,255,0.95), 0 0 40px rgba(0,212,255,0.3); }
}

/* Subtitle dentro la card */
.subtitle {
  font-family: 'Share Tech Mono', monospace;
  font-size: 15px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 4px;
  text-transform: uppercase;
  text-align: center;
  padding: 0 32px 18px;
}

/* Menu segreto — dentro la card */
.secret-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 0 32px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s ease, padding 0.3s ease;
}

.secret-menu.open {
  max-height: 300px;
  padding: 6px 32px 20px;
}

.secret-menu a {
  font-family: 'Share Tech Mono', monospace;
  font-size: 15px;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  width: 0px;
  display: block;
  text-shadow: 0 0 8px rgba(0,212,255,0.5);
  transition: color 0.2s;
}

.secret-menu a:hover {
  color: #fff;
  text-shadow: 0 0 12px var(--cyan);
}

/* Confirm overlay */
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3,3,20,0.6);
  backdrop-filter: blur(4px);
}

.confirm-dialog {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  padding: 24px 28px;
  min-width: 280px;
  box-shadow: 0 0 40px rgba(0,212,255,0.08), 0 0 80px rgba(124,58,237,0.06);
}

.confirm-prompt {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: rgba(0,212,255,0.4);
  display: block;
  margin-bottom: 12px;
}

.confirm-message {
  font-family: 'Share Tech Mono', monospace;
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.confirm-btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  letter-spacing: 0.05em;
  background: none;
  transition: all 0.15s;
}

.confirm-btn.cancel {
  color: rgba(255,255,255,0.4);
  border-color: rgba(255,255,255,0.1);
}
.confirm-btn.cancel:hover {
  color: rgba(255,255,255,0.7);
  border-color: rgba(255,255,255,0.25);
}

.confirm-btn.ok {
  color: #e5534b;
  border-color: rgba(229,83,75,0.35);
}
.confirm-btn.ok:hover {
  background: rgba(229,83,75,0.12);
  border-color: rgba(229,83,75,0.6);
}

/* Animazioni terminale */
@keyframes terminal-close {
  0%   { transform: scaleY(1); opacity: 1; }
  40%  { transform: scaleY(0.04); opacity: 0.8; }
  100% { transform: scaleY(0); opacity: 0; }
}
@keyframes terminal-open {
  0%   { transform: scaleY(0); opacity: 0; }
  60%  { transform: scaleY(0.04); opacity: 0.8; }
  100% { transform: scaleY(1); opacity: 1; }
}
.terminal-closing { animation: terminal-close 0.35s ease-in forwards; }
.terminal-opening { animation: terminal-open 0.35s ease-out forwards; }

/* Desktop icons */
.desktop-icons {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: flex-end;
  animation: flicker-in 0.4s ease-in forwards;
}

.launcher {
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
}

.launcher[onclick] { cursor: pointer; }
.launcher:not([onclick]) { cursor: default; opacity: 0.75; }

.launcher-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6), 0 0 16px rgba(0,212,255,0.08);
  transition: filter 0.15s, transform 0.15s;
}

.launcher[onclick]:hover .launcher-icon {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.launcher-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.9), 0 0 8px rgba(0,0,0,0.7);
  letter-spacing: 0.05em;
  margin-top: 12px;
}

/* Dot simboli nell'explorer */
#explorer-window .dot {
  position: relative;
}

#explorer-window .dot::after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7px;
  font-weight: 700;
  color: rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}

#explorer-window .terminal-header:hover .dot-red::after {
  content: '×';
  opacity: 1;
}

#explorer-window .terminal-header:hover #explorer-back.active::after {
  content: '<';
  opacity: 1;
}

#explorer-back { cursor: default; }
#explorer-back.active { cursor: pointer; }

/* Explorer album grid */
.explorer-albums {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  animation: flicker-in 0.35s ease-in forwards;
}

.explorer-album {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 54px;
  cursor: pointer;
  user-select: none;
}

.explorer-album-cover {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,58,237,0.3);
  transition: filter 0.15s, transform 0.15s;
  background: #0d0d1f;
}

.explorer-album:hover .explorer-album-cover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.explorer-album-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.65);
  margin-top: 6px;
  text-align: center;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

/* ---- Track list ---- */
.track-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.track-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.12s;
  min-width: 0;
}
.track-item:hover { background: rgba(0,212,255,0.05); }
.track-item.active { background: rgba(0,212,255,0.08); }

.track-index {
  font-family: 'Share Tech Mono', monospace;
  font-size: 10px;
  color: rgba(0,212,255,0.3);
  width: 18px;
  text-align: right;
  flex-shrink: 0;
}
.track-item.active .track-index { color: rgba(0,212,255,0.85); }

.track-playing-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(0,212,255,0.75);
  flex-shrink: 0;
  display: none;
}
.track-item.active.playing .track-playing-dot {
  display: block;
  animation: pulse-dot 1.2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.65); }
}

.track-name {
  flex: 1;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.track-item.active .track-name { color: rgba(255,255,255,0.92); }

/* ---- Player bar ---- */
.player-bar {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  border-top: 1px solid transparent;
  flex-shrink: 0;
}
.player-bar.visible {
  max-height: 76px;
  border-top-color: rgba(0,212,255,0.08);
}

.player-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
}

.player-disc-wrap {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.player-disc {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #0d0d1f;
  position: relative;
  overflow: hidden;
  animation: disc-spin 5s linear infinite;
  animation-play-state: paused;
  box-shadow: 0 2px 10px rgba(0,0,0,0.55), 0 0 0 1px rgba(124,58,237,0.35);
}
.player-disc-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.player-disc-cover[src=""], .player-disc-cover:not([src]) { display: none; }
.player-disc::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(10,10,22,0.75) 0%, rgba(10,10,22,0.75) 13%, transparent 13%),
    radial-gradient(circle at 33% 33%, rgba(255,255,255,0.1), transparent 55%);
  pointer-events: none;
  z-index: 1;
}
.player-disc.spinning { animation-play-state: running; }

@keyframes disc-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.player-disc-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: white;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.3;
  transition: opacity 0.15s;
  z-index: 2;
  line-height: 1;
  padding: 0;
}
.player-disc-wrap:hover .player-disc-btn { opacity: 0.9; }

@keyframes btn-click {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.78); opacity: 0.9; }
  100% { transform: scale(1); }
}
.player-disc-btn.btn-click { animation: btn-click 0.18s ease; }

.player-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.player-top-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.player-track-name {
  flex: 1;
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  overflow: hidden;
  min-width: 0;
}
.player-track-name-inner {
  display: inline-block;
  white-space: nowrap;
  animation: marquee-scroll 10s linear infinite;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.player-ctrl-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 12px;
  opacity: 0.3;
  transition: opacity 0.15s, transform 0.1s;
  padding: 2px 3px;
  line-height: 1;
  flex-shrink: 0;
}
.player-ctrl-btn:hover:not(:disabled) { opacity: 0.9; }
.player-ctrl-btn:disabled { opacity: 0.12; cursor: default; }
.player-ctrl-btn:active:not(:disabled) { transform: scale(0.82); }

.player-ctrl-btn[data-state="album"],
.player-ctrl-btn[data-state="all"] {
  color: rgba(0,212,255,0.9);
  opacity: 0.75;
}
.player-ctrl-btn[data-state="all"] { opacity: 1; }

.player-controls-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-progress-wrap {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
}
.player-progress-fill {
  height: 100%;
  background: rgba(0,212,255,0.6);
  border-radius: 2px;
  width: 0%;
  pointer-events: none;
}

.player-time {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: rgba(0,212,255,0.45);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---- Equalizer panel ---- */
.eq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  border-top: 1px solid transparent;
  flex-shrink: 0;
}
.eq-panel.visible {
  max-height: 155px;
  border-top-color: rgba(0,212,255,0.08);
}
.eq-inner {
  display: flex;
  gap: 4px;
  padding: 8px 14px;
  justify-content: space-between;
}
.eq-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.eq-val {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: rgba(0,212,255,0.5);
  min-width: 16px;
  text-align: center;
  margin-bottom: 15px;
}
.eq-freq {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin-top: 15px;
}
.eq-slider {
  -webkit-appearance: slider-vertical;
  appearance: slider-vertical;
  writing-mode: vertical-lr;
  direction: rtl;
  width: 14px;
  height: 72px;
  accent-color: rgb(85 6 111 / 70%);
  cursor: pointer;
}
#btn-eq[data-state="on"] {
  color: rgba(0,212,255,0.9);
  opacity: 0.9;
}

.tracks-cover {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  display: block;
}

/* ---- Author view ---- */
.author-view {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  flex: 1;
}
.author-tabs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  flex-shrink: 0;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,212,255,0.25) transparent;
}
.author-tabs::-webkit-scrollbar { height: 3px; }
.author-tabs::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.25); border-radius: 2px; }
.author-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
}
.author-tab.disabled { cursor: default; opacity: 0.35; }
.author-tab-cover {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: #0d0d1f;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5), 0 0 0 1px rgba(124,58,237,0.25);
  transition: width 0.18s ease, height 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.author-tab:not(.disabled):hover .author-tab-cover {
  filter: brightness(1.15);
}
.author-tab-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 9px;
  color: rgba(255,255,255,0.45);
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  transition: color 0.18s ease;
}
.author-tab.active .author-tab-cover {
  width: 60px;
  height: 60px;
  box-shadow: 0 0 0 2px rgba(0,212,255,0.7), 0 2px 10px rgba(0,0,0,0.5);
  filter: brightness(1.1);
}
.author-tab.active .author-tab-label {
  color: rgba(0,212,255,0.85);
}
.author-tracks-panel {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,212,255,0.25) transparent;
  transition: opacity 0.12s ease;
}
.author-tracks-panel::-webkit-scrollbar { width: 3px; }
.author-tracks-panel::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.25); border-radius: 2px; }

/* Explorer window */
.explorer-window {
  width: min(480px, 90vw);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}

.explorer-body {
  flex: 1;
  min-height: 0;
  padding: 20px 24px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,212,255,0.25) transparent;
  transition: opacity 0.12s ease;
}

.explorer-body::-webkit-scrollbar {
  width: 4px;
}

.explorer-body::-webkit-scrollbar-thumb {
  background: rgba(0,212,255,0.25);
  border-radius: 2px;
}

.explorer-body::-webkit-scrollbar-track {
  background: transparent;
}

.explorer-loading {
  font-family: 'Share Tech Mono', monospace;
  font-size: 13px;
  color: rgba(0,212,255,0.55);
  display: block;
  transition: opacity 0.25s;
}

.explorer-files {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  animation: flicker-in 0.35s ease-in forwards;
}

.explorer-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
  user-select: none;
}

.explorer-file svg {
  width: 48px;
  height: 48px;
}

.explorer-file-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  margin-top: 8px;
  letter-spacing: 0.04em;
}

/* Responsive */
@media (max-width: 600px) {
  .terminal-card { min-width: unset; width: 90vw; }

  .terminal-body {
    flex-direction: column;
    gap: 20px;
    padding: 20px 20px 16px;
  }

  .figure-area { width: 120px; height: 135px; }
  .figure      { width: 120px; height: 135px; }

  .divider {
    width: 80%;
    height: 1px;
    background: linear-gradient(to right,
      transparent,
      rgba(0,212,255,0.2) 25%,
      rgba(0,212,255,0.2) 75%,
      transparent
    );
    align-self: center;
  }

  .digit { font-size: 36px; width: 40px; }
  .title { font-size: 36px; }
}
