:root {
  --ink: #f8efe0;
  --muted: #cdbda6;
  --coal: #100d0b;
  --charcoal: #181614;
  --panel: rgba(28, 23, 19, 0.82);
  --panel-strong: rgba(17, 15, 14, 0.94);
  --amber: #f0b45d;
  --amber-2: #d8893e;
  --parchment: #f2eadc;
  --parchment-strong: #fffaf1;
  --parchment-ink: #1d1814;
  --parchment-muted: #584c40;
  --teal: #5aa6a1;
  --crimson: #a64638;
  --moss: #7f965d;
  --line: rgba(248, 239, 224, 0.16);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
  --radius: 8px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 130px;
}

body {
  margin: 0;
  background: var(--coal);
  color: var(--ink);
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 88px;
}

.topbar {
  align-items: center;
  background: rgba(11, 10, 9, 0.76);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  min-height: 68px;
  padding: 14px clamp(18px, 4vw, 54px);
  position: fixed;
  right: 0;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
}

.brand,
.nav-links,
.hero-actions,
.filter-row,
.signup-row,
.player-bar,
.queue-head,
.queue-actions,
.section-head {
  align-items: center;
  display: flex;
}

.brand {
  gap: 11px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 50% 50%, var(--coal) 0 20%, transparent 22%),
    conic-gradient(from 22deg, var(--amber), var(--teal), var(--crimson), var(--amber));
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: inline-block;
  width: 30px;
}

.nav-links {
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.nav-badge {
  color: var(--amber);
  font-size: 0.66rem;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.01em;
  transform: translateY(-0.45em);
}

.nav-links a:hover,
.creator-link:hover {
  color: var(--ink);
}

.creator-link {
  border: 1px solid rgba(240, 180, 93, 0.36);
  color: var(--amber);
  padding: 10px 13px;
}

.hero {
  min-height: 54vh;
  padding: 118px clamp(18px, 4vw, 54px) 34px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: clamp(18px, 4vw, 48px);
  align-items: end;
  overflow: hidden;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(16, 13, 11, 0.96), rgba(16, 13, 11, 0.66) 39%, rgba(16, 13, 11, 0.18) 72%),
    linear-gradient(180deg, rgba(16, 13, 11, 0.2), var(--coal));
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.hero-bg {
  background-image: url("/assets/tavern-hero.png");
  background-position: center;
  background-size: cover;
  inset: 0;
  position: absolute;
  z-index: -2;
}

.hero-content {
  max-width: 680px;
}

.eyebrow,
.panel-label {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 11px;
  text-transform: uppercase;
}

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

h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 5.4vw, 5.4rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: 0;
  margin-bottom: 22px;
  max-width: 780px;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.3vw, 3.3rem);
  line-height: 1.02;
  letter-spacing: 0;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.08rem;
  margin-bottom: 8px;
}

.hero-copy {
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.55;
  max-width: 520px;
}

