:root {
  --nc-black: #0D0D0D;
  --nc-surface: #1A1A1A;
  --nc-surface-mid: #242424;
  --nc-white: #FFFFFF;
  --nc-white-60: rgba(255,255,255,0.60);
  --nc-white-30: rgba(255,255,255,0.30);
  /* Matched to the rest of the site's mint (css/styles.css --nc-mint) -
     this file previously defined its own, visibly different shade
     (#A8DED4, a greener mint) instead of reusing the shared brand color. */
  --nc-mint: #A8DADC;
  --nc-mint-fill: #A8DADC;
  --nc-mint-glow: rgba(168,218,220,0.12);
  --nc-border: rgba(255,255,255,0.08);
  --nc-border-mint: rgba(168,218,220,0.35);
  --nc-risk: #F5A3C7;
  --nc-risk-fill: #FFD3E6;
  --nc-risk-glow: rgba(245,163,199,0.16);
  --nc-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nc-ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --nc-base: 300ms;
  --nc-slow: 600ms;
  --radius: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  background:
    radial-gradient(circle at 80% 0%, rgba(168,218,220,0.10), transparent 32rem),
    var(--nc-black);
  color: var(--nc-white);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100svh;
}

button {
  font: inherit;
}

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

.app {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.mini-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo img {
  display: block;
  height: 34px;
  width: auto;
}

.back-link {
  color: var(--nc-white-60);
  font-size: 14px;
  font-weight: 500;
}

.back-link:hover {
  color: var(--nc-mint);
}

.screen { display: none; }
.screen.active { display: block; }

.intro-screen,
.brief-screen,
.result-screen {
  min-height: calc(100vh - 140px);
  min-height: calc(100svh - 140px);
  display: none;
  place-content: center;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

.intro-screen.active,
.brief-screen.active,
.result-screen.active {
  display: grid;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 0 20px;
  padding: 8px 14px;
  border: 1px solid var(--nc-border-mint);
  border-radius: 999px;
  color: var(--nc-mint);
  background: rgba(13,13,13,0.55);
  font-size: 14px;
  font-weight: 500;
  transform: rotate(-3deg);
}

h1 {
  margin: 0;
  font-size: clamp(80px, 15vw, 166px);
  line-height: 0.86;
  letter-spacing: clamp(-4px, -0.05em, -8px);
  font-weight: 600;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(44px, 7vw, 80px);
  line-height: 0.95;
  letter-spacing: -4px;
  font-weight: 600;
}

h3 {
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing: -0.5px;
}

p { line-height: 1.65; }

.intro,
.brief-screen p,
.result-screen p,
.screen-heading p {
  max-width: 720px;
  color: var(--nc-white-60);
  font-size: 18px;
}

.intro {
  margin: 28px 0 0;
  color: var(--nc-white);
  font-size: clamp(24px, 4vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.5px;
  font-weight: 700;
}

.primary-btn,
.secondary-btn {
  width: fit-content;
  margin-top: 32px;
  border-radius: 999px;
  padding: 15px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--nc-base) var(--nc-ease-spring), border-color var(--nc-base) var(--nc-ease-out);
}

.primary-btn {
  border: 0;
  background: var(--nc-mint-fill);
  color: var(--nc-black);
}

.secondary-btn {
  border: 1px solid var(--nc-border-mint);
  background: transparent;
  color: var(--nc-mint);
}

.primary-btn:hover,
.secondary-btn:hover {
  transform: scale(1.06);
}

.screen-heading {
  margin: 36px 0 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--nc-mint);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.level-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 14px;
}

.level-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--nc-border);
  border-radius: var(--radius);
  background: var(--nc-surface);
  color: var(--nc-white);
  padding: 22px;
  text-align: left;
  cursor: pointer;
  transition: transform var(--nc-base) var(--nc-ease-out), border-color var(--nc-base) var(--nc-ease-out), box-shadow var(--nc-base) var(--nc-ease-out);
}

