586 lines
11 KiB
CSS
586 lines
11 KiB
CSS
:root {
|
|
font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
|
|
color: #f3efe5;
|
|
background: #080a0e;
|
|
font-synthesis: none;
|
|
text-rendering: optimizeLegibility;
|
|
}
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html,
|
|
body,
|
|
#app {
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: 0;
|
|
overflow: hidden;
|
|
}
|
|
|
|
button,
|
|
select,
|
|
input {
|
|
color: inherit;
|
|
font: inherit;
|
|
}
|
|
|
|
.app-shell {
|
|
display: grid;
|
|
grid-template-rows: auto minmax(0, 1fr) auto;
|
|
width: 100%;
|
|
height: 100%;
|
|
background:
|
|
radial-gradient(circle at 50% -20%, rgba(108, 127, 160, 0.18), transparent 45%),
|
|
#080a0e;
|
|
}
|
|
|
|
.topbar {
|
|
z-index: 3;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 24px;
|
|
min-height: 82px;
|
|
padding: 14px 20px;
|
|
border-bottom: 1px solid rgba(227, 215, 181, 0.16);
|
|
background: rgba(11, 14, 20, 0.92);
|
|
backdrop-filter: blur(18px);
|
|
}
|
|
|
|
.title-row {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
}
|
|
|
|
.controls-toggle {
|
|
display: none;
|
|
align-items: center;
|
|
gap: 8px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.controls-toggle-icon {
|
|
width: 12px;
|
|
color: #d6b860;
|
|
font-size: 16px;
|
|
line-height: 1;
|
|
}
|
|
|
|
.eyebrow {
|
|
margin: 0 0 3px;
|
|
color: #b8a979;
|
|
font-size: 11px;
|
|
font-weight: 700;
|
|
letter-spacing: 0.16em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
h1 {
|
|
margin: 0;
|
|
font-family: Georgia, "Times New Roman", serif;
|
|
font-size: clamp(20px, 2.2vw, 30px);
|
|
font-weight: 500;
|
|
letter-spacing: 0.01em;
|
|
}
|
|
|
|
.toolbar {
|
|
display: flex;
|
|
flex: 1 1 720px;
|
|
flex-wrap: wrap;
|
|
min-width: 0;
|
|
align-items: flex-end;
|
|
justify-content: flex-end;
|
|
gap: 8px;
|
|
}
|
|
|
|
.toolbar label {
|
|
display: grid;
|
|
flex: 0 1 124px;
|
|
min-width: 104px;
|
|
gap: 4px;
|
|
color: #9da3ad;
|
|
font-size: 11px;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
select,
|
|
input,
|
|
button {
|
|
height: 34px;
|
|
border: 1px solid rgba(227, 215, 181, 0.2);
|
|
border-radius: 7px;
|
|
background: #171b23;
|
|
outline: none;
|
|
}
|
|
|
|
select,
|
|
input {
|
|
width: 100%;
|
|
min-width: 0;
|
|
padding: 0 28px 0 10px;
|
|
}
|
|
|
|
button {
|
|
padding: 0 13px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
button:hover,
|
|
select:hover,
|
|
input:hover {
|
|
border-color: rgba(218, 186, 102, 0.62);
|
|
background: #202630;
|
|
}
|
|
|
|
button:focus-visible,
|
|
select:focus-visible,
|
|
input:focus-visible {
|
|
outline: 2px solid #d6b860;
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
input {
|
|
padding: 0 10px;
|
|
}
|
|
|
|
.catalog-state {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
color: #777f8a;
|
|
font-size: 9px;
|
|
}
|
|
|
|
.catalog-state.has-errors {
|
|
color: #e59a8d;
|
|
}
|
|
|
|
.toolbar label:has(.catalog-state) {
|
|
position: relative;
|
|
}
|
|
|
|
.viewport-shell {
|
|
position: relative;
|
|
min-height: 0;
|
|
}
|
|
|
|
#scene {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
cursor: grab;
|
|
touch-action: none;
|
|
}
|
|
|
|
#scene:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
#scene.camera-target {
|
|
cursor: move;
|
|
}
|
|
|
|
.status-panel,
|
|
.hint,
|
|
.loading {
|
|
position: absolute;
|
|
pointer-events: none;
|
|
border: 1px solid rgba(227, 215, 181, 0.14);
|
|
background: rgba(10, 13, 18, 0.76);
|
|
}
|
|
|
|
.status-panel {
|
|
top: 16px;
|
|
left: 16px;
|
|
display: grid;
|
|
gap: 4px;
|
|
max-width: calc(100% - 32px);
|
|
padding: 9px 12px;
|
|
border-radius: 8px;
|
|
color: #d8d2c2;
|
|
font-size: 12px;
|
|
}
|
|
|
|
#performance {
|
|
color: #89909b;
|
|
font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.hint {
|
|
bottom: 16px;
|
|
left: 50%;
|
|
padding: 8px 12px;
|
|
border-radius: 999px;
|
|
color: #aeb4bc;
|
|
font-size: 12px;
|
|
transform: translateX(-50%);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.loading {
|
|
z-index: 4;
|
|
top: 50%;
|
|
left: 50%;
|
|
padding: 12px 16px;
|
|
border-radius: 9px;
|
|
transform: translate(-50%, -50%);
|
|
}
|
|
|
|
footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 16px;
|
|
padding: 8px 16px;
|
|
border-top: 1px solid rgba(227, 215, 181, 0.12);
|
|
color: #777f8a;
|
|
background: #0b0e14;
|
|
font-size: 11px;
|
|
}
|
|
|
|
footer a {
|
|
color: #bba96e;
|
|
}
|
|
|
|
.lil-gui.root {
|
|
--background-color: rgba(16, 20, 27, 0.94);
|
|
--widget-color: #252c37;
|
|
--hover-color: #303946;
|
|
--focus-color: #3b4655;
|
|
--text-color: #ede8dc;
|
|
--number-color: #e1c56e;
|
|
top: 98px;
|
|
right: 16px;
|
|
}
|
|
|
|
.pack-controls[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
.pack-controls {
|
|
position: absolute;
|
|
bottom: max(12px, env(safe-area-inset-bottom));
|
|
left: 50%;
|
|
display: grid;
|
|
gap: 8px;
|
|
width: min(440px, calc(100% - 24px));
|
|
padding: 10px 12px;
|
|
border: 1px solid rgba(227, 215, 181, 0.22);
|
|
border-radius: 12px;
|
|
background: rgba(10, 13, 18, 0.9);
|
|
transform: translateX(-50%);
|
|
text-align: center;
|
|
}
|
|
|
|
#pack-status {
|
|
color: #d8d2c2;
|
|
font-size: 12px;
|
|
}
|
|
|
|
#pack-tear {
|
|
appearance: none;
|
|
width: 100%;
|
|
height: 3px;
|
|
border: 0;
|
|
border-radius: 2px;
|
|
overflow: hidden;
|
|
background: #293039;
|
|
accent-color: #bba36a;
|
|
}
|
|
|
|
#pack-tear::-webkit-progress-bar {
|
|
background: #293039;
|
|
}
|
|
|
|
#pack-tear::-webkit-progress-value {
|
|
background: #bba36a;
|
|
}
|
|
|
|
#pack-tear::-moz-progress-bar {
|
|
background: #bba36a;
|
|
}
|
|
|
|
.pack-actions {
|
|
display: grid;
|
|
grid-template-columns: auto minmax(0, 1fr) auto;
|
|
gap: 8px;
|
|
}
|
|
|
|
.pack-actions button {
|
|
min-height: 44px;
|
|
height: auto;
|
|
padding: 8px 12px;
|
|
}
|
|
|
|
#pack-primary {
|
|
border-color: #9b8750;
|
|
background: #393222;
|
|
color: #f5e5b4;
|
|
font-weight: 600;
|
|
}
|
|
|
|
button:disabled {
|
|
opacity: 0.5;
|
|
cursor: default;
|
|
}
|
|
|
|
.card-control { flex: 1 1 300px !important; min-width: min(300px, 100%); max-width: 440px; }
|
|
.card-select-row { display: grid; grid-template-columns: 32px minmax(150px, 1fr) 32px; gap: 5px; }
|
|
.card-select-row button { min-width: 0; padding-inline: 7px; }
|
|
#card-picker-open { overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
|
|
|
|
.card-picker {
|
|
position: fixed; inset: 0 0 0 auto; width: min(520px, 94vw); max-width: none;
|
|
height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0;
|
|
border-left: 1px solid #363d49; background: #11151d; color: #edf0f5;
|
|
box-shadow: -16px 0 50px #0009;
|
|
}
|
|
.card-picker::backdrop { background: #05070bbb; }
|
|
.card-picker[open] { display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
|
|
.card-picker-header {
|
|
display: flex; align-items: center; gap: 10px; padding: 16px; border-bottom: 1px solid #2b313c;
|
|
}
|
|
.card-picker-filters {
|
|
display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center;
|
|
gap: 10px; padding: 16px; border-bottom: 1px solid #2b313c;
|
|
}
|
|
.card-picker-header { justify-content: space-between; }
|
|
.card-picker-header h2 { margin: 2px 0 0; font-size: 20px; }
|
|
.card-picker-header .eyebrow { margin: 0; }
|
|
.card-picker-close { width: 40px; min-width: 40px; font-size: 24px; }
|
|
.card-picker-filters input { grid-column: 1 / -1; min-width: 0; }
|
|
.card-picker-filters select { width: min(240px, 65vw); }
|
|
.card-picker-filters span { justify-self: end; color: #9fa8b8; font-size: 12px; white-space: nowrap; }
|
|
.card-picker-results {
|
|
display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start;
|
|
gap: 10px; overflow: auto; padding: 14px;
|
|
}
|
|
.card-picker-result {
|
|
display: grid; grid-template-columns: 62px minmax(0, 1fr); align-items: center;
|
|
gap: 10px; min-width: 0; height: auto; padding: 7px; text-align: left;
|
|
}
|
|
.card-picker-result.selected { border-color: #b69a51; background: #332d20; }
|
|
.card-picker-result img { width: 62px; aspect-ratio: 5 / 7; border-radius: 3px; object-fit: cover; background: #080a0e; }
|
|
.card-picker-result span { display: grid; gap: 4px; min-width: 0; }
|
|
.card-picker-result strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.card-picker-result small { color: #a3abba; line-height: 1.35; }
|
|
.card-picker-empty { grid-column: 1 / -1; color: #a3abba; text-align: center; }
|
|
|
|
.diagnostic-readout,
|
|
.diagnostic-control { display: none; }
|
|
.diagnostics-enabled .diagnostic-readout { display: block; }
|
|
.diagnostics-enabled .toolbar .diagnostic-control { display: inline-block; }
|
|
#render-diagnostics { color: #89909b; font-size: 10px; }
|
|
|
|
.toolbar .pack-style,
|
|
.pack-mode .toolbar > :not(:first-child):not(.pack-style):not(.variant-control):not(.diagnostics-toggle) {
|
|
display: none;
|
|
}
|
|
|
|
.pack-mode .toolbar .pack-style {
|
|
display: grid;
|
|
flex-basis: 200px;
|
|
}
|
|
|
|
.pack-mode .toolbar .variant-control { display: grid; }
|
|
|
|
.pack-mode .toolbar {
|
|
flex: 0 1 400px;
|
|
}
|
|
|
|
.pack-mode .hint {
|
|
bottom: 118px;
|
|
max-width: calc(100% - 24px);
|
|
text-align: center;
|
|
white-space: normal;
|
|
}
|
|
|
|
.pack-mode .status-panel {
|
|
max-width: min(440px, calc(100% - 32px));
|
|
}
|
|
|
|
@media (max-width: 1500px) {
|
|
.topbar {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.toolbar {
|
|
flex-basis: 100%;
|
|
justify-content: flex-start;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 880px) {
|
|
.topbar {
|
|
gap: 10px;
|
|
padding: 10px 12px;
|
|
}
|
|
|
|
.title-row {
|
|
width: 100%;
|
|
}
|
|
|
|
.controls-toggle {
|
|
display: inline-flex;
|
|
}
|
|
|
|
.toolbar {
|
|
width: 100%;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.topbar.controls-collapsed {
|
|
min-height: 0;
|
|
}
|
|
|
|
.topbar.controls-collapsed .toolbar {
|
|
display: none;
|
|
}
|
|
|
|
.toolbar label {
|
|
flex: 1 1 calc(33.333% - 6px);
|
|
}
|
|
|
|
.toolbar .card-control {
|
|
flex: 2 1 calc(66.666% - 6px) !important;
|
|
max-width: none;
|
|
min-width: 0;
|
|
}
|
|
|
|
.toolbar button {
|
|
flex: 1 1 120px;
|
|
}
|
|
|
|
.hint {
|
|
bottom: 10px;
|
|
max-width: calc(100% - 24px);
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.lil-gui.root {
|
|
top: 210px;
|
|
}
|
|
|
|
.compact-controls .lil-gui.root {
|
|
top: 74px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 560px) {
|
|
.topbar {
|
|
gap: 8px;
|
|
}
|
|
|
|
.toolbar {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
.toolbar label {
|
|
width: 100%;
|
|
min-width: 0;
|
|
}
|
|
|
|
.toolbar button {
|
|
width: 100%;
|
|
min-width: 0;
|
|
padding-inline: 8px;
|
|
}
|
|
|
|
.lil-gui.root {
|
|
top: 288px;
|
|
}
|
|
|
|
.pack-mode .toolbar {
|
|
display: flex;
|
|
}
|
|
|
|
.pack-mode .status-panel {
|
|
top: 8px;
|
|
left: 12px;
|
|
padding: 6px 9px;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.pack-mode #performance {
|
|
font-size: 9px;
|
|
}
|
|
|
|
.pack-mode .hint {
|
|
bottom: 114px;
|
|
padding: 5px 9px;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.pack-controls {
|
|
gap: 6px;
|
|
padding: 8px;
|
|
}
|
|
|
|
#pack-status {
|
|
font-size: 11px;
|
|
}
|
|
|
|
.pack-actions {
|
|
gap: 6px;
|
|
}
|
|
|
|
.pack-actions button {
|
|
padding-inline: 10px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.card-control { grid-column: 1 / -1; }
|
|
.card-picker { width: 100vw; }
|
|
.card-picker-results { grid-template-columns: 1fr; }
|
|
}
|
|
|
|
@media (max-height: 540px) and (min-aspect-ratio: 4/3) {
|
|
.pack-controls {
|
|
right: 12px;
|
|
left: auto;
|
|
width: min(280px, 32vw);
|
|
padding: 8px;
|
|
transform: none;
|
|
}
|
|
|
|
.pack-actions {
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 6px;
|
|
}
|
|
|
|
.pack-actions button {
|
|
padding-inline: 8px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
#pack-primary {
|
|
grid-row: 1;
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
#pack-status {
|
|
font-size: 11px;
|
|
}
|
|
|
|
.pack-mode .hint {
|
|
right: 12px;
|
|
bottom: 170px;
|
|
left: auto;
|
|
width: min(280px, 32vw);
|
|
font-size: 10px;
|
|
transform: none;
|
|
}
|
|
|
|
.pack-mode .status-panel {
|
|
max-width: 28vw;
|
|
font-size: 10px;
|
|
}
|
|
}
|