:root {
  --forest-950: #0b2119;
  --forest-900: #102e22;
  --forest-800: #174432;
  --forest-700: #216146;
  --forest-600: #2f7b56;
  --leaf: #73a942;
  --lime: #cce76d;
  --river: #55a9bb;
  --sky: #d7edf0;
  --cream: #f7f2e5;
  --paper: #fffdf6;
  --ink: #183128;
  --muted: #607068;
  --line: #d8dfd4;
  --coral: #ef7f5e;
  --gold: #e6b94e;
  --danger: #c34e3f;
  --shadow: 0 18px 48px rgba(11, 33, 25, 0.15);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

/* v1.5 — clear setup modes, compact play order and evidence-led 2030 review */
.setup-mode-gate {
  padding: clamp(20px, 3vw, 30px);
  background: linear-gradient(145deg, #f3f8ec, #fffaf0);
  border: 1px solid #cddcc7;
  border-radius: 24px;
  box-shadow: 0 12px 34px rgba(19, 57, 41, 0.08);
}

.setup-mode-heading {
  display: flex;
  max-width: 880px;
  align-items: flex-start;
  gap: 14px;
}

.setup-mode-heading > span {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  background: white;
  border: 1px solid #cedbc9;
  border-radius: 16px;
  font-size: 28px;
}

.setup-mode-heading small,
.default-setup-panel header small {
  color: var(--forest-600);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.setup-mode-heading h3,
.default-setup-panel h3 {
  margin: 3px 0 5px;
  font-size: clamp(21px, 2.5vw, 29px);
}

.setup-mode-heading p,
.default-setup-panel header p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.setup-mode-options {
  display: grid;
  margin-top: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.start-menu .setup-mode-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.start-menu-card {
  min-height: 260px;
  text-decoration: none;
}

.start-menu-card:not(.selected) {
  cursor: pointer;
}

.start-menu-card em {
  align-self: end;
  min-height: 38px;
  padding-top: 8px;
  border-top: 1px solid #dce5d8;
}

.start-menu-card.selected em {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.start-menu-card:focus-visible {
  position: relative;
  z-index: 1;
}

.setup-mode-card {
  display: grid;
  min-height: 220px;
  padding: 20px;
  grid-template-columns: auto 1fr;
  align-content: start;
  gap: 8px 13px;
  color: var(--ink);
  text-align: left;
  background: white;
  border: 2px solid #cfdbcf;
  border-radius: 20px;
  box-shadow: 0 7px 20px rgba(19, 57, 41, 0.06);
}

.setup-mode-card:hover,
.setup-mode-card:focus-visible {
  border-color: var(--forest-600);
  outline: 3px solid rgba(47, 123, 86, 0.16);
  transform: translateY(-2px);
}

.setup-mode-card.selected {
  color: white;
  background: linear-gradient(145deg, var(--forest-900), var(--forest-700));
  border-color: var(--lime);
  box-shadow: 0 13px 30px rgba(16, 46, 34, 0.2);
}

.setup-mode-card > i {
  display: grid;
  width: 50px;
  height: 50px;
  grid-row: 1 / 4;
  place-items: center;
  background: #eff5e8;
  border-radius: 15px;
  font-size: 27px;
  font-style: normal;
}

.setup-mode-card.selected > i {
  background: rgba(255, 255, 255, 0.13);
}

.setup-mode-card span small,
.setup-mode-card span b,
.setup-mode-card p,
.setup-mode-card em {
  display: block;
}

.setup-mode-card span small {
  color: var(--forest-600);
  font-size: 14px;
  font-weight: 900;
}

.setup-mode-card span b {
  margin-top: 3px;
  font-size: 19px;
  line-height: 1.35;
}

.setup-mode-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.setup-mode-card em {
  color: #6d551d;
  font-size: 14px;
  font-style: normal;
  font-weight: 850;
}

.setup-mode-card.selected span small,
.setup-mode-card.selected p,
.setup-mode-card.selected em {
  color: rgba(255, 255, 255, 0.8);
}

#setupModeExplanation {
  margin-top: 12px;
  padding: 13px 16px;
  color: #244a39;
  background: #e7f0dd;
  border-left: 5px solid var(--forest-600);
  border-radius: 10px;
}

#setupModeExplanation b {
  font-size: 15px;
}

#setupModeExplanation p {
  margin: 3px 0 0;
  font-size: 14px;
  line-height: 1.6;
}

.resume-game-button {
  width: 100%;
  min-height: 52px;
  margin-top: 12px;
  padding: 10px 18px;
  color: white;
  background: var(--forest-800);
  border: 1px solid var(--forest-700);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 900;
}

.resume-game-button:hover,
.resume-game-button:focus-visible {
  background: var(--forest-700);
  outline: 3px solid rgba(47, 123, 86, 0.18);
}

.default-setup-panel {
  margin-top: 16px;
  padding: clamp(20px, 3vw, 28px);
  color: var(--ink);
  background: white;
  border: 1px solid #d3ddd1;
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(19, 57, 41, 0.08);
}

.default-setup-panel[hidden],
.detailed-setup-fields[hidden] {
  display: none;
}

.default-setup-panel > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.default-setup-panel > header p {
  max-width: 440px;
}

.default-setup-values {
  display: grid;
  margin: 18px 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.default-setup-values > span {
  display: grid;
  min-height: 92px;
  padding: 12px;
  grid-template-columns: auto 1fr;
  align-content: center;
  gap: 2px 9px;
  background: #f3f7ef;
  border: 1px solid #dce5d8;
  border-radius: 13px;
}

.default-setup-values i {
  grid-row: 1 / 3;
  font-size: 24px;
  font-style: normal;
}

.default-setup-values small,
.default-setup-values b {
  display: block;
}

.default-setup-values small {
  color: var(--muted);
  font-size: 14px;
}

.default-setup-values b {
  font-size: 15px;
  line-height: 1.35;
}

.default-setup-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-start-status {
  min-height: 22px;
  margin: 8px 0 0;
  color: var(--forest-700);
  font-size: 14px;
  font-weight: 800;
}

.start-game-button[aria-busy="true"] {
  cursor: wait;
  filter: saturate(0.75);
  opacity: 0.78;
}

.default-setup-actions .start-game-button {
  min-height: 70px;
}

.open-detailed-setup {
  min-height: 52px;
  padding: 10px 16px;
  color: var(--forest-800);
  background: #edf4e8;
  border: 1px solid #c8d9c1;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
}

.detailed-setup-fields {
  margin-top: 24px;
}

.play-grid {
  grid-template-columns: 1fr;
}

.judgement-lenses {
  display: grid;
  margin-top: 16px;
  grid-template-columns: minmax(300px, 0.8fr) 1fr;
}

.judgement-lenses > header {
  grid-column: 1 / -1;
}

.judgement-lenses .theme-instruction {
  border-top: 0;
  border-left: 1px solid var(--line);
}

.nature-positive-checkpoint {
  margin: 18px 0;
  padding: clamp(17px, 3vw, 24px);
  color: var(--ink);
  text-align: left;
  background: linear-gradient(150deg, #f0f8e8, #fffaf0);
  border: 2px solid #b8d5a7;
  border-radius: 18px;
}

.nature-positive-checkpoint > header {
  display: flex;
  align-items: center;
  gap: 11px;
}

.nature-positive-checkpoint > header > span {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  background: white;
  border-radius: 14px;
  font-size: 27px;
}

.nature-positive-checkpoint header small {
  color: var(--forest-600);
  font-size: 14px;
  font-weight: 900;
}

.nature-positive-checkpoint h3 {
  margin: 2px 0 0;
  font-size: clamp(20px, 3vw, 27px);
}

.nature-positive-verdict {
  display: flex;
  margin-top: 14px;
  padding: 14px;
  align-items: flex-start;
  gap: 12px;
  background: white;
  border-left: 6px solid #9b6a23;
  border-radius: 12px;
}

.nature-positive-verdict[data-status="ready-for-verification"] {
  border-left-color: var(--forest-600);
}

.nature-positive-verdict > span {
  font-size: 28px;
}

.nature-positive-verdict small,
.nature-positive-verdict b {
  display: block;
}

.nature-positive-verdict small {
  color: var(--forest-600);
  font-size: 14px;
  font-weight: 900;
}

.nature-positive-verdict b {
  margin-top: 2px;
  font-size: 18px;
}

.nature-positive-verdict p {
  margin: 5px 0 0;
  color: #6e392e;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.55;
}

.nature-positive-checks {
  display: grid;
  margin-top: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.nature-positive-checks article {
  display: flex;
  min-height: 120px;
  padding: 11px;
  align-items: flex-start;
  gap: 8px;
  background: white;
  border: 1px solid #d5dfd2;
  border-radius: 12px;
}

.nature-positive-checks article > span {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  background: #ad5d45;
  border-radius: 50%;
  font-weight: 900;
}

.nature-positive-checks article.passed > span {
  background: var(--forest-600);
}

.nature-positive-checks small,
.nature-positive-checks b {
  display: block;
}

.nature-positive-checks small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nature-positive-checks b {
  margin: 1px 0 3px;
  font-size: 18px;
}

.nature-positive-checks p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.second-half-challenges {
  margin-top: 11px;
  padding: 14px 16px;
  background: #173f2e;
  border-radius: 13px;
}

.second-half-challenges header {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.second-half-challenges header small {
  color: var(--lime);
}

.second-half-challenges h4 {
  margin: 0;
  color: white;
  font-size: 18px;
}

.second-half-challenges ol {
  margin: 9px 0 0;
  padding-left: 24px;
  color: rgba(255, 255, 255, 0.88);
}

.second-half-challenges li {
  margin-top: 5px;
  padding-left: 4px;
  font-size: 14px;
  line-height: 1.55;
}

.nature-positive-boundary {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.result-characters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-characters article {
  align-items: flex-start;
}

.result-characters article > div {
  min-width: 0;
}

.result-characters .turning-point-label {
  display: inline-block;
  margin-top: 5px;
  padding: 4px 7px;
  color: var(--forest-800);
  background: #eaf3df;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 900;
}

.result-characters p {
  line-height: 1.55;
}

.result-characters em {
  display: block;
  margin-top: 7px;
  padding-top: 7px;
  color: #6d551d;
  border-top: 1px solid #e2dfd1;
  font-size: 14px;
  font-style: normal;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .setup-mode-options,
  .default-setup-values,
  .nature-positive-checks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .start-menu .setup-mode-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .default-setup-panel > header {
    display: block;
  }

  .default-setup-panel > header p {
    margin-top: 5px;
  }

  .default-setup-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .judgement-lenses {
    display: block;
  }

  .judgement-lenses .theme-instruction {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .setup-mode-options,
  .default-setup-values,
  .nature-positive-checks,
  .result-characters {
    grid-template-columns: 1fr;
  }

  .setup-mode-card {
    min-height: 0;
  }

  .start-menu .setup-mode-options {
    grid-template-columns: 1fr;
  }

  .setup-mode-heading > span {
    width: 46px;
    height: 46px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--cream);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 20%, rgba(115, 169, 66, 0.08), transparent 25rem),
    var(--cream);
  font-family: "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 12px 18px;
  color: white;
  background: var(--forest-900);
  border-radius: 10px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

body:not(.is-english) .en,
body.is-english .ja {
  display: none !important;
}

.game-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 10px clamp(18px, 4vw, 64px);
  color: white;
  background: rgba(11, 33, 25, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(16px);
}

.game-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
}

.game-brand > span:first-child {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  font-size: 25px;
  background: var(--forest-700);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.game-brand b,
.game-brand small {
  display: block;
  line-height: 1.15;
}

.game-brand b {
  font-size: 18px;
  letter-spacing: 0.06em;
}

.game-brand small {
  margin-top: 4px;
  color: var(--lime);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.game-topbar nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-topbar nav a,
.game-topbar nav button {
  min-height: 44px;
  padding: 9px 14px;
  color: white;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.game-topbar nav a:hover,
.game-topbar nav button:hover,
.game-topbar nav a:focus-visible,
.game-topbar nav button:focus-visible {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.24);
  outline: none;
}

#languageToggle {
  color: var(--forest-950);
  background: var(--lime);
}

.title-screen {
  overflow: hidden;
}

.hero-media {
  position: relative;
  min-height: min(760px, calc(100vh - 76px));
  color: white;
  background: var(--forest-950);
}

.hero-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 29, 21, 0.94) 0%, rgba(6, 29, 21, 0.76) 38%, rgba(6, 29, 21, 0.05) 70%),
    linear-gradient(0deg, rgba(6, 29, 21, 0.68), transparent 45%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(730px, 90vw);
  padding: clamp(70px, 10vh, 130px) clamp(24px, 5vw, 80px);
}

.eyebrow,
.journey-setup > header > p:first-child,
.result-hero p,
.nature-automation small,
.region-map-card header small,
.decision-card header small,
.result-body section small,
.leaderboard-panel header small {
  margin: 0 0 12px;
  color: var(--lime);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.hero-copy h1 {
  margin: 0;
  max-width: 720px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(44px, 6vw, 82px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.035em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.hero-lead {
  max-width: 660px;
  margin: 28px 0 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-facts > span {
  display: grid;
  min-width: 114px;
  padding: 12px 16px;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 7px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}

.hero-facts b {
  color: var(--lime);
  font-size: 28px;
  line-height: 1;
}

.hero-facts small {
  padding-bottom: 1px;
  color: white;
  font-size: 14px;
  font-weight: 800;
}

.hero-start {
  display: inline-flex;
  min-height: 58px;
  margin-top: 32px;
  padding: 12px 20px 12px 24px;
  align-items: center;
  gap: 16px;
  color: var(--forest-950);
  background: var(--lime);
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.hero-start b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: white;
  border-radius: 50%;
}

.premise-strip {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1240px, calc(100% - 32px));
  margin: -54px auto 0;
  grid-template-columns: repeat(3, 1fr);
  background: var(--paper);
  border: 1px solid rgba(16, 46, 34, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.premise-strip article {
  display: grid;
  min-height: 150px;
  padding: 28px;
  grid-template-columns: 42px 1fr;
  gap: 16px;
}

.premise-strip article + article {
  border-left: 1px solid var(--line);
}

.premise-strip article > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--forest-700);
  background: #eaf3e4;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
}

.premise-strip b {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.premise-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.journey-setup {
  width: min(1240px, calc(100% - 32px));
  margin: 72px auto 110px;
}

.journey-setup > header {
  max-width: 820px;
  margin: 0 0 38px;
}

.journey-setup > header > p:first-child {
  color: var(--forest-600);
}

.journey-setup > header h2 {
  margin: 0 0 12px;
  font-size: clamp(31px, 4vw, 50px);
  line-height: 1.22;
}

.journey-setup > header > p:last-child {
  color: var(--muted);
  font-size: 17px;
}

.setup-step {
  display: grid;
  padding: 34px 0;
  grid-template-columns: 58px minmax(220px, 330px) 1fr;
  gap: 28px;
  border-top: 1px solid #cbd6cb;
}

.step-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: white;
  background: var(--forest-800);
  border-radius: 50%;
  font-weight: 900;
}

.step-copy small {
  color: var(--forest-600);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.step-copy h3 {
  margin: 7px 0 9px;
  font-size: 23px;
  line-height: 1.35;
}

.step-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.enterprise-picker label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 800;
}

.enterprise-picker > input {
  width: 100%;
  min-height: 52px;
  padding: 10px 16px;
  color: var(--ink);
  background: white;
  border: 2px solid #b9c9bd;
  border-radius: 13px;
  font-size: 16px;
}

.enterprise-picker > input:focus {
  border-color: var(--forest-600);
  outline: 3px solid rgba(47, 123, 86, 0.18);
}

.enterprise-options {
  display: flex;
  max-height: 210px;
  margin-top: 10px;
  padding-right: 5px;
  flex-wrap: wrap;
  gap: 8px;
  overflow: auto;
}

.enterprise-options button,
.selected-summary {
  border-radius: 999px;
}

.enterprise-options button {
  padding: 9px 13px;
  color: var(--ink);
  background: white;
  border: 1px solid #c8d3c8;
  font-size: 14px;
  font-weight: 800;
}

.enterprise-options button:hover,
.enterprise-options button:focus-visible,
.enterprise-options button[aria-selected="true"] {
  color: white;
  background: var(--forest-700);
  border-color: var(--forest-700);
  outline: none;
}

.selected-summary {
  display: flex;
  min-height: 50px;
  margin-top: 12px;
  padding: 10px 16px;
  align-items: center;
  gap: 10px;
  color: var(--forest-900);
  background: #e7f1df;
  border: 1px solid #c2d8b5;
}

.selected-summary i {
  font-size: 24px;
  font-style: normal;
}

.selected-summary b {
  font-size: 16px;
}

.selected-summary small {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.role-options,
.market-options,
.difficulty-options {
  display: grid;
  gap: 10px;
}

.role-options {
  grid-template-columns: repeat(3, 1fr);
}

.market-options {
  grid-template-columns: repeat(2, 1fr);
}

.difficulty-options {
  grid-template-columns: repeat(3, 1fr);
}

.select-card {
  position: relative;
  min-height: 128px;
  padding: 18px;
  color: var(--ink);
  text-align: left;
  background: var(--paper);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(11, 33, 25, 0.07);
}

.select-card:hover,
.select-card:focus-visible {
  border-color: #9cbd91;
  transform: translateY(-2px);
  outline: none;
}

.select-card[aria-pressed="true"] {
  color: white;
  background: var(--forest-800);
  border-color: var(--lime);
  box-shadow: 0 9px 26px rgba(16, 46, 34, 0.22);
}

.select-card > i {
  display: block;
  margin-bottom: 9px;
  font-size: 26px;
  font-style: normal;
}

.select-card b {
  display: block;
  font-size: 16px;
  line-height: 1.4;
}

.select-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.select-card[aria-pressed="true"] small {
  color: rgba(255, 255, 255, 0.75);
}

.start-panel {
  display: flex;
  margin-top: 30px;
  padding: clamp(24px, 4vw, 42px);
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: white;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent),
    var(--forest-900);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.start-panel > div {
  max-width: 480px;
}

.seed-label {
  color: var(--lime);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.start-panel > div > b {
  display: block;
  margin: 4px 0;
  font-size: 21px;
}

.start-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.start-game-button {
  display: flex;
  min-width: min(100%, 390px);
  min-height: 76px;
  padding: 14px 16px 14px 22px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--forest-950);
  background: var(--lime);
  border: 0;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.start-game-button small,
.start-game-button b {
  display: block;
  text-align: left;
}

.start-game-button small {
  margin-bottom: 4px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.start-game-button b {
  font-size: 18px;
}

.start-game-button i {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  background: var(--forest-800);
  border-radius: 50%;
  font-size: 24px;
  font-style: normal;
}

.play-screen {
  min-height: 100vh;
  padding-bottom: 80px;
  background: #eef2e9;
}

.play-header {
  position: sticky;
  z-index: 20;
  top: 76px;
  display: grid;
  min-height: 88px;
  padding: 12px clamp(16px, 3vw, 44px);
  grid-template-columns: 1fr minmax(260px, 1.2fr) 170px;
  align-items: center;
  gap: 24px;
  color: white;
  background: rgba(16, 46, 34, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.play-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.play-identity > button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 50%;
}

.play-identity small,
.play-identity b,
.play-identity span {
  display: block;
  line-height: 1.25;
}

.play-identity small,
.play-identity span {
  font-size: 14px;
}

.play-identity small {
  color: var(--lime);
  font-weight: 900;
}

.play-identity b {
  margin: 2px 0;
  font-size: 17px;
}

.play-identity span {
  color: rgba(255, 255, 255, 0.68);
}

.turn-clock {
  text-align: center;
}

.turn-clock > span {
  display: block;
  color: var(--lime);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.turn-clock > b {
  display: block;
  margin: 3px 0 7px;
  font-size: 17px;
}

.turn-progress {
  width: 100%;
  height: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.turn-progress i {
  display: block;
  width: 2.5%;
  height: 100%;
  background: var(--lime);
  border-radius: inherit;
  transition: width 400ms ease;
}

.live-score {
  text-align: right;
}

.live-score small {
  display: block;
  color: rgba(255, 255, 255, 0.67);
  font-size: 14px;
}

.live-score b {
  color: var(--lime);
  font-size: 34px;
  line-height: 1;
}

.live-score > span {
  margin-left: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

.pressure-deck {
  display: grid;
  width: min(1460px, calc(100% - 28px));
  margin: 18px auto;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.pressure-deck article {
  display: grid;
  min-height: 86px;
  padding: 14px;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid #d5dfd4;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(11, 33, 25, 0.04);
}

.pressure-deck article > span {
  font-size: 25px;
}

.pressure-deck small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.pressure-deck b {
  display: block;
  margin: 1px 0 2px;
  font-size: 19px;
  line-height: 1.1;
}

.pressure-deck em {
  display: block;
  min-height: 20px;
  margin-bottom: 5px;
  color: var(--forest-700);
  font-size: 14px;
  font-style: normal;
  font-weight: 850;
}

.pressure-deck em[data-status="caution"] {
  color: #9a5d00;
}

.pressure-deck em[data-status="critical"] {
  color: var(--danger);
}

.pressure-deck article[data-status="critical"] {
  border-color: rgba(185, 62, 45, 0.55);
  background: #fff7f3;
}

.chapter-banner {
  display: grid;
  width: min(1460px, calc(100% - 28px));
  min-height: 68px;
  margin: -2px auto 16px;
  padding: 12px 18px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  color: white;
  background: linear-gradient(120deg, var(--forest-900), var(--forest-700));
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(11, 33, 25, 0.12);
}

.chapter-banner > span {
  padding: 8px 11px;
  color: var(--forest-950);
  background: var(--lime);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 950;
}

.chapter-banner b {
  display: block;
  font-size: 18px;
}

.chapter-banner p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.chapter-banner ol {
  display: flex;
  margin: 0;
  padding: 0;
  gap: 6px;
  list-style: none;
}

.chapter-banner li {
  padding: 7px 9px;
  color: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
}

.chapter-banner li.active {
  color: white;
  border-color: var(--lime);
}

.pressure-deck article div div,
.score-console article > div {
  height: 6px;
  overflow: hidden;
  background: #e8ece7;
  border-radius: 999px;
}

.pressure-deck article div div i,
.score-console article > div i {
  display: block;
  width: 50%;
  height: 100%;
  background: var(--forest-600);
  border-radius: inherit;
  transition: width 450ms ease, background-color 450ms ease;
}

.play-grid {
  display: grid;
  width: min(1460px, calc(100% - 28px));
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.18fr) minmax(480px, 1fr);
  gap: 16px;
}

.region-map-card,
.decision-card,
.nature-automation,
.score-console article {
  background: white;
  border: 1px solid #d5dfd4;
  border-radius: var(--radius-md);
  box-shadow: 0 5px 18px rgba(11, 33, 25, 0.05);
}

.region-map-card,
.decision-card {
  overflow: hidden;
}

.region-map-card > header,
.decision-card > header,
.nature-automation > header,
.leaderboard-panel > header {
  display: flex;
  padding: 19px 22px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.region-map-card h2,
.decision-card h2,
.nature-automation h2,
.leaderboard-panel h2,
.result-body h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
}

.region-map-card header small,
.decision-card header small,
.nature-automation header small,
.leaderboard-panel header small {
  color: var(--forest-600);
  font-size: 14px;
}

.region-map-card header button {
  padding: 8px 12px;
  color: var(--forest-700);
  background: white;
  border: 1px solid #afc1b4;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.region-map {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background: var(--forest-900);
}

.region-map > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.region-map::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(0deg, rgba(7, 30, 22, 0.35), transparent 50%);
}

.map-stop {
  position: absolute;
  z-index: 2;
  display: flex;
  padding: 7px 10px;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  background: rgba(255, 253, 246, 0.94);
  border: 2px solid white;
  border-radius: 999px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2);
  transform: scale(0.94);
  transition: transform 300ms ease, background 300ms ease;
}

.map-stop.active {
  color: var(--forest-950);
  background: var(--lime);
  transform: scale(1.08);
}

.map-stop i {
  font-style: normal;
}

.map-stop b {
  font-size: 14px;
}

.stop-spring {
  right: 17%;
  bottom: 17%;
}

.stop-summer {
  right: 36%;
  bottom: 37%;
}

.stop-autumn {
  right: 6%;
  bottom: 35%;
}

.stop-winter {
  right: 26%;
  top: 32%;
}

.traveller {
  position: absolute;
  z-index: 3;
  right: 19%;
  bottom: 25%;
  font-size: 34px;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.35));
  transition: inset 550ms ease, right 550ms ease, bottom 550ms ease, top 550ms ease;
}

.journey-narrative {
  min-height: 76px;
  padding: 16px 22px;
  color: var(--ink);
  background: #f8faf4;
  border-top: 1px solid var(--line);
}

.journey-narrative b {
  color: var(--forest-700);
}

.journey-narrative p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.decision-card {
  align-self: stretch;
  position: sticky;
  top: 104px;
  max-height: calc(100vh - 120px);
}

.decision-counter {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
}

.decision-counter b {
  color: var(--forest-700);
  font-size: 28px;
}

.decision-help {
  margin: 0;
  padding: 12px 20px;
  color: var(--muted);
  background: #f6f8f3;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.action-options {
  display: grid;
  min-height: 330px;
  padding: 10px;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.action-card {
  display: grid;
  width: 100%;
  min-height: 104px;
  padding: 11px;
  grid-template-columns: 42px 1fr auto;
  align-items: start;
  gap: 12px;
  color: var(--ink);
  text-align: left;
  background: white;
  border: 2px solid #dbe3d9;
  border-radius: 15px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.action-card:hover,
.action-card:focus-visible {
  border-color: var(--forest-600);
  box-shadow: 0 8px 20px rgba(16, 46, 34, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.action-card > i {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: #ecf4e6;
  border-radius: 13px;
  font-size: 23px;
  font-style: normal;
}

.action-card b {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
  line-height: 1.4;
}

.action-card p {
  margin: 0;
  color: var(--muted);
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.action-context {
  display: block;
  margin-bottom: 2px;
  color: #667b6d;
  font-size: 14px;
  font-style: normal;
  font-weight: 850;
}

.action-card .action-tags {
  display: flex;
  margin-top: 8px;
  flex-wrap: wrap;
  gap: 5px;
}

.action-card .action-tags span {
  padding: 3px 7px;
  color: var(--forest-700);
  background: #edf3e9;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.action-cost {
  min-width: 70px;
  padding: 6px 8px;
  color: var(--danger);
  background: #fff2ed;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.decision-foot {
  display: flex;
  padding: 14px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--forest-950);
  color: white;
}

.decision-foot > span {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.decision-foot b {
  color: var(--lime);
  font-size: 25px;
}

.decision-foot small,
.decision-foot p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.decision-receipt {
  position: fixed;
  z-index: 30;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: min(540px, calc(100vw - 28px));
  padding: 16px;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
  color: white;
  background: rgba(10, 47, 33, 0.96);
  border: 1px solid rgba(204, 231, 109, 0.45);
  border-radius: 17px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
  transform: translateY(18px);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.decision-receipt.show {
  opacity: 1;
  transform: translateY(0);
}

.decision-receipt > i {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--forest-950);
  background: var(--lime);
  border-radius: 14px;
  font-size: 26px;
  font-style: normal;
}

.decision-receipt small,
.decision-receipt p,
.decision-receipt em {
  display: block;
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-style: normal;
}

.decision-receipt b {
  display: block;
  font-size: 17px;
}

.decision-receipt em {
  color: var(--lime);
  font-weight: 800;
}

.decision-foot p {
  max-width: 230px;
  margin: 0;
  text-align: right;
}

.nature-automation {
  width: min(1460px, calc(100% - 28px));
  margin: 16px auto 0;
  overflow: hidden;
}

.nature-automation > header p {
  max-width: 410px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.system-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.technology-portfolio {
  display: grid;
  padding: 18px 22px;
  grid-template-columns: minmax(250px, 0.8fr) minmax(0, 1.4fr);
  align-items: center;
  gap: 20px;
  background: #102e22;
  color: white;
}

.technology-intro {
  display: flex;
  align-items: center;
  gap: 13px;
}

.technology-intro > span {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  font-size: 27px;
}

.technology-intro small {
  color: var(--lime);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.technology-intro h3 {
  margin: 1px 0 2px;
  font-size: 18px;
}

.technology-intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 14px;
}

.technology-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.technology-card {
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
}

.technology-card.active {
  background: rgba(204, 231, 109, 0.13);
  border-color: rgba(204, 231, 109, 0.5);
}

.technology-card > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.technology-card i {
  font-size: 20px;
  font-style: normal;
}

.technology-card b {
  flex: 1;
  font-size: 14px;
}

.technology-card em {
  color: var(--lime);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.technology-card .level-pips {
  margin-top: 8px;
}

.technology-card .level-pips span {
  background: rgba(255, 255, 255, 0.14);
}

.technology-card .level-pips span.on {
  background: var(--lime);
}

.system-card {
  position: relative;
  min-height: 152px;
  padding: 18px;
  overflow: hidden;
}

.system-card + .system-card {
  border-left: 1px solid var(--line);
}

.system-card > i {
  display: block;
  margin-bottom: 9px;
  font-size: 29px;
  font-style: normal;
}

.system-card b {
  display: block;
  font-size: 15px;
}

.system-card p {
  min-height: 39px;
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.level-pips {
  display: flex;
  gap: 5px;
}

.level-pips span {
  width: 100%;
  height: 8px;
  background: #e3e9e1;
  border-radius: 999px;
}

.level-pips span.on {
  background: var(--leaf);
}

.system-card em {
  display: inline-block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.system-card.active {
  background: linear-gradient(145deg, #f4f9ea, white);
}

.system-card.active em {
  color: var(--forest-700);
}

.score-console {
  display: grid;
  width: min(1460px, calc(100% - 28px));
  margin: 16px auto 0;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.score-console article {
  padding: 17px;
}

.score-console article > small {
  color: var(--forest-600);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.score-console article > b {
  display: block;
  margin: 3px 0 7px;
  font-size: 31px;
  line-height: 1;
}

.score-console article > p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.result-screen {
  min-height: 100vh;
  padding-bottom: 100px;
  background: var(--cream);
}

.result-hero {
  position: relative;
  display: grid;
  min-height: 560px;
  place-items: center;
  overflow: hidden;
  color: white;
  text-align: center;
}

.result-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(8, 36, 25, 0.65);
}

.result-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-hero > div {
  position: relative;
  z-index: 2;
  padding: 30px;
}

.result-hero h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(39px, 5vw, 68px);
  line-height: 1.22;
}

.final-score {
  display: inline-flex;
  margin-top: 24px;
  padding: 12px 26px;
  align-items: baseline;
  gap: 8px;
  background: rgba(11, 33, 25, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.final-score b {
  color: var(--lime);
  font-size: 49px;
  line-height: 1;
}

.final-score span {
  color: rgba(255, 255, 255, 0.7);
}

.result-body {
  width: min(1120px, calc(100% - 32px));
  margin: -36px auto 0;
  position: relative;
  z-index: 3;
}

.result-body > section {
  margin-bottom: 18px;
  padding: clamp(22px, 4vw, 38px);
  background: var(--paper);
  border: 1px solid #d6dfd4;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.result-summary h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.result-summary p {
  margin: 0;
  color: var(--muted);
}

.result-bonus-unlock {
  background: linear-gradient(135deg, #edf8dc, #fffdf5);
  border-color: #bad78b !important;
}

.result-bonus-unlock > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.result-bonus-unlock > header small {
  color: var(--forest-600);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
}

.result-bonus-unlock > header > span {
  font-size: 36px;
}

.result-bonus-unlock p {
  margin: 0 0 12px;
  color: var(--muted);
}

.result-bonus-unlock a {
  display: inline-flex;
  padding: 11px 16px;
  color: var(--forest-950);
  background: var(--lime);
  border-radius: 999px;
  font-weight: 900;
}

.result-badges {
  display: flex;
  margin-top: 18px;
  flex-wrap: wrap;
  gap: 8px;
}

.result-badges span {
  padding: 8px 12px;
  color: var(--forest-800);
  background: #e9f3df;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.result-score-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.result-score-grid article {
  padding: 18px;
  background: #f3f6ef;
  border-radius: 15px;
}

.result-score-grid small {
  color: var(--forest-600);
}

.result-score-grid b {
  display: block;
  margin: 4px 0;
  font-size: 34px;
}

.result-score-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.result-story {
  background:
    radial-gradient(circle at 90% 20%, rgba(204, 231, 109, 0.2), transparent 16rem),
    var(--forest-900) !important;
  color: white;
  border-color: var(--forest-900) !important;
}

.result-guidance {
  position: relative;
  overflow: hidden;
}

.result-guidance::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  content: "";
  background: var(--coral);
}

.result-guidance.is-success::before {
  background: var(--leaf);
}

.result-guidance > header {
  margin-bottom: 18px;
}

.result-guidance > header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.guidance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.aar-diagnostics {
  display: grid;
  margin: 0 0 14px;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.aar-diagnostics > span {
  padding: 12px;
  background: #f3f6ef;
  border: 1px solid #d9e2d7;
  border-radius: 13px;
}

.aar-diagnostics > span[data-status="critical"] {
  background: #fff2ed;
  border-color: rgba(185, 62, 45, 0.42);
}

.aar-diagnostics > span[data-status="caution"] {
  background: #fff8e3;
  border-color: rgba(154, 93, 0, 0.34);
}

.aar-diagnostics small,
.aar-diagnostics b {
  display: block;
  font-size: 14px;
}

.aar-diagnostics small {
  color: var(--muted);
}

.aar-diagnostics b {
  margin-top: 3px;
  font-size: 22px;
}

.aar-reading {
  margin: 0 0 18px;
  padding: 12px 14px;
  color: var(--forest-800);
  background: #eaf3df;
  border-radius: 12px;
  font-weight: 800;
}

.guidance-card {
  padding: 17px;
  background: #f3f6ef;
  border-radius: 15px;
}

.guidance-card > span {
  display: grid;
  width: 36px;
  height: 36px;
  margin-bottom: 9px;
  place-items: center;
  color: white;
  background: var(--forest-700);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
}

.guidance-card b {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.guidance-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.guidance-card a {
  color: var(--forest-700);
  font-size: 14px;
  font-weight: 900;
}

.result-story blockquote {
  margin: 24px 0;
  padding: 0 0 0 22px;
  border-left: 5px solid var(--lime);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.55;
}

.result-story #storyEvidence {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-story #storyEvidence span {
  padding: 8px 11px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 14px;
}

.leaderboard-submit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.leaderboard-submit p {
  color: var(--muted);
}

.survival-retry-note {
  padding: 18px;
  background: #fff3eb;
  border: 1px solid rgba(185, 62, 45, 0.28);
  border-radius: 15px;
}

.survival-retry-note b {
  display: block;
  color: var(--danger);
  font-size: 17px;
}

.survival-retry-note p {
  margin: 5px 0 0;
}

#scoreForm label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
}

#scoreForm > div {
  display: flex;
  gap: 8px;
}

#scoreForm input {
  min-width: 0;
  min-height: 52px;
  padding: 10px 14px;
  flex: 1;
  border: 2px solid #b9c9bd;
  border-radius: 12px;
}

#scoreForm button,
.result-actions button,
.result-actions a,
.continue-button {
  min-height: 52px;
  padding: 10px 18px;
  color: white;
  background: var(--forest-700);
  border: 0;
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
}

#scoreStatus {
  min-height: 24px;
  margin: 7px 0 0;
  font-size: 14px;
}

.leaderboard-panel {
  width: min(900px, 92vw);
  max-height: min(820px, 88vh);
  overflow: auto;
  color: var(--ink);
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.leaderboard-panel.embedded {
  width: auto;
  max-height: none;
}

.leaderboard-panel header button,
.evidence-dialog-card header button,
.dialog-close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--ink);
  background: #edf2eb;
  border: 0;
  border-radius: 50%;
  font-weight: 900;
}

.leaderboard-filters {
  display: flex;
  padding: 14px 20px 0;
  gap: 8px;
}

.leaderboard-filters button {
  padding: 8px 14px;
  color: var(--muted);
  background: white;
  border: 1px solid #bdcbbf;
  border-radius: 999px;
  font-weight: 800;
}

.leaderboard-filters button.active {
  color: white;
  background: var(--forest-700);
}

.board-table {
  width: calc(100% - 40px);
  margin: 14px 20px 20px;
  border-collapse: collapse;
}

.board-table th,
.board-table td {
  padding: 12px 9px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  text-align: left;
}

.board-table th {
  color: var(--muted);
  font-size: 14px;
}

.board-table td:first-child {
  width: 42px;
  color: var(--forest-700);
  font-weight: 900;
}

.board-table td:last-child {
  text-align: right;
  font-size: 19px;
  font-weight: 900;
}

.board-empty {
  padding: 34px;
  color: var(--muted);
  text-align: center;
}

.board-note {
  margin: 0;
  padding: 14px 20px 20px;
  color: var(--muted);
  font-size: 14px;
}

.result-actions {
  display: flex;
  margin-top: 24px;
  justify-content: center;
  gap: 10px;
}

.result-actions a {
  display: inline-flex;
  align-items: center;
  color: var(--forest-950);
  background: var(--lime);
}

dialog {
  padding: 0;
  background: transparent;
  border: 0;
}

dialog::backdrop {
  background: rgba(5, 24, 17, 0.78);
  backdrop-filter: blur(6px);
}

.event-dialog-card {
  position: relative;
  width: min(590px, 92vw);
  max-height: 90vh;
  padding: clamp(28px, 5vw, 50px);
  overflow: auto;
  color: var(--ink);
  text-align: center;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
}

.event-dialog-card .dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

#eventYear {
  margin: 0;
  color: var(--forest-600);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.event-icon {
  margin: 12px 0 5px;
  font-size: 54px;
}

.event-kind {
  display: inline-block;
  padding: 5px 10px;
  color: white;
  background: var(--danger);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.event-kind.opportunity {
  background: var(--forest-600);
}

.event-dialog-card h2 {
  margin: 16px 0 8px;
  font-size: 29px;
}

.event-dialog-card > p {
  color: var(--muted);
}

.event-impact {
  display: grid;
  margin: 20px 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.event-impact span {
  padding: 10px 8px;
  background: #f1f4ed;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
}

.event-impact span b {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 14px;
}

.event-causality {
  margin: 0 0 14px;
  padding: 13px 15px;
  text-align: left;
  background: #f4f6f1;
  border-radius: 13px;
}

.event-causality p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 14px;
}

.event-causality b {
  color: var(--ink);
}

.nature-response {
  padding: 14px;
  color: var(--forest-800);
  background: #eaf3df;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 700;
}

.event-source-link {
  display: inline-flex;
  margin-top: 13px;
  color: var(--forest-700);
  font-size: 14px;
  font-weight: 900;
}

.continue-button {
  width: 100%;
  margin-top: 20px;
}

.evidence-dialog-card {
  width: min(980px, 94vw);
  max-height: 90vh;
  padding-bottom: 18px;
  overflow: auto;
  color: var(--ink);
  background: var(--paper);
  border-radius: var(--radius-lg);
}

.evidence-dialog-card > header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  padding: 20px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.evidence-dialog-card h2 {
  margin: 0;
}

.evidence-dialog-card > p {
  margin: 18px 24px;
  color: var(--muted);
}

.evidence-list {
  display: grid;
  padding: 0 24px 20px;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.model-audit {
  margin: 18px 24px;
  padding: 18px;
  background: var(--forest-900);
  color: white;
  border-radius: 16px;
}

.model-audit h3 {
  margin: 0 0 12px;
}

.model-audit-table {
  width: 100%;
  border-collapse: collapse;
}

.model-audit-table th,
.model-audit-table td {
  padding: 9px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  text-align: left;
}

.model-audit-table th {
  color: var(--lime);
}

.model-audit-table td:last-child {
  color: rgba(255, 255, 255, 0.7);
}

.evidence-item {
  padding: 17px;
  background: #f3f6ef;
  border-radius: 14px;
}

.evidence-item b {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.evidence-item p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 14px;
}

.evidence-item a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--forest-700);
  font-size: 14px;
  font-weight: 900;
}

@media (max-width: 1100px) {
  .role-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .play-grid {
    grid-template-columns: 1fr;
  }

  .decision-card {
    min-height: auto;
    position: static;
    max-height: none;
  }

  .action-options {
    min-height: 0;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: none;
  }

  .action-card {
    grid-template-columns: 44px 1fr;
  }

  .action-card .action-cost {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .system-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .system-card:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .system-card:nth-child(5) {
    border-top: 1px solid var(--line);
  }

  .aar-diagnostics {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 800px) {
  body {
    font-size: 16px;
  }

  .game-topbar {
    min-height: 66px;
    padding: 8px 13px;
  }

  .game-brand > span:first-child {
    width: 40px;
    height: 40px;
  }

  .game-brand b {
    font-size: 15px;
  }

  .game-brand small {
    font-size: 14px;
  }

  .game-topbar nav a,
  .game-topbar nav button:not(#languageToggle) {
    display: none;
  }

  .hero-media {
    min-height: 690px;
  }

  .hero-media > img {
    object-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(6, 29, 21, 0.94) 0%, rgba(6, 29, 21, 0.72) 56%, rgba(6, 29, 21, 0.12) 100%);
  }

  .hero-copy {
    display: flex;
    min-height: 690px;
    padding: 245px 20px 40px;
    flex-direction: column;
    justify-content: flex-end;
  }

  .hero-copy h1 {
    font-size: 43px;
  }

  .hero-facts > span {
    min-width: calc(50% - 6px);
  }

  .premise-strip {
    margin-top: -18px;
    grid-template-columns: 1fr;
  }

  .premise-strip article {
    min-height: auto;
    padding: 20px;
  }

  .premise-strip article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .journey-setup {
    margin-top: 55px;
  }

  .setup-step {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }

  .setup-step > :last-child {
    grid-column: 1 / -1;
  }

  .role-options,
  .market-options,
  .difficulty-options {
    grid-template-columns: 1fr;
  }

  .select-card {
    min-height: 104px;
  }

  .start-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .start-game-button {
    min-width: 0;
    width: 100%;
  }

  .play-header {
    position: static;
    padding: 12px 14px;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .turn-clock {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .live-score {
    grid-column: 2;
    grid-row: 1;
  }

  .pressure-deck {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .pressure-deck article {
    min-width: 180px;
    scroll-snap-align: start;
  }

  .chapter-banner {
    grid-template-columns: auto 1fr;
  }

  .chapter-banner ol {
    grid-column: 1 / -1;
  }

  .region-map {
    min-height: 390px;
  }

  .action-options {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, auto);
  }

  .action-card {
    grid-template-columns: 44px 1fr auto;
  }

  .action-card .action-cost {
    grid-column: auto;
  }

  .nature-automation > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nature-automation > header p {
    text-align: left;
  }

  .system-cards {
    grid-template-columns: 1fr;
  }

  .technology-portfolio {
    grid-template-columns: 1fr;
  }

  .technology-cards {
    grid-template-columns: 1fr;
  }

  .aar-diagnostics {
    grid-template-columns: repeat(2, 1fr);
  }

  .decision-receipt {
    right: 14px;
    bottom: 14px;
  }

  .system-card + .system-card,
  .system-card:nth-child(4),
  .system-card:nth-child(5) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .score-console {
    grid-template-columns: repeat(2, 1fr);
  }

  .result-hero {
    min-height: 500px;
  }

  .result-score-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guidance-grid {
    grid-template-columns: 1fr;
  }

  .leaderboard-submit {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  #scoreForm > div,
  .result-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .result-actions a {
    justify-content: center;
  }

  .evidence-list {
    grid-template-columns: 1fr;
  }

  .event-impact {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* v1.2 six-role council, character storytelling and game–navigator bridge */
.experience-switch {
  gap: 6px;
}

.experience-switch.active {
  color: var(--forest-950);
  background: var(--lime);
  border-color: var(--lime);
}

.select-card em {
  display: block;
  margin-top: 9px;
  padding-top: 8px;
  color: #53675b;
  border-top: 1px solid rgba(83, 103, 91, 0.18);
  font-size: 14px;
  font-style: normal;
  line-height: 1.5;
}

.select-card[aria-pressed="true"] em {
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.22);
}

.character-portrait {
  position: relative;
  flex: 0 0 auto;
  width: 78px;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #edf2e7;
  border: 3px solid white;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(13, 44, 31, 0.16);
}

.character-portrait[data-shape="landscape"] {
  aspect-ratio: 1;
}

.character-portrait img {
  position: absolute;
  top: calc(var(--portrait-row) * -100%);
  left: calc(var(--portrait-column) * -100%);
  width: 400%;
  height: 300%;
  max-width: none;
}

.character-cast {
  margin: 32px 0;
  padding: clamp(22px, 4vw, 38px);
  background: linear-gradient(135deg, #eff6e8, #f9f1df);
  border: 1px solid #d7e2cd;
  border-radius: var(--radius-lg);
}

.character-cast > header {
  max-width: 730px;
}

.character-cast > header small,
.setup-summary > header small,
.council-progress header small,
.navigator-handoffs header small {
  color: var(--forest-600);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.character-cast h3,
.setup-summary h3,
.council-progress h2,
.navigator-handoffs h2 {
  margin: 6px 0;
  font-size: clamp(24px, 3vw, 36px);
}

.character-cast > div {
  display: grid;
  margin-top: 22px;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.character-cast article {
  display: flex;
  min-height: 138px;
  padding: 14px;
  align-items: center;
  gap: 13px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #d6e0ce;
  border-radius: 18px;
}

.character-cast article small,
.active-character small,
.result-characters small {
  color: var(--forest-600);
  font-size: 14px;
  font-weight: 900;
}

.character-cast article b {
  display: block;
  margin: 3px 0;
  font-size: 17px;
}

.character-cast article p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.setup-summary {
  margin-top: 34px;
  padding: clamp(22px, 4vw, 34px);
  color: white;
  background: linear-gradient(135deg, #173f2e, #285e42);
  border-radius: var(--radius-lg);
}

.setup-summary > header small {
  color: var(--lime);
}

.setup-summary h3 {
  color: white;
}

.setup-summary > div {
  display: grid;
  margin: 20px 0;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.setup-summary > div > span {
  display: grid;
  min-height: 118px;
  padding: 14px;
  align-content: start;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
}

.setup-summary i {
  font-size: 25px;
  font-style: normal;
}

.setup-summary small {
  margin: 7px 0 3px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.setup-summary b {
  line-height: 1.45;
}

.setup-summary > p {
  max-width: 850px;
  font-size: 16px;
  line-height: 1.75;
}

.setup-summary > a {
  display: inline-flex;
  margin-top: 5px;
  padding: 11px 15px;
  color: var(--forest-950);
  background: var(--lime);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
}

.council-progress {
  width: min(1480px, calc(100% - 36px));
  margin: 18px auto 0;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.council-progress > header {
  display: flex;
  align-items: baseline;
  gap: 13px;
}

.council-progress h2 {
  font-size: 21px;
}

#roleProgress {
  display: grid;
  margin-top: 13px;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

#roleProgress > span {
  display: flex;
  min-width: 0;
  padding: 7px;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  background: #f4f6f1;
  border: 2px solid transparent;
  border-radius: 14px;
}

#roleProgress > span.active {
  color: var(--forest-900);
  background: #edf5e5;
  border-color: var(--lime);
}

#roleProgress > span.done {
  color: var(--forest-700);
  background: #eaf3df;
}

#roleProgress .character-portrait.mini {
  width: 42px;
  border-width: 2px;
  border-radius: 11px;
  box-shadow: none;
}

#roleProgress b {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.3;
}

.active-character {
  display: flex;
  padding: 15px 18px;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #eff6e8, #fff6df);
  border-bottom: 1px solid var(--line);
}

.active-character .character-portrait {
  width: 86px;
}

.active-character h3 {
  margin: 2px 0 4px;
  font-size: 20px;
}

.active-character p {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 14px;
}

.active-character b {
  color: var(--forest-700);
  font-size: 14px;
}

.auto-choose {
  display: grid;
  width: calc(100% - 20px);
  min-height: 58px;
  margin: 10px;
  padding: 8px 14px;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  color: #173f2e;
  text-align: left;
  background: linear-gradient(135deg, #d8ff72, #f2ffc8);
  border: 2px solid #a8c747;
  border-radius: 14px;
}

.auto-choose:hover,
.auto-choose:focus-visible {
  box-shadow: 0 7px 18px rgba(69, 103, 36, 0.2);
  transform: translateY(-1px);
}

.auto-choose > span {
  grid-row: 1 / 3;
  font-size: 25px;
}

.auto-choose b {
  font-size: 17px;
}

.auto-choose small {
  font-size: 14px;
}

.decision-card {
  max-height: none;
  position: static;
}

.action-options {
  display: grid;
  min-height: 0;
  grid-template-rows: none;
}

.action-card {
  display: block;
  min-height: 0;
  padding: 15px;
}

.action-card[data-rank="1"] {
  border-color: #9fc24a;
  background: #fbfff4;
}

.action-card:hover {
  transform: none;
}

.action-card-heading {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
}

.action-card-heading > i {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  background: #ecf4e6;
  border-radius: 14px;
  font-size: 25px;
  font-style: normal;
}

.action-card-heading b {
  font-size: 17px;
}

.action-card-heading p {
  display: block;
  overflow: visible;
  font-size: 14px;
  -webkit-line-clamp: initial;
}

.choice-explainer {
  display: grid;
  margin-top: 11px;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.choice-explainer p {
  display: block;
  min-height: 92px;
  padding: 10px;
  overflow: visible;
  color: #4c6054;
  background: #f4f6f1;
  border-radius: 11px;
  font-size: 14px;
  line-height: 1.5;
  -webkit-line-clamp: initial;
}

.choice-explainer strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

.action-card-buttons {
  display: flex;
  margin-top: 10px;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
}

.action-card-buttons a,
.action-card-buttons button {
  display: inline-flex;
  min-height: 46px;
  padding: 9px 12px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 900;
}

.action-card-buttons a {
  color: var(--forest-700);
  background: #eef3e9;
}

.action-card-buttons button {
  flex-direction: column;
  color: white;
  background: var(--forest-700);
}

.action-card-buttons button span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.decision-receipt .character-portrait.receipt {
  width: 62px;
}

.event-dialog-card {
  width: min(980px, 94vw);
}

.annual-story-beat {
  margin: 18px 0;
  padding: 15px 18px;
  color: var(--forest-800);
  text-align: left;
  background: #edf5e5;
  border-left: 5px solid var(--lime);
  border-radius: 10px;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.7;
}

.annual-council-summary {
  margin: 18px 0;
  text-align: left;
}

.annual-council-summary h3 {
  font-size: 18px;
}

#annualCouncilSummary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

#annualCouncilSummary article {
  display: flex;
  min-height: 112px;
  padding: 9px;
  align-items: center;
  gap: 9px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}

#annualCouncilSummary .character-portrait.annual {
  width: 56px;
  border-width: 2px;
  border-radius: 12px;
  box-shadow: none;
}

#annualCouncilSummary small,
#annualCouncilSummary b {
  display: block;
  font-size: 14px;
}

#annualCouncilSummary a {
  display: inline-flex;
  margin-top: 4px;
  color: var(--forest-700);
  font-size: 14px;
  font-weight: 900;
}

.event-loss-summary {
  display: grid;
  margin: 14px 0;
  padding: 15px;
  gap: 4px;
  text-align: left;
  color: #6e3024;
  background: #fff1eb;
  border: 1px solid #f0c2b2;
  border-radius: 13px;
}

.event-loss-summary strong {
  font-size: 22px;
}

.arcade-dialog-card {
  width: min(1100px, 96vw);
  max-height: 94vh;
  padding: 22px;
  overflow: auto;
  color: var(--ink);
  background: #f7f5e9;
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.42);
}

.arcade-dialog-card > header h2 {
  margin: 3px 0 12px;
  font-size: clamp(25px, 4vw, 40px);
}

.arcade-explanation {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.arcade-explanation > div {
  display: flex;
  padding: 12px;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid #dedccf;
  border-radius: 14px;
}

.arcade-explanation > div > span {
  font-size: 26px;
}

.arcade-explanation p,
.arcade-explanation small,
.arcade-explanation b {
  display: block;
  margin: 0;
}

.arcade-explanation small {
  color: var(--muted);
  font-size: 14px;
}

.arcade-frame-shell {
  max-width: 520px;
  margin: 16px auto;
  padding: 10px;
  background: #0a1714;
  border-radius: 18px;
}

.arcade-frame-shell iframe {
  display: block;
  width: 100%;
  min-height: 680px;
  background: #05110e;
  border: 0;
  border-radius: 12px;
}

.arcade-launch-panel {
  display: grid;
  max-width: 760px;
  min-height: 150px;
  margin: 18px auto;
  padding: 20px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  color: white;
  background: radial-gradient(circle at 15% 25%, rgba(216, 255, 114, 0.2), transparent 13rem), #102e22;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
}

.arcade-launch-panel > span {
  font-size: 48px;
}

.arcade-launch-panel b {
  font-size: 18px;
}

.arcade-launch-panel p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.55;
}

.arcade-launch-panel button {
  min-height: 48px;
  padding: 10px 14px;
  color: #102e22;
  background: var(--lime);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
}

.arcade-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.arcade-actions button,
.arcade-actions a {
  padding: 12px 15px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
}

.arcade-actions button {
  color: #6e3024;
  background: #fff1eb;
  border: 1px solid #e8b9aa;
}

.arcade-actions a {
  color: var(--forest-800);
  background: #eaf3df;
}

.arcade-boundary {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.result-characters {
  display: grid;
  margin: 26px 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.result-characters article {
  display: flex;
  padding: 13px;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.result-characters .character-portrait.result {
  width: 74px;
}

.result-characters b {
  display: block;
  font-size: 17px;
}

.result-characters p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.navigator-handoffs {
  margin: 30px 0;
  padding: clamp(22px, 4vw, 36px);
  background: #173f2e;
  border-radius: var(--radius-lg);
}

.navigator-handoffs header small {
  color: var(--lime);
}

.navigator-handoffs h2 {
  color: white;
}

.navigator-handoffs > div {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.navigator-handoffs a {
  display: grid;
  min-height: 200px;
  padding: 19px;
  align-content: start;
  color: var(--ink);
  background: white;
  border-radius: 17px;
}

.navigator-handoffs i {
  font-size: 30px;
  font-style: normal;
}

.navigator-handoffs b {
  margin-top: 10px;
  font-size: 19px;
}

.navigator-handoffs p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.navigator-handoffs span {
  margin-top: auto;
  color: var(--forest-700);
  font-size: 14px;
  font-weight: 900;
}

@media (max-width: 1100px) {
  .character-cast > div,
  .result-characters {
    grid-template-columns: repeat(2, 1fr);
  }

  #roleProgress {
    grid-template-columns: repeat(3, 1fr);
  }

  .choice-explainer {
    grid-template-columns: 1fr;
  }

  .choice-explainer p {
    min-height: 0;
  }
}

@media (max-width: 800px) {
  .game-topbar nav .experience-switch {
    display: inline-flex;
    padding: 7px;
    font-size: 14px;
  }

  .game-topbar nav .experience-switch span:not([aria-hidden]) {
    display: none;
  }

  .character-cast > div,
  .setup-summary > div,
  .result-characters,
  .navigator-handoffs > div,
  #annualCouncilSummary,
  .arcade-explanation {
    grid-template-columns: 1fr;
  }

  .character-cast article {
    min-height: 118px;
  }

  #roleProgress {
    grid-template-columns: repeat(2, 1fr);
  }

  .council-progress > header,
  .action-card-buttons,
  .arcade-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .action-card {
    display: block;
  }

  .arcade-frame-shell iframe {
    min-height: 610px;
  }

  .arcade-launch-panel {
    grid-template-columns: auto 1fr;
  }

  .arcade-launch-panel button {
    grid-column: 1 / -1;
  }
}

/* v1.3 practical Navigator handoff, crop guidance and Year 1–2 councils */
.game-command-group {
  display: flex;
  padding: 3px;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.navigator-workspace-exit {
  display: grid !important;
  min-height: 54px !important;
  padding: 7px 12px !important;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  color: var(--forest-950) !important;
  background: linear-gradient(135deg, #f0c75d, var(--lime)) !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.2);
}

.navigator-workspace-exit > span:first-child {
  font-size: 23px;
}

.navigator-workspace-exit b,
.navigator-workspace-exit small {
  display: block;
  line-height: 1.25;
}

.navigator-workspace-exit b {
  font-size: 14px;
}

.navigator-workspace-exit small {
  color: #4f5c2d;
  font-size: 14px;
  font-weight: 800;
}

.navigator-workspace-exit i {
  font-style: normal;
}

.hero-start {
  border: 0;
  text-align: left;
}

.hero-start span,
.hero-start strong,
.hero-start small {
  display: block;
}

.hero-start strong {
  font-size: 18px;
}

.hero-start small {
  color: #4d5c2d;
  font-size: 14px;
}

.crop-gx-guide {
  margin-top: 16px;
  padding: 16px;
  background: #eaf3e4;
  border: 1px solid #c7d9bf;
  border-radius: 18px;
}

.crop-gx-guide > header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
}

.crop-gx-guide > header > span {
  font-size: 28px;
}

.crop-gx-guide h4 {
  margin: 2px 0 5px;
  font-size: 19px;
}

.crop-gx-guide header small {
  color: var(--forest-600);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.crop-gx-guide header p {
  margin: 0;
  color: #53675b;
  font-size: 14px;
}

#cropRecommendationGuide {
  display: grid;
  margin-top: 13px;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

#cropRecommendationGuide article {
  display: flex;
  min-width: 0;
  padding: 13px;
  flex-direction: column;
  background: white;
  border: 2px solid transparent;
  border-radius: 14px;
}

#cropRecommendationGuide article.selected {
  border-color: var(--forest-600);
  box-shadow: inset 0 0 0 2px #d8edcb;
}

#cropRecommendationGuide article > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#cropRecommendationGuide article i {
  font-size: 25px;
  font-style: normal;
}

#cropRecommendationGuide article small {
  color: var(--forest-600);
  font-size: 14px;
  font-weight: 900;
}

#cropRecommendationGuide article b {
  margin-top: 5px;
  font-size: 18px;
}

#cropRecommendationGuide article p {
  margin: 5px 0 12px;
  color: var(--muted);
  font-size: 14px;
}

#cropRecommendationGuide article > div {
  display: grid;
  margin-top: auto;
  gap: 6px;
}

#cropRecommendationGuide button,
#cropRecommendationGuide a {
  min-height: 42px;
  padding: 8px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

#cropRecommendationGuide button {
  color: white;
  background: var(--forest-700);
  border: 0;
}

#cropRecommendationGuide a {
  color: var(--forest-700);
  background: #eef3e9;
}

.setup-summary > a small {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 700;
}

.action-card-buttons a {
  flex: 1;
  flex-direction: column;
  text-align: center;
  text-decoration: none;
}

.action-card-buttons a small {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.pending-council-card {
  display: grid;
  min-height: 300px;
  padding: 30px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  text-align: left;
  background: #f0f7e8;
  border: 2px solid #a8c67c;
  border-radius: 20px;
}

.pending-council-card > span {
  font-size: 48px;
}

.pending-council-card small {
  color: var(--forest-600);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.pending-council-card h3 {
  margin: 4px 0;
  font-size: 24px;
}

.pending-council-card p {
  color: var(--muted);
  font-size: 15px;
}

.pending-council-card button {
  min-height: 46px;
  padding: 9px 15px;
  color: white;
  background: var(--forest-700);
  border: 0;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 900;
}

.council-resolution {
  display: grid;
  margin: 22px 0;
  overflow: hidden;
  grid-template-columns: minmax(280px, 0.92fr) minmax(420px, 1.2fr);
  text-align: left;
  background: #f4f2e8;
  border: 1px solid #d9d2bd;
  border-radius: 22px;
}

.council-resolution[hidden] {
  display: none;
}

.council-resolution > img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
  object-position: center;
}

.council-resolution-copy {
  padding: 22px;
}

.council-resolution-copy > small {
  color: var(--forest-600);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.council-resolution-copy > h3 {
  margin: 4px 0 7px;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.3;
}

.council-resolution-copy > p {
  margin: 0 0 15px;
  color: #59675f;
  font-size: 15px;
}

#councilResolutionOptions {
  display: grid;
  gap: 8px;
}

#councilResolutionOptions article {
  padding: 13px;
  background: white;
  border: 2px solid transparent;
  border-radius: 14px;
}

#councilResolutionOptions article.selected {
  border-color: var(--forest-600);
  background: #f6fff0;
}

#councilResolutionOptions article > header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

#councilResolutionOptions header i {
  font-size: 27px;
  font-style: normal;
}

#councilResolutionOptions header small,
#councilResolutionOptions header b {
  display: block;
}

#councilResolutionOptions header small {
  color: var(--forest-600);
  font-size: 14px;
  font-weight: 900;
}

#councilResolutionOptions header b {
  font-size: 16px;
}

#councilResolutionOptions article > p,
#councilResolutionOptions article > em {
  display: block;
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
}

#councilResolutionOptions article > em {
  color: #49604f;
  background: #f0f4ec;
  border-radius: 8px;
  padding: 7px 9px;
}

#councilResolutionOptions article > div {
  display: flex;
  margin-top: 9px;
  gap: 7px;
}

#councilResolutionOptions a,
#councilResolutionOptions button {
  min-height: 42px;
  padding: 8px 10px;
  flex: 1;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

#councilResolutionOptions a {
  color: var(--forest-700);
  background: #eef3e9;
}

#councilResolutionOptions button {
  color: white;
  background: var(--forest-700);
  border: 0;
}

#councilResolutionOptions button:disabled {
  color: var(--forest-700);
  background: #dcebd3;
  cursor: default;
}

#councilResolutionDecision {
  display: grid;
  margin-top: 12px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

#councilResolutionDecision:empty {
  display: none;
}

#councilResolutionDecision > span {
  font-size: 34px;
}

#councilResolutionDecision small,
#councilResolutionDecision b,
#councilResolutionDecision p,
#councilResolutionDecision a {
  display: block;
}

#councilResolutionDecision small {
  color: var(--forest-600);
  font-size: 14px;
  font-weight: 900;
}

#councilResolutionDecision b {
  font-size: 17px;
}

#councilResolutionDecision p {
  margin: 3px 0;
  color: var(--muted);
  font-size: 14px;
}

#councilResolutionDecision a {
  color: var(--forest-700);
  font-size: 14px;
  font-weight: 900;
}

.continue-button:disabled {
  color: #6e756f;
  background: #d7dcd5;
  cursor: not-allowed;
}

.navigator-exit-dialog {
  width: 100%;
  max-width: none;
  padding: 0;
  background: transparent;
  border: 0;
}

.navigator-exit-dialog::backdrop {
  background: rgba(4, 22, 16, 0.78);
  backdrop-filter: blur(6px);
}

.navigator-exit-card {
  width: min(900px, 94vw);
  max-height: 92vh;
  margin: auto;
  padding: 24px;
  overflow: auto;
  color: var(--ink);
  background: #f8f6ed;
  border-radius: 24px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.4);
}

