/* Shared player-facing materials. Scene artwork and game-state colors stay local. */
:root {
  --executive-paper: #fffaf1;
  --executive-floor: #eeeae2;
  --executive-ink: #292c2d;
  --executive-muted: #4e5253;
  --executive-brass: #704719;
  --executive-mahogany: #58382b;
  --executive-chrome: #8d9695;
  --executive-blue: #163e70;
  --executive-red: #8c2330;
  --executive-green: #23583b;
  --executive-display: "Bahnschrift Condensed", "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  --executive-body: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}
body[data-game-theme="executive"] {
  color-scheme: light;
  margin: 0;
  color: var(--executive-ink);
  background: var(--executive-floor);
  font-family: var(--executive-body);
  font-size: 16px;
  line-height: 1.6;
  --game-display: var(--executive-display);
  --control-brass: var(--executive-brass);
  --control-mahogany: var(--executive-mahogany);
  --control-chrome: var(--executive-chrome);
  --control-paper: var(--executive-paper);
}
body[data-game-theme="executive"]:not([data-tank-page="landing"]) {
  --bg: var(--executive-floor);
  --panel: var(--executive-paper);
  --raised: #ece3d3;
  --ink: var(--executive-ink);
  --muted: var(--executive-muted);
  --line: var(--executive-chrome);
  --gold: var(--executive-brass);
  --orange: var(--executive-brass);
  --tank-orange-text: var(--executive-brass);
  --ink-blue: var(--executive-blue);
  --ink-red: var(--executive-red);
  --ink-green: var(--executive-green);
}
body[data-game-theme="executive"] :is(h1, h2, h3) {
  font-family: var(--executive-display);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
body[data-game-theme="executive"] :is(h1, h2) em { font-style: normal; }
body[data-game-theme="executive"] :is(button, input, select, textarea) { font-family: var(--executive-body); }
body[data-game-theme="executive"] :is(p, li) { line-height: 1.6; }
body[data-game-theme="executive"] :is(button, a.primary, a.secondary, a.primary-link, a.action-primary, a.action-secondary, a.hero-link, .button) {
  box-sizing: border-box;
  min-height: 44px;
  border: 1px solid var(--executive-chrome);
  border-radius: 4px;
  color: var(--executive-ink);
  background: linear-gradient(115deg, #dadde0, #fffdf8 48%, #d0d3d2);
  font-size: 16px;
  font-weight: 650;
  line-height: 1.6;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px 0 #fff, 0 3px 0 var(--executive-chrome), 0 7px 16px #42382c28;
  transition: transform 130ms ease, box-shadow 130ms ease, background-color 130ms ease;
}
body[data-game-theme="executive"] :is(button.primary, a.primary, a.primary-link, .action-primary, .acq-primary, .pricing-card button) {
  color: var(--executive-paper);
  background: var(--executive-brass);
  border-color: var(--executive-brass);
  box-shadow: inset 0 1px 0 #bda168, 0 3px 0 var(--executive-mahogany), 0 7px 16px #42382c28;
}
body[data-game-theme="executive"] :is(button, a.primary, a.secondary, a.primary-link, a.action-primary, a.action-secondary, a.hero-link, .button):not(:disabled):hover {
  color: var(--executive-paper);
  background: var(--executive-mahogany);
  transform: translateY(-3px);
  filter: none;
}
body[data-game-theme="executive"] :is(button, a.primary, a.secondary, a.primary-link, a.action-primary, a.action-secondary, a.hero-link, .button):not(:disabled):active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 5px #0002, 0 1px 0 var(--executive-mahogany);
}
body[data-game-theme="executive"] button:not(:disabled):is(:hover, :active) :is(p, span, strong, small) { color: inherit; }
body[data-game-theme="executive"] :is(button:disabled, .button.disabled) {
  color: #424647;
  background: #e0e2df;
  border-color: #8d9695;
  opacity: 1;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}
body[data-game-theme="executive"] :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--executive-brass);
  outline-offset: 4px;
}
body[data-game-theme="executive"] :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  color: var(--executive-ink);
  background: #fffdf8;
  border: 1px solid var(--executive-chrome);
  border-radius: 4px;
  font-size: 16px;
  min-height: 44px;
}
body[data-game-theme="executive"] ::placeholder { color: #55595a; opacity: 1; }
body[data-game-theme="executive"] :is(.eyebrow, .legal-kicker, .pricing-kicker, .panel-heading > span:first-child) { color: var(--executive-brass); }
body[data-game-theme="executive"] :is(.tank-primary-nav, .stage-nav, .relay-nav) { font-family: var(--executive-display); }
body[data-game-theme="executive"] .tank-registration-gate h1 { font-family: var(--executive-display); }

/* Paper workflows: each keeps its layout and contextual artwork. */
body[data-tank-page="login"] {
  background: linear-gradient(90deg, #f7f3ebf5, #f7f3ebcc), url('/assets/boardroom/investor-room-v3.webp') center/cover;
}
body[data-game-theme="executive"] :is(.login-panel, .rules-steps li, .pricing-card, .pricing-details) {
  background: var(--executive-paper);
  border: 1px solid var(--executive-chrome);
  border-top: 4px solid var(--executive-mahogany);
  border-radius: 4px;
  box-shadow: inset 0 1px #fff, 0 5px 0 #b2a38a, 0 12px 28px #38241918;
}
body[data-game-theme="executive"] :is(.pricing-card-top, .pricing-price, .pricing-details small, .rules-steps > li > span) {
  font-family: var(--executive-display);
  color: var(--executive-brass);
}
body[data-game-theme="executive"] .pricing-card { --plan-color: var(--executive-brass); }
body[data-game-theme="executive"] .pricing-card::before { background: var(--executive-brass); }
body[data-game-theme="executive"] .pricing-card-top { color: var(--executive-brass); }
body[data-game-theme="executive"] .pricing-card-top span { color: var(--executive-brass); border-color: var(--executive-brass); }
body[data-game-theme="executive"] :is(.login-intro h1 em, .rules-hero h1 em) { color: var(--executive-brass); }

/* Circuit evidence and terms are documents, including inspected and selected states. */
body[data-game-theme="executive"][data-tank-page="cases"] .daily-standup {
  background: var(--executive-paper);
  border-color: var(--executive-chrome);
  border-left: 3px solid var(--executive-brass);
}
body[data-tank-page="circuit"] :is(.evidence-card.inspected, .choice:has(input:checked), .offer) {
  color: var(--executive-ink);
  background: linear-gradient(120deg, #fffdf8, #eee4d4);
  border-color: var(--executive-brass);
}
body[data-tank-page="circuit"] .evidence-card.inspected { border-left: 4px solid var(--executive-green); }
body[data-tank-page="circuit"] :is(.evidence-card, .offer, .proposal, .lesson, .field-help) { border-radius: 4px; }
body[data-tank-page="circuit"] :is(.judge-portrait > div, .room-image figcaption) { color: #fffaf1; }
body[data-tank-page="circuit"] .judge-portrait :is(.eyebrow, small) { color: #f1dcc0; }

/* Relay documents and follow-up controls keep evidence ink separate from chrome UI. */
body[data-game-theme="executive"] :is(.acq-shell, .relay-shell) {
  --acq-brass: var(--executive-brass);
  --acq-wood: var(--executive-mahogany);
  --acq-chrome: var(--executive-chrome);
  --acq-paper: var(--executive-paper);
  --acq-blue: var(--executive-blue);
  --acq-red: var(--executive-red);
}
body[data-game-theme="executive"] :is(.move, .acq-move, .choice-card, .case-option) {
  color: var(--executive-blue);
  background: var(--executive-paper);
  border-radius: 4px;
  border-left: 3px solid var(--executive-mahogany);
}
body[data-game-theme="executive"] :is(.move, .acq-move, .choice-card, .case-option):is(.selected, [aria-pressed="true"]) {
  color: var(--executive-blue);
  background: #eadbb8;
  border-color: var(--executive-brass);
}
body[data-game-theme="executive"] :is(.move, .acq-move, .choice-card, .case-option):hover :is(span, small, strong) { color: inherit; }
body[data-game-theme="executive"] :is(.paper, .acq-paper) { border-color: var(--executive-chrome); border-radius: 4px; }
body[data-game-theme="executive"] :is(.paper, .acq-paper) :is(h2, h3) { color: var(--executive-blue); }
body[data-game-theme="executive"] .red-ink { color: var(--executive-red); }
body[data-game-theme="executive"] .green-ink { color: var(--executive-green); }
body[data-game-theme="executive"] .blue-ink { color: var(--executive-blue); }
/* Standalone paper panels may appear outside the Relay shell (for example in Circuit and campaign views). */
body[data-game-theme="executive"] :is(.paper, .acq-paper) :is(p, li, dt, dd, td, th, caption) { color: var(--executive-blue); }
body[data-game-theme="executive"] :is(.paper, .acq-paper) :is(.red-ink, .mission03-ink-red, .mission04-ink-red) { color: var(--executive-red); }
body[data-game-theme="executive"] :is(.paper, .acq-paper) :is(.green-ink, .mission03-ink-green, .mission04-ink-green) { color: var(--executive-green); }
body[data-game-theme="executive"] :is(.paper, .acq-paper) :is(.blue-ink, .mission03-ink-blue, .mission04-ink-blue) { color: var(--executive-blue); }
/* Page-level Relay ink rules can be more specific than the shared semantic palette.
   Reinforce document annotations only; leave control chrome and panel surfaces intact. */
body[data-game-theme="executive"] :is(.acq-shell, .relay-shell) :is(.paper, .acq-paper, .retention-panel, .retention-paper, .relay-cross-exam, .relay-cross-reassessment, .relay-claim-reaction, .cash-feedback, .relay-receipt, .decision-document) .blue-ink { color: var(--executive-blue); }
body[data-game-theme="executive"] :is(.acq-shell, .relay-shell) :is(.paper, .acq-paper, .retention-panel, .retention-paper, .relay-cross-exam, .relay-cross-reassessment, .relay-claim-reaction, .cash-feedback, .relay-receipt, .decision-document) .red-ink { color: var(--executive-red); }
body[data-game-theme="executive"] :is(.acq-shell, .relay-shell) :is(.paper, .acq-paper, .retention-panel, .retention-paper, .relay-cross-exam, .relay-cross-reassessment, .relay-claim-reaction, .cash-feedback, .relay-receipt, .decision-document) .green-ink { color: var(--executive-green); }
/* Document prose stays in blue ink across Relay, hiring, pitch, and legal records. */
body[data-game-theme="executive"] :is(.acq-shell, .relay-shell) :is(.paper, .acq-paper, .retention-panel, .retention-paper, .relay-cross-exam, .relay-cross-reassessment, .relay-claim-reaction, .cash-feedback, .relay-receipt, .decision-document, .mission03-panel, .mission03-record, .mission03-receipt, .mission03-followup-receipt, .mission03-facts, .mission03-balances, .mission03-delivery-record, .mission03-score-breakdown, .mission04-panel, .mission04-record, .mission04-receipt, .mission04-score, .mission04-verdict-window, .mission04-evidence-gap, .mission04-facts) :is(p, li, dt, dd, td, th, caption) { color: var(--executive-blue); }
body[data-game-theme="executive"] :is(.acq-shell, .relay-shell) :is(.paper, .acq-paper, .retention-panel, .retention-paper, .relay-cross-exam, .relay-cross-reassessment, .relay-claim-reaction, .cash-feedback, .relay-receipt, .decision-document, .mission03-panel, .mission03-record, .mission03-receipt, .mission03-followup-receipt, .mission03-facts, .mission03-balances, .mission03-delivery-record, .mission03-score-breakdown, .mission04-panel, .mission04-record, .mission04-receipt, .mission04-score, .mission04-verdict-window, .mission04-evidence-gap, .mission04-facts) :is(.red-ink, .mission03-ink-red, .mission04-ink-red) { color: var(--executive-red); }
body[data-game-theme="executive"] :is(.acq-shell, .relay-shell) :is(.paper, .acq-paper, .retention-panel, .retention-paper, .relay-cross-exam, .relay-cross-reassessment, .relay-claim-reaction, .cash-feedback, .relay-receipt, .decision-document, .mission03-panel, .mission03-record, .mission03-receipt, .mission03-followup-receipt, .mission03-facts, .mission03-balances, .mission03-delivery-record, .mission03-score-breakdown, .mission04-panel, .mission04-record, .mission04-receipt, .mission04-score, .mission04-verdict-window, .mission04-evidence-gap, .mission04-facts) :is(.green-ink, .mission03-ink-green, .mission04-ink-green, .mission03-saved, .mission04-saved, .mission04-trust-note) { color: var(--executive-green); }
body[data-game-theme="executive"] :is(.acq-shell, .relay-shell) :is(.paper, .acq-paper, .retention-panel, .retention-paper, .relay-cross-exam, .relay-cross-reassessment, .relay-claim-reaction, .cash-feedback, .relay-receipt, .decision-document, .mission03-panel, .mission03-record, .mission03-receipt, .mission03-followup-receipt, .mission03-facts, .mission03-balances, .mission03-delivery-record, .mission03-score-breakdown, .mission04-panel, .mission04-record, .mission04-receipt, .mission04-score, .mission04-verdict-window, .mission04-evidence-gap, .mission04-facts) :is(.blue-ink, .mission03-ink-blue, .mission04-ink-blue) { color: var(--executive-blue); }
body[data-game-theme="executive"] .relay-shell :is(.mission03, .mission04) :is(.mission04-evidence-gap, .mission04-status-message) { color: var(--executive-blue); }

/* A League workbench: a lit executive desk, with source documents in blue ink. */
body[data-tank-page="pitch"] .workspace-shell { background: var(--executive-floor); }
body[data-tank-page="pitch"] :is(.workspace-header, footer) { color: var(--executive-ink); background: var(--executive-paper); border-color: var(--executive-chrome); }
body[data-tank-page="pitch"] :is(.entry-panel, .review-panel, .claim-card, .scene-card, .boundary, .privacy-note) {
  color: var(--executive-blue);
  background: var(--executive-paper);
  border-color: var(--executive-chrome);
  border-radius: 4px;
}
body[data-tank-page="pitch"] :is(.scene-card strong, .claim-card h3, .scene-card small, .scene-card span, .form-head, .review-head) { color: var(--executive-blue); }
body[data-tank-page="pitch"] .scene-card { animation: none; transform: none; }
body[data-tank-page="pitch"] .qualification-gate { background: var(--executive-paper); color: var(--executive-ink); }
body[data-game-theme="executive"] .workspace-shell :is(.entry-panel, .review-panel, .claim-card, .scene-card, .boundary, .privacy-note, .coach-paper, .deck-cover, .deck-slide, .summary-preview, .rehearsal-preview, .brief-row, .deck-claim, .practice-handoff, .account-desk) :is(p, li, dt, dd, td, th, caption) { color: var(--executive-blue); }
body[data-game-theme="executive"] .workspace-shell :is(.entry-panel, .review-panel, .claim-card, .scene-card, .boundary, .privacy-note, .coach-paper, .deck-cover, .deck-slide, .summary-preview, .rehearsal-preview, .brief-row, .deck-claim, .practice-handoff, .account-desk) :is(.red-ink, .deck-status, .claim-gap, .claim-review-note, .coach-gap) { color: var(--executive-red); }
body[data-game-theme="executive"] .workspace-shell :is(.entry-panel, .review-panel, .claim-card, .scene-card, .boundary, .privacy-note, .coach-paper, .deck-cover, .deck-slide, .summary-preview, .rehearsal-preview, .brief-row, .deck-claim, .practice-handoff, .account-desk) :is(.green-ink, .coach-evidence) { color: var(--executive-green); }
body[data-game-theme="executive"] .workspace-shell :is(.entry-panel, .review-panel, .claim-card, .scene-card, .boundary, .privacy-note, .coach-paper, .deck-cover, .deck-slide, .summary-preview, .rehearsal-preview, .brief-row, .deck-claim, .practice-handoff, .account-desk) .blue-ink { color: var(--executive-blue); }

/* Privacy, terms and inbox access belong to the same room, with quiet documents. */
body[data-game-theme="executive"].legal-page { background: var(--executive-floor); color: var(--executive-ink); }
body[data-game-theme="executive"].legal-page header { background: var(--executive-paper); border-color: var(--executive-chrome); }
body[data-game-theme="executive"].legal-page main { background: var(--executive-paper); border: 1px solid var(--executive-chrome); border-top: 4px solid var(--executive-mahogany); border-radius: 4px; }
body[data-game-theme="executive"].legal-page main :is(p, li, h2, .updated) { color: var(--executive-blue); }
body[data-game-theme="executive"].legal-page a { color: var(--executive-blue); }
body[data-game-theme="executive"].legal-page .brand-name-main,
body[data-game-theme="executive"].legal-page .brand-name-accent {
  background: none;
  color: var(--executive-ink);
  -webkit-text-fill-color: var(--executive-ink);
  -webkit-text-stroke: 0;
  filter: none;
}
body[data-game-theme="executive"].legal-page .brand-name-accent { color: var(--executive-mahogany); -webkit-text-fill-color: var(--executive-mahogany); }
body[data-game-theme="executive"] .legal-art { background: linear-gradient(120deg, #ece3d3, #fffaf1); border-color: var(--executive-chrome); }
body[data-game-theme="executive"] .legal-art-card { color: var(--executive-blue); background: #fffdf8; border-color: var(--executive-chrome); border-radius: 2px; transform: none; animation: none; }
body[data-game-theme="executive"] .legal-art-card :is(strong, span, small) { color: inherit; font-size: 16px; line-height: 1.6; }
body[data-game-theme="executive"] .legal-art-card:nth-child(2) { color: var(--executive-red); background: #fffdf8; }
body[data-game-theme="executive"] .legal-art-card:nth-child(3) { color: var(--executive-green); background: #fffdf8; }
body[data-game-theme="executive"] .arena-legal-footer { color: #fffaf1; background: var(--executive-mahogany); border-top: 2px solid var(--executive-chrome); font-size: 16px; }
body[data-game-theme="executive"] .arena-legal-footer a { color: #fffaf1; }
body[data-tank-page="verification"] { background: var(--executive-floor); }
body[data-tank-page="verification"] .card { color: var(--executive-ink); background: var(--executive-paper); border: 1px solid var(--executive-chrome); border-top: 4px solid var(--executive-mahogany); border-radius: 4px; }
body[data-tank-page="verification"] :is(.kicker, .card > a) { color: var(--executive-brass); }
body[data-tank-page="verification"] .card p { color: var(--executive-ink); }
body[data-tank-page="verification"] .card #status { color: var(--executive-red); }
body[data-tank-page="verification"] .verify-letter { color: var(--executive-blue); background: var(--executive-paper); }
body[data-tank-page="verification"] .verify-letter :is(span, strong, small) { color: var(--executive-blue); }

/* The opening remains cinematic; the surrounding lobby shares the light floor. */
body[data-tank-page="landing"] { --ink: #f5f3ed; --muted: #cad0cf; --gold: #e0c891; --tank-orange-text: #e0c891; }
body[data-tank-page="landing"] .hero-copy-block .eyebrow { color: #e0c891; }
body[data-tank-page="landing"] .hero-copy-block :is(h1, p) { color: #fffaf1; }
body[data-tank-page="landing"] .hero-copy-block h1 em { color: #e0c891; }
body[data-tank-page="landing"] .hero-link { color: var(--executive-ink); }

/* The full navigation outgrew the earlier 910px breakpoint. */
@media (max-width: 1180px) {
  body[data-game-theme="executive"] .tank-site-header { justify-content: space-between; flex-wrap: wrap; }
  body[data-game-theme="executive"] .tank-menu-toggle { display: inline-grid; place-items: center; margin-left: auto; min-width: 44px; }
  body[data-game-theme="executive"] .tank-primary-nav { display: none; order: 4; width: 100%; flex-basis: 100%; flex-wrap: wrap; justify-content: flex-start; padding: 8px 0 4px; }
  body[data-game-theme="executive"] .tank-primary-nav.is-open { display: flex; }
  body[data-game-theme="executive"] .tank-header-status { display: none; }
}

@media (max-width: 600px) {
  body[data-game-theme="executive"] :is(.login-layout, .pricing-stage, .workspace-layout, .legal-page main) { min-width: 0; }
  body[data-game-theme="executive"] :is(.pricing-card, .login-panel, .rules-steps li, .claim-card) { min-width: 0; overflow-wrap: anywhere; }
  body[data-game-theme="executive"] :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-game-theme="executive"] :is(button, a.primary, a.secondary, a.primary-link, a.action-primary, a.action-secondary, a.hero-link, .button, .legal-art-card, .scene-card) {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}
