338 lines
8.6 KiB
CSS
338 lines
8.6 KiB
CSS
/* ======================================================
|
|
Hardware card — expansion module
|
|
Same chassis as Program/Execution (neon outline, header,
|
|
viewport, console, status bar). Hardware identity = gold
|
|
contacts: DIP-chip Bandwidth cost, PCB traces, edge connector.
|
|
====================================================== */
|
|
|
|
.card {
|
|
position: relative;
|
|
width: 750px;
|
|
height: 1050px;
|
|
box-sizing: border-box;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
font-family: "Consolas", "Courier New", monospace;
|
|
background: #05070a;
|
|
--accent: #ffd24a;
|
|
--accent-dk: #8a6a1a;
|
|
--chamfer: 22px;
|
|
}
|
|
|
|
/* cinematic tint: accent top-corner light, cool counter-light, dark bottom for text */
|
|
.tint {
|
|
position: absolute;
|
|
inset: 0;
|
|
z-index: 1;
|
|
pointer-events: none;
|
|
background:
|
|
radial-gradient(70% 45% at 100% 0%, var(--accent) 0%, transparent 55%),
|
|
radial-gradient(60% 40% at 0% 8%, rgba(40,150,255,0.22) 0%, transparent 60%),
|
|
linear-gradient(180deg, rgba(3,6,9,0.55) 0%, rgba(3,6,9,0) 22%, rgba(3,6,9,0) 40%, rgba(3,6,9,0.78) 72%, rgba(3,6,9,0.96) 100%);
|
|
opacity: 0.9;
|
|
}
|
|
|
|
|
|
/* ----- Neon HUD outline (shared across card types) ----- */
|
|
.neon {
|
|
position: absolute;
|
|
inset: 13px;
|
|
z-index: 40;
|
|
pointer-events: none;
|
|
border: 3px solid var(--accent);
|
|
clip-path: polygon(
|
|
var(--chamfer) 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer),
|
|
100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%,
|
|
var(--chamfer) 100%, 0 calc(100% - var(--chamfer)), 0 var(--chamfer)
|
|
);
|
|
box-shadow: 0 0 16px var(--accent), 0 0 6px var(--accent), inset 0 0 16px rgba(0,0,0,0.4);
|
|
}
|
|
|
|
/* ----- Module shell (gunmetal board) ----- */
|
|
.module {
|
|
position: absolute;
|
|
inset: 20px;
|
|
box-sizing: border-box;
|
|
border-radius: 16px;
|
|
color: #f3efe4;
|
|
background: linear-gradient(180deg, #2b2f36 0%, #1c1f25 100%);
|
|
box-shadow:
|
|
inset 0 0 60px rgba(0,0,0,0.55),
|
|
0 0 0 2px rgba(0,0,0,0.6),
|
|
0 10px 24px rgba(0,0,0,0.6);
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* Faint PCB traces (hardware's texture, like the CRT scanlines on Executions) */
|
|
.traces {
|
|
position: absolute;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
opacity: 0.6;
|
|
background-image:
|
|
linear-gradient(rgba(255,210,74,0.05) 1px, transparent 1px),
|
|
linear-gradient(90deg, rgba(255,210,74,0.05) 1px, transparent 1px),
|
|
repeating-linear-gradient(45deg, rgba(255,210,74,0.035) 0 2px, transparent 2px 38px);
|
|
background-size: 44px 44px, 44px 44px, auto;
|
|
}
|
|
|
|
/* ----- Heat-spreader header ----- */
|
|
.spreader {
|
|
position: relative;
|
|
z-index: 2;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
height: 82px;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
/* HW glyph (mirrors the Anomaly type chip) */
|
|
.hw-chip {
|
|
flex: none;
|
|
width: 64px;
|
|
height: 56px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 26px;
|
|
font-weight: 800;
|
|
letter-spacing: 1px;
|
|
color: #05070a;
|
|
clip-path: polygon(14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 14%);
|
|
background: linear-gradient(160deg, var(--accent) 0%, var(--accent-dk) 100%);
|
|
}
|
|
|
|
.name {
|
|
flex: 1;
|
|
font-size: 32px;
|
|
font-weight: 800;
|
|
letter-spacing: 1px;
|
|
text-transform: uppercase;
|
|
line-height: 1.02;
|
|
color: #fff8e6;
|
|
text-shadow: 0 0 12px rgba(255,210,74,0.35), 0 2px 4px #000;
|
|
/* long names wrap to a second line instead of truncating */
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 2;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ----- Bandwidth cost as a DIP chip (mirrors the Anomaly core chip) ----- */
|
|
.bandwidth-ic {
|
|
position: relative;
|
|
flex: none;
|
|
min-width: 108px;
|
|
height: 56px;
|
|
box-sizing: border-box;
|
|
padding: 0 14px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
border-radius: 6px;
|
|
color: #fff;
|
|
background:
|
|
radial-gradient(circle at 11px 11px, #5a5e66 0 3px, transparent 4px), /* pin-1 dot */
|
|
linear-gradient(160deg, #2a2f36 0%, #0e1115 100%);
|
|
border: 2px solid var(--accent-dk);
|
|
box-shadow: 0 3px 6px rgba(0,0,0,0.6), inset 0 0 10px rgba(0,0,0,0.75);
|
|
}
|
|
/* gold pins along the top and bottom edges */
|
|
.bandwidth-ic::before,
|
|
.bandwidth-ic::after {
|
|
content: "";
|
|
position: absolute;
|
|
left: 10px;
|
|
right: 10px;
|
|
height: 9px;
|
|
background-image: linear-gradient(90deg,
|
|
var(--accent-dk) 0 1px, var(--accent) 1px 5px, var(--accent-dk) 5px 6px, transparent 6px);
|
|
background-size: 14px 100%;
|
|
background-repeat: space;
|
|
}
|
|
.bandwidth-ic::before { top: -11px; }
|
|
.bandwidth-ic::after { bottom: -11px; }
|
|
.bandwidth-value {
|
|
font-size: 38px;
|
|
font-weight: 800;
|
|
line-height: 1;
|
|
text-shadow: 0 2px 3px rgba(0,0,0,0.7);
|
|
}
|
|
.bandwidth-label {
|
|
font-size: 19px;
|
|
font-weight: 700;
|
|
letter-spacing: 2px;
|
|
color: var(--accent);
|
|
}
|
|
|
|
/* ----- Spec strip: silkscreen label + status LEDs ----- */
|
|
.spec-strip {
|
|
position: relative;
|
|
z-index: 2;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin: 20px 24px 0;
|
|
padding: 12px 18px;
|
|
border-radius: 10px;
|
|
background: rgba(0,0,0,0.35);
|
|
border: 2px solid var(--accent-dk);
|
|
}
|
|
.silk {
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
letter-spacing: 4px;
|
|
color: var(--accent);
|
|
}
|
|
.leds { display: flex; gap: 20px; }
|
|
.led {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 18px;
|
|
font-weight: 800;
|
|
letter-spacing: 2px;
|
|
color: #9a9384;
|
|
}
|
|
.led i {
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 50%;
|
|
background: var(--accent);
|
|
box-shadow: 0 0 8px var(--accent), inset 0 0 3px rgba(0,0,0,0.4);
|
|
}
|
|
.led.dim i {
|
|
background: var(--accent-dk);
|
|
box-shadow: inset 0 0 3px rgba(0,0,0,0.6);
|
|
}
|
|
|
|
/* ----- Component bay (art) ----- */
|
|
.bay {
|
|
position: absolute;
|
|
z-index: 0;
|
|
top: 0;
|
|
left: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
border-radius: 10px;
|
|
overflow: hidden;
|
|
border: 4px solid var(--accent-dk);
|
|
background-color: #07090c;
|
|
/* empty-bay fallback: faint traces + vias, hidden once art is set */
|
|
background-image:
|
|
radial-gradient(circle, rgba(255,210,74,0.16) 0 3px, transparent 4px),
|
|
linear-gradient(rgba(255,210,74,0.05) 2px, transparent 2px),
|
|
linear-gradient(90deg, rgba(255,210,74,0.05) 2px, transparent 2px);
|
|
background-size: 66px 66px;
|
|
background-position: -32px -32px, 0 0, 0 0;
|
|
box-shadow: inset 0 0 0 3px rgba(0,0,0,0.6), 0 0 18px rgba(0,0,0,0.6);
|
|
}
|
|
.art {
|
|
position: absolute;
|
|
inset: 0;
|
|
image-rendering: pixelated;
|
|
background-color: #696969;
|
|
background-image: url({{index assets card.image}});
|
|
background-position: center;
|
|
background-size: cover;
|
|
background-repeat: no-repeat;
|
|
}
|
|
/* gold corner brackets framing the component */
|
|
.brackets {
|
|
position: absolute;
|
|
inset: 14px;
|
|
pointer-events: none;
|
|
--b: linear-gradient(var(--accent), var(--accent));
|
|
background:
|
|
var(--b) top left / 36px 3px no-repeat,
|
|
var(--b) top left / 3px 36px no-repeat,
|
|
var(--b) top right / 36px 3px no-repeat,
|
|
var(--b) top right / 3px 36px no-repeat,
|
|
var(--b) bottom left / 36px 3px no-repeat,
|
|
var(--b) bottom left / 3px 36px no-repeat,
|
|
var(--b) bottom right / 36px 3px no-repeat,
|
|
var(--b) bottom right / 3px 36px no-repeat;
|
|
filter: drop-shadow(0 0 6px var(--accent));
|
|
}
|
|
|
|
/* ----- Datasheet / description ----- */
|
|
.spec {
|
|
position: relative;
|
|
z-index: 2;
|
|
margin: 600px 24px 0;
|
|
min-height: 200px;
|
|
box-sizing: border-box;
|
|
padding: 16px 18px;
|
|
border-radius: 10px;
|
|
background: rgba(0,0,0,0.4);
|
|
border: 2px dashed var(--accent-dk);
|
|
}
|
|
.spec-label {
|
|
color: var(--accent);
|
|
font-weight: 800;
|
|
font-size: 24px;
|
|
}
|
|
.description {
|
|
margin: 6px 0 0;
|
|
font-size: 23px;
|
|
line-height: 1.4;
|
|
color: #f6f1e4;
|
|
}
|
|
|
|
/* ----- Status bar footer ----- */
|
|
.statusbar {
|
|
position: absolute;
|
|
left: 24px;
|
|
right: 24px;
|
|
bottom: 50px;
|
|
z-index: 2;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
letter-spacing: 2px;
|
|
color: #8f8a7e;
|
|
}
|
|
.statusbar .slot {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
color: var(--accent);
|
|
}
|
|
.statusbar .slot::before {
|
|
/* square solder pad instead of the round status dot */
|
|
content: "";
|
|
width: 14px;
|
|
height: 14px;
|
|
border-radius: 2px;
|
|
background: var(--accent);
|
|
box-shadow: 0 0 8px var(--accent);
|
|
}
|
|
|
|
/* ----- Gold edge connector (plugs into an Anomaly's Expansion Slot) ----- */
|
|
.edge-connector {
|
|
position: absolute;
|
|
left: 56px;
|
|
right: 56px;
|
|
bottom: 0;
|
|
height: 24px;
|
|
z-index: 2;
|
|
border-top: 2px solid var(--accent-dk);
|
|
background:
|
|
repeating-linear-gradient(90deg, transparent 0 16px, #15181c 16px 24px),
|
|
linear-gradient(180deg, #fbe7a1 0%, var(--accent) 35%, var(--accent-dk) 100%);
|
|
box-shadow: 0 0 12px rgba(255,210,74,0.25);
|
|
}
|
|
/* key notch */
|
|
.edge-connector::after {
|
|
content: "";
|
|
position: absolute;
|
|
left: 30%;
|
|
top: -2px;
|
|
bottom: 0;
|
|
width: 22px;
|
|
background: #05070a;
|
|
}
|