@charset "UTF-8";
/* Interface de laboratório. As regras da campanha ao final preservam a base visual. */
:root {
  color-scheme: dark;
  --bg: #0c131c;
  --panel: #121e2a;
  --line: #293746;
  --text: #edf2f5;
  --muted: #a0afbf;
  --mint: #89edc8;
  --cyan: #79cced;
  --amber: #f4c678;
  --red: #ff9d9d;
  --font: Inter,"Segoe UI",Arial,sans-serif;
  --mono: "Cascadia Code",Consolas,monospace
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.55
}

button,a {
  -webkit-tap-highlight-color: transparent
}

button {
  font: inherit
}

button:disabled {
  cursor: not-allowed;
  opacity: .45
}

button:not(:disabled),a {
  cursor: pointer
}

button:focus-visible,a:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 5px
}

button {
  touch-action: manipulation
}

a {
  color: inherit
}

h1,h2,h3,p {
  margin: 0
}

h1 {
  font-size: clamp(27px,3vw,39px);
  font-weight: 650;
  letter-spacing: -1.3px;
  line-height: 1.2
}

h2 {
  font-size: 18px;
  font-weight: 600
}

h3 {
  font-size: 16px;
  font-weight: 600
}

[hidden] {
  display: none!important
}

.muted {
  color: var(--muted);
  font-weight: 400
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 10;
  padding: 10px;
  background: var(--mint);
  color: var(--bg)
}

.skip-link:focus {
  top: 10px
}

.topbar {
  min-height: 83px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(28px,calc((100vw - 1240px)/2));
  background: #101a25
}

.brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -.8px
}

.brand-accent {
  color: var(--mint)
}

.brand-light {
  font-weight: 400
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2,9px);
  gap: 4px;
  transform: rotate(-5deg)
}

.brand-mark i {
  height: 9px;
  background: var(--mint)
}

.brand-mark i:nth-child(2) {
  background: #3c766a
}

.brand-mark i:nth-child(3) {
  background: var(--cyan)
}

.topbar-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.8px;
  color: #91a4b6
}

.online {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap
}

.online i,.status-badge i {
  width: 6px;
  height: 6px;
  background: var(--mint);
  border-radius: 50%;
  display: inline-block
}

.online i {
  box-shadow: 0 0 12px #89edc855
}

.workspace {
  max-width: 1240px;
  margin: auto;
  padding: 34px 28px 24px
}

.heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px
}

.eyebrow {
  font: 10px var(--mono);
  letter-spacing: 1.8px;
  color: var(--mint);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px
}

.tiny-square {
  width: 5px;
  height: 5px;
  background: var(--mint)
}

.subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-top: 11px
}

.session-tag {
  border-left: 1px solid var(--line);
  padding-left: 24px;
  min-width: 135px
}

.session-tag>span {
  display: block;
  font: 9px var(--mono);
  letter-spacing: 1.6px;
  color: var(--muted)
}

.session-tag strong {
  display: block;
  font: 30px var(--mono);
  margin-top: 8px
}

.session-tag strong span {
  font-size: 15px;
  color: #71869a
}

.journey {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 29px 0 24px;
  max-width: 760px
}

.journey>i {
  height: 1px;
  flex: 1;
  background: var(--line)
}

.journey-step {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8496a9;
  font-size: 12px
}

.journey-step>span {
  border: 1px solid var(--line);
  height: 25px;
  width: 25px;
  display: grid;
  place-items: center;
  font: 10px var(--mono);
  border-radius: 50%
}

.journey-step.active {
  color: var(--mint)
}

.journey-step.active>span {
  border-color: var(--mint);
  background: #89edc80f
}

.journey-step.complete>span {
  background: #89edc81a;
  color: var(--mint);
  border-color: #426356
}

.lab-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 280px;
  gap: 22px;
  align-items: start
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 21px 24px
}

.micro-label {
  font: 9px var(--mono);
  letter-spacing: 1.6px;
  color: var(--muted);
  display: block;
  margin-bottom: 7px
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 10px var(--mono);
  padding: 7px 10px;
  border: 1px solid #544735;
  border-radius: 5px;
  white-space: nowrap
}

.status-badge.warning {
  color: var(--amber);
  background: #f4c67808
}

.status-badge.warning i {
  background: var(--amber)
}

.status-badge.success {
  color: var(--mint);
  border-color: #426356;
  background: #89edc80a
}

.specimen-board {
  position: relative;
  padding: 36px 28px 16px;
  background: #0b1620;
  border-block: 1px solid var(--line);
  overflow: hidden
}

.board-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#29425830 1px,transparent 1px),linear-gradient(90deg,#29425830 1px,transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse,black 20%,transparent 75%);
  pointer-events: none
}

.board-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: #526678;
  border-style: solid
}

.corner-a {
  top: 16px;
  left: 16px;
  border-width: 1px 0 0 1px
}

.corner-b {
  bottom: 16px;
  right: 16px;
  border-width: 0 1px 1px 0
}

.pose-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px
}

.pose {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 9px;
  min-width: 0
}

.pose-platform {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 112px;
  position: relative
}

.pose-platform::after {
  content: "";
  position: absolute;
  bottom: 3px;
  width: 80%;
  height: 18px;
  border: 1px solid #345666;
  background: #172f3c66;
  transform: skewX(-22deg);
  z-index: 0
}

.sprite {
  --size: 80px;
  display: inline-block;
  width: var(--size);
  height: var(--size);
  background-size: calc(var(--size)*4) calc(var(--size)*7);
  background-position: calc(var(--direction,0)*var(--size)*-1) 0;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  position: relative;
  z-index: 1;
  flex-shrink: 0
}

.sprite.ninja {
  background-image: url("assets/sprites/ninja-blue.png")
}

.sprite.green {
  background-image: url("assets/sprites/samurai-green.png")
}

.sprite.blue {
  background-image: url("assets/sprites/samurai-blue.png")
}