.level-card:hover {
  transform: translateY(-6px);
  border-color: var(--nc-border-mint);
  box-shadow: 0 24px 80px var(--nc-mint-glow);
}

.level-card span {
  color: var(--nc-mint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.level-card strong {
  display: block;
  margin: 18px 0 12px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -1.5px;
}

.level-card p {
  margin: 0;
  color: var(--nc-white-60);
  font-size: 14px;
}

.level-card small {
  margin-top: auto;
  color: var(--nc-white-30);
  font-weight: 600;
}

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

.moves-card {
  min-width: 132px;
  background: var(--nc-surface);
  border: 1px solid var(--nc-border);
  color: var(--nc-white);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
}

.moves-card span {
  display: block;
  color: var(--nc-white-60);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.moves-card strong {
  color: var(--nc-mint);
  font-size: 36px;
  letter-spacing: -1px;
}

.game-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(460px, 1.55fr) minmax(260px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.card {
  background: var(--nc-surface);
  border: 1px solid var(--nc-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform var(--nc-base) var(--nc-ease-out), box-shadow var(--nc-base) var(--nc-ease-out), border-color var(--nc-base) var(--nc-ease-out);
}

.card:hover {
  border-color: var(--nc-border-mint);
  box-shadow: 0 24px 80px var(--nc-mint-glow);
}

.mission-panel p,
.hint {
  color: var(--nc-white-60);
  font-size: 15px;
}

.metrics {
  display: grid;
  gap: 14px;
}

.metric-row {
  display: grid;
  gap: 8px;
}

.metric-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 500;
  font-size: 14px;
}

.track {
  height: 8px;
  background: var(--nc-surface-mid);
  border-radius: 999px;
  overflow: hidden;
}

.fill {
  height: 100%;
  width: 0%;
  background: var(--nc-mint-fill);
  border-radius: 999px;
  transition: width var(--nc-slow) var(--nc-ease-out);
}

.workspace {
  min-height: 560px;
}

.workspace-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.small-label {
  margin: 0 0 8px;
  color: var(--nc-mint);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.scenario-tag {
  flex: 0 0 auto;
  border: 1px solid var(--nc-border-mint);
  border-radius: 999px;
  color: var(--nc-mint);
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
}

.muted {
  color: var(--nc-white-60);
  margin-top: -4px;
  font-size: 15px;
}

.mock-interface {
  margin-top: 22px;
  padding: 20px;
  border-radius: 18px;
  background: #F6F6F2;
  color: #111111;
}

.mock-screen-title {
  margin: 0 0 8px;
  color: #111111;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -1.5px;
}

.mock-text {
  margin: 0 0 18px;
  color: #666666;
  font-size: 14px;
}

.mock-grid {
  display: grid;
  gap: 12px;
}

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

.fake-field,
.fake-box,
.fake-nav,
.fake-option {
  border: 1px solid #D9D9D2;
  border-radius: 12px;
  background: white;
  padding: 11px 12px;
  color: #666666;
  font-size: 14px;
}

.fake-field.required::after {
  content: " *";
  color: #B23B3B;
  font-weight: 800;
}

.form-group-title {
  margin: 12px 0 0;
  color: #111111;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.privacy-note,
.success-note {
  border-radius: 14px;
  background: #E3F5F1;
  color: #19534B;
  padding: 10px 12px;
  font-size: 13px;
}

.warning-note {
  border-radius: 14px;
  background: #FFEAF4;
  color: #8D2854;
  padding: 10px 12px;
  font-size: 13px;
}

.mock-cta {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: #111111;
  color: white;
  padding: 14px;
  font-weight: 700;
  cursor: default;
}

.mock-cta.noisy {
  background: #FFB000;
  color: #111111;
}

.error-message {
  color: #B23B3B;
  font-size: 13px;
}

.mock-summary {
  display: grid;
  gap: 8px;
  background: white;
  border: 1px solid #D9D9D2;
  border-radius: 14px;
  padding: 14px;
}

.mock-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #555;
  font-size: 14px;
}

.mock-summary-row.total {
  border-top: 1px solid #D9D9D2;
  padding-top: 8px;
  color: #111;
  font-weight: 800;
}

.mock-nav-list {
  display: grid;
  gap: 8px;
}

.fake-nav.active {
  border-color: #111;
  color: #111;
  font-weight: 700;
}

.actions-list {
  display: grid;
  gap: 10px;
}

.action-btn {
  width: 100%;
  text-align: left;
  border: 1px solid var(--nc-border);
  background: var(--nc-surface-mid);
  color: var(--nc-white);
  border-radius: 14px;
  padding: 13px 14px;
  font-weight: 500;
  cursor: pointer;
  transition: transform var(--nc-base) var(--nc-ease-out), border-color var(--nc-base) var(--nc-ease-out), color var(--nc-base) var(--nc-ease-out);
}

.action-btn:hover:not(:disabled) {
  transform: translateY(-4px);
  border-color: var(--nc-border-mint);
  color: var(--nc-mint);
}

.action-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.feedback {
  margin-top: 18px;
}

.feedback.hidden,
.hidden { display: none; }

.feedback-label {
  margin: 0 0 6px;
  color: var(--nc-mint);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
}

.feedback.risky {
  border-color: rgba(245,163,199,0.45);
  box-shadow: 0 24px 80px var(--nc-risk-glow);
}

.feedback.risky .feedback-label {
  color: var(--nc-risk);
}

.final-score {
  display: grid;
  gap: 8px;
  margin: 28px 0;
  max-width: 460px;
}

.final-score-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--nc-border);
  padding: 10px 0;
  font-weight: 600;
}

.result-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 1120px) {
  .level-list,
  .game-grid {
    grid-template-columns: 1fr;
  }

  .workspace {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .app {
    width: min(100% - 28px, 1280px);
    padding-top: 20px;
  }

  .mini-nav,
  .game-header,
  .workspace-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .mock-grid.two {
    grid-template-columns: 1fr;
  }

  .card,
  .mock-interface {
    padding: 18px;
  }
}


/* --- v3 viewport and feedback improvements --- */
.game-screen.active {
  display: block;
}

.game-screen .game-header h2 {
  font-size: clamp(34px, 4.4vw, 58px);
  letter-spacing: -2px;
  margin: 0;
}

.game-screen {
  min-height: calc(100vh - 110px);
  min-height: calc(100svh - 110px);
}

.game-grid {
  height: calc(100vh - 250px);
  height: calc(100svh - 250px);
  min-height: 520px;
}

.mission-panel,
.workspace,
.actions-panel {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.mission-panel,
.actions-panel {
  display: flex;
  flex-direction: column;
}

.mission-panel {
  overflow: auto;
}

.workspace {
  display: flex;
  flex-direction: column;
}

.mock-interface {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.actions-panel-top {
  flex: 0 0 auto;
}

.inline-feedback {
  flex: 0 0 auto;
  margin-top: 8px;
  margin-bottom: 12px;
  padding: 16px;
  background: var(--nc-surface-mid);
  border-color: var(--nc-border-mint);
  box-shadow: none;
}

.inline-feedback h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.inline-feedback p:last-child {
  margin-bottom: 0;
}

.actions-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.actions-list::-webkit-scrollbar,
.mock-interface::-webkit-scrollbar,
.mission-panel::-webkit-scrollbar {
  width: 8px;
}

.actions-list::-webkit-scrollbar-thumb,
.mock-interface::-webkit-scrollbar-thumb,
.mission-panel::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.16);
  border-radius: 999px;
}

.feedback {
  margin-top: 0;
}

.feedback.hidden {
  display: block;
}

.feedback.hidden .feedback-label,
.feedback.hidden #feedback-title,
.feedback.hidden #feedback-text {
  opacity: 0.9;
}

.result-screen {
  min-height: calc(100vh - 140px);
  min-height: calc(100svh - 140px);
}

@media (max-width: 1120px) {
  .game-grid {
    height: auto;
    min-height: 0;
  }

  .mission-panel,
  .workspace,
  .actions-panel {
    height: auto;
    overflow: visible;
  }

  .mock-interface,
  .actions-list,
  .mission-panel {
    overflow: visible;
  }
}


/* --- v4 compact dashboard mode --- */
.app {
  width: min(1440px, calc(100% - 40px));
  padding-top: 18px;
}

.mini-nav {
  margin-bottom: 16px;
}

.dashboard-header {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(600px, 1.6fr);
  gap: 18px;
  align-items: stretch;
  margin-bottom: 14px;
}

.dashboard-title {
  min-width: 0;
}

.dashboard-title h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 0.9;
  letter-spacing: -2.5px;
}

.dashboard-status {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 12px;
  align-items: stretch;
}

.moves-card.compact {
  min-width: 0;
  padding: 12px 14px;
  display: grid;
  align-content: center;
}

.moves-card.compact strong {
  font-size: 32px;
}

.compact-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--nc-border);
  border-radius: var(--radius);
  background: var(--nc-surface);
}

