@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  --bg: #07060a;
  --ink: #f4f0f8;
  --muted: #c4b8d2;
  --dim: #8f849e;
  --cyan: #3dfff2;
  --magenta: #ff2bd6;
  --mint: #d6ff4a;
  --card: #120b16;
  --line: rgba(255, 255, 255, 0.08);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.65;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 50% 42% at 50% 12%, rgba(61, 255, 242, 0.1), transparent 62%),
    radial-gradient(ellipse 38% 32% at 88% 22%, rgba(255, 43, 214, 0.16), transparent 60%),
    radial-gradient(ellipse 32% 28% at 8% 30%, rgba(255, 43, 214, 0.1), transparent 58%),
    radial-gradient(rgba(255, 255, 255, 0.045) 0.6px, transparent 0.65px);
  background-size: auto, auto, auto, 3px 3px;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, p { margin: 0; }

h1, h2, h3 { font-weight: 800; line-height: 1.25; }

a { color: inherit; }

::selection {
  background: var(--magenta);
  color: #1a0610;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  padding: 8px 12px;
  background: var(--cyan);
  color: #071016;
  border-radius: 8px;
  font-weight: 700;
}

.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px 28px;
  padding: 4px 22px;
  background: rgba(7, 6, 10, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 255, 242, 0.85), rgba(255, 43, 214, 0.85), transparent);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.logo-mark {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.logo-stack {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.logo-aura,
.logo-fill,
.logo-shape {
  position: absolute;
  inset: 0;
}

.logo-shape,
.logo-fill {
  -webkit-mask-image: url("../assets/dirt-monkey-logo-1360.webp");
  mask-image: url("../assets/dirt-monkey-logo-1360.webp");
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}

.logo-shape { background: #3dfff2; }

.logo-aura-pink {
  z-index: 0;
  filter:
    drop-shadow(0 0 6px rgba(255, 43, 214, 0.7))
    drop-shadow(0 0 14px rgba(255, 43, 214, 0.36));
}

.logo-aura-cyan {
  z-index: 1;
  filter:
    drop-shadow(0 0 1px rgba(230, 255, 254, 1))
    drop-shadow(0 0 4px rgba(61, 255, 242, 0.85))
    drop-shadow(0 0 8px rgba(45, 241, 255, 0.38));
}

.logo-fill {
  z-index: 2;
  background: linear-gradient(180deg, #ffffff 0%, #e9fffd 30%, #7dfff6 100%);
}

.logo-crisp {
  position: relative;
  z-index: 3;
  display: block;
  height: auto;
  opacity: 0;
}

.logo-mark-small .logo-crisp {
  height: 38px;
  width: auto;
}

.logo-mark-small .logo-aura-pink {
  filter:
    drop-shadow(0 0 2px rgba(255, 43, 214, 0.55))
    drop-shadow(0 0 4px rgba(255, 43, 214, 0.28));
}

.logo-mark-small .logo-aura-cyan {
  filter:
    drop-shadow(0 0 1px rgba(230, 255, 254, 1))
    drop-shadow(0 0 2px rgba(61, 255, 242, 0.7));
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.72rem;
  line-height: 1.4;
  text-decoration: none;
  color: #efeaf6;
}

nav a[hidden] { display: none; }

nav a:hover,
nav a[aria-current="page"] {
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(61, 255, 242, 0.75);
}

nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.sub-nav {
  justify-content: center;
  padding: 10px 14px 0;
}

.sub-nav a {
  color: var(--muted);
  font-size: 0.68rem;
}

.hero {
  position: relative;
  text-align: center;
  padding: 36px 20px 76px;
}

.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 64%;
  width: min(680px, 100%);
  height: min(680px, 90vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 43, 214, 0.14) 0%, rgba(61, 255, 242, 0.06) 38%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.hero > * { position: relative; z-index: 1; }

.hero-lockup {
  width: min(760px, 100%);
  margin: 0 auto;
}

.hero-wordmark {
  position: relative;
  display: block;
  width: min(680px, 84vw);
  margin: 0 auto;
}

.hero-wordmark .logo-crisp {
  width: 100%;
  height: auto;
}

.skwish-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: min(520px, 88vw);
  height: min(460px, 82vw);
  margin: 18px auto 0;
  animation: floaty 6.5s ease-in-out infinite;
  will-change: transform;
}

.skwish-stage.is-offscreen { animation-play-state: paused; }

.skwish-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 52%;
  width: 70%;
  height: 70%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 43, 214, 0.72) 0%, rgba(255, 43, 214, 0.28) 28%, rgba(255, 43, 214, 0.08) 52%, transparent 70%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}

.skwish-front {
  position: relative;
  z-index: 1;
  width: min(340px, 72%);
  height: auto;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 0 14px rgba(61, 255, 242, 0.45));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-hero {
  margin-top: 22px;
  min-width: 220px;
  padding-inline: 28px;
}

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 20px;
}

.not-found .lede { margin-top: 12px; }

.btn-demo {
  color: #f3fffe;
  background: transparent;
  border-color: var(--cyan);
  box-shadow: 0 0 0 rgba(61, 255, 242, 0);
}

.btn-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 22px rgba(61, 255, 242, 0.4);
  background: rgba(61, 255, 242, 0.08);
}

.btn-buy {
  color: #1a0610;
  background: var(--magenta);
  border-color: var(--magenta);
  box-shadow: 0 0 18px rgba(255, 43, 214, 0.28);
}

.btn-buy:hover {
  transform: translateY(-2px);
  background: #ff5ce2;
  box-shadow: 0 0 26px rgba(255, 43, 214, 0.6);
}

.btn-gumroad {
  color: #f3ffc4;
  background: transparent;
  border-color: var(--mint);
  box-shadow: 0 0 0 rgba(214, 255, 74, 0);
}

.btn-gumroad:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(214, 255, 74, 0.35);
  background: rgba(214, 255, 74, 0.08);
}

.btn:active { transform: translateY(0); }

.section { padding: 28px 0 84px; }

