/* v24: the studio introduction is the visual reference for the whole game.
   Loaded last so earlier versions cannot restore the light mission canvas. */
:root {
  color-scheme: dark;
  --gold: #f2c36f;
  --ink: #17131e;
  --muted: #c9c0cf;
  --line: #ffffff1f;
  --game-panel: #17131e;
  --game-inset: #211b29;
  --game-text: #f7f4f8;
  --game-success: #bce5ce;
}
body.game-theme {background:var(--game-panel);color:var(--game-text)}
body.game-theme #scene {filter:saturate(.92) contrast(.98) brightness(.78)}
body.game-theme .intro,
body.game-theme .story-heading,
body.game-theme .game-dialogue,
body.game-theme .direction-card {
  background:rgba(23,19,30,.94)!important;
  color:var(--game-text);
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:0 24px 60px #0006;
}
body.game-theme h1 em {color:var(--gold)}
body.game-theme p, body.game-theme .lead {color:#d4ccd9}
body.game-theme .eyebrow {color:var(--gold);font-size:14px;font-weight:700}
body.game-theme .eyebrow:before {background:var(--gold)}
body.game-theme button {
  background:var(--gold);color:#2b2030;border-color:transparent;
  border-radius:12px;box-shadow:none;font-weight:700;
}
body.game-theme button:hover {background:#ffd58b}
body.game-theme button.secondary,
body.game-theme button.quiet {
  background:#ffffff05;color:var(--game-text);border-color:#ffffff28;box-shadow:none;
}
body.game-theme button.secondary:hover,
body.game-theme button.quiet:hover {background:#ffffff12}
body.game-theme button.text-link {
  background:transparent;color:var(--gold);border:0;box-shadow:none;
}
body.game-theme button.text-link:hover {background:transparent;text-decoration:underline;transform:none}
body.game-theme input, body.game-theme select, body.game-theme .name-form input {
  background:#100d17;color:var(--game-text);border:1px solid #786784;
  border-radius:12px;box-shadow:none;min-height:46px;
}
body.game-theme input::placeholder {color:#b4a9bd}
body.game-theme input:disabled, body.game-theme select:disabled {opacity:.65}
body.game-theme :focus-visible {outline:3px solid #ffde9a;outline-offset:4px}
body.game-theme .quote {
  background:#ffffff04;border:1px solid var(--line);border-left:3px solid var(--gold);
  color:var(--game-text);box-shadow:none;border-radius:12px;
}
body.game-theme .tag {
  color:var(--gold);border-color:#f2c36f52;background:#f2c36f0d;
  border-radius:8px;font-size:12px!important;
}
body.game-theme .direction-card {padding:24px}
body.game-theme .direction-card.active-direction {border-color:#f2c36f88}
body.game-theme .direction-card.locked-direction {background:#17131eeb!important}
body.game-theme .direction-content h2 {color:#fff;font-size:clamp(23px,2vw,30px)}
body.game-theme .direction-content p {color:#c9c0cf}
body.game-theme .direction-card button:disabled {opacity:.6}
body.game-theme .game-dialogue .speaker-avatar {background:var(--gold);color:#2b2030}
body.game-theme .game-dialogue .speaker-name {color:var(--gold)}
body.game-theme .game-dialogue p {color:var(--game-text)}
/* Missions: one dark canvas, clear headings, separate interactive areas. */
body.game-theme.work .workspace {
  background:rgba(23,19,30,.97)!important;border:1px solid var(--line)!important;
  border-radius:24px!important;box-shadow:0 24px 60px #0006!important;
}
body.game-theme.work .work-head {background:transparent;padding:28px 32px 25px;border-bottom:0}
body.game-theme.work .work-head h2 {
  color:#fff;font-size:clamp(28px,3vw,42px)!important;line-height:1.1!important;
  letter-spacing:-.025em!important;font-weight:900!important;max-width:820px;
  margin:5px 0 14px!important;
}
body.game-theme.work .work-head p {color:#d4ccd9;max-width:760px;font-size:16px!important;line-height:1.6!important}
body.game-theme.work .work-head .tag {margin-bottom:12px;font-size:12px!important}
body.game-theme.work .step-count {
  align-self:flex-start;background:#f2c36f0d;border:1px solid #f2c36f38;
  color:var(--gold);border-radius:9px;padding:7px 12px;font-size:13px!important;
}
body.game-theme.work .progress {background:#ffffff0d;height:3px}
body.game-theme.work .progress i {background:var(--gold)}
body.game-theme.work .work-body {background:transparent;padding:28px 32px}
body.game-theme.work h3 {color:#fff;font-size:22px!important;line-height:1.25!important}
body.game-theme.work label {color:#ded6e5}
body.game-theme.work .panel,
body.game-theme.work .manual-files,
body.game-theme.work .order-paper,
body.game-theme.work .investigation,
body.game-theme.work .feature-picker,
body.game-theme.work .rule-panel,
body.game-theme.work .challenge-task,
body.game-theme.work .live-order,
body.game-theme.work .sync-preview,
body.game-theme.work .company-map {
  background:var(--game-inset)!important;color:var(--game-text);
  border:1px solid var(--line)!important;border-radius:18px;box-shadow:none;
}
body.game-theme.work .investigation h3,
body.game-theme.work .rule-panel h3,
body.game-theme.work .client-update h3 {color:#fff}
body.game-theme.work .investigation p,
body.game-theme.work .rule-panel p,
body.game-theme.work .challenge-task p,
body.game-theme.work .live-order p,
body.game-theme.work .panel p {color:#d4ccd9;line-height:1.6!important}
body.game-theme.work .visual-kicker {color:var(--gold);font-size:12px!important}
body.game-theme.work .hint {color:#c9c0cf}
body.game-theme.work .stage-back {padding:0 24px 24px;margin-top:0}
body.game-theme.work .stage-back .secondary,
body.game-theme.work button[data-action="back"].secondary {
  background:#ffffff05!important;color:var(--game-text)!important;
  border-color:#ffffff28!important;box-shadow:none!important;
}
body.game-theme.work .stage-back .secondary:hover,
body.game-theme.work button[data-action="back"].secondary:hover {background:#ffffff12!important}
body.game-theme.work button[data-action="hint-manual"] {color:var(--gold);font-style:normal;font-size:13px!important}
/* Manual order: calm dark forms, legible tables and messenger. */
body.game-theme.work .paper-head {border-color:var(--line)}
body.game-theme.work .paper-head span {color:#c9c0cf;font-size:12px!important}
body.game-theme.work .paper-head strong {color:var(--gold);font-size:18px!important}
body.game-theme.work .tabs button {
  background:#ffffff05;border-color:#ffffff28;color:#d4ccd9;
  border-radius:10px;font-size:13px!important;padding:10px 13px;
}
body.game-theme.work .tabs button.active {background:#f2c36f17;border-color:var(--gold);color:var(--gold)}
body.game-theme.work .sheet {border-radius:10px}
body.game-theme.work th {background:#342a40;color:var(--gold);font-size:13px!important}
body.game-theme.work td {background:#19141f;color:var(--game-text);font-size:14px!important}
body.game-theme.work td, body.game-theme.work th {border-color:#ffffff20}
body.game-theme.work td.missing-cell {color:#ffd39b}
body.game-theme.work .check-item {
  background:#17131e;border-color:#ffffff24;color:#c9c0cf;border-radius:10px;
}
body.game-theme.work .check-item.is-done {background:#21372e;border-color:#60836e;color:var(--game-success)}
body.game-theme.work .stock-check-field {background:#17131e!important;border-color:#786784!important}
body.game-theme.work .stock-check-field span {color:#c9c0cf;font-size:12px!important}
body.game-theme.work .stock-check-field b {color:var(--game-text)}
body.game-theme.work .stock-check-field.checked {background:#21372e!important;border-color:#60836e!important}
body.game-theme.work .stock-check-field.checked b {color:var(--game-success)}
body.game-theme.work .stock-manual, body.game-theme.work .phone-call {
  background:#17131e!important;border-color:#ffffff24!important;border-radius:14px;box-shadow:none;
}
body.game-theme.work .phone-call span {color:var(--gold);font-size:12px!important}
body.game-theme.work .phone-call b {color:#fff;font-size:18px!important}
body.game-theme.work .phone-icon {background:#f2c36f18;color:var(--gold);font-size:26px!important;box-shadow:none}
body.game-theme.work .client-messenger {background:#17131e;border-color:#ffffff24;border-radius:14px}
body.game-theme.work .messenger-header {background:#2b2334;border-color:var(--line)}
body.game-theme.work .messenger-avatar {background:var(--gold);color:#2b2030}
body.game-theme.work .messenger-header small {color:#c9c0cf}
body.game-theme.work .message-bubble.incoming {background:#33283f;border-color:#665273}
body.game-theme.work .message-bubble.outgoing {background:#253d32;border-color:#577d67}
body.game-theme.work .message-bubble p {color:var(--game-text)}
body.game-theme.work .message-author {color:var(--gold)}
body.game-theme.work .message-task p {color:#c9c0cf}
/* The company map keeps semantic green for resolved problems. */
body.game-theme.work .company-map.unified {background:#1c2c25!important;border-color:#60836e!important}
body.game-theme.work .map-caption b {color:#fff}
body.game-theme.work .map-person {
  background:#17131e!important;color:var(--game-text)!important;
  border:1px solid #ffffff28!important;border-radius:12px;box-shadow:none;
}
body.game-theme.work .map-person:hover {background:#30273a!important;transform:translateY(-2px)}
body.game-theme.work .map-person.current {outline:2px solid var(--gold)}
body.game-theme.work .map-person span {color:#c9c0cf;font-size:12px!important}
body.game-theme.work .map-person .ui-icon {color:var(--gold)}
body.game-theme.work .map-person small {background:#f2c36f14;color:#f4cc86;border-radius:6px}
body.game-theme.work .map-person.resolved {background:#21372e!important;border-color:#60836e!important}
body.game-theme.work .map-person.resolved small {background:#bce5ce12;color:var(--game-success)}
body.game-theme.work .map-person.resolved .ui-icon {color:var(--game-success)}
body.game-theme.work .map-seen {background:#21372e;color:var(--game-success)}
body.game-theme.work .map-center {background:#35283f;color:var(--game-text);box-shadow:none}
body.game-theme.work .unified .map-center {background:#2d503d}
body.game-theme.work .map-center span {color:#e2d6ec}
body.game-theme.work .map-calculation {color:#f4cc86}
body.game-theme.work .map-calculation.resolved {color:var(--game-success)}
body.game-theme.work .map-status {background:#17131e;color:#c9c0cf;border:1px solid #ffffff24;border-radius:10px}
body.game-theme.work .map-status.resolved {background:#21372e;color:var(--game-success);border-color:#60836e}
body.game-theme.work .map-dialogue {
  background:#17131e;border:1px solid var(--line);border-left:3px solid var(--gold);
  border-radius:12px;min-height:0;
}
body.game-theme.work .map-dialogue p {color:var(--game-text)}
body.game-theme.work .explore-count {background:#f2c36f0d;color:var(--gold);border:1px solid #f2c36f38}
body.game-theme.work .feature-counter {color:#c9c0cf}
body.game-theme.work .feature-tile {
  background:#17131e!important;color:var(--game-text)!important;
  border-color:#ffffff28!important;border-radius:12px;
}
body.game-theme.work .feature-tile:hover {background:#30273a!important;transform:translateY(-2px)}
body.game-theme.work .feature-tile small {color:#c9c0cf}
body.game-theme.work .feature-tile .ui-icon,
body.game-theme.work .feature-check {color:var(--gold)}
body.game-theme.work .feature-tile.selected {background:#21372e!important;border-color:#60836e!important}
body.game-theme.work .feature-tile.selected .ui-icon,
body.game-theme.work .feature-tile.selected .feature-check {color:var(--game-success)}
/* Constructor and live preview use the same panel language. */
body.game-theme.work .module-badges span {background:#21372e;border:1px solid #60836e;color:var(--game-success);border-radius:10px}
body.game-theme.work .visual-formula>span {background:#17131e;color:var(--game-text);border:1px solid #ffffff24;border-radius:12px}
body.game-theme.work .visual-formula small {color:#c9c0cf}
body.game-theme.work .visual-formula select {background:#f2c36f;color:#2b2030;border-radius:12px;font-size:24px!important}
body.game-theme.work .order-chips span {background:#f2c36f0d;color:#f4cc86;border-color:#f2c36f38;border-radius:7px}
body.game-theme.work .live-order .live-price {color:var(--gold);font-size:34px!important;line-height:1.15!important;font-weight:900}
body.game-theme.work .stock-visual {background:#21372e;border-color:#60836e;color:var(--game-success);border-radius:12px}
body.game-theme.work .stock-visual .stock-track {background:#15261d}
body.game-theme.work .stock-track i {background:#89bd9e}
body.game-theme.work .stock-visual.shortage {background:#452a27;border-color:#bd826b;color:#ffd4bd}
body.game-theme.work .shortage .stock-track {background:#291714}
body.game-theme.work .shortage .stock-track i {background:#dba084}
body.game-theme.work .client-update {border-color:var(--gold)}
body.game-theme.work #challenge-form label {color:#ded6e5}
body.game-theme.work .qty-editor .old-qty {color:#b4a9bd}
body.game-theme.work .qty-editor input {background:#100d17;color:#fff;border-color:#786784;font-size:22px!important}
body.game-theme.work .sync-title {background:#342a40;border-bottom:1px solid var(--line);color:#fff}
body.game-theme.work .status {background:#f2c36f18;color:var(--gold);font-size:12px!important;border:1px solid #f2c36f38}
body.game-theme.work .status.done {background:#21372e;color:var(--game-success);border-color:#60836e}
body.game-theme.work .sync-metrics>div {background:#17131e;color:var(--gold);border:1px solid #ffffff24;border-radius:12px}
body.game-theme.work .sync-metrics small {color:#c9c0cf}
body.game-theme.work .sync-metrics b {color:var(--gold);font-size:22px!important;line-height:1.25!important}
body.game-theme.work .production-sync {background:#21372e;border-color:#60836e;color:var(--game-success);border-radius:12px}
body.game-theme.work .production-sync span {color:#c2d7ca}
body.game-theme.work .shared-proof {color:#c9c0cf}
body.game-theme.work .before-after {color:var(--game-text)}
body.game-theme.work .comparison-head {color:#c9c0cf}
body.game-theme.work .comparison-head b {color:var(--game-success)}
body.game-theme.work .comparison-row {border-color:var(--line)}
body.game-theme.work .comparison-row .ui-icon {color:var(--gold)}
body.game-theme.work .comparison-row>span {color:#c9c0cf}
body.game-theme.work .comparison-row b {color:var(--game-success)}
body.game-theme.work .feedback {background:#452735;border-color:#b79a66;color:#ffefcf;border-radius:12px}
body.game-theme.work .feedback.good {background:#21372e;border-color:#60836e;color:var(--game-success)}
/* Dean dialogue and result retain the same calm rounded panels. */
body.game-theme.work .workspace.dean-chat-finale.dean-chat-split {
  background:rgba(23,19,30,.97)!important;border-color:#f2c36f55!important;border-radius:24px!important;
}
body.game-theme.work .dean-chat-split:before {background:var(--gold);height:2px}
body.game-theme.work .gta-dialogue-label {color:var(--gold);font-size:28px!important;text-transform:none;letter-spacing:0!important;text-shadow:none}
body.game-theme.work .dean-chat-split .dean-dialogue-copy {background:#211b29!important;border-radius:14px!important;border-left-color:var(--gold)!important}
body.game-theme.work .dean-chat-split .dean-dialogue-copy .speaker-name {color:var(--gold)!important}
body.game-theme.work .dean-chat-split .dialogue-choices button {border-radius:12px!important;background:var(--gold)!important;color:#2b2030!important;border-color:transparent!important}
body.game-theme.work .dean-chat-split .dialogue-choices button.secondary {background:#ffffff05!important;color:var(--game-text)!important;border-color:#ffffff28!important}
body.game-theme.work .dean-chat-split .dialogue-choices button:hover {background:#ffd58b!important}
body.game-theme.work .dean-chat-split .dialogue-choices button.secondary:hover {background:#ffffff12!important}
body.game-theme.work .dean-chat-split .stage-back {padding-bottom:0}
body.game-theme .program-qr {background:#211b29;border-color:#ffffff24;border-radius:18px;box-shadow:none}
body.game-theme .program-qr h3 {color:#fff}
body.game-theme .program-qr span {color:var(--gold)}
body.game-theme .program-qr a.program-link {background:var(--gold);color:#2b2030!important;border-radius:12px}
body.game-theme .complete-icon {background:#f2c36f18;color:var(--gold);border-color:#f2c36f50}
body.game-theme .skill-proof span {background:#f2c36f0d;color:var(--gold);border-color:#f2c36f38;border-radius:10px}
body.game-theme dialog {background:#211b29;color:var(--game-text);border:1px solid #786784;border-radius:24px}
body.game-theme dialog p {color:#d4ccd9}
/* A centered ending with a clear invitation to visit the faculty. */
body.game-theme.result-page main {justify-content:center;padding-top:32px}
body.game-theme.result-page .result {
  width:100%;max-width:840px;margin-inline:auto;text-align:center;
  padding:clamp(22px,4vw,40px);
}
body.game-theme.result-page .complete-icon {margin:0 auto 22px}
body.game-theme.result-page .result>p {max-width:680px;margin-inline:auto}
body.game-theme.result-page .actions {justify-content:center}
body.game-theme.result-page .result-excursion {
  display:inline-flex;align-items:center;justify-content:center;
  min-height:49px;padding:15px 23px;background:var(--gold);color:#2b2030;
  border:1px solid transparent;border-radius:12px;text-decoration:none;
  font-weight:700;line-height:1.2;transition:transform .15s,background .15s;
}
body.game-theme.result-page .result-excursion:hover {background:#ffd58b;transform:translateY(-2px)}
body.game-theme.result-page .result-cta button:disabled {opacity:.45;cursor:default;transform:none;background:#ffffff05}
body.game-theme.result-page .program-qr {text-align:center}
body.game-theme.result-page .program-qr>div {flex:1;min-width:0}
body.game-theme.result-page .program-qr>a {flex-shrink:0;display:grid;place-items:center}
@media(max-width:760px) {
  body.game-theme.result-page main {padding:24px 6vw 30px}
  body.game-theme.result-page .program-qr {align-items:center}
  body.game-theme.result-page .result-cta {flex-direction:column}
  body.game-theme.result-page .result-cta>* {width:100%}
  body.game-theme .intro, body.game-theme .story-heading,
  body.game-theme .game-dialogue, body.game-theme .direction-card,
  body.game-theme.work .workspace,
  body.game-theme.work .workspace.dean-chat-finale.dean-chat-split {border-radius:20px!important}
  body.game-theme.work .work-head {padding:20px;gap:12px;flex-wrap:wrap}
  body.game-theme.work .work-head>div {flex:1 1 100%;min-width:0}
  body.game-theme.work .work-head h2 {font-size:28px!important}
  body.game-theme.work .work-head p {font-size:15px!important}
  body.game-theme.work .step-count {padding:4px 10px}
  body.game-theme.work .work-body {padding:18px}
  body.game-theme.work .stage-back {padding:0 18px 20px}
  body.game-theme.work .manual-files, body.game-theme.work .order-paper {padding:18px}
  body.game-theme.work .gta-dialogue-label {font-size:24px!important}
  body.game-theme.work .visual-formula {gap:6px}
  body.game-theme.work .visual-formula>span b {font-size:13px!important}
  body.game-theme.work .visual-formula small {font-size:11px!important}
  body.game-theme.work .sync-metrics b {font-size:20px!important}
}
