Back to Chase'n Those Narly Waves
SOURCE / PINNED RELEASE

Made of little things.

Chase'n Those Narly Waves

Release
0c7dde9d4921…
Author-recorded commit
88e58516be17…
License
LICENSE
Author’s source reference
nostr://npub1ny7l44q0au5xkv3mjgt6zks5f0e2ydefslq4nhh2ve2xypgc2mqqat8qx2/wss%3A%2F%2Fgit.napplet.soy%2F/n-836af5a08b9

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

src/styles.css
/*
  Look: realistic 3D ocean on a bright tropical day. Menus are frosted
  deep-ocean panels with sunny yellow and sea-foam teal for fun accents.
  Colors are owned by the game (they don't follow the host theme).
*/

:root {
  --ink: #0b1d2a;
  --pink: #ff4f9a;
  --yellow: #ffd23f;
  --teal: #2de1c2;
  --foam: #f4fbff;
  --card: rgba(6, 30, 48, 0.78);
  --font: 'Trebuchet MS', 'Arial Rounded MT Bold', Verdana, sans-serif;
  color-scheme: dark;
  font: 16px/1.35 var(--font);
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: var(--ink);
  color: var(--foam);
  user-select: none;
  -webkit-user-select: none;
}

.app {
  position: relative;
  width: 100%;
  overflow: hidden;
}

canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: none;
}

#hud {
  pointer-events: none;
}

.no-webgl {
  position: absolute;
  inset: auto 8px 8px;
  margin: 0;
  padding: 8px;
  border-radius: 8px;
  background: var(--card);
  text-align: center;
}

.no-webgl[hidden] {
  display: none;
}

/* ---------- Menu screens ---------- */

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 8px;
  overflow: auto;
  background: linear-gradient(180deg, rgba(10, 40, 70, 0.1), rgba(4, 24, 40, 0.45));
}

.overlay[hidden] {
  display: none;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 30em;
  padding: clamp(10px, 3vmin, 22px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  text-align: center;
  font-size: clamp(11px, 2.6vmin, 16px);
}

.logo {
  margin: 0;
  color: var(--yellow);
  font-size: clamp(18px, 6vmin, 42px);
  font-weight: bold;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 2px 3px 0 var(--ink), 0 0 18px rgba(0, 0, 0, 0.35);
  transform: rotate(-3deg);
}

.logo span {
  display: block;
  color: var(--teal);
  font-size: 1.25em;
}

.small-logo {
  font-size: clamp(18px, 5vmin, 34px);
}

.how,
.tricks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.how li {
  margin: 3px 0;
}

.tricks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11em, 1fr));
  gap: 4px 12px;
  width: 100%;
}

.tricks li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.tricks .combo {
  color: var(--yellow);
  font-weight: bold;
  letter-spacing: 0.1em;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0 4px;
  border: 2px solid var(--foam);
  border-radius: 5px;
  color: var(--yellow);
  font: bold 0.95em var(--font);
}

.secret {
  margin: 0;
  color: var(--teal);
  font-weight: bold;
}

.small {
  margin: 0;
  opacity: 0.85;
  font-size: 0.85em;
}

.score {
  margin: 0;
  color: var(--yellow);
  font-size: clamp(20px, 7vmin, 48px);
  font-weight: bold;
  text-shadow: 2px 3px 0 var(--ink);
}

button {
  min-height: 44px;
  padding: 6px 18px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--teal);
  color: var(--ink);
  font: bold 1em var(--font);
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
}

button.big {
  background: var(--yellow);
  font-size: 1.2em;
  text-transform: uppercase;
}

button:hover {
  filter: brightness(1.08);
}

button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

button:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

.pause-button {
  position: absolute;
  top: 3.2em;
  right: 8px;
  min-height: 40px;
  width: 40px;
  padding: 0;
  opacity: 0.75;
}

.pause-button[hidden] {
  display: none;
}

/* ---------- Touch buttons (phones and tablets) ---------- */

.touch {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  justify-content: space-between;
  padding: 8px;
  pointer-events: none;
}

.touch[hidden] {
  display: none;
}

.pad {
  display: grid;
  grid-template-columns: repeat(2, 52px);
  gap: 6px;
  pointer-events: auto;
}

.pad button {
  min-height: 48px;
  padding: 0;
  opacity: 0.7;
  touch-action: none;
}

@media (prefers-reduced-motion: reduce) {
  .logo {
    transform: none;
  }
}