:root {
  color-scheme: dark;
  --bg: #161816;
  --panel: #20231f;
  --border: #383c35;
  --ink: #f3f4ea;
  --sub: #b6baae;
  --lime: #d3ef79;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font: 16px/1.5 "DM Sans", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.48;
  cursor: default;
}
.icon {
  flex-shrink: 0;
  vertical-align: middle;
}
.skip {
  position: absolute;
  transform: translateY(-130%);
  z-index: 3;
  background: var(--lime);
  color: #181b13;
  padding: 8px;
}
.skip:focus {
  transform: none;
}
header {
  background: #191c18;
  border-bottom: 1px solid var(--border);
}
.topbar,
main {
  width: min(1192px, calc(100% - 104px));
  margin-inline: auto;
}
.topbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: clamp(32px, 6vw, 92px);
}
.brand {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  font-weight: 780;
  letter-spacing: -0.075em;
  font-size: 1.65rem;
  line-height: 1;
  white-space: nowrap;
}
.brand .icon {
  color: var(--lime);
  stroke-width: 1.85;
}
.brand-light {
  font-weight: 480;
}
nav {
  display: flex;
  gap: 8px;
  align-self: stretch;
  align-items: center;
}
nav a,
.help {
  color: #b9bdb2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 570;
}
nav a {
  padding: 8px 14px;
  border-radius: 6px;
}
nav a[aria-current] {
  color: var(--lime);
  background: #2b3125;
}
nav a:hover,
.help:hover {
  color: var(--ink);
}
.help {
  margin-left: auto;
}
main {
  padding: 43px 0 75px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.12;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.4rem, 4vw, 3.55rem);
  font-weight: 710;
  letter-spacing: -0.069em;
}
h2 {
  font-size: 1.7rem;
  font-weight: 680;
  letter-spacing: -0.05em;
}
h3 {
  font-size: 1.27rem;
  letter-spacing: -0.038em;
}
p {
  color: var(--sub);
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.page-head p,
.lede,
.deck-heading p {
  margin-top: 7px;
  color: var(--sub);
}
.lede {
  margin-bottom: 28px;
}
.btn {
  min-height: 42px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  border-radius: 7px;
  font-size: 0.91rem;
  line-height: 1.3;
  font-weight: 650;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  text-align: center;
}
.primary {
  background: var(--lime);
  color: #1b2214;
}
.primary:hover:enabled,
a.primary:hover {
  background: #e2ffa0;
}
.secondary {
  background: #292d26;
  border-color: #444a3e;
  color: var(--ink);
}
.secondary:hover:enabled,
a.secondary:hover {
  background: #363c31;
  border-color: #676e61;
}
.plain {
  background: none;
  color: var(--sub);
}
.plain:hover {
  color: var(--ink);
}
.pale {
  color: #21251c;
  background: #f1f3e5;
}
.pale:hover {
  background: white;
}
.glass {
  color: #f4f4e9;
  border-color: #6a735b;
  background: #252b21;
}
.glass:hover {
  background: #414938;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.actions form {
  margin: 0;
}
.eyebrow,
.genre {
  font: 600 0.77rem/1.4 var(--mono);
  letter-spacing: 0.095em;
  text-transform: uppercase;
  color: #b8c5a5;
}
.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 303px;
  border: 1px solid #434c39;
  border-radius: 12px;
  background-color: #273021;
  background-image: linear-gradient(
      90deg,
      rgba(32, 39, 29, 0.92),
      rgba(40, 47, 32, 0.24)
    ),
    linear-gradient(#acba8820 1px, transparent 1px),
    linear-gradient(90deg, #acba8820 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}
.hero-copy {
  position: relative;
  padding: 34px 38px;
  width: 57%;
  z-index: 1;
}
.feature {
  color: var(--lime);
}
.hero h2 {
  font-size: clamp(2.8rem, 5.1vw, 4.7rem);
  font-weight: 735;
  line-height: 0.99;
  letter-spacing: -0.076em;
  margin: 16px 0 10px;
  text-wrap: initial;
}
.hero h2 > span {
  color: var(--lime);
}
.hero-copy > p {
  font-size: 0.99rem;
  color: #d0d5c7;
  max-width: 32em;
}
.hero-meta {
  margin: 15px 0 20px;
  color: #d5ddc8;
}
.meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font: 500 0.81rem/1.3 var(--mono);
  color: var(--sub);
  letter-spacing: -0.025em;
}
.meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
}
.hero-meta .meta {
  color: #d5ddc8;
}
.hero-art {
  position: absolute;
  height: 150%;
  width: auto;
  right: -3%;
  top: -26%;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.collection {
  margin-top: 34px;
}
.collection-head,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 18px;
}
.heading-count {
  display: flex;
  align-items: center;
  gap: 11px;
}
.heading-count > span,
.pill {
  font: 600 0.79rem var(--mono);
  border: 1px solid #45493f;
  background: #242820;
  color: #c0c6b6;
  padding: 4px 8px;
  border-radius: 5px;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #1b1e19;
  padding: 0 12px;
  color: #aab1a0;
  width: 218px;
}
.search input {
  background: none;
  border: 0;
  outline: 0;
  min-width: 0;
  width: 100%;
  min-height: 36px;
  font-size: 0.88rem;
  padding: 0;
  color: var(--ink);
}
.search:focus-within {
  border-color: var(--lime);
}
input::placeholder {
  color: #a4a99c;
}
.filters {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 17px;
}
.filters button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.86rem;
  background: transparent;
  color: var(--sub);
}
.filters button[aria-pressed="true"] {
  color: var(--ink);
  background: #34382f;
  border-color: #4b5143;
}
.filters button:hover {
  color: var(--ink);
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.deck-tile {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
  transition: transform 0.18s, border-color 0.18s;
}
.deck-tile:hover {
  transform: translateY(-3px);
  border-color: #68705b;
}
.art-wrap {
  aspect-ratio: 2.33;
  overflow: hidden;
}
.cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-mix,
.cover-custom {
  background: #a8bd71;
  color: #263023;
  display: grid;
  place-items: center;
  background-image: repeating-radial-gradient(
    circle at 75% 140%,
    transparent 0 12px,
    #303d2740 13px 15px
  );
}
.cover-custom {
  color: #36304a;
  background-color: #c3b4cf;
}
.tile-body {
  padding: 17px 19px 16px;
}
.genre {
  color: #abb39f;
  font-size: 0.74rem;
  margin-bottom: 6px;
}
.tile-body h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}
.empty {
  border: 1px dashed var(--border);
  border-radius: 9px;
  text-align: center;
  padding: 38px 20px;
}
.empty p,
.instructions p {
  margin-top: 8px;
}
.empty > .icon {
  margin-bottom: 12px;
  color: var(--lime);
}
.narrow {
  max-width: 770px;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.87rem;
  color: #aeb6a3;
  margin-bottom: 18px;
}
.crumb a:hover,
.text-btn:hover {
  text-decoration: underline;
}
.panel,
.notice,
.mystery {
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel);
  padding: 25px;
}
.form-stack {
  display: grid;
  gap: 21px;
}
fieldset {
  min-width: 0;
  padding: 0;
  border: 0;
  margin: 0;
}
fieldset legend,
.form-stack label:not(.source) {
  font-weight: 600;
  color: var(--ink);
}
fieldset legend {
  margin-bottom: 10px;
}
.form-stack input:not([type="radio"]),
select {
  display: block;
  width: 100%;
  min-height: 45px;
  font-weight: 450;
  color: var(--ink);
  background-color: #191c18;
  border: 1px solid #4a5043;
  border-radius: 6px;
  margin-top: 7px;
  padding: 9px 12px;
}
select {
  appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, #b5bdac 50%),
    linear-gradient(135deg, #b5bdac 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.form-stack .hint,
.hint,
.count-note {
  font-size: 0.89rem;
  color: var(--sub);
  font-weight: 400;
  overflow-wrap: anywhere;
}
.form-stack label + .hint {
  margin-top: -15px;
}
.form-stack div > label + .hint {
  margin-top: 7px;
}
.optional {
  font-weight: 400;
  color: var(--sub);
}
.source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.source {
  position: relative;
  border: 1px solid var(--border);
  padding: 12px 8px;
  background: #191c18;
  color: var(--sub);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
}
.source input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.source:has(input:checked) {
  color: var(--lime);
  background: #2b3325;
  border-color: #99aa68;
}
.source:focus-within {
  outline: 2px solid var(--lime);
}
.form-status:empty {
  display: none;
}
.form-status {
  color: #e4d79a;
}
.text-btn {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  border: 0;
  color: var(--lime);
  font-size: 0.87rem;
  background: transparent;
  padding: 8px 0;
}
.match {
  display: block;
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 9px;
  margin: 5px 0;
  background: #272c24;
  text-align: left;
}
.deck-heading,
.pick-row {
  display: flex;
  align-items: center;
  gap: 20px;
}
.deck-heading h1 {
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.small-art,
.thumb {
  flex-shrink: 0;
  width: 120px;
  height: 100px;
  border-radius: 7px;
  overflow: hidden;
}
.toolbar {
  padding: 20px 0 28px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border);
}
.tracklist,
.pick-list {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0 16px;
}
.track,
.pick-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.track:last-child,
.pick-row:last-child {
  border-bottom: 0;
}
.track-num,
.year {
  font: 500 0.84rem var(--mono);
  color: var(--sub);
}
.track-num {
  min-width: 1.8rem;
}
.track-name,
.timeline-item div {
  display: grid;
  gap: 1px;
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.track-name span,
.timeline-item span {
  font-size: 0.9rem;
  color: var(--sub);
}
.year {
  white-space: nowrap;
  color: #cdd4c3;
}
.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #c3cdb5;
}
.notice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 15px 0;
  background: #2a3023;
}
.notice .btn {
  margin-left: auto;
}
.notice > span {
  font-size: 0.88rem;
}
.notice p {
  font-size: 0.94rem;
}
.print-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 20px;
  align-items: start;
}
.settings {
  position: sticky;
  top: 14px;
}
.inline,
.pick-track {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
input[type="checkbox"] {
  accent-color: var(--lime);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.cover-fetch .hint { margin: 0.6rem 0 0; }
.card-print-preview {
  margin: 0;
}
.card-print-preview figcaption {
  margin-bottom: 8px;
  color: var(--sub);
  font-size: 0.89rem;
}
.card-print-preview img {
  display: block;
  width: 100%;
  height: auto;
  padding: 6px;
  border-radius: 6px;
  background: #d7d8cb;
}
.pick-row .thumb {
  width: 76px;
  height: 58px;
}
.pick-info {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.pick-info h3 {
  margin-bottom: 5px;
}
.mystery {
  margin: 22px 0 26px;
  background: radial-gradient(ellipse at 50% 0%, #343e2c, #242921 70%);
  text-align: center;
  padding: 32px 20px;
}
.disc-mark {
  color: var(--lime);
  margin: 10px auto 15px;
}
.mystery h1,
.mystery h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  overflow-wrap: anywhere;
}
.mystery p {
  max-width: 31em;
  margin: 10px auto 20px;
}
.centered {
  justify-content: center;
}
.answer-year {
  font-size: clamp(3.4rem, 7vw, 5rem);
  letter-spacing: -0.08em;
  color: var(--lime);
  font-weight: 750;
  line-height: 1.1;
  margin: 7px 0;
}
.timeline {
  display: grid;
  gap: 8px;
}
.slot {
  font-size: 0.92rem;
  color: var(--lime);
  background: #20251d;
  border: 1px dashed #657250;
  border-radius: 7px;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.slot:hover {
  background: #303a28;
}
.timeline-item {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 7px;
  padding: 12px 15px;
  display: flex;
  gap: 16px;
  align-items: center;
}
.timeline-item strong {
  font: 650 1.22rem var(--mono);
  color: var(--lime);
}
.compact {
  font-size: 2.5rem;
}
.instructions {
  margin: 15px 0;
}
.instructions ol {
  margin: 15px 0 20px;
  padding-left: 1.4rem;
  color: var(--sub);
}
.instructions li {
  padding: 4px 0 4px 4px;
}
@media (min-width: 1450px) {
  main {
    padding-top: 50px;
  }
  .hero {
    min-height: 320px;
  }
  .hero-copy {
    padding: 40px;
  }
}
@media (max-width: 950px) {
  .topbar,
  main {
    width: calc(100% - 54px);
  }
  .topbar {
    gap: 24px;
  }
  .hero-art {
    right: -9%;
    height: 135%;
    top: -13%;
  }
  .hero-copy {
    padding: 29px;
    width: 58%;
  }
  .grid {
    gap: 13px;
  }
  .tile-body {
    padding: 14px;
  }
}
@media (max-width: 700px) {
  .topbar,
  main {
    width: calc(100% - 32px);
  }
  .topbar {
    flex-wrap: wrap;
    gap: 0;
    padding-top: 12px;
    min-height: 0;
  }
  .brand {
    font-size: 1.43rem;
  }
  .brand > .icon {
    width: 29px;
    height: 29px;
  }
  nav {
    order: 3;
    width: 100%;
    margin-top: 9px;
    gap: 2px;
    padding-bottom: 7px;
  }
  nav a {
    min-height: 39px;
    padding: 8px 12px;
  }
  .help {
    min-height: 35px;
  }
  main {
    padding: 26px 0 45px;
  }
  .page-head {
    align-items: flex-start;
    margin-bottom: 19px;
  }
  .page-head h1 {
    font-size: 2.5rem;
  }
  .page-head p {
    font-size: 0.92rem;
    max-width: 23em;
  }
  .page-head > .btn {
    padding: 10px;
    white-space: nowrap;
    min-height: 40px;
  }
  .hero {
    min-height: 276px;
  }
  .hero-copy {
    width: 67%;
    padding: 23px;
  }
  .hero h2 {
    font-size: 2.9rem;
  }
  .hero-art {
    height: 110%;
    right: -26%;
    top: -1%;
    opacity: 0.92;
  }
  .hero-copy > p {
    font-size: 0.9rem;
  }
  .collection {
    margin-top: 24px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .collection-head h2 {
    font-size: 1.4rem;
  }
  .search {
    width: 168px;
  }
  .print-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .settings {
    position: static;
  }
  .panel {
    padding: 18px;
  }
  .source-grid {
    grid-template-columns: 1fr;
  }
  .source {
    justify-content: flex-start;
    padding: 11px 15px;
  }
  .deck-heading {
    gap: 13px;
  }
  .small-art {
    width: 74px;
    height: 74px;
  }
  .deck-heading h1 {
    font-size: 2rem;
  }
  .pick-list {
    padding: 0 10px;
  }
  .pick-row {
    gap: 9px;
  }
  .pick-row .thumb {
    width: 48px;
    height: 48px;
  }
  .pick-row h3 {
    font-size: 1rem;
  }
  .pick-row .btn {
    padding: 9px;
    font-size: 0.84rem;
  }
}
@media (max-width: 480px) {
  .page-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 8px;
  }
  .page-head p {
    max-width: 17em;
  }
  .hero-copy {
    width: 100%;
    padding: 24px 18px;
    min-height: 265px;
  }
  .hero-copy > p {
    max-width: 62%;
  }
  .hero h2 {
    max-width: 70%;
    font-size: 2.65rem;
    line-height: 0.98;
  }
  .hero-art {
    height: 96%;
    right: -13%;
    top: 0;
    mask-image: linear-gradient(90deg, transparent 0 42%, #000 81%);
  }
  .hero-meta {
    margin: 12px 0 16px;
  }
  .hero .actions {
    gap: 8px;
  }
  .collection-head {
    flex-wrap: wrap;
    gap: 12px;
  }
  .search {
    width: 100%;
    order: 2;
  }
  .filters {
    margin-top: -4px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .art-wrap {
    aspect-ratio: 2.7;
  }
  .tile-body {
    padding: 14px 16px;
  }
  .track {
    gap: 8px;
  }
  .track-num {
    min-width: 1.2rem;
  }
  .toolbar {
    gap: 7px;
  }
  .btn {
    padding: 10px 13px;
  }
  h1.compact {
    font-size: 1.9rem;
  }
  .pill {
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
#share-panel label {
  flex: 1;
  min-width: min(100%, 230px);
}
.share-url {
  display: block;
  min-height: 40px;
  width: 100%;
  margin-top: 7px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #181b17;
  color: var(--ink);
  font: normal 0.9rem var(--mono);
}

.scanner .hint:empty {
  display: none;
}
.viewfinder {
  position: relative;
  background: #101210;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.viewfinder video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scan-frame {
  position: absolute;
  height: 72%;
  aspect-ratio: 1;
  inset: 0;
  margin: auto;
  border: 2px solid #d5f5a1;
  border-radius: 10px;
  box-shadow: 0 0 0 100vmax #10121059;
}

.song-link {
  font-weight: 700;
  width: fit-content;
  text-decoration: underline;
  text-decoration-color: #667359;
  text-underline-offset: 3px;
}
.song-link:hover, .edition-cards a:hover { color: var(--lime); }
.track-name .track-flags { color: var(--lime); font-size: .79rem; }
.song-section { margin: 30px 0; }
.song-section h2 { margin-bottom: 12px; }
.song-decks { list-style: none; padding: 0 16px; margin: 0; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); }
.song-decks li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 0; }
.song-decks li + li { border-top: 1px solid var(--border); }
.song-decks li > a { display: flex; align-items: center; gap: 10px; width: 100%; }
.song-decks li > a:hover { color: var(--lime); }
.song-decks li > a .icon:last-child { margin-left: auto; }
.song-decks .hint { display: block; }
.edition-cards { display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; text-decoration: underline; }
.print-status-controls { border-top: 1px solid var(--border); }
.print-status-controls legend { font-weight: 600; }
.print-status-controls .hint:empty { display: none; }