.wrap {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.wrap-narrow { width: min(760px, calc(100% - 36px)); }

.section-heading { text-align: center; margin: 0 auto 32px; }

.eyebrow {
  color: var(--cyan);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
  text-shadow: 0 0 12px rgba(61, 255, 242, 0.45);
}

h2,
.page-title,
.hero-lockup h1,
.hero-lockup .hero-line {
  font-size: clamp(1.65rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  color: var(--ink);
}

h2,
.page-title { margin: 8px 0 12px; }

.hero-lockup .hero-line { margin: 0 0 12px; }

.hero-lockup h1 { margin: 14px 0 0; }

.hero-lockup h1,
.hero-lockup .hero-line {
  text-shadow:
    0 0 6px rgba(255, 43, 214, 0.4),
    0 0 14px rgba(255, 43, 214, 0.22);
}

.lede {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.plugin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}

.plugin-feature {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.plugin-feature .plugin-card {
  width: min(100%, calc((100% - 44px) / 3));
}

/* Flex, not grid, so a short last row of any length stays centered. */
.plugin-grid.plugin-grid-rest {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.plugin-grid.plugin-grid-rest > .plugin-card { width: calc((100% - 44px) / 3); }

.free-plugins { margin-top: 42px; }

.free-plugins h3 {
  margin: 0 0 18px;
  text-align: center;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 800;
  line-height: 1.25;
}

.free-plugins[hidden] { display: none; }

.section-suite { padding-top: 8px; }

.suite-card {
  padding: 28px 22px 26px;
  border-radius: 28px;
  border: 1px solid rgba(61, 255, 242, 0.45);
  background:
    radial-gradient(circle at 12% 0%, rgba(255, 43, 214, 0.16), transparent 36%),
    radial-gradient(circle at 88% 100%, rgba(61, 255, 242, 0.12), transparent 32%),
    linear-gradient(180deg, #16101c, #0d0812);
  box-shadow:
    0 0 0 1px rgba(255, 43, 214, 0.2),
    0 0 36px rgba(61, 255, 242, 0.12);
}

.suite-plugins {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 8px 0 22px;
  padding: 0;
  list-style: none;
}

.suite-plugins li {
  width: calc((100% - 98px) / 8);
  text-align: center;
}

.suite-plugins p {
  margin: 8px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.suite-thumb {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(61, 255, 242, 0.35);
  background: #07060d;
  aspect-ratio: 1;
}

.suite-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #07060d;
}

.suite-offer { text-align: center; }

.suite-offer .price { font-size: 1.8rem; }

.suite-payments {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
}

.suite-save {
  margin: 6px 0 14px;
  color: #ffd6f6;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.suite-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.suite-actions .btn { min-width: 180px; }

.section-founders { padding-top: 8px; }

.founders-card { text-align: center; }

.founders-card .lede { max-width: 640px; margin: 0 auto; }

.founders-card .section-heading { margin-bottom: 22px; }

.founders-lineup {
  display: none;
  margin: 0 auto 14px;
  max-width: 640px;
  text-align: center;
  color: #ebe4f3;
  font-size: 0.86rem;
  line-height: 1.55;
}

.founders-bonus {
  margin: -6px auto 22px;
  max-width: 640px;
  text-align: center;
  color: #f3ffc4;
  font-size: 0.86rem;
  line-height: 1.55;
}

.founders-bonus strong { color: var(--mint); }

.founders-facts {
  margin: 0 auto 22px;
  padding: 0;
  list-style: none;
  max-width: 640px;
  text-align: center;
}

.founders-facts li {
  margin: 0;
  color: #ebe4f3;
  line-height: 1.55;
}

.founders-facts li + li { margin-top: 4px; }

.founders-countdown { margin: 0 auto 18px; }

.founders-countdown-label {
  margin: 0 0 12px;
  color: #d9fff8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.countdown-units {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}

.countdown-unit {
  margin: 0;
  padding: 12px 6px 10px;
  border-radius: 16px;
  border: 1px solid rgba(61, 255, 242, 0.35);
  background: #07060d;
}

.countdown-unit strong {
  display: block;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--cyan);
}

.countdown-unit span {
  display: block;
  margin-top: 4px;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--muted);
}

.founders-message {
  margin: 0 auto 18px;
  max-width: 520px;
  color: #ebe4f3;
  font-size: 0.86rem;
  line-height: 1.55;
}

.founders-count {
  margin: 0 0 18px;
  color: #f3ffc4;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

.founders-count strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--mint);
}

.founders-card .kit-form {
  max-width: 420px;
  margin: 0 auto;
  text-align: left;
}

.kit-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.kit-placeholder-label {
  align-self: flex-start;
  margin: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 210, 90, 0.14);
  color: #ffe08a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.kit-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kit-email {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(61, 255, 242, 0.55);
  background: #07060d;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
}

.kit-email::placeholder { color: #8f849e; }

.kit-form .btn {
  width: 100%;
  font-family: inherit;
}

.kit-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.flag-badge {
  display: inline-block;
  align-self: flex-start;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 43, 214, 0.75);
  color: #ffd6f6;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(255, 43, 214, 0.28);
}

.plugin-card {
  --accent: var(--cyan);
  --glow: rgba(61, 255, 242, 0.35);
  display: flex;
  flex-direction: column;
  padding: 14px 14px 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 16px 16px, #9a93a3 0 2.5px, #1a121c 3px 5.5px, transparent 6.5px),
    radial-gradient(circle at calc(100% - 16px) 16px, #9a93a3 0 2.5px, #1a121c 3px 5.5px, transparent 6.5px),
    radial-gradient(circle at 16px calc(100% - 16px), #9a93a3 0 2.5px, #1a121c 3px 5.5px, transparent 6.5px),
    radial-gradient(circle at calc(100% - 16px) calc(100% - 16px), #9a93a3 0 2.5px, #1a121c 3px 5.5px, transparent 6.5px),
    linear-gradient(180deg, #18111e, #100a14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.accent-cyan { --accent: #3dfff2; --glow: rgba(61, 255, 242, 0.38); }
.accent-magenta { --accent: #ff2bd6; --glow: rgba(255, 43, 214, 0.4); }
.accent-mint { --accent: #d6ff4a; --glow: rgba(214, 255, 74, 0.28); }

.plugin-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px var(--accent),
    0 16px 40px rgba(0, 0, 0, 0.35),
    0 0 32px var(--glow);
}

.plugin-art {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #09060d;
  line-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.plugin-art svg,
.plugin-art img,
.plugin-art > div,
.plugin-art > div svg {
  width: 100%;
  height: 100%;
  display: block;
}

.plugin-art img { object-fit: contain; }

.plugin-art.is-photo {
  aspect-ratio: auto;
  display: block;
  padding: 10px;
  background: #07060d;
  border: 1px solid rgba(61, 255, 242, 0.38);
  box-shadow:
    0 0 0 1px rgba(255, 43, 214, 0.16),
    0 0 22px rgba(61, 255, 242, 0.14);
}

.plugin-art.is-photo img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  border-radius: 8px;
  background: #07060d;
}

.pack-card .plugin-art { aspect-ratio: 1 / 1; }

.pack-card .plugin-art img { object-fit: cover; }

.section-packs {
  background: linear-gradient(180deg, rgba(61, 255, 242, 0.04), transparent 55%);
}

.packs-soon {
  display: none;
  text-align: center;
  color: #d9fff8;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  text-shadow: 0 0 12px rgba(61, 255, 242, 0.45);
}

.plugin-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 16px 8px 4px;
}

.plugin-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.plugin-heading h3 {
  min-width: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.plugin-heading h3::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  vertical-align: 2px;
}

.price {
  flex: none;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #d7ff8a;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .price {
    background: linear-gradient(90deg, #ffe56a, #8dffe0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.price-note {
  margin-top: -6px;
  color: #f3ffc4;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
}

.desc { color: #ebe4f3; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  border: 1px solid rgba(61, 255, 242, 0.45);
  color: #e7fffc;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.4;
}

.chip-soon {
  border-color: rgba(255, 210, 90, 0.5);
  color: #ffe9a8;
}

.chip-store {
  border-color: rgba(214, 255, 74, 0.45);
  color: #f3ffc4;
}

.plugin-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

.shop-error {
  padding: 16px;
  border: 1px dashed var(--magenta);
  border-radius: 12px;
  color: #ffd0f3;
}

.section-demos {
  background: linear-gradient(180deg, rgba(255, 43, 214, 0.05), transparent 70%);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 22px 20px 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(16, 10, 20, 0.85);
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--cyan);
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: 0 0 16px rgba(61, 255, 242, 0.35);
}

.steps li:nth-child(2)::before {
  border-color: var(--magenta);
  color: var(--magenta);
  box-shadow: 0 0 16px rgba(255, 43, 214, 0.4);
}

.steps li:nth-child(3)::before {
  border-color: var(--mint);
  color: var(--mint);
  box-shadow: 0 0 16px rgba(214, 255, 74, 0.28);
}

.steps h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  line-height: 1.35;
}

.steps p { color: var(--muted); }

.faq { display: flex; flex-direction: column; }

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--cyan);
  font-size: 1.5rem;
  line-height: 1;
  text-shadow: 0 0 10px rgba(61, 255, 242, 0.7);
}

.faq details[open] summary { color: #d9fff8; }
.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin: 0 0 18px;
  color: #ddd6e6;
}

.draft-label {
  display: inline-block;
  margin: 0 8px 4px 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 210, 90, 0.14);
  color: #ffe08a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-transform: uppercase;
  vertical-align: middle;
}

.site-footer {
  position: relative;
  padding: 36px 0 48px;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(61, 255, 242, 0.7), rgba(255, 43, 214, 0.7), transparent);
}

.footer-inner { text-align: center; }

.footer-brand .logo-crisp { height: 42px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 18px;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(61, 255, 242, 0.35);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
}

.footer-links a:hover {
  border-color: var(--magenta);
  color: #ffe0f8;
  box-shadow: 0 0 18px rgba(255, 43, 214, 0.35);
}

.legal {
  color: var(--dim);
  font-size: 0.78rem;
  line-height: 1.6;
}

/* Pages other than the shop */

.section-first { padding-top: 40px; }

.section-tight { padding-top: 0; }

.page-cta {
  margin-top: 28px;
  text-align: center;
}

.text-link {
  color: var(--cyan);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-cta .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.text-link:hover { color: #b9fffa; }

.btn-wide { min-width: 240px; }

.btn-placeholder {
  color: #ffe9a8;
  background: transparent;
  border: 1.5px dashed rgba(255, 210, 90, 0.6);
  cursor: default;
  text-align: center;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.merch-card .merch-name::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  vertical-align: 2px;
}

.merch-go {
  margin-top: auto;
  align-self: stretch;
}

.merch-card:hover .merch-go {
  box-shadow: 0 0 22px rgba(61, 255, 242, 0.4);
  background: rgba(61, 255, 242, 0.08);
}

.section-signup { padding-top: 8px; }

.signup-card .section-heading { margin-bottom: 22px; }

.signup-card .kit-form {
  max-width: 420px;
  margin: 0 auto;
}

.laylo-signup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.laylo-embed {
  width: 100%;
  max-width: 520px;
  padding: 6px;
  border-radius: 22px;
  border: 1px solid rgba(255, 43, 214, 0.45);
  background: rgba(13, 8, 18, 0.6);
  box-shadow: 0 0 22px rgba(255, 43, 214, 0.25), 0 0 48px rgba(61, 255, 242, 0.1);
}

.laylo-embed iframe {
  display: block;
  width: 100%;
  height: 580px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  /* Match Laylo's page (color-scheme normal). The site is dark, and a mismatch makes
     Chrome paint a white backdrop behind the iframe, hiding Laylo's white text. */
  color-scheme: normal;
}

.laylo-note {
  margin: 0;
  max-width: 420px;
  color: #d9fff8;
  font-size: 0.82rem;
}

.laylo-note a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shows-empty {
  padding: 22px;
  border: 1px dashed rgba(61, 255, 242, 0.45);
  border-radius: 18px;
  text-align: center;
  color: #d9fff8;
  font-weight: 700;
}

.shows-empty[hidden] { display: none; }

.merch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.merch-grid > li { display: flex; }

.merch-card {
  width: 100%;
  text-decoration: none;
}

.merch-art { aspect-ratio: 1 / 1; }

.merch-art img {
  object-fit: cover;
}

.merch-noimg {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: #09060d;
  color: var(--cyan);
  font-weight: 800;
  line-height: 1.2;
}

.merch-card .plugin-heading {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.merch-card .merch-name {
  min-width: 0;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.chip-presale {
  border-color: rgba(255, 43, 214, 0.75);
  color: #ffd6f6;
  box-shadow: 0 0 12px rgba(255, 43, 214, 0.25);
}

.merch-error { grid-column: 1 / -1; }

.merch-note {
  margin-top: 18px;
  text-align: center;
  color: var(--dim);
  font-size: 0.78rem;
}

.merch-note[hidden] { display: none; }

.app-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 26px;
}

.app-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 28px;
  border: 1px solid rgba(61, 255, 242, 0.4);
  background: radial-gradient(circle, rgba(255, 43, 214, 0.35), #0b0710 68%);
  box-shadow: 0 0 26px rgba(61, 255, 242, 0.16);
}

.app-art img {
  width: 78%;
  filter: drop-shadow(0 0 12px rgba(61, 255, 242, 0.45));
}

.app-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.app-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #ebe4f3;
}

.app-features strong { color: var(--cyan); }

.app-privacy {
  color: var(--muted);
  font-size: 0.82rem;
}

/* Home: the logo, the links, and Skwish Pong (js/pong.js) */

.home-top {
  padding: 22px 18px 56px;
  text-align: center;
}

.home-logo {
  display: block;
  width: min(460px, 74vw);
  margin: 6px auto 22px;
}

.home-logo .logo-crisp {
  width: 100%;
  height: auto;
}

.home-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto 26px;
  padding: 0;
  list-style: none;
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 150px;
  min-height: 48px;
  padding: 10px 20px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: rgba(7, 6, 10, 0.6);
  box-shadow: 0 0 10px var(--glow), inset 0 0 8px var(--glow);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 0.18s ease, background 0.18s ease, text-shadow 0.18s ease;
}

/* One click or tap goes straight to the link. The glow is CSS only, and the
   hover glow is only for devices that really hover, so a phone never spends
   a first tap just showing it. */
.home-link {
  position: relative;
  z-index: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.home-link:focus-visible,
.home-link:active {
  background: var(--glow);
  box-shadow: 0 0 24px var(--accent), inset 0 0 14px var(--glow);
  text-shadow: 0 0 10px var(--accent);
}

@media (hover: hover) {
  .home-link:hover {
    background: var(--glow);
    box-shadow: 0 0 24px var(--accent), inset 0 0 14px var(--glow);
    text-shadow: 0 0 10px var(--accent);
  }
}

.home-link-play::before {
  content: "";
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--accent);
}

/* Home countdown (js/countdown.js): big neon digits between the logo and the buttons. */
.home-countdown {
  max-width: 620px;
  margin: 0 auto 24px;
}

/* Home signup: Laylo's minimal embed, clipped to just the field and button.
   Laylo draws its pill about 24px to 65px down its frame (the focus ring
   draws inside that), with its fine print from about 72px down, so the frame shows
   16px to 72px and
   our line stands in. Laylo's pill also sits 7px left of center, so it moves over. */
.home-signup {
  max-width: 520px;
  margin: 0 auto 26px;
}

.home-signup-frame {
  height: 56px;
  overflow: hidden;
}

.home-signup-frame iframe {
  display: block;
  width: 100%;
  height: 300px;
  margin-top: -16px;
  transform: translateX(7px);
  border: 0;
  background: transparent;
  /* Same fix as .laylo-embed: Laylo's page is color-scheme normal. */
  color-scheme: normal;
}

.home-signup-legal {
  max-width: 440px;
  margin: 6px auto 0;
  color: var(--dim);
  font-size: 0.62rem;
  line-height: 1.5;
  opacity: 0.75;
}

.home-links-under { margin: 26px auto 0; }

.home-countdown[hidden],
.home-countdown-label[hidden] { display: none; }

.home-countdown-label {
  margin: 0 0 10px;
  color: #d9fff8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(61, 255, 242, 0.6);
}

.home-countdown-units {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-countdown-unit {
  margin: 0;
  padding: 10px 4px 8px;
  border-radius: 18px;
  border: 1.5px solid var(--accent);
  background: rgba(7, 6, 10, 0.6);
  box-shadow: 0 0 12px var(--glow), inset 0 0 10px var(--glow);
}

.home-countdown-unit:nth-child(1),
.home-countdown-unit:nth-child(4) { --accent: var(--cyan); --glow: rgba(61, 255, 242, 0.28); }

.home-countdown-unit:nth-child(2) { --accent: var(--magenta); --glow: rgba(255, 43, 214, 0.28); }

.home-countdown-unit:nth-child(3) { --accent: var(--mint); --glow: rgba(214, 255, 74, 0.24); }

.home-countdown-unit strong {
  display: block;
  color: #fff;
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.05;
  text-shadow: 0 0 6px var(--accent), 0 0 18px var(--accent), 0 0 36px var(--glow);
}

.home-countdown-unit span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
  .home-countdown-unit strong { animation: countdown-hum 3.2s ease-in-out infinite; }

  .home-countdown-unit:nth-child(2) strong { animation-delay: -0.8s; }

  .home-countdown-unit:nth-child(3) strong { animation-delay: -1.6s; }

  .home-countdown-unit:nth-child(4) strong { animation-delay: -2.4s; }
}

@keyframes countdown-hum {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.82; }
}

.pong {
  position: relative;
  width: min(960px, 100%);
  aspect-ratio: 2 / 1;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(61, 255, 242, 0.45);
  background:
    radial-gradient(ellipse 60% 50% at 50% 55%, rgba(255, 43, 214, 0.14), transparent 70%),
    radial-gradient(circle at 12% 0%, rgba(61, 255, 242, 0.1), transparent 40%),
    linear-gradient(180deg, #0f0915, #07060a);
  box-shadow:
    0 0 0 1px rgba(255, 43, 214, 0.2),
    0 0 40px rgba(61, 255, 242, 0.12);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.pong::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(61, 255, 242, 0.5) 0 1px, transparent 1.5px);
  background-size: 97px 89px, 151px 131px;
  background-position: 13px 7px, 61px 43px;
  opacity: 0.4;
  pointer-events: none;
}

.pong:focus { outline: none; }

.pong-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pong.is-playing .pong-canvas { touch-action: none; }

/* Before the script draws, and with no script, Skwish waits in the middle. */
.pong-skwish {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 21%;
  max-width: 200px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.pong-skwish img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(61, 255, 242, 0.5));
  -webkit-user-drag: none;
}

.pong.is-live .pong-skwish { visibility: hidden; }

.pong-start,
.pong-close {
  position: absolute;
  z-index: 2;
  min-height: 44px;
  border: 1.5px solid var(--magenta);
  border-radius: 999px;
  background: rgba(7, 6, 10, 0.9);
  box-shadow: 0 0 12px rgba(255, 43, 214, 0.3);
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: box-shadow 0.18s ease, background 0.18s ease;
}

.pong-start:hover,
.pong-start:focus-visible,
.pong-close:hover,
.pong-close:focus-visible {
  background: rgba(255, 43, 214, 0.2);
  box-shadow: 0 0 22px var(--magenta);
}

/* After a dub plate ends, Play again pulses so the next round is one tap away. */
.pong-start.is-glowing {
  border-color: var(--cyan);
  background: rgba(61, 255, 242, 0.14);
  animation: play-again-glow 1.4s ease-in-out infinite;
}

@keyframes play-again-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(61, 255, 242, 0.45), 0 0 22px rgba(255, 43, 214, 0.25); }
  50% { box-shadow: 0 0 26px var(--cyan), 0 0 44px rgba(255, 43, 214, 0.55); }
}

