Back to Soybert 3D
SOURCE / PINNED RELEASE

Made of little things.

Soybert 3D

Release
4bf80e758af1…
Author-recorded commit
298fa2d0e8b1…
License
LICENSE
Author’s source reference
nostr://npub1n8ga89w8h6tvwamxusfyzexw8gjy84yxu9rxgnmk955cxtml4ujswzxydd/wss%3A%2F%2Fgit.napplet.soy%2F/n-9021e1b6a96

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

src/styles.css
:root {
  font-family: 'Avenir Next', 'Trebuchet MS', sans-serif;
  font-size: 13px;
  color-scheme: dark;
  --bg: #171c18;
  --fg: #f3eddd;
  --primary: #c8e79c;
  --surface: color-mix(in srgb, var(--bg) 88%, var(--fg));
  --muted: color-mix(in srgb, var(--fg) 63%, var(--bg));
  --line: color-mix(in srgb, var(--fg) 18%, transparent);
  --scene-muted: #bac4b8;
  --scene-line: color-mix(in srgb, var(--scene-muted) 35%, transparent);
  --control-h: 28px;
}
* { box-sizing: border-box; }
html, body, #app { height: 100%; width: 100%; margin: 0; overflow: hidden; background: var(--bg); color: var(--fg); }
body { user-select: none; -webkit-user-select: none; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, #app:focus-visible { outline: 2px solid var(--primary); outline-offset: -3px; }
button:disabled { opacity: .45; cursor: wait; }
button:hover:not(:disabled) { filter: brightness(1.13); }
button:active:not(:disabled) { transform: translateY(1px); }
[hidden] { display: none !important; }
#app { position: relative; container-type: size; outline: none; touch-action: none; }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; outline: none; }
#stage:active { cursor: grabbing; }
.top-controls { position: absolute; left: 16px; right: 16px; top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none; }
.mode-pill, .tools { display: flex; align-items: center; gap: 6px; }
.mode-pill { height: 28px; padding: 0 10px; background: color-mix(in srgb, var(--bg) 72%, transparent); border: 1px solid var(--line); border-radius: 30px; color: var(--muted); font-size: 11px; letter-spacing: .03em; white-space: nowrap; }
.live-dot { width: 5px; height: 5px; background: var(--primary); border-radius: 50%; }
.tools { pointer-events: auto; padding: 3px; border: 1px solid var(--line); border-radius: 30px; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(12px); }
.icon-button { width: var(--control-h); height: var(--control-h); padding: 5px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; font-size: 18px; line-height: 1; color: var(--muted); }
.icon-button:hover { background: var(--surface); color: var(--fg); }
.icon-button[aria-pressed='true'] { color: var(--primary); }
#sound[aria-pressed='false'] .sound-waves { display: none; }
svg { width: 19px; height: 19px; display: block; }
.status { position: absolute; top: 62px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--scene-muted); pointer-events: none; white-space: nowrap; }
.status:empty { display: none; }
.intro-panel { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); text-align: center; }
.enter-button { display: inline-flex; align-items: center; justify-content: center; gap: 38px; min-height: 42px; padding: 0 20px; font-size: 13px; font-weight: 650; letter-spacing: .02em; border: 1px solid color-mix(in srgb, var(--primary) 85%, var(--fg)); border-radius: 8px; background: var(--primary); color: var(--bg); box-shadow: 0 4px 24px #0002; white-space: nowrap; }
.enter-button span { font-size: 21px; font-weight: 400; }
.orbit-hint { font-size: 10px; color: var(--scene-muted); margin: 12px 0 0; white-space: nowrap; }
.orbit-hint span { padding: 0 6px; opacity: .5; }
#app[data-mode='intro'] .play-only, #app[data-mode='stage'] .intro-only { display: none; }
.joystick { position: absolute; left: 24px; bottom: 22px; width: 96px; height: 96px; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 42%, transparent); border-radius: 50%; touch-action: none; cursor: move; }
.stick { position: absolute; width: 34px; height: 34px; left: calc(50% - 17px); top: calc(50% - 17px); border-radius: 50%; border: 1px solid color-mix(in srgb, var(--fg) 32%, transparent); background: color-mix(in srgb, var(--fg) 12%, var(--bg)); box-shadow: 0 3px 8px #0002; pointer-events: none; }
.pad-mark { position: absolute; font-size: 16px; color: var(--muted); opacity: .7; line-height: 14px; }
.up { top: 9px; left: calc(50% - 4px); }.down { bottom: 9px; left: calc(50% - 4px); }.left { top: calc(50% - 8px); left: 10px; }.right { top: calc(50% - 8px); right: 10px; }
.actions { position: absolute; right: 24px; bottom: 24px; display: flex; align-items: flex-end; gap: 8px; }
.action-button { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 10px 8px; min-width: 66px; min-height: 70px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(12px); font-size: 10px; color: var(--muted); }
.action-button svg { color: var(--fg); width: 21px; height: 21px; }
.action-button kbd { font-size: 8px; color: var(--muted); background: transparent; padding: 0; border: 0; }
.fire-button { border-color: color-mix(in srgb, var(--primary) 50%, transparent); background: color-mix(in srgb, var(--primary) 12%, var(--bg)); }
.fire-button svg { color: var(--primary); }
kbd { font-family: inherit; display: inline-grid; place-items: center; min-width: 17px; height: 18px; border: 1px solid var(--line); border-radius: 3px; font-size: 9px; padding: 0 3px; }
.keyboard-hint { display: flex; align-items: center; gap: 3px; position: absolute; bottom: 31px; left: 144px; font-size: 10px; color: var(--scene-muted); }
.keyboard-hint kbd { border-color: var(--scene-line); }
.keyboard-hint span { margin-left: 6px; }.keyboard-hint i { height: 11px; border-left: 1px solid var(--scene-line); margin: 0 8px; }
.help-panel { position: absolute; right: 18px; top: 65px; width: 245px; max-height: calc(100% - 90px); overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; padding: 16px; background: var(--surface); box-shadow: 0 12px 40px #0003; z-index: 3; }
.help-panel strong { font-size: 13px; font-weight: 600; }.help-panel dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 11px; }.help-panel dd { margin: 0; color: var(--muted); }.help-panel p { color: var(--muted); font-size: 10px; line-height: 1.6; margin-bottom: 0; }
.pause-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(5px); z-index: 4; }
.error-panel { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; text-align: center; background: var(--bg); z-index: 5; }.error-panel p { font-size: 12px; color: var(--muted); }
@container (width < 900px) { .keyboard-hint { display: none; } }
@container (width < 480px) {
  .top-controls { top: 12px; left: 12px; right: 12px; gap: 4px; }.tools { gap: 0; }.mode-pill { font-size: 10px; padding: 0 8px; }
  .joystick { width: 82px; height: 82px; left: 14px; bottom: 24px; }
  .actions { right: 12px; bottom: 27px; gap: 5px; }.action-button { min-width: 51px; padding: 10px 7px; min-height: 61px; border-radius: 10px; }.action-button kbd { display: none; }.action-button span { font-size: 9px; }
  .help-panel { right: 12px; width: min(245px, calc(100% - 24px)); }
  .intro-panel { bottom: 30px; }
}
@container (width < 240px) {
  .top-controls { top: 6px; left: 6px; right: 6px; }.mode-pill { display: none; }.tools { margin-left: auto; padding: 1px; }.icon-button { width: 24px; height: 24px; font-size: 15px; }.icon-button svg { width: 15px; height: 15px; }#settings, #motion { display: none; }
  .joystick { width: 58px; height: 58px; left: 8px; bottom: 8px; }.stick { width: 24px; height: 24px; left: calc(50% - 12px); top: calc(50% - 12px); }.pad-mark { display: none; }
  .actions { right: 8px; bottom: 8px; gap: 4px; }.action-button { min-width: 32px; min-height: 32px; padding: 6px; border-radius: 8px; }.action-button span, .action-button kbd { display: none; }.action-button svg { width: 18px; height: 18px; }
  .intro-panel { bottom: 10px; }.enter-button { min-height: 30px; padding: 0 12px; gap: 20px; font-size: 11px; }.orbit-hint { display: none; }.status { top: 37px; font-size: 9px; }
}
@container (height < 300px) {
  .top-controls { top: 6px; left: 8px; right: 8px; }.orbit-hint, .keyboard-hint { display: none; }.intro-panel { bottom: 8px; }.enter-button { min-height: 30px; font-size: 11px; }
  .actions { bottom: 8px; right: 8px; }.action-button { min-height: 30px; min-width: 32px; padding: 6px; }.action-button span, .action-button kbd { display: none; }.action-button svg { width: 17px; height: 17px; }
  .joystick { width: 58px; height: 58px; left: 8px; bottom: 8px; }.pad-mark { display: none; }.stick { width: 24px; height: 24px; left: calc(50% - 12px); top: calc(50% - 12px); }.status { top: 42px; }.help-panel { top: 43px; max-height: calc(100% - 50px); padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }