@font-face {
  font-family: "VGA";
  src: url("/shop/assets/vga.woff") format("woff");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #f3e3c8;
  --dim: #b59a80;
  --bg: #0b0706;
  --amber: #ff9a4a;
  --amber-hi: #ffd2a0;
  --amber-lo: #6a2a10;
  --crt: #1b0b06;
  --shell: #ddd6c8;
  --shell-lo: #a9a091;
  --trim: #e0806a;
}
html.shop-on,
html.shop-on body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.4 ui-monospace,
    "SF Mono",
    Menlo,
    Consolas,
    monospace;
  overflow: hidden;
  overscroll-behavior: none;
}
/* the page's own HTML stays for search engines / no-JS; hidden once the shop runs */
html.shop-on body > :not(#shop):not(.relay):not(.gate):not(.sound):not(script) {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- the shop */
#shop {
  position: fixed;
  inset: 0;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  display: flex;
  align-items: center;
  justify-content: center;
}
#shop canvas {
  display: block;
  image-rendering: pixelated;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  transition:
    opacity 0.6s ease,
    filter 0.3s ease;
}
#shop.ready canvas {
  opacity: 1;
}
#shop.reading canvas {
  filter: blur(2px) brightness(0.55);
}
.loading {
  position: absolute;
  color: var(--dim);
}
#shop.ready .loading {
  display: none;
}
.hint {
  position: absolute;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 12px;
  background: rgba(11, 7, 6, 0.72);
  border: 1px solid rgba(243, 227, 200, 0.18);
  border-radius: 4px;
  font-size: 12px;
  width: max-content;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.8s ease;
}
.hint.gone {
  opacity: 0;
}
.hint .touch {
  display: none;
}
@media (hover: none) and (pointer: coarse) {
  .hint .keys {
    display: none;
  }
  .hint .touch {
    display: inline;
  }
}
.site-nav {
  position: absolute;
  top: max(10px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  display: flex;
  gap: 6px;
  margin: 0;
}
.site-nav a {
  color: var(--dim);
  font-size: 12px;
  text-decoration: none;
  padding: 4px 8px;
  background: rgba(11, 7, 6, 0.6);
  border-radius: 3px;
}
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

/* ---------------------------------------------------------------- RELAY-7 handheld */
.relay {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.relay[hidden] {
  display: none;
}
.relay-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 85%, rgba(60, 20, 6, 0.3), rgba(0, 0, 0, 0.6));
  opacity: 0;
  transition: opacity 0.25s ease;
}
.relay.up .relay-backdrop {
  opacity: 1;
}
.relay-held {
  --w: min(704px, 92vw, 94.6svh);
  position: relative;
  width: var(--w);
  height: calc(var(--w) * 1.16);
  margin-bottom: calc(var(--w) * -0.2);
  transform: translateY(105%) perspective(2400px) rotateX(6deg);
  transform-origin: 50% 100%;
  transition: transform 0.34s cubic-bezier(0.2, 0.9, 0.25, 1.05);
}
.relay.up .relay-held {
  transform: translateY(0) perspective(2400px) rotateX(2deg);
}
@media (prefers-reduced-motion: reduce) {
  .relay-held,
  .relay-backdrop {
    transition: none;
  }
}
.relay-device {
  position: absolute;
  inset: 0;
  font-family: "VGA", ui-monospace, monospace;
  background:
    radial-gradient(90% 50% at 50% 30%, rgba(255, 150, 80, 0.16), transparent 70%),
    radial-gradient(120% 60% at 25% 0%, rgba(255, 255, 255, 0.4), transparent 60%),
    linear-gradient(180deg, #e6dfd2 0%, var(--shell) 40%, #c9c1b1 75%, var(--shell-lo) 100%);
  border-radius: calc(var(--w) * 0.045);
  /* bevelled plastic: bright top-left lip, dark lower-right lip, then the casing's
     thickness extruded down and to the right, then the shadow it casts */
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.85),
    inset 5px 0 0 rgba(255, 255, 255, 0.45),
    inset 0 -6px 0 rgba(0, 0, 0, 0.18),
    inset -6px 0 0 rgba(0, 0, 0, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    1px 1px 0 #b3ab9c,
    2px 2px 0 #aaa293,
    3px 3px 0 #a1998a,
    4px 4px 0 #989082,
    5px 5px 0 #8f877a,
    6px 6px 0 #867e72,
    7px 7px 0 #7d766a,
    8px 8px 0 #746d62,
    9px 9px 0 #6b655a,
    10px 10px 0 #5e584f,
    14px 18px 30px rgba(0, 0, 0, 0.6),
    30px 50px 80px rgba(0, 0, 0, 0.55),
    0 0 120px rgba(255, 120, 50, 0.18);
}
/* subtle grime + scratches on the casing */
.relay-device::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    repeating-linear-gradient(97deg, transparent 0 22px, rgba(0, 0, 0, 0.025) 22px 23px),
    radial-gradient(40% 20% at 85% 95%, rgba(80, 60, 40, 0.12), transparent),
    radial-gradient(30% 15% at 10% 70%, rgba(80, 60, 40, 0.08), transparent);
}
/* orange trim brackets around the screen */
.relay-trim {
  position: absolute;
  background: var(--trim);
  opacity: 0.9;
  border-radius: 2px;
}
.relay-trim-top {
  left: 6%;
  right: 30%;
  top: 2.4%;
  height: 0.9%;
  background: linear-gradient(90deg, var(--trim) 0 8%, transparent 8% 11%, var(--trim) 11%);
}
.relay-trim-l {
  left: 4.2%;
  top: 4%;
  bottom: 9%;
  width: 1%;
  background: linear-gradient(
    180deg,
    var(--trim) 0 14%,
    transparent 14% 20%,
    var(--trim) 20% 55%,
    transparent 55% 60%,
    var(--trim) 60%
  );
}
.relay-trim-r {
  right: 4.2%;
  top: 3.5%;
  bottom: 9%;
  width: 1%;
  background: linear-gradient(
    180deg,
    var(--trim) 0 30%,
    transparent 30% 34%,
    var(--trim) 34% 62%,
    transparent 62% 66%,
    var(--trim) 66%
  );
}
.relay-vol {
  position: absolute;
  top: 1.2%;
  right: 9%;
  font-size: calc(var(--w) * 0.032);
  color: var(--trim);
  letter-spacing: 0.06em;
}
.relay-side {
  position: absolute;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: inherit;
  font-size: calc(var(--w) * 0.03);
  color: var(--trim);
  background: none;
  border: 0;
  padding: 4px 2px;
  cursor: pointer;
  letter-spacing: 0.14em;
  z-index: 2;
}
.relay-side:hover,
.relay-side:focus-visible {
  color: #c8402e;
  outline: none;
}
.relay-ok {
  left: 0.6%;
  top: 20%;
}
.relay-back {
  left: 0.6%;
  top: 36%;
}
.relay-opt {
  left: 0.6%;
  top: 52%;
}
.relay-scroll {
  right: 0.6%;
  top: 30%;
  transform: none;
}
.relay-wheel {
  position: absolute;
  right: -2.6%;
  top: 31%;
  width: 4%;
  height: 13%;
  padding: 0;
  border: 0;
  border-radius: 40% 60% 60% 40% / 50%;
  background: repeating-linear-gradient(180deg, #8a4a34 0 3px, #c06a48 3px 6px);
  box-shadow:
    inset -3px 0 4px rgba(0, 0, 0, 0.5),
    0 0 8px rgba(255, 120, 60, 0.3);
  cursor: pointer;
}
.relay-bezel {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 6.5%;
  height: 57%;
  padding: 3%;
  border-radius: calc(var(--w) * 0.03);
  background: linear-gradient(160deg, #4a4540 0%, #2a2623 35%, #141211 100%);
  /* a sunken opening: the casing lip shades it from the top-left, light catches the bottom-right */
  box-shadow:
    inset 0 0 0 2px #55504a,
    inset 6px 8px 14px rgba(0, 0, 0, 0.85),
    inset -2px -3px 0 rgba(255, 255, 255, 0.08),
    -2px -3px 0 rgba(120, 112, 100, 0.55),
    2px 3px 0 rgba(255, 255, 255, 0.85);
}
.relay-screen {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 3% 4% 2.5%;
  box-sizing: border-box;
  border-radius: calc(var(--w) * 0.014);
  background: radial-gradient(130% 110% at 50% 45%, #2e120a 0%, var(--crt) 60%, #0d0503 100%);
  color: var(--amber);
  font-size: calc(var(--w) * 0.04);
  line-height: 1.35;
  text-shadow:
    0 0 7px rgba(255, 140, 60, 0.6),
    0 0 1px rgba(255, 200, 150, 0.6);
  overflow: hidden;
  box-shadow:
    inset 4px 6px 12px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(255, 120, 50, 0.25);
}
/* scanlines, diagonal glass scratches, glare */
.relay-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(118deg, transparent 0 41px, rgba(255, 220, 190, 0.05) 41px 42px, transparent 42px 87px),
    linear-gradient(115deg, rgba(255, 230, 200, 0.08) 0 26%, transparent 26% 100%);
}
.relay-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.12em 0.45em;
  background: repeating-linear-gradient(120deg, transparent 0 9px, rgba(120, 30, 0, 0.35) 9px 10px), var(--amber);
  color: var(--crt);
  text-shadow: none;
  font-size: 0.66em;
  letter-spacing: 0.08em;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(255, 140, 60, 0.5);
}
.relay-path {
  overflow: hidden;
  text-overflow: ellipsis;
}
.relay-batt {
  flex: none;
  width: 1.6em;
  height: 0.7em;
  margin-left: 0.6em;
  border: 2px solid var(--crt);
  background: linear-gradient(90deg, var(--crt) 0 70%, transparent 70%);
  background-clip: content-box;
  padding: 1px;
}
.relay-rule {
  height: 2px;
  margin: 0.5em 0 0.4em;
  background: var(--amber);
  box-shadow: 0 0 6px rgba(255, 140, 60, 0.6);
}
.relay-main {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 0.4em;
}
.relay-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  outline: none;
  -webkit-overflow-scrolling: touch;
}
.relay-body::-webkit-scrollbar {
  display: none;
}
.relay-sbar {
  position: relative;
  flex: none;
  width: 2px;
  background: rgba(255, 154, 74, 0.25);
}
.relay-sbar span {
  position: absolute;
  left: -1px;
  width: 4px;
  background: var(--amber);
  box-shadow: 0 0 6px rgba(255, 140, 60, 0.7);
}
.relay-foot {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  margin-top: 0.35em;
  padding-top: 0.3em;
  border-top: 2px solid var(--amber);
  font-size: 0.6em;
  color: #e07a3a;
  letter-spacing: 0.08em;
}
.relay-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.relay-list button {
  display: grid;
  grid-template-columns: 1.3em 1fr 0.7em;
  align-items: center;
  gap: 0.7em;
  width: 100%;
  margin: 0.25em 0;
  padding: 0.3em 0.45em;
  font: inherit;
  text-transform: uppercase;
  text-align: left;
  color: inherit;
  text-shadow: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.relay-chev {
  visibility: hidden;
}
.relay-list button.on {
  background:
    repeating-linear-gradient(120deg, transparent 0 9px, rgba(120, 30, 0, 0.18) 9px 10px),
    linear-gradient(180deg, #ffb070, var(--amber));
  color: #3a1206;
  text-shadow: none;
  box-shadow: 0 0 14px rgba(255, 140, 60, 0.55);
}
.relay-list button.on .relay-chev {
  visibility: visible;
}
.relay-list button:focus-visible {
  outline: none;
}
/* little picture icon (frame + "photo" corner) like the reference */
.relay-ico {
  position: relative;
  width: 1.1em;
  height: 0.9em;
  border: 2px solid currentColor;
  box-sizing: border-box;
  border-right-width: 0;
  border-top-width: 0;
}
.relay-ico::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 55%;
  height: 55%;
  background: currentColor;
  border-radius: 50% 50% 0 50%;
}
.relay-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.relay-date {
  font-size: 0.68em;
  opacity: 0.75;
}
.relay-post {
  font-size: 0.82em;
  padding-right: 0.2em;
}
.relay-post h1 {
  margin: 0.2em 0 0;
  font-size: 1.25em;
  font-weight: normal;
  text-transform: uppercase;
  color: var(--amber-hi);
}
.relay-post h2,
.relay-post h3 {
  margin: 1em 0 0.3em;
  font-size: 1em;
  font-weight: normal;
  text-transform: uppercase;
  color: var(--amber-hi);
}
.relay-meta {
  margin: 0 0 0.8em;
  opacity: 0.7;
  font-size: 0.85em;
}
.relay-post p,
.relay-post li {
  margin: 0 0 0.7em;
}
.relay-post a {
  color: var(--amber-hi);
}
.relay-post img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.4em 0 0.8em;
  filter: grayscale(1) sepia(1) saturate(4) hue-rotate(-18deg) brightness(0.75) contrast(1.15);
}
.relay-post pre,
.relay-post code {
  font: inherit;
  white-space: pre-wrap;
}
.relay-post pre {
  padding: 0.5em;
  border: 1px solid var(--amber-lo);
}
.relay-launch {
  font: inherit;
  color: #3a1206;
  background: var(--amber);
  border: 0;
  padding: 0.3em 0.8em;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 140, 60, 0.6);
}
.relay-wait {
  margin-top: 1em;
}
.relay-wait a {
  color: var(--amber-hi);
}
/* lower half: speed-line badge, tape counter, REC/BATT led, tape window, plain panel */
.relay-lower {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 66%;
  bottom: 0;
}
.relay-badge {
  position: absolute;
  left: 0;
  top: 1%;
  font-size: calc(var(--w) * 0.06);
  font-style: italic;
  font-weight: bold;
  letter-spacing: 0.02em;
  color: #fbf7ee;
  text-shadow:
    1px 1px 0 #8a8274,
    2px 2px 0 rgba(0, 0, 0, 0.15);
  transform: skewX(-8deg);
}
.relay-badge i {
  display: inline-block;
  width: 0.5em;
  height: 0.08em;
  margin-right: -0.4em;
  background: #fbf7ee;
  box-shadow: 1px 1px 0 #8a8274;
  vertical-align: 0.15em;
}
.relay-badge i:nth-child(1) {
  transform: translateY(-0.18em);
}
.relay-badge i:nth-child(3) {
  transform: translateY(0.18em);
}
.relay-badge i:last-of-type {
  margin-right: 0.15em;
}
.relay-badge span {
  color: var(--trim);
  text-shadow: 1px 1px 0 #8a4a3a;
}
.relay-counter {
  position: absolute;
  left: 50%;
  top: 2%;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  background: linear-gradient(180deg, #dcd6ca, #b9b2a5);
  border-radius: 3px;
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.45),
    0 1px 0 #fff;
}
.relay-counter b {
  font-size: calc(var(--w) * 0.025);
  color: #2a2420;
}
.relay-counter span {
  width: calc(var(--w) * 0.034);
  text-align: center;
  font-size: calc(var(--w) * 0.036);
  color: #eee6d6;
  background: linear-gradient(180deg, #4a4440 0%, #1e1a18 50%, #4a4440 100%);
  border-radius: 1px;
}
.relay-counter em {
  width: calc(var(--w) * 0.03);
  height: calc(var(--w) * 0.03);
  margin-left: 3px;
  background: repeating-linear-gradient(180deg, #3a3430 0 2px, #9a9284 2px 4px);
}
.relay-rec {
  position: absolute;
  right: 11%;
  top: 2%;
  font-size: calc(var(--w) * 0.022);
  line-height: 1.15;
  color: #8a8274;
  text-align: right;
}
.relay-led {
  position: absolute;
  right: 1%;
  top: 1%;
  width: calc(var(--w) * 0.055);
  height: calc(var(--w) * 0.055);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffb090, #e0301a 55%, #6a0a04);
  box-shadow: 0 0 14px rgba(255, 60, 30, 0.85);
  animation: relay-blink 2.4s steps(1) infinite;
}
@keyframes relay-blink {
  50% {
    filter: brightness(0.55);
    box-shadow: none;
  }
}
.relay-label {
  position: absolute;
  left: 50%;
  top: 17.5%;
  font-size: calc(var(--w) * 0.024);
  color: var(--trim);
  letter-spacing: 0.12em;
}
/* the tape window: a sunken slot in the casing with the pixel-art mechanism inside */
.relay-tape {
  position: absolute;
  left: 4%;
  top: 22%;
  width: 30%;
  bottom: 3%;
  padding: 2.4%;
  box-sizing: border-box;
  border-radius: 5px;
  background: linear-gradient(160deg, #57524b, #2a2724);
  box-shadow:
    -2px -3px 0 rgba(120, 112, 100, 0.6),
    2px 3px 0 rgba(255, 255, 255, 0.9),
    inset 3px 4px 6px rgba(0, 0, 0, 0.6);
}
.relay-tape canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px #000;
}
/* the plain panel: a slightly raised plate */
.relay-panel {
  position: absolute;
  left: 40%;
  right: 0;
  top: 27%;
  bottom: 3%;
  border-radius: 5px;
  background: linear-gradient(170deg, #f4efe5 0%, #e3ddd0 60%, #d4cdbf 100%);
  box-shadow:
    inset 0 2px 0 #fff,
    inset 2px 0 0 rgba(255, 255, 255, 0.7),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12),
    1px 1px 0 #b9b1a3,
    2px 2px 0 #aaa294,
    3px 4px 6px rgba(0, 0, 0, 0.18);
}
.relay-counter {
  box-shadow:
    inset 0 2px 3px rgba(0, 0, 0, 0.45),
    -1px -2px 0 rgba(120, 112, 100, 0.5),
    1px 2px 0 #fff !important;
}
.relay-led {
  box-shadow:
    0 0 14px rgba(255, 60, 30, 0.85),
    1px 2px 0 #fff,
    -1px -1px 0 rgba(90, 60, 50, 0.6) !important;
}

/* phones held upright: the handheld fills the screen, and its screen gets most of the height */
@media (orientation: portrait) and (max-width: 700px) {
  .relay-held {
    --w: 90vw;
    height: 84svh;
    margin-bottom: 1.5svh;
  }
  .relay-bezel {
    top: 5%;
    height: 70%;
  }
  .relay-lower {
    top: 77.5%;
  }
  .relay-trim-l,
  .relay-trim-r {
    bottom: 4%;
  }
  .relay-ok {
    top: 16%;
  }
  .relay-back {
    top: 30%;
  }
  .relay-opt {
    top: 44%;
  }
  .relay-scroll,
  .relay-wheel {
    top: 26%;
  }
  .relay-tape,
  .relay-panel {
    bottom: 6%;
  }
  /* bigger, easier-to-read text on the handheld screen */
  .relay-screen {
    font-size: calc(var(--w) * 0.05);
  }
  .relay-post {
    font-size: 0.9em;
  }
  .relay-title {
    white-space: normal;
    line-height: 1.2;
  }
}

#shop.reading .hint {
  opacity: 0;
}

/* what the shoppers say, like the reference's speech boxes */
.say {
  --tail: 50%;
  position: absolute;
  z-index: 2;
  width: max-content;
  max-width: min(300px, 70vw);
  padding: 7px 11px;
  transform: translate(-50%, -100%);
  background: rgb(16, 12, 14);
  color: #f2ece4;
  font:
    15px/1.3 "VGA",
    ui-monospace,
    monospace;
  border: 1px solid rgba(255, 236, 214, 0.45);
  border-radius: 3px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
/* the tail pointing down at whoever is talking: outline (::before) + fill (::after) */
.say::before,
.say::after {
  content: "";
  position: absolute;
  left: var(--tail);
  border-style: solid;
  border-color: transparent;
  border-bottom: 0;
}
.say::before {
  top: 100%;
  margin-left: -8px;
  border-width: 8px 8px 0;
  border-top-color: rgba(255, 236, 214, 0.45);
}
.say::after {
  top: calc(100% - 1px);
  margin-left: -7px;
  border-width: 7px 7px 0;
  border-top-color: rgb(16, 12, 14);
}
.say.on {
  opacity: 1;
}
#shop.reading .say {
  opacity: 0;
}
@media (max-width: 500px) {
  .say {
    max-width: 52vw;
    padding: 4px 7px;
    font-size: 11px;
    line-height: 1.25;
  }
  .say::before {
    margin-left: -6px;
    border-width: 6px 6px 0;
  }
  .say::after {
    margin-left: -5px;
    border-width: 5px 5px 0;
  }
}

/* the door: everyone clicks "Enter the shop" first (that click is what allows the music to play) */
.gate {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: radial-gradient(ellipse at 50% 55%, rgba(30, 10, 14, 0.45), rgba(5, 3, 3, 0.85));
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  transition: opacity 0.5s ease;
}
.gate.gone {
  opacity: 0;
  pointer-events: none;
}
.gate-btn {
  font:
    22px/1 "VGA",
    ui-monospace,
    monospace;
  letter-spacing: 0.12em;
  color: #d4f4ff;
  background: rgba(6, 14, 24, 0.7);
  border: 2px solid #2ec4ff;
  border-radius: 4px;
  padding: 16px 28px;
  cursor: pointer;
  text-shadow:
    0 0 6px rgba(46, 196, 255, 0.95),
    0 0 16px rgba(46, 196, 255, 0.6);
  box-shadow:
    0 0 10px rgba(46, 196, 255, 0.6),
    0 0 30px rgba(46, 196, 255, 0.3),
    inset 0 0 12px rgba(46, 196, 255, 0.25);
  animation: gate-glow 2.6s ease-in-out infinite;
}
.gate-btn:hover,
.gate-btn:focus-visible {
  outline: none;
  color: #fff;
  background: rgba(10, 36, 60, 0.75);
}
.gate-btn:disabled {
  cursor: progress;
  opacity: 0.6;
  animation: none;
}
@keyframes gate-glow {
  50% {
    box-shadow:
      0 0 14px rgba(46, 196, 255, 0.8),
      0 0 44px rgba(46, 196, 255, 0.45),
      inset 0 0 16px rgba(46, 196, 255, 0.35);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gate-btn {
    animation: none;
  }
}
#shop .loading {
  display: none;
}

/* music on/off, top right */
.sound {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 21;
  width: 38px;
  height: 38px;
  padding: 8px;
  border: 1px solid rgba(243, 227, 200, 0.18);
  border-radius: 50%;
  background: rgba(11, 7, 6, 0.6);
  color: #f3e3c8;
  cursor: pointer;
}
.sound:hover,
.sound:focus-visible {
  outline: none;
  border-color: rgba(46, 196, 255, 0.7);
  color: #d4f4ff;
}
.sound svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sound .spk {
  fill: currentColor;
}
.sound .mute {
  display: none;
}
.sound.off .wave {
  display: none;
}
.sound.off .mute {
  display: inline;
}
.sound.off {
  color: #8a7868;
}
/* tappable footer actions on the handheld screen */
.relay-fbtn {
  font: inherit;
  letter-spacing: inherit;
  color: var(--amber-hi);
  text-shadow: inherit;
  background: none;
  border: 1px solid rgba(255, 154, 74, 0.55);
  border-radius: 2px;
  padding: 0.25em 0.6em;
  margin: -0.2em 0;
  cursor: pointer;
}
.relay-fbtn:hover,
.relay-fbtn:focus-visible {
  outline: none;
  color: #3a1206;
  text-shadow: none;
  background: var(--amber);
}
.relay-foot {
  align-items: center;
}
/* little "now playing" equalizer next to the current track */
.relay-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 0.8em;
  margin-left: 0.5em;
  vertical-align: -0.05em;
}
.relay-eq i {
  width: 3px;
  background: currentColor;
  animation: relay-eq 0.9s ease-in-out infinite;
}
.relay-eq i:nth-child(2) {
  animation-delay: -0.3s;
}
.relay-eq i:nth-child(3) {
  animation-delay: -0.6s;
}
@keyframes relay-eq {
  0%,
  100% {
    height: 30%;
  }
  50% {
    height: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .relay-eq i {
    animation: none;
    height: 70%;
  }
}