.navigator-exit-card > header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 13px;
}

.navigator-exit-card > header > span {
  font-size: 38px;
}

.navigator-exit-card header small {
  color: var(--forest-600);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.navigator-exit-card h2 {
  margin: 3px 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.25;
}

.navigator-exit-card header button {
  width: 42px;
  height: 42px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 20px;
}

#navigatorExitDescription {
  margin: 16px 0;
  color: #526359;
  font-size: 16px;
}

.navigator-value-preview {
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.navigator-value-preview h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

#navigatorExitSteps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

#navigatorExitSteps article {
  display: grid;
  min-height: 90px;
  padding: 11px;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 8px;
  background: #eef4e9;
  border-radius: 11px;
}

#navigatorExitSteps span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: white;
  background: var(--forest-700);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 900;
}

#navigatorExitSteps b {
  font-size: 14px;
}

.navigator-carry-preview {
  display: grid;
  margin: 10px 0;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.navigator-carry-preview > div {
  padding: 11px;
  background: #173f2e;
  border-radius: 11px;
}

.navigator-carry-preview small,
.navigator-carry-preview b {
  display: block;
}

.navigator-carry-preview small {
  color: var(--lime);
  font-size: 14px;
  font-weight: 900;
}

.navigator-carry-preview b {
  color: white;
  font-size: 14px;
}

.navigator-exit-boundary {
  padding: 12px 14px;
  color: #64572f;
  background: #fff3c9;
  border-left: 5px solid var(--gold);
  border-radius: 10px;
  font-size: 14px;
}

.navigator-exit-card > footer {
  display: flex;
  margin-top: 14px;
  justify-content: flex-end;
  gap: 8px;
}

.navigator-exit-card footer button,
.navigator-exit-card footer a {
  min-height: 50px;
  padding: 10px 16px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 900;
}

.navigator-exit-card footer button {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

.navigator-exit-card footer a {
  color: white;
  background: var(--forest-700);
  text-decoration: none;
}

@media (max-width: 1100px) {
  .game-topbar {
    align-items: flex-start;
  }

  .game-topbar nav {
    align-items: flex-end;
    flex-direction: column-reverse;
  }

  #cropRecommendationGuide {
    grid-template-columns: 1fr;
  }

  .council-resolution {
    grid-template-columns: 1fr;
  }

  .council-resolution > img {
    min-height: 340px;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 800px) {
  .game-command-group {
    display: none;
  }

  .game-topbar nav .navigator-workspace-exit {
    display: grid !important;
    min-height: 48px !important;
  }

  .navigator-workspace-exit b {
    font-size: 14px;
  }

  .navigator-workspace-exit small,
  .navigator-workspace-exit i {
    display: none;
  }

  .premise-strip {
    grid-template-columns: 1fr;
  }

  .premise-strip article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .crop-gx-guide > header,
  .pending-council-card {
    grid-template-columns: 1fr;
  }

  .council-resolution-copy {
    padding: 16px;
  }

  #councilResolutionOptions article > div,
  .navigator-exit-card > footer {
    align-items: stretch;
    flex-direction: column;
  }

  #navigatorExitSteps,
  .navigator-carry-preview {
    grid-template-columns: 1fr;
  }
}

/* v1.4 one-screen annual decisions, interactive lenses and explicit validation */
.pressure-deck {
  margin: 4px auto;
  gap: 7px;
}

.pressure-deck article {
  min-height: 62px;
  padding: 8px 10px;
  grid-template-columns: 28px 1fr;
  gap: 7px;
  border-radius: 12px;
}

.pressure-deck article > span {
  font-size: 21px;
}

.pressure-deck b {
  display: inline;
  margin-right: 5px;
  font-size: 17px;
}

.pressure-deck em {
  display: inline;
  min-height: 0;
  margin: 0;
  font-size: 14px;
}

.pressure-deck article div div {
  height: 4px;
  margin-top: 3px;
}

.annual-command-bar {
  display: grid;
  width: min(1460px, calc(100% - 28px));
  margin: 3px auto 0;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1.45fr);
  gap: 8px;
}

.annual-command-bar .chapter-banner,
.annual-command-bar .council-progress {
  width: auto;
  min-height: 58px;
  margin: 0;
  padding: 8px 11px;
  border-radius: 13px;
}

.annual-command-bar .chapter-banner {
  grid-template-columns: auto 1fr;
  gap: 9px;
  box-shadow: none;
}

.annual-command-bar .chapter-banner > span {
  padding: 6px 9px;
}

.annual-command-bar .chapter-banner b {
  font-size: 16px;
}

.annual-command-bar .chapter-banner p {
  font-size: 14px;
}

.annual-command-bar .council-progress {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.annual-command-bar .council-progress > header {
  display: block;
  min-width: 170px;
}

.annual-command-bar .council-progress header small {
  font-size: 14px;
}

.annual-command-bar .council-progress h2 {
  display: inline;
  margin-right: 6px;
  font-size: 16px;
}

.annual-command-bar #councilTurnLabel {
  color: var(--forest-700);
  font-size: 14px;
}

.annual-command-bar #roleProgress {
  margin: 0;
  gap: 5px;
}

