SOURCE / PINNED RELEASE
Made of little things.
blockfall
- Release
- a6bb863994d9…
- Author-recorded commit
- e6ab5899ddac…
- License
- LICENSE
- Author’s source reference
- nostr://npub1dmmh0futyszl4445mv4xrygkgsgj8vpu79yx3qyy9qxmz4pemtzqlqmc87/wss%3A%2F%2Fgit.napplet.soy%2F/n-afafae55ef1
Archive hash verified: ba8de5cbee33e11e…. The source-to-build association is the author’s claim; it has not been independently rebuilt.
/*
BLOCKFALL — cold-war demolition range.
App-owned palette: radar phosphor, launch-pad amber, hazard red on near-black.
The only host surface is the napplet frame; theme data is intentionally ignored.
*/
:root {
--void: #03080a;
--panel: #071310;
--panel-2: #0a1a15;
--line: rgba(125, 243, 184, 0.22);
--line-strong: rgba(142, 255, 205, 0.5);
--ink: #cdf6e2;
--muted: #6f9c88;
--phosphor: #7df3b8;
--amber: #ffb457;
--amber-hot: #ffe0a3;
--hazard: #ff5f4a;
--ui: "SFMono-Regular", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
--radius: 3px;
color-scheme: dark;
font: 12px/1.35 var(--ui);
}
* {
box-sizing: border-box;
}
:where(html, body, body *) {
-webkit-user-select: none;
user-select: none;
}
html,
body,
#app {
height: 100%;
margin: 0;
background: var(--void);
color: var(--ink);
}
body {
overflow: hidden;
}
.app {
container-type: inline-size;
display: grid;
grid-template-rows: auto minmax(0, 1fr) auto;
gap: 6px;
padding: 8px;
overflow: hidden;
background:
radial-gradient(120% 90% at 50% 110%, rgba(22, 66, 52, 0.38), transparent 62%),
var(--void);
}
/* Status rail ───────────────────────────────────────────────────────── */
.hud {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
gap: 10px;
min-height: 22px;
padding: 0 2px;
}
.hud-cell {
display: flex;
align-items: baseline;
gap: 8px;
min-width: 0;
}
.hud-right {
justify-content: flex-end;
}
.hud-key {
color: var(--muted);
font-size: 9px;
letter-spacing: 0.18em;
text-transform: uppercase;
white-space: nowrap;
}
.hud-value {
color: var(--phosphor);
font-size: 16px;
font-weight: 700;
letter-spacing: 0.08em;
font-variant-numeric: tabular-nums;
text-shadow: 0 0 12px rgba(125, 243, 184, 0.35);
}
.best {
color: var(--muted);
font-size: 8px;
letter-spacing: 0.14em;
text-transform: uppercase;
white-space: nowrap;
}
.best b {
color: var(--amber);
font-weight: 700;
font-variant-numeric: tabular-nums;
}
.hud-brand {
display: flex;
align-items: center;
gap: 8px;
color: var(--amber);
font-size: 11px;
font-weight: 700;
letter-spacing: 0.26em;
text-transform: uppercase;
white-space: nowrap;
}
.hud-brand em {
color: var(--muted);
font-size: 8px;
font-style: normal;
font-weight: 400;
letter-spacing: 0.16em;
}
.brand-mark {
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--hazard);
box-shadow: 0 0 10px var(--hazard);
animation: beacon 2.4s ease-in-out infinite;
}
/* Range viewport ───────────────────────────────────────────────────── */
.stage {
position: relative;
min-height: 0;
overflow: hidden;
border: 1px solid var(--line);
border-radius: var(--radius);
background: #050d0f;
box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.7);
}
.stage canvas {
display: block;
width: 100%;
height: 100%;
touch-action: none;
}
.stage::before {
content: "";
position: absolute;
inset: 0;
z-index: 1;
pointer-events: none;
background:
radial-gradient(ellipse at 50% 45%, transparent 48%, rgba(0, 0, 0, 0.55) 100%),
linear-gradient(90deg, rgba(0, 0, 0, 0.35), transparent 12%, transparent 88%, rgba(0, 0, 0, 0.35));
}
.stage::after {
content: "";
position: absolute;
inset: 0;
z-index: 1;
pointer-events: none;
opacity: 0.3;
background: repeating-linear-gradient(
0deg,
rgba(0, 0, 0, 0.32) 0,
rgba(0, 0, 0, 0.32) 1px,
transparent 1px,
transparent 3px
);
}
.banner {
position: absolute;
top: 20%;
left: 50%;
z-index: 2;
min-width: min(340px, 82%);
padding: 10px 20px 11px;
border-top: 1px solid var(--phosphor);
border-bottom: 1px solid var(--phosphor);
background: rgba(3, 12, 10, 0.88);
text-align: center;
pointer-events: none;
transform: translate(-50%, 0);
opacity: 0;
}
.banner.is-in {
animation: banner-in 0.36s ease-out forwards;
}
.banner[data-tone="win"] {
border-color: var(--amber);
}
.banner[data-tone="lose"] {
border-color: var(--hazard);
}
.banner p {
margin: 0;
}
#bannerTitle {
color: var(--phosphor);
font-size: clamp(14px, 3.1vw, 22px);
font-weight: 700;
letter-spacing: 0.26em;
text-transform: uppercase;
}
.banner[data-tone="win"] #bannerTitle {
color: var(--amber-hot);
}
.banner[data-tone="lose"] #bannerTitle {
color: var(--hazard);
}
#bannerSub {
margin-top: 4px;
color: var(--muted);
font-size: 9px;
letter-spacing: 0.14em;
text-transform: uppercase;
}
.restart {
position: absolute;
bottom: 10%;
left: 50%;
z-index: 3;
padding: 9px 20px;
transform: translateX(-50%);
border: 1px solid var(--amber);
border-radius: var(--radius);
background: rgba(18, 11, 3, 0.92);
color: var(--amber-hot);
font: 700 11px/1 var(--ui);
letter-spacing: 0.22em;
text-transform: uppercase;
cursor: pointer;
}
.restart:hover {
background: var(--amber);
color: #1b0f00;
}
.restart:focus-visible {
outline: 2px solid var(--phosphor);
outline-offset: 2px;
}
/* Console ──────────────────────────────────────────────────────────── */
.console {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 0 2px;
min-height: 44px;
}
.readout {
display: flex;
align-items: center;
gap: 14px;
flex: 1;
min-width: 0;
}
.fuel {
display: grid;
gap: 4px;
flex: 0 1 132px;
min-width: 58px;
}
.fuel-track {
position: relative;
height: 6px;
overflow: hidden;
border: 1px solid var(--line);
background: #04100c;
}
.fuel-track span {
display: block;
width: 100%;
height: 100%;
background: linear-gradient(90deg, #2f9f74, var(--phosphor));
transition: width 0.12s linear;
}
.fuel-track span[data-low="true"] {
background: linear-gradient(90deg, #a23825, var(--hazard));
}
.ammo {
display: grid;
gap: 4px;
}
.ammo-row {
display: flex;
align-items: center;
gap: 6px;
}
.ammo-count {
color: var(--amber);
font-size: 11px;
font-weight: 700;
letter-spacing: 0.08em;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.ammo-pips {
display: flex;
gap: 3px;
min-height: 7px;
}
@container (max-width: 620px) {
.ammo-pips {
display: none;
}
}
.pip {
width: 9px;
height: 7px;
background: var(--amber);
clip-path: polygon(0 100%, 45% 0, 100% 100%);
transition: opacity 0.2s ease, background 0.2s ease;
}
.pip.spent {
background: #27453a;
opacity: 0.55;
}
.hint {
margin: 0;
overflow: hidden;
color: var(--muted);
font-size: 9px;
letter-spacing: 0.12em;
text-transform: uppercase;
white-space: nowrap;
text-overflow: ellipsis;
}
.controls {
display: flex;
align-items: stretch;
gap: 6px;
}
.controls button {
border: 1px solid var(--line-strong);
border-radius: var(--radius);
background: linear-gradient(180deg, #10241d, #081511);
color: var(--ink);
font: 700 11px/1 var(--ui);
letter-spacing: 0.18em;
text-transform: uppercase;
cursor: pointer;
touch-action: none;
-webkit-tap-highlight-color: transparent;
}
.pad {
width: 44px;
min-height: 44px;
color: var(--phosphor);
font-size: 13px;
}
.thrust {
width: 94px;
min-height: 44px;
border-color: var(--amber-hot);
background: linear-gradient(180deg, var(--amber-hot), var(--amber));
color: #1b0f00;
}
.controls button:active,
.controls button.is-held {
transform: translateY(1px);
filter: brightness(1.08);
}
.controls button:hover:not(:disabled) {
border-color: var(--phosphor);
}
.controls button:disabled {
opacity: 0.3;
cursor: default;
transform: none;
}
.controls button:focus-visible {
outline: 2px solid var(--phosphor);
outline-offset: 2px;
}
/* Compact frames ───────────────────────────────────────────────────── */
@container (max-width: 460px) {
.hud-brand em {
display: none;
}
.hint {
display: none;
}
.console {
gap: 8px;
}
.readout {
gap: 8px;
}
.fuel {
flex-basis: 84px;
min-width: 50px;
}
}
@container (max-width: 340px) {
.best {
display: none;
}
.hud-brand {
font-size: 9px;
letter-spacing: 0.16em;
}
.hud-value {
font-size: 13px;
}
.pad {
width: 40px;
min-height: 40px;
}
.thrust {
width: 82px;
min-height: 40px;
letter-spacing: 0.12em;
}
#bannerTitle {
letter-spacing: 0.18em;
}
}
@container (max-width: 300px) {
.ammo {
display: none;
}
.hud-brand {
display: none;
}
.fuel {
flex-basis: 52px;
}
.pad {
width: 30px;
min-height: 32px;
}
.thrust {
width: 60px;
min-height: 32px;
font-size: 9px;
letter-spacing: 0.08em;
}
.console {
min-height: 32px;
}
.hud-value {
font-size: 12px;
}
}
@container (max-width: 240px) {
.hud-key {
display: none;
}
.fuel .hud-key {
display: none;
}
.fuel {
flex-basis: 40px;
}
}
@media (max-height: 320px) {
.app {
gap: 4px;
padding: 5px;
}
.hud {
min-height: 18px;
}
.hud-value {
font-size: 14px;
}
.console {
min-height: 36px;
}
.controls button {
min-height: 36px;
}
.pad {
width: 38px;
}
.thrust {
width: 82px;
}
.hint,
.ammo .hud-key {
display: none;
}
.ammo-pips {
min-height: 6px;
}
.banner {
padding: 6px 14px 7px;
}
}
@media (max-height: 220px) {
.app {
gap: 3px;
padding: 4px;
}
.hud-key {
font-size: 8px;
}
.hud-brand em,
.best,
.hint,
.ammo .hud-key {
display: none;
}
.hud-value {
font-size: 12px;
}
.controls button {
min-height: 30px;
font-size: 10px;
}
.pad {
width: 32px;
}
.thrust {
width: 62px;
}
.fuel {
flex-basis: 68px;
}
.fuel-track {
height: 4px;
}
.console {
min-height: 30px;
}
#bannerTitle {
font-size: 12px;
}
#bannerSub {
font-size: 8px;
}
}
@keyframes beacon {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.3;
}
}
@keyframes banner-in {
from {
opacity: 0;
transform: translate(-50%, -6px);
}
to {
opacity: 1;
transform: translate(-50%, 0);
}
}
@media (prefers-reduced-motion: reduce) {
.brand-mark {
animation: none;
}
.banner.is-in {
animation: none;
opacity: 1;
}
.fuel-track span,
.pip {
transition: none;
}
}
[hidden] {
display: none !important;
}
