/* GTA-inspired faculty game. Last layer, common to every screen. */
@font-face {
  font-family:'FB Display';src:url('fonts/fb-display-bold.woff') format('woff');
  font-weight:700 900;font-style:normal;font-display:swap;
}
:root {--gta-black:#0c0b10;--gta-panel:#17131e;--gta-border:#a89bac;--gta-pink:#f2c36f;--gta-green:#bce5ce;--gta-gold:#f2c36f;--gta-title:'FB Display',Impact,'Arial Black',sans-serif}
body.game-theme {background:var(--gta-black);font-family:Arial,Helvetica,sans-serif;color:#f7f4f8}
body.game-theme #scene {filter:saturate(1.12) contrast(1.05) brightness(.94)}
body.game-theme .shade {background:linear-gradient(90deg,#0c0b10d9,transparent 75%),linear-gradient(0deg,#0c0b10d9,transparent 65%)}
body.game-theme header {height:108px;align-items:center;position:relative;z-index:2}
body.game-theme .brand {color:#fff;gap:14px;text-shadow:2px 2px 0 #000}
body.game-theme .brand-icon {
  font-family:var(--gta-title);font-size:38px;line-height:1;background:#0c0b10;
  color:#fff;border:2px solid #fff;border-radius:0;box-shadow:4px 4px 0 #000;
  padding:10px 12px;transform:rotate(-3deg);-webkit-text-stroke:1px #000;paint-order:stroke fill;
}
body.game-theme .brand>span:last-child {font-family:var(--gta-title);font-size:23px;line-height:1.1;text-transform:uppercase}
body.game-theme .brand small {font-family:Arial,sans-serif;font-size:11px;letter-spacing:.025em;color:#fff;margin-top:5px;text-transform:none}
body.game-theme .hud {align-items:flex-end;gap:10px;flex-direction:column}
body.game-theme .game-hud {text-align:right;max-width:300px}
body.game-theme .hud-location {display:block;font-family:var(--gta-title);font-size:21px;color:var(--gta-gold);text-transform:uppercase;text-shadow:2px 2px 0 #000,-1px -1px 0 #000;line-height:1.2;overflow-wrap:anywhere}
body.game-theme .hud-progress {display:flex;justify-content:flex-end;gap:5px;margin-top:8px}
body.game-theme .hud-progress i {width:30px;height:9px;display:block;background:#211b29;border:1px solid #c9c0cf;box-shadow:2px 2px 0 #000}
body.game-theme .hud-progress .is-done {background:var(--gta-green);border-color:#f7f4f8}
body.game-theme h1,
body.game-theme h2,
body.game-theme.work .work-head h2,
body.game-theme.work .gta-dialogue-label {
  font-family:var(--gta-title);font-weight:900!important;text-transform:uppercase;
  color:#fff;letter-spacing:-.035em!important;line-height:1.07!important;
  -webkit-text-stroke:2px #08070c;paint-order:stroke fill;
  text-shadow:3px 3px 0 #08070c,-1px -1px 0 #08070c,0 5px 0 #08070c;
  overflow-wrap:anywhere;
}
body.game-theme h1 {font-size:clamp(44px,5.5vw,82px)}
body.game-theme h1 em {color:var(--gta-gold);font-style:normal}
body.game-theme h2 {font-size:clamp(28px,3vw,42px)}
body.game-theme h3 {font-family:var(--gta-title);font-size:23px!important;line-height:1.2!important;font-weight:900!important;color:#fff!important}
body.game-theme p,body.game-theme .lead {font-size:16px;line-height:1.65;color:#e8e1ec}
body.game-theme .eyebrow {display:inline-block;font-family:var(--gta-title);font-size:17px;letter-spacing:.035em;text-transform:uppercase;background:#0c0b10;color:var(--gta-gold);border-left:4px solid var(--gta-gold);padding:7px 11px;margin-bottom:22px}
body.game-theme .eyebrow:before {display:none}
body.game-theme .intro,
body.game-theme .story-heading,
body.game-theme .game-dialogue,
body.game-theme .direction-card,
body.game-theme.work .workspace {
  background:#17131eed!important;border:2px solid #a89bac!important;
  border-radius:0!important;box-shadow:6px 6px 0 #08070ccc!important;
  backdrop-filter:none;-webkit-backdrop-filter:none;
}
body.game-theme .intro,body.game-theme .story-heading {border-top:4px solid var(--gta-gold)!important;padding:30px}
body.game-theme .intro {max-width:620px}
body.game-theme[data-stage="1"] .intro h1 {font-size:clamp(40px,5vw,72px)}
body.game-theme .story-heading h1 {font-size:clamp(40px,4.2vw,56px)}
body.game-theme .name-form {max-width:100%}
body.game-theme .quote {font-size:19px;background:#0c0b10cc;border:0;border-left:4px solid var(--gta-gold);border-radius:0;padding:18px 20px;color:#fff}
body.game-theme button,
body.game-theme.result-page .result-excursion,
body.game-theme.work .dean-chat-split .dialogue-choices button {
  font-family:var(--gta-title);font-size:17px!important;font-weight:900;text-transform:uppercase;
  letter-spacing:.02em;line-height:1.3;min-height:48px;border-radius:0!important;
  background:#0c0b10!important;color:#fff!important;border:2px solid #f2c36f!important;
  box-shadow:3px 3px 0 #000!important;padding:13px 20px;
  text-shadow:1px 1px 0 #000;transition:background .15s,transform .15s,border-color .15s;
}
body.game-theme button:hover,
body.game-theme.result-page .result-excursion:hover,
body.game-theme.work .dean-chat-split .dialogue-choices button:hover {
  background:#382844!important;border-color:#f2c36f!important;color:#fff!important;
  transform:translateY(-2px);
}
body.game-theme button.secondary,
body.game-theme button.quiet,
body.game-theme.work .stage-back button.secondary,
body.game-theme.work .dean-chat-split .dialogue-choices button.secondary {
  background:#17131e!important;color:#e8e1ec!important;border-color:#a89bac!important;
}
body.game-theme button:disabled,
body.game-theme button:disabled:hover,
body.game-theme.result-page .result-cta button:disabled {
  background:#211b29!important;color:#c9c0cf!important;border-color:#74647b!important;
  opacity:.55;cursor:default;transform:none;box-shadow:none!important;
}
body.game-theme .quiet {min-height:32px;font-family:Arial,sans-serif;font-size:11px!important;padding:6px 10px;text-transform:none;box-shadow:none!important}
body.game-theme button.text-link,
body.game-theme button.text-link:hover {
  background:transparent!important;border:0!important;box-shadow:none!important;color:var(--gta-gold)!important;
  min-height:40px;font-family:Arial,sans-serif;font-size:14px!important;text-transform:none;padding:8px 0;
}
body.game-theme input,body.game-theme select,body.game-theme .name-form input {
  border:2px solid #a89bac!important;border-radius:0!important;background:#0c0b10!important;
  color:#fff!important;box-shadow:3px 3px 0 #08070c;min-height:46px;
}
body.game-theme input::placeholder {color:#bfb3c8}
body.game-theme :focus-visible {outline:3px solid #f2c36f;outline-offset:4px}
body.game-theme .tag {background:#0c0b10;border:1px solid #f2c36f;border-radius:0;font-size:13px!important;text-transform:uppercase;padding:6px 9px;letter-spacing:.025em}
/* The corridor is a row of mission doors, with physical windows. */
body.game-theme .hall-directions-layout {grid-template-columns:minmax(260px,.72fr) minmax(0,1.28fr);gap:28px}
body.game-theme .hall-intro-block h1 {font-size:clamp(39px,4vw,62px)}
body.game-theme .direction-card {padding:22px;display:block;border-color:#a89bac!important;overflow:visible}
body.game-theme .direction-content {align-items:stretch}
body.game-theme .direction-number {position:absolute;top:19px;right:17px;font-family:var(--gta-title);font-size:24px;color:#fff;text-shadow:2px 2px 0 #000;padding:0}
body.game-theme .direction-content .tag {align-self:flex-start;margin:0 0 16px}
body.game-theme .direction-content h2 {font-size:26px;hyphens:auto;margin:18px 0 10px}
body.game-theme .direction-content p {font-size:14px;color:#d4ccd9}
body.game-theme .direction-door {height:138px;border:4px solid #08070c;outline:1px solid #a89bac;position:relative;margin:0 20px;background:linear-gradient(90deg,#36273e,#54405a 50%,#36273e);box-shadow:inset 0 0 0 3px #74647b,4px 4px 0 #08070c}
body.game-theme .door-window {position:absolute;left:33%;right:33%;top:17px;bottom:25px;border:3px solid #08070c;background:repeating-linear-gradient(90deg,#d2c7b762 0 3px,#f6ecd333 3px 5px);box-shadow:inset 2px 2px 0 #0005}
body.game-theme .active-direction .direction-door {outline:2px solid #f2c36f;box-shadow:inset 0 0 0 3px #74647b,4px 4px 0 #08070c,0 0 18px #f2c36f30}
body.game-theme .active-direction {border-color:#f2c36f!important}
body.game-theme .active-direction:hover {border-color:#f2c36f!important;transform:translateY(-3px)}
body.game-theme .locked-direction .direction-door {opacity:.65}
body.game-theme .mission-stamp {font-family:var(--gta-title);background:#15261c;color:#bce5ce;border:2px solid #bce5ce;border-radius:0;box-shadow:2px 2px 0 #000}
body.game-theme .direction-card .small-stamp {top:52px;right:12px}
/* Mission title, progress and black inset panels. */
body.game-theme.work .workspace {max-width:1160px;border-top:4px solid #f2c36f!important}
body.game-theme.work .work-head {padding:28px 32px 22px;background:linear-gradient(115deg,#17131e,#2a2030)}
body.game-theme.work .work-head h2 {font-size:clamp(29px,3.5vw,46px)!important;margin:8px 0 14px!important;max-width:880px}
body.game-theme.work .work-head p {font-size:16px!important;color:#e8e1ec;line-height:1.6!important}
body.game-theme.work .step-count {font-family:var(--gta-title);font-size:26px!important;color:#f2c36f;background:#0c0b10;border:2px solid #a89bac;padding:8px 14px;align-self:flex-start;box-shadow:3px 3px 0 #000}
body.game-theme.work .progress {height:9px;background:#08070c;border-top:2px solid #08070c;border-bottom:2px solid #08070c}
body.game-theme.work .progress i {background:#bce5ce;box-shadow:0 0 10px #bce5ce35;transition:width .25s}
body.game-theme.work .work-body {background:transparent;padding:28px 32px}
body.game-theme.work .panel,
body.game-theme.work .order-paper,
body.game-theme.work .manual-files,
body.game-theme.work .company-map,
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 {
  background:#211b29!important;color:#f7f4f8!important;border:2px solid #74647b!important;
  border-radius:0!important;box-shadow:4px 4px 0 #08070c!important;
}
body.game-theme.work .panel p,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 {color:#e8e1ec;font-size:15px!important;line-height:1.6!important}
body.game-theme.work .visual-kicker {font-family:var(--gta-title);color:#f2c36f;font-size:16px!important;letter-spacing:.03em!important;text-transform:uppercase}
body.game-theme.work .paper-head {border-bottom:2px solid #74647b}
body.game-theme.work .paper-head strong {font-family:var(--gta-title);font-size:22px!important;color:#f2c36f}
body.game-theme.work .paper-head span {font-size:12px!important;color:#c9c0cf}
body.game-theme.work .tabs button {border-radius:0!important;font-size:14px!important;min-height:42px;padding:9px 11px}
body.game-theme.work .tabs button.active {background:#382844!important;border-color:#f2c36f!important}
body.game-theme.work .check-item {background:#17131e;border:1px solid #74647b;border-radius:0;padding:10px;color:#c9c0cf}
body.game-theme.work .check-item.is-done {background:#21372e;color:#bce5ce;border-color:#60836e}
body.game-theme.work .stock-check-field,body.game-theme.work .stock-manual,
body.game-theme.work .phone-call,body.game-theme.work .stock-result,
body.game-theme.work .map-status,body.game-theme.work .map-dialogue,
body.game-theme.work .module-badges span,body.game-theme.work .visual-formula>span,
body.game-theme.work .order-chips span,body.game-theme.work .sync-metrics>div,
body.game-theme.work .production-sync,body.game-theme.work .explore-count {
  border-radius:0!important;box-shadow:none;background:#17131e!important;border:1px solid #74647b!important;
}
body.game-theme.work .stock-check-field.checked,body.game-theme.work .stock-result,
body.game-theme.work .module-badges span,body.game-theme.work .production-sync {background:#21372e!important;border-color:#60836e!important;color:#bce5ce}
body.game-theme.work .stock-result span,body.game-theme.work .stock-result strong,
body.game-theme.work .stock-result small {color:#fff!important}
body.game-theme.work .map-person,body.game-theme.work .feature-tile {
  border:2px solid #74647b!important;border-radius:0!important;background:#17131e!important;color:#fff!important;
  box-shadow:3px 3px 0 #08070c!important;text-transform:none;letter-spacing:0;font-family:Arial,sans-serif;
}
body.game-theme.work .map-person:hover,body.game-theme.work .feature-tile:hover {background:#30273a!important}
body.game-theme.work .map-person.current {outline:3px solid #f2c36f}
body.game-theme.work .feature-tile.selected,body.game-theme.work .map-person.resolved {background:#21372e!important;border-color:#87b79a!important}
body.game-theme.work .map-person span,body.game-theme.work .feature-tile small {color:#d4ccd9}
body.game-theme.work .map-person small {border-radius:0;background:#f2c36f14;color:#f4cc86}
body.game-theme.work .map-person.resolved small {color:#bce5ce;background:#bce5ce12}
body.game-theme.work .map-center {background:#392c48;border:2px solid #08070c;outline:1px solid #a89bac;border-radius:0;box-shadow:3px 3px 0 #08070c}
body.game-theme.work .unified .map-center {background:#2d503d;outline-color:#87b79a}
body.game-theme.work .company-map.unified {background:#1c2c25!important;border-color:#87b79a!important}
body.game-theme.work .map-dialogue {border-left:4px solid #f2c36f!important}
body.game-theme.work .map-calculation {color:#f4cc86}
body.game-theme.work .map-status {color:#d4ccd9}
body.game-theme.work .map-status.resolved {background:#21372e!important;border-color:#87b79a!important;color:#bce5ce}
body.game-theme.work .feature-check,body.game-theme.work .ui-icon {color:#f2c36f;filter:drop-shadow(1px 1px 0 #000)}
body.game-theme.work .stock-visual {border-radius:0;background:#21372e;border:1px solid #60836e;color:#bce5ce}
body.game-theme.work .stock-visual .stock-track {height:12px;border:2px solid #08070c;border-radius:0;background:#15261d}
body.game-theme.work .stock-track i {background:#bce5ce;border-radius:0}
body.game-theme.work .stock-visual.shortage {background:#452a27;border-color:#bd826b;color:#ffd4bd}
body.game-theme.work .shortage .stock-track i {background:#dba084}
body.game-theme.work .sync-title {background:#0c0b10;color:#fff;border-bottom:2px solid #74647b}
body.game-theme.work .sync-metrics b,body.game-theme.work .live-price {font-family:var(--gta-title);color:#f2c36f;font-size:30px!important;line-height:1.1!important}
body.game-theme.work .status {border-radius:0;background:#392c48;color:#f2c36f;border:1px solid #a89bac}
body.game-theme.work .status.done {background:#21372e;color:#bce5ce;border-color:#87b79a}
body.game-theme.work .feedback {border-radius:0;background:#452735;color:#ffefcf;border:2px solid #b79a66}
body.game-theme.work .feedback.good {background:#21372e;color:#bce5ce;border-color:#87b79a}
/* Messages stay recognizable as a real conversation. */
body.game-theme.work .client-messenger {background:#0c0b10;border:2px solid #a89bac;border-radius:0}
body.game-theme.work .messenger-header {background:#2a2030;border-bottom:2px solid #74647b}
body.game-theme.work .messenger-avatar {background:#f2c36f;color:#0c0b10;border:2px solid #08070c;border-radius:0;font-family:var(--gta-title);box-shadow:2px 2px 0 #08070c}
body.game-theme.work .message-bubble {border-radius:2px!important;box-shadow:2px 2px 0 #08070c}
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-author {color:#f2c36f}
body.game-theme.work .message-bubble p {color:#fff;font-size:15px!important}
/* Character dialogue: outlined title, cutout portrait and answer plates. */
body.game-theme.work .workspace.dean-chat-finale.dean-chat-split {background:#17131ef5!important;border:2px solid #a89bac!important;border-top:4px solid #f2c36f!important;border-radius:0!important;box-shadow:6px 6px 0 #08070c!important}
body.game-theme.work .dean-chat-split:before {display:none}
body.game-theme.work .gta-dialogue-label {font-size:clamp(28px,3vw,43px)!important;color:#f2c36f!important;margin-bottom:4px}
body.game-theme.work .dean-chat-split .dean-dialogue-copy {background:#0c0b10!important;border:2px solid #74647b!important;border-left:4px solid #f2c36f!important;border-radius:0!important}
body.game-theme.work .dean-chat-split .dean-dialogue-copy .speaker-name {font-family:var(--gta-title);font-size:17px!important;text-transform:none;color:#f2c36f!important;letter-spacing:0}
body.game-theme.work .dean-chat-split .dean-dialogue-copy p {color:#f8f2fc!important;font-size:16px!important}
body.game-theme.work .dean-cutout-image {filter:drop-shadow(4px 3px 0 #08070c)!important}
body.game-theme .game-dialogue {border-top:4px solid #f2c36f!important}
body.game-theme .game-dialogue .speaker-avatar {border-radius:0;border:2px solid #08070c;box-shadow:3px 3px 0 #08070c}
/* Keep the ending centered and preserve the two requested actions. */
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 .result h1 {font-size:clamp(40px,5vw,64px)}
body.game-theme.result-page .complete-icon {width:64px;height:64px;border-radius:0;background:#21372e;color:#bce5ce;border:2px solid #bce5ce;box-shadow:4px 4px 0 #08070c;margin:0 auto 24px;font-size:38px;transform:rotate(-4deg)}
body.game-theme.result-page .program-qr {border:2px solid #74647b;border-radius:0;background:#211b29;box-shadow:4px 4px 0 #08070c;text-align:center}
body.game-theme.result-page .program-qr img {border-radius:0}
body.game-theme.result-page .program-qr>a {border:2px solid #08070c;border-radius:0;background:#fff}
body.game-theme.result-page .program-qr span {font-family:var(--gta-title);font-size:16px;text-transform:uppercase}
body.game-theme.result-page .actions {justify-content:center}
body.game-theme footer {color:#e8e1ec;letter-spacing:0;font-size:11px;text-shadow:1px 1px 0 #000}
body.game-theme dialog {background:#17131e;border:2px solid #a89bac;border-top:4px solid #f2c36f;border-radius:0;box-shadow:6px 6px 0 #000}
/* Override the old universal Arial rule, including nested heading accents. */
body.game-theme h1,body.game-theme h1 em,body.game-theme h2,body.game-theme h3,
body.game-theme .brand-icon,body.game-theme .brand>span:last-child,
body.game-theme .hud-location,body.game-theme .eyebrow,body.game-theme .direction-number,
body.game-theme .mission-stamp,body.game-theme .visual-kicker,
body.game-theme .gta-dialogue-label,body.game-theme .step-count,
body.game-theme .paper-head strong,body.game-theme .sync-metrics b,
body.game-theme .live-price,body.game-theme .result-excursion,
body.game-theme .program-qr span,
body.game-theme button:not(.feature-tile):not(.map-person):not(.quiet):not(.text-link),
body.game-theme.work .dean-chat-split .dean-dialogue-copy .speaker-name {
  font-family:var(--gta-title)!important;
}
@media(min-width:1500px) {body.game-theme .intro{max-width:660px}}
@media(max-width:980px) {
  body.game-theme .hall-directions-layout {grid-template-columns:1fr}
  body.game-theme .hall-intro-block {max-width:none}
}
@media(max-width:760px) {
  body.game-theme header {height:auto;min-height:98px;padding:17px 6vw;gap:12px}
  body.game-theme .brand-icon {font-size:28px;padding:9px}
  body.game-theme .brand {gap:9px}
  body.game-theme .brand>span:last-child {font-size:18px}
  body.game-theme .brand small {font-size:10px;max-width:130px}
  body.game-theme .game-hud {max-width:122px}
  body.game-theme .hud-location {font-size:15px}
  body.game-theme .hud-progress i {width:20px;height:8px}
  body.game-theme .hud {gap:8px}
  body.game-theme .quiet {font-size:10px!important;padding:5px 8px}
  body.game-theme #scene {background-size:auto 65svh;background-position:64% top}
  body.game-theme .shade {background:linear-gradient(0deg,#0c0b10 5%,#0c0b10ee 40%,#0c0b1010 95%)}
  body.game-theme.work #scene {background-size:cover}
  body.game-theme.work .shade {background:#0c0b10a6}
  body.game-theme .intro,body.game-theme .story-heading {padding:23px;border-radius:0!important}
  body.game-theme h1 {font-size:clamp(39px,9vw,57px);-webkit-text-stroke:1.5px #08070c;line-height:1.1!important}
  body.game-theme .eyebrow {font-size:15px;margin-bottom:18px}
  body.game-theme .quote {font-size:17px;padding:15px}
  body.game-theme button {font-size:16px!important;padding:12px 16px}
  body.game-theme .direction-card {padding:20px}
  body.game-theme .direction-door {height:120px}
  body.game-theme .direction-content h2 {font-size:28px}
  body.game-theme.work .work-head {padding:21px 20px;gap:14px}
  body.game-theme.work .work-head>div {flex:1 1 100%;min-width:0}
  body.game-theme.work .work-head h2 {font-size:31px!important}
  body.game-theme.work .work-head p {font-size:15px!important}
  body.game-theme.work .step-count {font-size:20px!important;padding:6px 11px}
  body.game-theme.work .work-body {padding:19px}
  body.game-theme.work .workspace {border-radius:0!important}
  body.game-theme.work .gta-dialogue-label {font-size:30px!important}
  body.game-theme.work .workspace.dean-chat-finale.dean-chat-split {border-radius:0!important}
  body.game-theme.result-page main {padding:24px 6vw 30px}
  body.game-theme.result-page .result {padding:23px}
  body.game-theme.result-page .result h1 {font-size:clamp(36px,9vw,48px)}
  body.game-theme.result-page .result-cta {flex-direction:column}
  body.game-theme.result-page .result-cta>* {width:100%}
  body.game-theme.result-page .program-qr {align-items:center}
}
@media(max-width:390px) {
  body.game-theme .brand>span:last-child {font-size:16px}
  body.game-theme .game-hud {max-width:115px}
  body.game-theme .hud-location {font-size:13px}
  body.game-theme .brand-icon {font-size:25px;padding:8px}
}
@media(prefers-reduced-motion:reduce) {
  body.game-theme *,body.game-theme *:before,body.game-theme *:after {animation:none!important;transition:none!important}
  body.game-theme button:hover,body.game-theme .result-excursion:hover {transform:none}
}
