:root {
  --app-height: 100dvh;
  --ink: #f1ead8;
  --ink-soft: #c7d0c8;
  --ink-dim: #8f9c96;
  --gold: #d8b75c;
  --gold-bright: #ffdc7d;
  --gold-deep: #8e6d28;
  --teal: #173d37;
  --night: #06110f;
  --panel: rgba(7, 21, 18, 0.72);
  --panel-solid: #0b1b18;
  --panel-soft: rgba(14, 35, 30, 0.58);
  --line: rgba(217, 184, 95, 0.28);
  --line-strong: rgba(232, 197, 102, 0.68);
  --danger: #ef9b8f;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--sans);
  background: #071210;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  background:
    linear-gradient(rgba(2, 11, 10, 0.25), rgba(2, 11, 10, 0.72)),
    url("/assets/classic-plus-world.webp") center / cover no-repeat;
  content: "";
}

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

button,
a,
select,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

button:not([disabled]),
a[href],
select:not([disabled]),
input:not([disabled]),
textarea:not([disabled]) {
  cursor: pointer;
}

button[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

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

button {
  border: 0;
}

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

.programmatic-focus-target:focus {
  outline: none;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.75rem 1rem;
  color: #07110f;
  background: var(--gold-bright);
  border-radius: 0.5rem;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

[hidden] {
  display: none !important;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 1540px);
  height: var(--app-height);
  margin: 0 auto;
  padding: max(0.5rem, env(safe-area-inset-top)) clamp(0.65rem, 2vw, 1.5rem) max(0.4rem, env(safe-area-inset-bottom));
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.site-header {
  display: grid;
  min-height: 4.25rem;
  padding: 0.25rem 0.35rem;
  grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.site-brand {
  display: flex;
  align-items: center;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.78));
}

.site-brand img {
  width: 8.25rem;
  height: 3.05rem;
  object-fit: contain;
}

.site-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-self: center;
  gap: clamp(0.25rem, 1.5vw, 1rem);
}

.site-nav a {
  position: relative;
  display: inline-grid;
  min-height: 2.65rem;
  padding: 0.65rem clamp(0.45rem, 1.2vw, 0.8rem);
  place-items: center;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.94);
  text-transform: uppercase;
}

.site-nav a::after {
  position: absolute;
  right: 0.45rem;
  bottom: 0.28rem;
  left: 0.45rem;
  height: 1px;
  background: transparent;
  content: "";
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold-bright);
}

.site-nav a[aria-current="page"]::after {
  background: var(--gold-bright);
  box-shadow: 0 0 10px rgba(255, 220, 125, 0.55);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 2.65rem;
  padding: 0.65rem 1rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 850;
  border-radius: 999px;
}

.secondary-button {
  color: var(--gold-bright);
  background: rgba(6, 17, 15, 0.68);
  border: 1px solid var(--line-strong);
}

.secondary-button:hover {
  background: rgba(32, 52, 43, 0.9);
}

.back-button {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  color: var(--gold-bright);
  background: transparent;
  filter: drop-shadow(0 3px 9px rgba(0, 0, 0, 0.82));
  transition: color 160ms ease, transform 160ms ease;
}

.back-button svg {
  width: 1.55rem;
  height: 1.55rem;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-button:hover {
  color: var(--ink);
  transform: translateX(-0.18rem);
}

.back-button:active {
  transform: translateX(-0.28rem);
}

.account-button {
  display: inline-flex;
  min-height: 2.65rem;
  padding: 0.5rem 0.2rem;
  align-items: center;
  color: var(--ink);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 850;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.94);
}

.account-button:hover {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 0.22rem;
}

.primary-button {
  color: #07120f;
  background: linear-gradient(100deg, #ffe49b, #cba64d);
  box-shadow: 0 8px 22px rgba(202, 158, 50, 0.16);
}

.primary-button:hover {
  filter: brightness(1.08);
}

.text-button {
  padding: 0.4rem;
  color: var(--ink-dim);
  background: transparent;
  font-size: 0.72rem;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.view-host {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.view-host::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.view {
  width: min(100%, 1340px);
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 1.8rem) clamp(0.15rem, 1vw, 0.6rem) 2.4rem;
}

.site-footer {
  display: flex;
  min-height: 1.6rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-dim);
  font-size: 0.58rem;
}

.site-footer p {
  margin: 0;
}

.eyebrow,
.source-label {
  margin: 0 0 0.28rem;
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.view-intro {
  display: flex;
  margin-bottom: clamp(1rem, 2.4vw, 2rem);
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
}

.view-intro h1,
.system-hero h1,
.idea-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 0.98;
  text-wrap: balance;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.88);
}

.view-intro > div > p:last-child {
  max-width: 58rem;
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(0.94rem, 1.55vw, 1.18rem);
  line-height: 1.48;
}

.view-toolbar {
  display: flex;
  margin-bottom: 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.view-toolbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.view--focus {
  width: min(100%, 1160px);
}

.focus-intro {
  display: grid;
  margin-bottom: clamp(1.35rem, 3vw, 2.4rem);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
}

.focus-intro h1 {
  max-width: 16ch;
  margin: 0.12rem 0 0;
  font-family: var(--serif);
  font-size: clamp(2.75rem, 6vw, 5.2rem);
  font-weight: 500;
  line-height: 0.96;
  text-wrap: balance;
  text-shadow: 0 4px 26px rgba(0, 0, 0, 0.88);
}

.focus-intro > div > p:last-child {
  max-width: 48rem;
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.45vw, 1.12rem);
  line-height: 1.5;
}

.focus-capacity {
  display: grid;
  min-width: 7rem;
  padding: 0 0 0.4rem;
  justify-items: end;
}

.focus-capacity strong {
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 500;
  line-height: 1;
}

.focus-capacity strong span {
  color: var(--ink-dim);
  font-size: 1.05rem;
}

.focus-capacity small {
  margin-top: 0.25rem;
  color: var(--ink-dim);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.focus-stack {
  display: grid;
  gap: 0.9rem;
}

.focus-patch {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  background: linear-gradient(110deg, rgba(5, 20, 17, 0.74), rgba(5, 18, 16, 0.5));
  border-block: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  backdrop-filter: blur(9px);
}

.focus-patch__index {
  display: flex;
  padding: 1.35rem 0.8rem;
  align-items: center;
  flex-direction: column;
  gap: 0.8rem;
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 1rem;
}

.focus-patch__index i {
  width: 1px;
  min-height: 3rem;
  flex: 1;
  background: linear-gradient(var(--gold), transparent);
}

.focus-patch__content {
  min-width: 0;
  padding: clamp(1.2rem, 2.5vw, 2rem) clamp(1.1rem, 2.8vw, 2.25rem) clamp(1.15rem, 2vw, 1.6rem);
  border-left: 1px solid rgba(217, 184, 95, 0.16);
}

.focus-patch__content > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1.25rem;
}

.focus-patch h2 {
  max-width: 21ch;
  margin: 0.2rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.65rem);
  font-weight: 500;
  line-height: 1.02;
  text-wrap: balance;
}

.focus-patch__meta {
  display: flex;
  padding-top: 0.1rem;
  align-items: flex-end;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--ink-dim);
  font-size: 0.63rem;
  white-space: nowrap;
}

.focus-patch__notes {
  display: grid;
  margin-top: 1.15rem;
  grid-template-columns: minmax(0, 1.5fr) minmax(15rem, 0.75fr);
  gap: clamp(1rem, 3vw, 2.5rem);
}

.focus-patch__notes section {
  min-width: 0;
}