.sprite.amber {
  background-image: url("assets/sprites/ninja-blue.png");
  filter: hue-rotate(200deg) saturate(1.3);
}

.pose-label {
  font: 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aabcc9
}

.pose-small {
  font: 8px var(--mono);
  color: #637d91;
  letter-spacing: 1px
}

.pose.missing .pose-platform {
  border: 1px dashed #967a4d;
  border-radius: 5px;
  background: #f4c67806
}

.pose.missing .pose-platform::after {
  display: none
}

.missing-symbol {
  font: 52px var(--mono);
  color: var(--amber);
  text-shadow: 3px 3px #f4c6781c
}

.pose.missing .pose-label,.pose.missing .pose-small {
  color: var(--amber)
}

.pose.restored .pose-platform {
  background: #89edc808;
  border: 1px solid #89edc855;
  border-radius: 5px
}

.pose.restored .pose-label {
  color: var(--mint)
}

.board-caption {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  font: 9px var(--mono);
  color: #859aac;
  margin-top: 30px
}

.board-coordinates {
  margin-left: auto;
  color: #536b7d
}

.signal-bars {
  display: flex;
  align-items: end;
  gap: 2px;
  height: 10px
}

.signal-bars i {
  background: #659e9a;
  width: 3px;
  height: 4px
}

.signal-bars i:nth-child(2) {
  height: 7px
}

.signal-bars i:nth-child(3) {
  height: 10px
}

.signal-bars i:nth-child(4) {
  height: 10px;
  background: #344c5c
}

.task-area {
  padding: 23px 24px 24px
}

.task-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 19px
}

.section-number {
  height: 25px;
  width: 25px;
  display: grid;
  place-items: center;
  border: 1px solid #4a6576;
  color: var(--cyan);
  font: 10px var(--mono);
  border-radius: 5px;
  flex-shrink: 0;
  margin-top: 2px
}

.task-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px
}

.selection-count {
  margin-left: auto;
  white-space: nowrap;
  color: var(--mint);
  font: 12px var(--mono);
  padding-top: 5px
}

.intro-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px
}

.role-card {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 15px;
  background: #0e1923;
  border: 1px solid var(--line);
  border-radius: 7px
}

.role-letter {
  font: 20px var(--mono);
  color: var(--mint);
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 38px;
  border: 1px solid #89edc833;
  border-radius: 5px
}

.role-card:nth-child(2) .role-letter {
  color: var(--cyan);
  border-color: #79cced33
}

.role-card strong {
  font-size: 12px
}

.role-card p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 4px
}

.action-area {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap
}

.action-hint {
  color: var(--muted);
  font-size: 11px;
  max-width: 280px
}

.btn {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 650;
  transition: background .15s,transform .15s;
  color: var(--text);
  background: #1b2c3b;
  min-height: 45px
}

.btn:hover:not(:disabled) {
  background: #294153;
  transform: translateY(-1px)
}

.btn.primary {
  background: var(--mint);
  color: #112a26;
  border-color: var(--mint);
  box-shadow: 0 3px 0 #477965
}

.btn.primary:hover:not(:disabled) {
  background: #b0f7df
}

.btn.danger {
  border-color: #a56868;
  color: #ffc0c0;
  background: #ff9d9d09
}

.btn.danger:hover:not(:disabled) {
  background: #ff9d9d19
}

.btn-arrow {
  font-size: 18px;
  font-weight: 400;
  line-height: 1
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px
}

.guide {
  padding: 20px
}

.guide-heading {
  display: flex;
  justify-content: space-between
}

.guide-dots {
  letter-spacing: 3px;
  color: #5b7184;
  font-size: 11px
}

.robot-scene {
  height: 120px;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse,#89edc812,transparent 65%);
  margin: 0 0 6px
}

.robot {
  width: 70px;
  position: relative;
  animation: float 4s ease-in-out infinite;
  --robot-color: var(--mint)
}

.antenna {
  height: 13px;
  width: 4px;
  background: #719a93;
  margin: auto;
  position: relative
}

.antenna::before {
  content: "";
  width: 10px;
  height: 7px;
  background: var(--robot-color);
  position: absolute;
  left: -3px;
  top: -4px;
  box-shadow: 0 0 12px #89edc844
}

.robot-head {
  height: 47px;
  background: #95b6b6;
  border: 4px solid #c1d4d1;
  border-radius: 11px;
  box-shadow: 4px 4px #0004;
  position: relative
}

.robot-head::before,.robot-head::after {
  content: "";
  position: absolute;
  top: 12px;
  left: -10px;
  width: 6px;
  height: 15px;
  background: #72928e;
  border-radius: 2px
}

.robot-head::after {
  left: auto;
  right: -10px
}

.robot-face {
  background: #15232c;
  border: 3px solid #64877f;
  border-radius: 6px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative
}

.robot-face i {
  width: 8px;
  height: 10px;
  background: var(--robot-color);
  box-shadow: 0 0 9px #89edc844
}

.robot-face b {
  position: absolute;
  width: 10px;
  height: 3px;
  background: var(--robot-color);
  bottom: 4px;
  left: 23px
}

.robot-body {
  height: 24px;
  width: 44px;
  margin: 3px auto 0;
  border: 3px solid #b9ceca;
  border-radius: 4px;
  background: #7c9b98;
  display: grid;
  place-items: center
}

.robot-body i {
  width: 10px;
  height: 8px;
  background: var(--robot-color);
  border: 2px solid #284b46
}

.robot-shadow {
  position: absolute;
  bottom: -13px;
  left: 9px;
  width: 54px;
  height: 6px;
  border-radius: 50%;
  background: #0005
}

.robot-scene.discriminator .robot {
  --robot-color: var(--cyan)
}

.robot-scene.discriminator .robot-head {
  border-color: #a6bfd8;
  background: #7895b5
}

.robot-scene.discriminator {
  background: radial-gradient(ellipse,#79cced16,transparent 65%)
}

.guide-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 14px
}