.annual-command-bar #roleProgress > span {
  min-height: 42px;
  padding: 4px 5px;
  gap: 5px;
  border-radius: 10px;
}

.annual-command-bar #roleProgress .character-portrait.mini {
  width: 30px;
  border-radius: 8px;
}

.play-grid {
  grid-template-columns: minmax(300px, 0.48fr) minmax(0, 1.52fr);
  gap: 9px;
}

.region-map-card > header,
.decision-card > header {
  padding: 8px 11px;
  gap: 9px;
}

.region-map-card h2,
.decision-card h2 {
  font-size: 18px;
}

.region-map-card header p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.region-map {
  min-height: 248px;
}

.map-stop {
  cursor: pointer;
  font: inherit;
}

.map-stop:hover,
.map-stop:focus-visible,
.map-stop.inspecting {
  z-index: 4;
  color: var(--forest-950);
  background: var(--lime);
  border-color: white;
  box-shadow: 0 8px 22px rgba(5, 28, 20, 0.3);
  transform: scale(1.08);
  outline: 3px solid rgba(216, 255, 114, 0.45);
  outline-offset: 2px;
}

.theme-instruction {
  min-height: 152px;
  padding: 10px 13px;
  background: linear-gradient(135deg, #f7faf2, #fff8e8);
  border-top: 1px solid var(--line);
}

.theme-instruction header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-instruction header > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 23px;
}

