:root {
  --bg: #05070a;
  --ink: #d8ffe6;
  --muted: #a9c9b6;
  --dim: #6f8f7c;
  --neon: #5dffa0;
  --neon-glow: #2bff7a88;
  --card: #0b1210;
  --line: #1a2e24;
  --deep: #07110c;
  --warn: #ffd56a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 620px at 50% -12%, #0d1f18 0%, var(--bg) 55%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
}
body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,.14) 0 1px,
    transparent 1px 3px
  );
  opacity: .3;
  mix-blend-mode: multiply;
}
a { color: var(--neon); }
.wrap { max-width: 980px; margin: 0 auto; padding: 1.4rem 1.1rem 3.5rem; position: relative; z-index: 1; }
.topnav { display: flex; justify-content: space-between; gap: .8rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.topnav a { text-decoration: none; font-size: .9rem; }
.kicker {
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .7rem;
  color: var(--dim);
  margin: 0 0 .55rem;
}
h1 {
  margin: 0;
  font-size: clamp(1.45rem, 4.8vw, 2.2rem);
  color: var(--neon);
  text-shadow: 0 0 14px var(--neon-glow);
  letter-spacing: .03em;
}
.lede { color: var(--muted); max-width: 40rem; margin: .7rem 0 0; }
.search-bar {
  display: flex;
  gap: .55rem;
  margin: 1.3rem 0 1rem;
  flex-wrap: wrap;
}
.search-bar input[type="search"] {
  flex: 1 1 16rem;
  min-width: 0;
  background: var(--deep);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: .7rem 1rem;
  font-size: 1rem;
}
.search-bar input:focus { outline: 2px solid var(--neon); outline-offset: 1px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border: 1px solid var(--neon);
  background: var(--neon);
  color: #04140c;
  font-weight: 700;
  border-radius: 999px;
  padding: .65rem 1.05rem;
  cursor: pointer;
  text-decoration: none;
  font-size: .95rem;
}
.btn.alt { background: transparent; color: var(--neon); }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn.ghost { border-color: var(--line); color: var(--muted); background: transparent; }
.note, .honest {
  color: var(--dim);
  font-size: .9rem;
  margin: .45rem 0 0;
}
.honest strong { color: var(--warn); font-weight: 650; }
.grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 1rem;
  margin-top: 1.1rem;
}
@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
}
.card {
  background: linear-gradient(180deg, #0e1814, var(--card));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.05rem 1.1rem;
}
.card h2 {
  margin: 0 0 .55rem;
  font-size: 1.05rem;
  letter-spacing: .04em;
  color: var(--ink);
}
.badge {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--dim);
  border-radius: 999px;
  padding: .18rem .55rem;
  margin-bottom: .55rem;
}
.badge.live { color: var(--neon); border-color: #2a5a3e; }
.badge.royalty { color: var(--warn); border-color: #5a4a20; }
.yt-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.yt-wrap iframe { width: 100%; height: 100%; border: 0; }
.yt-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000;
  color: #fff;
}
.yt-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.yt-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  background: rgba(0,0,0,.28);
  font: 650 .95rem/1.3 system-ui, sans-serif;
  letter-spacing: .02em;
}
.yt-play-icon {
  width: 68px;
  height: 48px;
  background: #f00;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,.45);
  position: relative;
}
.yt-play-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
}
.yt-poster:hover .yt-play,
.yt-poster:focus-visible .yt-play { background: rgba(0,0,0,.4); }
.yt-poster:hover .yt-play-icon,
.yt-poster:focus-visible .yt-play-icon { background: #cc0000; }
.yt-poster:focus-visible { outline: 2px solid #5dffa0; outline-offset: 2px; }
.controls { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.hud {
  display: grid;
  place-items: center;
  gap: .7rem;
}
#ring {
  width: min(100%, 420px);
  aspect-ratio: 1;
  display: block;
  border-radius: 50%;
  background: #05080a;
  border: 1px solid var(--line);
  box-shadow: 0 0 28px #0d2a1c88 inset;
}
.chord-readout {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--neon);
  text-shadow: 0 0 16px var(--neon-glow);
  min-height: 1.2em;
}
.subread { color: var(--dim); font-size: .85rem; text-align: center; }
.tour-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .7rem; align-items: center; }
.tour-row label { color: var(--muted); font-size: .85rem; margin-right: .2rem; }
.history {
  margin-top: 1.2rem;
  list-style: none;
  padding: 0;
  margin-left: 0;
}
.history li {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
  color: var(--muted);
}
.history li span.kind { color: var(--neon); font-weight: 650; }
.ad-slot {
  margin-top: 1.3rem;
  border: 1px dashed #2a3d33;
  border-radius: 12px;
  min-height: 90px;
  display: grid;
  place-items: center;
  color: var(--dim);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: #070c0a;
}
.kofi {
  margin-top: .9rem;
  text-align: center;
}
.kofi .btn { font-weight: 650; font-size: .88rem; padding: .5rem .95rem; }
.footer {
  margin-top: 2rem;
  color: var(--dim);
  font-size: .85rem;
  text-align: center;
}
.unlock {
  margin: 1rem 0;
  padding: .85rem 1rem;
  border: 1px solid #2a5a3e;
  border-radius: 12px;
  background: #0a1611;
}
.unlock[hidden] { display: none !important; }
audio { width: 100%; margin-top: .65rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .touring #ring { transition: none !important; }
}

.gauge-a11y {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
  width: min(100%, 420px);
  margin: .35rem 0 .2rem;
  text-align: center;
  font-size: clamp(1rem, 3.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--ink);
}
.gauge-a11y .g-tag {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: .15rem;
}
#ring {
  width: min(100%, 420px);
}

.scheme-row {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .55rem;
  align-items: center;
}
.scheme-row label { color: var(--muted); font-size: .85rem; margin-right: .2rem; }
.scheme-select {
  background: var(--deep);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: .4rem .85rem;
  font-size: .85rem;
  max-width: 14rem;
}
.scheme-select:focus { outline: 2px solid var(--neon); outline-offset: 1px; }
.scheme-label {
  color: var(--dim);
  font-size: .78rem;
  letter-spacing: .04em;
}
@media (prefers-reduced-motion: reduce) {
  .scheme-label::after { content: " · static"; }
}

/* QA a11y: real visually-hidden (replaces left:-9999px) */
.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;
}
.tour-heading {
  margin: 0 .2rem 0 0;
  color: var(--muted);
  font-size: .85rem;
  font-weight: inherit;
}