@media (prefers-reduced-motion: reduce) {
  .pong-start.is-glowing { animation: none; box-shadow: 0 0 24px var(--cyan); }
}

.pong-start {
  left: 50%;
  bottom: 14px;
  padding: 8px 18px;
  transform: translateX(-50%);
}

.pong-close {
  top: 12px;
  right: 12px;
  width: 44px;
  padding: 0;
  font-size: 1.1rem;
}

.pong-score {
  position: absolute;
  left: 50%;
  top: 10px;
  z-index: 1;
  display: flex;
  gap: 18px;
  transform: translateX(-50%);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  pointer-events: none;
}

.pong-you { color: var(--cyan); text-shadow: 0 0 14px rgba(61, 255, 242, 0.8); }

.pong-cpu { color: var(--magenta); text-shadow: 0 0 14px rgba(255, 43, 214, 0.8); }

.pong-msg {
  position: absolute;
  left: 50%;
  top: 34%;
  z-index: 1;
  width: 90%;
  transform: translate(-50%, -50%);
  color: var(--mint);
  font-size: clamp(1rem, 3vw, 1.5rem);
  font-weight: 800;
  text-shadow: 0 0 14px rgba(214, 255, 74, 0.6);
  pointer-events: none;
}

/* Win screen: the neon headline and the dub plate mini player. */
.pong-win {
  position: absolute;
  left: 50%;
  top: 47%;
  z-index: 2;
  width: min(92%, 600px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.pong-win-title {
  max-width: 26ch;
  margin: 0 auto 14px;
  color: var(--cyan);
  font-size: clamp(1rem, 3.2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.25;
  text-wrap: balance;
  text-shadow: 0 0 10px rgba(61, 255, 242, 0.85), 0 0 28px rgba(255, 43, 214, 0.55);
}

.dub-player {
  max-width: 460px;
  margin: 0 auto;
  padding: 10px 12px 10px 14px;
  border: 1.5px solid var(--magenta);
  border-radius: 18px;
  background: rgba(7, 6, 10, 0.88);
  box-shadow: 0 0 18px rgba(255, 43, 214, 0.35), inset 0 0 12px rgba(61, 255, 242, 0.08);
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  animation: dub-pop 0.32s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}

.dub-player[hidden] { display: none; }

@keyframes dub-pop {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.dub-credit {
  margin: 0 0 8px;
  color: var(--mint);
  font-size: clamp(0.62rem, 1.6vw, 0.76rem);
  letter-spacing: 0.03em;
  line-height: 1.35;
  text-align: left;
  text-shadow: 0 0 10px rgba(214, 255, 74, 0.45);
}

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

.dub-play,
.dub-close {
  flex: none;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  background: rgba(7, 6, 10, 0.9);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.dub-play {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--cyan);
  box-shadow: 0 0 12px rgba(61, 255, 242, 0.4);
}

.dub-play:disabled { opacity: 0.45; cursor: default; }

/* Pause bars while playing, a play triangle when paused. */
.dub-icon {
  width: 12px;
  height: 14px;
  border-left: 4px solid var(--cyan);
  border-right: 4px solid var(--cyan);
}

.dub-play.is-paused .dub-icon {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent var(--cyan);
}

.dub-close {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--magenta);
  font-size: 1rem;
  line-height: 1;
}

.dub-meter { flex: 1 1 auto; min-width: 0; }

.dub-bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.dub-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 8px var(--cyan);
}

.dub-time {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.dub-play:focus-visible,
.dub-close:focus-visible { box-shadow: 0 0 0 2px var(--cyan), 0 0 16px var(--cyan); outline: none; }

@media (hover: hover) {
  .dub-play:not(:disabled):hover { box-shadow: 0 0 20px var(--cyan); }
  .dub-close:hover { box-shadow: 0 0 18px var(--magenta); }
}

.dub-again {
  margin: 8px 0 0;
  color: var(--cyan);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px rgba(61, 255, 242, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  .dub-player { animation: none; }
}

.pong-help {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 1;
  padding: 0 64px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
  pointer-events: none;
}

.pong [hidden] { display: none; }

.help-touch { display: none; }

@media (pointer: coarse), (max-width: 720px) and (hover: none) {
  .help-touch { display: inline; }
  .help-keys { display: none; }
}

.sound-toggle {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(61, 255, 242, 0.45);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.sound-toggle[aria-pressed="true"] {
  border-color: var(--magenta);
  color: #ffd6f6;
  box-shadow: 0 0 16px rgba(255, 43, 214, 0.35);
}

/* Small playful touches for every page's menu */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  nav a:hover,
  .footer-links a:hover { animation: nav-hop 0.42s cubic-bezier(0.3, 1.6, 0.5, 1); }

  .brand:hover .logo-mark,
  .footer-brand:hover .logo-mark,
  .home-logo:hover { animation: jiggle 0.7s ease; }
}

@keyframes nav-hop {
  0% { transform: translateY(0); }
  40% { transform: translateY(-5px) rotate(-3deg); }
  70% { transform: translateY(1px) rotate(2deg); }
  100% { transform: none; }
}

@keyframes jiggle {
  0%, 100% { transform: none; }
  20% { transform: rotate(-3deg) scale(1.04); }
  40% { transform: rotate(2deg) scale(0.98, 1.03); }
  60% { transform: rotate(-1.5deg); }
  80% { transform: rotate(1deg); }
}

/* Page to page: the old page shrinks away and the new one pops in. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  .site-header { view-transition-name: site-header; }

  ::view-transition-old(root) { animation: page-out 0.24s ease-in both; }

  ::view-transition-new(root) { animation: page-in 0.42s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
}

@keyframes page-out {
  to { opacity: 0; transform: scale(0.94); filter: blur(4px) hue-rotate(60deg); }
}

@keyframes page-in {
  from { opacity: 0; transform: scale(1.04) translateY(14px); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 980px) {
  .plugin-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }

  .plugin-feature .plugin-card {
    width: min(100%, calc((100% - 22px) / 2));
  }

  .plugin-grid.plugin-grid-rest > .plugin-card { width: calc((100% - 22px) / 2); }

  .suite-plugins li { width: calc((100% - 42px) / 4); }

  .merch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  /* Not pinned on phones, and no blur to repaint while scrolling. */
  .site-header {
    position: relative;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 12px 2px;
    background: rgba(7, 6, 10, 0.94);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .logo-mark-small .logo-crisp { height: 32px; }

  nav {
    justify-content: center;
    gap: 0 8px;
  }

  nav a {
    font-size: 0.68rem;
    letter-spacing: 0;
  }

  html { scroll-padding-top: 12px; }

  .plugin-heading h3 { font-size: 1.15rem; }

  .plugin-grid { grid-template-columns: 1fr; }

  .plugin-feature .plugin-card { width: 100%; }

  .plugin-grid.plugin-grid-rest > .plugin-card { width: 100%; }

  .suite-plugins { gap: 10px; }

  .suite-plugins li { width: calc((100% - 30px) / 4); }

  .suite-plugins p { font-size: 0.66rem; }

  .founders-plugins { display: none; }

  .founders-lineup { display: block; }

  .section-packs { padding-bottom: 56px; }

  .section-packs .section-heading,
  .section-packs .pack-grid { display: none; }

  .packs-soon { display: block; }

  .merch-grid { gap: 12px; }

  .merch-card { padding: 10px 10px 14px; }

  .merch-card .plugin-body { padding: 12px 2px 2px; gap: 10px; }

  .merch-card .merch-name { font-size: 0.86rem; }

  .merch-card .merch-name::before { display: none; }

  .merch-go { padding-inline: 8px; font-size: 0.8rem; }

  .app-card { grid-template-columns: 1fr; }

  .app-art { width: min(220px, 70%); margin: 0 auto; }

  .sub-nav { gap: 0 6px; padding-top: 4px; }

  .is-home .site-header .brand { display: none; }

  .is-home .site-header { padding-top: 4px; }

  .home-top { padding: 14px 12px 40px; }

  .home-logo { margin-bottom: 16px; }

  .home-countdown { margin-bottom: 18px; }

  .home-countdown-units { gap: 8px; }

  .home-countdown-unit { padding: 8px 2px 6px; border-radius: 14px; }

  .home-countdown-unit strong { font-size: clamp(1.7rem, 9vw, 2.3rem); }

  .home-countdown-unit span { font-size: 0.6rem; letter-spacing: 0.08em; }

  .home-links { gap: 10px; margin-bottom: 20px; }

  .home-links-under { margin: 20px auto 0; }

  .home-signup { margin-bottom: 20px; }

  .home-signup-legal { max-width: 320px; font-size: 0.56rem; }

  .home-links li { flex: 1 1 calc(50% - 10px); max-width: 190px; }

  .home-link { width: 100%; min-width: 0; padding: 10px 4px; font-size: 0.8rem; letter-spacing: 0.05em; }

  .section-signup { padding-bottom: 56px; }

  .signup-card { padding: 24px 12px 20px; }

  .signup-card .section-heading { margin-bottom: 18px; }

  .laylo-embed { padding: 4px; }

  .pong { aspect-ratio: 1 / 1; border-radius: 24px; }

  .pong-skwish { width: 24%; }

  .hero { padding-top: 22px; }

  .wrap,
  .wrap-narrow { width: min(1120px, calc(100% - 28px)); }
}

/* Play: the Skwish Drop rhythm game */
nav a.nav-play {
  position: relative;
  isolation: isolate;
  gap: 6px;
  padding: 0 12px 0 10px;
  color: #ffe0f8;
  font-weight: 800;
}

nav a.nav-play::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--cyan);
  filter: drop-shadow(0 0 4px var(--cyan));
}

nav a.nav-play::after {
  content: "";
  position: absolute;
  inset: 7px 0;
  z-index: -1;
  border: 1.5px solid var(--magenta);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(255, 43, 214, 0.35), inset 0 0 10px rgba(255, 43, 214, 0.18);
}

nav a.nav-play:hover,
nav a.nav-play[aria-current="page"] {
  color: #1a0610;
  text-shadow: none;
  text-decoration: none;
}

nav a.nav-play:hover::after,
nav a.nav-play[aria-current="page"]::after {
  background: var(--magenta);
  box-shadow: 0 0 20px rgba(255, 43, 214, 0.6);
}

nav a.nav-play:hover::before,
nav a.nav-play[aria-current="page"]::before { border-left-color: #1a0610; filter: none; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  nav a.nav-play::after { animation: play-pulse 2.6s ease-in-out infinite; }
}

@keyframes play-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 43, 214, 0.35), inset 0 0 10px rgba(255, 43, 214, 0.18); }
  50% { box-shadow: 0 0 22px rgba(255, 43, 214, 0.65), inset 0 0 12px rgba(61, 255, 242, 0.25); }
}