.theme-instruction small {
  color: var(--forest-600);
  font-size: 14px;
  font-weight: 900;
}

.theme-instruction h3 {
  margin: 0;
  font-size: 17px;
}

.theme-instruction > b {
  display: block;
  margin-top: 5px;
  font-size: 15px;
}

.theme-instruction > p {
  margin: 3px 0 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.theme-instruction > div {
  display: flex;
  padding: 5px 8px;
  align-items: baseline;
  gap: 7px;
  background: #eaf3df;
  border-radius: 8px;
}

.theme-instruction strong {
  font-size: 14px;
}

.theme-instruction em {
  display: block;
  margin-top: 5px;
  color: #745c24;
  font-size: 14px;
  font-style: normal;
}

.active-character {
  min-height: 66px;
  padding: 7px 10px;
  gap: 9px;
}

.active-character .character-portrait {
  width: 54px;
  border-width: 2px;
}

.active-character h3 {
  margin: 0;
  font-size: 17px;
}

.active-character p {
  max-width: 70ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.decision-counter b {
  font-size: 22px;
}

.decision-help {
  padding: 5px 11px;
}

.auto-choose {
  width: calc(100% - 16px);
  min-height: 44px;
  margin: 6px 8px;
  padding: 5px 11px;
  grid-template-columns: auto auto 1fr;
  grid-template-rows: none;
  border-radius: 11px;
}

.auto-choose > span {
  grid-row: auto;
  font-size: 20px;
}

.auto-choose b {
  font-size: 15px;
}

.auto-choose small {
  justify-self: end;
}

.action-options {
  padding: 0 8px 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.action-card {
  display: flex;
  min-width: 0;
  padding: 9px;
  flex-direction: column;
  border-radius: 12px;
}

.action-card-heading {
  grid-template-columns: 38px 1fr;
  gap: 7px;
}

.action-card-heading > i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 20px;
}

.action-card-heading b {
  font-size: 15px;
  line-height: 1.3;
}

.action-card-heading p {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.35;
}

.choice-explainer {
  margin-top: 6px;
  grid-template-columns: 1fr;
  gap: 4px;
}

.choice-explainer p {
  min-height: 0;
  margin: 0;
  padding: 5px 7px;
  font-size: 14px;
  line-height: 1.35;
}

.choice-explainer strong {
  display: inline;
  margin: 0 4px 0 0;
}

.action-card-buttons {
  margin-top: auto;
  padding-top: 7px;
}

.action-card-buttons a,
.action-card-buttons button {
  min-height: 42px;
  padding: 6px 8px;
}

.event-scenario-purpose {
  margin: 9px 0;
  padding: 10px 12px;
  color: #4a5a51;
  text-align: left;
  background: #eef4e9;
  border-left: 5px solid var(--forest-600);
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.55;
}

.event-loss-summary {
  color: var(--ink);
  background: #fffaf0;
  border-color: #e8d39b;
}

.loss-waterfall {
  display: grid;
  margin-top: 8px;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 7px;
}

.loss-waterfall article {
  padding: 10px;
  background: white;
  border: 1px solid #e0d8c5;
  border-radius: 11px;
}

.loss-waterfall article small,
.loss-waterfall article strong,
.loss-waterfall article span {
  display: block;
}

.loss-waterfall article small {
  color: var(--muted);
  font-size: 14px;
}

.loss-waterfall article strong {
  margin: 2px 0;
  color: #8d382b;
  font-size: 21px;
}

.loss-waterfall article span {
  color: #53635a;
  font-size: 14px;
  line-height: 1.4;
}

.loss-waterfall > i {
  align-self: center;
  color: var(--forest-600);
  font-size: 22px;
  font-style: normal;
  font-weight: 900;
}

.loss-waterfall-note,
.loss-game-impact,
.loss-why,
.loss-consequence {
  margin: 7px 0 0;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.5;
}

.loss-waterfall-note,
.loss-why {
  color: #6e4e1d;
  background: #fff0bd;
}

.loss-game-impact,
.loss-consequence {
  color: #173f2e;
  background: #e8f3df;
}

.loss-why b,
.loss-consequence b {
  margin-right: 5px;
}

.arcade-explanation {
  grid-template-columns: repeat(4, 1fr);
}

.navigator-validation-result {
  padding: 14px;
  background: white;
  border: 2px solid #cbdcc8;
  border-radius: 16px;
}

.navigator-validation-status {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}

.navigator-validation-status > span {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  background: var(--forest-700);
  border-radius: 50%;
  font-size: 23px;
}

.navigator-validation-status small {
  color: var(--forest-600);
  font-size: 14px;
  font-weight: 900;
}

.navigator-validation-status h3 {
  margin: 1px 0 3px;
  font-size: 21px;
}

.navigator-validation-status p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

#navigatorValidationChecks {
  display: grid;
  margin-top: 10px;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

#navigatorValidationChecks article {
  padding: 8px;
  background: #f3f6ef;
  border-radius: 9px;
}

#navigatorValidationChecks article > span {
  font-size: 18px;
}

