/* v41: a visual campus, mission road and speech in the existing GTA palette. */
:root {--gta-border:#b9ad94;--gta-pink:#f2c36f}
body.game-theme .dean-chat-split:before {content:none!important;display:none!important}
body.game-theme .workspace,body.game-theme .campus-nav {border-color:#b9ad94!important}
body.game-theme #typed-dialogue,body.game-theme .dean-typed {position:relative}
body.game-theme .dialogue-measure {display:block;visibility:hidden;pointer-events:none}
body.game-theme .dialogue-visible {position:absolute;inset:0;display:block}
body.game-theme .dialogue-accessible {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.speech-pop {animation:speech-arrive .22s ease-out both}
@keyframes speech-arrive {from{opacity:0;translate:0 10px}to{opacity:1;translate:0 0}}
body.game-theme .hall-game {max-width:1100px}
.hall-guide {display:flex;align-items:center;justify-content:center;gap:24px;margin:0 auto 22px;max-width:900px;min-height:152px}
.hall-guide>img {width:95px;height:152px;object-fit:contain;object-position:top;filter:drop-shadow(4px 4px #000);flex-shrink:0}
.hall-speech {position:relative;background:#15121af5;border:2px solid #b9ad94;padding:18px 22px;box-shadow:5px 5px #08070c;flex:1}
.hall-speech:after,.campus-talk:after {content:'';position:absolute;left:-12px;top:45px;width:20px;height:20px;background:#15121a;transform:rotate(45deg);border-left:2px solid #b9ad94;border-bottom:2px solid #b9ad94}
body.game-theme .hall-speech p {font-size:17px;line-height:1.55;margin:0;color:#fff}
.hall-speech .campus-speaker {font-size:14px;margin-bottom:9px}
body.game-theme .campus-talk {border:2px solid #b9ad94;padding:24px 27px}
.talk-pages {display:flex;justify-content:center;gap:7px;margin-top:15px}
.talk-pages i {display:block;width:7px;height:7px;border:1px solid #b9ad94;border-radius:50%}
.talk-pages i.active {background:#f2c36f;border-color:#f2c36f}
.place-canteen .campus-backdrop img {object-position:45% center}
.place-canteen .npc-hotspot {left:43%}
body.game-theme .sequential-conversation .team-bubble p {font-size:16px;line-height:1.6}

/* Four checkpoints sit on a continuous route rather than a text card grid. */
body.game-theme.work .route-workspace {max-width:1080px}
body.game-theme.work .route-workspace>.work-head {padding-bottom:20px}
body.game-theme.work .route-workspace>.work-body {padding:0 24px 24px}
.level-road {position:relative;aspect-ratio:1000/650;min-height:440px;isolation:isolate;background:#1b211e;overflow:hidden;border:2px solid #444a40}
.level-road-art {position:absolute;inset:0;width:100%;height:100%;z-index:-1}
.road-blocks {fill:#29362a;stroke:#0e1711;stroke-width:4}
.road-outline {stroke:#c8a25a;stroke-width:62;fill:none;stroke-linecap:round}
.road-asphalt {stroke:#49493f;stroke-width:50;fill:none;stroke-linecap:round}
.road-dashes {stroke:#f1e5bb;stroke-width:3;fill:none;stroke-dasharray:17 14}
.road-start {position:absolute;top:4%;left:12%;font-family:var(--gta-title);font-size:12px;color:#f2c36f;transform:rotate(28deg)}
body.game-theme.work button.road-node {position:absolute;left:var(--node-x);top:var(--node-y);translate:-50% -36px;width:180px;padding:0;border:0!important;background:transparent!important;box-shadow:none!important;display:flex;flex-direction:column;align-items:center;gap:8px;text-transform:none;letter-spacing:0;color:#fff!important;transform:none!important;opacity:1;transition:scale .15s}
body.game-theme.work button.road-node:hover {scale:1.05}
.checkpoint {position:relative;width:76px;height:76px;display:grid;place-items:center;background:#f2c36f;color:#0c0b10;border:4px solid #0c0b10;border-radius:50%;box-shadow:0 0 0 3px #f2c36f,5px 6px #0009}
.checkpoint>b {font-family:var(--gta-title);font-size:39px;line-height:1}
.checkpoint>span {position:absolute;right:-9px;bottom:-6px;display:grid;place-items:center;width:32px;height:32px;background:#211f1a;border:2px solid #f2c36f;color:#f2c36f;transform:rotate(-6deg)}
.checkpoint .ui-icon {width:21px;height:21px}
.checkpoint>b>.ui-icon {width:28px;height:28px}
.road-node-copy {display:block;padding:9px 12px;background:#101610f5;border:2px solid #b5ac91;box-shadow:3px 3px #0008;max-width:100%}
.road-node-4 .road-node-copy {position:absolute;bottom:calc(100% + 8px)}
.road-node-copy>b {display:block;font-family:var(--gta-title);font-size:20px;line-height:1.2}
.road-node-copy small {display:block;font-family:Arial,sans-serif;font-size:11px;line-height:1.4;color:#ddd1b4;margin-top:4px}
.road-difficulty {font-style:normal;font-family:Arial,sans-serif;font-weight:bold;font-size:11px;display:block;color:#f2c36f;letter-spacing:.12em;margin-top:7px}
.road-node.is-done .checkpoint {background:#bce5ce;box-shadow:0 0 0 3px #bce5ce,5px 6px #0009}
.road-node.is-done .road-node-copy {border-color:#bce5ce}
.road-node.is-done .road-difficulty {color:#bce5ce;letter-spacing:0}
body.game-theme.work button.road-node.is-locked {cursor:not-allowed;scale:1}
.road-node.is-locked .checkpoint {background:#8b8a77;box-shadow:0 0 0 3px #8b8a77,5px 6px #0009}
.road-node.is-locked .checkpoint>span {border-color:#8b8a77;color:#8b8a77}
.road-node.is-locked .road-node-copy {border-color:#8b8a77;color:#b8b59f}
.road-score {position:absolute;top:6%;right:6%;display:grid;gap:5px;text-align:center;padding:12px 16px;background:#101610de;border:1px solid #746b56}
.road-score b {font-family:var(--gta-title);font-size:28px;color:#bce5ce}
.road-score span {font-size:11px;color:#ddd1b4}

@media(max-width:700px) {
 .hall-guide {gap:12px;margin-bottom:16px;align-items:center;min-height:0}
 .hall-guide>img {width:62px;height:140px}
 .hall-speech {padding:15px 14px}
 .hall-speech .campus-speaker {font-size:11px;line-height:1.4}
 body.game-theme .hall-speech p {font-size:14px;line-height:1.5}
 .hall-speech:after {top:44px}
 body.game-theme .campus-talk {padding:19px}
 .campus-talk:after {left:auto;right:36px;top:-12px;border-left:2px solid #b9ad94;border-bottom:0;border-top:2px solid #b9ad94}
 .place-canteen .campus-talk {margin-top:420px}
 .place-canteen .npc-hotspot {left:60%}
 .place-canteen .campus-backdrop img {object-position:45% top}
 body.game-theme.work .route-workspace>.work-body {padding:0 12px 17px}
 .level-road {min-height:540px;aspect-ratio:auto}
 body.game-theme.work button.road-node {width:116px;translate:-50% -28px;gap:6px}
 .road-node-1 {--node-x:20%!important}
 .road-node-2 {--node-x:68%!important}
 .road-node-3 {--node-x:28%!important}
 .road-node-4 {--node-x:76%!important}
 .checkpoint {width:59px;height:59px;border-width:3px;box-shadow:0 0 0 2px #f2c36f,4px 4px #0009}
 .checkpoint>b {font-size:30px}
 .checkpoint>span {width:25px;height:25px;right:-8px;bottom:-5px}
 .checkpoint .ui-icon {width:17px;height:17px}
 .checkpoint>b>.ui-icon {width:24px;height:24px}
 .road-node-copy {padding:7px 6px;max-width:112px}
 .road-node-copy>b {font-size:15px}
 .road-node-copy small {font-size:10px;line-height:1.3}
 .road-difficulty {font-size:10px;margin-top:6px}
 .road-score {right:4%;top:4%;padding:10px;max-width:130px}
 .road-score b {font-size:23px}
 .road-score span {font-size:10px}
 .road-start {font-size:9px}
}
@media(max-width:370px) {
 body.game-theme.work button.road-node {width:103px}
 .road-node-copy>b {font-size:14px}
}
@media(prefers-reduced-motion:reduce) {
 .speech-pop {animation:none}
 body.game-theme.work button.road-node {transition:none}
}
