Refresh Outpost cards with illustrated retro colony styling

This commit is contained in:
coyotte508 2026-10-01 14:08:39 +02:00
commit 7e3e3e1175
10 changed files with 273 additions and 60 deletions

View file

@ -290,6 +290,7 @@
<style>
.actionbar {
box-shadow: var(--panel-bevel);
background: var(--bg-panel);
border: 1px solid var(--line);
border-radius: var(--radius);
@ -360,7 +361,7 @@
gap: 8px;
padding: 3px 8px;
border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
border-radius: 6px;
border-radius: 2px;
}
.mega-name {
font-size: 12.5px;

View file

@ -199,7 +199,7 @@
font-size: 14px;
padding: 8px 10px;
background: var(--bg-panel);
border-radius: 6px;
border-radius: 2px;
}
.net-cost {
color: var(--gold);
@ -294,7 +294,7 @@
font-weight: 800;
color: var(--microbiotics);
background: color-mix(in srgb, var(--microbiotics) 16%, transparent);
border-radius: 4px;
border-radius: 2px;
padding: 0 4px;
}
.maxeq {

View file

@ -407,7 +407,7 @@
color: var(--text);
background: var(--bg-elevated);
border: 1px solid var(--line);
border-radius: 8px;
border-radius: 2px;
padding: 6px 10px;
}
.composer input:focus {

View file

@ -0,0 +1,131 @@
<script lang="ts">
import type { MarketCard } from "outpost-engine";
let { card }: { card: MarketCard } = $props();
const subjects = {
dataLibrary: "archive",
warehouse: "cargo",
heavyEquipment: "crawler",
nodule: "habitat",
scientists: "observatory",
orbitalLab: "orbital",
robots: "robot",
laboratory: "reactor",
ecoplants: "greenhouse",
outpost: "colony",
spaceStation: "station",
planetaryCruiser: "ship",
moonBase: "lunar",
iceProspector: "crawler",
robotPrototype: "robot",
smelter: "foundry",
wilyTrader: "ship",
launchFacility: "launch",
merchantHouse: "cargo",
ncfPrototype: "reactor",
refinery: "foundry",
biosphere: "greenhouse",
} satisfies Record<MarketCard, string>;
const subject = $derived(subjects[card]);
</script>
<svg viewBox="0 0 160 76" aria-hidden="true" focusable="false">
<g class="terrain">
<path d="M0 62 23 54 38 59 68 48 98 59 124 51 160 60V76H0Z" />
<path d="m0 70 34-6 30 4 43-5 53 7M13 15h2m111 5h2m-83 9h2m98 10h2" />
<circle cx="126" cy="18" r="11" />
</g>
<g class="structure">
{#if subject === "archive"}
<path d="m33 56 8-38 66-5 20 14v31l-70 9Z" />
<path d="m41 18 16 13 70-4M57 31v36M33 56l24 11" />
<path class="shade" d="m63 36 55-4v8l-55 5Zm0 15 55-5v8l-55 6Z" />
<path class="light" d="m69 39 23-2m-23 17 23-2m11-14h7m-7 15h7" />
{:else if subject === "cargo"}
<path d="M25 60V36l14-15h70l24 15v24Z" />
<path d="M25 36h108M109 21v39M35 60V40h24v20m8 0V40h32v20M39 21v15" />
<path class="shade" d="M39 45h17v15H39Zm33 0h23v15H72Z" />
<path class="light" d="M42 48h11m22 0h17M115 42h10m-10 6h10" />
{:else if subject === "crawler"}
<path d="M26 53h69l10 7-9 8H29l-10-8Z" />
<path d="M38 53V35h36l13 18m-42-18V23h24l8 30M78 38l18-24 23 4 13 27-9 9-12-3m-14-30 16 3 10 22" />
<path class="shade" d="M49 27h15l3 14H49Z" />
<path class="light" d="M33 60h58M53 47h15" />
<circle cx="31" cy="60" r="4" /><circle cx="94" cy="60" r="4" />
{:else if subject === "robot"}
<path
d="M65 12h29v17H65Zm-5 23 38-3 8 25-43 2Zm8 25-5 12h13l5-13m10-1 4 14h14l-8-16M60 38 46 43l-4 19m60-25 15 8 4 13M78 12V6"
/>
<path class="shade" d="M70 17h18v7H70ZM70 39h23v12H70Z" />
<path class="light" d="M73 20h12m-10 23h12m-45 19-7 3m7-3 5 6" />
{:else if subject === "reactor" || subject === "foundry"}
<path
d="M27 61h108v6H27ZM37 61V34h25v27m12 0V24h24v37m11 0V37h18v24M34 34l6-10h19l6 10m6-10 6-11h19l6 11m-26 9h20"
/>
<path class="shade" d="M43 40h12v21H43Zm37-5h12v26H80Zm34 7h8v19h-8Z" />
<path class="light" d="M47 44v11m37-16v16m-22-6h12m24-4h11" />
{#if subject === "foundry"}<path d="M44 24V12h9v12m64 13V17h7v20" />{/if}
{:else if subject === "orbital" || subject === "station"}
<path d="m60 34 35-7 11 13-35 9Z" />
<path d="M78 31V13h8v16M76 47v18h8V46M60 37H29m76 0h29" />
<path class="shade" d="M13 25h34v24H13Zm103 0h34v24h-34Z" />
<path class="light" d="M24 25v24m12-24v24m-23-12h34m80-12v24m12-24v24m-23-12h34M76 36l13-3" />
{#if subject === "station"}<ellipse class="light" cx="81" cy="38" rx="30" ry="24" />{/if}
{:else if subject === "ship" || subject === "launch"}
<path d="m30 47 63-26 36 13-40 20-30 4Z" />
<path d="m64 34 7-17 19-6 3 10M55 54l-11 12 25-3 20-9m15-9 10 12 20-6-12-14M30 47l29 11" />
<path class="shade" d="m97 26 17 7-18 5-11-6Z" />
<path class="light" d="m42 50 14 4m-31-1-12 4m22 2-15 6" />
{#if subject === "launch"}<path d="M137 60V13h10v53H23m114-45h10m-10 10h10m-10 10h10" />{/if}
{:else if subject === "observatory"}
<path
d="M41 61V43h63v18ZM50 43a22 22 0 0 1 44 0ZM72 21V12m-10 0h20M114 61V41m-13-15 25 13a18 18 0 0 1-25-13Zm10 5 9-12"
/>
<path class="shade" d="M61 48h22v13H61Z" />
<path class="light" d="M66 33h17m-8-12v22" />
{:else}
<path
d="M26 59h109v7H26ZM35 59V46a24 24 0 0 1 48 0v13m-48-13h48m-24-24v37M86 59V41h38v18l-38 1m0-19 12-12 26 12"
/>
<path class="shade" d="M48 49h20v10H48Zm47-4h20v14H95Z" />
<path class="light" d="M45 39h29M99 48h12" />
{#if subject === "greenhouse"}
<path class="light" d="M54 59V41m0 10-9-6m9 1 10-9m36 22V44m0 9 10-5" />
{:else if subject === "colony" || subject === "lunar"}
<path d="M108 32V12m-8 0 18 8a12 12 0 0 1-18-8ZM20 51V36h10v15m-13-10h16" />
{/if}
{/if}
</g>
</svg>
<style>
svg {
display: block;
width: 100%;
height: 100%;
color: var(--art-line, #7895a5);
background:
linear-gradient(0deg, #0c131ba8, transparent 65%),
repeating-linear-gradient(0deg, #7a9fb008 0 1px, transparent 1px 4px), #19232d;
}
.terrain {
fill: #26313b;
stroke: #3b4b58;
stroke-width: 0.7;
}
.structure {
fill: #314450;
stroke: currentColor;
stroke-width: 1.2;
stroke-linejoin: bevel;
}
.shade {
fill: #111c25;
stroke: #516775;
}
.light {
fill: none;
stroke: #9abdc6;
stroke-width: 1.4;
}
</style>

View file

@ -62,6 +62,7 @@
<style>
.strip {
box-shadow: var(--panel-bevel);
display: flex;
align-items: center;
gap: 16px;
@ -72,6 +73,7 @@
flex-wrap: wrap;
}
.brand {
font-family: var(--font-console);
display: inline-flex;
align-items: center;
gap: 7px;
@ -102,7 +104,7 @@
letter-spacing: 0.08em;
background: color-mix(in srgb, var(--gold) 18%, transparent);
color: var(--gold);
border-radius: 5px;
border-radius: 2px;
padding: 2px 8px;
}
.era {
@ -112,7 +114,7 @@
text-transform: uppercase;
background: color-mix(in srgb, var(--research) 20%, transparent);
color: var(--research);
border-radius: 5px;
border-radius: 2px;
padding: 2px 8px;
}
.dim {

View file

@ -11,6 +11,7 @@
type Kicker,
} from "outpost-engine";
import UpgradeBadges from "./UpgradeBadges.svelte";
import ColonyArt from "./ColonyArt.svelte";
import CardEffect from "./CardEffect.svelte";
import { KICKER_EFFECTS, UPGRADE_EFFECTS, effectToText, type ViewerStore } from "./store.svelte";
@ -89,6 +90,7 @@
{["", "I", "II", "III"][upgradeEra(upgrade)]}
</span>
</span>
<span class="art"><ColonyArt card={upgrade} /></span>
<span class="uvp">{spec.vp} VP</span>
<span class="uprice">
min ◈ {spec.price}
@ -193,6 +195,7 @@
{["", "I", "II", "III"][spec.era]}
</span>
</span>
<span class="art"><ColonyArt card={kicker} /></span>
<span class="uvp">{spec.vp} VP</span>
<span class="uprice">min ◈ {spec.price}</span>
<span class="ueffect"><CardEffect locale={store.preferences.locale} tokens={KICKER_EFFECTS[kicker]} /></span
@ -276,6 +279,7 @@
gap: 6px;
}
.caption {
font-family: var(--font-console);
font-size: 11px;
font-weight: 700;
letter-spacing: 0.06em;
@ -302,20 +306,42 @@
gap: 6px;
}
.ucard {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 3px;
display: grid;
grid-template-columns: 1fr auto;
align-content: start;
align-items: start;
gap: 6px;
width: 168px;
min-height: 118px;
padding: 10px 12px;
min-height: 190px;
padding: 9px;
text-align: left;
background: linear-gradient(165deg, var(--bg-elevated), var(--bg-panel));
border: 1px solid var(--line);
border-top: 3px solid var(--gold);
border-radius: var(--radius);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
background: linear-gradient(145deg, #202a34, var(--bg-panel) 65%);
border: 1px solid #485562;
border-top: 2px solid var(--card-accent, #779baa);
border-radius: 2px;
box-shadow:
inset 0 0 0 2px #10151c80,
2px 3px 0 #00000035;
}
.art {
grid-column: 1 / -1;
display: block;
width: 100%;
height: 70px;
border: 1px solid #465460;
--art-line: var(--card-accent, #7895a5);
}
.ucard :global(.badges) {
grid-column: 1 / -1;
}
.ucard :global(.badges:empty) {
display: none;
}
.ucard:disabled {
opacity: 1;
cursor: default;
}
.ucard.clickable:hover:not(:disabled) {
border-color: var(--gold);
transform: translateY(-2px);
@ -329,19 +355,19 @@
}
/* Kicker era colors: era I blue, era II orange, era III purple. */
.kcard.era-1 {
border-top-color: #5aa5e0;
--card-accent: #5aa5e0;
}
.kcard.era-2 {
border-top-color: #f08c48;
--card-accent: #f08c48;
}
.kcard.era-3 {
border-top-color: #b48ce8;
--card-accent: #b48ce8;
}
.uera {
font-size: 9.5px;
font-weight: 800;
letter-spacing: 0.06em;
border-radius: 4px;
border-radius: 1px;
padding: 1px 5px;
margin-left: 5px;
vertical-align: 1px;
@ -359,20 +385,34 @@
background: color-mix(in srgb, #b48ce8 16%, transparent);
}
.uname {
grid-column: 1 / -1;
font-family: "Arial Narrow", "Liberation Sans Narrow", sans-serif;
font-weight: 800;
font-size: 13px;
letter-spacing: 0.045em;
text-transform: uppercase;
line-height: 1.3;
color: var(--text);
}
.uvp {
grid-column: 2;
grid-row: 3;
font-family: var(--font-console);
font-size: 11px;
font-weight: 800;
color: var(--gold);
}
.uprice {
grid-column: 1;
grid-row: 3;
font-family: var(--font-console);
font-size: 11.5px;
color: var(--text-mid);
}
.ueffect {
grid-column: 1 / -1;
padding-top: 6px;
border-top: 1px solid var(--line);
font-size: 11.5px;
line-height: 1.35;
color: var(--text-mid);
@ -425,7 +465,7 @@
color: var(--text-mid);
background: var(--bg-panel);
border: 1px solid var(--line);
border-radius: 4px;
border-radius: 1px;
padding: 1px 6px;
display: inline-flex;
align-items: center;
@ -435,7 +475,7 @@
font-size: 9px;
font-weight: 800;
letter-spacing: 0.04em;
border-radius: 3px;
border-radius: 1px;
padding: 0 3px;
}
.stag.era-1 .stag-era {
@ -478,7 +518,7 @@
.ucard {
width: 100%;
min-width: 0;
padding: 10px 9px;
padding: 9px;
overflow-wrap: anywhere;
flex: 1;
}
@ -505,23 +545,32 @@
gap: 6px;
}
.ucard {
flex-direction: row;
flex-wrap: wrap;
align-items: baseline;
gap: 4px 10px;
grid-template-columns: 72px minmax(0, 1fr) auto;
gap: 6px 10px;
min-height: 0;
padding: 8px 10px;
box-shadow: none;
padding: 9px;
}
.art {
grid-column: 1;
grid-row: 2 / span 3;
height: 65px;
}
.uname {
flex: 1;
grid-column: 1 / -1;
}
.uvp {
margin-left: auto;
grid-column: 3;
grid-row: 2;
}
.uprice {
grid-column: 2;
grid-row: 2;
}
.ucard :global(.badges) {
grid-column: 2 / -1;
}
.uprice,
.ueffect {
flex-basis: 100%;
grid-column: 2 / -1;
}
.bidbox {
box-sizing: border-box;

View file

@ -393,6 +393,7 @@
opacity: 0.6;
}
.panel {
box-shadow: var(--panel-bevel);
position: relative;
background: var(--bg-panel);
border: 1px solid var(--line);
@ -453,7 +454,7 @@
letter-spacing: 0.05em;
color: var(--gold);
border: 1px solid var(--gold);
border-radius: 4px;
border-radius: 2px;
padding: 1px 6px;
}
.panel.dropped {
@ -461,6 +462,8 @@
filter: grayscale(0.8);
}
.head {
border-bottom: 1px solid var(--line);
padding-bottom: 6px;
display: flex;
justify-content: space-between;
align-items: center;
@ -553,7 +556,7 @@
box-sizing: border-box;
gap: 3px;
padding: 3px 4px;
border-radius: 6px;
border-radius: 2px;
background: color-mix(in srgb, var(--res) 16%, transparent);
border: 1px solid color-mix(in srgb, var(--res) 45%, transparent);
}
@ -563,7 +566,7 @@
justify-content: center;
width: 18px;
height: 18px;
border-radius: 5px;
border-radius: 2px;
border: 1.5px solid var(--res);
background: transparent;
color: var(--res);
@ -639,7 +642,7 @@
color: var(--text);
background: color-mix(in srgb, var(--gold) 14%, var(--bg-elevated));
border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
border-radius: 4px;
border-radius: 2px;
padding: 1px 6px;
}
/* Kicker badges use their era color (era I blue, II orange, III purple). */
@ -661,7 +664,7 @@
.hand.pending {
background: color-mix(in srgb, var(--gold) 8%, var(--bg-elevated));
border: 1px dashed color-mix(in srgb, var(--gold) 45%, transparent);
border-radius: 6px;
border-radius: 2px;
padding: 4px 6px;
align-items: center;
}
@ -681,7 +684,7 @@
min-width: 20px;
height: 20px;
padding: 0 4px;
border-radius: 5px;
border-radius: 2px;
background: var(--res);
border: 1px solid color-mix(in srgb, var(--res) 60%, #000);
color: var(--res-text);

View file

@ -41,6 +41,7 @@
<style>
.pcard {
position: relative;
display: inline-flex;
flex-direction: column;
align-items: center;
@ -49,40 +50,44 @@
width: var(--card-w);
height: var(--card-h);
padding: 2px;
border-radius: 6px;
border: 1px solid color-mix(in srgb, var(--res) 60%, #000);
background: linear-gradient(
160deg,
color-mix(in srgb, var(--res) 88%, #fff),
var(--res) 65%,
color-mix(in srgb, var(--res) 78%, #000)
);
color: var(--res-text);
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
border-radius: 1px;
border: 1px solid color-mix(in srgb, var(--res) 50%, #27323d);
border-top: 3px solid var(--res);
background: linear-gradient(135deg, color-mix(in srgb, var(--res) 18%, #202831), #141b24 80%);
color: var(--text);
box-shadow:
inset 0 0 0 2px #00000020,
1px 2px 0 #00000050;
user-select: none;
transition:
transform 0.12s ease,
box-shadow 0.12s ease;
}
.pcard:disabled {
opacity: 1;
cursor: default;
}
.icon {
display: inline-flex;
opacity: 0.85;
color: var(--res);
line-height: 0;
}
.value {
font-size: 16px;
color: var(--text);
font-family: var(--font-console);
font-size: 20px;
font-weight: 800;
line-height: 1;
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}
.label {
font-size: 7.5px;
font-family: "Arial Narrow", "Liberation Sans Narrow", sans-serif;
font-size: 6.5px;
color: color-mix(in srgb, var(--res) 55%, var(--text));
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.02em;
letter-spacing: 0.025em;
text-align: center;
line-height: 1.1;
opacity: 0.9;
max-width: 100%;
hyphens: manual;
}
@ -116,6 +121,10 @@
0 0 0 1px color-mix(in srgb, var(--gold) 55%, transparent),
0 2px 6px rgba(0, 0, 0, 0.4);
}
.pcard.mega .label {
font-size: 6px;
letter-spacing: 0;
}
.pcard.mega .value {
font-size: 18px;
}

View file

@ -74,7 +74,7 @@
color: var(--text);
background: color-mix(in srgb, var(--res, var(--text-dim)) 14%, transparent);
border: 1px solid color-mix(in srgb, var(--res, var(--text-dim)) 45%, transparent);
border-radius: 5px;
border-radius: 2px;
padding: 1.5px 6px;
line-height: 1.4;
}

View file

@ -32,7 +32,9 @@
--orbitalMedicine: #55ccc6;
--ringOre: #f08c48;
--moonOre: #e8c550;
--radius: 10px;
--radius: 2px;
--font-console: "Lucida Console", "Courier New", monospace;
--panel-bevel: inset 0 1px 0 #ffffff08, 0 2px 0 #00000030;
--card-w: 44px;
--card-h: 60px;
}
@ -85,13 +87,20 @@ button {
border: 1px solid var(--line);
background: var(--bg-elevated);
color: var(--text);
border-radius: 8px;
border-radius: 2px;
padding: 6px 12px;
transition:
background 0.15s ease,
border-color 0.15s ease;
}
button:focus-visible,
summary:focus-visible,
a:focus-visible {
outline: 2px solid var(--gold);
outline-offset: 3px;
}
button:hover:not(:disabled) {
border-color: var(--gold);
}
@ -106,7 +115,7 @@ input[type="number"] {
color: var(--text);
background: var(--bg-elevated);
border: 1px solid var(--line);
border-radius: 8px;
border-radius: 2px;
padding: 5px 8px;
width: 90px;
}
@ -166,3 +175,12 @@ input[type="number"]:focus {
0 4px 14px var(--gold-soft);
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation: none !important;
transition: none !important;
}
}