.guide-name h2 {
  font-size: 20px
}

.guide-name>span {
  font: 8px var(--mono);
  letter-spacing: 1px;
  color: var(--mint);
  border: 1px solid #89edc833;
  padding: 4px 7px;
  border-radius: 4px
}

.speech {
  background: #0c1822;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 15px;
  color: #d4dfe7;
  font-size: 12px;
  line-height: 1.8;
  position: relative
}

.speech::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 24px;
  width: 9px;
  height: 9px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #0c1822;
  transform: rotate(45deg)
}

.guide-note {
  display: flex;
  gap: 8px;
  font-size: 10px;
  color: #90a6b6;
  line-height: 1.7;
  margin-top: 16px
}

.guide-note>span {
  color: var(--mint);
  font-size: 16px
}

.concept-card {
  padding: 18px 20px;
  border: 1px dashed #344654;
  border-radius: 8px;
  background: #101b25
}

.concept-card h3 {
  font-size: 13px;
  margin: 9px 0 6px
}

.concept-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8
}

.mini-cycle {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 13px
}

.mini-cycle span {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  background: #89edc810;
  color: var(--mint);
  font: 11px var(--mono);
  border: 1px solid #89edc833;
  border-radius: 4px
}

.mini-cycle span:nth-of-type(2) {
  color: var(--cyan);
  border-color: #79cced33;
  background: #79cced10
}

.mini-cycle i {
  font-style: normal;
  color: #658596
}

.pipeline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 23px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: #101a24
}

.pipeline-label {
  font: 8px var(--mono);
  letter-spacing: 1.4px;
  color: #7890a4;
  margin-right: 12px
}

.pipeline-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #95a7b8
}

.pipeline-item b {
  font: 13px var(--mono);
  color: #bdd3dd
}

.pipeline-item.active,.pipeline-item.active b {
  color: var(--mint)
}

.pipeline>i {
  font-style: normal;
  color: #526b7d
}

.footer {
  max-width: 1240px;
  padding: 0 28px 25px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: #8194a7;
  font-size: 9px;
  flex-wrap: wrap
}

.footer a {
  color: #9fb4c1;
  text-underline-offset: 4px
}

.footer-dot {
  padding: 0 5px;
  color: #526b7d
}

.asset-warning {
  background: #3b2424;
  border: 1px solid var(--red);
  padding: 15px;
  color: #ffd0d0;
  border-radius: 8px;
  margin-bottom: 16px
}

.choices {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 124px;
  padding: 10px 8px;
  border: 1px solid #334857;
  background: #0e1923;
  color: var(--text);
  border-radius: 7px;
  transition: background .15s,border-color .15s
}

.choice .sprite {
  --size: 64px
}

.choice:hover {
  background: #1b3040;
  border-color: #698c9e
}

.choice.selected {
  border-color: var(--mint);
  background: #89edc80b;
  box-shadow: inset 0 0 0 1px var(--mint)
}

.choice.suggested::after {
  content: "ESCOLHA ESTE";
  position: absolute;
  bottom: 4px;
  font: 7px var(--mono);
  letter-spacing: .5px;
  color: var(--mint)
}

.choice.suggested {
  padding-bottom: 18px
}

.choice-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  border: 1px solid #425c6d;
  border-radius: 4px;
  color: transparent;
  font-size: 11px;
  line-height: 14px
}

.choice.selected .choice-check {
  background: var(--mint);
  border-color: var(--mint);
  color: #132822
}

.choice-code {
  position: absolute;
  top: 7px;
  left: 8px;
  font: 8px var(--mono);
  color: #7f96a7
}

.choice-label {
  font: 9px var(--mono);
  color: #b1c2ce;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px
}

.feedback {
  margin-top: 15px;
  padding: 12px 14px;
  border: 1px solid #66543b;
  border-left: 3px solid var(--amber);
  border-radius: 4px;
  background: #f4c67808;
  font-size: 12px;
  color: #ead4af;
  line-height: 1.7
}

.feedback.good {
  border-color: #436b58;
  border-left-color: var(--mint);
  background: #89edc808;
  color: #c0eddb
}

.review-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 17px;
  background: #0b1721;
  border: 1px solid var(--line);
  border-radius: 8px
}

.output-display {
  min-width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  background: linear-gradient(#79cced09 1px,transparent 1px),linear-gradient(90deg,#79cced09 1px,transparent 1px);
  background-size: 16px 16px;
  border: 1px solid #3a5365;
  border-radius: 5px
}

.review-copy .micro-label {
  color: var(--cyan)
}

.review-copy h4 {
  font-size: 15px;
  margin: 4px 0 8px
}

.review-copy p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7
}

.decision-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.processing {
  text-align: center;
  padding: 20px 10px;
  color: var(--mint)
}

.processing p {
  font-size: 12px;
  margin-top: 12px;
  color: var(--muted)
}

.process-pixels {
  display: flex;
  gap: 7px;
  justify-content: center
}

.process-pixels i {
  width: 12px;
  height: 12px;
  background: var(--mint);
  animation: pulse .7s alternate infinite
}

.process-pixels i:nth-child(2) {
  animation-delay: .15s
}

.process-pixels i:nth-child(3) {
  animation-delay: .3s
}

.process-pixels i:nth-child(4) {
  animation-delay: .45s
}

.success-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px
}

.success-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #89edc815;
  border: 1px solid #89edc855;
  color: var(--mint);
  border-radius: 50%;
  font-size: 20px
}

.success-banner h3 {
  font-size: 19px
}

.success-banner p {
  color: var(--muted);
  font-size: 12px
}

.results {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin: 18px 0
}

.result-stat {
  background: #0c1822;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 5px
}

.result-stat strong {
  display: block;
  font: 23px var(--mono);
  color: var(--mint)
}

.result-stat span {
  color: var(--muted);
  font-size: 10px
}

