files-tcg/decks/files-deck-1/anomaly-front.css
2026-10-01 17:20:33 -04:00

391 lines
10 KiB
CSS

/* ======================================================
Anomaly card — full-bleed cyber HUD unit
Inspired by the CD PROJEKT cyberpunk TCG frame, fused with
our deck: type accents, CPU-core power chip, gold hardware
expansion bus. Bandwidth = cost, Cores = power.
====================================================== */
.card {
position: relative;
width: 750px;
height: 1050px;
box-sizing: border-box;
padding: 0;
overflow: hidden;
font-family: "Consolas", "Courier New", monospace;
background: #05070a;
--accent: #8b949e;
--accent-dk: #3a3f47;
--gold: #e6c15a;
--gold-dk: #a9822a;
--chamfer: 22px;
}
/* Type-driven accent palette (shared across the deck) */
.type-v { --accent: #3fb950; --accent-dk: #176b2c; } /* Virus */
.type-b { --accent: #ff5c5c; --accent-dk: #a11a1a; } /* Bug */
.type-g { --accent: #d264ff; --accent-dk: #7a1fb0; } /* Glitch */
.type-p { --accent: #4aa3ff; --accent-dk: #0b57c9; } /* Patch */
/* ----- Full-bleed art ----- */
.art {
position: absolute;
inset: 0;
z-index: 0;
image-rendering: pixelated;
background-color: #0a0f16;
background-image: url({{index assets card.image}});
background-position: center;
background-size: cover;
background-repeat: no-repeat;
}
/* cinematic tint: accent top-corner light, magenta 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(255,40,120,0.28) 0%, transparent 60%),
linear-gradient(180deg, rgba(3,5,9,0.55) 0%, rgba(3,5,9,0) 22%, rgba(3,5,9,0) 40%, rgba(3,5,9,0.78) 72%, rgba(3,5,9,0.96) 100%);
opacity: 0.9;
}
.scan {
position: absolute;
inset: 0;
z-index: 1;
pointer-events: none;
opacity: 0.5;
background: repeating-linear-gradient(0deg, rgba(0,0,0,0.16) 0 2px, transparent 2px 4px);
}
/* ----- Angular neon HUD frame (open chamfered corners) ----- */
.neon {
position: absolute;
inset: 16px;
z-index: 3;
pointer-events: none;
border: 2px 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 14px var(--accent), inset 0 0 18px rgba(0,0,0,0.55);
}
/* small accent ticks on the top chamfers */
.tick {
position: absolute;
z-index: 4;
width: 30px;
height: 3px;
background: var(--accent);
box-shadow: 0 0 8px var(--accent);
}
.tick.tl { top: 30px; left: 8px; transform: rotate(45deg); }
.tick.tr { top: 30px; right: 8px; transform: rotate(-45deg); }
/* ----- Top-left: cores (CPU-core chip) ----- */
.core {
position: absolute;
z-index: 5;
top: 28px;
left: 28px;
width: 116px;
height: 116px;
display: flex;
align-items: center;
justify-content: center;
background-repeat: no-repeat;
background-image:
repeating-linear-gradient(90deg, transparent 0 9px, var(--accent) 9px 16px, transparent 16px 26px),
repeating-linear-gradient(90deg, transparent 0 9px, var(--accent) 9px 16px, transparent 16px 26px),
repeating-linear-gradient(0deg, transparent 0 9px, var(--accent) 9px 16px, transparent 16px 26px),
repeating-linear-gradient(0deg, transparent 0 9px, var(--accent) 9px 16px, transparent 16px 26px);
background-size: 80px 14px, 80px 14px, 14px 80px, 14px 80px;
background-position: top center, bottom center, left center, right center;
filter: drop-shadow(0 0 10px rgba(0,0,0,0.7));
}
.core::before {
content: "";
position: absolute;
inset: 14px;
border-radius: 9px;
background: linear-gradient(160deg, #2a2f36 0%, #14181d 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);
}
.core-count {
position: relative;
z-index: 2;
width: 70px;
height: 70px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 6px;
font-size: 46px;
font-weight: 800;
color: #05070a;
text-shadow: 0 1px 1px rgba(255,255,255,0.25);
background-color: var(--accent);
background-image:
linear-gradient(0deg, rgba(0,0,0,0.35) 1px, transparent 1px),
linear-gradient(90deg, rgba(0,0,0,0.35) 1px, transparent 1px);
background-size: 10px 10px;
box-shadow: 0 0 16px var(--accent), inset 0 0 6px rgba(0,0,0,0.55);
}
/* type glyph under the core chip */
.typechip {
position: absolute;
z-index: 5;
top: 152px;
left: 55px;
width: 62px;
height: 62px;
display: flex;
align-items: center;
justify-content: center;
font-size: 34px;
font-weight: 800;
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%);
box-shadow: 0 0 14px var(--accent);
}
/* ----- Top-right: unit tab ----- */
.unit-tab {
position: absolute;
z-index: 5;
top: 34px;
right: 30px;
padding: 10px 22px 10px 30px;
font-size: 24px;
font-weight: 800;
letter-spacing: 4px;
color: #05070a;
clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dk) 100%);
box-shadow: 0 0 14px var(--accent);
}
/* ----- Edge micro-text ----- */
.vcode {
position: absolute;
z-index: 5;
left: 22px;
bottom: 500px;
writing-mode: vertical-rl;
transform: rotate(180deg);
font-size: 15px;
font-weight: 700;
letter-spacing: 3px;
color: rgba(230,240,235,0.55);
}
.vcredit {
position: absolute;
z-index: 5;
right: 22px;
top: 322px;
writing-mode: vertical-rl;
font-size: 15px;
font-weight: 700;
letter-spacing: 3px;
color: rgba(230,240,235,0.5);
}
/* ----- Lower content panel ----- */
.lower {
position: absolute;
z-index: 5;
left: 45px;
right: 30px;
bottom: 44px;
}
.name {
margin: 0 0 16px;
padding-bottom: 14px;
border-bottom: 2px solid var(--accent);
box-shadow: 0 2px 12px -6px var(--accent);
font-size: 50px;
font-weight: 800;
letter-spacing: 1px;
line-height: 1.0;
text-transform: uppercase;
color: #ffffff;
text-shadow: 0 0 16px rgba(0,0,0,0.9), 0 3px 6px #000;
}
/* ----- Ability (activated power) — sits under the name, above the description ----- */
.ability {
margin-bottom: 14px;
padding: 12px 16px 14px;
background: linear-gradient(180deg, rgba(4,7,11,0.88) 0%, rgba(4,7,11,0.94) 100%);
border: 2px solid var(--accent-dk);
border-left: 6px solid var(--accent);
box-shadow: inset 0 0 26px rgba(0,0,0,0.55), 0 0 14px -6px var(--accent);
}
.ability-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
margin-bottom: 10px;
padding-bottom: 8px;
border-bottom: 1px dashed var(--accent-dk);
}
.ability-name {
font-size: 30px;
font-weight: 800;
letter-spacing: 2px;
line-height: 1.05;
text-transform: uppercase;
color: var(--accent);
text-shadow: 0 0 12px rgba(0,0,0,0.9), 0 2px 4px #000;
}
/* Bandwidth cost chip — mirrors the .bandwidth-chip on Program/Hardware cards */
.ability-cost {
flex: none;
min-width: 92px;
height: 46px;
padding: 0 12px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
border-radius: 6px;
background: #0a0f14;
border: 3px solid var(--accent);
box-shadow: inset 0 0 10px rgba(0,0,0,0.6);
}
.ability-cost b {
font-size: 30px;
font-weight: 800;
line-height: 1;
color: #fff;
text-shadow: 0 2px 3px rgba(0,0,0,0.7);
}
.ability-cost i {
font-style: normal;
font-size: 16px;
font-weight: 800;
letter-spacing: 2px;
color: var(--accent);
}
.ability-desc {
font-size: 21px;
line-height: 1.34;
color: #eef6f1;
}
.desc {
padding: 16px 18px;
font-size: 23px;
line-height: 1.4;
color: #eef6f1;
background: linear-gradient(180deg, rgba(4,7,11,0.86) 0%, rgba(4,7,11,0.92) 100%);
border-left: 3px solid var(--accent);
box-shadow: inset 0 0 26px rgba(0,0,0,0.5);
}
/* ----- Slots badge (hardware capacity: Expansion Slots) ----- */
.slots {
position: absolute;
z-index: 5;
top: 96px;
right: 30px;
width: 96px;
height: 96px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
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%);
box-shadow: 0 0 16px var(--accent);
}
.slots::before {
content: "";
position: absolute;
inset: 3px;
clip-path: polygon(14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 14%);
background: linear-gradient(160deg, #12181f 0%, #0a0e13 100%);
}
.slots b {
position: relative;
z-index: 1;
font-size: 42px;
font-weight: 800;
line-height: 1;
color: #fff;
text-shadow: 0 0 10px var(--accent), 0 2px 3px #000;
}
.slots i {
position: relative;
z-index: 1;
font-style: normal;
font-size: 15px;
font-weight: 800;
letter-spacing: 3px;
margin-top: 2px;
color: var(--accent);
}
/* ----- Health badge (damage to destroy) — same chassis as SLOTS, with a pulse line ----- */
.health {
position: absolute;
z-index: 5;
top: 204px;
right: 30px;
width: 96px;
height: 96px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
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%);
box-shadow: 0 0 16px var(--accent);
}
.health::before {
content: "";
position: absolute;
inset: 3px;
clip-path: polygon(14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 14%);
background: linear-gradient(160deg, #12181f 0%, #0a0e13 100%);
}
/* heartbeat trace above the number */
.health .pulse {
position: relative;
z-index: 1;
width: 56px;
height: 16px;
margin-bottom: 2px;
background: var(--accent);
filter: drop-shadow(0 0 6px var(--accent));
clip-path: polygon(
0 46%, 24% 46%, 32% 12%, 44% 88%, 54% 0, 62% 62%, 68% 46%, 100% 46%,
100% 62%, 66% 62%, 58% 90%, 52% 30%, 44% 100%, 32% 40%, 26% 62%, 0 62%
);
}
.health b {
position: relative;
z-index: 1;
font-size: 40px;
font-weight: 800;
line-height: 1;
color: #fff;
text-shadow: 0 0 10px var(--accent), 0 2px 3px #000;
}
.health i {
position: relative;
z-index: 1;
font-style: normal;
font-size: 15px;
font-weight: 800;
letter-spacing: 3px;
margin-top: 2px;
color: var(--accent);
}