← back to Quadrille Showroom
public/css/showroom.css
653 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 — spec-sheet card (4-Horsemen / 21st "Elite Card" language) */
#wing-detail {
position: absolute; right: 20px; top: 64px; width: 300px;
background: linear-gradient(180deg, rgba(18,18,24,0.97), rgba(11,11,16,0.98));
border: 1px solid rgba(201,169,110,0.22);
border-radius: 14px; overflow: hidden;
box-shadow: 0 18px 50px -12px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,0,0,0.4);
backdrop-filter: blur(14px);
}
#wing-detail.hidden { display: none; }
.close-btn {
position: absolute; top: 8px; right: 10px; z-index: 3; background: rgba(0,0,0,0.35);
border: none; color: #cbb384; font-size: 18px; cursor: pointer; line-height: 1;
width: 26px; height: 26px; border-radius: 50%; backdrop-filter: blur(4px);
}
.close-btn:hover { color: #fff; background: rgba(0,0,0,0.6); }
/* Hero image that fades into the panel body */
.wd-hero { position: relative; width: 100%; height: 132px; overflow: hidden; background: #15151c; }
.wd-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wd-hero-fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,16,0) 35%, rgba(13,13,18,0.85) 82%, rgba(18,18,24,0.98) 100%); }
.wd-body { padding: 4px 20px 18px; }
.wd-eyebrow { font-size: 10.5px; color: #c9a96e; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 5px; }
.wd-title { font-family: Georgia, 'Times New Roman', serif; font-size: 21px; font-weight: 600; line-height: 1.18; color: #f0e6cf; margin-bottom: 3px; }
.wd-color { font-size: 13px; color: #a7a299; margin-bottom: 6px; }
.wd-sku { font-size: 10.5px; color: #6a665e; font-family: ui-monospace, monospace; letter-spacing: 0.5px; margin-bottom: 12px; }
/* Key/value spec grid with hairline dividers */
.wd-specs { margin: 0 0 12px; display: flex; flex-direction: column; gap: 0; }
.wd-spec { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
padding: 7px 0; border-top: 1px solid rgba(201,169,110,0.12); }
.wd-spec:first-child { border-top: 1px solid rgba(201,169,110,0.22); }
.wd-spec dt { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: #837d72; }
.wd-spec dd { font-size: 13px; color: #e4ddcd; text-align: right; font-variant-numeric: tabular-nums; }
.wd-flag { font-size: 10.5px; margin: 2px 0 14px; min-height: 0; }
.wd-flag:empty { margin: 0; }
.wd-flag.ok { color: #7bbf8a; }
.wd-flag.warn { color: #d08a6a; }
.detail-actions { display: flex; flex-direction: column; gap: 6px; padding: 0 20px 18px; }
.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; }
/* Optional visitor age — a plain data point that rides along with the sample request. */
#tray-age { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 7px; border-top: 1px solid rgba(201,169,110,0.12); font-size: 11px; color: #888; }
#tray-age label { white-space: nowrap; }
.tray-age-opt { color: #666; }
#tray-age-input { width: 56px; background: rgba(0,0,0,0.35); border: 1px solid rgba(201,169,110,0.3); border-radius: 6px; color: #e8e2d4; font-size: 12px; padding: 4px 7px; text-align: center; }
#tray-age-input:focus { outline: none; border-color: #c9a96e; }
/* Sample-request contact form — rides along with the tray submit. */
#tray-contact { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.tray-field { width: 100%; box-sizing: border-box; background: rgba(0,0,0,0.35); border: 1px solid rgba(201,169,110,0.3); border-radius: 6px; color: #e8e2d4; font-size: 12px; padding: 6px 8px; font-family: inherit; }
.tray-field::placeholder { color: #7a7568; }
.tray-field:focus { outline: none; border-color: #c9a96e; }
textarea.tray-field { resize: vertical; min-height: 34px; }
#tray-submit { width: 100%; margin-top: 8px; background: #c9a96e; color: #0a0a0f; border: none; border-radius: 6px; padding: 8px; font-size: 12px; font-weight: 700; cursor: pointer; letter-spacing: 0.02em; }
#tray-submit:disabled { opacity: 0.4; cursor: not-allowed; }
#tray-submit:not(:disabled):hover { background: #d8bd85; }
#tray-consent { margin-top: 6px; font-size: 10px; color: #666; line-height: 1.35; }
#tray-status { margin-top: 6px; font-size: 11px; min-height: 14px; }
#tray-status.ok { color: #6b9f6e; }
#tray-status.err { color: #cd6858; }
/* 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; }
/* ============================================================
NOW VIEWING — museum media-player navigator strip
Shown only when a wingboard is focused. Brass-hairline + museum
glass; conforms to ART-DIRECTION.md (refined, calm, not a dashboard).
Sits bottom-centre, above the window/sort bar. Augments the detail
card's browse row with a player-style transport + N-of-N progress.
============================================================ */
#now-viewing {
position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%);
z-index: 28; width: min(460px, 70vw);
background: linear-gradient(180deg, rgba(20,20,26,0.92), rgba(12,12,17,0.95));
border: 1px solid rgba(201,169,110,0.28);
border-radius: 14px; overflow: hidden;
box-shadow: 0 16px 44px -14px rgba(0,0,0,0.72), inset 0 1px 0 rgba(255,255,255,0.04);
backdrop-filter: blur(16px);
opacity: 1; transition: opacity .35s ease, transform .35s ease;
}
#now-viewing.hidden { opacity: 0; transform: translateX(-50%) translateY(8px); pointer-events: none; }
/* Thin brass progress rail across the very top — the "track position" */
.nv-progress { height: 2px; background: rgba(201,169,110,0.14); width: 100%; }
.nv-progress-fill {
height: 100%; width: 0%;
background: linear-gradient(90deg, #b9933f, #e8cf93);
box-shadow: 0 0 6px rgba(201,169,110,0.5);
transition: width .45s cubic-bezier(.22,.61,.36,1);
}
.nv-body { display: flex; align-items: center; gap: 14px; padding: 11px 16px 12px; }
/* Swatch thumbnail — small framed chip of the actual wallcovering */
.nv-swatch {
width: 46px; height: 46px; flex-shrink: 0; border-radius: 7px; overflow: hidden;
background: #15151c; border: 1px solid rgba(201,169,110,0.35);
box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.nv-swatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Meta block — serif name, tracked colorway + spec */
.nv-meta { flex: 1; min-width: 0; }
.nv-eyebrow {
font-size: 8.5px; letter-spacing: 2.6px; text-transform: uppercase;
color: #c9a96e; opacity: .82; margin-bottom: 3px;
}
.nv-name {
font-family: Georgia, 'Times New Roman', serif; font-size: 17px; font-weight: 600;
color: #f0e6cf; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nv-sub {
display: flex; align-items: center; gap: 7px; margin-top: 3px;
font-size: 11px; color: #a7a299; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nv-color { letter-spacing: 1.4px; text-transform: uppercase; font-size: 10px; color: #b6b0a4; }
.nv-dot { color: rgba(201,169,110,0.5); }
.nv-spec { font-variant-numeric: tabular-nums; color: #cfc7b8; }
/* Transport — Back / Peruse play-pause / Next, brass hairline circles */
.nv-transport { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nv-btn {
width: 30px; height: 30px; border-radius: 50%;
border: 1px solid rgba(201,169,110,0.34);
background: rgba(201,169,110,0.07); color: #c9a96e;
font-size: 11px; cursor: pointer; line-height: 1;
display: flex; align-items: center; justify-content: center;
transition: background .18s, border-color .18s, transform .12s;
}
.nv-btn:hover { background: rgba(201,169,110,0.2); transform: translateY(-1px); }
.nv-btn:active { transform: translateY(0); }
.nv-play {
width: 38px; height: 38px; font-size: 13px;
background: linear-gradient(180deg, rgba(216,189,132,0.22), rgba(185,147,63,0.18));
border-color: rgba(201,169,110,0.5);
}
.nv-play.playing {
background: linear-gradient(180deg, #d8bd84, #b9933f); color: #1a1206;
box-shadow: 0 0 12px rgba(201,169,110,0.45);
}
/* N of 50 progress count — tabular, brass accent on the index */
.nv-count {
display: flex; align-items: baseline; gap: 4px; flex-shrink: 0;
font-variant-numeric: tabular-nums; font-size: 11px; color: #837d72;
letter-spacing: .5px; padding-left: 2px;
}
.nv-count #nv-index { color: #e8cf93; font-size: 14px; font-weight: 600; }
.nv-count .nv-of { font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .7; }
@media (max-width: 720px) {
#now-viewing { bottom: 150px; width: 88vw; }
.nv-count { display: none; }
}
/* Detail popup collapse (starts collapsed on load — Steve) */
.collapse-btn {
position: absolute; top: 8px; right: 42px; z-index: 3; background: rgba(0,0,0,0.35);
border: none; color: #cbb384; font-size: 15px; cursor: pointer; line-height: 1;
width: 26px; height: 26px; border-radius: 50%; backdrop-filter: blur(4px);
}
.collapse-btn:hover { color: #fff; background: rgba(0,0,0,0.6); }
/* Collapsed = show only the brand eyebrow + pattern title (a compact pill) */
#wing-detail.collapsed .wd-hero,
#wing-detail.collapsed .wd-color,
#wing-detail.collapsed .wd-sku,
#wing-detail.collapsed .wd-specs,
#wing-detail.collapsed .wd-flag,
#wing-detail.collapsed .detail-actions { display: none; }
#wing-detail.collapsed .wd-body { padding: 14px 40px 14px 20px; }
#wing-detail.collapsed .wd-title { margin-bottom: 0; }
/* ============================================================
VIEW-MODE + THEME PANEL (viewmodes.js) — museum-glass chrome,
ART-DIRECTION tokens: brushed brass on dark, tracked eyebrows.
Top-LEFT so it never fights the bottom guided bar or right HUD.
============================================================ */
#vm-panel {
position: fixed; top: 70px; left: 16px; z-index: 42;
width: 248px; display: flex; flex-direction: column; gap: 12px;
background: rgba(12,12,17,0.90); border: 1.5px solid rgba(201,169,110,0.40);
border-radius: 16px; padding: 14px 14px 12px;
backdrop-filter: blur(14px); box-shadow: 0 18px 50px -14px rgba(0,0,0,0.75);
transition: transform .2s ease, opacity .2s ease;
}
#vm-panel.collapsed { transform: translateX(-228px); }
#vm-panel.collapsed:hover { transform: translateX(0); }
#vm-panel .vm-section { display: flex; flex-direction: column; gap: 8px; }
#vm-panel .vm-eyebrow {
font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase;
color: #c9a96e; font-weight: 700; opacity: .9;
}
#vm-panel .vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#vm-panel .vm-grid-theme { grid-template-columns: 1fr 1fr; }
#vm-panel .vm-chip {
display: flex; align-items: center; gap: 6px;
min-height: 34px; padding: 6px 9px; cursor: pointer;
font-size: 12.5px; font-weight: 600; letter-spacing: .2px; line-height: 1.1;
border-radius: 9px; border: 1px solid rgba(201,169,110,0.30);
background: rgba(255,255,255,0.05); color: #ede4cf;
transition: background .12s, border-color .12s, color .12s;
text-align: left; -webkit-user-select: none; user-select: none;
}
#vm-panel .vm-chip:hover { background: rgba(201,169,110,0.18); border-color: #c9a96e; }
#vm-panel .vm-chip.active {
background: linear-gradient(180deg, #d8bd84, #b9933f); color: #1a1206;
border-color: #b9933f; box-shadow: 0 2px 10px rgba(185,147,63,0.35);
}
#vm-panel .vm-chip .vm-num {
font-size: 10px; font-weight: 800; opacity: .65;
min-width: 13px; text-align: center; font-variant-numeric: tabular-nums;
}
#vm-panel .vm-chip.active .vm-num { opacity: .85; }
#vm-panel .vm-hint {
font-size: 11.5px; line-height: 1.35; color: #b8b0a0; min-height: 30px;
padding-top: 2px; font-style: italic;
}
#vm-panel .vm-perfrow { flex-direction: row; gap: 8px; }
#vm-panel .vm-perf-btn {
flex: 1; min-height: 30px; font-size: 11px; letter-spacing: 1px;
text-transform: uppercase; font-weight: 700; cursor: pointer;
border-radius: 8px; border: 1px solid rgba(201,169,110,0.30);
background: rgba(255,255,255,0.05); color: #c9a96e;
}
#vm-panel .vm-perf-btn:hover { background: rgba(201,169,110,0.16); }
#vm-panel .vm-perf-btn.active { background: rgba(201,169,110,0.85); color: #1a1206; border-color: #c9a96e; }
/* Perf readout — small fixed badge, top-centre-left, only when toggled on */
#vm-perf {
position: fixed; top: 70px; left: 280px; z-index: 41; display: none;
background: rgba(10,10,14,0.86); border: 1px solid rgba(201,169,110,0.35);
border-radius: 10px; padding: 8px 12px; backdrop-filter: blur(8px);
font-variant-numeric: tabular-nums; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.7);
}
#vm-perf.open { display: block; }
#vm-perf .vm-perf-title {
font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
color: #c9a96e; font-weight: 700; margin-bottom: 4px;
}
#vm-perf-body { display: flex; gap: 14px; font-size: 13px; color: #ded6c6; font-weight: 600; }
#vm-perf-body .pf-good { color: #7ec97e; } #vm-perf-body .pf-warn { color: #d4c06a; } #vm-perf-body .pf-bad { color: #d07a6a; }
/* Compare-mode banner under the title */
#vm-banner {
position: fixed; left: 50%; top: 116px; transform: translateX(-50%);
z-index: 37; display: none; max-width: 80vw; text-align: center;
font-size: 13px; font-weight: 600; letter-spacing: .3px; color: #f5efe2;
background: rgba(12,12,17,0.74); border: 1px solid rgba(201,169,110,0.30);
padding: 7px 18px; border-radius: 18px; backdrop-filter: blur(8px);
}
@media (max-width: 720px) {
#vm-panel { top: 60px; left: 8px; width: 200px; }
#vm-perf { left: 216px; top: 60px; }
}
/* ============================================================
VERSION SYSTEM — V1…V10 picker rail + numbered-element overlay + Chosen tray
(versions.js builds the DOM; tokens conform to ART-DIRECTION.md — museum glass,
brass-hairline accent, serif names, tabular figures for the loud V-NUMBERS.)
============================================================ */
/* ---- VERSION PICKER RAIL — right-centre vertical strip ---- */
#ver-rail {
position: fixed; right: 14px; top: 64px;
z-index: 46; display: flex; flex-direction: column; gap: 6px;
background: rgba(12,12,17,0.90); border: 1.5px solid rgba(201,169,110,0.40);
border-radius: 18px; padding: 12px 11px;
backdrop-filter: blur(14px); box-shadow: 0 18px 50px -14px rgba(0,0,0,0.75);
/* anchored near the top, capped so the rail never reaches the bottom-right tray */
max-height: calc(100vh - 230px); overflow-y: auto; transition: transform .22s ease;
}
#ver-rail.collapsed { transform: translateX(calc(100% + 18px)); }
#ver-rail-head {
display: flex; align-items: center; justify-content: space-between; gap: 8px;
padding: 0 2px 8px; margin-bottom: 2px; border-bottom: 1px solid rgba(201,169,110,0.22);
}
#ver-rail-head .vr-eyebrow {
font-size: 10px; letter-spacing: 2.6px; text-transform: uppercase;
color: #c9a96e; font-weight: 700;
}
#ver-rail-collapse {
width: 22px; height: 22px; border-radius: 6px; cursor: pointer; line-height: 1;
border: 1px solid rgba(201,169,110,0.30); background: rgba(255,255,255,0.05);
color: #c9a96e; font-size: 13px; font-weight: 800; padding: 0;
}
#ver-rail-collapse:hover { background: rgba(201,169,110,0.18); }
/* the tab that pulls the rail back out when collapsed */
#ver-rail-tab {
position: fixed; right: 0; top: 50%; transform: translateY(-50%);
z-index: 44; display: none; cursor: pointer;
writing-mode: vertical-rl; text-orientation: mixed;
background: rgba(12,12,17,0.90); border: 1.5px solid rgba(201,169,110,0.40); border-right: none;
border-radius: 14px 0 0 14px; padding: 14px 7px; color: #c9a96e;
font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 700;
backdrop-filter: blur(14px);
}
#ver-rail.collapsed ~ #ver-rail-tab { display: block; }
.ver-chip {
display: flex; align-items: center; gap: 9px; cursor: pointer;
min-height: 40px; padding: 5px 11px 5px 6px; border-radius: 11px;
border: 1px solid rgba(201,169,110,0.26); background: rgba(255,255,255,0.045);
color: #ede4cf; transition: background .12s, border-color .12s, color .12s, transform .08s;
text-align: left; -webkit-user-select: none; user-select: none; width: 188px;
}
.ver-chip:hover { background: rgba(201,169,110,0.16); border-color: #c9a96e; }
.ver-chip:active { transform: translateX(-1px); }
.ver-chip .vc-num {
flex: 0 0 auto; min-width: 38px; height: 30px; border-radius: 8px;
display: inline-flex; align-items: center; justify-content: center;
font-size: 17px; font-weight: 800; line-height: 1;
font-variant-numeric: tabular-nums; letter-spacing: .5px;
color: #c9a96e; background: rgba(201,169,110,0.12);
border: 1px solid rgba(201,169,110,0.30);
}
.ver-chip .vc-name {
font-family: 'Cormorant Garamond', Georgia, serif;
font-size: 16.5px; font-weight: 600; line-height: 1.05; letter-spacing: .2px;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ver-chip.scaffold .vc-name { color: #c7bfae; }
.ver-chip.scaffold .vc-num { opacity: .72; }
.ver-chip.active {
background: linear-gradient(180deg, #d8bd84, #b9933f); color: #1a1206;
border-color: #b9933f; box-shadow: 0 3px 14px rgba(185,147,63,0.40);
}
.ver-chip.active .vc-num {
color: #1a1206; background: rgba(26,18,6,0.18); border-color: rgba(26,18,6,0.30);
}
.ver-chip.active .vc-name { color: #1a1206; }
/* ---- NUMBERED-ELEMENT OVERLAY toggle (lives in the rail head row 2) ---- */
#ver-rail-tools { display: flex; gap: 6px; margin-top: 8px; padding-top: 8px;
border-top: 1px solid rgba(201,169,110,0.22); }
.vr-tool {
flex: 1; min-height: 32px; cursor: pointer; border-radius: 9px;
font-size: 10.5px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 700;
border: 1px solid rgba(201,169,110,0.30); background: rgba(255,255,255,0.05); color: #c9a96e;
display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}
.vr-tool:hover { background: rgba(201,169,110,0.16); }
.vr-tool.active { background: rgba(201,169,110,0.85); color: #1a1206; border-color: #c9a96e; }
/* ---- NUMBERED PINS — circled-number badges projected onto each element ---- */
#pin-layer { position: fixed; inset: 0; z-index: 36; pointer-events: none; }
.el-pin {
position: absolute; transform: translate(-50%, -50%); pointer-events: auto;
display: flex; align-items: center; gap: 0; cursor: pointer;
-webkit-user-select: none; user-select: none; will-change: left, top;
}
.el-pin .pin-badge {
width: 30px; height: 30px; border-radius: 50%;
display: flex; align-items: center; justify-content: center;
font-size: 15px; font-weight: 800; line-height: 1; color: #f5efdc;
font-variant-numeric: tabular-nums;
background: rgba(14,12,18,0.86); border: 2px solid #c9a96e;
box-shadow: 0 3px 12px rgba(0,0,0,0.55), 0 0 0 3px rgba(201,169,110,0.18);
transition: transform .12s, background .12s, box-shadow .12s;
}
.el-pin:hover .pin-badge { transform: scale(1.12); box-shadow: 0 4px 16px rgba(0,0,0,0.6), 0 0 0 4px rgba(201,169,110,0.30); }
/* GLOBALLY-UNIQUE element code (1003QHV1) — ALWAYS visible on a numbered pin so
every element shows its durable cross-build ID, alongside the friendly badge n. */
.el-pin .pin-code {
display: inline-flex; align-items: center; white-space: nowrap;
margin-left: 5px; padding: 3px 7px; border-radius: 7px;
font-family: ui-monospace, "SF Mono", Menlo, monospace;
font-size: 10.5px; font-weight: 700; letter-spacing: .4px; line-height: 1;
color: #f0e6cf; background: rgba(14,12,18,0.86);
border: 1px solid rgba(201,169,110,0.40);
box-shadow: 0 2px 8px rgba(0,0,0,0.45);
}
.el-pin.chosen .pin-code { color: #1a1206; background: linear-gradient(180deg,#d8bd84,#b9933f); border-color: #fff0d2; }
.el-pin .pin-label {
max-width: 0; overflow: hidden; white-space: nowrap;
font-size: 12px; font-weight: 600; letter-spacing: .3px; color: #f5efdc;
background: rgba(14,12,18,0.86); border: 1px solid rgba(201,169,110,0.30);
border-radius: 9px; line-height: 1;
margin-left: 5px; padding: 0; opacity: 0;
transition: max-width .18s ease, opacity .15s ease, padding .18s ease;
}
.el-pin:hover .pin-label, .el-pin.show-label .pin-label {
max-width: 220px; opacity: 1; padding: 7px 11px 7px 12px;
}
.el-pin.chosen .pin-badge {
background: linear-gradient(180deg, #d8bd84, #b9933f); color: #1a1206; border-color: #fff0d2;
box-shadow: 0 3px 14px rgba(185,147,63,0.55), 0 0 0 3px rgba(201,169,110,0.30);
}
.el-pin.chosen .pin-badge::after {
content: '✓'; position: absolute; transform: translate(13px,-13px);
font-size: 11px; font-weight: 900; color: #1a1206;
background: #fff0d2; border-radius: 50%; width: 15px; height: 15px;
display: flex; align-items: center; justify-content: center;
box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
/* ---- CHOSEN ELEMENTS TRAY — collapsible, bottom-right ---- */
#chosen-tray {
position: fixed; right: 14px; bottom: 16px; z-index: 45; width: 300px;
background: rgba(12,12,17,0.92); border: 1.5px solid rgba(201,169,110,0.42);
border-radius: 16px; backdrop-filter: blur(14px);
box-shadow: 0 18px 50px -14px rgba(0,0,0,0.78); overflow: hidden;
display: none;
}
#chosen-tray.show { display: block; }
#chosen-tray-head {
display: flex; align-items: center; justify-content: space-between; gap: 8px;
padding: 11px 13px; cursor: pointer;
border-bottom: 1px solid rgba(201,169,110,0.0);
}
#chosen-tray.open #chosen-tray-head { border-bottom-color: rgba(201,169,110,0.22); }
#chosen-tray-head .ct-title {
font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase;
color: #c9a96e; font-weight: 700; display: flex; align-items: center; gap: 8px;
}
#chosen-tray-head .ct-count {
min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
background: linear-gradient(180deg,#d8bd84,#b9933f); color: #1a1206;
font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums;
display: inline-flex; align-items: center; justify-content: center;
transition: transform .15s;
}
#chosen-tray-head .ct-count.bump { transform: scale(1.35); }
#chosen-tray-head .ct-chev { color: #c9a96e; font-size: 13px; transition: transform .18s; }
#chosen-tray.open #chosen-tray-head .ct-chev { transform: rotate(180deg); }
#chosen-tray-body { display: none; padding: 4px 12px 12px; }
#chosen-tray.open #chosen-tray-body { display: block; }
#chosen-items { display: flex; flex-direction: column; gap: 6px; max-height: 38vh; overflow-y: auto; padding: 6px 0; }
.ct-chip {
display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 10px;
background: rgba(255,255,255,0.05); border: 1px solid rgba(201,169,110,0.26);
}
.ct-chip .ctc-tag {
font-family: ui-monospace, "SF Mono", Menlo, monospace;
font-size: 10.5px; font-weight: 800; letter-spacing: .4px; color: #c9a96e;
font-variant-numeric: tabular-nums; flex: 0 0 auto; white-space: nowrap;
}
.ct-chip .ctc-name {
flex: 1; font-size: 12.5px; color: #ede4cf; line-height: 1.2;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ct-chip .ctc-x {
flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px; cursor: pointer;
border: 1px solid rgba(201,169,110,0.30); background: rgba(255,255,255,0.04);
color: #d8cfba; font-size: 13px; line-height: 1; padding: 0;
display: inline-flex; align-items: center; justify-content: center;
}
.ct-chip .ctc-x:hover { background: rgba(208,122,106,0.30); border-color: #d07a6a; color: #fff; }
#chosen-empty {
font-size: 12px; color: #9c9485; font-style: italic; line-height: 1.4;
padding: 14px 6px; text-align: center;
}
#chosen-actions { display: flex; gap: 7px; margin-top: 8px; }
.ct-act {
flex: 1; min-height: 32px; cursor: pointer; border-radius: 9px;
font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 700;
border: 1px solid rgba(201,169,110,0.30); background: rgba(255,255,255,0.05); color: #c9a96e;
}
.ct-act:hover { background: rgba(201,169,110,0.16); }
.ct-act.primary { background: linear-gradient(180deg,#d8bd84,#b9933f); color: #1a1206; border-color: #b9933f; }
.ct-act.primary:hover { background: linear-gradient(180deg,#e3cb95,#c5a04a); }
@media (max-width: 720px) {
#ver-rail { right: 6px; padding: 9px 8px; }
.ver-chip { width: 150px; }
#chosen-tray { width: 240px; right: 6px; }
}
@media (pointer: coarse) {
/* on touch, pins always show their label so a tap target is obvious */
.el-pin .pin-label { max-width: 180px; opacity: 1; padding: 7px 11px; }
}
/* ============================================================
MECHANIC OVERLAY — V6–V10 standalone experiences in a full-screen
<iframe> over the 3D canvas. The proto's own proto-chrome.js renders the
big "‹ Back to Showroom" button + numbered legend inside the frame.
z-index 90: above all HUD/rail/tray (max 46), below the loading screen (1000).
============================================================ */
#mechanic-overlay {
position: fixed; inset: 0; z-index: 90; display: none; background: #0d0d12;
}
#mechanic-overlay.open { display: block; }
#mechanic-overlay #mech-frame {
position: absolute; inset: 0; width: 100%; height: 100%;
border: 0; background: #0d0d12; display: block;
}
#mechanic-overlay #mech-loading {
position: absolute; inset: 0; z-index: 1; display: flex;
align-items: center; justify-content: center; gap: 14px;
font: 600 19px/1 Georgia, serif; letter-spacing: .5px; color: #e9dcbf;
background: #0d0d12;
}
#mechanic-overlay .mech-spin {
width: 26px; height: 26px; border-radius: 50%;
border: 3px solid rgba(201,169,110,.3); border-top-color: #c9a96e;
animation: mech-spin 0.8s linear infinite;
}
@keyframes mech-spin { to { transform: rotate(360deg); } }
/* While a mechanic is open, hide the 3D HUD + version rail so nothing pokes
through. The version rail itself sits below the overlay, but its pull-out tab
+ chosen tray would otherwise float over the iframe — suppress them. */
body.mechanic-open #hud,
body.mechanic-open #ver-rail,
body.mechanic-open #ver-rail-tab,
body.mechanic-open #chosen-tray,
body.mechanic-open #photo-depth { display: none !important; }