.compact-metrics .metric-row {
  gap: 6px;
}

.compact-metrics .metric-top {
  font-size: 12px;
}

.compact-metrics .track {
  height: 7px;
}

.dashboard-grid {
  grid-template-columns: minmax(220px, 0.65fr) minmax(540px, 1.55fr) minmax(320px, 0.8fr);
  height: calc(100vh - 175px);
  height: calc(100svh - 175px);
  min-height: 570px;
}

.compact-mission {
  padding: 18px;
}

.compact-mission h3 {
  font-size: 20px;
}

.compact-mission p {
  font-size: 14px;
  line-height: 1.55;
}

.workspace,
.actions-panel,
.compact-mission {
  height: 100%;
}

.workspace {
  padding: 18px;
}

.workspace-top {
  margin-bottom: 6px;
}

.workspace-top h3 {
  margin-bottom: 0;
  font-size: 20px;
}

.muted {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.4;
}

.mock-interface {
  margin-top: 14px;
  padding: 18px;
}

.mock-screen-title {
  font-size: 25px;
  margin-bottom: 6px;
}

.mock-text {
  margin-bottom: 12px;
  font-size: 13px;
}

.fake-field,
.fake-box,
.fake-nav,
.fake-option {
  padding: 9px 10px;
  font-size: 13px;
}