.play-stage { padding: 14px 18px 0; }

.game {
  position: relative;
  width: min(1180px, 100%);
  height: clamp(520px, calc(100vh - 120px), 820px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(61, 255, 242, 0.32);
  background: #07060a;
  box-shadow: 0 0 40px rgba(255, 43, 214, 0.18), inset 0 0 30px rgba(61, 255, 242, 0.06);
}

.game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.game-tools {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.game-tool {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(61, 255, 242, 0.45);
  background: rgba(7, 6, 10, 0.8);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.game-tool[hidden] { display: none; }

.game-tool:hover { border-color: var(--cyan); box-shadow: 0 0 14px rgba(61, 255, 242, 0.35); }

.game-screen {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  /* The panel centers with auto margins, so a panel taller than the game scrolls from its top. */
  align-items: flex-start;
  justify-content: center;
  padding: 64px 18px 24px;
  overflow-y: auto;
  background: radial-gradient(ellipse at 50% 40%, rgba(18, 11, 22, 0.78), rgba(7, 6, 10, 0.94) 70%);
}

.game-screen[hidden] { display: none; }

.game-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(520px, 100%);
  margin: auto 0;
  text-align: center;
}

.game-title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.05;
  color: var(--ink);
  text-shadow: 0 0 8px rgba(255, 43, 214, 0.65), 0 0 22px rgba(255, 43, 214, 0.35);
}

.game-title-small { font-size: clamp(1.4rem, 4vw, 2rem); }

.game-song {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  /* A fixed line box, so the web font arriving does not move what is below. */
  line-height: 1.5rem;
  letter-spacing: 0.04em;
}

.game-song-name {
  color: var(--cyan);
  font-weight: 800;
  font-size: 1.05rem;
  text-shadow: 0 0 12px rgba(61, 255, 242, 0.45);
}

/* The song card on the start screen. Its art only shows with a song theme (see js/beatmap.js). */
.game-song-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.game-song-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.game-cover,
.game-song-title,
.game-song-logo { display: none; }

.game-cover img,
.game-song-title,
.game-song-logo {
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
}

/* The background video (or its still), put in when Start is pressed. It sits under the see-through canvas. */
.game-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.game-video.is-on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .game-video { transition: none; }
}

