/* Civilization strategy panel — mobile-first, 44px targets, no horizontal overflow at 320px. */
.strategy-panel {
  --strategy-gold: var(--color-amber, #d6a354);
  --strategy-ink: var(--color-graphite, #151b20);
  --strategy-line: var(--color-steel, #3b4850);
  --strategy-paper: var(--color-warm-white, #e9e6dc);
  margin: 0 0 1.25rem;
  border: 1px solid var(--strategy-line);
  border-radius: 0.65rem;
  background: linear-gradient(160deg, #102a33 0%, #0b1a21 55%, #0a1720 100%);
  color: var(--strategy-paper);
  overflow: hidden;
}
.strategy-panel * { box-sizing: border-box; }
.strategy-panel h2, .strategy-panel h3, .strategy-panel h4, .strategy-panel h5 { margin: 0; line-height: 1.25; }
.strategy-panel h2 { font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 600; }
.strategy-panel h3 { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--strategy-paper); }
.strategy-panel h4 { font-size: 0.95rem; }
.strategy-panel h5 { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #9db6b8; margin: 0.6rem 0 0.3rem; }
.strategy-panel p { margin: 0.35rem 0; }
.strategy-header { display: flex; flex-direction: column; gap: 0.85rem; padding: 1rem; background: radial-gradient(ellipse at 92% 0, #d6a35424, transparent 62%); border-bottom: 1px solid #2b454c; }
.strategy-eyebrow { display: flex; align-items: center; gap: 0.45rem; margin: 0; color: var(--strategy-gold); font-size: 0.68rem; letter-spacing: 0.14em; font-weight: 600; }
.strategy-eyebrow svg { flex: none; width: 0.9rem; height: 0.9rem; background: none; border: 0; }
.strategy-intro { color: #a8c0c0; font-size: 0.82rem; max-width: 62ch; }
.strategy-status, .strategy-error, .strategy-muted, .strategy-note, .strategy-empty { font-size: 0.82rem; }
.strategy-status { margin: 0; padding: 0.6rem 1rem; color: #b7e4b5; background: #16321f; border-bottom: 1px solid #2e5a3a; }
.strategy-error { margin: 0; padding: 0.6rem 1rem; color: #ffc3bb; background: #361d1b; border-bottom: 1px solid #6b3a36; }
.strategy-muted { color: #90a8aa; }
.strategy-note { color: #9fb7b7; font-size: 0.72rem; }
.strategy-empty { padding: 0.75rem 0; color: #a9bcbc; }
.strategy-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #24383e; border-bottom: 1px solid #24383e; }
.strategy-summary > div { min-width: 0; padding: 0.7rem 1rem; background: #0d2027; display: flex; flex-direction: column; gap: 0.15rem; }
.strategy-summary small { color: #8fa7a9; font-size: 0.65rem; letter-spacing: 0.09em; text-transform: uppercase; }
.strategy-summary strong { font-size: 0.9rem; overflow-wrap: anywhere; }
.strategy-block { padding: 1rem; border-bottom: 1px solid #1e343a; }
.strategy-block:last-child { border-bottom: 0; }
.strategy-block > h3 { padding-bottom: 0.5rem; border-bottom: 1px solid #24383e; margin-bottom: 0.65rem; }
.strategy-stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; list-style: none; margin: 0 0 0.8rem; padding: 0; }
.strategy-stages li { min-width: 0; min-height: 64px; padding: 0.45rem; border: 1px solid #2c464d; border-radius: 0.4rem; background: #0c1e25; display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.75rem; }
.strategy-stages li.complete { border-color: #3c5b48; }
.strategy-stages li.current { border-color: var(--strategy-gold); background: #1d2a24; }
.strategy-stages li.locked { opacity: 0.6; }
.strategy-stage-index { color: var(--strategy-gold); font-size: 0.65rem; letter-spacing: 0.1em; }
.strategy-stages small { color: #90a8aa; font-size: 0.62rem; }
.strategy-stage-detail h4 { margin-bottom: 0.35rem; }
.strategy-requirements, .strategy-costs, .strategy-effects, .strategy-restrictions, .strategy-reasons, .strategy-modifiers, .strategy-sources, .strategy-missing ul { list-style: none; margin: 0.25rem 0; padding: 0; }
.strategy-requirements li { display: flex; flex-wrap: wrap; gap: 0.3rem 0.5rem; align-items: baseline; padding: 0.28rem 0; font-size: 0.8rem; border-bottom: 1px dashed #21383e; overflow-wrap: anywhere; }
.strategy-requirements li > span[aria-hidden] { width: 1rem; flex: none; color: #8fae97; }
.strategy-requirements li.unmet > span[aria-hidden] { color: #e0a0a0; }
.strategy-requirements small { color: #91a9ab; font-size: 0.7rem; }
.strategy-missing { margin: 0.55rem 0 0; padding: 0.55rem 0.65rem; border-left: 2px solid #b07a7a; background: #241a1a; border-radius: 0 0.35rem 0.35rem 0; }
.strategy-missing li { font-size: 0.76rem; padding: 0.12rem 0; }
.strategy-effects li, .strategy-costs li, .strategy-modifiers li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 0.6rem; padding: 0.22rem 0; font-size: 0.8rem; border-bottom: 1px dotted #21383e; }
.strategy-effects strong, .strategy-costs strong, .strategy-modifiers strong { color: #cfe6c9; font-variant-numeric: tabular-nums; }
.strategy-costs small { flex-basis: 100%; color: #8fa7a9; font-size: 0.68rem; }
.strategy-costs .short strong { color: #e6b0a6; }
.strategy-sources li { display: flex; flex-direction: column; gap: 0.1rem; padding: 0.25rem 0; font-size: 0.78rem; border-bottom: 1px dotted #21383e; }
.strategy-sources small { color: #90a8aa; font-size: 0.68rem; overflow-wrap: anywhere; }
.strategy-spec-grid, .strategy-project-grid, .strategy-assets { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
.strategy-spec, .strategy-project, .strategy-asset { min-width: 0; padding: 0.8rem; border: 1px solid #2c464d; border-radius: 0.5rem; background: #0c1e25; display: flex; flex-direction: column; gap: 0.35rem; }
.strategy-spec.chosen, .strategy-project.active { border-color: var(--strategy-gold); background: #182a25; }
.strategy-spec.locked, .strategy-project.locked, .strategy-project.completed { opacity: 0.78; }
.strategy-spec > header, .strategy-project > header, .strategy-asset > header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.35rem; }
.strategy-spec > header h4, .strategy-project > header h4, .strategy-asset > header h4 { overflow-wrap: anywhere; }
.strategy-spec p, .strategy-project p { color: #a9bfbf; font-size: 0.78rem; }
.strategy-spec-effects, .strategy-project-grid h5, .strategy-asset h5 { min-width: 0; }
.strategy-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0; }
.strategy-tags span, .strategy-chip-static { display: inline-flex; align-items: center; padding: 0.14rem 0.45rem; border: 1px solid #3a565d; border-radius: 999px; font-size: 0.64rem; letter-spacing: 0.04em; text-transform: uppercase; color: #b9d0cf; background: #10262d; }
.strategy-chip-static.complete { color: #bfe4c0; border-color: #3f6148; }
.strategy-chip-static.active { color: #f0d79b; border-color: #6d5a33; }
.strategy-chip-static.locked { color: #c7a7a7; border-color: #5c3c3c; }
.strategy-kind { display: block; color: var(--strategy-gold); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; }
.strategy-facts { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0; }
.strategy-facts div { display: flex; gap: 0.35rem; align-items: baseline; }
.strategy-facts dt { color: #8fa7a9; font-size: 0.7rem; }
.strategy-facts dd { margin: 0; font-size: 0.78rem; }
.strategy-progress-row { display: flex; flex-direction: column; gap: 0.25rem; margin: 0.35rem 0; }
.strategy-progress { width: 100%; height: 0.55rem; appearance: none; border: 1px solid #3f5a5d; border-radius: 999px; background: #0a1a20; overflow: hidden; }
.strategy-progress::-webkit-progress-bar { background: #0a1a20; }
.strategy-progress::-webkit-progress-value { background: linear-gradient(90deg, #8a6f3d, var(--strategy-gold)); }
.strategy-progress::-moz-progress-bar { background: linear-gradient(90deg, #8a6f3d, var(--strategy-gold)); }
.strategy-progress-row small { color: #9fb7b7; font-size: 0.68rem; }
.strategy-active-project { margin-bottom: 0.7rem; padding: 0.6rem 0.75rem; border: 1px solid #6d5a33; border-radius: 0.45rem; background: #1c2419; display: flex; flex-direction: column; gap: 0.2rem; overflow-wrap: anywhere; }
.strategy-active-project small { color: #a9bcb1; font-size: 0.7rem; }
.strategy-confirm { margin-top: 0.5rem; padding: 0.6rem; border: 1px solid #8f5a52; border-radius: 0.45rem; background: #2a1a19; display: flex; flex-direction: column; gap: 0.45rem; }
.strategy-confirm p { color: #f0cfc8; font-size: 0.78rem; margin: 0; }
.strategy-button { min-height: 44px; min-width: 44px; padding: 0.55rem 0.9rem; border: 1px solid #4b6467; border-radius: 0.4rem; background: #17313a; color: #e6f1ee; font: inherit; font-size: 0.82rem; cursor: pointer; overflow-wrap: anywhere; }
.strategy-button:hover:not(:disabled) { border-color: var(--strategy-gold); color: #ffe6b3; }
.strategy-button:disabled { opacity: 0.55; cursor: not-allowed; }
.strategy-button-danger { border-color: #a06b62; background: #3a201d; color: #ffd8d0; }
.strategy-button:focus-visible, .strategy-family:focus-visible, .strategy-details summary:focus-visible { outline: 3px solid var(--color-focus-ring, #d6a354); outline-offset: 2px; }
.strategy-families { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.5rem 0 0.8rem; }
.strategy-family { min-height: 44px; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.35rem 0.7rem; border: 1px solid #3a565d; border-radius: 999px; background: #10262d; color: #c4d7d5; font: inherit; font-size: 0.76rem; cursor: pointer; }
.strategy-family small { color: #8fa7a9; font-variant-numeric: tabular-nums; }
.strategy-family[aria-pressed="true"] { border-color: var(--strategy-gold); background: #24322a; color: #ffe6b3; }
.strategy-details { border-top: 1px solid #22383e; padding-top: 0.35rem; }
.strategy-details summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 0.76rem; color: #bcd3d1; }
.strategy-details summary::marker { color: var(--strategy-gold); }
.strategy-details[open] { padding-bottom: 0.25rem; }
@media (min-width: 700px) {
  .strategy-header { flex-direction: row; align-items: flex-start; justify-content: space-between; }
  .strategy-header .strategy-button { flex: none; }
  .strategy-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .strategy-stages { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .strategy-spec-grid, .strategy-project-grid, .strategy-assets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .strategy-spec-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strategy-assets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
  .strategy-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strategy-block, .strategy-header { padding: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .strategy-panel *, .strategy-panel *::before, .strategy-panel *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .strategy-panel, .strategy-spec, .strategy-project, .strategy-asset, .strategy-button, .strategy-family { border: 1px solid CanvasText; }
  .strategy-progress { border: 1px solid CanvasText; }
}
