:root {
  --bg: #fff1bf;
  --surface: #fffdf4;
  --surface-muted: #ffe89b;
  --ink: #15110b;
  --ink-soft: #6f5b36;
  --line: #15110b;
  --blue: #ff4d00;
  --blue-soft: #ffe0c7;
  --green: #006b3f;
  --green-soft: #c8f25f;
  --amber: #9a4d00;
  --amber-soft: #ffe66d;
  --red: #b7192b;
  --red-soft: #ffd4dc;
  --violet: #0047ff;
  --shadow: 8px 8px 0 var(--ink);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Trebuchet MS", "Aptos", sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 77, 0, 0.34), transparent 22rem),
    radial-gradient(circle at 88% 8%, rgba(200, 242, 95, 0.72), transparent 20rem),
    linear-gradient(rgba(21, 17, 11, 0.08) 2px, transparent 2px),
    linear-gradient(90deg, rgba(21, 17, 11, 0.08) 2px, transparent 2px),
    var(--bg);
  background-size: auto, auto, 34px 34px, 34px 34px, auto;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  background: rgba(255, 241, 191, 0.9);
  border-bottom: 3px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  color: #fff;
  background: var(--blue);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  font-size: 0.76rem;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Arial Black", "Impact", sans-serif;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.brand small {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.language-control {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.55rem;
  padding: 0 0.55rem;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 800;
}

.language-control span {
  color: var(--ink-soft);
}

.language-control select {
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.topbar-actions,
.form-footer,
.card-actions,
.queue-actions,
.badge-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
  padding: 0 0.7rem;
  color: var(--ink-soft);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.shell {
  display: grid;
  gap: 1rem;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 1rem;
}

.command-grid,
.workbench-grid {
  display: grid;
  gap: 1rem;
}

.command-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.85fr);
  align-items: start;
}

.workbench-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.9fr);
}

.control-rail {
  display: grid;
  gap: 1rem;
}

.panel,
.shipping-dialog {
  background: var(--surface);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pitch-console {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(200, 242, 95, 0.95), transparent 18rem),
    linear-gradient(135deg, #fffdf4 0%, #ffe89b 52%, #ffb36d 100%);
}

.pitch-console::after {
  position: absolute;
  right: -2.8rem;
  bottom: -2rem;
  content: "EUR 1000";
  color: rgba(21, 17, 11, 0.08);
  font-family: "Arial Black", "Impact", sans-serif;
  font-size: clamp(4rem, 13vw, 11rem);
  letter-spacing: -0.08em;
  line-height: 0.8;
  transform: rotate(-8deg);
  pointer-events: none;
}

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

.pitch-console,
.budget-panel,
.bench-panel,
.ledger-panel,
.queue-panel,
.process-panel,
.about-hero,
.about-card {
  padding: 1rem;
}

.console-head,
.section-head,
.queue-top,
.card-top,
.judge-top,
.provider-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.console-head {
  margin-bottom: 1rem;
}

.eyebrow {
  margin: 0;
  width: fit-content;
  padding: 0.24rem 0.42rem;
  color: var(--ink);
  background: var(--green-soft);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 0;
  font-family: "Arial Black", "Impact", sans-serif;
  font-size: clamp(3.3rem, 8vw, 6.8rem);
  line-height: 0.84;
  letter-spacing: -0.08em;
  text-transform: uppercase;
}

h2 {
  font-family: "Arial Black", "Impact", sans-serif;
  letter-spacing: -0.04em;
  margin-bottom: 0;
  font-size: 1.35rem;
}

h3 {
  margin-bottom: 0.25rem;
}

.section-head {
  margin-bottom: 0.9rem;
}

.section-copy,
.fine-print,
.card-person,
.card-meta,
.card-reason,
.queue-person,
.queue-meta,
.provider-hint,
.judge-reason,
.judge-details,
.empty-state,
.submission-hint span {
  color: var(--ink-soft);
  line-height: 1.45;
}

.section-copy,
.fine-print,
.provider-hint,
.queue-meta,
.card-meta,
.judge-reason {
  margin-bottom: 0;
}

.hero-copy {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.28;
}

.hero-side {
  display: grid;
  gap: 0.85rem;
  justify-items: end;
  min-width: 12rem;
}

.hero-submit {
  width: 100%;
  min-height: 3.25rem;
  font-size: 1rem;
}

.process-grid,
.about-grid {
  display: grid;
  gap: 0.75rem;
}

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

.process-card,
.about-card {
  background: #fffefa;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.process-card {
  padding: 0.85rem;
}

.process-card strong {
  display: block;
  margin-bottom: 0.35rem;
}

.process-card p,
.about-card p,
.about-lede {
  color: var(--ink-soft);
  line-height: 1.5;
}

.process-card p,
.about-card p {
  margin-bottom: 0;
}

.about-shell {
  max-width: 1120px;
}

.about-hero {
  display: grid;
  gap: 1rem;
  min-height: 420px;
  align-content: center;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 77, 0, 0.28), transparent 32%),
    radial-gradient(circle at 85% 18%, rgba(200, 242, 95, 0.7), transparent 30%),
    var(--surface);
}

