Fix project structure

This commit is contained in:
2026-09-08 13:39:03 -07:00
parent 2637189690
commit 21dd8fbdbf
249 changed files with 15679 additions and 143 deletions

496
card-harness/src/style.css Normal file
View File

@@ -0,0 +1,496 @@
: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 {
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: 1 1 110px;
min-width: 100px;
gap: 4px;
color: #9da3ad;
font-size: 11px;
letter-spacing: 0.04em;
}
select,
button {
height: 34px;
border: 1px solid rgba(227, 215, 181, 0.2);
border-radius: 7px;
background: #171b23;
outline: none;
}
select {
width: 100%;
min-width: 0;
padding: 0 28px 0 10px;
}
button {
padding: 0 13px;
cursor: pointer;
}
button:hover,
select:hover {
border-color: rgba(218, 186, 102, 0.62);
background: #202630;
}
button:focus-visible,
select:focus-visible {
outline: 2px solid #d6b860;
outline-offset: 2px;
}
.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);
backdrop-filter: blur(12px);
}
.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);
backdrop-filter: blur(12px);
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;
}
.pack-mode .toolbar > :not(:first-child) {
display: none;
}
.pack-mode .toolbar {
flex: 0 1 180px;
}
.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: 1120px) {
.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-basis: calc(33.333% - 6px);
}
.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;
}
}
@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;
}
}