Back to Obsidian Breaker
SOURCE / PINNED RELEASE

Made of little things.

Obsidian Breaker

Release
44c589c52043…
Author-recorded commit
9ee5b61ce1c9…
License
LICENSE
Author’s source reference
nostr://npub1dmmh0futyszl4445mv4xrygkgsgj8vpu79yx3qyy9qxmz4pemtzqlqmc87/wss%3A%2F%2Fgit.napplet.soy%2F/n-de5dc6a02e7

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

src/styles.css
/*
  Obsidian Breaker — app-owned visual language.
  A molten mine: charcoal rock, ember light, oxidized steel HUD.
  The host theme is intentionally not followed; the scene and HUD share one
  palette so volatile jade, ember accents and score colours stay legible.
*/

:root {
  --void: #060408;
  --rock: #100a10;
  --rock-2: #1a1016;
  --panel: rgba(16, 10, 15, 0.82);
  --ember: #ff7a2f;
  --ember-hot: #ffb35c;
  --ember-dim: rgba(255, 122, 47, 0.24);
  --lava: #ff3d1c;
  --jade: #57f2a8;
  --steel: #9db4cc;
  --bone: #f4e6d3;
  --muted: #a58d7a;
  --line: rgba(255, 145, 80, 0.22);
  --line-strong: rgba(255, 145, 80, 0.45);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: "Avenir Next", "Trebuchet MS", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --napplet-text-selection: none;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

:where(html, body, body *) {
  -webkit-user-select: var(--napplet-text-selection, none);
  user-select: var(--napplet-text-selection, none);
}

html,
body,
#app {
  height: 100%;
  margin: 0;
  background: var(--void);
  color: var(--bone);
}

body {
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Frame ─────────────────────────────────────────────────────────────── */

.app {
  container-type: inline-size;
  position: relative;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 104, 36, 0.12), transparent 55%),
    var(--void);
  font-family: var(--sans);
  isolation: isolate;
}

.app::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.018) 0,
    rgba(255, 255, 255, 0.018) 1px,
    transparent 1px,
    transparent 3px
  );
  content: "";
  pointer-events: none;
}

.board {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}

/* HUD ───────────────────────────────────────────────────────────────── */

.hud {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding:
    max(9px, env(safe-area-inset-top))
    max(10px, env(safe-area-inset-right))
    22px
    max(10px, env(safe-area-inset-left));
  background: linear-gradient(to bottom, rgba(8, 5, 10, 0.92), rgba(8, 5, 10, 0.55) 55%, transparent);
  pointer-events: none;
}

.hud-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding-top: 2px;
}

.brand-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: radial-gradient(circle at 35% 30%, rgba(255, 160, 80, 0.35), rgba(30, 12, 12, 0.9));
  box-shadow: 0 0 16px rgba(255, 108, 36, 0.28);
  color: var(--ember-hot);
  font-size: 11px;
}

.brand-text {
  color: var(--bone);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(255, 120, 50, 0.3);
}

.hud-stats {
  display: flex;
  flex: 1;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  margin: 0;
}

.stat {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.stat + .stat {
  padding-left: 10px;
  border-left: 1px solid rgba(255, 150, 90, 0.14);
}

.stat dt {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stat dd {
  margin: 0;
  color: var(--bone);
  font-family: var(--mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.stat-score dd {
  color: var(--ember-hot);
  text-shadow: 0 0 12px rgba(255, 130, 50, 0.3);
}

.stat-chain dd {
  color: var(--muted);
}

.stat-chain.is-hot dd {
  color: var(--jade);
  text-shadow: 0 0 12px rgba(87, 242, 168, 0.55);
}

.stat-lives dd {
  color: var(--ember);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.hud-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
  pointer-events: auto;
}

.icon-button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--bone);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.icon-button:hover {
  border-color: var(--ember);
  color: var(--ember-hot);
  background: rgba(38, 18, 16, 0.92);
}

.icon-button.is-off {
  color: var(--muted);
  opacity: 0.55;
}

.ability-button {
  position: relative;
}

.ability-button.is-ready {
  border-color: rgba(87, 242, 168, 0.75);
  color: var(--jade);
  background: rgba(18, 48, 36, 0.78);
  box-shadow: 0 0 14px rgba(87, 242, 168, 0.35), 0 0 0 1px rgba(87, 242, 168, 0.18) inset;
  animation: ability-pulse 1.4s ease-in-out infinite;
}

.ability-button.is-active {
  border-color: rgba(125, 232, 255, 0.9);
  color: #c9f7ff;
  background: rgba(16, 43, 54, 0.9);
  box-shadow: 0 0 16px rgba(125, 232, 255, 0.4);
}

.ability-button[aria-disabled="true"] {
  color: var(--muted);
  opacity: 0.5;
}

@keyframes ability-pulse {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(87, 242, 168, 0.25);
  }
  50% {
    box-shadow: 0 0 20px rgba(87, 242, 168, 0.55);
  }
}

.icon-button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--ember-hot);
  outline-offset: 2px;
}

