:root {
  --ink: #0B0A10;
  --ink2: #17131F;
  --bone: #F7F3E8;
  --tangerine: #FF6B35;
  --marigold: #FFB627;
  --magenta: #E0218A;
  --cobalt: #4C6FFF;
  --violet: #7B45C2;
  --aqua: #4FE0D4;
  --mint: #3DF58C;
  --red: #E5252A;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--ink);
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

canvas#c {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: block;
}

#ui {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 16px 16px calc(28px + env(safe-area-inset-bottom));
  pointer-events: none;
  font-family: "Rubik", system-ui, sans-serif;
}

#ui > * { pointer-events: auto; }

.btn {
  font-family: "Bowlby One", Impact, sans-serif;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--marigold);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 14px 28px 12px;
  min-width: 260px;
  max-width: 100%;
  box-shadow: 6px 6px 0 var(--magenta);
  cursor: pointer;
  transition: transform .08s, box-shadow .08s;
  line-height: 1.05;
}
.btn small {
  display: block;
  font-family: "Rubik", sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .12em;
  opacity: .8;
  margin-top: 3px;
}
.btn:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--magenta); }
.btn.big { font-size: 30px; padding: 18px 36px 15px; }
.btn.c-mint { background: var(--mint); box-shadow: 6px 6px 0 var(--cobalt); }
.btn.c-aqua { background: var(--aqua); box-shadow: 6px 6px 0 var(--violet); }
.btn.c-pink { background: #FF5DA2; box-shadow: 6px 6px 0 var(--marigold); }
.btn.c-tan { background: var(--tangerine); box-shadow: 6px 6px 0 var(--aqua); }
.btn.ghost {
  background: transparent; color: var(--bone); border-color: var(--bone);
  box-shadow: none; font-size: 16px; min-width: 0; padding: 10px 22px 8px;
}

.note {
  color: var(--bone);
  font-weight: 600;
  font-size: 13px;
  opacity: .75;
  text-align: center;
  max-width: 320px;
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chip {
  font-weight: 800; font-size: 11px; letter-spacing: .12em;
  padding: 6px 10px; border-radius: 999px; border: 2px solid currentColor;
}
.chip.on { color: var(--mint); }
.chip.off { color: #8E86A0; }

.list {
  display: flex; flex-direction: column; gap: 12px; align-items: center;
  max-height: 62vh; overflow-y: auto; padding: 6px 12px 12px; touch-action: pan-y;
  width: 100%;
}
.list .btn { min-width: 280px; font-size: 19px; }