.mock-grid {
  gap: 9px;
}

.form-group-title {
  margin-top: 8px;
}

.mock-cta {
  padding: 12px;
}

.privacy-note,
.success-note,
.warning-note {
  padding: 9px 10px;
  font-size: 12px;
}

.actions-panel {
  padding: 18px;
}

.actions-panel h3 {
  font-size: 20px;
}

.hint {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
}

.inline-feedback {
  padding: 14px;
  margin-bottom: 10px;
}

.inline-feedback h3 {
  font-size: 16px;
}

.inline-feedback p {
  font-size: 13px;
  line-height: 1.45;
}

.feedback-label {
  font-size: 11px;
}

.action-btn {
  padding: 10px 12px;
  font-size: 13px;
  border-radius: 12px;
}

.actions-list {
  gap: 8px;
}

.card:hover {
  transform: none;
}

/* Make the dashboard prioritize visibility over decorative spacing */
.game-header {
  display: none;
}

@media (max-width: 1200px) {
  .dashboard-header,
  .dashboard-status,
  .dashboard-grid {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .compact-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .workspace,
  .actions-panel,
  .compact-mission {
    height: auto;
  }
}

@media (max-width: 640px) {
  .app {
    width: min(100% - 24px, 1440px);
  }

  .compact-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-title h2 {
    font-size: 42px;
  }
}
