Back to Faultline
SOURCE / PINNED RELEASE

Made of little things.

Faultline

Release
da1ffaa5624c…
Author-recorded commit
60f5f03189db…
License
LICENSE
Author’s source reference
nostr://npub182jczunncwe0jn6frpqwq3e0qjws7yqqnc3auccqv9nte2dnd63scjm4rf/wss%3A%2F%2Fgit.napplet.soy%2F/n-6932b12c78c

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

src/styles.css
:root {
  color-scheme: dark;
  --bg: #141918;
  --surface: #202624;
  --border: #39403b;
  --muted: #a2aaa0;
  --ink: #eef0e6;
  --accent: #eab775;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --type: 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  font: 15px var(--type);
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
html,
body,
#app {
  height: 100%;
  margin: 0;
}
body {
  overflow: hidden;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.48;
  cursor: default;
}
button:focus-visible,
input:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
button {
  border: 0;
  background: none;
}
button:hover:enabled {
  filter: brightness(1.16);
}
button:active:enabled {
  transform: translateY(1px);
}
[hidden] {
  display: none !important;
}
#shell {
  height: 100%;
  overflow: auto;
  background: radial-gradient(ellipse at 35% 5%, #21272390, transparent 57%), var(--bg);
}
header {
  height: 64px;
  display: flex;
  align-items: center;
  gap: clamp(20px, 5vw, 82px);
  padding: 0 clamp(16px, 4vw, 66px);
  background: #171c1a;
  border-bottom: 1px solid var(--border);
}
.brand {
  font: italic 900 clamp(20px, 2vw, 30px)/1 var(--type);
  letter-spacing: -1.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mark {
  width: 30px;
  height: 24px;
  display: block;
  background: var(--accent);
  clip-path: polygon(
    25% 0,
    100% 0,
    85% 28%,
    44% 28%,
    37% 43%,
    74% 43%,
    60% 70%,
    24% 70%,
    9% 100%,
    0 100%,
    0 52%
  );
}
nav {
  align-self: stretch;
  display: flex;
  gap: clamp(9px, 2.5vw, 40px);
}
nav button {
  padding: 0 2px;
  position: relative;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}
nav .selected {
  color: var(--ink);
}
nav .selected:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}
.link-status {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #c3c8bc;
  font: 11px var(--mono);
}
.link-status i,
.plate-tag i {
  display: inline-block;
}
.link-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a6bc91;
  box-shadow: 0 0 8px #a6bc9144;
}
main {
  max-width: 1450px;
  margin: auto;
  padding: clamp(18px, 3.5vh, 44px) clamp(16px, 4vw, 66px) 24px;
}
.page-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 clamp(14px, 2.5vh, 32px);
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: clamp(31px, 3.6vw, 55px);
  line-height: 1;
  font-weight: 720;
  letter-spacing: -0.055em;
}
.metadata,
.card-label,
.plate-tag,
.code,
.game-top small,
.game-bottom small {
  font: 10px/1.35 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.metadata {
  color: var(--muted);
  line-height: 1.6;
}
.metadata span {
  color: #6c756c;
  margin: 0 0.55em;
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(238px, 0.85fr);
  gap: 15px;
  align-items: stretch;
}
.panel,
.map-card,
.weapon-sheet,
#weapon-list {
  background: var(--surface);
  border: 1px solid var(--border);
}
.map-card {
  display: flex;
  flex-direction: column;
}
.plate {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-height: 285px;
  overflow: hidden;
  background-color: #2b342f;
  background-image:
    linear-gradient(90deg, #cfd6b309 1px, transparent 1px),
    linear-gradient(#cfd6b309 1px, transparent 1px),
    radial-gradient(ellipse at 55% 42%, #566054 0, #333d35 57%, #28312b 100%);
  background-size:
    26px 26px,
    26px 26px,
    auto;
}
.plate:after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, #131a16ee, transparent 32%);
}
#plate {
  position: absolute;
  inset: 3% 0 9%;
  width: 100%;
  height: 88%;
}
.plate-tag,
.north {
  position: absolute;
  color: #d2d6c4;
  z-index: 1;
}
.plate-tag {
  top: 19px;
  left: 20px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.corner-symbol {
  width: 10px;
  height: 10px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}
.north {
  top: 16px;
  right: 20px;
  font: 9px var(--mono);
  text-align: center;
}
.north b {
  display: block;
  font-size: 19px;
}
.map-caption {
  position: absolute;
  z-index: 1;
  bottom: 22px;
  left: 24px;
}
.code {
  color: var(--accent);
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.map-caption h2 {
  font-size: clamp(30px, 3.5vw, 53px);
  letter-spacing: -0.06em;
  line-height: 0.99;
}
.map-caption > span:last-child {
  display: block;
  margin-top: 7px;
  color: #c4ccbd;
  font-size: 12px;
}
.map-switch,
.map-switch > div,
.map-switch > span {
  display: flex;
  align-items: center;
}
.map-switch {
  justify-content: space-between;
  min-height: 51px;
  padding: 4px 13px 4px 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.map-switch > span {
  gap: 10px;
}
.layer-icon {
  font: 24px var(--type);
  color: var(--accent);
}
.map-switch b {
  font: 11px var(--mono);
  color: #c6cbbd;
  margin: 0 6px;
}
.square {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  font: 22px/1 var(--type);
  background: #272e29;
}
.side {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}
.action-panel,
.weapon-sheet,
.controls {
  padding: clamp(16px, 2vw, 27px);
}
.panel h2 {
  font-size: clamp(20px, 1.9vw, 28px);
  letter-spacing: -0.045em;
}
.panel p {
  color: #b1b7ac;
  font-size: 13px;
  line-height: 1.5;
  margin: 6px 0 19px;
}
.primary,
.secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  width: 100%;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
}
.primary {
  background: var(--accent);
  color: #21241d;
}
.secondary {
  background: #303731;
  border: 1px solid #51594e;
  color: var(--ink);
}
.action-panel .primary,
.action-panel .secondary {
  justify-content: flex-start;
}
.secondary {
  margin-top: 8px;
}
.arrow {
  margin-left: auto;
  font-size: 18px;
}
.button-icon {
  font: 20px/1 var(--mono);
  width: 20px;
}
.practice-row {
  border-top: 1px solid var(--border);
  margin-top: 15px;
  padding-top: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.practice-row button {
  text-align: left;
  padding: 9px 0;
  font-weight: 600;
  font-size: 13px;
  min-height: 36px;
}
.practice-row button span {
  margin-left: 4px;
  color: var(--accent);
}
small,
.loadout > span:last-child {
  color: var(--muted);
}
.practice-row small {
  font: 10px var(--mono);
}
.loadout {
  text-align: left;
  padding: 14px 19px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: space-between;
}
.card-label {
  color: #b8bfb0;
}
.loadout .card-label {
  display: flex;
  justify-content: space-between;
  grid-column: 1/-1;
}
.card-label b {
  color: var(--accent);
}
#equipped-art {
  width: 100%;
  height: clamp(57px, 8vh, 110px);
  object-fit: contain;
  grid-column: 1/-1;
}
.loadout strong {
  font-size: 16px;
  letter-spacing: -0.02em;
}
.loadout > span:last-child {
  align-self: end;
  font: 9px var(--mono);
  text-transform: uppercase;
}
.armory-layout {
  display: grid;
  grid-template-columns: minmax(170px, 0.72fr) 1.5fr;
  gap: 14px;
}
.weapon-option {
  display: block;
  text-align: left;
  padding: 15px;
  width: 100%;
  border-bottom: 1px solid var(--border);
}
.weapon-option strong,
.weapon-option small {
  display: block;
}
.weapon-option small {
  font: 10px var(--mono);
  margin-top: 4px;
}
.weapon-option.active {
  background: #303930;
  box-shadow: inset 3px 0 var(--accent);
}
#weapon-art {
  width: 100%;
  height: clamp(70px, 16vh, 160px);
  object-fit: contain;
  background: radial-gradient(ellipse, #363f35, transparent 70%);
}
.weapon-sheet h2 {
  margin-top: 5px;
}
.weapon-sheet dl,
.controls dl {
  font-size: 13px;
  margin: 12px 0 17px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
}
.weapon-sheet dt,
.weapon-sheet dd,
.controls dt,
.controls dd {
  margin: 0;
  padding: 7px 0;
  border-top: 1px solid var(--border);
}
dt {
  color: var(--muted);
}
dd {
  font-family: var(--mono);
}
.controls {
  max-width: 680px;
}
.controls p {
  margin-bottom: 0;
}
dialog {
  background: #202622;
  color: var(--ink);
  border: 1px solid #535d50;
  padding: 20px;
  width: min(420px, 94vw);
  max-height: 92dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #070c0bd6;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.dialog-head h2 {
  font-size: 25px;
  letter-spacing: -0.045em;
}
.dialog-head button {
  flex: none;
}
dialog label,
.field-label {
  display: block;
  color: #bdc4b8;
  font-size: 12px;
  margin: 10px 0 7px;
}
input {
  width: 100%;
  padding: 12px;
  background: #131815;
  color: var(--ink);
  border: 1px solid #545e51;
  border-radius: 0;
  margin: 0 0 12px;
}
.room-item,
.roster-row {
  width: 100%;
  padding: 11px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  text-align: left;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}
.room-item small,
.roster-row small {
  font: 10px var(--mono);
}
.muted,
#dialog-note {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
#dialog-note:not(:empty) {
  margin-top: 12px;
  color: #e1bd90;
}
.room-actions {
  margin-top: 12px;
}
.room-actions .secondary {
  min-height: 38px;
}
.dialog-info {
  padding-bottom: 12px;
}
.result-list {
  padding: 0;
  list-style: none;
}
#game,
#scene,
.hud,
#touch,
#damage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#game {
  overflow: hidden;
  background: linear-gradient(#929f9e, #d4cdb5 58%, #a9a58a);
}
#scene {
  touch-action: none;
  outline: 0;
}
.hud,
#touch {
  pointer-events: none;
  color: #f3f3e9;
  text-shadow: 0 1px 3px #17201a;
}
.game-top,
.game-bottom {
  position: absolute;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  left: 16px;
  right: 16px;
}
.game-top {
  top: 12px;
}
.game-top > div:first-child,
.game-bottom > div {
  background: #15201bd9;
  padding: 6px 9px;
  border-left: 2px solid var(--accent);
}
.game-top b {
  font: 700 14px var(--type);
}
.game-top small,
.game-bottom small {
  display: block;
  color: #e0e1d1;
  font-size: 9px;
}
.game-top button {
  pointer-events: auto;
  background: #18211ddc;
  border: 1px solid #d8d5b761;
  height: 38px;
  width: 38px;
}
.game-bottom {
  bottom: 14px;
  align-items: end;
}
.game-bottom strong {
  font: 700 25px var(--type);
}
.hud-right {
  text-align: right;
}
#round-clock {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font: 600 15px var(--mono);
  background: #1c2521cf;
  padding: 6px 10px;
}
#cross,
#hitmark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font: 22px monospace;
  color: white;
  text-shadow: 0 0 2px #29332b;
}
#hitmark {
  font-size: 33px;
  color: #ffe8b2;
}
#damage {
  background: radial-gradient(
    ellipse at var(--hit-x, 50%) var(--hit-y, 0%),
    #c82e1e 0%,
    #ab2115a8 9%,
    transparent 43%
  );
  opacity: 0;
}
#game-message {
  position: absolute;
  top: 58%;
  width: 100%;
  text-align: center;
  font: bold 16px var(--type);
}
#killfeed {
  position: absolute;
  top: 65px;
  right: 16px;
  font: 11px var(--mono);
  background: #19251fc9;
  padding: 4px 7px;
}
#killfeed:empty {
  display: none;
}
#touch {
  display: none;
}
#stick,
.touch-actions button {
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
#stick {
  position: absolute;
  left: 17px;
  bottom: 75px;
  border: 1px solid #e9edcd99;
  background: #18241b77;
  border-radius: 50%;
  width: 84px;
  height: 84px;
}
#stick i {
  position: absolute;
  left: 24px;
  top: 24px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #cdd4b999;
}
.touch-actions {
  position: absolute;
  right: 12px;
  bottom: 84px;
  display: grid;
  grid-template-columns: repeat(3, 44px);
  gap: 3px;
}
.touch-actions button {
  min-height: 44px;
  background: #18241ba3;
  border: 1px solid #d4dbc27a;
  font: 10px var(--mono);
}
.touch-actions button:last-child {
  color: #f5cb89;
  border-color: #e8bb70;
}
#min-size {
  display: none;
}
@media (pointer: coarse) {
  #touch {
    display: block;
  }
  .square,
  .game-top button,
  .practice-row button {
    min-width: 44px;
    min-height: 44px;
  }
}
@media (min-width: 1050px) and (min-height: 630px) {
  .plate {
    min-height: min(53vh, 630px);
  }
  .side {
    grid-template-rows: 1.25fr 1fr;
  }
  .action-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .loadout {
    padding: 22px;
  }
  .loadout canvas#equipped-art {
    height: clamp(78px, 13vh, 170px);
  }
}
@media (max-width: 680px) {
  header {
    height: 53px;
    gap: 16px;
    padding: 0 14px;
  }
  .brand {
    font-size: 18px;
    gap: 5px;
  }
  .mark {
    width: 21px;
    height: 18px;
  }
  nav {
    margin-left: auto;
    gap: 12px;
  }
  nav button {
    font-size: 12px;
  }
  .link-status {
    display: none;
  }
  .dashboard {
    grid-template-columns: 1fr;
  }
  .side {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 1fr;
  }
  .plate {
    min-height: clamp(210px, 35vh, 350px);
  }
  main {
    padding: 19px 14px;
  }
  .page-heading {
    display: block;
  }
  .metadata {
    font-size: 9px;
    margin-top: 7px;
  }
  .map-caption {
    left: 16px;
    bottom: 13px;
  }
  .map-caption h2 {
    font-size: 30px;
  }
  .map-switch {
    min-height: 45px;
  }
  .action-panel,
  .loadout {
    padding: 13px;
  }
  .loadout {
    grid-template-columns: 1fr;
  }
  .loadout > span:last-child {
    margin-top: 4px;
  }
  .action-panel p {
    margin-bottom: 12px;
  }
  .armory-layout {
    grid-template-columns: 1fr;
  }
  #weapon-list {
    display: flex;
    overflow-x: auto;
  }
  .weapon-option {
    min-width: 109px;
    width: auto;
  }
  .weapon-option.active {
    box-shadow: inset 0 -2px var(--accent);
  }
}
@media (max-width: 440px) {
  .side {
    grid-template-columns: 1fr;
  }
  .loadout {
    display: grid;
    grid-template-columns: 1fr 100px;
    align-items: center;
    position: relative;
    min-height: 82px;
  }
  .loadout .card-label {
    grid-column: 1;
    grid-row: 1;
  }
  .loadout .card-label b {
    display: none;
  }
  #equipped-art {
    grid-column: 2;
    grid-row: 1/4;
    width: 100px;
    height: 65px;
  }
  .loadout strong,
  .loadout > span:last-child {
    grid-column: 1;
  }
  .game-top,
  .game-bottom {
    left: 8px;
    right: 8px;
  }
  .touch-actions {
    right: 6px;
  }
  .plate-tag {
    top: 12px;
    left: 13px;
  }
  .north {
    top: 9px;
    right: 11px;
  }
}
@media (max-height: 410px) and (min-width: 600px) {
  header {
    height: 43px;
  }
  main {
    padding-top: 12px;
  }
  .page-heading {
    margin-bottom: 10px;
  }
  h1 {
    font-size: 28px;
  }
  .plate {
    min-height: 205px;
  }
  .action-panel {
    padding: 12px;
  }
  .panel p {
    margin: 3px 0 8px;
  }
  .loadout canvas#equipped-art {
    height: 38px;
  }
  .practice-row {
    margin-top: 6px;
  }
}
@media (pointer: coarse) and (min-width: 600px) and (max-height: 410px) {
  .touch-actions,
  #stick {
    bottom: 18px;
  }
  .game-bottom {
    left: 116px;
    right: 166px;
  }
}
@media (max-width: 500px) {
  #round-clock {
    position: static;
    transform: none;
    margin-left: auto;
    margin-right: 8px;
  }
}
@media (max-width: 279px), (max-height: 209px) {
  #min-size {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 9px;
    position: fixed;
    inset: 0;
    background: var(--surface);
    font: 600 14px var(--type);
    z-index: 1000;
  }
  #shell,
  #game,
  dialog[open] {
    visibility: hidden;
  }
}