.lesson-list {
  padding-left: 18px;
  color: #b5c5d0;
  font-size: 12px;
  line-height: 1.9
}

.lesson-list li::marker {
  color: var(--mint)
}

.lesson-list b {
  color: #e2ecef
}

@keyframes float {
  0%,100% {
    transform: translateY(0)
  }
  50% {
    transform: translateY(-5px)
  }
}

@keyframes pulse {
  from {
    opacity: .25;
    transform: translateY(2px)
  }
  to {
    opacity: 1;
    transform: translateY(-2px)
  }
}

@media(min-width:1400px) {
  .workspace {
    padding-top: 45px
  }
  .specimen-board {
    padding-top: 44px;
    padding-bottom: 20px
  }
  .pose-platform {
    min-height: 120px
  }
  .task-area {
    padding-top: 27px
  }
  .guide {
    padding: 23px
  }
}

@media(max-width:1000px) {
  .topbar-label {
    display: none
  }
  .lab-layout {
    grid-template-columns: minmax(0,1fr) 245px;
    gap: 16px
  }
  .pose-row {
    gap: 9px
  }
  .specimen-board {
    padding-inline: 18px
  }
  .pose .sprite {
    --size: 64px
  }
  .panel-header,.task-area {
    padding: 18px
  }
  .pipeline {
    gap: 14px
  }
  .pipeline-label {
    display: none
  }
  .guide {
    padding: 17px
  }
}

@media(max-width:760px) {
  .topbar {
    min-height: 68px;
    padding: 15px 20px
  }
  .brand {
    font-size: 21px
  }
  .online {
    font-size: 9px
  }
  .workspace {
    padding: 25px 18px 20px
  }
  .heading-row {
    align-items: flex-start
  }
  .session-tag {
    min-width: 88px;
    padding-left: 14px;
    margin-top: 8px
  }
  .session-tag strong {
    font-size: 23px
  }
  .session-tag>span {
    font-size: 8px
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1px
  }
  h1 {
    font-size: 29px
  }
  .subtitle {
    font-size: 12px
  }
  .lab-layout {
    grid-template-columns: 1fr
  }
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start
  }
  .guide {
    position: relative
  }
  .robot-scene {
    height: 94px
  }
  .concept-card {
    height: 100%
  }
  .pipeline {
    gap: 12px;
    flex-wrap: wrap
  }
  .pipeline-item {
    font-size: 10px
  }
  .footer {
    padding-inline: 18px;
    font-size: 9px
  }
  .journey {
    gap: 7px;
    margin-block: 22px
  }
  .journey-step {
    gap: 5px;
    font-size: 10px
  }
  .journey-step>span {
    height: 23px;
    width: 23px;
    font-size: 9px
  }
  .pose .sprite {
    --size: 80px
  }
  .pose-platform {
    min-height: 108px
  }
}

@media(max-width:440px) {
  .online {
    display: none
  }
  .session-tag {
    display: none
  }
  .workspace {
    padding-inline: 12px
  }
  .panel-header {
    padding: 16px 14px
  }
  .panel-header h2 {
    font-size: 15px
  }
  .status-badge {
    font-size: 8px;
    padding: 6px
  }
  .panel-header .micro-label {
    font-size: 8px
  }
  .task-area {
    padding: 18px 14px
  }
  .specimen-board {
    padding: 24px 12px 13px
  }
  .pose-row {
    gap: 8px
  }
  .pose .sprite {
    --size: 64px
  }
  .pose-platform {
    min-height: 84px
  }
  .pose-label {
    font-size: 8px
  }
  .pose-small {
    font-size: 7px;
    letter-spacing: 0
  }
  .board-caption {
    font-size: 8px;
    margin-top: 22px
  }
  .intro-roles {
    gap: 8px
  }
  .role-card {
    padding: 11px 9px;
    gap: 7px
  }
  .role-letter {
    min-width: 24px;
    height: 30px;
    font-size: 16px
  }
  .role-card strong {
    font-size: 11px
  }
  .role-card p {
    font-size: 10px
  }
  .action-area {
    gap: 12px
  }
  .action-area>.btn {
    width: 100%
  }
  .action-hint {
    max-width: none
  }
  .sidebar {
    grid-template-columns: 1fr
  }
  .guide {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 8px 12px
  }
  .guide-heading {
    grid-column: 1/-1
  }
  .robot-scene {
    grid-column: 1;
    grid-row: 2/4;
    margin: 0
  }
  .guide-name {
    grid-column: 2;
    margin: 0
  }
  .speech {
    grid-column: 2;
    font-size: 11px;
    padding: 10px
  }
  .speech::before {
    display: none
  }
  .guide-note {
    grid-column: 1/-1;
    margin-top: 4px
  }
  .concept-card {
    padding: 15px
  }
  .mini-cycle {
    display: none
  }
  .concept-card h3 {
    margin-top: 7px
  }
  .choices {
    gap: 8px
  }
  .choice {
    min-height: 119px
  }
  .review-card {
    gap: 12px;
    padding: 12px
  }
  .output-display {
    min-width: 88px;
    height: 95px
  }
  .review-copy h4 {
    font-size: 13px
  }
  .review-copy p {
    font-size: 11px
  }
  .decision-actions {
    width: 100%
  }
  .decision-actions .btn {
    flex: 1;
    padding-inline: 10px
  }
  .pipeline {
    gap: 8px;
    padding: 12px 8px
  }
  .pipeline-item {
    font-size: 9px;
    gap: 4px
  }
  .pipeline-item b {
    font-size: 11px
  }
  .result-stat {
    padding: 10px
  }
  .result-stat span {
    font-size: 9px
  }
  .result-stat strong {
    font-size: 20px
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation: none!important;
    transition: none!important;
    scroll-behavior: auto!important
  }
}

/* Mantém o atalho realmente oculto até receber foco pelo teclado. */
.skip-link {
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  clip-path: inset(50%);
  white-space: nowrap
}

