/* Browser-sized portfolio presentation. The illustration and interface resize separately. */
:root {
  --read-body:clamp(16px,1.15vw,21px);
  --read-label:clamp(15px,1.05vw,19px);
  --read-small:clamp(13px,.9vw,16px);
  --read-button:clamp(15px,1.05vw,19px);
  --read-title:clamp(30px,2.7vw,46px);
  --read-control:clamp(42px,3.2vw,52px);
}

/* Keep the original map coordinates. Only the labels and controls shrink for browsers. */
.campus-page .welcome-note {
  position:absolute; left:18%; top:38%; width:380px; padding:16px 18px;
  transform:translateX(-50%) scale(var(--marker-scale,1)); transform-origin:top center;
  font-size:19px; line-height:1.38;
}
.campus-page .welcome-line:not(:empty) + .welcome-line:not(:empty) { margin-top:6px }
.campus-page .hotspot {
  position:absolute; width:auto; min-height:0; padding:10px 15px 10px 10px;
  gap:10px; transform:translate(-50%,-50%) scale(var(--marker-scale,1));
  white-space:nowrap; font-size:17px; line-height:1.2;
}
.campus-page .hotspot[data-topic="context"] { left:55.6%; top:37.5% }
.campus-page .hotspot[data-topic="goal"] { left:64.2%; top:58.8%; background:rgb(245 239 224 / 52%) }
.campus-page .hotspot .number { width:30px; height:30px; font-size:13px }
.campus-page .hotspot .completion-mark { font-size:16px }
.campus-page .brand { max-width:400px; padding:14px 17px }
.campus-page .brand .eyebrow { font-size:11px }
.campus-page .brand h1 { font-size:clamp(22px,2.2vw,31px) }
.campus-page .brand p { font-size:14px }
.campus-page .controls button { min-width:40px; width:40px; height:40px; font-size:23px }
.campus-page .controls .fit,.campus-page .controls .music-start { width:auto; min-width:0; padding-inline:11px; font-size:13px }
.campus-page .zoom-value { font-size:12px }
.campus-page .hint { font-size:13px }
.campus-page .topic-panel { width:min(380px,calc(100% - 40px)); padding:25px }
.campus-page .topic-panel p { font-size:15px }
.campus-page .topic-panel .eyebrow,.campus-page .topic-panel .status { font-size:13px }

.game-cover .content { width:min(620px,100%); padding:clamp(22px,3vw,36px) }
.game-cover h1 { font-size:clamp(36px,4.1vw,62px) }
.game-cover .lede { max-width:52ch; font-size:clamp(17px,1.25vw,21px) }
.game-cover .eyebrow { font-size:14px }
.game-cover .steps li { padding:8px 13px; font-size:15px }
.game-cover .start, .game-cover .start-over, body .campus-link { min-height:46px; padding:10px 16px; font-size:16px }
.highlighter-cover .hero { width:min(1220px,100%); grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr) }

.highlighter-page .shell { width:min(1400px,100%); padding:clamp(12px,2vw,24px); gap:10px }
.highlighter-page h1 { font-size:var(--read-title) }
.highlighter-page h2 { font-size:clamp(23px,1.8vw,30px) }
.highlighter-page .subtitle { font-size:var(--read-body) }
.highlighter-page .progress { width:160px; font-size:var(--read-small) }
.highlighter-page .paper { min-height:260px; padding:20px 24px 125px }
.highlighter-page .paper:has(.coach.error) { min-height:320px }
.highlighter-page .prompt { font-size:clamp(20px,1.5vw,27px) }
.highlighter-page .picker { width:min(520px,calc(100% - 20px)); padding:14px }
.highlighter-page .picker-heading { font-size:var(--read-label) }
.highlighter-page .picker-option { min-height:46px; padding:9px 12px; font-size:var(--read-body) }
.highlighter-page .picker-close { width:40px; height:40px; font-size:28px }
.highlighter-page .coach-bubble,.highlighter-page .coach.error .coach-bubble,.highlighter-page .coach.pass .coach-bubble { font-size:var(--read-body); padding:10px 15px }
html:has(> body.highlighter-page),body.highlighter-page { height:auto; min-height:100%; overflow-y:auto; overflow-x:hidden }
.highlighter-page .shell { height:auto; min-height:100dvh; max-height:none; overflow:visible }
.highlighter-page #game { flex:1 0 auto }

