400 lines
31 KiB
CSS
400 lines
31 KiB
CSS
/* Foundry floor: soot-dark iron plates, molten-metal accent, copper-patina for interactive states.
|
|
Layout: full-bleed simulation canvas, HUD plates pinned to the four corners, modal plates centered. */
|
|
:root {
|
|
--soot-0: #0f0d0c;
|
|
--soot-1: #191614;
|
|
--soot-2: #231f1c;
|
|
--soot-3: #3b342f;
|
|
--soot-4: #554b44;
|
|
--ash: #a2978b;
|
|
--ash-dim: #766c62;
|
|
--bone: #efe6d8;
|
|
--melt: #ff9a3c;
|
|
--melt-hot: #ffd27a;
|
|
--melt-deep: #c9561d;
|
|
--patina: #5cbaa6;
|
|
--patina-dim: #2f6d61;
|
|
--danger: #ef6a55;
|
|
--ok: #92d27c;
|
|
--plate: rgba(24, 21, 19, 0.88);
|
|
--font-ui: system-ui, -apple-system, "Segoe UI", "Noto Sans", "DejaVu Sans", sans-serif;
|
|
--font-mono: ui-monospace, "JetBrains Mono", "Cascadia Mono", "DejaVu Sans Mono", Menlo, Consolas, monospace;
|
|
--ui: 1;
|
|
color-scheme: dark;
|
|
}
|
|
[hidden] { display: none !important; }
|
|
html, body { height: 100%; }
|
|
body {
|
|
margin: 0; overflow: hidden; background: var(--soot-0); color: var(--bone);
|
|
font-family: var(--font-ui); font-size: calc(13.5px * var(--ui)); line-height: 1.4;
|
|
-webkit-user-select: none; user-select: none; touch-action: none;
|
|
}
|
|
canvas#game { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; image-rendering: pixelated; cursor: crosshair; }
|
|
canvas#game.nocursor { cursor: none; }
|
|
/* overlay modes (thermal lens, info overlay): a coloured frame with corner brackets, a light wash
|
|
for the info overlay so the world stays clear, and a named badge at the bottom of the screen */
|
|
#ovframe { position: fixed; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.2s; --ov: 92, 186, 166; }
|
|
#ovframe.on { opacity: 1; }
|
|
#ovframe.info { background: rgba(60, 150, 175, 0.05); box-shadow: inset 0 0 0 2px rgba(var(--ov), 0.5), inset 0 0 110px rgba(var(--ov), 0.16); }
|
|
#ovframe.lens { --ov: 255, 140, 64; box-shadow: inset 0 0 0 2px rgba(var(--ov), 0.6), inset 0 0 110px rgba(var(--ov), 0.24); }
|
|
#ovframe.lens.info { background: rgba(60, 150, 175, 0.05); box-shadow: inset 0 0 0 2px rgba(255, 140, 64, 0.6), inset 0 0 0 5px rgba(92, 186, 166, 0.45), inset 0 0 110px rgba(255, 140, 64, 0.2); }
|
|
#ovframe i { position: absolute; width: 30px; height: 30px; border: 3px solid rgba(var(--ov), 0.9); }
|
|
#ovframe .c1 { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
|
|
#ovframe .c2 { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
|
|
#ovframe .c3 { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
|
|
#ovframe .c4 { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
|
|
#hud .bc { bottom: max(14px, env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); align-items: center; }
|
|
/* the build menu: category tabs, a row of piece tiles, and what the pointed-at piece does */
|
|
#buildbar { padding: 6px 8px 8px; display: flex; flex-direction: column; gap: 6px; width: min(calc(560px * var(--ui)), calc(100vw - 32px)); }
|
|
#buildbar .bb-head { display: flex; align-items: center; gap: 2px; }
|
|
#buildbar .bb-tab { font-family: var(--font-mono); font-size: 0.72em; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); padding: 4px 9px; border: 1px solid transparent; border-radius: 3px; background: none; cursor: pointer; }
|
|
#buildbar .bb-tab:hover { color: var(--bone); }
|
|
#buildbar .bb-tab.on { color: var(--melt-hot); border-color: var(--soot-3); background: var(--soot-2); }
|
|
#buildbar .bb-keys { margin-left: auto; font-size: 0.72em; color: var(--ash-dim); white-space: nowrap; }
|
|
#buildbar .bb-tiles { display: flex; gap: 6px; }
|
|
.bb-tile { position: relative; flex: 1 1 0; min-width: 0; max-width: calc(110px * var(--ui)); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 4px 4px; border-radius: 4px; background: var(--soot-2); border: 1px solid var(--soot-3); cursor: pointer; color: inherit; }
|
|
.bb-tile svg { width: calc(26px * var(--ui)); height: calc(26px * var(--ui)); color: var(--ash); }
|
|
.bb-tile .n { font-size: 0.8em; line-height: 1.15; text-align: center; color: var(--bone); }
|
|
.bb-tile .c { font-family: var(--font-mono); font-size: 0.7em; color: var(--ash); white-space: nowrap; }
|
|
.bb-tile .c.bad { color: var(--danger); }
|
|
.bb-tile .sw { position: absolute; top: 5px; right: 5px; width: 9px; height: 9px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.5); }
|
|
.bb-tile:hover { border-color: var(--soot-4); background: #2a2521; }
|
|
.bb-tile.on { border-color: var(--melt); background: linear-gradient(180deg, #3a2a1d, #2a201a); box-shadow: 0 0 0 1px rgba(255, 154, 60, 0.35), 0 0 14px rgba(255, 154, 60, 0.22); }
|
|
.bb-tile.on svg { color: var(--melt-hot); }
|
|
#buildbar { position: relative; }
|
|
.bb-menu { display: flex; flex-direction: column; gap: 6px; }
|
|
#bb-pop { position: absolute; bottom: calc(100% + 8px); width: min(calc(300px * var(--ui)), calc(100vw - 32px)); box-sizing: border-box; padding: calc(10px * var(--ui)); display: flex; flex-direction: column; gap: 8px; background: var(--plate); border: 1px solid var(--soot-3); border-radius: 5px; box-shadow: 0 4px 18px #0008; color: var(--bone); pointer-events: none; }
|
|
.bb-title { display: flex; align-items: center; gap: 8px; }
|
|
.bb-title svg { width: calc(26px * var(--ui)); height: calc(26px * var(--ui)); color: var(--melt-hot); flex-shrink: 0; }
|
|
.bb-chips { display: flex; flex-wrap: wrap; gap: 4px; }
|
|
.bb-desc { font-size: 0.88em; }
|
|
.bb-place { color: var(--ash); font-size: 0.82em; }
|
|
.bb-place b { display: block; color: var(--bone); margin-bottom: 3px; }
|
|
#ovbadges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
|
|
.ovbadge { --ov: 92, 186, 166; display: inline-flex; align-items: center; gap: 8px; padding: 5px 8px 5px 11px; border-radius: 999px; background: rgba(12, 13, 16, 0.86); border: 1px solid rgba(var(--ov), 0.75); color: rgb(var(--ov)); font-weight: 650; font-size: 0.8em; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
|
|
.ovbadge.lens { --ov: 255, 160, 90; }
|
|
.ovbadge .dot { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--ov)); box-shadow: 0 0 8px rgb(var(--ov)); animation: ovpulse 1.6s ease-in-out infinite; }
|
|
.ovbadge .scale { width: 54px; height: 7px; border-radius: 4px; }
|
|
.ovbadge kbd { text-transform: none; letter-spacing: 0; }
|
|
@keyframes ovpulse { 50% { opacity: 0.35; } }
|
|
@media (prefers-reduced-motion: reduce) { .ovbadge .dot { animation: none; } }
|
|
button, select, input { font: inherit; color: inherit; }
|
|
:focus-visible { outline: 2px solid var(--patina); outline-offset: 2px; }
|
|
|
|
/* ---------- plates ---------- */
|
|
.plate {
|
|
background: var(--plate); border: 1px solid var(--soot-3); border-radius: 4px;
|
|
box-shadow: inset 0 1px 0 rgba(255, 240, 220, 0.04), 0 6px 18px rgba(0, 0, 0, 0.35);
|
|
-webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
|
|
}
|
|
.label { font-family: var(--font-mono); font-size: 0.74em; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ash); }
|
|
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
|
|
kbd {
|
|
font-family: var(--font-mono); font-size: 0.78em; padding: 0.05em 0.4em; border-radius: 3px;
|
|
border: 1px solid var(--soot-4); border-bottom-width: 2px; background: var(--soot-2); color: var(--bone);
|
|
}
|
|
|
|
/* ---------- HUD ---------- */
|
|
#hud { position: fixed; inset: 0; pointer-events: none; padding: max(12px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
|
|
#hud .corner { position: absolute; display: flex; flex-direction: column; gap: 8px; }
|
|
#hud .tl { top: max(12px, env(safe-area-inset-top, 0px)); left: max(16px, env(safe-area-inset-left, 0px)); }
|
|
#hud .tr { top: max(12px, env(safe-area-inset-top, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); align-items: flex-end; }
|
|
#hud .bl { bottom: max(12px, env(safe-area-inset-bottom, 0px)); left: max(16px, env(safe-area-inset-left, 0px)); }
|
|
#hud .br { bottom: max(12px, env(safe-area-inset-bottom, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); align-items: flex-end; }
|
|
#hud .interactive { pointer-events: auto; }
|
|
|
|
#hotbar { display: flex; gap: 4px; padding: 5px; }
|
|
.slot {
|
|
position: relative; width: calc(46px * var(--ui)); height: calc(46px * var(--ui)); border-radius: 3px;
|
|
background: var(--soot-2); border: 1px solid var(--soot-3); display: grid; place-items: center; cursor: pointer; padding: 0;
|
|
}
|
|
.slot svg { width: 60%; height: 60%; color: var(--ash); }
|
|
.slot .k { position: absolute; top: 2px; left: 4px; font-family: var(--font-mono); font-size: 0.7em; color: var(--ash-dim); }
|
|
.slot.on { border-color: var(--melt); background: linear-gradient(180deg, #3a2a1d, #2a201a); box-shadow: 0 0 0 1px rgba(255, 154, 60, 0.35), 0 0 14px rgba(255, 154, 60, 0.22); }
|
|
.slot.on svg { color: var(--melt-hot); }
|
|
.slot.locked { opacity: 0.4; }
|
|
|
|
#selcard { padding: 8px 10px; min-width: calc(250px * var(--ui)); max-width: calc(300px * var(--ui)); display: flex; flex-direction: column; gap: 5px; }
|
|
#selcard .row { display: flex; align-items: center; gap: 8px; }
|
|
#selcard .name { font-weight: 600; font-size: 1.05em; }
|
|
#selcard .sub { color: var(--ash); font-size: 0.88em; }
|
|
.sw { width: 14px; height: 14px; border-radius: 2px; border: 1px solid rgba(0, 0, 0, 0.5); flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
|
|
.cycle { display: flex; align-items: center; gap: 6px; }
|
|
.cycle .grow { flex: 1; min-width: 0; }
|
|
.chip { font-family: var(--font-mono); font-size: 0.78em; padding: 1px 6px; border-radius: 3px; background: var(--soot-2); border: 1px solid var(--soot-3); color: var(--ash); white-space: nowrap; }
|
|
.chip.ok { color: var(--ok); border-color: #3c5a33; }
|
|
.chip.bad { color: var(--danger); border-color: #6a2e25; }
|
|
.chip.hot { color: var(--melt-hot); border-color: #6b4220; }
|
|
|
|
#bagpanel { width: calc(232px * var(--ui)); padding: 8px 10px; }
|
|
#wallet { width: calc(232px * var(--ui)); padding: 7px 10px 8px; display: flex; flex-direction: column; align-items: stretch; gap: 1px; text-align: left; cursor: pointer; color: inherit; font: inherit; }
|
|
#wallet:hover { border-color: var(--soot-4); }
|
|
#wallet .money { font-size: 1.35em; font-weight: 650; color: var(--melt-hot); letter-spacing: 0.01em; }
|
|
#wallet .line { font-size: 0.86em; color: var(--ash); display: flex; justify-content: space-between; gap: 8px; }
|
|
#wallet .line b { font-weight: 600; color: var(--bone); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
|
|
#wallet .line.paid b { color: var(--ok); }
|
|
#wallet .orders { display: flex; flex-direction: column; gap: 4px; margin-top: 5px; }
|
|
#wallet .ord { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 2px 6px; align-items: center; font-size: 0.84em; }
|
|
#wallet .ord .sw { width: 10px; height: 10px; }
|
|
#wallet .ord .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bone); }
|
|
#wallet .ord .tm { font-family: var(--font-mono); color: var(--ash); }
|
|
#wallet .ord .tm.late { color: var(--danger); }
|
|
#wallet .ord .pb { grid-column: 2 / 4; height: 3px; background: var(--soot-3); border-radius: 2px; overflow: hidden; }
|
|
#wallet .ord .pb i { display: block; height: 100%; background: var(--patina); }
|
|
#wallet .none { font-size: 0.84em; color: var(--ash-dim); }
|
|
.orderlist { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
|
|
.orderlist .o { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 8px 10px; background: var(--soot-1); border: 1px solid var(--soot-3); border-radius: 4px; }
|
|
.orderlist .o .t { font-weight: 600; }
|
|
.orderlist .o .pay { font-family: var(--font-mono); color: var(--melt-hot); font-weight: 650; }
|
|
.orderlist .o .d { color: var(--ash); font-size: 0.88em; }
|
|
.orderlist .o .pb { grid-column: 1 / 3; height: 4px; background: var(--soot-3); border-radius: 2px; overflow: hidden; }
|
|
.orderlist .o .pb i { display: block; height: 100%; background: var(--patina); }
|
|
.mkt-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
|
|
.mkt-sum > div { background: var(--soot-1); border: 1px solid var(--soot-3); border-radius: 4px; padding: 8px 10px; }
|
|
.mkt-sum .k { color: var(--ash); font-size: 0.82em; }
|
|
.mkt-sum .v { font-family: var(--font-mono); font-size: 1.15em; font-weight: 650; }
|
|
.mkt-pay { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
|
|
table.mt td.dip { color: var(--melt); }
|
|
.shiplog { display: flex; flex-direction: column; gap: 4px; }
|
|
.shiplog div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 8px; background: var(--soot-1); border: 1px solid var(--soot-3); border-radius: 3px; font-size: 0.9em; }
|
|
.shiplog .what { color: var(--ash); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
#bagpanel .head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
|
|
.bar { height: 5px; background: var(--soot-2); border-radius: 3px; overflow: hidden; margin: 5px 0 6px; border: 1px solid var(--soot-3); }
|
|
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--patina-dim), var(--patina)); }
|
|
.bar.full > i { background: linear-gradient(90deg, var(--melt-deep), var(--danger)); }
|
|
#baglist { display: grid; grid-template-columns: 1fr; gap: 1px; max-height: 42vh; overflow-y: auto; }
|
|
#baglist button {
|
|
display: flex; align-items: center; gap: 7px; padding: 2px 4px; border-radius: 3px; background: transparent; border: 1px solid transparent; cursor: pointer; text-align: left;
|
|
}
|
|
#baglist button:hover { background: var(--soot-2); }
|
|
#baglist button.on { border-color: var(--patina-dim); background: rgba(92, 186, 166, 0.08); }
|
|
#baglist .n { margin-left: auto; color: var(--ash); }
|
|
#baglist .empty { color: var(--ash-dim); font-size: 0.88em; padding: 2px 4px; }
|
|
#baglist .bagrow { display: flex; align-items: center; gap: 2px; border-radius: 3px; border: 1px solid transparent; }
|
|
#baglist .bagrow.on { border-color: var(--patina-dim); background: rgba(92, 186, 166, 0.08); }
|
|
#baglist .bagrow .pick { flex: 1; min-width: 0; }
|
|
#baglist .bagrow .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
#baglist .tag { flex: none; padding: 0 3px; color: var(--patina); font-size: 11px; }
|
|
#selcard .vacrow { flex-wrap: wrap; gap: 4px; }
|
|
#selcard .vacrow .sw { width: 9px; height: 9px; }
|
|
#bagfoot:empty { display: none; }
|
|
#bagfoot { border-top: 1px solid var(--soot-3); margin-top: 4px; }
|
|
#bagfoot .baghint { color: var(--ash-dim); font-size: 0.82em; padding: 4px 4px 0; }
|
|
.bagsep { margin: 6px 4px 2px; padding-top: 5px; border-top: 1px solid var(--ash-dim); color: var(--ash-dim); font-size: 0.75em; text-transform: uppercase; letter-spacing: 0.08em; }
|
|
#baglist .bagrow.none { opacity: 0.55; }
|
|
#baglist .bagrow.none:hover { opacity: 1; }
|
|
#bagfoot .bagclear { display: block; width: 100%; margin-top: 6px; padding: 4px 8px; background: rgba(92, 186, 166, 0.12); color: var(--bone); border: 1px solid var(--patina-dim); border-radius: 3px; font-weight: 600; cursor: pointer; }
|
|
#bagfoot .bagclear:hover { background: rgba(92, 186, 166, 0.24); border-color: var(--patina); }
|
|
#bagtoggle { background: none; border: none; color: var(--ash); cursor: pointer; padding: 0 2px; }
|
|
|
|
#info { padding: 7px 10px; min-width: calc(220px * var(--ui)); max-width: min(360px, 60vw); display: flex; flex-direction: column; gap: 2px; font-size: 0.92em; }
|
|
#info .t1 { font-weight: 600; }
|
|
#info .t2 { color: var(--ash); }
|
|
#info .t3 { color: var(--melt-hot); opacity: 0.85; font-size: 0.94em; }
|
|
|
|
#cards { display: flex; flex-direction: column; gap: 6px; align-items: center; }
|
|
.card-pop { width: calc(290px * var(--ui)); padding: 8px 11px 10px; display: flex; flex-direction: column; gap: 3px; position: relative; overflow: hidden; animation: toastIn 0.25s ease-out; }
|
|
.card-pop .top { display: flex; align-items: center; gap: 6px; }
|
|
.card-pop .x { margin-left: auto; background: none; border: none; color: var(--ash); cursor: pointer; font-size: 1.15em; line-height: 1; padding: 0 2px; }
|
|
.card-pop .x:hover { color: var(--bone); }
|
|
.card-pop .title { font-weight: 650; color: var(--melt-hot); text-wrap: balance; }
|
|
.card-pop .p1 { color: var(--bone); font-size: 0.92em; }
|
|
.card-pop .p2 { color: var(--ash); font-size: 0.88em; }
|
|
.card-pop.milestone { border-color: var(--melt-deep); }
|
|
.card-pop .life { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--patina-dim); transform-origin: left; animation: cardLife var(--dur) linear forwards; }
|
|
.card-pop:hover .life, body.paused .card-pop .life { animation-play-state: paused; }
|
|
.card-pop.out { opacity: 0; transform: translateX(10px); transition: opacity 0.35s, transform 0.35s; }
|
|
@keyframes cardLife { from { transform: scaleX(1); } to { transform: scaleX(0); } }
|
|
.linkbtn { background: none; border: none; color: var(--patina); cursor: pointer; padding: 0; font-size: 0.88em; }
|
|
.linkbtn:hover { text-decoration: underline; }
|
|
|
|
#toasts { position: fixed; left: 50%; top: max(14px, env(safe-area-inset-top, 0px)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; pointer-events: none; width: min(560px, calc(100vw - 32px)); }
|
|
.toast { padding: 7px 12px; font-size: 0.94em; animation: toastIn 0.25s ease-out; text-align: center; }
|
|
.toast.big { border-color: var(--melt-deep); padding: 10px 16px; }
|
|
.toast.big b { color: var(--melt-hot); display: block; font-size: 1.1em; }
|
|
.toast.err { border-color: var(--danger); border-left-width: 3px; }
|
|
.toast.info { border-color: var(--patina); border-left-width: 3px; }
|
|
.toast.out { opacity: 0; transition: opacity 0.4s; }
|
|
@keyframes toastIn { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
|
|
|
|
#perf { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(max(12px, env(safe-area-inset-bottom, 0px)) + 4px); font-family: var(--font-mono); font-size: 11px; color: var(--ash); pointer-events: none; text-align: right; white-space: pre; }
|
|
#hud .br { bottom: max(12px, env(safe-area-inset-bottom, 0px)); }
|
|
#perf:not(:empty) ~ .br { }
|
|
|
|
/* ---------- modals ---------- */
|
|
.modal { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(8, 7, 6, 0.55); padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); padding-block: 16px; z-index: 20; }
|
|
.modal > .plate { width: min(760px, 100%); max-height: min(86vh, 900px); display: flex; flex-direction: column; overflow: hidden; }
|
|
.modal.small > .plate { width: min(420px, 100%); }
|
|
.mhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 10px; border-bottom: 1px solid var(--soot-3); }
|
|
.mhead h2 { margin: 0; font-size: 1.15em; letter-spacing: 0.02em; text-wrap: balance; }
|
|
.mbody { padding: 12px 16px 16px; overflow-y: auto; min-height: 0; }
|
|
.mfoot { padding: 10px 16px; border-top: 1px solid var(--soot-3); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
|
|
.tabs { display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--soot-3); overflow-x: auto; flex: none; }
|
|
.tabs button { background: none; border: none; border-bottom: 2px solid transparent; color: var(--ash); padding: 8px 10px; cursor: pointer; white-space: nowrap; }
|
|
.tabs button.on { color: var(--bone); border-bottom-color: var(--melt); }
|
|
.btn {
|
|
background: var(--soot-2); border: 1px solid var(--soot-4); border-radius: 4px; padding: 7px 14px; cursor: pointer; color: var(--bone);
|
|
}
|
|
.btn:hover { background: #2d2724; }
|
|
.btn.primary { background: linear-gradient(180deg, #e2832f, #b85520); border-color: #e59a52; color: #1a0f08; font-weight: 650; }
|
|
.btn.primary:hover { filter: brightness(1.08); }
|
|
.btn.ghost { background: transparent; }
|
|
.btn.danger { border-color: #7a3227; color: #ffb4a6; }
|
|
.btn:disabled { opacity: 0.45; cursor: default; }
|
|
.iconbtn { background: none; border: 1px solid transparent; color: var(--ash); cursor: pointer; border-radius: 4px; padding: 4px 8px; }
|
|
.iconbtn:hover { border-color: var(--soot-3); color: var(--bone); }
|
|
|
|
/* settings rows */
|
|
.set { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 220px); gap: 6px 16px; align-items: center; padding: 7px 0; border-bottom: 1px solid rgba(59, 52, 47, 0.5); }
|
|
.set:last-child { border-bottom: none; }
|
|
.set .d { color: var(--ash); font-size: 0.86em; }
|
|
.set .ctl { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
|
|
.set input[type=range] { width: 100%; accent-color: var(--melt); }
|
|
.set select { background: var(--soot-2); border: 1px solid var(--soot-4); border-radius: 4px; padding: 4px 6px; width: 100%; }
|
|
.set .v { font-family: var(--font-mono); font-size: 0.85em; color: var(--ash); min-width: 3.5em; text-align: right; }
|
|
.toggle { position: relative; width: 38px; height: 21px; border-radius: 11px; background: var(--soot-3); border: 1px solid var(--soot-4); cursor: pointer; padding: 0; flex: none; }
|
|
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: var(--ash); transition: transform 0.15s; }
|
|
.toggle.on { background: var(--patina-dim); border-color: var(--patina); }
|
|
.toggle.on::after { transform: translateX(17px); background: var(--bone); }
|
|
.note { color: var(--ash); font-size: 0.88em; margin: 4px 0 10px; max-width: 65ch; }
|
|
.grouphead { margin: 14px 0 2px; }
|
|
.grouphead:first-child { margin-top: 0; }
|
|
|
|
/* notebook */
|
|
.ledger { display: flex; flex-direction: column; gap: 6px; }
|
|
.ms { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 2px 10px; padding: 8px 10px; border: 1px solid var(--soot-3); border-radius: 4px; background: var(--soot-1); }
|
|
.ms .mark { grid-row: span 2; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--soot-4); margin-top: 1px; }
|
|
.ms.done .mark { border-color: var(--ok); background: radial-gradient(circle, var(--ok) 0 4px, transparent 5px); }
|
|
.ms.next { border-color: var(--melt-deep); background: #221812; }
|
|
.ms.next .mark { border-color: var(--melt); }
|
|
.ms .h { font-weight: 600; }
|
|
.ms .p { color: var(--ash); font-size: 0.9em; }
|
|
.ms .rw { color: var(--patina); font-size: 0.88em; grid-column: 2; }
|
|
.ms.open .p .linkbtn { font-size: 1em; }
|
|
table.mt { width: 100%; border-collapse: collapse; font-size: 0.92em; }
|
|
table.mt th { text-align: left; font-family: var(--font-mono); font-size: 0.74em; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ash); font-weight: 500; padding: 4px 6px; border-bottom: 1px solid var(--soot-3); }
|
|
table.mt td { padding: 5px 6px; border-bottom: 1px solid rgba(59, 52, 47, 0.45); vertical-align: top; }
|
|
table.mt td.num { text-align: right; white-space: nowrap; }
|
|
.tablewrap { overflow-x: auto; }
|
|
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 8px; }
|
|
.card { border: 1px solid var(--soot-3); border-radius: 4px; padding: 8px 10px; background: var(--soot-1); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
|
|
.card .h { font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
|
|
.card .p { color: var(--ash); font-size: 0.88em; }
|
|
.keys { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 18px; }
|
|
.keys div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px solid rgba(59, 52, 47, 0.45); font-size: 0.92em; }
|
|
.keys div span:last-child { color: var(--ash); text-align: right; }
|
|
textarea.code { width: 100%; min-height: 90px; resize: vertical; background: var(--soot-0); color: var(--bone); border: 1px solid var(--soot-4); border-radius: 4px; padding: 8px; font-family: var(--font-mono); font-size: 0.82em; box-sizing: border-box; user-select: text; -webkit-user-select: text; }
|
|
input.text { background: var(--soot-0); border: 1px solid var(--soot-4); border-radius: 4px; padding: 6px 8px; width: 100%; box-sizing: border-box; user-select: text; -webkit-user-select: text; }
|
|
|
|
/* ---------- title ---------- */
|
|
#title { position: fixed; inset: 0; z-index: 10; display: grid; grid-template-rows: 1fr auto; overflow-y: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); padding-block: 0 16px; background: radial-gradient(ellipse at 50% 120%, #3a1d0c 0%, #140e0b 45%, #0b0908 100%); }
|
|
#titleart { width: min(820px, 100%); aspect-ratio: 4 / 1; display: block; margin: 0 auto; image-rendering: pixelated; max-width: 100%; }
|
|
.titlewrap { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 18px; padding-block: 24px; }
|
|
.tagline { color: var(--ash); max-width: 52ch; text-align: center; margin: -6px 0 4px; text-wrap: balance; }
|
|
.tmenu { display: flex; flex-direction: column; gap: 8px; width: min(360px, 100%); }
|
|
.tmenu .btn { padding: 10px 14px; text-align: left; display: flex; justify-content: space-between; align-items: center; }
|
|
.tmenu .btn small { color: var(--ash); font-size: 0.82em; }
|
|
.tmenu .btn.primary small { color: #3a1d0a; }
|
|
.newworld { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 10px; }
|
|
.newworld label { display: flex; flex-direction: column; gap: 4px; font-size: 0.86em; color: var(--ash); }
|
|
.newworld select, .newworld input { background: var(--soot-0); border: 1px solid var(--soot-4); border-radius: 4px; padding: 6px 8px; color: var(--bone); }
|
|
.newworld label:first-child { grid-column: 1 / -1; }
|
|
.newworld .full { grid-column: 1 / -1; }
|
|
.tfoot { text-align: center; color: var(--ash-dim); font-size: 0.82em; font-family: var(--font-mono); }
|
|
#loading { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(11, 9, 8, 0.86); }
|
|
#loading .plate { padding: 16px 20px; min-width: 260px; display: flex; flex-direction: column; gap: 8px; }
|
|
.touchnote { color: var(--melt-hot); font-size: 0.88em; text-align: center; max-width: 46ch; }
|
|
|
|
@media (max-width: 720px) {
|
|
.card-pop { width: min(290px, calc(100vw - 32px)); }
|
|
#bagpanel, #wallet { width: calc(190px * var(--ui)); }
|
|
#info { display: none; }
|
|
.set { grid-template-columns: minmax(0, 1fr); }
|
|
.set .ctl { justify-content: flex-start; }
|
|
.keys { grid-template-columns: minmax(0, 1fr); }
|
|
}
|
|
@media (max-width: 480px) {
|
|
#selcard { min-width: 0; max-width: calc(100vw - 32px - 200px); }
|
|
.slot { width: 38px; height: 38px; }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.toast { animation: none; }
|
|
}
|
|
/* wall material picker */
|
|
.wpick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: min(60vh, 490px); overflow-y: auto; padding: 2px; }
|
|
.wpick .wp { display: flex; align-items: flex-start; gap: 8px; text-align: left; padding: 8px; border-radius: 6px; border: 1px solid var(--soot-4); background: var(--soot-2); color: var(--bone); font: inherit; font-size: 12px; cursor: pointer; min-width: 0; }
|
|
.wpick .wp > span:last-child { min-width: 0; overflow-wrap: anywhere; }
|
|
.wpick .wp span span { display: block; color: var(--ash); margin-top: 3px; }
|
|
.wpick .wp.short { opacity: 0.55; }
|
|
.wpick .wp:hover { background: #2d2724; }
|
|
.wpick .wp.on { border-color: #e59a52; background: #33261c; }
|
|
.wpick .wp:focus-visible, [data-wall-picker]:focus-visible { outline: 2px solid #e59a52; outline-offset: 1px; }
|
|
[data-wall-picker] { cursor: pointer; }
|
|
/* filter picker */
|
|
.fpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; max-height: min(52vh, 420px); overflow-y: auto; padding: 2px; }
|
|
.fpick .fp { display: flex; align-items: center; gap: 8px; text-align: left; padding: 7px 9px; border-radius: 6px; border: 1px solid var(--soot-4); background: var(--soot-2); color: var(--bone); font: inherit; font-size: 13px; cursor: pointer; }
|
|
.fpick .fp:hover { background: #2d2724; }
|
|
.fpick .fp.on { border-color: #e59a52; background: #33261c; }
|
|
.fpick .fp:focus-visible { outline: 2px solid #e59a52; outline-offset: 1px; }
|
|
/* filter picker: mode toggle and checkboxes */
|
|
.fmode { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
|
|
.fmode .fm { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--soot-4); background: var(--soot-2); color: var(--bone); font: inherit; cursor: pointer; }
|
|
.fmode .fm b { font-weight: 650; font-size: 13px; }
|
|
.fmode .fm span { font-size: 12px; color: var(--ash); }
|
|
.fmode .fm:hover { background: #2d2724; }
|
|
.fmode .fm.on { border-color: #e59a52; background: #33261c; }
|
|
.fmode .fm:focus-visible { outline: 2px solid #e59a52; outline-offset: 1px; }
|
|
.fpick .fp .ck { width: 13px; height: 13px; border-radius: 3px; border: 1px solid var(--soot-4); background: var(--soot-1, #171412); flex: none; position: relative; }
|
|
.fpick .fp.on .ck { background: #e59a52; border-color: #e59a52; }
|
|
.fpick .fp.on .ck::after { content: ''; position: absolute; left: 3.5px; top: 0.5px; width: 3px; height: 7px; border: solid #1a0f08; border-width: 0 2px 2px 0; transform: rotate(45deg); }
|
|
.fp-sum { margin: 10px 0 0; min-height: 1.4em; }
|
|
@media (max-width: 520px) { .fmode { grid-template-columns: 1fr; } }
|
|
.fdir { display: flex; align-items: center; gap: 6px; margin: -2px 0 10px; }
|
|
.fdir .label { margin-right: 4px; }
|
|
.fdir .fd { padding: 5px 12px; border-radius: 5px; border: 1px solid var(--soot-4); background: var(--soot-2); color: var(--bone); font: inherit; font-size: 13px; cursor: pointer; }
|
|
.fdir .fd:hover { background: #2d2724; }
|
|
.fdir .fd.on { border-color: #e59a52; background: #33261c; }
|
|
.fdir .fd:focus-visible { outline: 2px solid #e59a52; outline-offset: 1px; }
|
|
|
|
|
|
|
|
/* saved worlds */
|
|
.world-row { padding: 12px 0; border-bottom: 1px solid var(--soot-3); }
|
|
.world-row:last-child { border-bottom: none; }
|
|
.world-info { overflow-wrap: anywhere; }
|
|
.world-info .note { margin: 4px 0; }
|
|
.world-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
|
|
.world-actions input { flex: 1; min-width: 120px; max-width: 100%; }
|
|
#m-dialog { z-index: 21; }
|
|
#continue-meta { max-width: 72%; overflow-wrap: anywhere; text-align: right; }
|
|
|
|
.vacchoice { display: flex; align-items: center; gap: 4px; text-align: left; min-width: 0; background: transparent; border: 0; padding: 0; cursor: pointer; }
|
|
|
|
#saving { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 54px; z-index: 10; padding: 5px 9px; border-radius: 12px; background: rgba(11, 9, 8, 0.86); color: var(--ash); font-size: 12px; pointer-events: none; }
|
|
#saving i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: currentColor; animation: saving-pulse 1.5s ease-in-out infinite alternate; }
|
|
@keyframes saving-pulse { to { opacity: 0.3; } }
|
|
@media (prefers-reduced-motion: reduce) { #saving i { animation: none; } }
|
|
#loadstep { color: var(--ash); font-size: 13px; }
|
|
|
|
|
|
/* Maps share the same grain colours and exploration. */
|
|
#minimap { padding: 5px; }
|
|
#mini-canvas { display: block; width: calc(200px * var(--ui)); height: calc(130px * var(--ui)); image-rendering: pixelated; }
|
|
.map-buttons { display: flex; justify-content: flex-end; gap: 4px; margin-top: 4px; }
|
|
.map-buttons button { padding: 2px 8px; }
|
|
#hud:has(#minimap:not([hidden])) ~ #perf { bottom: calc(190px * var(--ui) + 16px); }
|
|
#hud:has(#minimap:not([hidden])) ~ #saving { bottom: calc(190px * var(--ui) + 58px); }
|
|
#m-map > .plate { width: min(1200px, 96vw); height: 88vh; max-height: none; }
|
|
#map-canvas { display: block; width: 100%; flex: 1; min-height: 0; cursor: grab; touch-action: none; }
|
|
#m-map .mfoot { align-items: center; gap: 8px; flex-wrap: wrap; }
|
|
@media (max-width: 900px) {
|
|
#mini-canvas { width: calc(150px * var(--ui)); height: calc(98px * var(--ui)); }
|
|
}
|
|
@media (max-width: 720px) { #mini-plus, #mini-minus { display: none; } }
|
|
|
|
@media (max-width: 1100px) {
|
|
#hud.building .br { bottom: calc(160px * var(--ui)); }
|
|
#hud.building:has(#minimap:not([hidden])) ~ #perf { bottom: calc(350px * var(--ui)); }
|
|
#hud.building:has(#minimap:not([hidden])) ~ #saving { bottom: calc(390px * var(--ui)); }
|
|
}
|