files-tcg/.backup/hardware-front.css
2026-09-27 10:20:04 -04:00

244 lines
5.7 KiB
CSS

/* ======================================================
Hardware card — green PCB (printed circuit board)
====================================================== */
.card {
position: relative;
width: 750px;
height: 1050px;
box-sizing: border-box;
padding: 0;
overflow: hidden;
font-family: "Consolas", "Courier New", monospace;
background: #06120a;
--accent: #ffd24a;
--accent-dk: #a9822a;
--chamfer: 22px;
}
/* ----- 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);
}
/* ----- Solder-mask green board ----- */
.pcb {
position: absolute;
inset: 18px;
border-radius: 16px;
box-sizing: border-box;
padding: 40px 44px 118px; /* bottom pad clears the edge connector */
color: #e7f3e6;
background:linear-gradient(180deg, #2b2f36 0%, #1c1f25 100%);
box-shadow:
inset 0 0 0 6px rgba(255,255,255,0.05),
inset 0 0 60px rgba(0,0,0,0.45),
0 10px 24px rgba(0,0,0,0.5);
}
/* Copper traces + vias, drawn as a translucent overlay */
.traces {
position: absolute;
inset: 0;
border-radius: 16px;
pointer-events: none;
opacity: 0.55;
background-image:
/* thin horizontal + vertical copper traces */
repeating-linear-gradient(0deg, rgba(210,170,60,0.25) 0 2px, transparent 2px 66px),
repeating-linear-gradient(90deg, rgba(210,170,60,0.22) 0 2px, transparent 2px 54px),
/* diagonal accent traces */
repeating-linear-gradient(45deg, rgba(230,193,90,0.10) 0 2px, transparent 2px 40px),
/* vias (plated holes) */
radial-gradient(circle, rgba(230,193,90,0.6) 0 3px, rgba(0,0,0,0.35) 3px 6px, transparent 7px);
background-size: auto, auto, auto, 108px 108px;
background-position: 0 0, 0 0, 0 0, 20px 20px;
}
/* ----- Corner mounting holes (drilled + copper ring) ----- */
.hole {
position: absolute;
width: 46px;
height: 46px;
border-radius: 50%;
background:
radial-gradient(circle, #05130a 0 12px, #c9a227 12px 18px, #1c1f25 18px 100%);
box-shadow: inset 0 0 6px rgba(0,0,0,0.7);
z-index: 4;
}
.hole.tl { top: 22px; left: 22px; }
.hole.tr { top: 22px; right: 22px; }
.hole.bl { bottom: 130px; left: 22px; }
.hole.br { bottom: 130px; right: 22px; }
/* ----- Silkscreen title ----- */
.silk-title {
position: relative;
z-index: 3;
margin: 20px 60px 0;
padding-bottom: 14px;
border-bottom: 2px dashed rgba(231,243,230,0.45);
display: flex;
align-items: baseline;
gap: 14px;
}
.silk-title .ref {
font-size: 22px;
font-weight: 700;
color: #ffd24a;
letter-spacing: 2px;
}
.silk-title .name {
font-size: 40px;
font-weight: 800;
letter-spacing: 1px;
text-transform: uppercase;
line-height: 1.02;
color: #f2fbf1;
text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
/* ----- RAM cost as an IC chip ----- */
.ic {
position: absolute;
top: 144px;
right: 54px;
z-index: 5;
width: 132px;
height: 132px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
border-radius: 10px;
color: #f4d873;
background: linear-gradient(160deg, #2a2a2a 0%, #0b0b0b 100%);
border: 3px solid #000;
box-shadow:
0 8px 16px rgba(0,0,0,0.55),
inset 0 2px 4px rgba(255,255,255,0.12),
/* gold pins on left/right */
-14px 0 0 -6px #caa53a, 14px 0 0 -6px #caa53a;
}
.ic::before {
/* pin 1 dot */
content: "";
position: absolute;
top: 12px;
left: 12px;
width: 10px;
height: 10px;
border-radius: 50%;
background: #6b6b6b;
}
.ic-value {
font-size: 60px;
font-weight: 800;
line-height: 1;
text-shadow: 0 2px 3px rgba(0,0,0,0.7);
}
.ic-label {
font-size: 20px;
font-weight: 700;
letter-spacing: 3px;
margin-top: 4px;
color: #cfeccb;
}
/* ----- Art window ----- */
.art-pad {
position: relative;
z-index: 3;
margin: 26px 0 0;
height: 500px;
border-radius: 8px;
overflow: hidden;
background: #071b0f;
border: 4px solid #848484;
box-shadow:
inset 0 0 0 3px #c9a227,
inset 0 0 26px rgba(0,0,0,0.6);
}
.art {
width: 100%;
height: 100%;
display: block;
background-color: #071b0f;
background-image: url({{index assets card.image}});
background-position: center;
background-size: cover;
background-repeat: no-repeat;
}
/* ----- Silkscreen description panel ----- */
.silk-box {
position: relative;
z-index: 3;
margin-top: 24px;
padding: 20px 22px;
min-height: 170px;
border-radius: 8px;
background: linear-gradient(180deg, #2b2f36 0%, #1c1f25 100%);
border: 2px solid rgba(231,243,230,0.5);
box-shadow: inset 0 0 20px rgba(0,0,0,0.4);
}
.silk-box-ref {
position: absolute;
top: -14px;
left: 18px;
padding: 0 8px;
font-size: 20px;
font-weight: 700;
color: #ffd24a;
background: #2b2f36;
}
.description {
margin: 0;
font-size: 24px;
line-height: 1.4;
color: #eafae8;
}
/* ----- Footer + gold edge connector ----- */
.footer {
position: absolute;
left: 44px;
right: 44px;
bottom: 96px;
z-index: 3;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 20px;
font-weight: 700;
letter-spacing: 2px;
color: #c4c4c4;
}
.footer .kind { color: #ffd24a; }
.edge-connector {
position: absolute;
left: 40px;
right: 40px;
bottom: 0;
height: 40px;
border-radius: 0 0 6px 6px;
background:
repeating-linear-gradient(
90deg,
#e6c15a 0 26px,
#a9822a 26px 30px,
#191a1a 30px 40px
);
box-shadow: inset 0 6px 10px rgba(0,0,0,0.5);
}