.roster {
  max-height: min(32dvh, 250px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.roster-row {
  min-height: 33px;
  padding: 8px 0;
}

#scene[data-mouse-look='free'],
#scene[data-mouse-look='locked'] {
  cursor: none;
}
#dialog-body select {
  display: block;
  width: 100%;
  padding: 9px;
  margin: 5px 0 10px;
  background: #29312c;
  color: #f3f3e9;
  border: 1px solid #758174;
  font: inherit;
}
.touch-actions button[data-action='swap'] {
  min-height: 44px;
}

#dialog-body .field {
  display: grid;
  gap: 4px;
  margin: 8px 0;
  font: 600 13px var(--type);
}
#dialog-body .field input,
#dialog-body .field select {
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
}
#dialog-body .field select {
  margin: 0;
}
#dialog-body .profile-status {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.roster-row > span {
  overflow-wrap: anywhere;
  min-width: 0;
}
@media (max-width: 520px) {
  header nav {
    gap: 0;
  }
  header nav button {
    padding-inline: 6px;
  }
}

.match-actions { display: flex; gap: 4px; }
.game-top #scores { width: auto; padding-inline: 8px; }

#server-view, #server-menu { display: none; }
#game.spectating .game-bottom, #game.spectating #cross,
#game.spectating #touch, #game.spectating #pause, #game.spectating #damage { display: none; }
#game.spectating #server-menu { display: inline-block; width: auto; padding-inline: 8px; }
#game.spectating #server-view {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#server-markers { position: absolute; inset: 0; width: 100%; height: 100%; }
.server-marker {
  position: absolute;
  transform: translate(-50%, -100%);
  padding: 2px 5px;
  background: #17221eee;
  border-bottom: 3px solid var(--accent);
  color: #fff;
  font: 600 11px var(--type);
}
.server-marker.slate { border-color: #8dbcdc; }
#scoreboard {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(440px, 95%); max-height: 68%; overflow: auto;
  background: #19231ff2; color: #f3f3e9; border-top: 2px solid var(--accent);
  padding: 12px; pointer-events: auto; z-index: 2;
}
#scoreboard h2 { margin: 0 0 8px; font: bold 16px var(--type); }
#scoreboard table { width: 100%; border-collapse: collapse; font: 12px var(--type); }
#scoreboard :is(th, td) { padding: 5px 3px; text-align: right; }
#scoreboard :is(th, td):first-child { text-align: left; overflow-wrap: anywhere; }
#scoreboard th { border-bottom: 1px solid #829080; }

.pad-mode :is(button,select,input):focus { outline:3px solid #ffcb66; outline-offset:2px; }
.pad-hint { display:none; }
.pad-mode .pad-hint { display:block; margin-top:.7rem; }
.pad-editor { max-width:min(28rem,90vw); max-height:90vh; overflow:auto; }
.pad-editor output { display:block; padding:.5rem 0; overflow-wrap:anywhere; }
.pad-keys { display:grid; gap:.3rem; margin:.5rem 0; }
.pad-keys button { padding:.45rem .25rem; min-width:0; }