.game-video + .game-canvas { position: relative; }

/* Genre Snob: DIRT's gold and brown from the cover, with the site's neon pink. */
.game[data-theme="genre-snob"] {
  --gold: #ffc23d;
  border-color: rgba(255, 194, 61, 0.45);
  background: #0b0805;
  box-shadow: 0 0 40px rgba(255, 170, 40, 0.16), 0 0 28px rgba(255, 43, 214, 0.12), inset 0 0 30px rgba(255, 194, 61, 0.06);
}

[data-theme="genre-snob"] .game-screen {
  background: radial-gradient(ellipse at 50% 36%, rgba(52, 37, 12, 0.7), rgba(11, 8, 5, 0.95) 72%);
}

[data-theme="genre-snob"] .game-title {
  text-shadow: 0 0 8px rgba(255, 194, 61, 0.7), 0 0 24px rgba(255, 43, 214, 0.4);
}

[data-theme="genre-snob"] .game-skwish { display: none; }

[data-theme="genre-snob"] .game-song-card {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 194, 61, 0.4);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(48, 36, 18, 0.88), rgba(22, 12, 22, 0.88));
  box-shadow: 0 0 24px rgba(255, 170, 40, 0.16), inset 0 0 20px rgba(255, 43, 214, 0.08);
}