#navigatorValidationChecks b,
#navigatorValidationChecks p {
  display: block;
  font-size: 14px;
}

#navigatorValidationChecks p {
  margin: 3px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.navigator-validation-evidence {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

#navigatorValidationEvidence {
  display: flex;
  margin-top: 5px;
  flex-wrap: wrap;
  gap: 5px;
}

#navigatorValidationEvidence a {
  padding: 6px 8px;
  color: var(--forest-700);
  background: #edf4e9;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 850;
}

@media (max-width: 1180px) {
  .annual-command-bar {
    grid-template-columns: 1fr;
  }

  .play-grid {
    grid-template-columns: 1fr;
  }

  .region-map-card {
    display: grid;
    grid-template-columns: minmax(300px, 0.8fr) 1fr;
  }

  .region-map-card > header {
    grid-column: 1 / -1;
  }

  .region-map {
    min-height: 280px;
  }

  .theme-instruction {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  #navigatorValidationChecks {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .pressure-deck {
    grid-template-columns: repeat(2, 1fr);
  }

  .pressure-deck article:last-child {
    grid-column: 1 / -1;
  }

  .annual-command-bar .council-progress {
    grid-template-columns: 1fr;
  }

  .annual-command-bar #roleProgress {
    grid-template-columns: repeat(3, 1fr);
  }

  .region-map-card {
    display: block;
  }

  .region-map {
    min-height: 280px;
  }

  .theme-instruction {
    min-height: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .action-options,
  .arcade-explanation,
  #navigatorValidationChecks {
    grid-template-columns: 1fr;
  }

  .auto-choose {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .auto-choose > span {
    grid-row: 1 / 3;
  }

  .auto-choose small {
    justify-self: start;
  }

  .loss-waterfall {
    grid-template-columns: 1fr;
  }

  .loss-waterfall > i {
    justify-self: center;
    transform: rotate(90deg);
  }
}