body .game-screen .shell { max-width:1440px; padding:clamp(12px,1.7vw,22px); gap:10px }
body .game-screen .topline { min-height:44px; gap:10px }
body .game-screen .ui-organized,body .game-screen .ui-content { gap:10px }
body .game-screen .ui-heading h1,body .game-screen .activity.dx-exercise .ui-heading h1 { font-size:var(--read-title) }
body .game-screen .ui-heading .sub,body .game-screen .ui-heading .dx-sub { font-size:var(--read-body) }
body .game-screen .manager-request { grid-template-columns:140px minmax(0,1fr); padding:10px 14px; gap:12px }
body .game-screen .manager-request>.manager-brief { font-size:var(--read-body) }
body .game-screen .dx-goal-board .dx-column { padding:15px; gap:10px }
body .game-screen .dx-goal-board .dx-slot,body .game-screen .dx-goal-board .dx-tile { min-height:68px; padding:10px 14px; font-size:var(--read-body) }
body .game-screen .dx-choice-card { min-height:105px; padding:15px; gap:10px; font-size:var(--read-body) }
body .game-screen .dx-choice-card.on { padding:14px }
body .game-screen .dx-choice-letter { width:38px; height:38px; font-size:var(--read-label) }
body .game-screen .question-card,body .game-screen .ask-slot { min-height:70px; padding:12px; font-size:var(--read-body) }
body .game-screen .prompt-review { width:min(100%,1200px); padding:16px; gap:10px }
body .game-screen .prompt-review-row { grid-template-columns:150px minmax(0,1fr) 42px; gap:12px; padding:13px 16px }
body .prompt-progress .prompt-part { grid-template-columns:150px minmax(0,1fr); padding:12px 16px }
body .prompt-progress,body .screen-information-dialog,body .dx-retry-dialog { padding:20px }

@media(max-width:760px) {
  .campus-page .hud { padding:13px; gap:8px }
  .campus-page .brand { max-width:230px; padding:12px 13px }
  .campus-page .brand p { font-size:12px }
  .campus-page .controls { gap:0; padding:3px }
  .campus-page .controls button { min-width:32px; width:32px; height:34px; font-size:19px }
  .campus-page .controls .fit,.campus-page .controls .music-start { padding-inline:6px; font-size:11px }
  .campus-page .welcome-note { left:50%; top:48%; width:290px; padding:13px 15px; font-size:17px }
  .campus-page .welcome-line { display:none }
  .campus-page .welcome-line.active { display:block }
  .campus-page .hotspot[data-topic="context"] { left:44%; top:37.5% }
  .campus-page .hotspot[data-topic="goal"] { left:54%; top:78% }
  .campus-page .hint { right:13px; bottom:13px; max-width:calc(100% - 26px); font-size:12px }
  .game-cover .content { padding:22px 18px; margin-block:40px }
  .game-cover h1 { font-size:clamp(34px,8vw,48px) }
  .highlighter-cover .hero { grid-template-columns:1fr }
  .highlighter-page .shell { padding:12px }
  .highlighter-page .paper,.highlighter-page .paper-tools { width:100% }
  .highlighter-page .paper { padding:16px 16px 115px }
  body .game-screen .manager-request { grid-template-columns:1fr; gap:6px }
  body .game-screen .prompt-review-row { grid-template-columns:minmax(0,1fr) 42px }
  body .prompt-progress .prompt-part { grid-template-columns:1fr }
}

@media(max-width:1100px), (max-height:760px) {
  html:has(.game-screen),body:has(.game-screen) { height:auto; min-height:100%; overflow-y:auto; overflow-x:hidden }
  .game-screen.stage { height:auto; min-height:100dvh; max-height:none; overflow:visible }
  .game-screen .shell { height:auto; min-height:100dvh; max-height:none }
  .game-screen .layout,.game-screen .activity,.game-screen .prelude,
  .game-screen .prelude.dialogue,.game-screen .ui-main,.game-screen .ui-content,
  .game-screen .dx-board { height:auto; min-height:0 }
  .game-screen .dx-choice-grid,.game-screen .dx-layout { grid-template-rows:auto }
}