[data-theme="genre-snob"] .game-cover {
  display: block;
  flex: none;
  width: 168px;
}

[data-theme="genre-snob"] .game-cover img {
  display: block;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 194, 61, 0.55), 0 0 22px rgba(255, 170, 40, 0.35);
}

[data-theme="genre-snob"] .game-song-info {
  align-items: flex-start;
  flex: 1 1 auto;
}

[data-theme="genre-snob"] .game-song {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* The title and logo art say the song and artist, so their text is kept for screen readers only. */
[data-theme="genre-snob"] .game-song-name,
[data-theme="genre-snob"] .game-song-by {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

[data-theme="genre-snob"] .game-song-title {
  display: block;
  width: min(270px, 100%);
  filter: drop-shadow(0 0 10px rgba(255, 43, 214, 0.35));
}

[data-theme="genre-snob"] .game-song-logo {
  display: block;
  width: min(150px, 70%);
}

[data-theme="genre-snob"] .game-tool { border-color: rgba(255, 194, 61, 0.5); }

[data-theme="genre-snob"] .game-tool:hover { border-color: var(--gold); box-shadow: 0 0 14px rgba(255, 194, 61, 0.4); }

.game-skwish {
  display: block;
  width: clamp(72px, 12vh, 120px);
}

@media (max-height: 860px) {
  .game-skwish { display: none; }
}

.game-skwish img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(255, 43, 214, 0.55)) drop-shadow(0 0 6px rgba(61, 255, 242, 0.45));
  -webkit-user-drag: none;
}

@media (prefers-reduced-motion: no-preference) {
  .game-skwish img { animation: game-bounce 0.857s cubic-bezier(0.3, 0, 0.4, 1) infinite; }
}

@keyframes game-bounce {
  0%, 100% { transform: translateY(0) scale(1.06, 0.94); }
  45% { transform: translateY(-12px) scale(0.97, 1.04); }
}