@media (min-width: 1181px) {
  .game-topbar {
    min-height: 60px;
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .game-brand > span:first-child {
    width: 40px;
    height: 40px;
  }

  .game-topbar nav a,
  .game-topbar nav button {
    min-height: 40px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .play-header {
    top: 60px;
    min-height: 40px;
    padding: 2px 16px;
    grid-template-columns: 1fr minmax(250px, 1.2fr) 130px;
    gap: 14px;
  }

  .play-identity > button {
    width: 34px;
    height: 34px;
  }

  .play-identity b,
  .turn-clock > b {
    font-size: 15px;
  }

  .turn-clock > b {
    display: inline;
    margin: 0 0 0 8px;
  }

  .turn-clock > span {
    display: inline;
  }

  .turn-progress {
    height: 3px;
    margin-top: 3px;
  }

  .live-score b {
    font-size: 27px;
  }

  .pressure-deck article {
    height: 50px;
    min-height: 50px;
    overflow: hidden;
  }

  .pressure-deck small {
    display: inline;
    margin-right: 5px;
  }

  .pressure-deck b {
    font-size: 16px;
    line-height: 1;
  }

  .pressure-deck article div div {
    display: none;
  }

  .pressure-deck article > div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pressure-deck em {
    display: none;
  }

  .annual-command-bar,
  .annual-command-bar .chapter-banner,
  .annual-command-bar .council-progress {
    height: 52px;
    min-height: 52px;
  }

  .annual-command-bar .chapter-banner p {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .annual-command-bar #roleProgress > span {
    justify-content: center;
  }

  .annual-command-bar #roleProgress b {
    display: none;
  }

  .active-character {
    height: 58px;
    min-height: 58px;
    overflow: hidden;
  }

  .active-character .character-portrait {
    width: 46px;
    height: 46px;
    aspect-ratio: 1;
    border-radius: 12px;
  }

  .active-character p {
    display: none;
  }

  .decision-card > header {
    min-height: 49px;
    padding-top: 5px;
    padding-bottom: 5px;
  }

  .decision-help {
    display: none;
  }

  .auto-choose {
    height: 40px;
    min-height: 40px;
  }

  .action-card {
    min-height: 292px;
  }

  .action-card-heading p {
    display: none;
  }

  .action-context {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .choice-explainer p {
    padding: 4px 6px;
    line-height: 1.25;
  }

  .action-card-buttons {
    display: grid;
    height: 48px;
    padding-top: 5px;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }

  .action-card-buttons a,
  .action-card-buttons button {
    width: 100%;
    height: 43px;
    min-height: 43px;
    padding: 4px 6px;
    line-height: 1.25;
  }

  .action-card-buttons a small {
    display: none;
  }

  .decision-foot {
    min-height: 46px;
    padding: 6px 11px;
  }

  .decision-foot p {
    margin: 0;
  }
}

/* v1.5 final cascade */
.play-grid {
  grid-template-columns: 1fr;
}

.judgement-lenses {
  display: grid;
  margin-top: 16px;
  grid-template-columns: minmax(300px, 0.8fr) 1fr;
}

.judgement-lenses > header {
  grid-column: 1 / -1;
}

.judgement-lenses .theme-instruction {
  border-top: 0;
  border-left: 1px solid var(--line);
}

.result-characters {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .judgement-lenses {
    display: block;
  }

  .judgement-lenses .theme-instruction {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .result-characters {
    grid-template-columns: 1fr;
  }
}

/* v1.6 focused game hierarchy */
.game-topbar {
  min-height: 62px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.game-brand > span:first-child {
  width: 40px;
  height: 40px;
  font-size: 22px;
}

.game-topbar nav {
  flex-direction: row;
  align-items: center;
}

#languageToggle {
  min-width: 76px;
}

.hero-media {
  width: min(1440px, calc(100% - 28px));
  height: clamp(430px, 58vh, 580px);
  min-height: 0;
  margin: 14px auto 0;
  overflow: hidden;
  border-radius: 26px;
}

.hero-copy {
  width: min(650px, 90vw);
  padding: clamp(48px, 7vh, 76px) clamp(24px, 5vw, 70px);
}

.hero-copy h1 {
  font-size: clamp(39px, 5vw, 66px);
}

.hero-lead {
  max-width: 590px;
  margin: 20px 0 22px;
  font-size: clamp(16px, 1.35vw, 19px);
}

.hero-facts > span {
  min-width: 100px;
  padding: 9px 12px;
}

.hero-facts b {
  font-size: 24px;
}

.hero-start {
  min-height: 52px;
  margin-top: 22px;
  padding: 9px 14px 9px 20px;
}

.premise-strip {
  width: min(940px, calc(100% - 48px));
  margin-top: -28px;
}

.premise-strip article {
  min-height: 74px;
  padding: 16px 18px;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
}

.premise-strip article > span {
  width: 34px;
  height: 34px;
}

.premise-strip b {
  margin: 0;
  font-size: 16px;
}

.journey-setup > header > p:first-child {
  color: var(--forest-600);
  font-size: 14px;
}

.journey-setup > header {
  margin-bottom: 22px;
}

.play-screen {
  padding-bottom: 40px;
  scroll-behavior: smooth;
}

.play-header {
  top: 62px;
  min-height: 56px;
  padding: 6px clamp(14px, 3vw, 28px);
  grid-template-columns: 1fr minmax(250px, 1.15fr) 130px;
  gap: 16px;
}

.play-section-nav {
  display: flex;
  width: min(1460px, calc(100% - 28px));
  margin: 8px auto;
  justify-content: center;
  gap: 6px;
}

.play-section-nav a {
  display: inline-flex;
  min-height: 36px;
  padding: 7px 12px;
  align-items: center;
  gap: 6px;
  color: var(--forest-700);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #ccd8ce;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.play-section-nav a:hover,
.play-section-nav a:focus-visible {
  color: var(--forest-950);
  background: var(--lime);
  border-color: var(--forest-700);
  outline: none;
}

.regional-dashboard {
  width: min(1460px, calc(100% - 28px));
  margin: 0 auto 10px;
  padding: 10px;
  background: #e8eee7;
  border: 1px solid #ccd8ce;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(11, 33, 25, 0.06);
}

.regional-dashboard > header {
  display: flex;
  min-height: 38px;
  padding: 0 6px 8px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.regional-dashboard > header small,
.regional-dashboard > header h2 {
  display: inline;
  margin: 0;
}

.regional-dashboard > header small {
  margin-right: 10px;
  color: var(--forest-600);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.regional-dashboard > header h2 {
  font-size: 19px;
}

.status-legend {
  display: flex;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.status-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.status-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.status-legend .good { background: var(--forest-600); }
.status-legend .caution { background: var(--gold); }
.status-legend .risk { background: var(--danger); }

.regional-dashboard .score-console,
.regional-dashboard .pressure-deck,
.regional-dashboard .nature-automation {
  width: 100%;
  margin: 0;
}

.regional-dashboard .score-console {
  gap: 7px;
}

.regional-dashboard .score-console article {
  min-height: 78px;
  padding: 9px 12px;
  border-radius: 12px;
  box-shadow: none;
}

.regional-dashboard .score-console article > b {
  display: inline;
  margin: 0 0 0 7px;
  font-size: 24px;
}

.regional-dashboard .score-console article > p {
  margin-top: 5px;
  font-size: 14px;
}

.regional-dashboard .pressure-deck {
  margin-top: 7px;
}

.regional-dashboard .pressure-deck article {
  height: auto;
  min-height: 60px;
  padding: 7px 9px;
  overflow: visible;
  grid-template-columns: 26px 1fr;
  border-radius: 11px;
  box-shadow: none;
}

.regional-dashboard .pressure-deck article > span {
  font-size: 20px;
}

.regional-dashboard .pressure-deck small,
.regional-dashboard .pressure-deck b {
  display: inline;
}

.regional-dashboard .pressure-deck b {
  margin-left: 5px;
  font-size: 16px;
}

.regional-dashboard .pressure-deck em {
  display: block;
  min-height: 0;
  margin: 1px 0 0;
  font-size: 14px;
}

.regional-dashboard .pressure-deck article div div {
  display: block;
  height: 4px;
  margin-top: 3px;
}

.regional-dashboard .nature-automation {
  margin-top: 7px;
  border-radius: 13px;
  box-shadow: none;
}

.regional-dashboard .nature-automation > header {
  min-height: 44px;
  padding: 7px 11px;
}

.regional-dashboard .nature-automation h2 {
  font-size: 17px;
}

.regional-dashboard .nature-automation > header small {
  display: inline;
  margin-right: 8px;
}

.regional-dashboard .nature-automation > header h2 {
  display: inline;
}

.nature-status-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.95fr);
}

.regional-dashboard .system-cards {
  grid-template-columns: repeat(5, 1fr);
}

.regional-dashboard .system-card {
  min-height: 100px;
  padding: 10px;
}

.regional-dashboard .system-card > i {
  display: inline;
  margin: 0 5px 0 0;
  font-size: 20px;
}

.regional-dashboard .system-card b {
  display: inline;
  font-size: 14px;
}

.regional-dashboard .system-card p {
  min-height: 0;
  margin: 4px 0 6px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.regional-dashboard .system-card em {
  margin-top: 5px;
  font-size: 14px;
}

.regional-dashboard .technology-portfolio {
  display: block;
  padding: 9px;
}

.regional-dashboard .technology-intro {
  margin-bottom: 6px;
}

.regional-dashboard .technology-intro > span {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 19px;
}

.regional-dashboard .technology-intro small {
  font-size: 14px;
}

.regional-dashboard .technology-intro h3 {
  display: inline;
  margin-left: 6px;
  font-size: 15px;
}

.regional-dashboard .technology-card {
  padding: 8px;
  border-radius: 9px;
}

.annual-command-bar {
  display: block;
  margin-top: 0;
}

.annual-command-bar .chapter-banner {
  width: 100%;
  height: auto;
  min-height: 48px;
}

.annual-command-bar .chapter-banner p {
  display: inline;
  margin-left: 8px;
}

.decision-card {
  position: static;
  max-height: none;
  scroll-margin-top: 132px;
}

.decision-card > header {
  min-height: 64px;
  padding: 10px 14px;
}

.decision-card h2 {
  font-size: 22px;
}

.decision-card #decisionKicker {
  display: none;
}

.decision-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.decision-tools .auto-choose {
  display: inline-flex;
  width: auto;
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 7px 12px;
  grid-template-columns: none;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
}

.decision-tools .auto-choose > span {
  grid-row: auto;
}

.action-options {
  min-height: 0;
  padding: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: none;
  align-items: stretch;
  gap: 10px;
}

.action-card {
  display: flex;
  min-height: 270px;
  padding: 13px;
  flex-direction: column;
  gap: 9px;
}

.action-card-heading {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 9px;
}

.action-card-heading > i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: #edf4e8;
  border-radius: 12px;
  font-size: 23px;
  font-style: normal;
}

.action-card-heading p {
  display: block;
  margin-top: 3px;
  -webkit-line-clamp: 2;
}

.choice-impact {
  padding: 8px 9px;
  color: var(--ink) !important;
  background: #eff6e9;
  border-radius: 9px;
  font-size: 14px;
}

.choice-impact strong,
.choice-details strong {
  display: block;
  color: var(--forest-700);
  font-size: 14px;
}

.choice-details {
  color: var(--muted);
  font-size: 14px;
}

.choice-details summary {
  width: fit-content;
  color: var(--forest-700);
  cursor: pointer;
  font-weight: 900;
}

.choice-details p {
  display: block;
  margin-top: 6px;
  padding-left: 9px;
  border-left: 2px solid #c8d8c9;
}

.action-card-buttons {
  margin-top: auto;
}

/* v1.7: choice cards must expand with their explanation at every desktop width. */
.action-card,
.action-card p,
.action-card-heading p,
.choice-impact,
.choice-details,
.choice-details p {
  height: auto;
  max-height: none;
  overflow: visible;
  white-space: normal;
  -webkit-box-orient: initial;
  -webkit-line-clamp: unset;
}

.action-card {
  min-height: 0;
}

.action-card-buttons {
  height: auto;
  min-height: 58px;
  align-items: stretch;
}

.action-card-buttons a,
.action-card-buttons button {
  height: auto;
  min-height: 58px;
  padding-top: 8px;
  padding-bottom: 8px;
  white-space: normal;
}

@media (min-width: 801px) and (max-width: 1100px) {
  .action-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .action-card {
    padding: 11px;
  }

  .action-card-buttons {
    grid-template-columns: minmax(72px, 0.8fr) minmax(0, 1.45fr);
  }
}

/* v1.8: recommendations stay hidden until the player asks for a hint. */
.hint-toggle {
  display: inline-flex;
  width: fit-content;
  min-height: 42px;
  padding: 8px 12px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--forest-900);
  background: var(--lime);
  border: 1px solid #9fc24a;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.hint-toggle:hover,
.hint-toggle:focus-visible,
.hint-toggle[aria-pressed="true"],
.hint-toggle[aria-expanded="true"] {
  color: white;
  background: var(--forest-700);
  border-color: var(--forest-700);
  outline: none;
}

.crop-gx-guide > header {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

#cropRecommendationGuide[hidden],
.recommendation-hint-note[hidden],
#councilHintNote[hidden] {
  display: none;
}

.decision-hint-toggle {
  height: 40px;
  min-height: 40px;
}

.recommendation-hint-note {
  margin: 0;
  padding: 9px 14px;
  color: #324d3b;
  background: #f2f8da;
  border-bottom: 1px solid #d6e8a5;
  font-size: 14px;
  font-weight: 750;
}

.recommendation-rank {
  color: var(--forest-700) !important;
}

.neutral-choice-label {
  color: #66736b !important;
}

.council-hint-control {
  display: flex;
  margin: 10px 0;
  align-items: center;
  gap: 10px;
}

.council-hint-control p {
  margin: 0;
  padding: 8px 10px;
  flex: 1;
  color: #324d3b;
  background: #f2f8da;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 750;
}

#councilResolutionOptions article.recommended {
  background: #fbfff4;
  border-color: #9fc24a;
}

@media (max-width: 720px) {
  .crop-gx-guide > header {
    grid-template-columns: 1fr;
  }

  .crop-gx-guide > header > span {
    display: none;
  }

  .council-hint-control {
    align-items: stretch;
    flex-direction: column;
  }
}

/* v1.11: explicit units, visible decision ownership and unmistakable primary actions. */
.regional-dashboard .metric-unit {
  display: inline;
  margin-left: 4px;
  color: #50645a;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
  white-space: nowrap;
}

.regional-dashboard .score-console article > b .metric-unit {
  margin-left: 3px;
  color: #53685d;
}

.regional-dashboard-basis {
  display: grid;
  margin-top: 7px;
  padding: 8px 10px;
  grid-template-columns: 1.15fr 1fr;
  gap: 8px 16px;
  color: #31483b;
  background: #f8fbf6;
  border: 1px solid #cddacb;
  border-radius: 11px;
}

.regional-dashboard-basis p {
  display: flex;
  margin: 0;
  align-items: flex-start;
  gap: 7px;
  font-size: 14px;
  line-height: 1.45;
}

.regional-dashboard-basis p > span[aria-hidden="true"] {
  flex: 0 0 auto;
  font-size: 18px;
}

.people-decision-dock {
  background: linear-gradient(135deg, #fffaf0, #eef6ea);
  border-top: 0;
  border-bottom: 1px solid #cdd9cb;
}

.people-decision-dock .active-character {
  min-height: 92px;
  border: 2px solid #a9c99f;
  box-shadow: 0 4px 12px rgba(20, 73, 49, 0.09);
}

.people-decision-dock .active-character p,
.people-decision-dock .active-character .decision-maker-task {
  display: block;
  margin: 3px 0;
  color: #33493d;
  font-size: 14px;
  line-height: 1.35;
}

.people-decision-dock .active-character .decision-maker-task strong {
  color: var(--forest-700);
}

.decision-maker-label {
  display: inline-flex;
  margin-right: 7px;
  padding: 3px 7px;
  color: white;
  background: var(--forest-700);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.people-decision-dock .council-progress > header b small {
  margin-left: 6px;
  color: #5b6d62;
  font-size: 14px;
  font-weight: 750;
}

.people-decision-dock #roleProgress > span > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.people-decision-dock #roleProgress > span > span small {
  color: #67776e;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
}

.people-decision-dock #roleProgress > span.active > span small { color: var(--forest-800); }
.people-decision-dock #roleProgress > span.done > span small { color: #47703f; }

.action-card-buttons button {
  position: relative;
  color: white;
  background: linear-gradient(135deg, #c64a18, #9f310f);
  border: 2px solid #7d250c;
  border-radius: 12px;
  box-shadow: 0 4px 0 #6f210b, 0 8px 14px rgba(91, 28, 7, 0.18);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.action-card-buttons button strong { color: white; font-size: 16px; line-height: 1.2; }
.action-card-buttons button span { color: rgba(255, 255, 255, 0.92); }
.action-card-buttons button:hover {
  background: linear-gradient(135deg, #d65a22, #ae3812);
  transform: translateY(-1px);
  box-shadow: 0 5px 0 #6f210b, 0 10px 18px rgba(91, 28, 7, 0.2);
}
.action-card-buttons button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #6f210b, 0 4px 8px rgba(91, 28, 7, 0.18);
}
.action-card-buttons button:focus-visible { outline: 4px solid #ffcc4d; outline-offset: 3px; }
.action-card-buttons button:disabled {
  color: #e8ece8;
  background: #718078;
  border-color: #65716b;
  box-shadow: none;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .regional-dashboard-basis { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .people-decision-dock .active-character .decision-maker-task { display: block; }
}

.people-decision-dock {
  display: grid;
  padding: 10px 12px;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 12px;
  background: #eef3ec;
  border-top: 1px solid var(--line);
  scroll-margin-top: 132px;
}

.people-decision-dock .active-character {
  height: auto;
  min-height: 68px;
  padding: 7px;
  overflow: visible;
  background: white;
  border: 1px solid #d6dfd5;
  border-radius: 12px;
}

.people-decision-dock .active-character .character-portrait {
  width: 58px;
  height: 58px;
  aspect-ratio: 1;
  border-radius: 12px;
}

.people-decision-dock .active-character p {
  display: none;
}

.people-decision-dock .active-character h3 {
  font-size: 16px;
}

.people-decision-dock .council-progress {
  padding: 0;
  background: transparent;
  border: 0;
}

.people-decision-dock .council-progress > header {
  display: flex;
  margin-bottom: 5px;
  align-items: center;
  justify-content: space-between;
}

.people-decision-dock .council-progress > header b {
  font-size: 14px;
}

.people-decision-dock .council-progress > header strong {
  color: var(--forest-700);
  font-size: 14px;
}

.people-decision-dock #roleProgress {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.people-decision-dock #roleProgress > span {
  min-height: 48px;
  padding: 4px;
  gap: 4px;
  background: white;
  border-radius: 9px;
}

.people-decision-dock #roleProgress .character-portrait.mini {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.people-decision-dock #roleProgress b {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decision-foot {
  min-height: 42px;
  padding: 6px 12px;
}

.judgement-lenses {
  margin-top: 12px;
}

.judgement-lenses > header {
  min-height: 52px;
  padding: 8px 12px;
}

.game-footer {
  display: grid;
  padding: 24px clamp(18px, 5vw, 72px);
  grid-template-columns: minmax(220px, 1fr) auto minmax(240px, 1fr);
  align-items: center;
  gap: 24px;
  color: white;
  background: var(--forest-950);
  border-top: 4px solid var(--lime);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
}

.footer-brand > span:first-child {
  font-size: 28px;
}

.footer-brand b,
.footer-brand small {
  display: block;
}

.footer-brand small,
.game-footer > p {
  color: rgba(255, 255, 255, 0.67);
  font-size: 14px;
}

.game-footer nav {
  display: flex;
  gap: 7px;
}

.game-footer nav a,
.game-footer nav button {
  display: inline-flex;
  min-height: 44px;
  padding: 8px 12px;
  align-items: center;
  gap: 6px;
  color: white;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.game-footer nav a.active,
.game-footer nav a:hover,
.game-footer nav button:hover,
.game-footer nav a:focus-visible,
.game-footer nav button:focus-visible {
  color: var(--forest-950);
  background: var(--lime);
  outline: none;
}

.game-footer > p {
  margin: 0;
  text-align: right;
}

@media (max-width: 1120px) {
  .nature-status-grid {
    grid-template-columns: 1fr;
  }

  .regional-dashboard .technology-portfolio {
    display: grid;
    grid-template-columns: 220px 1fr;
  }

  .game-footer {
    grid-template-columns: 1fr auto;
  }

  .game-footer > p {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 800px) {
  .game-topbar {
    align-items: center;
  }

  .game-topbar nav {
    flex-direction: row;
    align-items: center;
  }

  #languageToggle {
    display: inline-flex !important;
    min-width: 66px;
    justify-content: center;
  }

  .hero-media {
    width: calc(100% - 20px);
    height: auto;
    min-height: 520px;
    margin-top: 10px;
    border-radius: 20px;
  }

  .hero-copy {
    padding: 50px 24px;
  }

  .premise-strip {
    width: calc(100% - 36px);
    margin-top: -18px;
  }

  .premise-strip article {
    min-height: 58px;
    padding: 11px 14px;
  }

  .play-header {
    top: 62px;
    grid-template-columns: 1fr auto;
  }

  .turn-clock {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .play-section-nav {
    justify-content: stretch;
  }

  .play-section-nav a {
    flex: 1;
    justify-content: center;
  }

  .regional-dashboard .score-console,
  .regional-dashboard .pressure-deck,
  .regional-dashboard .system-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .regional-dashboard .pressure-deck article:last-child,
  .regional-dashboard .system-card:last-child {
    grid-column: 1 / -1;
  }

  .regional-dashboard .technology-portfolio,
  .action-options,
  .people-decision-dock {
    grid-template-columns: 1fr;
  }

  .action-card {
    min-height: 0;
  }

  .people-decision-dock #roleProgress {
    grid-template-columns: repeat(3, 1fr);
  }

  .game-footer {
    grid-template-columns: 1fr;
  }

  .game-footer nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .game-footer nav a,
  .game-footer nav button {
    justify-content: center;
  }

  .game-footer > p {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .game-brand small,
  .navigator-workspace-exit small,
  .navigator-workspace-exit i {
    display: none;
  }

  .navigator-workspace-exit {
    padding-right: 9px !important;
    padding-left: 9px !important;
  }

  .hero-media {
    min-height: 500px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-facts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .regional-dashboard > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .play-section-nav a {
    padding-right: 6px;
    padding-left: 6px;
    font-size: 14px;
  }

  .decision-card > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .decision-tools {
    width: 100%;
    justify-content: space-between;
  }

  .game-footer nav {
    grid-template-columns: 1fr;
  }
}

/* Game-to-project handoff: one clear action, visually distinct from section links. */
.play-section-nav .game-project-action {
  display: inline-flex;
  min-height: 38px;
  margin-left: 8px;
  padding: 7px 15px;
  align-items: center;
  gap: 7px;
  color: #102e22;
  background: #d4ff4f;
  border: 2px solid #154d38;
  border-radius: 999px;
  box-shadow: 0 3px 0 #154d38;
  font: inherit;
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}
.play-section-nav .game-project-action:hover,
.play-section-nav .game-project-action:focus-visible {
  transform: translateY(-1px);
  background: #eeff9f;
  outline: 3px solid rgba(21, 77, 56, .22);
  outline-offset: 2px;
}
.play-section-nav .game-project-action:disabled {
  color: #68736c;
  background: #e5e9e5;
  border-color: #b8c0ba;
  box-shadow: none;
  cursor: not-allowed;
}
.navigator-handoffs .result-project-handoff {
  grid-column: 1 / -1;
  display: grid;
  min-height: 112px;
  padding: 20px 22px;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  color: #102e22;
  text-align: left;
  background: linear-gradient(100deg, #d4ff4f, #f3ffd0);
  border: 2px solid #b6dd37;
  border-radius: 17px;
  box-shadow: 0 8px 0 rgba(3, 26, 18, .22);
  cursor: pointer;
}
.navigator-handoffs .result-project-handoff:hover,
.navigator-handoffs .result-project-handoff:focus-visible {
  transform: translateY(-2px);
  outline: 3px solid white;
  outline-offset: 3px;
}
.navigator-handoffs .result-project-handoff i { font-size: 40px; }
.navigator-handoffs .result-project-handoff span { margin: 0; color: inherit; }
.navigator-handoffs .result-project-handoff b { display: block; margin: 0 0 4px; font-size: 21px; }
.navigator-handoffs .result-project-handoff p { margin: 0; color: #365246; font-size: 15px; }
.navigator-handoffs .result-project-handoff strong { white-space: nowrap; font-size: 15px; }
@media (max-width: 800px) {
  .play-section-nav { flex-wrap: wrap; }
  .play-section-nav .game-project-action { flex: 1 0 100%; justify-content: center; margin-left: 0; }
  .navigator-handoffs .result-project-handoff { grid-template-columns: 44px minmax(0, 1fr); }
  .navigator-handoffs .result-project-handoff strong { grid-column: 2; }
}
@media (max-width: 560px) {
  .navigator-handoffs .result-project-handoff { padding: 17px; }
  .navigator-handoffs .result-project-handoff p { font-size: 14px; }
}