.about-hero h1 {
  max-width: 15ch;
}

.about-lede {
  max-width: 720px;
  margin-bottom: 0;
  font-size: 1.08rem;
}

.about-hero .primary-button,
.about-card .action-button {
  width: fit-content;
}

.about-grid {
  grid-template-columns: 1.05fr 1fr 1fr;
}

.about-card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.budget-mini {
  min-width: 10.5rem;
  padding: 0.85rem;
  color: #fff;
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  text-align: right;
  box-shadow: 5px 5px 0 var(--blue);
}

.budget-mini span,
.stat-card span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.budget-mini strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.4rem;
}

.stack-form,
.shipping-form {
  display: grid;
  gap: 0.85rem;
}

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

.field {
  display: grid;
  gap: 0.38rem;
}

.field span {
  font-size: 0.9rem;
  font-weight: 700;
}

.field small,
.privacy-toggle small {
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.35;
}

.field-hint[data-state="loading"] {
  color: var(--blue);
}

.field-hint[data-state="found"] {
  color: var(--green);
}

.field-hint[data-state="missing"] {
  color: var(--amber);
}

.field input,
.field textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fffefa;
  color: var(--ink);
  padding: 0.82rem 0.9rem;
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--blue);
}

.field textarea {
  min-height: 10rem;
  resize: vertical;
}

.submission-hint {
  display: grid;
  gap: 0.1rem;
}

.privacy-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding: 0.82rem 0.9rem;
  background: #fffefa;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.privacy-toggle input {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.12rem 0 0;
  accent-color: var(--blue);
}

.privacy-toggle span,
.privacy-toggle strong,
.privacy-toggle small {
  display: block;
}

.privacy-toggle strong {
  margin-bottom: 0.15rem;
}

.primary-button,
.ghost-button,
.action-button {
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.primary-button {
  padding: 0.86rem 1rem;
  color: var(--ink);
  background: var(--green-soft);
  border-color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  text-transform: uppercase;
}

.ghost-button,
.action-button {
  padding: 0.72rem 0.85rem;
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
  box-shadow: 3px 3px 0 rgba(21, 17, 11, 0.2);
}

.primary-button:hover,
.ghost-button:hover,
.action-button:hover {
  transform: translate(-2px, -2px);
}

.primary-button:disabled,
.ghost-button:disabled,
.action-button:disabled {
  cursor: progress;
  opacity: 0.66;
  transform: none;
}

.runtime-pill,
.badge,
.card-score,
.judge-score,
.queue-chip,
.provider-state,
.vote-strip span,
.vote-strip strong {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.65rem;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.runtime-pill {
  background: var(--surface);
  border: 1px solid var(--line);
}

.runtime-live_multi,
.runtime-live_single,
.runtime-live_partial,
.status-approved,
.status-queued_for_checkout,
.provider-state.live,
.queue-chip.ready,
.status-dot.live {
  color: var(--green);
  background: var(--green-soft);
  border-color: #bce6d6;
}

.runtime-demo_fallback,
.runtime-local_fallback,
.status-waitlisted,
.provider-state.missing,
.queue-chip.needs-details,
.status-dot.missing {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: #f1d28f;
}

.status-rejected,
.status-error {
  color: var(--red);
  background: var(--red-soft);
  border-color: #f4c5bf;
}

.card-score {
  color: var(--violet);
  background: #ebe8ff;
}

.meter {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0;
}

.meter-track {
  height: 0.72rem;
  overflow: hidden;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.meter-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 260ms ease;
}

.meter-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

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

.stat-card {
  padding: 0.78rem;
  background: #fffefa;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.stat-card strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.45rem;
}

.bench-list,
.feed-list,
.queue-list,
.judge-grid {
  display: grid;
  gap: 0.75rem;
}

.provider-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem;
  background: #fffefa;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.provider-top {
  justify-content: flex-start;
}

.provider-top strong,
.provider-top small {
  display: block;
}

.provider-top small {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.status-dot {
  width: 0.78rem;
  height: 0.78rem;
  min-height: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  transform: translateY(0.25rem);
}

.provider-hint {
  grid-column: 1 / -1;
  font-size: 0.86rem;
}

.feed-card,
.queue-card {
  display: grid;
  gap: 0.85rem;
  padding: 0.9rem;
  background: #fffefa;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.pitch-excerpt {
  display: grid;
  gap: 0.32rem;
  padding: 0.78rem;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.pitch-excerpt strong {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pitch-excerpt p {
  margin-bottom: 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.card-title,
.queue-title {
  font-size: 1.08rem;
}

.vote-strip {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.vote-strip span,
.vote-strip strong {
  color: var(--ink-soft);
  background: var(--surface-muted);
}

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

.judge-card {
  display: grid;
  gap: 0.58rem;
  min-width: 0;
  padding: 0.75rem;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.judge-top strong,
.judge-top small {
  display: block;
}

.judge-top small {
  color: var(--ink-soft);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.judge-details {
  display: grid;
  gap: 0.28rem;
  font-size: 0.82rem;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.shipping-dialog {
  width: min(720px, calc(100vw - 2rem));
  padding: 0;
}

.shipping-dialog::backdrop {
  background: rgba(24, 32, 38, 0.42);
  backdrop-filter: blur(8px);
}

.shipping-form {
  padding: 1rem;
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 30;
  transform: translate(-50%, 140%);
  width: min(640px, calc(100vw - 2rem));
  padding: 0.86rem 1rem;
  color: #fff;
  background: rgba(24, 32, 38, 0.94);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 16px 44px rgba(24, 32, 38, 0.28);
  transition: transform 220ms ease;
}

.toast.visible {
  transform: translate(-50%, 0);
}

.empty-state {
  padding: 1rem;
  background: #fffefa;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
}

@media (max-width: 1120px) {
  .command-grid,
  .workbench-grid,
  .judge-grid,
  .process-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 18ch;
    font-size: 2.6rem;
  }
}

@media (max-width: 720px) {
  :root {
    --shadow: 4px 4px 0 var(--ink);
    --radius: 12px;
  }

  body {
    background-size: auto, auto, 24px 24px, 24px 24px, auto;
  }

  .topbar,
  .section-head,
  .card-top,
  .queue-top,
  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    gap: 0.7rem;
    padding: 0.62rem 0.72rem;
    border-bottom-width: 2px;
  }

  .brand {
    gap: 0.55rem;
    min-width: 0;
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    font-size: 0.68rem;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: auto minmax(4.4rem, auto) minmax(0, 1fr);
    width: 100%;
    gap: 0.45rem;
  }

  .nav-link,
  .language-control,
  .runtime-pill {
    min-height: 2.15rem;
    padding: 0.22rem 0.52rem;
    font-size: 0.72rem;
  }

  .runtime-pill {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .language-control {
    justify-content: space-between;
  }

  .language-control span {
    display: none;
  }

  .shell {
    gap: 0.75rem;
    padding: 0.65rem;
  }

  .panel,
  .shipping-dialog {
    border-width: 2px;
  }

  .pitch-console,
  .budget-panel,
  .bench-panel,
  .ledger-panel,
  .queue-panel,
  .process-panel,
  .about-hero,
  .about-card {
    padding: 0.75rem;
  }

  .pitch-console::after {
    right: -1.2rem;
    bottom: 0.35rem;
    font-size: 4.2rem;
  }

  .console-head {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .eyebrow {
    border-width: 1.5px;
    font-size: 0.62rem;
  }

  .field-row,
  .stats-grid {
    grid-template-columns: 1fr;
  }

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

  .stat-card {
    padding: 0.6rem;
  }

  .stat-card strong {
    font-size: 1.15rem;
  }

  .budget-mini {
    width: 100%;
    min-width: 0;
    padding: 0.68rem;
    border-width: 2px;
    box-shadow: 3px 3px 0 var(--blue);
    text-align: left;
  }

  .budget-mini strong {
    font-size: 1.15rem;
  }

  .hero-side {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    justify-items: stretch;
    min-width: 0;
    gap: 0.58rem;
  }

  .hero-submit {
    min-height: 100%;
    padding-inline: 0.7rem;
    font-size: 0.88rem;
  }

  .hero-copy {
    margin-top: 0.7rem;
    font-size: 0.95rem;
    line-height: 1.22;
  }

  h1 {
    max-width: 12.5ch;
    font-family: "Arial Black", "Trebuchet MS", sans-serif;
    font-size: clamp(2.32rem, 12.5vw, 3.25rem);
    line-height: 0.94;
    letter-spacing: -0.018em;
    overflow-wrap: normal;
    text-wrap: balance;
  }

  h2 {
    font-size: 1.12rem;
  }

  .stack-form,
  .shipping-form {
    gap: 0.62rem;
  }

  .field-row {
    gap: 0.62rem;
  }

  .field input,
  .field textarea {
    border-width: 1.5px;
    padding: 0.68rem 0.72rem;
  }

  .field textarea {
    min-height: 7.25rem;
  }

  .field span {
    font-size: 0.82rem;
  }

  .field small,
  .privacy-toggle small {
    font-size: 0.72rem;
  }

  .privacy-toggle {
    gap: 0.52rem;
    padding: 0.68rem 0.72rem;
    border-width: 1.5px;
  }

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

  .submission-hint span {
    font-size: 0.78rem;
  }

  .primary-button,
  .ghost-button,
  .action-button {
    min-height: 2.75rem;
    box-shadow: 3px 3px 0 var(--ink);
  }

  .feed-card,
  .queue-card,
  .judge-card,
  .provider-card,
  .process-card,
  .about-card,
  .pitch-excerpt {
    border-width: 1.5px;
  }

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

  .provider-state {
    justify-self: start;
  }

  .meter-row,
  .card-actions,
  .queue-actions,
  .badge-row,
  .vote-strip {
    gap: 0.4rem;
  }

  .runtime-pill,
  .badge,
  .card-score,
  .judge-score,
  .queue-chip,
  .provider-state,
  .vote-strip span,
  .vote-strip strong {
    min-height: 1.45rem;
    padding: 0.24rem 0.42rem;
    font-size: 0.66rem;
  }

  .shipping-dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
  }

  .shipping-form {
    padding: 0.75rem;
  }
}

@media (max-width: 420px) {
  .topbar-actions {
    grid-template-columns: auto auto;
  }

  .runtime-pill {
    grid-column: 1 / -1;
  }

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

  .hero-submit {
    min-height: 2.9rem;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2rem, 12.8vw, 2.72rem);
    line-height: 0.98;
    letter-spacing: -0.005em;
  }

  .hero-copy {
    font-size: 0.9rem;
  }
}