.hero-plain-note {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 14px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-action,
.ghost-action,
.filter-chip,
.icon-button {
  border: 0;
  cursor: pointer;
}

.primary-action,
.ghost-action {
  min-height: 46px;
  padding: 13px 17px;
}

.primary-action {
  background: var(--amber);
  color: #20130b;
  font-weight: 800;
}

.primary-action:hover {
  background: #ffc777;
}

.primary-action.compact,
.ghost-action.compact {
  min-height: 42px;
  white-space: nowrap;
}

.ghost-action {
  background: rgba(248, 239, 224, 0.08);
  border: 1px solid var(--line);
  color: var(--ink);
}

.ghost-action:hover,
.filter-chip:hover {
  border-color: rgba(240, 180, 93, 0.5);
}

.now-panel,
.queue-panel,
.track-card,
.plan-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.now-panel {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 20px;
}

.now-panel.compact {
  box-shadow: none;
  padding: 16px;
}

.now-panel.compact span {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.now-panel h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.now-panel p:last-child {
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 0;
}

.round-play,
.icon-button {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.round-play {
  aspect-ratio: 1;
  background: var(--amber);
  border: 0;
  border-radius: 50%;
  color: #1b120a;
  cursor: pointer;
  flex: 0 0 auto;
  width: 58px;
}

.round-play span {
  border-bottom: 10px solid transparent;
  border-left: 15px solid currentColor;
  border-top: 10px solid transparent;
  display: block;
  margin-left: 4px;
  width: 0;
}

.round-play.is-playing span {
  border: 0;
  border-left: 5px solid currentColor;
  border-right: 5px solid currentColor;
  height: 20px;
  margin-left: 0;
  width: 16px;
}

.round-play.small {
  width: 44px;
}

.round-play.small span {
  border-bottom-width: 8px;
  border-left-width: 12px;
  border-top-width: 8px;
}

.round-play.small.is-playing span {
  border-bottom-width: 0;
  border-left-width: 4px;
  border-right-width: 4px;
  border-top-width: 0;
  height: 16px;
  width: 13px;
}

.library-band,
.rights-band,
.signup-band {
  padding: 72px clamp(18px, 4vw, 54px);
}

.library-band {
  background:
    linear-gradient(180deg, #100d0b, #171210 36%, #111413);
  padding-top: 54px;
}

.section-kicker {
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 0 0;
  max-width: 520px;
}

.soundpad-label {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

.soundpad-label span {
  color: var(--amber);
  font-size: 0.68rem;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  transform: translateY(-0.35em);
}

.section-head {
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.search-wrap {
  display: grid;
  gap: 8px;
  min-width: min(360px, 100%);
}

label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

input,
textarea,
select {
  background: rgba(248, 239, 224, 0.08);
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

select option {
  color: #14110f;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

.filter-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-group {
  display: grid;
  gap: 6px;
}

.filter-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-row {
  background:
    linear-gradient(180deg, rgba(46, 31, 22, 0.72), rgba(18, 14, 11, 0.86)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 44px);
  border: 1px solid rgba(240, 180, 93, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 250, 241, 0.06), 0 16px 34px rgba(0, 0, 0, 0.18);
  flex-wrap: nowrap;
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  padding: 8px;
  scrollbar-color: rgba(240, 180, 93, 0.42) rgba(248, 239, 224, 0.06);
}

.filter-chip {
  background:
    linear-gradient(180deg, rgba(35, 25, 19, 0.9), rgba(20, 16, 13, 0.96));
  border: 1px solid rgba(205, 189, 166, 0.18);
  color: var(--muted);
  flex: 0 0 auto;
  font-weight: 800;
  min-height: 38px;
  min-width: 92px;
  padding: 9px 14px;
  position: relative;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.filter-chip.is-active {
  background:
    linear-gradient(180deg, rgba(45, 72, 67, 0.86), rgba(24, 38, 35, 0.96));
  border-color: rgba(90, 166, 161, 0.72);
  box-shadow: inset 0 -3px 0 rgba(240, 180, 93, 0.72), 0 10px 24px rgba(0, 0, 0, 0.2);
  color: var(--ink);
  transform: translateY(-1px);
}

.filter-chip:hover {
  border-color: rgba(240, 180, 93, 0.44);
  color: var(--ink);
}

.access-filter-row {
  background:
    linear-gradient(180deg, rgba(19, 28, 26, 0.72), rgba(14, 18, 17, 0.9)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 44px);
  border-color: rgba(90, 166, 161, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 250, 241, 0.04);
}

.access-chip {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  min-height: 34px;
  min-width: 0;
  padding: 7px 11px;
}

.filter-count {
  background: rgba(248, 239, 224, 0.1);
  border: 1px solid rgba(205, 189, 166, 0.16);
  color: var(--ink);
  font-size: 0.72rem;
  line-height: 1;
  min-width: 26px;
  padding: 4px 6px;
  text-align: center;
}

.downloads-filter-stack {
  margin-bottom: 18px;
}

.library-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
}

.catalog-panel {
  min-width: 0;
  max-width: 1060px;
}

.catalog-toolbar {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.catalog-toolbar .text-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.catalog-scroll {
  --catalog-row-height: 318px;
  background:
    linear-gradient(180deg, rgba(17, 14, 12, 0.72), rgba(17, 14, 12, 0.38));
  border: 1px solid rgba(205, 189, 166, 0.12);
  max-height: clamp(590px, calc(100vh - 160px), calc((var(--catalog-row-height) * 3) + 28px));
  min-height: min(590px, calc(100vh - 160px));
  overflow-y: auto;
  padding: 10px;
  scrollbar-color: rgba(240, 180, 93, 0.42) rgba(248, 239, 224, 0.06);
  scrollbar-gutter: stable;
}

.track-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  justify-content: start;
  max-width: 1060px;
}

.track-card {
  display: flex;
  flex-direction: column;
  inline-size: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  transition: background 160ms ease, border-color 160ms ease;
}

.track-card.is-current {
  background: rgba(35, 29, 23, 0.92);
  border-color: rgba(240, 180, 93, 0.58);
}

.track-main {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px 10px 0;
}

.track-title-row {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
}

.track-title-row h3 {
  font-size: 1rem;
  line-height: 1.14;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.license-pill {
  border: 1px solid rgba(90, 166, 161, 0.35);
  color: var(--teal);
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  max-width: 100%;
  padding: 5px 7px;
}

.license-pill.premium {
  border-color: rgba(240, 180, 93, 0.38);
  color: var(--amber);
}

.placeholder-pill {
  border: 1px solid rgba(205, 189, 166, 0.22);
  color: rgba(205, 189, 166, 0.78);
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 7px;
  white-space: nowrap;
}

.track-card p {
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 0;
}

.track-kind {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 800;
}

.track-cover {
  aspect-ratio: 16 / 9;
  background: rgba(248, 239, 224, 0.06);
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
  overflow: hidden;
  position: relative;
}

.track-cover img {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
  width: 100%;
}

.track-card:hover .track-cover img {
  filter: saturate(1.08);
  transform: scale(1.025);
}

.track-card.is-premium .track-cover img {
  filter: brightness(0.58) saturate(0.88);
}

.track-card.is-premium:hover .track-cover img {
  filter: brightness(0.66) saturate(1);
}

.track-card.is-premium .cover-pill {
  border-color: rgba(240, 180, 93, 0.46);
  color: var(--amber);
}

.track-card.is-project .cover-pill {
  border-color: rgba(90, 166, 161, 0.48);
  color: var(--teal);
}

.track-access-note {
  color: rgba(205, 189, 166, 0.78);
  font-size: 0.78rem;
}

.track-card.is-premium .track-access-note {
  color: rgba(240, 180, 93, 0.86);
}

.track-card.is-project .track-access-note {
  color: rgba(129, 211, 202, 0.86);
}

.cover-play {
  bottom: 10px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  left: 10px;
  position: absolute;
}

.cover-pill {
  background: rgba(12, 10, 9, 0.76);
  position: absolute;
  right: 10px;
  top: 10px;
}

.meta-row,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-row span {
  background: rgba(248, 239, 224, 0.045);
  color: var(--muted);
  font-size: 0.74rem;
  padding: 4px 6px;
}

.card-actions {
  align-items: center;
  justify-content: flex-start;
}

.track-footer {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 10px;
}

.text-button {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  min-height: 36px;
  padding: 7px 9px;
}

.text-button:hover {
  border-color: rgba(240, 180, 93, 0.52);
}

.text-button[disabled] {
  color: rgba(205, 189, 166, 0.52);
  cursor: not-allowed;
}

.text-button.slim {
  min-height: 34px;
  padding: 7px 9px;
}

.text-button.strong {
  border-color: rgba(240, 180, 93, 0.34);
  color: var(--amber);
}

.free-note {
  align-items: center;
  color: rgba(205, 189, 166, 0.76);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  min-height: 38px;
}

.queue-panel {
  padding: 14px;
  position: sticky;
  top: 92px;
}

.queue-head {
  align-items: flex-start;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.queue-head h2 {
  font-size: 1.28rem;
}

.queue-actions {
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.icon-button {
  aspect-ratio: 1;
  background: rgba(248, 239, 224, 0.08);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  width: 36px;
}

.queue-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.queue-list li {
  align-items: center;
  border-left: 3px solid var(--teal);
  color: var(--muted);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 7px 0 7px 10px;
}

.queue-list li.is-current {
  border-left-color: var(--amber);
}

.queue-list li.empty-queue {
  display: block;
}

.queue-list strong {
  color: var(--ink);
  display: block;
}

.queue-list small {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
}

.queue-track {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: 0;
  padding: 0;
  text-align: left;
}

.queue-track:hover strong,
.queue-list li.is-current strong {
  color: var(--amber);
}

.queue-index {
  align-items: center;
  border: 1px solid rgba(205, 189, 166, 0.22);
  color: rgba(205, 189, 166, 0.82);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.queue-remove {
  font-size: 1rem;
  width: 32px;
}

.scene-directory-band {
  background:
    radial-gradient(circle at 90% 0%, rgba(90, 166, 161, 0.14), transparent 34%),
    linear-gradient(180deg, #111413, #171210);
  padding: 64px clamp(18px, 4vw, 54px);
}

.scene-directory-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scene-directory-card {
  background: rgba(255, 250, 241, 0.08);
  border: 1px solid rgba(205, 189, 166, 0.16);
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 16px;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.scene-directory-card:hover {
  background: rgba(255, 250, 241, 0.12);
  border-color: rgba(240, 180, 93, 0.42);
  transform: translateY(-2px);
}

.scene-directory-card span {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.scene-directory-card small {
  color: var(--muted);
  line-height: 1.45;
}

.scene-page .app-shell {
  padding-bottom: 0;
}

.scene-hero {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(16, 13, 11, 0.96), rgba(16, 13, 11, 0.76) 48%, rgba(16, 13, 11, 0.36)),
    url("/assets/tavern-hero.png") center / cover;
  display: grid;
  gap: clamp(24px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  min-height: 58vh;
  padding: 132px clamp(18px, 4vw, 54px) 54px;
}

.scene-hero h1 {
  max-width: 820px;
}

.scene-hero-card {
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.94), rgba(226, 205, 170, 0.9));
  border: 1px solid rgba(115, 72, 35, 0.46);
  color: #1d1814;
  display: grid;
  gap: 10px;
  padding: 20px;
}

.scene-hero-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
}

.scene-hero-card p {
  color: #584c40;
  line-height: 1.45;
  margin: 0;
}

.scene-copy-band {
  background: #f2eadc;
  color: #1d1814;
  display: grid;
  gap: clamp(24px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  padding: 46px clamp(18px, 4vw, 54px);
}

.scene-copy-band p {
  color: #584c40;
  font-size: 1.05rem;
  line-height: 1.58;
  margin: 0 0 12px;
}

.scene-copy-band aside {
  background: rgba(255, 250, 241, 0.72);
  border: 1px solid rgba(29, 24, 20, 0.12);
  display: grid;
  gap: 10px;
  padding: 18px;
}

.scene-copy-band aside strong {
  font-size: 1.05rem;
}

.scene-copy-band aside p {
  font-size: 0.96rem;
}

.scene-tracks-band {
  background:
    radial-gradient(circle at 10% 0%, rgba(240, 180, 93, 0.12), transparent 34%),
    linear-gradient(180deg, #171210, #100d0b);
  padding: 64px clamp(18px, 4vw, 54px);
}

.scene-track-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.scene-track-card {
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  overflow: hidden;
}

.scene-track-card img {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  width: 100%;
}

.scene-track-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.scene-track-body h2 {
  font-size: 1.15rem;
  margin: 0;
}

.scene-track-body p {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.scene-track-body audio {
  width: 100%;
}
.use-rules-band {
  background: #f2eadc;
  color: #1d1814;
  padding: 38px clamp(18px, 4vw, 54px);
}

.use-rules-band h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  margin-bottom: 16px;
}

.use-rules-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.use-rule-card {
  background: rgba(255, 250, 241, 0.76);
  border: 1px solid rgba(29, 24, 20, 0.12);
  display: grid;
  gap: 8px;
  padding: 16px;
}

.use-rule-card.is-primary {
  background: rgba(240, 180, 93, 0.12);
  border-color: rgba(240, 180, 93, 0.38);
}

.use-rule-card strong {
  color: #1d1814;
}

.use-rule-card span {
  color: #584c40;
  line-height: 1.45;
}

.about-band {
  align-items: center;
  background:
    radial-gradient(circle at 15% 0%, rgba(240, 180, 93, 0.16), transparent 34%),
    linear-gradient(180deg, #171210, #100d0b);
  display: grid;
  gap: clamp(24px, 5vw, 64px);
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.65fr);
  padding: 72px clamp(18px, 4vw, 54px);
}

.about-copy {
  max-width: 760px;
}

.about-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.55;
  margin: 0;
}

.about-card {
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.95), rgba(226, 205, 170, 0.9));
  border: 1px solid rgba(115, 72, 35, 0.46);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34), inset 0 0 0 5px rgba(115, 72, 35, 0.07);
  color: #1d1814;
  display: grid;
  gap: 14px;
  padding: 22px;
  position: relative;
  transform: rotate(1deg);
}

.about-card::before {
  background: rgba(115, 72, 35, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(115, 72, 35, 0.12);
  content: "";
  height: 10px;
  left: 50%;
  position: absolute;
  top: 12px;
  transform: translateX(-50%);
  width: 10px;
}

.about-card strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.05;
}

.about-card p {
  color: #584c40;
  line-height: 1.5;
  margin: 0;
}

.about-card .hero-actions {
  flex-wrap: wrap;
  margin-top: 4px;
}

.rights-band {
  background: #f2eadc;
  color: #1d1814;
}

.rights-band .eyebrow {
  color: #80602c;
}

.rights-band .primary-action {
  background: #1f5b5a;
  color: #f7efe0;
}

.license-guide {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}

.license-guide div {
  background: rgba(255, 250, 241, 0.78);
  border: 1px solid rgba(29, 24, 20, 0.12);
  padding: 15px;
}

.license-guide strong,
.license-guide span {
  display: block;
}

.license-guide strong {
  color: #1d1814;
  margin-bottom: 5px;
}

.license-guide span {
  color: #584c40;
  line-height: 1.4;
}

.license-rules {
  background: rgba(255, 250, 241, 0.72);
  border: 1px solid rgba(29, 24, 20, 0.12);
  color: #1d1814;
  margin: 0 0 24px;
  padding: 18px;
}

.license-rules h3 {
  font-size: 1.08rem;
  margin: 0 0 10px;
}

.license-rules ul {
  color: #584c40;
  line-height: 1.55;
  margin: 0;
  padding-left: 20px;
}

.plan-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 26px;
}

.plan-card {
  background: #fffaf1;
  border-color: rgba(29, 24, 20, 0.14);
  box-shadow: 0 14px 34px rgba(54, 42, 30, 0.12);
  color: #1d1814;
  padding: 20px;
}

.plan-card h3 {
  font-size: 1.25rem;
}

.plan-card.is-preferred {
  border-color: rgba(31, 91, 90, 0.42);
  box-shadow: 0 18px 42px rgba(31, 91, 90, 0.18);
}

.plan-card.is-preferred h3::after {
  background: #1f5b5a;
  color: #f7efe0;
  content: "First paid tier";
  display: inline-block;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
  margin-left: 8px;
  padding: 4px 6px;
  vertical-align: middle;
}

.plan-price {
  color: #8c342c;
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.plan-card p,
.plan-card li {
  color: #584c40;
}

.plan-card ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.plan-card li::before {
  color: #1f7771;
  content: "\2713 ";
  font-weight: 900;
}

.rights-table-wrap {
  overflow-x: auto;
}

.rights-table {
  background: #fffaf1;
  border-collapse: collapse;
  box-shadow: 0 14px 34px rgba(54, 42, 30, 0.1);
  min-width: 860px;
  width: 100%;
}

.rights-table th,
.rights-table td {
  border-bottom: 1px solid rgba(29, 24, 20, 0.12);
  padding: 14px 16px;
  text-align: left;
}

.rights-table th {
  background: #27302c;
  color: #f8efe0;
}

.rights-table td:not(:first-child) {
  font-weight: 800;
}

.signup-band {
  align-items: center;
  background:
    radial-gradient(circle at 8% 0%, rgba(240, 180, 93, 0.18), transparent 34%),
    linear-gradient(180deg, #181411, #0f0d0b);
  display: grid;
  gap: clamp(22px, 4vw, 52px);
  grid-template-columns: minmax(260px, 0.62fr) minmax(360px, 0.88fr);
}

.signup-band p {
  color: var(--muted);
  line-height: 1.5;
  max-width: 620px;
}

.signup-form {
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.94), rgba(225, 203, 166, 0.9)),
    repeating-linear-gradient(0deg, rgba(115, 72, 35, 0.08) 0 1px, transparent 1px 34px);
  border: 1px solid rgba(115, 72, 35, 0.42);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28), inset 0 0 0 5px rgba(115, 72, 35, 0.06);
  color: #1d1814;
  display: grid;
  gap: 10px;
  padding: clamp(18px, 3vw, 28px);
}

.signup-form label {
  color: #6f4f28;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signup-form input,
.signup-form select,
.signup-form textarea {
  background: rgba(255, 250, 241, 0.58);
  border-color: rgba(115, 72, 35, 0.18);
  color: #1d1814;
}

.signup-form input::placeholder,
.signup-form textarea::placeholder {
  color: rgba(88, 76, 64, 0.82);
  opacity: 1;
}

.signup-form input:focus,
.signup-form select:focus,
.signup-form textarea:focus {
  background: rgba(255, 250, 241, 0.78);
  border-color: rgba(31, 91, 90, 0.56);
  outline-color: #1f5b5a;
}

.signup-row {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
  margin-top: 0;
}

.signup-row input {
  flex: 1 1 240px;
}

.signup-row select {
  flex: 1 1 190px;
}

.signup-form textarea {
  min-height: 126px;
  resize: vertical;
  width: 100%;
}

.form-status {
  border-radius: var(--radius);
  color: #6f4f28;
  font-weight: 800;
  margin: 4px 0 0;
  min-height: 0;
}

.form-status:not(:empty) {
  border: 1px solid rgba(111, 79, 40, 0.24);
  padding: 12px 14px;
}

.form-status[data-state="pending"] {
  background: rgba(240, 180, 93, 0.16);
  border-color: rgba(141, 90, 32, 0.34);
  color: #5f3d17;
}

.form-status[data-state="success"] {
  background: rgba(127, 150, 93, 0.2);
  border-color: rgba(71, 105, 62, 0.38);
  color: #2f5e35;
}

.form-status[data-state="error"] {
  background: rgba(166, 70, 56, 0.14);
  border-color: rgba(166, 70, 56, 0.42);
  color: #8c2d24;
}

.player-bar {
  background: rgba(15, 13, 11, 0.94);
  border-top: 1px solid var(--line);
  bottom: 0;
  gap: 16px;
  left: 0;
  min-height: 68px;
  padding: 10px clamp(18px, 4vw, 54px);
  position: fixed;
  right: 0;
  z-index: 35;
  backdrop-filter: blur(14px);
}

.player-meta {
  display: grid;
  min-width: 0;
  width: min(32vw, 360px);
}

#player-title {
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#player-subtitle {
  color: var(--muted);
  font-size: 0.85rem;
}

.player-progress-wrap {
  display: grid;
  gap: 6px;
  margin-left: auto;
  min-width: 180px;
  position: relative;
  width: min(30vw, 360px);
}

.player-progress {
  accent-color: var(--amber);
  appearance: none;
  background:
    linear-gradient(90deg, var(--amber) var(--progress-percent, 0%), rgba(248, 239, 224, 0.14) var(--progress-percent, 0%));
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 10px;
  min-height: 32px;
  padding: 0;
  touch-action: none;
  width: 100%;
}

.player-progress::-webkit-slider-runnable-track {
  background: transparent;
  border-radius: 999px;
  height: 10px;
}

.player-progress::-webkit-slider-thumb {
  appearance: none;
  background: var(--amber);
  border: 2px solid #20130b;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  height: 22px;
  margin-top: -6px;
  width: 22px;
}

.player-progress::-moz-range-track {
  background: transparent;
  border-radius: 999px;
  height: 10px;
}

.player-progress::-moz-range-progress {
  background: var(--amber);
  border-radius: 999px;
  height: 10px;
}

.player-progress::-moz-range-thumb {
  background: var(--amber);
  border: 2px solid #20130b;
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  height: 22px;
  width: 22px;
}

.player-progress:hover::-webkit-slider-thumb,
.player-progress.is-scrubbing::-webkit-slider-thumb {
  transform: scale(1.08);
}

.player-progress:hover::-moz-range-thumb,
.player-progress.is-scrubbing::-moz-range-thumb {
  transform: scale(1.08);
}

.player-progress:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 6px;
}

.player-progress[disabled] {
  cursor: default;
  opacity: 0.5;
}

.player-seek-hint {
  background: rgba(15, 13, 11, 0.96);
  border: 1px solid rgba(240, 180, 93, 0.36);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  left: 0;
  opacity: 0;
  padding: 4px 6px;
  pointer-events: none;
  position: absolute;
  top: -28px;
  transform: translateX(-50%);
  transition: opacity 120ms ease;
}

.player-progress-wrap:hover .player-seek-hint,
.player-progress.is-scrubbing + .player-seek-hint {
  opacity: 1;
}

.player-time {
  color: var(--muted);
  display: flex;
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  justify-content: space-between;
}

.player-skip {
  white-space: nowrap;
}

.loop-toggle {
  align-items: center;
  display: flex;
  gap: 8px;
  white-space: nowrap;
}

.loop-toggle input {
  min-height: auto;
}

.player-note {
  border: 1px solid rgba(205, 189, 166, 0.24);
  color: rgba(205, 189, 166, 0.8);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 8px;
  white-space: nowrap;
}

.player-note:empty {
  display: none;
}

.money-shell {
  padding-bottom: 0;
}

.money-hero {
  align-items: end;
  display: grid;
  gap: clamp(24px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  min-height: 86vh;
  overflow: hidden;
  padding: 132px clamp(18px, 4vw, 54px) 56px;
  position: relative;
}

.money-hero::after {
  background:
    linear-gradient(90deg, rgba(16, 13, 11, 0.97), rgba(16, 13, 11, 0.72) 44%, rgba(16, 13, 11, 0.25) 78%),
    linear-gradient(180deg, rgba(16, 13, 11, 0.12), #171210);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.money-hero-bg {
  background-image: url("/assets/hero-counter.png");
  background-position: center;
  background-size: cover;
  inset: 0;
  position: absolute;
  z-index: -2;
}

.money-copy {
  max-width: 790px;
}

.price-panel {
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.96), rgba(226, 205, 170, 0.92)),
    radial-gradient(circle at 18% 12%, rgba(140, 52, 44, 0.1), transparent 34%);
  border: 1px solid rgba(115, 72, 35, 0.5);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42), inset 0 0 0 5px rgba(115, 72, 35, 0.08);
  color: #1d1814;
  display: grid;
  gap: 14px;
  padding: 24px;
  position: relative;
}

.price-panel::before,
.rules-hero-card::before,
.license-proof-panel::before {
  background: rgba(115, 72, 35, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(115, 72, 35, 0.12);
  content: "";
  height: 10px;
  left: 50%;
  position: absolute;
  top: 12px;
  transform: translateX(-50%);
  width: 10px;
}

.price-panel .panel-label {
  color: #80602c;
}

.price-panel p {
  color: #584c40;
  line-height: 1.5;
  margin: 0;
}

.price-points {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.price-points li {
  color: #584c40;
  line-height: 1.35;
  padding-left: 18px;
  position: relative;
}

.price-points li::before {
  color: #8c342c;
  content: "";
  background: currentColor;
  height: 5px;
  left: 2px;
  position: absolute;
  top: 0.65em;
  transform: rotate(45deg);
  width: 5px;
  font-weight: 900;
}

.price-lockup {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.price-lockup span {
  color: #8c342c;
  font-size: clamp(3.4rem, 7vw, 5.4rem);
  font-weight: 900;
  line-height: 0.9;
  text-shadow: 0 2px 0 rgba(115, 72, 35, 0.12);
}

.price-lockup small {
  color: #584c40;
  font-size: 1rem;
  font-weight: 800;
}

.money-band {
  background:
    linear-gradient(180deg, #171210, #100d0b);
  padding: 54px clamp(18px, 4vw, 54px);
}

.money-offer {
  background:
    linear-gradient(180deg, rgba(242, 234, 220, 0.98), rgba(224, 204, 174, 0.94));
  color: var(--parchment-ink);
}

.payment-path-band {
  background:
    radial-gradient(circle at 12% 0%, rgba(240, 180, 93, 0.14), transparent 32%),
    linear-gradient(180deg, #1a120d, #100d0b);
}

.payment-path-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(320px, 1.2fr) repeat(3, minmax(190px, 0.8fr));
}

.payment-path-card {
  background:
    linear-gradient(180deg, rgba(59, 38, 25, 0.86), rgba(28, 20, 15, 0.94)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 42px);
  border: 1px solid rgba(240, 180, 93, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 250, 241, 0.08), 0 16px 30px rgba(0, 0, 0, 0.24);
  display: grid;
  gap: 12px;
  grid-template-rows: auto auto 1fr auto auto;
  padding: 18px;
  position: relative;
}

.payment-path-card.is-primary {
  background:
    linear-gradient(180deg, rgba(93, 55, 28, 0.94), rgba(38, 24, 16, 0.98)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 42px);
  border-color: rgba(240, 180, 93, 0.52);
}

.payment-path-card::before {
  background: rgba(240, 180, 93, 0.5);
  content: "";
  height: 2px;
  left: 18px;
  position: absolute;
  right: 18px;
  top: 50px;
}

.payment-path-card h3,
.payment-path-card p {
  margin: 0;
}

.payment-path-card p {
  color: var(--muted);
  line-height: 1.5;
}

.payment-path-card strong {
  color: var(--amber);
  font-size: 1.25rem;
}

.tavern-menu-head {
  align-items: end;
}

.menu-note {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
  max-width: 440px;
}

.payment-path-card.is-featured {
  gap: 14px;
  padding: 22px;
}

.payment-path-card.is-featured h3 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
}

.payment-path-card.is-featured strong {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.path-card {
  min-height: 0;
}

.path-card p {
  font-size: 0.96rem;
}

.menu-perks {
  color: var(--muted);
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-perks li {
  line-height: 1.35;
  padding-left: 18px;
  position: relative;
}

.menu-perks li::before {
  background: var(--amber);
  content: "";
  height: 6px;
  left: 2px;
  position: absolute;
  top: 0.55em;
  transform: rotate(45deg);
  width: 6px;
}

.money-offer .eyebrow {
  color: #80602c;
}

.money-muted {
  color: #584c40;
  line-height: 1.5;
  max-width: 460px;
}

.money-two-col {
  align-items: start;
  display: grid;
  gap: clamp(24px, 5vw, 68px);
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
}

.chooser-layout {
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1fr);
}

.license-choice-list {
  display: grid;
  gap: 12px;
}

.license-choice {
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.88), rgba(231, 211, 176, 0.88));
  border: 1px solid rgba(115, 72, 35, 0.22);
  box-shadow: 0 10px 24px rgba(54, 42, 30, 0.08);
  display: grid;
  gap: 10px;
  padding: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.license-choice.is-main {
  border-color: rgba(140, 52, 44, 0.36);
  box-shadow: 0 18px 42px rgba(140, 52, 44, 0.12);
}

.license-choice:hover {
  border-color: rgba(140, 52, 44, 0.4);
  box-shadow: 0 16px 36px rgba(54, 42, 30, 0.14);
  transform: translateY(-2px);
}

.license-choice strong,
.license-choice span {
  display: block;
}

.license-choice strong {
  color: #1d1814;
  margin-bottom: 5px;
}

.license-choice span {
  color: #584c40;
  line-height: 1.45;
}

.license-choice .text-button,
.license-choice .primary-action {
  justify-self: start;
  margin-top: 2px;
}

.license-choice .text-button {
  background: rgba(140, 52, 44, 0.12);
  border-color: rgba(140, 52, 44, 0.42);
  color: #6f2c25;
  font-weight: 800;
}

.license-choice .text-button:hover {
  background: rgba(140, 52, 44, 0.2);
  border-color: rgba(140, 52, 44, 0.62);
}

.money-signup {
  background:
    linear-gradient(120deg, rgba(240, 180, 93, 0.17), transparent 46%),
    linear-gradient(180deg, #181411, #0f0d0b);
}

.downloads-hero {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(16, 13, 11, 0.96), rgba(16, 13, 11, 0.7) 48%, rgba(16, 13, 11, 0.24)),
    url("/assets/hero-satchel.png") center / cover;
  display: grid;
  gap: clamp(24px, 5vw, 72px);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  min-height: 62vh;
  padding: 132px clamp(18px, 4vw, 54px) 54px;
}

.license-proof-panel {
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.95), rgba(229, 207, 170, 0.9));
  border: 1px solid rgba(115, 72, 35, 0.44);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34), inset 0 0 0 5px rgba(115, 72, 35, 0.07);
  color: #1d1814;
  display: grid;
  gap: 10px;
  padding: 22px;
  position: relative;
}

.license-proof-panel .panel-label {
  color: #80602c;
}

.license-proof-panel strong,
.license-proof-panel span {
  display: block;
}

.license-proof-panel span {
  color: #584c40;
  line-height: 1.45;
}

.downloads-band {
  background:
    linear-gradient(180deg, #171210, #100d0b);
  padding: 64px clamp(18px, 4vw, 54px);
}

.download-count {
  color: var(--muted);
  font-weight: 800;
}

.download-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.download-card {
  background: var(--panel);
  border: 1px solid var(--line);
  overflow: hidden;
}

.download-card img {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  width: 100%;
}

.download-card-body {
  display: grid;
  gap: 14px;
  padding: 14px;
}

.download-card h3 {
  margin-bottom: 6px;
}

.download-card p {
  color: var(--muted);
  margin: 0;
}

.download-status {
  color: var(--amber);
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.download-card.is-open .download-status {
  color: var(--teal);
}

.download-card.is-project .download-status {
  color: #f3d19a;
}

.download-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rules-hero {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(16, 13, 11, 0.96), rgba(16, 13, 11, 0.72) 44%, rgba(16, 13, 11, 0.24)),
    url("/assets/hero-noticeboard.png") center / cover;
  display: grid;
  gap: clamp(24px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  min-height: 58vh;
  padding: 132px clamp(18px, 4vw, 54px) 54px;
}

.rules-hero h1 {
  max-width: 760px;
}

.rules-hero-copy {
  max-width: 720px;
}

.rules-hero-card {
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.95), rgba(226, 205, 170, 0.92));
  border: 1px solid rgba(115, 72, 35, 0.46);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.36), inset 0 0 0 5px rgba(115, 72, 35, 0.08);
  color: #1d1814;
  display: grid;
  gap: 14px;
  padding: 22px;
  position: relative;
  transform: rotate(-1deg);
}

.rules-hero-label {
  color: #80602c;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rules-hero-card strong,
.rules-hero-card p {
  margin: 0;
}

.rules-hero-card strong {
  display: block;
  margin-bottom: 4px;
}

.rules-hero-card p {
  color: #584c40;
  line-height: 1.45;
}

.rules-strip {
  background:
    radial-gradient(circle at 82% 0%, rgba(240, 180, 93, 0.12), transparent 28%),
    linear-gradient(180deg, #1a120d, #100d0b);
  padding: 32px clamp(18px, 4vw, 54px) 22px;
}

.rules-strip-head {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rules-strip-head h2 {
  font-size: clamp(1.6rem, 2.1vw, 2.1rem);
  margin-bottom: 0;
}

.rules-strip-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rules-strip-card {
  align-items: start;
  background:
    linear-gradient(180deg, rgba(59, 38, 25, 0.84), rgba(28, 20, 15, 0.94)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 38px);
  border: 1px solid rgba(240, 180, 93, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 250, 241, 0.08), 0 14px 28px rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 8px;
  padding: 16px;
}

.rules-strip-card.is-primary {
  background: rgba(240, 180, 93, 0.1);
  border-color: rgba(240, 180, 93, 0.38);
}

.rules-icon {
  align-items: center;
  border: 1px solid rgba(240, 180, 93, 0.34);
  border-radius: 999px;
  color: var(--amber);
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.rules-icon svg {
  height: 22px;
  width: 22px;
}

.rules-strip-card strong {
  color: var(--ink);
  font-size: 1rem;
}

.rules-strip-card span {
  color: var(--muted);
  line-height: 1.45;
}

.rules-band {
  background:
    linear-gradient(180deg, #171210, #100d0b);
  padding: 58px clamp(18px, 4vw, 54px);
}

.rules-band-light {
  background:
    linear-gradient(180deg, rgba(242, 234, 220, 0.98), rgba(224, 204, 174, 0.94));
  color: var(--parchment-ink);
}

.rules-band-light .eyebrow {
  color: #80602c;
}

.rules-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rules-card {
  background:
    linear-gradient(180deg, rgba(58, 39, 26, 0.8), rgba(28, 21, 16, 0.94));
  border: 1px solid rgba(240, 180, 93, 0.18);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  display: grid;
  gap: 10px;
  padding: 20px;
}

.rules-card.is-primary {
  background:
    linear-gradient(180deg, rgba(94, 56, 29, 0.9), rgba(38, 24, 16, 0.96));
  border-color: rgba(240, 180, 93, 0.38);
}

.rules-card strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.rules-card p,
.rules-card span {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.rules-card-grid.compact .rules-card {
  background:
    linear-gradient(180deg, rgba(45, 29, 20, 0.82), rgba(22, 17, 14, 0.94));
}

.rules-two-col {
  align-items: start;
  display: grid;
  gap: clamp(24px, 5vw, 68px);
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
}

.rules-list {
  display: grid;
  gap: 12px;
}

.rules-list div {
  background:
    linear-gradient(135deg, rgba(255, 250, 241, 0.88), rgba(231, 211, 176, 0.88));
  border: 1px solid rgba(115, 72, 35, 0.2);
  box-shadow: 0 8px 20px rgba(54, 42, 30, 0.08);
  padding: 16px;
}

.rules-list strong,
.rules-list span {
  display: block;
}

.rules-list strong {
  color: #1d1814;
  margin-bottom: 5px;
}

.rules-list span {
  color: #584c40;
  line-height: 1.45;
}

.rules-cta {
  align-items: center;
  background:
    linear-gradient(120deg, rgba(240, 180, 93, 0.17), transparent 46%),
    linear-gradient(180deg, #181411, #0f0d0b);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 54px clamp(18px, 4vw, 54px);
}

/* ── Tavern Ledger (use-rules) ── */

.ledger-band {
  padding: 72px clamp(18px, 4vw, 54px);
}

.ledger-header {
  margin-bottom: 32px;
  max-width: 600px;
  text-align: center;
  margin-inline: auto;
}

.ledger-subtitle {
  color: #584c40;
  line-height: 1.55;
  margin: 0;
}

.ledger-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ledger-card {
  background:
    linear-gradient(160deg, rgba(255, 250, 241, 0.98), rgba(226, 205, 170, 0.88));
  border: 1px solid rgba(115, 72, 35, 0.18);
  box-shadow: 0 12px 28px rgba(54, 42, 30, 0.08);
  display: grid;
  gap: 8px;
  padding: 22px 18px;
  position: relative;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.ledger-card:hover {
  border-color: rgba(115, 72, 35, 0.42);
  box-shadow: 0 18px 40px rgba(54, 42, 30, 0.16);
  transform: translateY(-4px);
}

.ledger-card-primary {
  background:
    linear-gradient(160deg, rgba(255, 250, 241, 1), rgba(240, 218, 180, 0.95));
  border-color: rgba(140, 52, 44, 0.32);
  box-shadow: 0 14px 32px rgba(140, 52, 44, 0.1);
}

.ledger-card-primary:hover {
  border-color: rgba(140, 52, 44, 0.54);
  box-shadow: 0 22px 48px rgba(140, 52, 44, 0.16);
}

.ledger-card-primary .ledger-tier {
  background: rgba(140, 52, 44, 0.14);
  color: #8c342c;
}

.ledger-icon {
  align-items: center;
  border: 1px solid rgba(115, 72, 35, 0.28);
  border-radius: 999px;
  color: #80602c;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
  transition: background 180ms ease, border-color 180ms ease;
}

.ledger-card:hover .ledger-icon {
  background: rgba(115, 72, 35, 0.08);
  border-color: rgba(115, 72, 35, 0.42);
}

.ledger-icon svg {
  height: 22px;
  width: 22px;
}

.ledger-tier {
  background: rgba(115, 72, 35, 0.1);
  color: #80602c;
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 900;
  justify-self: start;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  text-transform: uppercase;
}

.ledger-card strong {
  color: #1d1814;
  font-size: 1.08rem;
}

.ledger-card > span:last-child {
  color: #584c40;
  display: block;
  line-height: 1.5;
}

/* ── Brawl section (use-rules) ── */

.brawl-band {
  background:
    radial-gradient(circle at 50% 0%, rgba(166, 70, 56, 0.14), transparent 40%),
    linear-gradient(180deg, #1a120d, #100d0b);
  padding: 58px clamp(18px, 4vw, 54px);
}

.brawl-eyebrow {
  color: var(--crimson) !important;
}

.brawl-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brawl-card {
  background:
    linear-gradient(180deg, rgba(62, 30, 24, 0.82), rgba(28, 18, 15, 0.94));
  border: 1px solid rgba(166, 70, 56, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 250, 241, 0.06), 0 14px 30px rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 12px;
  padding: 22px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.brawl-card:hover {
  border-color: rgba(166, 70, 56, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 250, 241, 0.08), 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

.brawl-icon {
  align-items: center;
  border: 1px solid rgba(166, 70, 56, 0.38);
  border-radius: 999px;
  color: var(--crimson);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  width: 44px;
  transition: background 180ms ease;
}

.brawl-card:hover .brawl-icon {
  background: rgba(166, 70, 56, 0.12);
}

.brawl-icon svg {
  height: 22px;
  width: 22px;
}

.brawl-card strong {
  color: var(--ink);
  font-size: 1.08rem;
}

.brawl-card p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ── Receipt section (use-rules) ── */

.receipt-band {
  padding: 72px clamp(18px, 4vw, 54px);
}

.receipt-layout {
  align-items: start;
  display: grid;
  gap: clamp(32px, 6vw, 80px);
  grid-template-columns: minmax(0, 0.7fr) minmax(340px, 1fr);
}

.receipt-copy {
  padding-top: 16px;
}

.receipt-card {
  background:
    linear-gradient(135deg, rgba(255, 252, 245, 0.98), rgba(232, 214, 180, 0.92)),
    repeating-linear-gradient(0deg, rgba(115, 72, 35, 0.06) 0 1px, transparent 1px 32px);
  border: 1px solid rgba(115, 72, 35, 0.34);
  box-shadow:
    0 24px 52px rgba(54, 42, 30, 0.14),
    inset 0 0 0 4px rgba(115, 72, 35, 0.06);
  display: grid;
  gap: 0;
  padding: 28px 24px;
  position: relative;
}

.receipt-seal {
  color: rgba(140, 52, 44, 0.5);
  height: 60px;
  position: absolute;
  right: 20px;
  top: 16px;
  width: 60px;
}

.receipt-heading {
  border-bottom: 2px solid rgba(115, 72, 35, 0.2);
  color: #1d1814;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  margin: 0 0 18px;
  padding-bottom: 14px;
}

.receipt-row {
  border-bottom: 1px solid rgba(115, 72, 35, 0.12);
  display: grid;
  gap: 4px;
  padding: 14px 0;
}

.receipt-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.receipt-label {
  color: #80602c;
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.receipt-value {
  color: #3a2e24;
  display: block;
  line-height: 1.5;
}

/* ── Enhanced CTA (use-rules) ── */

.rules-cta-enhanced {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(240, 180, 93, 0.22), transparent 52%),
    linear-gradient(120deg, rgba(24, 20, 17, 1), rgba(15, 13, 11, 1));
  flex-wrap: wrap;
  padding: 64px clamp(18px, 4vw, 54px);
}

.cta-content h2 {
  margin-bottom: 8px;
}

.cta-sub {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .hero,
  .money-hero,
  .downloads-hero,
  .library-layout,
  .about-band,
  .signup-band,
  .money-two-col {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  .queue-panel {
    position: static;
  }

  .catalog-panel {
    max-width: none;
  }

  .catalog-scroll {
    max-height: min(720px, calc(100vh - 150px));
    min-height: 520px;
  }

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

  .license-guide {
    grid-template-columns: 1fr;
  }

  .scene-directory-grid,
  .use-rules-grid {
    grid-template-columns: 1fr;
  }

  .scene-hero,
  .scene-copy-band {
    grid-template-columns: 1fr;
  }

  .payment-path-grid {
    grid-template-columns: 1fr;
  }

  .rules-card-grid,
  .rules-two-col {
    grid-template-columns: 1fr;
  }

  .rules-hero {
    grid-template-columns: 1fr;
  }

  .rules-strip-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .topbar {
    gap: 12px;
    min-height: 62px;
  }

  .creator-link {
    display: none;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 4.2rem);
  }

  .now-panel,
  .signup-row,
  .rules-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .now-panel {
    display: grid;
  }

  .track-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-scroll {
    max-height: min(660px, calc(100vh - 132px));
    min-height: 460px;
    padding: 8px;
  }

  .filter-row {
    margin-left: -2px;
    margin-right: -2px;
  }

  .filter-stack {
    margin-left: -2px;
    margin-right: -2px;
  }

  .player-bar {
    display: grid;
    grid-template-columns: auto auto auto 1fr;
    min-height: 92px;
  }

  .player-note,
  .loop-toggle {
    display: none;
  }

  .player-meta,
  .player-progress-wrap {
    width: auto;
  }

  .player-progress-wrap {
    grid-column: 1 / -1;
    margin-left: 0;
    min-width: 0;
  }
}

