/* v45: normal human scale, two scene games and separate sports destinations. */
body.game-theme.campus-mode {--campus-task-width:clamp(310px,27vw,380px)}
body.game-theme.campus-mode.campus-tasks-hidden {--campus-task-width:0px}
body.game-theme.campus-mode>header {
  inset:0 var(--campus-task-width) auto 0;width:auto;max-width:none;
  min-height:96px;height:auto;display:flex;flex-direction:row;flex-wrap:nowrap;
  justify-content:space-between;align-items:flex-start;padding:20px 24px;gap:20px;
  background:linear-gradient(180deg,#080808ed,#08080855 76%,transparent);
}
body.game-theme.campus-mode .header-actions {width:auto;margin:0;gap:10px;align-items:center;flex-shrink:0}
body.game-theme.campus-mode button.profile-open {order:0}
.walk-hud {top:112px}
body.game-theme .tasks-hidden button.task-sheet-toggle {top:104px;right:24px}
.place-park .campus-image-stage {--scene-ratio:1672/941;--scene-fit:177.6833156svh}

/* Human height is tied to the viewport rather than the enlarged background. */
body.game-theme .simulator-layout .campus-world .campus-person {
  --person-h:clamp(280px,58svh,550px);--person-x:46%;
  height:var(--person-h);width:calc(var(--person-h)*.5);max-width:none;
  left:clamp(calc(50% - 50vw + var(--person-h)*.25 + 20px),var(--person-x),calc(50% + 50vw - var(--task-width) - var(--person-h)*.25 - 20px));
  bottom:max(8%,calc(50% - 50svh + 42px));transform:translateX(-50%);
  display:block;filter:drop-shadow(3px 6px 3px #0006);z-index:1;
}
body.game-theme .simulator-layout .campus-world[data-floor="6"] .campus-person {--person-x:52%}
body.game-theme .simulator-layout .campus-world[data-floor="7"] .campus-person {--person-x:29%}
body.game-theme .simulator-layout .campus-world[data-floor="8"] .campus-person {--person-x:54%}
body.game-theme .simulator-layout .campus-world[data-floor="9"] .campus-person {--person-x:60%}
body.game-theme .simulator-layout .campus-world.place-track .campus-person {--person-x:25%;bottom:max(6%,calc(50% - 50svh + 40px))}
.campus-person.person-lena>img {transform:translateY(2.34375%)}
.campus-person.person-max>img,.campus-person.person-kirill>img {transform:translateY(1.5625%)}
body.game-theme button.character-hit {position:absolute;inset:0;width:100%;height:100%;padding:0;min-height:0;min-width:0;background:transparent!important;border:0!important;box-shadow:none!important;transform:none!important;pointer-events:auto;opacity:1;letter-spacing:0}
.character-hit .target-marker {bottom:10%}
.character-hit .target-label {bottom:calc(10% + 46px)}
.character-hit:hover .target-label,.character-hit:focus-visible .target-label {opacity:1}
.character-hit:hover .target-marker,.character-hit:focus-visible .target-marker {background:#f2c36f;color:#15121a}
body.game-theme button.character-hit:focus-visible {outline:2px dashed #fff0bd;outline-offset:-3px}

/* A complete room canvas keeps every silhouette fixed to its furniture. */
.simulator-layout .place-dorm-room .campus-image-stage {width:min(100vw,var(--scene-fit));overflow:visible}
.room-backfill {position:fixed;inset:0;overflow:hidden;z-index:0;pointer-events:none;background:#18140e}
.room-backfill img {display:block;width:100%;height:100%;object-fit:cover;filter:blur(18px) brightness(.6);scale:1.05}
body.game-theme .simulator-layout .campus-world.place-dorm-room .campus-person {--person-x:18%;height:min(58svh,55%);width:22%;bottom:7%;left:18%}
.tidy-scene,.tidy-slots {position:absolute;inset:0;pointer-events:none;z-index:2}
.tidy-slot,body.game-theme button.tidy-slot {
  position:absolute;left:var(--item-x);top:var(--item-y);width:var(--item-w);height:var(--item-h);
  min-width:0;min-height:0;padding:0;margin:0;display:block;background:transparent!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important;
  opacity:1!important;overflow:visible;pointer-events:auto;letter-spacing:0;
}
button.tidy-slot:before {content:'';position:absolute;left:50%;top:50%;translate:-50% -50%;width:max(100%,44px);height:max(100%,44px);background:transparent}
.tidy-slot img {display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.object-silhouette {filter:brightness(0) drop-shadow(0 0 2px #ffe4a5);opacity:.42}
.tidy-slot:hover .object-silhouette,.tidy-slot:focus-visible .object-silhouette {opacity:.7;filter:brightness(0) drop-shadow(0 0 4px #ffdb7b)}
body.game-theme button.tidy-slot:focus-visible {outline:2px dashed #f2c36f;outline-offset:4px}
.tidy-slot.is-placed img {filter:drop-shadow(1px 2px 1px #0005)}
.object-check {position:absolute;right:0;bottom:2px;display:grid;place-items:center;width:19px;height:19px;background:#d8e9c7;color:#244419;border:1px solid #8b9f71;border-radius:50%;font:700 12px Arial,sans-serif;pointer-events:none}
.item-pile {position:absolute;left:50%;bottom:2%;width:min(620px,70%,calc(100vw - 28px));height:clamp(90px,18%,170px);translate:-50% 0;pointer-events:none}
.tidy-item,body.game-theme button.tidy-item {
  position:absolute;left:var(--pile-x);top:var(--pile-y);width:22%;height:96%;min-width:0;min-height:0;
  translate:-50% -50%;rotate:var(--item-angle);padding:0;background:transparent!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;transform:none!important;
  opacity:1;display:block;pointer-events:none;touch-action:none;cursor:grab;z-index:2;
}
.tidy-scene.is-active button.tidy-item {pointer-events:auto}
.tidy-item img {display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(4px 7px 4px #0007)}
.tidy-item:hover img,.tidy-item:focus-visible img,.tidy-item.is-selected img {filter:drop-shadow(0 0 3px #ffe6a1) drop-shadow(0 0 8px #e8a645)}
body.game-theme button.tidy-item:focus-visible {outline:2px dashed #f2c36f;outline-offset:2px}
.tidy-drag-ghost {position:fixed;z-index:100;translate:-50% -50%;width:140px;height:140px;object-fit:contain;pointer-events:none;filter:drop-shadow(0 0 5px #ffe5a1) drop-shadow(5px 9px 4px #0007)}

/* Controls sit on top of the scene, without a bordered mini-game board. */
.scene-challenge {position:fixed;inset:0;z-index:4;pointer-events:none}
.scene-game .walk-hud {display:none}
.scene-challenge-head {position:absolute;top:122px;left:50%;translate:-50% 0;width:360px;max-width:calc(100vw - var(--task-width) - 48px);padding:14px 18px;background:#15150fe8;border:1px solid #d1b77a78;border-radius:6px;box-shadow:0 4px 16px #0003;color:#fff1d4}
.scene-challenge-head>span {font:700 12px Arial,sans-serif;color:#f2c36f;letter-spacing:0}
body.game-theme .scene-challenge-head h2 {font:700 24px/1.2 Arial,sans-serif;color:#fff1d4;letter-spacing:0;margin:6px 0 8px}
body.game-theme .scene-challenge-head>p {font:400 14px/1.45 Arial,sans-serif;color:#f6edd8;margin:0;text-shadow:none}
.scene-score {display:block;margin-top:10px;font:700 14px Arial,sans-serif;color:#f2c36f}
body.game-theme .scene-challenge-head>.scene-feedback {margin-top:10px;color:#ffe0a3;font-weight:700}
.scene-challenge-controls {position:absolute;left:50%;bottom:22px;translate:-50% 0;display:flex;gap:12px;align-items:center;pointer-events:auto}
body.game-theme .scene-challenge-controls button {min-height:48px;font:700 14px Arial,sans-serif!important;letter-spacing:0;transform:none!important}
.tidy-challenge .scene-challenge-controls {left:24px;translate:0 0;bottom:24px}
.scene-exit {background:#151510ef!important;border:1px solid #c9b486!important;color:#fff1d4!important;padding:11px 17px!important;border-radius:6px!important;box-shadow:none!important}
.run-cue {position:absolute;right:15px;bottom:12px;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:#f2c36f;color:#151510;font:700 32px Arial,sans-serif}
.running-challenge .scene-challenge-head {padding-right:73px}
body.game-theme button.run-control {width:78px;height:72px;padding:8px 12px;border:2px solid #d4b274!important;border-radius:6px!important;background:#16170ef2!important;color:#ffdfa0!important;box-shadow:0 3px 9px #0005!important}
.run-control b {display:block;font:700 29px/1.1 Arial,sans-serif}
.run-control small {display:block;font:700 10px Arial,sans-serif;color:inherit;letter-spacing:0;margin-top:5px}
.running-marker {position:absolute;translate:-50% -50%;display:grid;place-items:center;width:46px;height:46px;background:#f2c36fd9;color:#16170e;border:3px solid #19190f;border-radius:50%;box-shadow:0 0 0 5px #fff0ae88;z-index:2;pointer-events:none}
.running-marker i {font:700 29px Arial,sans-serif;font-style:normal}

@media(max-width:1100px) {
 body.game-theme.campus-mode>header {padding:18px;gap:12px}
 .scene-challenge-head {width:320px;top:132px}
 body.game-theme .scene-challenge-head h2 {font-size:22px}
}
@media(max-width:760px) {
 body.game-theme.campus-mode {--campus-task-width:min(360px,calc(100vw - 24px))}
 body.game-theme.campus-mode.campus-tasks-hidden {--campus-task-width:0px}
 body.game-theme.campus-mode>header {inset:0 0 auto;width:auto;max-width:none;min-height:124px;padding:16px 14px;display:flex;flex-direction:row;flex-wrap:wrap;gap:12px}
 body.game-theme.campus-mode .brand {flex-basis:100%}
 body.game-theme.campus-mode .header-actions {margin-left:auto;gap:10px}
 .walk-hud {top:142px}
 body.game-theme .tasks-hidden button.task-sheet-toggle {top:80px;left:14px;right:auto;width:140px;max-width:140px}
 body.game-theme .simulator-layout .campus-world .campus-person {--person-h:clamp(260px,54svh,440px)}
 .scene-challenge-head {top:145px;left:14px;translate:0 0;width:calc(100vw - 28px);max-width:none;padding:12px 14px}
 .simulator-layout .place-dorm-room.is-quest .campus-image-stage {top:67svh}
 body.game-theme .scene-challenge-head h2 {font-size:20px;margin:4px 0 6px}
 body.game-theme .scene-challenge-head>p {font-size:12px}
 .scene-score {font-size:12px;margin-top:8px}
 .running-challenge .scene-challenge-head {padding-right:64px}
 .run-cue {width:40px;height:40px;font-size:28px}
 .scene-challenge-controls {gap:7px;bottom:18px}
 body.game-theme button.run-control {width:59px;height:64px;padding:6px}
 .scene-challenge-controls .scene-exit {padding:10px!important;font-size:12px!important}
 .tidy-challenge .scene-challenge-controls {left:14px;bottom:16px}
 .tidy-drag-ghost {width:105px;height:105px}
 .object-check {width:14px;height:14px;font-size:9px}
 .running-marker {width:34px;height:34px;border-width:2px;box-shadow:0 0 0 3px #fff0ae88}
 .running-marker i {font-size:22px}
}
@media(max-height:560px) and (min-width:761px) {
 .scene-challenge-head {top:110px;padding:10px 14px}
 body.game-theme .scene-challenge-head h2 {font-size:20px}
 .scene-challenge-head>p {font-size:12px}
 .scene-score {margin-top:7px;font-size:12px}
 .scene-challenge-controls {bottom:12px}
}
@media(prefers-reduced-motion:reduce) { .running-marker {transition:none} }