.skip-link:focus {
  top: 10px;
  width: auto;
  height: auto;
  padding: 10px;
  clip-path: none
}

/* Área de jogo única. O ajuste de escala só entra quando a janela é menor
   que o conteúdo compacto; todos os controles continuam dentro da tela. */
html, body {
  height: 100%;
  overflow: hidden;
}
.game-viewport {
  position: fixed;
  inset: 0;
  height: 100dvh;
  overflow: hidden;
}
.game-screen {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  transform: scale(var(--fit, 1));
  transform-origin: top center;
}
.topbar {
  min-height: 50px;
  padding: 10px max(24px, calc((100vw - 1272px) / 2));
}
.brand { font-size: 21px; }
.mode-indicator {
  padding: 6px 12px;
  border: 1px solid #6c9ec0;
  border-radius: 5px;
  background: #79cced12;
  color: var(--cyan);
  font: 11px var(--mono);
  letter-spacing: .7px;
  font-weight: 700;
}
body[data-mode="mission"] .mode-indicator {
  color: var(--mint);
  border-color: #5eab90;
  background: #89edc810;
}
.workspace {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 14px 24px 8px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}
.heading-row { gap: 16px; }
.eyebrow { display: none; }
h1 { font-size: 27px; letter-spacing: -.7px; }
.subtitle { margin-top: 4px; font-size: 12px; }
.session-tag { min-width: 175px; padding-left: 16px; }
.session-tag strong { font-size: 19px; margin-top: 4px; }
.journey { margin: 13px 0; }
.lab-layout {
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 14px;
  flex: 1 0 auto;
  align-items: stretch;
}
.experiment {
  display: grid;
  grid-template-columns: minmax(200px, .8fr) minmax(0, 1.2fr);
  grid-template-rows: auto 1fr;
  align-self: stretch;
}
.panel-header { grid-column: 1 / -1; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.panel-header h2 { font-size: 16px; }
.micro-label { margin-bottom: 5px; }
.specimen-board {
  padding: 18px 16px 12px;
  border-block: 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.pose-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
  flex: 1;
  align-items: center;
}
.pose { gap: 5px; }
.pose-platform { min-height: 77px; }
.pose .sprite { --size: 64px; }
.pose-small { font-size: 7px; }
.missing-symbol { font-size: 38px; }
.board-caption { margin-top: 20px; font-size: 8px; }
.board-coordinates { display: none; }
.task-area { padding: 15px 18px; display: flex; flex-direction: column; }
#interaction-area { flex: 1; display: flex; flex-direction: column; justify-content: center; }
#interaction-area > .choices, #interaction-area > .intro-roles { flex: 1; }
.task-heading { gap: 10px; margin-bottom: 12px; }
.task-heading h3 { font-size: 15px; }
.task-heading p { font-size: 11px; margin-top: 3px; }
.choices { gap: 8px; }
.choice { min-height: 94px; padding: 8px 6px; }
.choice .sprite { --size: 48px; }
.choice.suggested { padding-bottom: 18px; }
body[data-mode="tutorial"] .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.action-area { margin-top: auto; padding-top: 14px; gap: 10px; }
.action-hint { font-size: 10px; max-width: none; }
.action-area > .action-hint { flex: 1; min-width: 100px; }
.btn { min-height: 40px; padding: 9px 13px; font-size: 12px; }
.intro-roles { grid-template-columns: 1fr; gap: 10px; }
.role-card { padding: 12px; align-items: center; }
.role-card p { font-size: 12px; }
.sidebar { gap: 12px; align-self: stretch; }
.guide { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.guide-heading, .guide-note, .mini-cycle { display: none; }
.robot-scene { height: 76px; min-height: 76px; flex: 1; margin-bottom: 3px; }
.robot { transform: scale(.8); animation: none; }
.guide-name { margin: 5px 0 11px; }
.guide-name h2 { font-size: 18px; }
.speech { padding: 11px; font-size: 12px; line-height: 1.6; }
.concept-card { padding: 13px 14px; }
.concept-card p { font-size: 11px; line-height: 1.65; }
.concept-card h3 { margin-top: 6px; }
.feedback { margin-top: 10px; padding: 9px 11px; font-size: 11px; line-height: 1.5; }
.review-card { padding: 12px; gap: 12px; }
.output-display { min-width: 80px; height: 90px; }
.output-display .sprite { --size: 64px; }
.review-copy h4 { font-size: 14px; }
.review-copy p { font-size: 11px; }
.results { margin: 0 0 13px; gap: 8px; }
.result-stat { padding: 10px; }
.result-stat strong { font-size: 24px; }
.result-stat span { font-size: 10px; }
.lesson-list { margin: 0 0 14px; font-size: 12px; line-height: 1.8; }
.pipeline { display: none; }
.footer { width: 100%; max-width: none; margin: 0; flex-shrink: 0; padding: 6px 24px 10px; font-size: 9px; gap: 8px; }
.transition-card { padding: 18px; border: 1px solid #79cced55; border-radius: 8px; background: #79cced08; }
.transition-card h3 { font-size: 23px; margin: 9px 0; }
.transition-card p { color: var(--muted); font-size: 12px; }
.transition-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.transition-facts span { color: var(--cyan); font-size: 10px; border: 1px solid #79cced33; border-radius: 4px; padding: 4px 7px; }
.compact-guide { display: none; }
@media (max-height: 700px) and (min-width: 801px) {
  .workspace { padding-top: 10px; }
  .topbar { min-height: 46px; padding-block: 8px; }
  h1 { font-size: 24px; }
  .journey { margin-block: 10px; }
  .pose-platform { min-height: 69px; }
  .pose-row { gap: 10px; }
  .guide .robot-scene { height: 62px; }
  .robot { transform: scale(.7); }
  .guide { padding: 12px; }
  .concept-card { padding: 10px 12px; }
  .speech { font-size: 11px; line-height: 1.5; }
  .concept-card p { line-height: 1.5; }
}
@media (max-width: 1000px) and (min-width: 801px) {
  .lab-layout { grid-template-columns: minmax(0, 1fr) 200px; }
  .experiment { grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr); }
  .task-area { padding: 12px; }
  .online { display: none; }
  .decision-actions { gap: 6px; }
  .decision-actions .btn { padding-inline: 9px; }
}
@media (max-width: 800px) {
  .topbar { padding: 10px 14px; min-height: 45px; gap: 10px; }
  .brand { font-size: 18px; gap: 8px; }
  .mode-indicator { font-size: 9px; letter-spacing: 0; padding: 5px 7px; }
  .online, .session-tag { display: none; }
  .workspace { padding: 11px 12px 6px; }
  h1 { font-size: 23px; }
  .subtitle { font-size: 11px; }
  .journey { margin: 10px 0; }
  .lab-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .experiment { display: flex; flex-direction: column; }
  .experiment > .panel-header, .experiment > .specimen-board { flex-shrink: 0; }
  .panel-header { padding: 9px 12px; }
  .panel-header .micro-label { font-size: 8px; margin-bottom: 3px; }
  .panel-header h2 { font-size: 14px; }
  .specimen-board { padding: 13px 12px 10px; border-right: 0; border-bottom: 1px solid var(--line); }
  .pose-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .pose-platform { min-height: 62px; }
  .pose .sprite { --size: 48px; }
  .pose-small, .board-caption, .board-corner { display: none; }
  .pose-label { font-size: 8px; }
  .task-area { padding: 12px; flex: 1; }
  .task-heading { margin-bottom: 9px; }
  .task-heading h3 { font-size: 14px; }
  .compact-guide { display: block; padding: 8px 10px; margin-bottom: 10px; border-left: 2px solid var(--cyan); background: #79cced08; font-size: 11px; line-height: 1.45; color: #bed2df; }
  .intro-roles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .role-card { padding: 10px; }
  .role-card p { font-size: 10px; }
  body[data-mode="tutorial"] .choices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .choice { min-height: 88px; }
  .choice .sprite { --size: 48px; }
  .choice.suggested::after { font-size: 6px; letter-spacing: 0; }
  .choice-code { font-size: 7px; top: 5px; left: 5px; }
  .choice-check { top: 5px; right: 5px; width: 12px; height: 12px; font-size: 9px; line-height: 10px; }
  .choice-label { font-size: 8px; letter-spacing: 0; }
  .action-area { padding-top: 10px; flex-wrap: nowrap; }
  .action-area > .btn { width: auto; }
  .action-area > .action-hint { font-size: 9px; }
  .btn { min-height: 38px; font-size: 11px; padding: 9px 11px; }
  .footer { padding: 4px 12px 8px; font-size: 8px; }
  .footer > span:first-child { display: none; }
  .footer > span:nth-child(2) { flex: 1; }
  .transition-card { padding: 13px; }
  .transition-card h3 { font-size: 19px; }
  .transition-facts { margin-top: 12px; }
}


/* Campanha completa: conteúdo legível, com rolagem natural em telas pequenas. */
html, body { height: auto; min-height: 100%; overflow: visible; }
.game-viewport { position: relative; height: auto; min-height: 100dvh; overflow: visible; }
.game-screen { min-height: 100dvh; transform: none; }
.workspace { max-width: 1480px; margin: 0 auto; padding: 24px 28px 18px; }
.topbar { padding: 12px 28px; flex-wrap: wrap; gap: 12px; }
.brand { white-space: nowrap; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tool-button { border: 1px solid var(--line); border-radius: 5px; background: #14212e; color: #b8c9d6; padding: 8px 10px; font-size: 11px; min-height: 36px; }
.tool-button:hover { color: var(--text); border-color: #64899e; }
.tool-button[aria-pressed="true"] { color: var(--mint); border-color: #518f7a; }
.mode-indicator { margin-right: auto; font-size: 10px; }
h1 { font-size: clamp(24px, 2.7vw, 36px); line-height: 1.2; }
.subtitle { font-size: 13px; margin-top: 7px; }
.heading-row { align-items: center; }
.session-tag { min-width: 160px; }
.session-tag strong { font-size: 22px; }
.campaign-progress { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 22px 0 16px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #101c27; }
.campaign-node { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 8px; color: var(--muted); font-size: 12px; border-right: 1px solid var(--line); }
.campaign-node:last-child { border-right: 0; }
.campaign-node b { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 5px; border: 1px solid #425569; font: 12px var(--mono); }
.campaign-node.current { background: #79cced12; color: var(--cyan); box-shadow: inset 0 -2px var(--cyan); }
.campaign-node.done { color: var(--mint); }
.campaign-node.done b { background: #89edc812; border-color: #5b9d85; }
.campaign-node.locked { color: #7c8c9c; }
.mission-hud { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; margin-bottom: 14px; color: #afc7d8; }
#hud-score { color: var(--amber); font: 12px var(--mono); white-space: nowrap; }
.journey { margin: 0 0 20px; }
.lab-layout { grid-template-columns: minmax(0, 1fr) 245px; gap: 18px; flex: 1 0 auto; }
.experiment { grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr); min-height: 470px; }
.panel-header { padding: 14px 18px; }
.specimen-board { padding: 22px 16px; }
.pose-row { gap: 24px 10px; }
.pose-platform { min-height: 90px; }
.pose .sprite { --size: 80px; }
.pose-label { font-size: 10px; }
.pose-small { font-size: 8px; }
.task-area { padding: 22px; gap: 0; }
.task-heading { margin-bottom: 20px; }
.task-heading h3 { font-size: 17px; line-height: 1.35; }
.task-heading p { font-size: 12px; line-height: 1.6; }
#interaction-area { gap: 16px; }
.action-area { padding-top: 22px; flex-wrap: wrap; }
.btn { min-height: 44px; font-size: 13px; padding: 11px 15px; }
.btn.subtle { border-color: var(--line); color: #bccbd6; background: transparent; }
.action-hint { font-size: 11px; line-height: 1.65; }
.mission-map { display: grid; gap: 8px; }
.mission-card { display: flex; align-items: center; text-align: left; gap: 12px; padding: 11px 12px; min-height: 64px; background: #101d29; color: var(--text); border: 1px solid #344b5e; border-radius: 7px; transition: border-color .15s, background .15s; }
.mission-card:hover:not(:disabled) { background: #193347; border-color: var(--cyan); }
.mission-card:disabled { opacity: 1; color: #93a2b2; background: #0f1923; border-color: #263441; }
.mission-card:disabled .mission-number { color: #8495a5; border-color: #354554; }
.mission-card:disabled strong { color: #9aa8b8; }
.mission-card.finished { border-color: #477960; }
.mission-number { flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 36px; border: 1px solid #436376; color: var(--cyan); border-radius: 5px; font: 14px var(--mono); }
.mission-card strong { display: block; font-size: 13px; line-height: 1.4; }
.mission-card small { display: block; color: #9fb2c2; font-size: 10px; line-height: 1.5; margin-top: 3px; }
.map-status { margin-left: auto; flex-shrink: 0; font: 10px var(--mono); color: var(--mint); }
.mission-card:disabled .map-status { color: #8999aa; }
.tutorial-card { border-color: #668c9f; background: #152c39; }
.brief-card { padding: 24px; border: 1px solid #4b7085; background: radial-gradient(ellipse at top right, #79cced14, transparent 70%), #111f2b; border-radius: 8px; }
.brief-card h3 { font-size: 25px; line-height: 1.25; margin: 12px 0; }
.brief-card p { color: #b6c9d8; line-height: 1.85; font-size: 13px; }
.transition-facts { gap: 6px; }
.transition-facts span { font-size: 10px; }
.choices { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choice { min-height: 125px; padding: 14px 8px; gap: 7px; }
.choice .sprite { --size: 64px; }
.choice-label { font-size: 9px; }
.choice-code { font-size: 10px; top: 8px; left: 8px; }
.choice-check { top: 8px; right: 8px; }
body[data-mode="tutorial"] .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice.suggested { padding-bottom: 22px; }
.sprite-wrap { position: relative; display: inline-flex; flex-shrink: 0; vertical-align: middle; line-height: 0; }
.fault-color { filter: hue-rotate(125deg) saturate(1.8); }
.fault-detail::after { content: ""; position: absolute; z-index: 2; width: 46%; height: 18%; top: 39%; left: 27%; background: #0b1721; border-top: 2px dashed #edc979; border-bottom: 2px dashed #edc979; }
.review-card { gap: 18px; padding: 20px; flex-wrap: wrap; }
.output-display { min-width: 112px; height: 128px; }
.output-display .sprite { --size: 96px; }
.review-copy { flex: 1; min-width: 130px; }
.review-copy h4 { font-size: 17px; }
.review-copy p { font-size: 12px; line-height: 1.7; }
.decision-actions { width: 100%; display: flex; gap: 10px; }
.decision-actions .btn { flex: 1; justify-content: center; }
.diagnosis-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
.diagnosis-actions .btn { justify-content: space-between; }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.comparison-item { padding: 18px 8px; border: 1px solid #3e566a; background: #0b1721; border-radius: 8px; text-align: center; }
.comparison-item .micro-label { font-size: 9px; letter-spacing: .8px; }
.compare-sprite { display: grid; place-items: center; min-height: 160px; }
.compare-sprite .sprite { --size: 112px; }
.comparison-item strong { font-size: 11px; color: #acbdcd; font-weight: 400; }
.quiz-card h4 { margin: 0 0 18px; font-size: 17px; line-height: 1.6; }
.quiz-options { display: grid; gap: 10px; }
.quiz-option { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; min-height: 64px; padding: 14px; border: 1px solid #3a5265; border-radius: 6px; color: #dae5ed; background: #101d29; font-size: 13px; line-height: 1.6; }
.quiz-option span { flex-shrink: 0; font: 12px var(--mono); color: var(--cyan); }
.quiz-option:hover:not(:disabled) { border-color: var(--cyan); background: #192e3f; }
.quiz-option.correct { border-color: var(--mint); background: #89edc812; opacity: 1; }
.feedback { padding: 13px 15px; font-size: 12px; line-height: 1.7; margin-top: 16px; }
.guide { padding: 20px 18px; }
.guide .robot-scene { flex: 0 0 auto; height: 120px; }
.robot { transform: scale(1); }
.guide-name h2 { font-size: 22px; }
.speech { padding: 15px; font-size: 13px; line-height: 1.8; }
.concept-card { padding: 18px; }
.concept-card h3 { font-size: 16px; line-height: 1.5; }
.concept-card p { font-size: 12px; line-height: 1.8; }
.result-stat strong { font-size: 27px; }
.result-stat span { display: block; font-size: 10px; line-height: 1.5; }
.checkpoint-note { color: var(--muted); font-size: 12px; line-height: 1.8; }
.ending-score { text-align: center; padding: 20px; border: 1px solid #528c76; border-radius: 8px; background: radial-gradient(ellipse at center, #89edc815, transparent); }
.ending-score > strong { display: block; color: var(--mint); font: 48px var(--mono); margin: 12px 0; }
.ending-score small { font-size: 19px; color: var(--muted); }
.ending-score p { color: #c3e7d8; font-size: 13px; }
.report-rows { margin: 15px 0; }
.report-rows > div { display: flex; justify-content: space-between; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 12px; color: #afc3d3; }
.report-rows strong { font: 12px var(--mono); color: var(--mint); }
.footer { padding: 12px 28px; margin: 0 auto; max-width: 1480px; line-height: 1.8; }
body[data-stage="home"] .journey, body[data-stage="ending"] .journey { display: none; }
body[data-stage="home"] .experiment, body[data-stage="ending"] .experiment { grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr); }
dialog { max-width: 620px; width: calc(100% - 32px); max-height: calc(100dvh - 32px); padding: 28px; border: 1px solid #5a7c93; border-radius: 12px; background: #14212e; color: var(--text); box-shadow: 0 20px 100px #0008; }
dialog::backdrop { background: #030b13cc; backdrop-filter: blur(5px); }
dialog h2 { font-size: 25px; margin: 10px 0 20px; }
dialog p, dialog li { color: #becedb; font-size: 13px; line-height: 1.85; }
dialog p + p { margin-top: 16px; }
dialog ul { padding-left: 20px; }
dialog li + li { margin-top: 8px; }
dialog form { margin-top: 24px; }
.dialog-actions { margin-top: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 1500px) { .workspace { padding-top: 32px; } .experiment { min-height: 540px; } .task-area { padding: 28px; } .choice { min-height: 145px; } }
@media (max-width: 1150px) { .topbar { padding: 12px 20px; } .toolbar { gap: 4px; } .tool-button { font-size: 10px; padding-inline: 8px; } .lab-layout { grid-template-columns: minmax(0, 1fr) 210px; gap: 14px; } .experiment { grid-template-columns: minmax(150px, .6fr) minmax(0, 1.4fr); } .task-area { padding: 18px; } .specimen-board { padding-inline: 10px; } .pose .sprite { --size: 64px; } .speech { font-size: 12px; } .guide { padding-inline: 14px; } .mode-indicator { margin-right: 0; } }
@media (max-width: 900px) { .topbar { gap: 10px; } .toolbar { margin-left: auto; } .mode-indicator { order: 3; width: 100%; text-align: center; } .lab-layout { grid-template-columns: 1fr; } .sidebar { display: none; } .compact-guide { display: block; border-left: 2px solid var(--cyan); padding: 10px 12px; background: #79cced08; font-size: 12px; line-height: 1.65; color: #bdd0dd; margin-bottom: 16px; } .experiment { grid-template-columns: minmax(180px, .6fr) minmax(0, 1.4fr); } .mission-card { min-height: 64px; } .campaign-node { font-size: 11px; gap: 6px; } }
@media (max-width: 800px) { .workspace { padding: 20px 16px 14px; } .experiment, body[data-stage="home"] .experiment, body[data-stage="ending"] .experiment { display: flex; flex-direction: column; min-height: 0; } .specimen-board { padding: 15px 12px; border-right: 0; border-bottom: 1px solid var(--line); } .pose-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .pose-platform { min-height: 68px; } .pose .sprite { --size: 64px; } .pose-small { display: block; font-size: 7px; } .board-caption { display: none; } .task-area { padding: 20px; } .task-heading h3 { font-size: 16px; } .task-heading { margin-bottom: 16px; } .choice { min-height: 118px; } body[data-mode="tutorial"] .choices { grid-template-columns: repeat(4, minmax(0, 1fr)); } .choice .sprite { --size: 64px; } .action-area { flex-wrap: wrap; padding-top: 20px; } .action-area > .btn { width: auto; } .btn { font-size: 12px; } .footer { padding-inline: 16px; font-size: 9px; } .mission-hud { font-size: 11px; } .campaign-progress { margin-top: 18px; } }
@media (max-width: 540px) { .topbar { padding: 12px 14px; } .toolbar { width: 100%; margin-left: 0; } .tool-button { flex: 1; font-size: 10px; padding-inline: 5px; } .mode-indicator { width: auto; order: 0; margin-left: auto; font-size: 9px; padding: 5px 7px; } .brand { font-size: 19px; } h1 { font-size: 26px; } .subtitle { font-size: 12px; } .campaign-progress { grid-template-columns: repeat(3, minmax(0, 1fr)); } .campaign-node { padding: 9px 5px; font-size: 10px; } .campaign-node:nth-child(-n+3) { border-bottom: 1px solid var(--line); } .campaign-node:nth-child(3) { border-right: 0; } .journey { margin-bottom: 16px; gap: 5px; } .journey-step { font-size: 9px; } .journey-step > span { width: 22px; height: 22px; font-size: 9px; } .journey > i { min-width: 4px; } .task-area { padding: 16px; } .panel-header { padding: 12px; gap: 8px; } .panel-header h2 { font-size: 14px; } .panel-header .micro-label { font-size: 8px; } .pose .sprite { --size: 48px; } .pose-platform { min-height: 52px; } .pose-label { font-size: 8px; } .pose-small { font-size: 6px; } .mission-card { gap: 9px; padding: 10px; } .mission-card strong { font-size: 12px; } .mission-card small { font-size: 10px; } .map-status { font-size: 9px; } .mission-number { width: 26px; font-size: 12px; } .choices, body[data-mode="tutorial"] .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } .choice { min-height: 122px; } .choice .sprite { --size: 64px; } .brief-card { padding: 19px; } .brief-card h3 { font-size: 24px; } .brief-card p { font-size: 12px; } .review-card { padding: 15px; gap: 12px; } .output-display { min-width: 96px; height: 110px; } .output-display .sprite { --size: 80px; } .review-copy h4 { font-size: 15px; } .decision-actions { flex-direction: column; } .decision-actions .btn { width: 100%; } .comparison-grid { gap: 10px; } .compare-sprite { min-height: 120px; } .compare-sprite .sprite { --size: 80px; } .comparison-item .micro-label { font-size: 8px; letter-spacing: 0; } .quiz-card h4 { font-size: 16px; } .quiz-option { padding: 12px; font-size: 12px; } .feedback { font-size: 12px; padding: 12px; } .results { gap: 6px; } .result-stat { padding: 10px 8px; } .result-stat strong { font-size: 22px; } .ending-score > strong { font-size: 40px; } .checkpoint-note { font-size: 11px; } dialog { padding: 22px; } }
@media (prefers-reduced-motion: reduce) { .mission-card { transition: none; } }