.focus-patch__notes h3 {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.focus-patch__notes p,
.focus-patch__notes li {
  color: var(--ink-soft);
  font-size: 0.79rem;
  line-height: 1.52;
}

.focus-patch__notes p {
  margin: 0;
}

.focus-patch__notes ul {
  margin: 0;
  padding-left: 1rem;
}

.focus-patch__notes li + li {
  margin-top: 0.3rem;
}

.focus-patch__content > footer {
  display: flex;
  margin-top: 1.1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.focus-patch__links,
.focus-admin-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.focus-admin-actions {
  margin-left: auto;
}

.focus-curator-note {
  display: flex;
  margin-top: 0.9rem;
  padding: 0.75rem 0.9rem;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink-soft);
  background: rgba(6, 20, 17, 0.48);
  border: 1px dashed var(--line);
}

.focus-curator-note > span {
  color: var(--gold-bright);
}

.focus-curator-note p {
  margin: 0;
  font-size: 0.72rem;
}

.focus-curator-note a {
  margin-left: auto;
  color: var(--gold-bright);
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.focus-empty {
  padding: clamp(1.5rem, 4vw, 3rem) 0;
  border-block: 1px solid var(--line);
}

.focus-empty h2 {
  margin: 0.2rem 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 500;
}

.focus-empty > p:not(.eyebrow) {
  color: var(--ink-soft);
}

.focus-archive {
  margin-top: clamp(1.5rem, 4vw, 3rem);
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.focus-archive > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.focus-archive h2 {
  margin: 0.15rem 0 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
}

.focus-archive > header > p {
  max-width: 31rem;
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.7rem;
  line-height: 1.45;
}

.focus-archive__list {
  display: grid;
  margin-top: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.focus-archive__list a {
  display: grid;
  padding: 0.85rem 0;
  gap: 0.22rem;
  border-bottom: 1px solid rgba(217, 184, 95, 0.18);
}

.focus-archive__list a:hover strong {
  color: var(--gold-bright);
}

.focus-archive__list span,
.focus-archive__list small {
  color: var(--ink-dim);
  font-size: 0.62rem;
}

.focus-archive__list strong {
  font-family: var(--serif);
  font-size: 1.03rem;
  font-weight: 500;
}

.focus-status {
  display: inline-flex;
  min-height: 2.2rem;
  padding: 0.5rem 0.72rem;
  align-items: center;
  color: var(--gold-bright);
  font-size: 0.64rem;
  font-weight: 850;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.focus-status--signed {
  color: var(--ink-soft);
  border-color: var(--line);
}

.stage-badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.38rem 0.62rem;
  color: #07120f;
  font-size: 0.6rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold-bright);
  border-radius: 999px;
}

.stage-badge--current-plan {
  background: #9de0b8;
}

.stage-badge--archived {
  color: var(--ink);
  background: #52645d;
}

.account-grid,
.admin-grid,
.responses-layout {
  display: grid;
  margin-top: 1rem;
  grid-template-columns: minmax(0, 1.55fr) minmax(18rem, 0.7fr);
  gap: 1rem;
}

.workshop-panel {
  padding: clamp(1rem, 2vw, 1.5rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}

.workshop-panel h2,
.section-heading h2,
.source-response-cta h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 500;
}

.section-heading {
  display: flex;
  margin-bottom: 1rem;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.section-heading > p,
.section-heading > span {
  max-width: 30rem;
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.72rem;
  line-height: 1.45;
}

.section-heading > a {
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 800;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.system-card {
  position: relative;
  min-height: 20rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.system-card:hover {
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}

.system-card picture,
.system-card img {
  display: block;
  width: 100%;
  height: 100%;
}

.system-card img {
  object-fit: fill;
  transition: filter 180ms ease;
}

.system-card:hover img {
  filter: brightness(1.08);
}

.system-card__number,
.system-card__arrow,
.system-card footer {
  position: absolute;
  z-index: 2;
  text-shadow: 0 2px 8px #000, 0 2px 3px #000;
}

.system-card__number {
  top: 0.8rem;
  left: 0.8rem;
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  color: var(--gold-bright);
  font-family: var(--serif);
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.system-card__arrow {
  top: 50%;
  right: 1rem;
  color: var(--gold-bright);
  font-size: 1.8rem;
}

.system-card footer {
  top: 0.95rem;
  right: 3.5rem;
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  color: white;
  font-size: 0.64rem;
}

.system-card footer span {
  color: var(--ink-soft);
}

.system-hero {
  position: relative;
  display: flex;
  min-height: clamp(18rem, 38vh, 28rem);
  overflow: hidden;
  align-items: flex-end;
  border: 1px solid var(--line-strong);
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.system-hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.system-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 15%, rgba(2, 10, 9, 0.9));
  content: "";
}

.system-hero > div {
  position: relative;
  z-index: 2;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.system-hero p {
  color: var(--ink-soft);
}

.section-block {
  margin-top: 1.5rem;
}

.horizontal-cards,
.starting-point-grid,
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.cookup-list-card,
.starting-point-card,
.idea-card,
.history-card,
.moderation-card,
.feed-response,
.response-card {
  display: flex;
  min-width: 0;
  padding: 1rem;
  flex-direction: column;
  background: rgba(6, 21, 18, 0.72);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  backdrop-filter: blur(10px);
}

.cookup-list-card:hover,
.starting-point-card:hover,
.idea-card:hover,
.history-card:hover {
  border-color: var(--gold-bright);
}

.cookup-list-card h3,
.starting-point-card h4,
.idea-card h3,
.history-card h3,
.moderation-card h3 {
  margin: 0.55rem 0;
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.18;
}

.cookup-list-card p,
.starting-point-card p,
.idea-card > p,
.history-card p,
.moderation-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.77rem;
  line-height: 1.5;
}

.cookup-list-card > span:last-child,
.card-link,
.history-card > span {
  margin-top: auto;
  padding-top: 0.85rem;
  color: var(--gold-bright);
  font-size: 0.68rem;
  font-weight: 800;
}

.topic-group {
  margin-bottom: 1.35rem;
}

.topic-group > header {
  display: flex;
  margin-bottom: 0.55rem;
  align-items: center;
  justify-content: space-between;
}

.topic-group > header h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
}

.topic-group > header span,
.card-meta,
.idea-card footer {
  color: var(--ink-dim);
  font-size: 0.62rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.idea-card__top {
  display: flex;
  min-height: 2.75rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.idea-state {
  color: var(--ink-soft);
}

.idea-state--focus {
  color: var(--gold-bright);
}

.support-button {
  display: inline-flex;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 0.28rem;
  color: var(--ink-dim);
  background: transparent;
  font-size: 0.74rem;
}

.support-button > span[aria-hidden="true"] {
  font-size: 1rem;
  line-height: 1;
}

.support-button[aria-pressed="true"],
.support-button:hover {
  color: var(--gold-bright);
}

.idea-card footer {
  display: flex;
  margin-top: auto;
  padding-top: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.idea-card footer a {
  margin-left: auto;
  color: var(--gold-bright);
  font-weight: 800;
}

.idea-card > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.idea-card.is-focused {
  border-color: rgba(232, 195, 90, 0.68);
}

.idea-card--compact {
  min-height: 12rem;
}

.idea-hero {
  padding: clamp(1.25rem, 3vw, 3rem);
  background: linear-gradient(110deg, rgba(7, 28, 24, 0.82), rgba(4, 14, 12, 0.46));
  border: 1px solid var(--line);
  border-radius: 1rem 1rem 0 0;
  backdrop-filter: blur(12px);
}

.idea-hero h1 {
  max-width: 16ch;
  margin-top: 0.75rem;
}

.idea-hero > div > p {
  max-width: 58rem;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: clamp(0.95rem, 1.5vw, 1.16rem);
  line-height: 1.5;
}

.byline {
  color: var(--gold);
  font-size: 0.7rem;
}

.detail-tabs {
  position: sticky;
  z-index: 5;
  top: -1px;
  display: flex;
  overflow-x: auto;
  background: rgba(5, 18, 15, 0.94);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.detail-tabs a {
  min-width: max-content;
  padding: 0.85rem 1rem;
  color: var(--ink-dim);
  font-size: 0.72rem;
  font-weight: 850;
  border-bottom: 2px solid transparent;
}

.detail-tabs a.is-active {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-bright);
}

.detail-tabs a span {
  margin-left: 0.25rem;
  color: var(--ink);
}

.detail-content {
  padding: clamp(1rem, 2.5vw, 2.5rem);
  background: rgba(5, 17, 15, 0.58);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 1rem 1rem;
  backdrop-filter: blur(9px);
}

.proposal-prose {
  width: min(100%, 58rem);
  margin: 0 auto;
}

.proposal-prose section {
  padding: clamp(1rem, 2.5vw, 2rem) 0;
  border-bottom: 1px solid var(--line);
}

.proposal-prose h2 {
  margin: 0.15rem 0 0.65rem;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 500;
}

.proposal-prose section > p:last-child,
.guardrail-list,
.open-question-list {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.7;
}

.guardrail-list,
.open-question-list {
  display: grid;
  padding-left: 1.2rem;
  gap: 0.45rem;
}

.source-response-cta {
  display: flex;
  width: min(100%, 64rem);
  margin: 1.25rem auto 0;
  padding: 1.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(25, 49, 40, 0.7);
  border: 1px solid var(--line-strong);
  border-radius: 0.75rem;
}

.source-response-cta p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.responses-layout {
  margin-top: 0;
  grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
  align-items: start;
}

.review-form,
.community-form {
  padding: clamp(1rem, 2vw, 1.4rem);
  background: rgba(4, 16, 14, 0.68);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}

.rating-block {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
}

.rating-block label,
.priority-options legend,
.community-form label > span,
.auth-form label > span,
.handle-form label > span,
.report-form label > span,
.moderation-card label > span,
.admin-stack form label > span,
.review-writing-grid label > span {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rating-block output {
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 850;
}

.rating-block input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--gold-bright);
}

.rating-block > div {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  color: var(--ink-dim);
  font-size: 0.58rem;
}

.priority-options {
  display: grid;
  margin: 1rem 0;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  border: 0;
}

.priority-options legend {
  margin-bottom: 0.45rem;
}

.priority-options label {
  position: relative;
}

.priority-options input {
  position: absolute;
  opacity: 0;
}

.priority-options label > span {
  display: block;
  min-height: 4rem;
  padding: 0.8rem;
  background: rgba(3, 14, 12, 0.7);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
}

.priority-options input:checked + span {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
  box-shadow: inset 0 0 0 1px rgba(255, 220, 125, 0.22);
}

.priority-options small {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink-dim);
  font-size: 0.62rem;
}

.review-writing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.review-writing-grid label,
.community-form label,
.auth-form label,
.handle-form label,
.report-form label,
.moderation-card label,
.admin-stack form label {
  display: grid;
  gap: 0.35rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(1, 11, 9, 0.76);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23f1ead8' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  background-size: 0.75rem 0.5rem;
}

textarea {
  min-height: 7.5rem;
  resize: vertical;
  line-height: 1.45;
}

.review-writing-grid textarea {
  min-height: 8.5rem;
}

.review-form > footer,
.submission-boundary {
  display: flex;
  margin-top: 0.8rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.review-form > footer > span,
.submission-boundary p {
  color: var(--ink-dim);
  font-size: 0.65rem;
  line-height: 1.45;
}

.response-list,
.global-response-feed,
.history-list,
.admin-stack {
  display: grid;
  gap: 0.75rem;
}

.response-card header,
.feed-response header,
.history-card > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.response-card header > div:first-child,
.feed-response header > div:first-child {
  display: grid;
  gap: 0.2rem;
}

.response-card header span,
.feed-response header span,
.history-card span {
  color: var(--ink-dim);
  font-size: 0.62rem;
}

.response-verdict {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.response-verdict span {
  padding: 0.28rem 0.45rem;
  color: var(--gold-bright) !important;
  background: rgba(216, 183, 92, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.response-writing {
  display: grid;
  margin-top: 0.75rem;
  gap: 0.55rem;
}

.response-writing strong {
  color: var(--gold);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.response-writing p {
  margin: 0.18rem 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.5;
}

.response-card footer,
.feed-response footer {
  display: flex;
  margin-top: 0.7rem;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-dim);
  font-size: 0.64rem;
}

.feed-toolbar {
  display: flex;
  margin-bottom: 1rem;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.feed-toolbar p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.68rem;
}

.feed-toolbar label {
  display: grid;
  min-width: 14rem;
  gap: 0.3rem;
}

.feed-toolbar label span {
  color: var(--ink-dim);
  font-size: 0.62rem;
  text-transform: uppercase;
}

.global-response-feed {
  width: min(100%, 62rem);
  margin: 0 auto;
}

.response-source {
  display: grid;
  margin-top: 0.8rem;
  padding: 0.7rem;
  gap: 0.2rem;
  background: rgba(26, 49, 41, 0.55);
  border-left: 2px solid var(--gold);
}

.response-source span {
  color: var(--ink-dim);
  font-size: 0.6rem;
  text-transform: uppercase;
}

.response-source strong {
  font-family: var(--serif);
  font-weight: 500;
}

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

.community-form {
  width: min(100%, 72rem);
  margin: 0 auto;
}

.community-form--simple {
  display: grid;
  width: min(100%, 58rem);
  gap: 0.9rem;
}

.community-form--simple textarea {
  min-height: clamp(13rem, 30vh, 20rem);
}

.community-form .full-field {
  margin-top: 0.75rem;
}

.community-form--simple .full-field {
  margin-top: 0;
}

.submission-boundary {
  margin-top: 1rem;
  padding: 0.85rem;
  background: rgba(28, 50, 42, 0.54);
  border: 1px solid var(--line);
  border-radius: 0.55rem;
}

.submission-boundary p {
  max-width: 50rem;
  margin: 0;
}

.form-message {
  min-height: 1.1rem;
  margin: 0.6rem 0 0;
  color: var(--gold-bright);
  font-size: 0.7rem;
}

.history-card.is-current {
  border-color: var(--gold-bright);
}

.empty-state {
  display: grid;
  padding: 1.25rem;
  place-items: start;
  color: var(--ink-soft);
  background: rgba(4, 15, 13, 0.45);
  border: 1px dashed var(--line);
  border-radius: 0.65rem;
}

.empty-state p {
  margin: 0.35rem 0 0.9rem;
  font-size: 0.78rem;
  line-height: 1.5;
}

.empty-state--wide {
  grid-column: 1 / -1;
}

.admin-grid {
  grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.65fr);
}

.admin-main {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.moderation-card {
  margin-top: 0.7rem;
  gap: 0.6rem;
}

.curation-card > p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.moderation-card label,
.admin-stack form {
  margin-top: 0.4rem;
}

.moderation-actions {
  display: flex;
  margin-top: 0.4rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-stack form {
  display: grid;
  gap: 0.55rem;
}

.report-row {
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
}

.report-row p {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.view--donate {
  width: min(100%, 1240px);
}

.view--bingo {
  display: grid;
  width: 100%;
  min-height: 100%;
  place-items: center;
}

.view--bingo > h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 5rem);
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.bingo-phase {
  display: inline-flex;
  min-height: 2.35rem;
  padding: 0.55rem 0.75rem;
  align-items: center;
  color: var(--gold-bright);
  background: rgba(6, 19, 16, 0.72);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bingo-phase--live {
  color: #07120f;
  background: #9de0b8;
  border-color: #9de0b8;
  box-shadow: 0 0 20px rgba(157, 224, 184, 0.24);
}

.bingo-phase--complete {
  color: #07120f;
  background: var(--gold-bright);
}

.bingo-game-status {
  display: flex;
  padding-bottom: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  border-bottom: 1px solid var(--line);
}

.bingo-game-status > span:not(.bingo-phase) {
  color: var(--ink-dim);
  font-size: 0.65rem;
  white-space: nowrap;
}

.bingo-game-status > span:not(.bingo-phase) strong {
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
}

.bingo-game-flow {
  display: grid;
  width: min(100%, 68rem);
  margin: 0 auto;
  gap: 0.55rem;
}

.bingo-round-strip {
  display: flex;
  margin: -0.35rem 0 1rem;
  padding: 0.85rem 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-block: 1px solid var(--line);
}

.bingo-round-strip p {
  max-width: 46rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.5;
}

.bingo-round-strip > div,
.bingo-scoreboard {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bingo-round-strip span,
.bingo-scoreboard span {
  color: var(--ink-dim);
  font-size: 0.65rem;
  white-space: nowrap;
}

.bingo-round-strip strong,
.bingo-scoreboard strong {
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
}

.bingo-winner {
  margin-bottom: 1rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: linear-gradient(105deg, rgba(110, 79, 21, 0.46), rgba(7, 28, 23, 0.64));
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--gold-bright);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.bingo-winner h2 {
  margin: 0.15rem 0 0.25rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
}

.bingo-winner p:not(.eyebrow) {
  margin: 0 0 0.6rem;
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.bingo-winner > strong {
  color: var(--gold-bright);
  font-size: 0.74rem;
}

.bingo-winner.is-mine {
  box-shadow: 0 0 32px rgba(255, 220, 125, 0.16);
}

.bingo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 0.68fr);
  align-items: start;
  gap: 1rem;
}

.bingo-more-details-trigger {
  display: inline-flex;
  min-height: 2.4rem;
  padding: 0.45rem 0.25rem;
  align-items: center;
  justify-self: center;
  gap: 0.55rem;
  color: var(--gold-bright);
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.bingo-more-details-trigger:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.22rem;
}

.bingo-more-details-trigger span {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1;
}

.bingo-game-footer {
  display: grid;
  justify-items: center;
  gap: 0;
}

.bingo-card-utility {
  display: flex;
  min-height: 1.35rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.65rem;
  color: var(--ink-dim);
  font-size: 0.58rem;
  line-height: 1.2;
}

.bingo-sync-status {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

.bingo-card-utility > span {
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bingo-card-utility strong {
  color: var(--ink-soft);
  font-weight: 750;
  letter-spacing: 0.08em;
}

.bingo-card-utility .text-button {
  padding: 0.15rem 0.25rem;
  font-size: 0.58rem;
}

.bingo-details-flow {
  display: grid;
  gap: 1rem;
}

.bingo-details-flow .bingo-pool {
  margin-top: 0;
}

.bingo-card-panel,
.bingo-entry-state {
  min-width: 0;
}

.bingo-card-panel {
  width: 100%;
}

.bingo-entry-state h2 {
  margin: 0.1rem 0 0.65rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  font-weight: 500;
  line-height: 1.08;
}

.bingo-scoreboard {
  margin-bottom: 0.55rem;
  padding: 0.45rem 0;
  justify-content: space-between;
  border-block: 1px solid rgba(217, 184, 95, 0.18);
}

.bingo-board {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.18rem, 0.65vw, 0.42rem);
}

.bingo-cell {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: clamp(4.75rem, 11.5dvh, 7rem);
  overflow: hidden;
  padding: clamp(0.45rem, 1vw, 0.7rem) clamp(0.28rem, 0.7vw, 0.5rem);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.32rem;
  color: var(--ink-soft);
  background: linear-gradient(145deg, rgba(8, 30, 25, 0.9), rgba(3, 13, 11, 0.92));
  border: 1px solid rgba(217, 184, 95, 0.28);
  border-radius: 0.42rem;
  text-align: center;
}

.bingo-cell:hover {
  color: var(--ink);
  border-color: var(--gold-bright);
  transform: translateY(-1px);
}

.bingo-cell:focus-visible {
  z-index: 1;
  outline-offset: -3px;
}

.bingo-cell strong {
  max-width: 100%;
  font-size: clamp(0.53rem, 0.92vw, 0.76rem);
  font-weight: 900;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.bingo-cell small {
  color: var(--ink-dim);
  font-size: clamp(0.43rem, 0.68vw, 0.56rem);
  line-height: 1.18;
}

.bingo-cell__mark {
  position: absolute;
  top: 0.25rem;
  right: 0.3rem;
  color: var(--gold-bright);
  font-size: 0.72rem;
}

.bingo-cell.is-resolved {
  color: #fff7dc;
  background: linear-gradient(145deg, rgba(117, 84, 25, 0.86), rgba(31, 61, 46, 0.92));
  border-color: var(--gold-bright);
  box-shadow: inset 0 0 18px rgba(255, 220, 125, 0.09);
}

.bingo-cell.is-free {
  color: var(--gold-bright);
  background: radial-gradient(circle at 50% 35%, rgba(216, 183, 92, 0.34), rgba(7, 28, 23, 0.94) 68%);
  border-color: var(--line-strong);
}

.bingo-entry-state > p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.55;
}

.bingo-entry-state {
  display: flex;
  width: 100%;
  min-height: 18rem;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}

.bingo-entry-state .primary-button {
  margin-top: 0.45rem;
}

.bingo-pool {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.bingo-pool-group {
  background: rgba(5, 19, 16, 0.66);
  border-top: 1px solid var(--line);
}

.bingo-pool-group:last-child {
  border-bottom: 1px solid var(--line);
}

.bingo-pool-group summary {
  display: flex;
  min-height: 3.4rem;
  padding: 0.85rem 0.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.bingo-pool-group summary small {
  color: var(--ink-dim);
  font-family: var(--sans);
  font-size: 0.61rem;
}

.bingo-pool-list {
  display: grid;
  padding: 0 0.75rem 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.bingo-pool-item {
  display: grid;
  min-width: 0;
  min-height: 4.3rem;
  padding: 0.65rem;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  color: var(--ink-soft);
  background: rgba(2, 13, 11, 0.64);
  border: 1px solid rgba(217, 184, 95, 0.16);
  border-radius: 0.5rem;
  text-align: left;
}

.bingo-pool-item:hover,
.bingo-pool-item.is-resolved {
  border-color: var(--line-strong);
}

.bingo-pool-item > span:first-child {
  color: var(--gold-bright);
  font-family: var(--serif);
  text-align: center;
}

.bingo-pool-item strong,
.bingo-pool-item small {
  display: block;
}

.bingo-pool-item strong {
  font-size: 0.68rem;
}

.bingo-pool-item small {
  margin-top: 0.18rem;
  color: var(--ink-dim);
  font-size: 0.59rem;
  line-height: 1.35;
}

.bingo-square-status {
  margin: 0.85rem 0;
  color: var(--gold-bright);
  font-size: 0.74rem;
  line-height: 1.5;
}

.achievement-shelf {
  margin-bottom: 1rem;
}

.achievement-card {
  display: grid;
  padding: clamp(1rem, 2vw, 1.4rem);
  grid-template-columns: 3.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  background: linear-gradient(105deg, rgba(93, 69, 23, 0.56), rgba(7, 27, 22, 0.76));
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--gold-bright);
}

.achievement-card > span {
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 2.3rem;
  text-align: center;
  text-shadow: 0 0 18px rgba(255, 220, 125, 0.45);
}

.achievement-card h2 {
  margin: 0.15rem 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.5vw, 1.9rem);
  font-weight: 500;
}

.achievement-card small {
  color: var(--ink-dim);
  font-size: 0.62rem;
}

.admin-bingo {
  overflow: hidden;
}

.admin-bingo-summary {
  display: grid;
  margin-bottom: 0.8rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.admin-bingo-summary code {
  min-width: 0;
  color: var(--ink-dim);
  font-size: 0.55rem;
  overflow-wrap: anywhere;
}

.admin-bingo-note {
  color: var(--ink-soft);
  font-size: 0.7rem;
  line-height: 1.5;
}

.admin-bingo-square-list {
  display: grid;
  max-height: 44rem;
  overflow-y: auto;
  gap: 0.45rem;
}

.admin-bingo-square {
  padding: 0.7rem;
  background: rgba(2, 13, 11, 0.58);
  border: 1px solid rgba(217, 184, 95, 0.18);
  border-radius: 0.55rem;
}

.admin-bingo-square.is-resolved {
  border-color: var(--line-strong);
}

.admin-bingo-square > header {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.55rem;
}

.admin-bingo-square > header > span {
  color: var(--gold-bright);
  font-family: var(--serif);
  text-align: center;
}

.admin-bingo-square strong,
.admin-bingo-square small {
  display: block;
}

.admin-bingo-square strong {
  font-size: 0.7rem;
}

.admin-bingo-square small {
  margin-top: 0.15rem;
  color: var(--ink-dim);
  font-size: 0.59rem;
  line-height: 1.35;
}

.admin-bingo-square form {
  display: grid;
  margin-top: 0.65rem;
  grid-template-columns: minmax(11rem, 0.65fr) minmax(14rem, 1fr);
  gap: 0.55rem;
}

.admin-bingo-square form label,
.admin-bingo-square form button {
  min-width: 0;
}

.admin-bingo-square form label {
  display: grid;
  gap: 0.3rem;
}

.admin-bingo-square form label > span {
  color: var(--ink-soft);
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-bingo-square form label:nth-of-type(3),
.admin-bingo-square form button {
  grid-column: 1 / -1;
}

.admin-bingo-resolution {
  display: flex;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  border-top: 1px solid rgba(217, 184, 95, 0.15);
}

.admin-bingo-resolution p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.62rem;
}

.admin-bingo-resolution a {
  color: var(--gold-bright);
  font-size: 0.62rem;
  font-weight: 800;
}

.admin-bingo-audit {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.admin-bingo-audit summary {
  cursor: pointer;
  color: var(--gold-bright);
}

.admin-bingo-audit li + li {
  margin-top: 0.35rem;
}

.loading-state {
  display: grid;
  min-height: 50vh;
  place-items: center;
  color: var(--ink-soft);
}

.loading-state span {
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--line);
  border-top-color: var(--gold-bright);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

dialog {
  width: min(calc(100% - 1.5rem), 34rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: clamp(1rem, 3vw, 1.5rem);
  color: var(--ink);
  background: rgba(6, 19, 16, 0.97);
  border: 1px solid var(--line-strong);
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(1, 7, 6, 0.78);
  backdrop-filter: blur(6px);
}

.bingo-game-dialog {
  width: min(calc(100% - 2rem), 78rem);
  max-width: none;
  height: fit-content;
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
  padding: 0;
  background: rgba(5, 17, 14, 0.985);
}

.bingo-game-dialog__frame {
  display: grid;
  height: auto;
  max-height: min(56rem, calc(100dvh - 2rem));
  grid-template-rows: auto minmax(0, 1fr);
}

.bingo-game-heading {
  display: flex;
  isolation: isolate;
  min-width: 0;
  padding: 0.6rem 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(10, 32, 26, 0.96);
  border-bottom: 1px solid var(--line-strong);
}

.bingo-game-heading h1 {
  /* Let the complete title sprite determine its height, including lower serifs. */
  width: min(100%, 40rem);
  min-width: 0;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  font-weight: 500;
  line-height: 1.25;
}

.bingo-title-art {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
}

.bingo-game-heading .icon-button {
  flex: 0 0 auto;
}

.bingo-game-dialog__body {
  min-height: 0;
  overflow-y: auto;
  padding: clamp(0.65rem, 1.4vw, 1rem);
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.bingo-details-dialog {
  width: min(calc(100% - 2rem), 58rem);
  max-width: none;
  max-height: calc(100dvh - 2rem);
  overflow: hidden;
  padding: 0;
  background: rgba(5, 17, 14, 0.99);
}

.bingo-details-dialog__frame {
  display: grid;
  max-height: min(56rem, calc(100dvh - 2rem));
  grid-template-rows: auto minmax(0, 1fr);
}

.bingo-details-heading {
  display: flex;
  min-width: 0;
  padding: 0.85rem 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(10, 32, 26, 0.96);
  border-bottom: 1px solid var(--line-strong);
}

.bingo-details-heading h2 {
  min-width: 0;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 500;
  line-height: 1;
}

.bingo-details-dialog__body {
  min-height: 0;
  overflow-y: auto;
  padding: clamp(0.9rem, 2vw, 1.35rem);
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.bingo-game-dialog__body::-webkit-scrollbar,
.bingo-details-dialog__body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.dialog-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
}

.icon-button {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  font-size: 1.25rem;
}

.dialog-lead,
.muted {
  color: var(--ink-dim);
  font-size: 0.78rem;
  line-height: 1.5;
}

.auth-form,
.report-form {
  display: grid;
  margin-top: 1rem;
  gap: 0.75rem;
}

.auth-form small {
  color: var(--ink-dim);
  font-size: 0.62rem;
}

.auth-mode-switch { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; padding: .25rem; margin: .25rem 0 1rem; border: 1px solid var(--line); border-radius: .55rem; background: #06131080; }
.auth-mode-switch button { min-height: 2.65rem; padding: .6rem .8rem; color: var(--ink-dim); background: transparent; border: 1px solid transparent; border-radius: .35rem; font-size: .82rem; font-weight: 700; }
.auth-mode-switch button[aria-pressed="true"] { color: var(--gold-bright); background: #cfac5120; border-color: #cfac514d; }
.auth-mode-switch button:hover { color: var(--ink); }
.account-dialog button:enabled { cursor: pointer; }
.account-dialog button:disabled { cursor: not-allowed; }
.auth-form--code input[name="code"] { font-size: 1.45rem; letter-spacing: .25em; font-variant-numeric: tabular-nums; }

.signed-in-panel {
  text-align: center;
}

.contributor-emblem {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0.75rem auto 0.15rem;
  object-fit: contain;
  filter: drop-shadow(0 6px 11px rgba(0, 0, 0, 0.78));
}

.account-name-action {
  margin-top: 0.05rem;
  padding: 0.2rem;
  color: var(--gold-bright);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.handle-change-status {
  min-height: 0.95rem;
  margin: 0.3rem 0 0;
  color: var(--ink-dim);
  font-size: 0.62rem;
  line-height: 1.45;
}

.handle-form {
  display: grid;
  margin-top: 0.85rem;
  padding: 0.85rem;
  gap: 0.65rem;
  text-align: left;
  background: rgba(17, 40, 33, 0.46);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
}

.handle-form small {
  color: var(--ink-dim);
  font-size: 0.62rem;
}

.handle-form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
}

.handle-form .form-message {
  margin-top: 0;
}

.dialog-actions {
  display: grid;
  margin-top: 1rem;
  gap: 0.55rem;
}

.toast {
  position: fixed;
  z-index: 110;
  right: 1rem;
  bottom: 1rem;
  width: min(calc(100% - 2rem), 26rem);
  padding: 0.9rem 1rem;
  color: var(--ink);
  font-size: 0.75rem;
  line-height: 1.45;
  background: rgba(10, 29, 24, 0.97);
  border: 1px solid var(--line-strong);
  border-radius: 0.65rem;
  box-shadow: var(--shadow);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr) auto;
  }

  .site-brand img {
    width: 7.5rem;
  }

  .account-grid,
  .admin-grid,
  .responses-layout,
  .bingo-layout {
    grid-template-columns: 1fr;
  }

  .horizontal-cards,
  .starting-point-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding-inline: 0.45rem;
  }

  .site-header {
    min-height: 3.25rem;
    padding: 0.25rem 0.4rem;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand account"
      "nav nav";
    gap: 0.3rem;
  }

  .site-brand {
    grid-area: brand;
  }

  .site-nav {
    width: 100%;
    grid-area: nav;
    justify-content: space-around;
    gap: 0;
    border-top: 1px solid rgba(217, 184, 95, 0.16);
  }

  .site-nav a {
    min-height: 2.35rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.64rem;
  }

  .site-brand img {
    width: 5.2rem;
    height: 2.7rem;
  }

  .account-button {
    grid-area: account;
    grid-column: 2;
    min-height: 2.6rem;
    padding-inline: 0.15rem;
  }

  .site-footer p {
    display: none;
  }

  .site-footer {
    justify-content: center;
    text-align: center;
  }

  .view {
    padding-top: 0.75rem;
  }

  .view-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .view-intro h1,
  .system-hero h1,
  .idea-hero h1 {
    font-size: clamp(2rem, 11vw, 3.4rem);
  }

  .focus-intro {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 0.8rem;
  }

  .focus-intro h1 {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

  .focus-capacity {
    min-width: 0;
    padding: 0;
    justify-items: start;
  }

  .focus-capacity strong {
    font-size: 1.8rem;
  }

  .focus-patch {
    grid-template-columns: 1fr;
  }

  .focus-patch__index {
    padding: 0.7rem 0.9rem;
    align-items: center;
    flex-direction: row;
  }

  .focus-patch__index i {
    width: auto;
    min-width: 2rem;
    min-height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
  }

  .focus-patch__content {
    padding: 1rem;
    border-top: 1px solid rgba(217, 184, 95, 0.16);
    border-left: 0;
  }

  .focus-patch__content > header,
  .focus-archive > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .focus-patch__meta {
    align-items: flex-start;
    flex-flow: row wrap;
    white-space: normal;
  }

  .focus-patch__meta span + span::before {
    margin-right: 0.35rem;
    color: var(--gold-deep);
    content: "·";
  }

  .focus-patch__notes,
  .focus-archive__list {
    grid-template-columns: 1fr;
  }

  .focus-patch__content > footer,
  .focus-patch__links,
  .focus-admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .focus-admin-actions {
    width: 100%;
    margin-left: 0;
  }

  .focus-patch__links .primary-button,
  .focus-patch__links .secondary-button,
  .focus-admin-actions .secondary-button {
    width: 100%;
  }

  .focus-curator-note {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .focus-curator-note a {
    width: 100%;
    margin-left: 1.35rem;
  }

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

  .system-card {
    min-height: 0;
    aspect-ratio: 5 / 2;
  }

  .system-card footer {
    top: 0.55rem;
    right: 2.7rem;
    align-items: flex-end;
    flex-direction: column;
    gap: 0.05rem;
  }

  .system-card__number {
    top: 0.45rem;
    left: 0.45rem;
    width: 2.15rem;
    height: 2.15rem;
    font-size: 0.75rem;
  }

  .system-card__arrow {
    right: 0.6rem;
    font-size: 1.3rem;
  }

  .horizontal-cards,
  .starting-point-grid,
  .community-grid,
  .review-writing-grid {
    grid-template-columns: 1fr;
  }

  .source-response-cta,
  .review-form > footer,
  .submission-boundary {
    align-items: stretch;
    flex-direction: column;
  }

  .priority-options {
    grid-template-columns: 1fr;
  }

  .feed-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .feed-toolbar label {
    min-width: 0;
  }

  .response-card header,
  .feed-response header {
    flex-direction: column;
  }

  .response-verdict {
    justify-content: flex-start;
  }

  .view-toolbar {
    align-items: flex-start;
  }

  .view-toolbar__actions {
    align-items: flex-end;
    flex-direction: column;
  }

  .view-toolbar .secondary-button {
    max-width: 50%;
    text-align: center;
  }

  .bingo-round-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .bingo-game-dialog,
  .bingo-details-dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .bingo-game-dialog__frame,
  .bingo-details-dialog__frame {
    height: 100%;
    max-height: 100dvh;
  }

  .bingo-game-heading,
  .bingo-details-heading {
    padding: max(0.65rem, env(safe-area-inset-top)) max(0.65rem, env(safe-area-inset-right)) 0.65rem max(0.65rem, env(safe-area-inset-left));
  }

  .bingo-game-heading h1,
  .bingo-details-heading h2 {
    font-size: clamp(1.1rem, 5.15vw, 1.5rem);
  }

  .bingo-game-heading .icon-button,
  .bingo-details-heading .icon-button {
    width: 2.2rem;
    height: 2.2rem;
    flex: 0 0 auto;
  }

  .bingo-game-dialog__body,
  .bingo-details-dialog__body {
    padding: 0.6rem max(0.5rem, env(safe-area-inset-right)) max(0.7rem, env(safe-area-inset-bottom)) max(0.5rem, env(safe-area-inset-left));
  }

  .bingo-game-status {
    padding: 0.15rem 0 0.55rem;
    gap: 0.45rem 0.7rem;
  }

  .bingo-game-status .bingo-phase {
    min-height: 2rem;
    padding: 0.42rem 0.55rem;
    font-size: 0.55rem;
  }

  .bingo-game-flow {
    margin-top: 0;
    gap: 0.4rem;
  }

  .bingo-round-strip > div {
    width: 100%;
    justify-content: space-between;
  }

  .bingo-card-panel {
    padding: 0;
  }

  .bingo-scoreboard {
    gap: 0.35rem;
  }

  .bingo-scoreboard span {
    display: grid;
    justify-items: center;
    white-space: normal;
    text-align: center;
  }

  .bingo-board {
    gap: 0.16rem;
  }

  .bingo-cell {
    min-height: clamp(4.35rem, 20vw, 5.5rem);
    padding: 0.32rem 0.12rem;
    border-radius: 0.28rem;
  }

  .bingo-cell strong {
    font-size: clamp(0.47rem, 2.25vw, 0.62rem);
    line-height: 1.08;
  }

  .bingo-cell small {
    display: none;
  }

  .bingo-cell__mark {
    top: 0.12rem;
    right: 0.16rem;
    font-size: 0.56rem;
  }

  .bingo-pool .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .bingo-more-details-trigger {
    min-height: 2.25rem;
    padding-block: 0.35rem;
  }

  .bingo-pool-list {
    grid-template-columns: 1fr;
  }

  .achievement-card {
    grid-template-columns: 2.4rem minmax(0, 1fr);
  }

  .admin-bingo-summary,
  .admin-bingo-square form {
    grid-template-columns: 1fr;
  }

  .admin-bingo-summary .primary-button,
  .admin-bingo-square form label:nth-of-type(3),
  .admin-bingo-square form button {
    grid-column: 1;
  }
}

@media (max-height: 620px) and (min-width: 721px) {
  .site-header {
    min-height: 3.4rem;
  }

  .site-brand img {
    height: 2.6rem;
  }

  .view {
    padding-top: 0.6rem;
  }

  .view-intro {
    margin-bottom: 0.7rem;
  }

  .view-intro > div > p:last-child {
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Illustrated Bingo: shared artwork stays cached across all 25 squares. */
.bingo-game-dialog { background: radial-gradient(ellipse at 50% 0, #12322f, #061210 65%); }
.bingo-game-heading { background: linear-gradient(100deg, #173630, #081b18); border-bottom-color: #73613b; }
.bingo-game-flow { width: 100%; max-width: 72rem; gap: .65rem; }
.bingo-event-strip { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1rem; font-size: .74rem; color: var(--ink-soft); }
.bingo-event-strip > div { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.bingo-event-strip strong { color: #edcf88; font-variant-numeric: tabular-nums; font-weight: 700; }
.bingo-event-strip .text-button { font-size: inherit; text-align: left; }
.bingo-event-light { flex: 0 0 auto; width: .42rem; height: .42rem; border-radius: 50%; background: #e1bd70; box-shadow: 0 0 12px #dfb76b88; }
.bingo-event-light.is-live { background: #83d9b3; box-shadow: 0 0 12px #83d9b399; }
.bingo-player-count { white-space: nowrap; }
.bingo-scoreboard { padding: .55rem .15rem; margin-bottom: .6rem; border-color: #ccb57824; }
.bingo-scoreboard strong { font-size: 1.25rem; }
.bingo-board-frame { position: relative; isolation: isolate; }
.bingo-cell { --tile-accent: #c1a55c; min-height: clamp(4.6rem, 11dvh, 8rem); padding: .6rem .45rem; justify-content: flex-end; gap: 0; border-color: color-mix(in srgb, var(--tile-accent) 55%, #172722); background: #06110f; box-shadow: inset 0 1px 0 #ffffff18, 0 2px 6px #0009; transition: border-color .18s, box-shadow .18s, transform .18s; }
.bingo-cell[data-category="reveal-format"] { --tile-accent: #ac8bd3; }
.bingo-cell[data-category="world-content"] { --tile-accent: #72bda0; }
.bingo-cell[data-category="progression-items"] { --tile-accent: #d0a759; }
.bingo-cell[data-category="classes-combat"] { --tile-accent: #c17469; }
.bingo-cell[data-category="release-realms"] { --tile-accent: #76b7cf; }
.bingo-cell[data-category="broadcast-moments"] { --tile-accent: #d4aa6d; }
.bingo-cell__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 38%; opacity: .78; transition: opacity .18s, transform .25s; pointer-events: none; }
.bingo-cell::after { position: absolute; content: ''; inset: 0; background: linear-gradient(0deg, #030a09fa 0%, #030a09d6 28%, #030a0910 75%); pointer-events: none; }
.bingo-cell strong { position: relative; z-index: 1; color: #fff4dc; font-size: clamp(.65rem, 1.04vw, .88rem); font-weight: 800; line-height: 1.17; text-shadow: 0 2px 4px #000; overflow-wrap: anywhere; }
.bingo-cell:hover { border-color: #f8d986; box-shadow: inset 0 0 0 1px #efd59866, 0 0 15px #f0c36b22; }
.bingo-cell:hover .bingo-cell__art { opacity: 1; transform: scale(1.045); }
.bingo-cell__mark { z-index: 2; top: .35rem; right: .4rem; width: 1.1rem; height: 1.1rem; display: grid; place-items: center; font-weight: 900; color: #081610; border-radius: 50%; background: #f2cf76; box-shadow: 0 0 14px #eac97470; }
.bingo-cell__mark:empty { display: none; }
.bingo-cell.is-resolved { border-color: #e9c66d; box-shadow: inset 0 0 0 1px #e7bf6566, 0 0 13px #d2a95622; }
.bingo-cell.is-resolved .bingo-cell__art { opacity: 1; }
.bingo-cell.is-free .bingo-cell__art { mix-blend-mode: screen; object-fit: contain; object-position: center; }
.bingo-cell.is-free::after { background: linear-gradient(0deg, #061210f0, transparent 45%); }
.bingo-cell.is-free strong { color: #fce09c; font-size: .7rem; letter-spacing: .08em; }
.bingo-cell.is-in-line { border-color: #ffe4a2; box-shadow: inset 0 0 18px #fbd47b26, 0 0 8px #f7d57b44; }
.bingo-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.bingo-lines line { stroke: #ffe29f; stroke-width: .38; stroke-linecap: round; opacity: .55; filter: drop-shadow(0 0 2px #f6ca67); }
.bingo-lines .is-new-line { stroke-dasharray: 1; animation: bingo-line 950ms ease-out both; }
.bingo-celebration { position: absolute; z-index: 3; left: 50%; top: 35%; width: max-content; max-width: 90%; transform: translate(-50%, -50%); margin: 0; padding: 1rem 1.4rem; text-align: center; color: #ffedbe; background: #102623f5; border: 1px solid #f2cf76; border-radius: .55rem; box-shadow: 0 0 50px #edbc5344; font-family: var(--serif); font-size: clamp(1.1rem, 3vw, 2rem); pointer-events: none; opacity: 0; }
.bingo-celebration.is-celebrating { animation: bingo-celebrate 4s ease both; }
.bingo-cell.is-newly-confirmed { animation: bingo-confirm 1.15s ease-out; }
.bingo-board.is-revealing .bingo-cell { animation: bingo-reveal .65s ease-out both; }
.bingo-board.is-revealing .bingo-cell:nth-child(n+6) { animation-delay: .1s; }
.bingo-board.is-revealing .bingo-cell:nth-child(n+11) { animation-delay: .2s; }
.bingo-board.is-revealing .bingo-cell:nth-child(n+16) { animation-delay: .3s; }
.bingo-board.is-revealing .bingo-cell:nth-child(n+21) { animation-delay: .4s; }
.bingo-board.is-revealing .bingo-cell.is-free { animation-delay: .8s; }
.bingo-entry-state { align-items: center; text-align: center; padding: 1.5rem; }
.bingo-entry-crest { width: 9rem; height: 9rem; object-fit: contain; margin-bottom: 1rem; border-radius: 50%; }
.bingo-entry-state > p { max-width: 32rem; }
.bingo-game-footer { gap: .25rem; }
@keyframes bingo-reveal { from { opacity: 0; transform: translateY(10px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes bingo-confirm { 35% { filter: brightness(1.75); transform: scale(1.025); } }
@keyframes bingo-line { from { stroke-dashoffset: 1; opacity: 1; } to { stroke-dashoffset: 0; opacity: .55; } }
@keyframes bingo-celebrate { 0% { opacity: 0; scale: .95; } 12%, 78% { opacity: 1; scale: 1; } 100% { opacity: 0; } }

/* The host uses the same illustrated squares in one shared 5-by-5 master board. */
.bingo-host-dialog { width: min(calc(100% - 2rem), 78rem); max-width: none; padding: 0; overflow: hidden; background: radial-gradient(ellipse at 50% 0, #12322f, #061210 65%); }
.bingo-host-frame { display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: calc(100dvh - 2rem); }
.bingo-host-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 1.2rem 1.2rem; scrollbar-width: thin; scrollbar-color: #786342 #081310; }
.bingo-host-toolbar { position: sticky; top: 0; z-index: 3; padding: 1rem 0 .7rem; background: #0b211e; box-shadow: 0 8px 14px #06121066; }
.bingo-host-intro { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; }
.bingo-host-intro p { margin: 0; }
.bingo-host-intro .eyebrow { margin-bottom: .25rem; }
.bingo-host-intro > strong { color: var(--gold); white-space: nowrap; }
.bingo-host-status { font-size: .76rem; color: var(--ink-soft); margin: .65rem 0 0; min-height: 1.2em; }
.bingo-host-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .55rem; padding-top: .65rem; }
.bingo-host-grid .bingo-host-tile { min-height: clamp(4.6rem, 10dvh, 7.2rem); padding: .65rem .45rem; }
.bingo-host-grid .bingo-host-tile strong { font-size: .82rem; }
.bingo-host-footer { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.1rem; }
.bingo-host-grid .is-free { cursor: default; }
.bingo-host-preview { min-height: 10rem; width: 100%; margin-bottom: 1rem; pointer-events: none; }
.bingo-host-optional { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .75rem 0; margin-top: 1rem; }
.bingo-host-optional summary { color: var(--gold); }
.bingo-host-optional summary span, .bingo-host-optional small { color: var(--ink-soft); }
.bingo-host-optional label { display: grid; gap: .35rem; margin-top: .8rem; }
.bingo-host-optional label > span { font-size: .8rem; }
.bingo-host-optional input, .bingo-host-optional textarea { width: 100%; }
.bingo-host-editor-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .8rem; }
.bingo-host-dialog button:enabled, .bingo-host-dialog a, .bingo-host-dialog select:enabled, .bingo-host-editor button:enabled, .bingo-host-editor summary { cursor: pointer; }
.bingo-host-dialog button:disabled, .bingo-host-editor button:disabled { cursor: not-allowed; opacity: .55; }
@media (max-width: 600px) {
  .bingo-host-dialog { width: calc(100% - 1rem); }
  .bingo-host-frame { max-height: calc(100dvh - 2rem); }
  .bingo-host-body { padding: 0 .7rem .8rem; }
  .bingo-host-intro { align-items: flex-start; font-size: .75rem; gap: .5rem; }
  .bingo-host-intro > strong { font-size: .7rem; }
  .bingo-host-grid { gap: .25rem; }
  .bingo-host-grid .bingo-host-tile { min-height: 5rem; padding: .3rem .12rem; }
  .bingo-host-grid .bingo-host-tile strong { font-size: clamp(.44rem, 2.15vw, .72rem); line-height: 1.18; }
  .bingo-host-footer { font-size: .78rem; }
  .bingo-host-editor-actions .primary-button, .bingo-host-editor-actions .secondary-button { flex: 1; }
}

/* Route-owned offerings and Stripe Elements share one on-brand dialog. */
.view--donate > h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.donation-dialog { width: min(calc(100% - 2rem), 88rem); max-width: none; padding: clamp(1.25rem, 3vw, 2.4rem); background: radial-gradient(ellipse at 50% 0, #18322b66, transparent 55%), linear-gradient(145deg, #081a1deF, #040c0bfC); border-color: #7e735445; border-radius: 1.3rem; scrollbar-width: thin; scrollbar-color: #786342 #081310; }
.donation-heading { position: relative; text-align: center; padding: .45rem 2.4rem 1.8rem; }
.donation-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
[data-donation-content] { overflow-y: auto; min-height: 0; padding: .3rem; scrollbar-width: thin; scrollbar-color: #786342 #081310; }
.donation-heading .icon-button { position: absolute; right: -.5rem; top: -.5rem; }
.donation-heading h1 { margin: .3rem 0 .85rem; font-family: var(--serif); font-size: clamp(1.7rem, 3.5vw, 3rem); line-height: 1.1; font-weight: 500; color: #fff0cc; }
.donation-heading > p:last-child { margin: 0; color: #bec9c5; font-size: .9rem; }
.donation-heading > p:empty { display: none; }
.offering-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.55rem, 1.2vw, 1rem); padding: .3rem; }
.offering-card { position: relative; isolation: isolate; display: block; width: 100%; aspect-ratio: .66; padding: 0; overflow: hidden; text-align: left; color: #faefd2; background: #071310; border: 1px solid #85704465; border-radius: 1rem; box-shadow: 0 4px 18px #0006; transition: transform .2s, border-color .2s, box-shadow .2s; }
.offering-card::before { content: ''; position: absolute; inset: .35rem; z-index: 3; border: 1px solid #bd975140; border-radius: .7rem; pointer-events: none; }
.offering-card::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, #020706fa, #020706b0 20%, transparent 65%); pointer-events: none; }
.offering-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s, filter .2s; filter: brightness(.84); }
.offering-card:hover img, .offering-card[aria-checked="true"] img { filter: brightness(1.05); }
.offering-card:hover { transform: translateY(-3px); border-color: #e9c671; }
.offering-card[aria-checked="true"] { border-color: #f0cc75; box-shadow: 0 0 0 2px #081410, 0 0 0 3px #d7b76599, 0 0 26px #c4983826; }
.offering-card:focus-visible { outline: 3px solid #a5e1e9; outline-offset: 3px; }
.offering-gem { position: absolute; right: .7rem; top: .45rem; z-index: 4; font-size: 1.3rem; color: #81bfc9; line-height: 1; }
.offering-card[aria-checked="true"] .offering-gem { color: #c2f6ff; text-shadow: 0 0 8px #65d5ec; }
.offering-card[aria-checked="true"] .offering-gem::before { content: '◆'; position: absolute; inset: 0; }
.offering-copy { position: absolute; z-index: 2; bottom: 1.1rem; inset-inline: clamp(.7rem, 1.2vw, 1.15rem); display: flex; flex-direction: column; gap: .2rem; text-shadow: 0 2px 4px #000; }
.offering-copy > strong { font-family: var(--serif); color: #f2cc72; font-size: clamp(1.8rem, 2.7vw, 2.7rem); line-height: 1; }
.offering-copy > span { font-family: var(--serif); font-size: clamp(.95rem, 1.4vw, 1.35rem); line-height: 1.1; }
.offering-copy > small { color: #c0cbc7; font-size: clamp(.62rem, .9vw, .8rem); line-height: 1.4; }
.offering-continue { display: flex; justify-content: center; width: min(100%, 27rem); min-height: 3.15rem; margin: .9rem auto 0; border-radius: .65rem; font-size: 1rem; box-shadow: 0 5px 26px #d3ac4b26; }
.offering-custom:not([hidden]) { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .6rem; margin: 1.2rem auto 0; font-size: .85rem; }
.offering-custom input { width: 8rem; min-height: 2.8rem; }
.offering-custom small { color: var(--ink-dim); }
.donation-error { min-height: 0; margin: .65rem 0; font-size: .85rem; line-height: 1.5; color: #f4c89f; text-align: center; }
.donation-error:empty { display: none; }
.donation-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: .45rem 1.5rem; margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid #a89c7425; color: #a2b1ab; font-size: .68rem; letter-spacing: .03em; }
.donation-dialog[data-stage="payment"], .donation-dialog[data-stage="processing"], .donation-dialog[data-stage="success"] { max-width: 58rem; }
.donation-payment { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: start; }
.donation-payment-summary { position: relative; overflow: hidden; min-height: 25rem; border: 1px solid #c19e5755; border-radius: .9rem; }
.donation-payment-summary > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.donation-payment-summary > div { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem; gap: .35rem; background: linear-gradient(0deg, #020706, transparent 65%); }
.donation-payment-summary strong { color: #edca78; font-family: var(--serif); font-size: 2.9rem; line-height: 1; }
.donation-payment-summary span { font-family: var(--serif); font-size: 1.6rem; }
.donation-payment-summary small { color: var(--ink-soft); }
.donation-payment-form { display: grid; gap: 1rem; min-width: 0; }
.donation-payment-form .primary-button { width: 100%; min-height: 3rem; border-radius: .55rem; }
.donation-back { justify-self: start; font-size: .8rem; }
.donation-result { min-height: 15rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; text-align: center; }
.donation-result p { font-size: 1rem; color: var(--ink-soft); }
.donation-thanks-crest { width: 9rem; height: 9rem; border-radius: 50%; }
@media (max-width: 760px) {
  .bingo-game-flow { gap: .55rem; }
  .bingo-cell { min-height: clamp(5.15rem, 23vw, 7rem); padding: .35rem .16rem; border-radius: .32rem; }
  .bingo-cell strong { font-size: clamp(.5rem, 2.22vw, .75rem); line-height: 1.15; }
  .bingo-cell.is-free strong { font-size: .5rem; letter-spacing: .015em; }
  .bingo-cell__mark { width: .85rem; height: .85rem; font-size: .6rem; top: .2rem; right: .2rem; }
  .bingo-event-strip { align-items: flex-start; font-size: .65rem; gap: .65rem; padding: .4rem .1rem .1rem; }
  .bingo-event-strip [data-bingo-countdown] { display: block; font-size: .82rem; margin-top: .15rem; }
  .bingo-scoreboard { padding-block: .45rem; }
  .bingo-scoreboard strong { font-size: 1.05rem; }
  .bingo-cell__art { object-position: center; }
  .donation-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); padding: 1.05rem .8rem; border-radius: 1rem; }
  .donation-heading { padding: 1.4rem .45rem 1.4rem; }
  .donation-heading h1 { font-size: clamp(1.7rem, 6.3vw, 2.7rem); margin-bottom: .6rem; }
  .donation-heading .eyebrow { font-size: .62rem; }
  .donation-heading > p:last-child { font-size: .78rem; }
  .donation-heading .icon-button { top: -.65rem; right: -.35rem; width: 2rem; height: 2rem; }
  .offering-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; padding: .4rem .3rem .7rem; gap: .85rem; scrollbar-width: thin; scrollbar-color: #ac9255 #0b1b18; }
  .offering-card { flex: 0 0 clamp(11.5rem, 57vw, 15rem); aspect-ratio: .68; scroll-snap-align: center; }
  .offering-copy { inset-inline: 1rem; bottom: 1.1rem; }
  .offering-copy > strong { font-size: 2.2rem; }
  .offering-copy > span { font-size: 1.15rem; }
  .offering-copy > small { font-size: .72rem; }
  .offering-continue { margin-top: .8rem; min-height: 2.9rem; font-size: .9rem; }
  .donation-footer { margin-top: 1.2rem; gap: .5rem .9rem; font-size: .59rem; }
  .donation-payment { grid-template-columns: 1fr; gap: 1rem; }
  .donation-payment-summary { min-height: 6rem; }
  .donation-payment-summary > img { width: 6rem; object-position: center 65%; }
  .donation-payment-summary > div { position: relative; min-height: 6rem; padding: .6rem 1rem .6rem 7rem; justify-content: center; background: linear-gradient(90deg, transparent, #071310 6rem); gap: .15rem; }
  .donation-payment-summary strong { font-size: 1.5rem; }
  .donation-payment-summary span { font-size: 1.1rem; }
  .donation-payment-summary small { font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bingo-cell, .bingo-cell__art, .bingo-lines line, .offering-card, .offering-card img { animation: none !important; transition: none !important; }
  .bingo-celebration.is-celebrating { animation: none; position: relative; left: auto; top: auto; width: auto; max-width: none; transform: none; opacity: 1; margin-top: .6rem; padding: .65rem; font-size: 1rem; }
}