/* Announcements ─────────────────────────────────────────────────────── */

.banner {
  position: absolute;
  top: 17%;
  left: 50%;
  z-index: 3;
  display: grid;
  gap: 2px;
  justify-items: center;
  width: max-content;
  max-width: 90%;
  transform: translate(-50%, -8px);
  opacity: 0;
  text-align: center;
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
}

.banner.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.banner-kicker {
  color: var(--ember);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.banner-title {
  color: var(--bone);
  font-size: clamp(18px, 4.2vmin, 34px);
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 26px rgba(255, 112, 40, 0.42), 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hint {
  position: absolute;
  bottom: calc(max(6px, env(safe-area-inset-bottom)) + 16px);
  left: 50%;
  z-index: 2;
  margin: 0;
  transform: translateX(-50%);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.9);
}

.bullet-meter {
  position: absolute;
  bottom: max(4px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(190px, 46%);
  transform: translateX(-50%);
  pointer-events: none;
}

.bullet-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.bullet-track {
  flex: 1;
  height: 4px;
  overflow: hidden;
  border: 1px solid rgba(125, 232, 255, 0.22);
  border-radius: 999px;
  background: rgba(8, 18, 22, 0.8);
}

.bullet-fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(1);
  transform-origin: left center;
  background: linear-gradient(90deg, #58a8c8, #7ce8ff 60%, #d3f8ff);
  box-shadow: 0 0 8px rgba(125, 232, 255, 0.6);
  transition: transform 80ms linear;
}

.bullet-meter.is-active .bullet-fill {
  background: linear-gradient(90deg, #7ce8ff, #e6fdff);
  box-shadow: 0 0 14px rgba(125, 232, 255, 0.9);
}

.bullet-meter.is-low .bullet-fill {
  background: linear-gradient(90deg, #ff5a3c, #ffb35c);
  box-shadow: 0 0 10px rgba(255, 90, 60, 0.7);
}

.toast {
  position: absolute;
  bottom: calc(max(6px, env(safe-area-inset-bottom)) + 30px);
  left: 50%;
  z-index: 4;
  padding: 6px 12px;
  transform: translate(-50%, 6px);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 9, 13, 0.92);
  color: var(--ember-hot);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* Overlay ───────────────────────────────────────────────────────────── */

.overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  padding: 16px;
  place-items: center;
  background:
    radial-gradient(80% 60% at 50% 40%, rgba(255, 90, 30, 0.1), transparent 60%),
    rgba(5, 3, 7, 0.74);
  backdrop-filter: blur(4px);
}

.overlay[hidden] {
  display: none;
}

.overlay-card {
  display: grid;
  width: min(360px, 100%);
  max-height: 100%;
  gap: 7px;
  overflow: auto;
  padding: clamp(17px, 4vw, 26px);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background:
    linear-gradient(160deg, rgba(255, 120, 45, 0.08), transparent 45%),
    linear-gradient(180deg, rgba(24, 14, 20, 0.98), rgba(10, 6, 10, 0.98));
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, 0.4) inset;
  text-align: center;
}

.overlay-kicker {
  margin: 0;
  color: var(--ember);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.overlay-card h2 {
  margin: 0;
  color: var(--bone);
  font-size: clamp(20px, 4vmin, 28px);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.08;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(255, 112, 40, 0.35);
}

.overlay-body {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.overlay-actions {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.overlay-note {
  min-height: 1em;
  margin: 4px 0 0;
  color: rgba(165, 141, 122, 0.75);
  font-size: 10px;
  line-height: 1.4;
}

.btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(255, 140, 70, 0.06);
  color: var(--bone);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.btn:hover {
  border-color: var(--ember);
  background: rgba(255, 140, 70, 0.12);
  color: var(--ember-hot);
}

.btn-primary {
  border-color: transparent;
  background: linear-gradient(180deg, var(--ember-hot), var(--ember));
  color: #1a0a05;
  box-shadow: 0 8px 24px rgba(255, 110, 40, 0.3);
}

.btn-primary:hover {
  border-color: transparent;
  background: linear-gradient(180deg, #ffd08f, #ff8b45);
  color: #180803;
}

/* Responsive ────────────────────────────────────────────────────────── */

@container (max-width: 620px) {
  .hud {
    gap: 10px;
    padding-bottom: 18px;
  }

  .brand-text,
  .stat-best {
    display: none;
  }

  .hud-stats {
    gap: 8px;
  }

  .stat + .stat {
    padding-left: 8px;
  }

  .stat dd {
    font-size: 12px;
  }

  .stat-lives dd {
    font-size: 10px;
  }
}

@container (max-width: 460px) {
  .hud {
    gap: 6px;
    padding-top: max(5px, env(safe-area-inset-top));
    padding-right: 7px;
    padding-left: 7px;
  }

  .brand-mark {
    width: 21px;
    height: 21px;
    font-size: 9px;
  }

  .stat dt {
    display: none;
  }

  .stat dd {
    font-size: 11px;
  }

  .stat-lives dd {
    font-size: 9px;
  }

  .icon-button {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 11px;
  }

  #guideButton,
  #soundButton,
  .hint {
    display: none;
  }

  .bullet-meter {
    width: min(150px, 42%);
  }
}

@container (max-width: 330px) {
  .stat-chain,
  .stat-best,
  #guideButton,
  #soundButton {
    display: none;
  }

  .hud {
    gap: 4px;
    padding-bottom: 12px;
  }

  .hud-stats {
    gap: 5px;
  }

  .stat + .stat {
    padding-left: 5px;
  }

  .stat dd {
    font-size: 10px;
  }

  .icon-button {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .bullet-label {
    display: none;
  }

  .bullet-meter {
    width: 84px;
  }
}

@container (max-width: 260px) {
  .brand-mark {
    display: none;
  }
}

@media (max-height: 300px) {
  .hud {
    padding-top: max(4px, env(safe-area-inset-top));
    padding-bottom: 12px;
  }

  .hint,
  .brand-text,
  .stat-best {
    display: none;
  }

  .banner {
    top: 30%;
  }

  .banner-title {
    font-size: clamp(15px, 4.6vmin, 24px);
  }

  .overlay-card {
    padding: 14px 16px;
    gap: 5px;
  }

  .overlay-body,
  .overlay-note {
    font-size: 10px;
  }

  .overlay-actions {
    grid-auto-flow: column;
    justify-content: center;
  }

  .btn {
    min-height: 34px;
    padding: 0 12px;
    font-size: 9px;
  }
}

@media (pointer: coarse) {
  .icon-button {
    width: 40px;
    height: 40px;
    font-size: 14px;
  }

  .btn {
    min-height: 46px;
  }

  .board {
    cursor: none;
  }
}

@media (max-height: 300px) {
  @container (max-width: 420px) {
    .hud-actions {
      gap: 4px;
    }

    .icon-button {
      width: 26px;
      height: 26px;
      font-size: 10px;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .banner,
  .toast,
  .icon-button,
  .btn,
  .bullet-fill {
    transition-duration: 0.01ms;
  }

  .ability-button.is-ready {
    animation: none;
  }
}