Back to Impact Yard remix
SOURCE / PINNED RELEASE

Made of little things.

Impact Yard remix

Release
5b31a37bbd07
Author-recorded commit
7762f7efb018…
License
LICENSE
Author’s source reference
nostr://npub1n8ga89w8h6tvwamxusfyzexw8gjy84yxu9rxgnmk955cxtml4ujswzxydd/wss%3A%2F%2Fgit.napplet.soy%2F/n-c1d8c061b02

Archive hash verified: c640627baa321925. The source-to-build association is the author’s claim; it has not been independently rebuilt.

src/styles.css
:root {
  --bg: #182420; --fg: #edf2e9; --primary: #e4ac6b;
  --surface: color-mix(in srgb, var(--bg) 90%, transparent);
  --border: color-mix(in srgb, var(--fg) 16%, transparent);
  --muted: color-mix(in srgb, var(--fg) 60%, var(--bg));
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --control-h: 30px; --radius: 6px;
  font: 13px/1.4 'Avenir Next', 'Segoe UI', sans-serif;
  color-scheme: dark;
  user-select: none;
}
* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; background: var(--bg); color: var(--fg); overflow: hidden; }
#app { position: relative; container-type: inline-size; isolation: isolate; }
#scene { display: block; width: 100%; height: 100%; outline: none; touch-action: none; }
#scene:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
button { font: inherit; color: inherit; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); height: var(--control-h); padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; touch-action: manipulation; white-space: nowrap; backdrop-filter: blur(14px); }
button:hover { background: color-mix(in srgb, var(--bg) 75%, var(--fg)); border-color: var(--muted); }
button:active, button[aria-pressed='true'], button.pressed { border-color: var(--primary); color: var(--primary); background: color-mix(in srgb, var(--bg) 80%, var(--primary)); }
button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
button:disabled { opacity: .45; cursor: default; }
button.primary { background: var(--primary); color: var(--bg); border-color: var(--primary); font-weight: 650; }
button.primary:hover { filter: brightness(1.1); }
button svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.25; }
.button-icon { font-size: 18px; line-height: 1; }
.topline { position: absolute; inset: 12px 12px auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none; }
.topline > * { pointer-events: auto; }
.location { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); height: 30px; padding: 0 10px; border-radius: var(--radius); font-weight: 600; font-size: 12px; }
.location-detail { color: var(--muted); font-weight: 400; padding-left: 6px; }
.live-dot, .small-dot { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.toolbar { display: flex; align-items: center; gap: 6px; }
.divider { width: 1px; height: 16px; background: var(--border); margin: 0 2px; }
.yard-guide { position: absolute; top: 58px; left: 12px; width: 192px; max-height: calc(100% - 230px); overflow: auto; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); backdrop-filter: blur(14px); }
.panel-label { font: 10px/1.4 'SFMono-Regular', Consolas, monospace; letter-spacing: 1.2px; color: var(--muted); }
.yard-guide > .panel-label { display: flex; justify-content: space-between; margin-bottom: 10px; }
#structure-count { color: var(--primary); }
.structure { display: grid; grid-template-columns: 25px minmax(0, 1fr) 6px; align-items: center; gap: 7px; padding: 8px 0; width: 100%; height: auto; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: transparent; backdrop-filter: none; text-align: left; white-space: normal; }
.structure:focus-visible { outline-offset: -2px; }
.structure[aria-pressed='true'] .structure-name { color: var(--primary); }
.structure-number { font: 10px 'SFMono-Regular', Consolas, monospace; color: var(--muted); }
.structure-name { font-size: 11px; }
.structure-indicator { width: 5px; height: 5px; background: var(--primary); border-radius: 50%; opacity: .7; }
.structure.hit .structure-indicator { background: #e66e42; }
.guide-note { font-size: 9px; color: var(--muted); display: flex; gap: 6px; align-items: center; margin-top: 10px; }
.guide-note .small-dot { width: 4px; height: 4px; opacity: .6; }
.scene-tools { position: absolute; right: 12px; top: 58px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
kbd { font: 10px/1 'SFMono-Regular', Consolas, monospace; border: 1px solid var(--border); border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; color: var(--fg); background: color-mix(in srgb, var(--bg) 65%, transparent); }
.scene-tools kbd { width: 17px; min-width: 17px; height: 17px; margin-left: 8px; font-size: 9px; color: var(--muted); }
.status { position: absolute; left: 50%; bottom: 125px; transform: translateX(-50%); background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 6px 12px; font-size: 11px; width: max-content; max-width: calc(100% - 24px); text-align: center; pointer-events: none; transition: opacity .3s; }
.status:empty { opacity: 0; }
.bottomline { position: absolute; bottom: 16px; left: 16px; right: 16px; display: flex; align-items: flex-end; gap: 32px; pointer-events: none; }
.speedometer { width: 166px; padding: 10px 12px 8px; background: var(--surface); backdrop-filter: blur(14px); border: 1px solid var(--border); border-radius: 6px; flex-shrink: 0; }
.speed-reading { display: flex; align-items: center; gap: 12px; }
#speed { font: 500 48px/.95 'Avenir Next', 'Segoe UI', sans-serif; letter-spacing: -3px; font-variant-numeric: tabular-nums; min-width: 77px; }
.speed-reading > div { display: flex; flex-direction: column; gap: 5px; }
.unit { font: 9px 'SFMono-Regular', Consolas, monospace; letter-spacing: 1px; color: var(--muted); }
#gear { font: 12px 'SFMono-Regular', Consolas, monospace; color: var(--primary); }
.speed-track { height: 3px; background: var(--border); margin-top: 12px; }
#speed-fill { display: block; height: 100%; background: var(--primary); width: 0; transition: width .12s; }
.speed-caption { display: flex; justify-content: space-between; color: var(--muted); margin-top: 4px; font: 8px 'SFMono-Regular', Consolas, monospace; }
.keyboard-help { display: grid; gap: 7px; padding-bottom: 10px; color: var(--muted); font-size: 10px; text-shadow: 0 1px 4px var(--bg); }
.keyboard-help > div { display: flex; gap: 5px; align-items: center; }
.keyboard-help span { margin-right: 9px; }
.space-key { padding: 0 6px; font-size: 8px; }
.telemetry { display: flex; align-items: flex-end; gap: 22px; margin-left: auto; background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(14px); border-radius: var(--radius); padding: 12px 16px; }
.telemetry > div { display: grid; gap: 4px; }
.telemetry strong { font: 500 24px/1.2 'Avenir Next', 'Segoe UI', sans-serif; font-variant-numeric: tabular-nums; }
.telemetry small { color: var(--muted); font: 10px 'SFMono-Regular', Consolas, monospace; margin-left: 6px; }
.touch-controls { position: absolute; bottom: 130px; left: 16px; right: 16px; display: flex; justify-content: space-between; gap: 8px; pointer-events: none; }
.touch-controls > div { display: flex; gap: 5px; }
.touch-controls button { width: 32px; height: 30px; font-size: 16px; padding: 0; pointer-events: auto; touch-action: none; opacity: .8; }
.touch-controls .accelerate { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 50%, transparent); }
.touch-controls .brake { font-size: 10px; }
.touch-controls #boost { position: relative; width: 108px; gap: 7px; color: var(--primary); border-color: var(--primary); opacity: 1; overflow: hidden; }
.boost-copy { display: grid; gap: 2px; text-align: left; font: 9px/1 'SFMono-Regular', Consolas, monospace; }
#boost-label { color: var(--muted); font-size: 8px; }
.boost-track { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--border); }
#boost-fill { display: block; height: 100%; width: 100%; background: var(--primary); }
#boost[data-state='firing'] { background: color-mix(in srgb, var(--bg) 65%, var(--primary)); }
#boost[data-state='charging'] { border-color: var(--border); color: var(--muted); }
#paused-notice { position: absolute; inset: 45% 0 auto; text-align: center; }
#paused-notice:not([hidden]) { display: grid; justify-content: center; gap: 10px; }
#paused-notice > span { background: var(--surface); padding: 8px 12px; border-radius: 4px; }
#retry { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
[hidden] { display: none !important; }
[data-napplet-select='text'] { user-select: text; }
@container (min-width: 1400px) { .yard-guide { width: 220px; } .structure-name { font-size: 12px; } .structure { padding-block: 10px; } .scene-tools { flex-direction: row; } }
@media (max-width: 899px) { .yard-guide { display: none; } .keyboard-help { display: none; } .location-detail { display: none; } }
@media (max-width: 479px) {
  .topline { inset: 8px 8px auto; } .toolbar { gap: 4px; } .toolbar button { padding: 0 8px; } .toolbar .button-label { display: none; } .divider { display: none; }
  .scene-tools { right: 8px; top: 46px; flex-direction: row; } .scene-tools kbd, .scene-tools .button-label { display: none; } #camera-label { font-size: 10px; }
  .bottomline { left: 8px; right: 8px; bottom: 80px; gap: 8px; } .speedometer { width: 130px; padding: 8px; } #speed { font-size: 40px; min-width: 62px; } .speed-reading { gap: 6px; }
  .telemetry { padding: 8px; gap: 0; } .telemetry > div:last-child { display: none; } .telemetry .panel-label { font-size: 8px; letter-spacing: .8px; } .telemetry strong { font-size: 22px; }
  .touch-controls { bottom: 16px; left: 8px; right: 8px; } .touch-controls button { width: 42px; height: 44px; opacity: 1; } .touch-controls > div { gap: 4px; }
  .touch-controls #boost { width: 42px; } .boost-copy { display: none; }
  .status { bottom: 180px; font-size: 10px; }
}
@media (max-width: 239px), (max-height: 299px) {
  .topline { inset: 4px 4px auto; } .location, .divider, .toolbar .button-label { display: none; } .toolbar { margin-left: auto; } .toolbar button { width: 28px; padding: 0; height: 26px; }
  .yard-guide, .telemetry, .keyboard-help, .speed-track, .speed-caption, .unit, .scene-tools kbd, #camera-label, .scene-tools .button-label { display: none; }
  .scene-tools { top: 4px; left: 4px; right: auto; flex-direction: row; gap: 4px; } .scene-tools button { height: 26px; width: 28px; padding: 0; }
  .bottomline { bottom: 44px; left: 4px; right: auto; } .speedometer { padding: 3px 6px; width: auto; } #speed { font-size: 22px; min-width: 26px; letter-spacing: -1px; } #gear { font-size: 9px; }
  .touch-controls { bottom: 4px; left: 4px; right: 4px; } .touch-controls button { width: 28px; height: 28px; font-size: 13px; } .touch-controls > div { gap: 3px; }
  .touch-controls #boost { width: 28px; } .boost-copy { display: none; }
  .status { bottom: 80px; padding: 3px 6px; font-size: 9px; } #paused-notice { top: 35%; font-size: 10px; gap: 4px !important; } #paused-notice > span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }