:root {
  --paper: #fbfbf7;
  --surface: #ffffff;
  --ink: #202326;
  --muted: #68716d;
  --line: #d9ded6;
  --accent: #c75f3d;
  --accent-dark: #8f3b26;
  --green: #5f8b6f;
  --yellow: #e6b84a;
  --blue: #527a99;
  --shadow: 0 16px 34px rgba(33, 39, 36, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #edf2ed 0%, #f7f4ec 54%, #eceff4 100%);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 34px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow,
.kicker {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 0;
  font-size: 2.45rem;
  line-height: 1;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

h3 {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(32, 35, 38, 0.12);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button.primary {
  border-color: var(--accent-dark);
  background: var(--accent);
  color: #fff;
}

.button.ghost {
  min-height: 36px;
  color: var(--accent-dark);
}

.objective {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
  border: 1px solid #cdd7cf;
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 24px rgba(33, 39, 36, 0.08);
}

.objective p {
  max-width: 78ch;
  margin-bottom: 0;
  color: #39403d;
  line-height: 1.45;
}

.objective-rule {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  border-left: 5px solid var(--accent);
  border-radius: 6px;
  padding: 12px 14px;
  background: #fff5ed;
}

.objective-rule span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.objective-rule strong {
  line-height: 1.3;
}

.scorebar {
  display: grid;
  grid-template-columns: 0.58fr 0.58fr repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.meter-card,
.metric {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(33, 39, 36, 0.08);
}

.meter-card span,
.metric-label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.meter-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.65rem;
}

.focus-card strong {
  color: var(--accent-dark);
}

.metric-label strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.track {
  height: 12px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ece7;
}

.fill {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: 999px;
  background: var(--meter-color, var(--accent));
}

.workspace {
  display: grid;
  grid-template-columns: minmax(270px, 0.95fr) minmax(330px, 1.15fr) minmax(250px, 0.82fr);
  gap: 16px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 15px;
}

.panel-heading.compact {
  padding-bottom: 10px;
}

.offer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 15px;
}

.offer-card {
  border: 1px solid var(--line);
  border-left: 6px solid var(--card-color, var(--accent));
  border-radius: 8px;
  padding: 12px;
  background: var(--paper);
}

.offer-card h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.offer-card p {
  margin-bottom: 12px;
  color: #414844;
  line-height: 1.38;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid #cfd8d2;
  border-radius: 999px;
  padding: 0 9px;
  background: #fff;
  color: #303631;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.commit-button {
  width: 100%;
  min-height: 38px;
}

.pitch-panel {
  overflow: hidden;
}

.pitch-copy {
  min-height: 118px;
  margin: 0;
  padding: 16px;
  background: #fffaf0;
  color: #2e332f;
  font-size: 1.02rem;
  line-height: 1.55;
}

.mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 8px;
}

.mockup-header span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

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

.mockup-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.mockup-card header {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 8px;
  background: var(--tone, #edf2ed);
  font-size: 0.78rem;
  font-weight: 900;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
}

.mini-scene {
  position: relative;
  height: 112px;
  overflow: hidden;
  background: #1f2627;
}

.scene-piece {
  position: absolute;
  display: block;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
}

.scene-piece.a {
  left: 14px;
  top: 15px;
  width: 48px;
  height: 34px;
  background: var(--visual-a, #e6b84a);
}

.scene-piece.b {
  right: 14px;
  top: 18px;
  width: 42px;
  height: 70px;
  background: var(--visual-b, #5f8b6f);
}

.scene-piece.c {
  left: 18px;
  right: 62px;
  bottom: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.scene-piece.d {
  left: 28px;
  bottom: 42px;
  width: 68px;
  height: 12px;
  background: rgba(255, 255, 255, 0.48);
}

.mockup-card p {
  min-height: 58px;
  margin: 0;
  padding: 8px;
  color: #4d5550;
  font-size: 0.78rem;
  line-height: 1.28;
}

.chosen-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  margin: 0;
  padding: 15px 15px 0 36px;
}

.chosen-list li {
  padding-right: 8px;
}

.chosen-list strong {
  display: block;
  margin-bottom: 3px;
}

.chosen-list span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.empty-note {
  color: var(--muted);
  line-height: 1.4;
}

.verdict {
  margin: 15px;
  border-radius: 8px;
}

.verdict-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #f4f9f5;
}

.verdict-card.loss {
  background: #fff2ee;
}

.verdict-card h3 {
  margin-bottom: 8px;
}

.verdict-card p {
  margin-bottom: 10px;
  color: #3d4540;
  line-height: 1.4;
}

.verdict-card ul {
  margin: 0 0 12px 19px;
  padding: 0;
}

.verdict-card li {
  margin-bottom: 5px;
}

@media (max-width: 980px) {
  .scorebar,
  .workspace,
  .objective {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

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

  h1 {
    font-size: 2rem;
  }

  .scorebar,
  .mockup-strip {
    grid-template-columns: 1fr;
  }

  .panel-heading,
  .mockup-header {
    align-items: stretch;
    flex-direction: column;
  }
}
