← back to Dw Showroom

public/css/showroom.css

167 lines

* { margin: 0; padding: 0; box-sizing: border-box; }
body { overflow: hidden; background: #0a0a0f; font-family: 'Segoe UI', system-ui, sans-serif; color: #e0e0e0; }

/* Canvas */
#showroom-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; }

/* Loading Screen */
#loading-screen {
  position: fixed; inset: 0; z-index: 1000; background: #0a0a0f;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease;
}
#loading-screen.fade-out { opacity: 0; pointer-events: none; }
.loader-content { text-align: center; }
.loader-logo { font-size: 64px; font-weight: 900; letter-spacing: 8px; color: #c9a96e; margin-bottom: 8px; }
.loader-title { font-size: 18px; letter-spacing: 6px; text-transform: uppercase; color: #888; margin-bottom: 4px; }
.loader-sub { font-size: 14px; color: #666; margin-bottom: 32px; letter-spacing: 3px; }
.loader-bar { width: 300px; height: 2px; background: #222; border-radius: 1px; margin: 0 auto 16px; }
.loader-fill { height: 100%; background: linear-gradient(90deg, #c9a96e, #e8d5a8); border-radius: 1px; width: 0%; transition: width 0.3s; }
.loader-status { font-size: 12px; color: #555; }

/* HUD */
#hud { position: fixed; inset: 0; z-index: 10; pointer-events: none; }
#hud > * { pointer-events: auto; }

/* Top Bar */
#top-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 52px;
  background: linear-gradient(180deg, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.7) 100%);
  display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
  border-bottom: 1px solid rgba(201,169,110,0.15);
}
.top-left { display: flex; align-items: center; gap: 12px; }
.logo-mark { font-size: 22px; font-weight: 900; color: #c9a96e; letter-spacing: 3px; }
.showroom-title { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #888; }
.top-center { display: flex; gap: 4px; }
.nav-btn {
  padding: 6px 16px; border: 1px solid rgba(255,255,255,0.1); border-radius: 4px;
  background: rgba(255,255,255,0.04); color: #999; font-size: 12px; cursor: pointer;
  transition: all 0.2s; letter-spacing: 1px; text-transform: uppercase;
}
.nav-btn:hover { background: rgba(201,169,110,0.15); color: #c9a96e; border-color: rgba(201,169,110,0.3); }
.nav-btn.active { background: rgba(201,169,110,0.2); color: #c9a96e; border-color: rgba(201,169,110,0.4); }
.top-right { display: flex; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.1); border-radius: 4px;
  background: rgba(255,255,255,0.04); color: #999; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.icon-btn:hover { background: rgba(201,169,110,0.15); color: #c9a96e; }

/* Vendor Sidebar */
#vendor-sidebar {
  position: absolute; left: 0; top: 60px; bottom: 60px; width: 180px;
  background: rgba(10,10,15,0.85); border-right: 1px solid rgba(201,169,110,0.1);
  overflow-y: auto; padding: 12px 0;
}
.sidebar-header { padding: 8px 16px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #666; }
.vendor-item {
  padding: 8px 16px; cursor: pointer; display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #999; transition: all 0.2s; border-left: 3px solid transparent;
}
.vendor-item:hover { background: rgba(255,255,255,0.04); color: #e0e0e0; }
.vendor-item.active { background: rgba(201,169,110,0.1); color: #c9a96e; border-left-color: #c9a96e; }
.vendor-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.vendor-count { margin-left: auto; font-size: 10px; color: #555; }

/* Wing Detail Panel */
#wing-detail {
  position: absolute; right: 20px; top: 70px; width: 280px;
  background: rgba(15,15,20,0.95); border: 1px solid rgba(201,169,110,0.2);
  border-radius: 8px; padding: 20px; backdrop-filter: blur(10px);
}
#wing-detail.hidden { display: none; }
.close-btn {
  position: absolute; top: 8px; right: 12px; background: none; border: none;
  color: #666; font-size: 20px; cursor: pointer;
}
.close-btn:hover { color: #c9a96e; }
#detail-pattern { font-size: 18px; font-weight: 600; color: #e8d5a8; margin-bottom: 4px; }
#detail-color { font-size: 14px; color: #999; margin-bottom: 2px; }
#detail-vendor { font-size: 12px; color: #c9a96e; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 2px; }
#detail-sku { font-size: 11px; color: #555; font-family: monospace; margin-bottom: 8px; }
#detail-specs { font-size: 11px; color: #777; margin-bottom: 16px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.05); }
.detail-actions { display: flex; flex-direction: column; gap: 6px; }
.action-btn {
  padding: 8px 12px; border: 1px solid rgba(201,169,110,0.3); border-radius: 4px;
  background: rgba(201,169,110,0.08); color: #c9a96e; font-size: 12px; cursor: pointer;
  text-align: center; transition: all 0.2s;
}
.action-btn.primary { background: rgba(201,169,110,0.2); font-weight: 600; font-size: 13px; padding: 10px 12px; }
.action-btn.primary.active { background: rgba(201,169,110,0.4); border-color: #c9a96e; box-shadow: 0 0 8px rgba(201,169,110,0.3); }
.action-btn:hover { background: rgba(201,169,110,0.3); }
.wing-skill-row { display: flex; align-items: center; gap: 6px; }
.wing-skill-row .action-btn { flex: 1; }
.wing-skill-label { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: #c9a96e; opacity: 0.6; white-space: nowrap; }
#btn-back-wing { border-color: rgba(255,255,255,0.15); color: #999; background: rgba(255,255,255,0.04); margin-top: 4px; }
#btn-back-wing:hover { color: #e0e0e0; background: rgba(255,255,255,0.1); }

/* Sample Tray */
#sample-tray {
  position: absolute; bottom: 60px; left: 50%; transform: translateX(-50%);
  background: rgba(15,15,20,0.9); border: 1px solid rgba(201,169,110,0.15);
  border-radius: 8px; padding: 8px 12px; min-width: 200px;
  backdrop-filter: blur(10px); display: none;
}
#sample-tray.visible { display: block; }
.tray-header { display: flex; justify-content: space-between; font-size: 11px; color: #888; margin-bottom: 6px; }
#tray-count { background: #c9a96e; color: #0a0a0f; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
#tray-items { display: flex; gap: 6px; overflow-x: auto; max-width: 500px; }
.tray-item { width: 40px; height: 40px; border-radius: 4px; border: 1px solid rgba(201,169,110,0.3); cursor: pointer; flex-shrink: 0; }

/* Bottom Bar */
#bottom-bar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
  background: linear-gradient(0deg, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.5) 100%);
  display: flex; align-items: center; justify-content: space-between; padding: 0 20px;
  font-size: 11px; color: #555;
}
#fps-counter { font-family: monospace; color: #4a4; }

/* Music Player */
#music-player {
  position: absolute; bottom: 60px; right: 20px; width: 240px;
  background: rgba(15,15,20,0.95); border: 1px solid rgba(201,169,110,0.2);
  border-radius: 8px; padding: 16px; backdrop-filter: blur(10px);
}
#music-player.hidden { display: none; }
.music-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 13px; color: #c9a96e; }
.music-controls { display: flex; justify-content: center; gap: 16px; margin-bottom: 8px; }
.music-btn { background: none; border: 1px solid rgba(201,169,110,0.3); color: #c9a96e; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 12px; display: flex; align-items: center; justify-content: center; }
.music-btn:hover { background: rgba(201,169,110,0.2); }
#music-track { text-align: center; font-size: 11px; color: #888; margin-bottom: 8px; }
#music-volume { width: 100%; accent-color: #c9a96e; }

/* Welcome Tooltip */
#welcome-tip {
  position: fixed; bottom: 80px; right: 20px; z-index: 20;
  background: rgba(15,15,20,0.92); border: 1px solid rgba(201,169,110,0.25);
  border-radius: 8px; padding: 14px 18px; backdrop-filter: blur(8px);
  opacity: 1; transition: opacity 1.5s ease;
  pointer-events: none;
}
#welcome-tip.fade-out { opacity: 0; }
.tip-title { font-size: 11px; letter-spacing: 2px; color: #c9a96e; margin-bottom: 8px; text-transform: uppercase; }
.tip-row { font-size: 12px; color: #999; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.tip-row kbd {
  background: rgba(201,169,110,0.15); border: 1px solid rgba(201,169,110,0.3);
  border-radius: 3px; padding: 1px 6px; font-family: monospace; font-size: 11px;
  color: #c9a96e; min-width: 50px; text-align: center;
}

/* Minimap */
#minimap {
  position: absolute; bottom: 50px; left: 190px;
  width: 160px; height: 128px;
  background: rgba(10,10,15,0.85); border: 1px solid rgba(201,169,110,0.2);
  border-radius: 6px; pointer-events: auto;
  transition: opacity 0.3s;
}
#minimap.hidden { opacity: 0; pointer-events: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(201,169,110,0.3); border-radius: 2px; }