Back to DOOM
SOURCE / PINNED RELEASE

Made of little things.

DOOM

Release
f8a5db646fdc…
Author-recorded commit
d8e055796675…
License
LICENSE
Author’s source reference
nostr://npub182jczunncwe0jn6frpqwq3e0qjws7yqqnc3auccqv9nte2dnd63scjm4rf/wss%3A%2F%2Fgit.napplet.soy%2F/n-37af437f0e6

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

src/styles.css
:root {
  color-scheme: dark;
  --metal: #161717;
  --edge: #44423b;
  --ink: #ece6d6;
  --muted: #b4afa2;
  --amber: #d7b574;
  --red: #a62e21;
  font-family: 'Courier New', monospace;
  color: var(--ink);
  background: #080909;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html,
body,
#app {
  height: 100%;
  margin: 0;
}
body {
  overflow: hidden;
}
button,
select,
input {
  font: inherit;
}
button {
  color: inherit;
  background: #292a27;
  border: 1px solid #656357;
  border-radius: 2px;
  min-height: 44px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
}
button:hover {
  background: #3a3b34;
  border-color: var(--amber);
}
button:active,
.held {
  background: #6c4b29 !important;
  transform: translateY(1px);
}
button:focus-visible,
select:focus-visible,
input:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}
button:disabled {
  cursor: wait;
  opacity: 0.45;
}
button.primary {
  background: var(--red);
  border-color: #ce6651;
  color: #fff4df;
}
button.primary:hover {
  background: #c03a28;
}
button.text-button {
  border: 0;
  background: transparent;
  color: var(--amber);
  padding: 8px 0;
  font-size: 12px;
  text-align: left;
  font-weight: 400;
}
button[hidden],
[hidden] {
  display: none !important;
}
#app {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  background: radial-gradient(ellipse at center, #25251f 0, #080909 75%);
  position: relative;
  isolation: isolate;
}
#stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: size;
  overflow: hidden;
}
#game {
  display: block;
  width: min(100cqw, 133.333cqh);
  height: min(75cqw, 100cqh);
  aspect-ratio: 4/3;
  image-rendering: pixelated;
  background: #080909;
  outline: none;
  touch-action: none;
}
#toolbar {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 4px max(12px, env(safe-area-inset-right)) 4px
    max(12px, env(safe-area-inset-left));
  background: linear-gradient(#252622, #181916);
  border-top: 2px solid #57564b;
  flex-shrink: 0;
}
.edition {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--amber);
}
.edition-sub {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0;
}
#status {
  font-size: 10px;
  color: var(--muted);
  flex: 1;
  min-width: 0;
}
.toolbar-actions {
  display: flex;
  gap: 6px;
}
.toolbar-actions button {
  min-width: 44px;
  font-size: 11px;
  padding: 8px 12px;
  min-height: 40px;
}
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #060706a8;
  padding: 18px;
  overflow: auto;
  z-index: 3;
}
.panel {
  width: min(430px, 100%);
  padding: 28px;
  background: linear-gradient(135deg, #24251ff7, #131510fa);
  border: 1px solid #77705a;
  box-shadow: 0 12px 65px #000c;
  border-top: 3px solid var(--amber);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.panel-kicker {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--amber);
}
h1,
h2 {
  font-family: Impact, 'Arial Narrow', sans-serif;
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 0.98;
  font-size: clamp(2rem, 1.5rem + 2.8vw, 3.6rem);
  margin: 6px 0;
  color: #efe5cb;
  text-shadow: 3px 3px #4b3423;
}
p {
  font-size: 12px;
  line-height: 1.6;
  margin: 2px 0 8px;
  color: #cdc7b6;
}
.difficulty {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--amber);
  margin: 8px 0;
}
select,
input {
  width: 100%;
  color: var(--ink);
  background: #10120f;
  border: 1px solid #6a6758;
  border-radius: 2px;
  min-height: 44px;
  padding: 10px;
  font-size: 14px;
  letter-spacing: 0;
}
select {
  cursor: pointer;
}
.launch-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.launch-foot button {
  font-size: 10px;
}
.button-row {
  display: flex;
  gap: 8px;
}
.button-row button {
  flex: 1;
  font-size: 12px;
  padding: 8px;
}
.fine {
  font-size: 10px;
  color: var(--muted);
}
dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  font-size: 12px;
  margin: 10px 0;
}
dd {
  margin: 0;
  color: var(--amber);
}
dt {
  color: var(--muted);
}
.help-panel {
  max-height: 100%;
  overflow: auto;
}
#small-notice {
  display: none;
}
#touch-deck {
  display: none;
  justify-content: space-between;
  align-items: end;
  padding: 12px 14px;
  gap: 12px;
  touch-action: none;
}
.dpad {
  display: grid;
  grid-template-columns: repeat(3, 46px);
  grid-template-rows: repeat(2, 46px);
  gap: 4px;
}
.dpad button {
  padding: 0;
  font-size: 18px;
  background: #272b28df;
}
.up {
  grid-area: 1/2;
}
.left {
  grid-area: 2/1;
}
.down {
  grid-area: 2/2;
}
.right {
  grid-area: 2/3;
}
.touch-actions {
  display: grid;
  grid-template-columns: repeat(2, 50px);
  gap: 5px;
}
.touch-actions button {
  padding: 0;
  min-height: 46px;
  font-size: 12px;
  background: #292e28e8;
}
.touch-actions .fire {
  background: #9c2d20ed;
  border-color: #d16042;
}
.playing #touch-deck {
  pointer-events: auto;
}
@media (pointer: coarse), (max-width: 600px) {
  #toolbar {
    gap: 8px;
    padding-inline: 8px;
    min-height: 54px;
  }
  .edition-sub {
    display: none;
  }
  #status {
    display: none;
  }
  .toolbar-actions {
    margin-left: auto;
    gap: 4px;
  }
  .toolbar-actions button {
    padding: 8px 10px;
    min-height: 44px;
  }
  .edition {
    font-size: 15px;
  }
  .pause-label {
    display: none;
  }
  .playing #touch-deck {
    display: flex;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
  }
  .overlay {
    padding: 12px;
  }
  .panel {
    padding: 20px;
    gap: 10px;
  }
  .launch-foot {
    flex-direction: column;
    gap: 0;
    align-items: flex-start;
  }
  .launch-foot button {
    min-height: 32px;
  }
}
@media (max-aspect-ratio: 1/1) and (min-width: 300px) {
  #stage {
    display: block;
    padding-top: 12px;
    container-type: normal;
  }
  #game {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
  }
  .playing #touch-deck {
    display: flex;
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
  }
  .overlay {
    align-items: center;
  }
  .panel {
    max-height: 100%;
    overflow: auto;
  }
  .edition {
    font-size: 14px;
  }
}
@media (max-height: 480px) and (min-aspect-ratio: 1/1) {
  .panel {
    max-height: 100%;
    overflow: auto;
    padding: 16px 20px;
    gap: 8px;
  }
  .panel h1 {
    font-size: 30px;
  }
  .panel h2 {
    font-size: 28px;
  }
  .panel-kicker {
    font-size: 9px;
  }
  .panel p {
    margin: 0;
  }
  .difficulty {
    margin: 0;
    gap: 4px;
  }
  .launch-foot {
    display: none;
  }
  #toolbar {
    min-height: 48px;
  }
  .playing #touch-deck {
    padding: 6px 12px;
  }
  .dpad {
    grid-template-columns: repeat(3, 44px);
    grid-template-rows: repeat(2, 44px);
  }
  .touch-actions button {
    min-height: 44px;
  }
}
@media (max-width: 299px), (max-height: 239px) {
  #stage,
  #toolbar {
    display: none !important;
  }
  #small-notice {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    height: 100%;
    font-size: 12px;
    line-height: 1.45;
  }
  #small-notice strong {
    color: var(--amber);
    font-size: 14px;
  }
  #small-notice small {
    color: var(--muted);
  }
}

button[aria-pressed='true'] {
  color: #fff3cb;
  border-color: var(--amber);
  background: #63502d;
}