.game-how {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.game-keys {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.game-keys span { color: var(--dim); font-weight: 500; }

.game-keys.help-touch { display: none; }

@media (pointer: coarse), (max-width: 720px) and (hover: none) {
  .game-keys.help-touch { display: flex; }
  .game-keys.help-keys { display: none; }
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2em;
  padding: 2px 8px;
  border: 1.5px solid var(--cyan);
  border-bottom-width: 3px;
  border-radius: 8px;
  background: rgba(61, 255, 242, 0.08);
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  line-height: 1.5;
  box-shadow: 0 0 10px rgba(61, 255, 242, 0.25);
}

.game-keys kbd:nth-of-type(1),
.game-keys kbd:nth-of-type(4),
.game-keys kbd:nth-of-type(5),
.game-keys kbd:nth-of-type(8) {
  border-color: var(--magenta);
  background: rgba(255, 43, 214, 0.1);
  box-shadow: 0 0 10px rgba(255, 43, 214, 0.3);
}

.game-start { margin-top: 4px; font-size: 1rem; }

.game-start:disabled { opacity: 0.75; cursor: progress; transform: none; }

.game-best { color: var(--mint); font-size: 0.8rem; font-weight: 700; }

.game-credit { color: var(--dim); font-size: 0.72rem; }

.game-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.game-actions .btn { min-width: 160px; }

.game-results { gap: 8px; }

.game-grade {
  font-size: clamp(4rem, 14vh, 7rem);
  font-weight: 800;
  line-height: 1;
  color: var(--cyan);
  text-shadow: 0 0 12px rgba(61, 255, 242, 0.8), 0 0 36px rgba(61, 255, 242, 0.45);
}

.game-results[data-grade="S"] .game-grade,
[data-grade="S"] .game-grade {
  color: var(--mint);
  text-shadow: 0 0 12px rgba(214, 255, 74, 0.85), 0 0 40px rgba(255, 43, 214, 0.55);
}

[data-grade="A"] .game-grade { color: var(--magenta); text-shadow: 0 0 12px rgba(255, 43, 214, 0.85), 0 0 36px rgba(255, 43, 214, 0.45); }

[data-grade="D"] .game-grade { color: var(--muted); text-shadow: 0 0 10px rgba(196, 184, 210, 0.4); }

.game-score {
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
}

.game-score-unit { color: var(--dim); font-size: 0.85rem; font-weight: 500; }

.game-flag {
  padding: 4px 14px;
  border-radius: 999px;
  border: 1px solid var(--mint);
  color: #f3ffc4;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: 0 0 14px rgba(214, 255, 74, 0.3);
}

.game-flag[hidden] { display: none; }

.game-status {
  margin: -4px 0 0;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.is-failed .game-status { color: #ff4d6d; text-shadow: 0 0 10px rgba(255, 77, 109, 0.6); }

.game-fc {
  padding: 6px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--mint);
  background: rgba(214, 255, 74, 0.1);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(214, 255, 74, 0.35);
}

.game-fc[hidden] { display: none; }

.game-fc[data-tier="marvelous"] {
  border-color: #ffffff;
  background: linear-gradient(90deg, rgba(61, 255, 242, 0.22), rgba(255, 43, 214, 0.22));
  box-shadow: 0 0 22px rgba(61, 255, 242, 0.45), 0 0 30px rgba(255, 43, 214, 0.35);
}

.game-fc[data-tier="great"] { border-color: #3dff8a; background: rgba(61, 255, 138, 0.1); box-shadow: 0 0 18px rgba(61, 255, 138, 0.35); }
.game-fc[data-tier="full"] { border-color: #3dbbff; background: rgba(61, 187, 255, 0.1); box-shadow: 0 0 18px rgba(61, 187, 255, 0.35); }

.game-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  width: 100%;
  margin: 4px 0 0;
}

.game-stats div {
  grid-column: span 2;
  padding: 7px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 11, 22, 0.85);
}

.game-stats div.stat-wide { grid-column: span 3; }

.game-stats dt { color: var(--dim); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; }

.game-stats dd { margin: 0; font-size: 1.05rem; font-weight: 800; }

.stat-marvelous dd { color: #ffffff; text-shadow: 0 0 8px rgba(61, 255, 242, 0.9), 0 0 14px rgba(255, 43, 214, 0.6); }
.stat-perfect dd { color: #d6ff4a; }
.stat-great dd { color: #3dff8a; }
.stat-good dd { color: #3dbbff; }
.stat-miss dd { color: #ff4d6d; }
.stat-holds dd { color: var(--cyan); }

.game-nudge[hidden] { display: none; }

/* Difficulty picker and options on the start screen */
.game-diffs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: min(560px, 100%);
  margin: 0;
  padding: 0;
  border: 0;
}

.diff {
  --diff: var(--cyan);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  padding: 8px 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(18, 11, 22, 0.85);
  cursor: pointer;
}

.diff-easy { --diff: #3dff8a; }
.diff-hard { --diff: var(--magenta); }
.diff-skwished { --diff: var(--mint); }

.diff input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.diff-name { color: var(--ink); font-size: 0.86rem; font-weight: 800; }

.diff-meta { color: var(--dim); font-size: 0.66rem; line-height: 1.35; }

.diff-meta [data-lv] { color: var(--diff); font-weight: 800; }

.diff:hover { border-color: var(--diff); }

.diff:has(input:checked) {
  border-color: var(--diff);
  background: color-mix(in srgb, var(--diff) 14%, #120b16);
  box-shadow: 0 0 16px color-mix(in srgb, var(--diff) 40%, transparent);
}

/* The tinted card is lighter, so its small text steps up to stay readable. */
.diff:has(input:checked) .diff-meta { color: var(--muted); }

.diff:has(input:checked) .diff-name { color: var(--diff); }

.diff:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

.game-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
}

.game-option {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.game-option select {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(61, 255, 242, 0.45);
  border-radius: 999px;
  background: #0d0911;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.game-option output {
  min-width: 4.8em;
  color: var(--ink);
  font-weight: 800;
  text-align: center;
}

.game-step {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(61, 255, 242, 0.45);
  border-radius: 999px;
  background: #0d0911;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.game-step:hover,
.game-option select:hover { border-color: var(--cyan); box-shadow: 0 0 12px rgba(61, 255, 242, 0.3); }

.game-calibrate { min-height: 44px; padding-top: 0; padding-bottom: 0; }

.cal-pad {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 150px;
  border: 2px dashed rgba(61, 255, 242, 0.5);
  border-radius: 22px;
  background: rgba(61, 255, 242, 0.04);
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

.cal-pad:active { background: rgba(61, 255, 242, 0.12); }

.cal-count { color: var(--ink); font-size: 2.2rem; font-weight: 800; text-shadow: 0 0 14px rgba(61, 255, 242, 0.6); }

.cal-hint { color: var(--dim); font-size: 0.74rem; }

.play-help { padding-top: 48px; }

.play-rules {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.play-rules li {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: 16px;
  background: var(--card);
  color: var(--muted);
  line-height: 1.8;
}

.play-rules li:nth-child(even) { border-left-color: var(--magenta); }

.play-rules strong { color: var(--ink); }

@media (max-width: 720px) {
  nav a.nav-play { gap: 5px; padding: 0 8px 0 7px; }

  nav a.nav-play::after { inset: 9px 0; }

  nav a.nav-play::before { border-width: 4px 0 4px 6px; }

  .play-stage { padding: 8px 8px 0; }

  .game {
    height: clamp(520px, calc(100vh - 110px), 760px);
    height: clamp(520px, calc(100svh - 110px), 760px);
    border-radius: 20px;
  }

  .game-tools { top: 8px; right: 8px; }

  .game-tool { padding: 8px 12px; font-size: 0.74rem; }

  .game-screen { padding: 60px 14px 18px; }

  .game-panel { gap: 10px; }

  .game-how { font-size: 0.8rem; }

  .game-actions .btn { min-width: 0; flex: 1 1 130px; }

  .game-title { font-size: clamp(1.7rem, 8vw, 2.4rem); }

  .game-skwish { display: none; }

  [data-theme="genre-snob"] .game-song-card { gap: 12px; padding: 10px; }

  [data-theme="genre-snob"] .game-cover { width: 112px; }

  [data-theme="genre-snob"] .game-song-logo { width: min(120px, 80%); }

  .game-diffs { grid-template-columns: repeat(2, 1fr); }

  .diff { min-height: 52px; }

  .game-option { font-size: 0.74rem; }

  .play-help { padding-top: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .skwish-stage { animation: none; }
}

/* ------------------------------------------------------------------
   Music and Shows pages, laid out like the app's Music and Shows tabs.
   ------------------------------------------------------------------ */

.music-title,
.shows-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow:
    0 0 6px rgba(255, 43, 214, 0.45),
    0 0 18px rgba(255, 43, 214, 0.25);
}

/* SKWISH card */
.upcoming {
  display: grid;
  grid-template-columns: 168px 1fr;
  align-items: center;
  gap: 22px;
  padding: 18px;
  border-radius: 24px;
  border: 2px solid var(--magenta);
  background:
    radial-gradient(circle at 100% 0%, rgba(61, 255, 242, 0.1), transparent 40%),
    linear-gradient(180deg, #1c1024, #120b16);
  box-shadow: 0 0 28px rgba(255, 43, 214, 0.28), inset 0 0 0 1px rgba(255, 43, 214, 0.2);
}

.upcoming-art {
  aspect-ratio: 1;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #ff5ce2, #b0128f 70%);
}

.upcoming-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
}

.upcoming-kicker {
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.upcoming-title {
  margin: 2px 0 2px;
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  letter-spacing: 0.06em;
  line-height: 1.05;
  color: #eafffd;
  text-shadow: 0 0 2px #fff, 0 0 12px rgba(61, 255, 242, 0.7);
}

.upcoming-meta {
  color: var(--ink);
  font-size: 1rem;
}

.upcoming-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.upcoming-actions .btn { min-width: 132px; }

.btn-presave,
.btn-follow {
  color: #120b16;
  background: var(--mint);
  border-color: var(--mint);
  box-shadow: 0 0 18px rgba(214, 255, 74, 0.3);
}

.btn-presave:hover,
.btn-follow:hover {
  transform: translateY(-2px);
  background: #e4ff7d;
  box-shadow: 0 0 26px rgba(214, 255, 74, 0.55);
}

/* Released songs */
.released-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 8px;
}

.released-title {
  margin: 0;
  color: var(--mint);
  text-shadow: 0 0 14px rgba(214, 255, 74, 0.3);
}

.released-note {
  color: var(--dim);
  font-size: 0.82rem;
}

.track-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.track {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.track:last-child { border-bottom: 0; }

.track-art {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line);
}

.track.is-current .track-art { box-shadow: 0 0 0 2px var(--magenta), 0 0 18px rgba(255, 43, 214, 0.4); }

.track-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.track-artist {
  color: var(--muted);
  font-size: 0.86rem;
}

.track-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pill::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.pill:hover { transform: translateY(-1px); }

.pill-spotify {
  color: #04140a;
  background: #1ed760;
}

.pill-spotify:hover { box-shadow: 0 0 16px rgba(30, 215, 96, 0.5); }

.pill-apple {
  color: #ffe1ea;
  border: 1.5px solid #fa4b6e;
}

.pill-apple::before { background: #fa4b6e; }

.pill-apple:hover { box-shadow: 0 0 16px rgba(250, 75, 110, 0.45); }

.play-btn {
  --progress: 0;
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--magenta);
  background: transparent;
  cursor: pointer;
}

.play-btn svg { grid-area: 1 / 1; }

.play-ring {
  width: 64px;
  height: 64px;
  transform: rotate(-90deg);
}

.ring-track,
.ring-fill {
  fill: none;
  stroke-width: 3;
}

.ring-track { stroke: rgba(255, 43, 214, 0.75); }

.ring-fill {
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-dasharray: 132;
  stroke-dashoffset: calc(132 * (1 - var(--progress)));
  opacity: 0;
}

.track.is-current .ring-track { stroke: rgba(255, 43, 214, 0.35); }
.track.is-current .ring-fill { opacity: 1; }

.play-icon {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.icon-pause { display: none; }
.play-btn.is-playing .icon-play { display: none; }
.play-btn.is-playing .icon-pause { display: inline; }
.play-btn.is-loading .play-ring { animation: ring-spin 0.9s linear infinite; }
.play-btn.is-loading .ring-track { stroke-dasharray: 34 98; stroke: var(--cyan); }

.play-btn:hover { filter: drop-shadow(0 0 10px rgba(255, 43, 214, 0.6)); }

@keyframes ring-spin {
  from { transform: rotate(-90deg); }
  to { transform: rotate(270deg); }
}

.track-status {
  min-height: 1.65em;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.connect-row .btn { min-width: 128px; }

/* Shows */
.bit-profile {
  display: flex;
  align-items: center;
  gap: 18px;
}

.bit-avatar {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--magenta);
  background: radial-gradient(circle at 50% 45%, #ff5ce2, #b0128f 70%);
  box-shadow: 0 0 18px rgba(255, 43, 214, 0.4);
}

.bit-name {
  margin: 0;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bit-followers { color: var(--muted); }

.bit-count {
  color: var(--mint);
  font-weight: 700;
  font-size: 0.88rem;
}

.bit-follow-wrap { margin: 22px 0 30px; }

.btn-follow {
  width: 100%;
  min-height: 54px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-style: dashed;
  border-color: #120b16;
  outline: 2px solid var(--mint);
}

.btn-follow::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  border-radius: 50%;
  color: var(--mint);
  background: #120b16;
  font-size: 1rem;
  line-height: 1;
}

.gigs-heading {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gig-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gig {
  display: grid;
  grid-template-columns: 104px 1fr;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #1c1024, #120b16);
}

.gig[hidden] { display: none; }

.gig-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  color: #120b16;
  background: var(--mint);
  line-height: 1.1;
  text-align: center;
}

.gig-month {
  color: #8a0a6f;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
}

.gig-day {
  font-size: 2.6rem;
  font-weight: 800;
}

.gig-dow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.gig-body { padding: 16px 20px 18px; }

.gig-venue {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.gig-city { color: var(--ink); }

.gig-lineup,
.gig-when {
  color: var(--muted);
  font-size: 0.82rem;
}

.gig-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 12px;
}

.gig-tix { min-width: 132px; }

.gig-rsvp {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--mint);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gigs-source {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.gigs-source:empty { display: none; }

@media (max-width: 720px) {
  .upcoming {
    grid-template-columns: 112px 1fr;
    gap: 14px;
    padding: 14px;
  }

  .upcoming-actions { margin-top: 10px; }

  .upcoming-actions .btn {
    flex: 1 1 120px;
    min-width: 0;
    padding-inline: 12px;
  }

  .upcoming-meta { font-size: 0.86rem; }

  .track {
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
  }

  .track-art { width: 72px; height: 72px; }

  .track-title { font-size: 1.05rem; }

  .play-btn, .play-ring { width: 56px; height: 56px; }

  .bit-avatar { width: 80px; height: 80px; }

  .btn-follow { letter-spacing: 0.06em; }

  .gig { grid-template-columns: 82px 1fr; }

  .gig-day { font-size: 2.1rem; }

  .gig-body { padding: 14px 14px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .play-btn.is-loading .play-ring { animation: none; }
  .pill:hover { transform: none; }
}
