@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-mono-500.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --ink: rgba(255, 248, 236, 0.72);
  --strong: #fff8ec;
  --gold: #f0d7a2;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #070614;
  color: var(--ink);
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

#sky,
#fx,
.vignette {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

#sky {
  z-index: 0;
}

#fx {
  z-index: 1;
  touch-action: none;
  cursor: crosshair;
}

.vignette {
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 36%, transparent 42%, rgba(0, 0, 0, 0.42) 100%);
}

.hint,
.chrome,
.dock {
  z-index: 4;
}

.hint {
  position: fixed;
  top: 18px;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

body.has-launched .hint {
  opacity: 0;
}

.chrome {
  position: fixed;
  top: 16px;
  border: 0;
  background: transparent;
  padding: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.chrome:hover,
.chrome:focus-visible,
.text:hover,
.text:focus-visible,
.patterns button:focus-visible,
.shells button:focus-visible,
.themes button:focus-visible {
  color: var(--strong);
  outline: none;
}

.back {
  left: 12px;
}

.sound {
  right: 12px;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 10px;
  padding: 18px 16px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(5, 4, 12, 0.92), rgba(5, 4, 12, 0.55) 55%, transparent);
}

.patterns {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.patterns button,
.shells button,
.text {
  border: 1px solid rgba(255, 248, 236, 0.18);
  border-radius: 999px;
  background: rgba(8, 6, 16, 0.45);
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.patterns button[aria-pressed="true"],
.shells button[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: #1a1208;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.slider {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slider input {
  width: 110px;
  accent-color: var(--gold);
}

.shells {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shells button {
  min-width: 32px;
  padding-inline: 8px;
}

.themes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.themes button {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--swatch, #fff);
}

.themes button[aria-selected="true"] {
  border-color: var(--strong);
}

.themes button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .themes {
    margin-left: 0;
  }
}
