:root {
  --sg-bg: radial-gradient(circle at top, #132544 0%, #08111f 48%, #040811 100%);
  --sg-card: rgba(10, 18, 33, 0.88);
  --sg-card-border: rgba(129, 140, 248, 0.25);
  --sg-text: #f8fbff;
  --sg-muted: #b9c4db;
  --sg-primary: #60a5fa;
  --sg-accent: #34d399;
  --sg-danger: #fca5a5;
}

* {
  box-sizing: border-box;
}

body.student-game-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background: var(--sg-bg);
  color: var(--sg-text);
  overflow-x: hidden;
}

body.student-game-body-portal {
  overflow: hidden;
}

.student-game-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.student-game-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 8, 17, 0.72);
  backdrop-filter: blur(8px);
}

.student-game-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sg-text);
  text-decoration: none;
}

.student-game-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--sg-primary), var(--sg-accent));
  color: #04101c;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.student-game-brand-text {
  font-size: 1.1rem;
  font-weight: 700;
}

.student-game-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.student-game-chip,
.student-game-link {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--sg-text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
}

.student-game-main {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.student-game-main-portal {
  width: min(100vw, 100%);
  margin: 0;
  padding: 0;
  height: calc(100vh - 89px);
  overflow: hidden;
}

.student-game-flashes {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.student-game-flash {
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
}

.student-game-flash-error {
  border-color: rgba(252, 165, 165, 0.45);
  color: #fee2e2;
}

.student-game-flash-warning {
  border-color: rgba(253, 224, 71, 0.45);
  color: #fef3c7;
}

.student-game-hero,
.student-game-panel {
  display: grid;
  gap: 20px;
}

.student-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.student-game-card {
  background: var(--sg-card);
  border: 1px solid var(--sg-card-border);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  position: relative;
}

.student-game-card-large {
  padding: 32px;
}

.student-game-kicker {
  margin: 0 0 8px;
  color: var(--sg-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
}

.student-game-card h1,
.student-game-card h2 {
  margin: 0 0 12px;
}

.student-game-copy,
.student-game-note {
  color: var(--sg-muted);
  line-height: 1.6;
}

.student-game-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.student-game-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 20px;
  border-radius: 18px;
  border: none;
  background: linear-gradient(135deg, var(--sg-primary), var(--sg-accent));
  color: #03131f;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.student-game-button:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 12px 28px rgba(52, 211, 153, 0.22);
  filter: saturate(1.08);
}

.student-game-button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.student-game-button-secondary {
  background: transparent;
  color: var(--sg-text);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.student-game-button-small {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.95rem;
  border-radius: 14px;
}

.student-game-audio-block {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  gap: 12px;
}

.student-game-audio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.student-game-audio-title {
  display: block;
  color: var(--sg-text);
  font-size: 1rem;
}

.student-game-audio-subtitle {
  margin-top: 4px;
  color: var(--sg-muted);
  font-size: 0.92rem;
}

.student-game-audio-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.student-game-audio-status {
  color: var(--sg-muted);
  font-size: 0.95rem;
}

.student-game-audio-disclosure {
  margin: 0;
  color: rgba(185, 196, 219, 0.78);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

.student-game-audio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sg-muted);
  font-size: 0.92rem;
}

.student-game-audio-toggle input {
  width: 18px;
  height: 18px;
}

.student-game-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.student-game-form label {
  display: grid;
  gap: 8px;
}

.student-game-form span {
  color: var(--sg-muted);
  font-weight: 700;
}

.student-game-form input,
.student-game-form select {
  width: 100%;
  min-height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--sg-text);
  padding: 0 16px;
  font-size: 1rem;
}

.student-game-inline-card,
.student-game-list-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 16px;
}

.student-game-inline-card-compact {
  margin-top: 12px;
  padding: 10px 14px;
}

.student-game-meta-grid,
.student-game-score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.student-game-score-card {
  justify-content: space-between;
}

.student-game-subtitle {
  margin: 8px 0 0;
}

.student-game-progress-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.student-game-progress-label {
  color: var(--sg-muted);
  font-weight: 700;
}

.student-game-progress-track {
  height: 14px;
  margin: 18px 0 22px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.student-game-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sg-primary), var(--sg-accent));
  transition: width 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.45);
}

.student-game-scene-card {
  margin-bottom: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 22px;
  overflow: hidden;
}

.student-game-portal {
  height: 100%;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(96, 165, 250, 0.14) 0%, rgba(96, 165, 250, 0) 26%),
    linear-gradient(180deg, rgba(2, 6, 16, 0.96), rgba(7, 13, 24, 1));
}

.student-game-portal-world {
  position: relative;
  height: 100%;
  min-height: 0;
  padding: 18px 18px 190px;
}

.student-game-portal-hud {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  pointer-events: none;
}

.student-game-portal-hud-main,
.student-game-portal-hud-side {
  pointer-events: auto;
}

.student-game-portal-hud-main {
  max-width: min(560px, 62%);
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(7, 13, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.student-game-portal-hud-main h1 {
  margin-bottom: 0;
}

.student-game-portal-hud-side {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.student-game-portal-count,
.student-game-link-portal {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(7, 13, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.student-game-link-portal {
  color: var(--sg-text);
}

.student-game-portal-progress {
  position: absolute;
  top: 116px;
  left: 18px;
  right: 18px;
  z-index: 7;
}

.student-game-portal-progress .student-game-progress-track {
  margin: 0;
  height: 12px;
  background: rgba(7, 13, 24, 0.72);
  backdrop-filter: blur(10px);
}

.student-game-scene-card-portal {
  height: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  border: none;
  background: transparent;
}

.student-game-portal .student-game-stage {
  margin: 0;
  border-radius: 0;
  height: 100%;
  min-height: 0;
  border: none;
  box-shadow: inset 0 -140px 100px rgba(2, 6, 16, 0.4);
}

.student-game-portal .student-game-stage-ground-band {
  height: 148px;
}

.student-game-portal .student-game-stage-moon {
  top: 38px;
  right: 48px;
  width: 74px;
  height: 74px;
}

.student-game-portal .student-game-asset-ship {
  width: min(38vw, 380px);
}

.student-game-portal .student-game-asset-captain {
  width: min(19vw, 190px);
}

.student-game-portal .student-game-asset-beep {
  width: min(14vw, 144px);
}

.student-game-portal .student-game-asset-beacon {
  width: min(16vw, 150px);
}

.student-game-portal .ship-landing { left: 3%; top: 10%; }
.student-game-portal .beep-landing { left: 42%; top: 46%; }
.student-game-portal .beacon-landing { right: 5%; top: 12%; }
.student-game-portal .student-game-landing-lights { left: 15%; top: 72%; width: 26%; height: 70px; }
.student-game-portal .beep-gap { left: 6%; top: 45%; }
.student-game-portal .student-game-gap { left: 31%; right: 21%; bottom: 12%; height: 74px; }
.student-game-portal .student-game-jump-arc { left: 17%; top: 22%; width: 38%; height: auto; transform: rotate(-6deg); }
.student-game-portal .tool-gap { right: 9%; top: 47%; }
.student-game-portal .captain-search { left: 4%; top: 34%; }
.student-game-portal .beep-search { left: 23%; top: 48%; }
.student-game-portal .student-game-rock-cluster { right: 6%; bottom: 11%; width: 24%; height: 112px; }
.student-game-portal .student-game-footprints { left: 37%; bottom: 14%; width: 20%; height: 48px; }
.student-game-portal .tool-search { right: 14%; top: 42%; }
.student-game-portal .captain-crater { left: 4%; top: 35%; }
.student-game-portal .student-game-crater { left: 29%; top: 34%; width: 38%; height: 168px; }
.student-game-portal .student-game-flashlight-beam-prop { left: 18%; top: 38%; width: 34%; height: 148px; }
.student-game-portal .beacon-crater { right: 5%; top: 16%; width: min(14vw, 132px); }
.student-game-portal .ship-return { left: 4%; top: 18%; width: min(36vw, 360px); }
.student-game-portal .beep-return { left: 34%; top: 50%; }
.student-game-portal .beacon-return { right: 4%; top: 12%; width: min(16vw, 170px); }
.student-game-portal .tool-return { left: 49%; top: 65%; }

.student-game-portal-tray {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9;
  padding: 0 16px 16px;
}

.student-game-portal-tray-inner {
  max-width: 1200px;
  margin: 0 auto;
  max-height: min(36vh, 360px);
  overflow-y: auto;
  padding: 18px 20px 18px;
  border-radius: 28px 28px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  background:
    linear-gradient(180deg, rgba(11, 20, 36, 0.94), rgba(4, 8, 17, 0.98));
  box-shadow: 0 -12px 30px rgba(96, 165, 250, 0.08), 0 24px 60px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
}

.student-game-speaker-line-portal {
  margin-bottom: 8px;
}

.student-game-scene-prompt-portal {
  font-size: clamp(1.3rem, 1.65vw, 1.7rem);
  max-width: 980px;
}

.student-game-form-portal {
  gap: 14px;
  margin-top: 12px;
}

.student-game-choice-grid-portal {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.student-game-choice-card-portal {
  min-height: 76px;
  padding: 14px 16px;
}

.student-game-choice-card-portal .student-game-choice-title {
  font-size: 1rem;
}

.student-game-reason-block-portal {
  margin-top: 6px;
}

.student-game-actions-portal {
  justify-content: flex-end;
  margin-top: 6px;
}

.student-game-feedback-card-portal {
  margin: 0;
  min-height: 0;
  height: 100%;
  border-radius: 0;
  border: none;
  box-shadow: inset 0 -140px 100px rgba(2, 6, 16, 0.4);
}

.student-game-portal-tray .student-game-copy,
.student-game-portal-tray .student-game-scene-context,
.student-game-portal-tray .student-game-scene-goal {
  margin-top: 0;
  margin-bottom: 10px;
}

.student-game-portal-tray .student-game-audio-block {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
}

.student-game-portal-tray .student-game-audio-title {
  font-size: 0.95rem;
}

.student-game-portal-tray .student-game-audio-subtitle,
.student-game-portal-tray .student-game-audio-disclosure {
  font-size: 0.8rem;
}

.student-game-portal-tray .student-game-audio-actions {
  gap: 8px;
}

.student-game-portal-tray .student-game-button-small {
  min-height: 38px;
  padding: 0 12px;
}

.student-game-portal-tray .student-game-score-grid {
  margin-top: 10px;
}

.student-game-feedback-card {
  position: relative;
  overflow: hidden;
  margin: 18px 0;
  min-height: 360px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(13, 24, 44, 0.96), rgba(7, 13, 24, 0.96));
}

.student-game-feedback-card-good {
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.18), 0 16px 44px rgba(16, 185, 129, 0.14);
}

.student-game-feedback-card-ok {
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.16), 0 16px 44px rgba(59, 130, 246, 0.12);
}

.student-game-feedback-card-retry {
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.16), 0 16px 44px rgba(245, 158, 11, 0.12);
}

.student-game-feedback-card-success {
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.18), 0 16px 44px rgba(16, 185, 129, 0.14);
}

.student-game-feedback-card-partial {
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.16), 0 16px 44px rgba(59, 130, 246, 0.12);
}

.student-game-feedback-card-recoverable {
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.16), 0 16px 44px rgba(245, 158, 11, 0.12);
}

.student-game-feedback-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(4, 8, 17, 0.08), rgba(4, 8, 17, 0.38) 42%, rgba(4, 8, 17, 0.88));
}

.student-game-feedback-bubble {
  max-width: 720px;
  padding: 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(9, 18, 33, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.student-game-feedback-speaker {
  display: block;
  margin-bottom: 8px;
  color: var(--sg-accent);
  font-size: 0.98rem;
}

.student-game-feedback-text {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--sg-text);
}

.student-game-story-block {
  margin-top: 20px;
  padding: 20px 22px;
  border-radius: 22px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.06), rgba(52, 211, 153, 0.03));
  position: relative;
  overflow: hidden;
}

.student-game-story-block-beacon::after {
  content: "";
  position: absolute;
  inset: -30% auto auto 70%;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.25) 0%, rgba(52, 211, 153, 0.16) 35%, rgba(0, 0, 0, 0) 72%);
  animation: student-game-beacon-glow 3.2s ease-in-out infinite;
  pointer-events: none;
}

.student-game-intro-stage {
  position: relative;
  margin-top: 20px;
  min-height: 340px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.18);
  background:
    radial-gradient(circle at 50% 42%, rgba(59, 130, 246, 0.22) 0%, rgba(0, 0, 0, 0) 34%),
    radial-gradient(circle at 15% 82%, rgba(96, 165, 250, 0.16) 0%, rgba(96, 165, 250, 0) 18%),
    radial-gradient(circle at 88% 26%, rgba(248, 250, 252, 0.12) 0%, rgba(248, 250, 252, 0) 20%),
    linear-gradient(180deg, rgba(3, 9, 20, 0.99), rgba(9, 18, 35, 0.98));
  box-shadow: inset 0 -36px 60px rgba(15, 23, 42, 0.42);
}

.student-game-intro-hyperspace {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(96, 165, 250, 0) 0%, rgba(96, 165, 250, 0.1) 38%, rgba(255, 255, 255, 0.28) 50%, rgba(52, 211, 153, 0.12) 62%, rgba(52, 211, 153, 0) 100%);
  filter: blur(16px);
  opacity: 0.92;
}

.student-game-intro-starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.student-game-intro-route {
  position: absolute;
  left: 150px;
  right: 146px;
  top: 54%;
  height: 6px;
  border-radius: 999px;
  transform: translateY(-50%);
  background:
    linear-gradient(90deg, rgba(96, 165, 250, 0.16) 0%, rgba(191, 219, 254, 0.62) 46%, rgba(255, 255, 255, 0.86) 54%, rgba(52, 211, 153, 0.34) 100%);
  box-shadow: 0 0 18px rgba(191, 219, 254, 0.28);
  opacity: 0.95;
}

.student-game-intro-earth,
.student-game-intro-moon {
  position: absolute;
  bottom: 28px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

.student-game-intro-earth {
  left: 28px;
  width: 136px;
  height: 136px;
  background:
    radial-gradient(circle at 30% 30%, #93c5fd 0%, #60a5fa 24%, #2563eb 56%, #0f172a 100%);
  box-shadow: 0 0 42px rgba(96, 165, 250, 0.4);
}

.student-game-intro-moon {
  right: 28px;
  width: 114px;
  height: 114px;
  background:
    radial-gradient(circle at 30% 30%, #f8fafc 0%, #e2e8f0 36%, #94a3b8 70%, #475569 100%);
  box-shadow: 0 0 34px rgba(255, 255, 255, 0.22);
}

.student-game-intro-earth-ring {
  position: absolute;
  inset: -10px;
  border: 2px solid rgba(147, 197, 253, 0.22);
  border-radius: 999px;
}

.student-game-intro-earth-continent,
.student-game-intro-earth-cloud,
.student-game-intro-moon-crater {
  position: absolute;
  display: block;
}

.student-game-intro-earth-continent {
  background: rgba(52, 211, 153, 0.78);
  border-radius: 58% 42% 50% 50%;
  filter: blur(0.3px);
}

.student-game-intro-earth-continent-one {
  width: 44px;
  height: 30px;
  top: 34px;
  left: 26px;
  transform: rotate(-18deg);
}

.student-game-intro-earth-continent-two {
  width: 36px;
  height: 24px;
  right: 22px;
  bottom: 28px;
  transform: rotate(22deg);
}

.student-game-intro-earth-cloud {
  background: rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  filter: blur(1px);
}

.student-game-intro-earth-cloud-one {
  width: 56px;
  height: 14px;
  top: 18px;
  left: 48px;
}

.student-game-intro-earth-cloud-two {
  width: 48px;
  height: 12px;
  bottom: 34px;
  left: 16px;
}

.student-game-intro-moon-crater {
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.34);
  border: 2px solid rgba(71, 85, 105, 0.18);
}

.student-game-intro-moon-crater-one {
  width: 24px;
  height: 24px;
  top: 24px;
  left: 24px;
}

.student-game-intro-moon-crater-two {
  width: 16px;
  height: 16px;
  top: 52px;
  right: 22px;
}

.student-game-intro-moon-crater-three {
  width: 20px;
  height: 20px;
  bottom: 20px;
  left: 34px;
}

.student-game-intro-earth-label,
.student-game-intro-moon-label {
  position: absolute;
  bottom: 10px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(248, 251, 255, 0.86);
}

.student-game-intro-earth-label {
  left: 62px;
}

.student-game-intro-moon-label {
  right: 56px;
}

.student-game-intro-ship {
  position: absolute;
  width: 272px;
  top: 47%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: student-game-intro-ship-flight 4.2s ease-in-out infinite;
  filter:
    drop-shadow(0 0 30px rgba(96, 165, 250, 0.28))
    drop-shadow(0 10px 18px rgba(15, 23, 42, 0.32));
  z-index: 5;
}

.student-game-intro-ship-exhaust {
  position: absolute;
  top: 48.5%;
  left: calc(50% - 92px);
  width: 92px;
  height: 28px;
  transform: translate(-100%, -50%);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(125, 211, 252, 0.78) 30%, rgba(255, 255, 255, 0.96) 72%, rgba(255, 255, 255, 0) 100%);
  filter: blur(8px);
  animation: student-game-intro-exhaust-pulse 1.2s ease-in-out infinite;
  z-index: 4;
}

.student-game-intro-trail {
  position: absolute;
  top: 50%;
  left: 23%;
  width: 42%;
  height: 28px;
  transform: translateY(-50%);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(96, 165, 250, 0) 0%, rgba(96, 165, 250, 0.26) 22%, rgba(255, 255, 255, 0.9) 68%, rgba(255, 255, 255, 0) 100%);
  filter: blur(9px);
  opacity: 0.92;
  animation: student-game-intro-trail-pulse 1.4s ease-in-out infinite;
  z-index: 3;
}

.student-game-intro-speedline {
  position: absolute;
  left: 24%;
  width: 34%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(191, 219, 254, 0.92), rgba(255, 255, 255, 0));
  filter: blur(1px);
  opacity: 0.84;
  animation: student-game-intro-speedline 1.1s linear infinite;
  z-index: 2;
}

.student-game-intro-speedline-one {
  top: 38%;
}

.student-game-intro-speedline-two {
  top: 50%;
  width: 40%;
  animation-delay: 0.2s;
}

.student-game-intro-speedline-three {
  top: 62%;
  width: 30%;
  animation-delay: 0.4s;
}

.student-game-intro-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 330px;
  height: 58px;
  border-radius: 999px;
  transform: translate(-50%, 72px);
  background: radial-gradient(circle, rgba(96, 165, 250, 0.32) 0%, rgba(52, 211, 153, 0.18) 35%, rgba(0, 0, 0, 0) 72%);
  animation: student-game-beacon-glow 2.8s ease-in-out infinite;
  z-index: 1;
}

.student-game-intro-stage-caption {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.28);
  background: rgba(15, 23, 42, 0.54);
  color: rgba(239, 246, 255, 0.92);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 6;
}

.student-game-intro-window {
  position: absolute;
  top: -22px;
  width: 140px;
  height: 140%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  border: 2px solid rgba(255, 255, 255, 0.08);
  filter: blur(1px);
  z-index: 4;
}

.student-game-intro-window-left {
  left: -80px;
  transform: rotate(10deg);
}

.student-game-intro-window-right {
  right: -80px;
  transform: rotate(-10deg);
}

.student-game-intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.student-game-intro-beat {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.student-game-intro-beat-title {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.student-game-character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.student-game-character-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: student-game-float 4.6s ease-in-out infinite;
}

.student-game-character-portrait {
  margin-bottom: 10px;
}

.student-game-character-name {
  display: block;
  font-size: 1rem;
  font-weight: 800;
}

.student-game-character-role {
  margin-top: 4px;
  color: var(--sg-primary);
  font-size: 0.9rem;
  font-weight: 700;
}

.student-game-speaker-line {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.student-game-speaker {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.22);
  color: var(--sg-text);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  animation: student-game-bob-in 0.45s ease-out both;
}

.student-game-speaker-avatar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(96,165,250,0.08));
  border: 1px solid rgba(255,255,255,0.14);
  flex: 0 0 auto;
}

.student-game-speaker-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.student-game-speaker-avatar-fallback {
  font-size: 1rem;
  font-weight: 800;
  color: var(--sg-text);
}

.student-game-scene-context {
  margin: 0 0 12px;
  color: var(--sg-muted);
  line-height: 1.6;
}

.student-game-scene-prompt {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.4;
  font-weight: 700;
  animation: student-game-rise-in 0.38s ease-out both;
}

.student-game-scene-goal {
  margin: 14px 0 0;
  color: var(--sg-accent);
  font-weight: 700;
  line-height: 1.5;
}

.student-game-stage {
  position: relative;
  margin: -6px -6px 18px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(9, 18, 35, 0.95), rgba(10, 18, 33, 0.86));
  height: 280px;
}

.student-game-stage-sky {
  position: absolute;
  inset: 0;
}

.student-game-stage-star {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.82);
  animation: student-game-star-twinkle 3.2s ease-in-out infinite;
}

.student-game-stage-star.star-a { top: 24px; left: 46px; }
.student-game-stage-star.star-b { top: 52px; left: 170px; animation-delay: 0.7s; }
.student-game-stage-star.star-c { top: 40px; right: 132px; animation-delay: 1.2s; }
.student-game-stage-star.star-d { top: 74px; right: 68px; animation-delay: 1.6s; }

.student-game-stage-moon {
  position: absolute;
  top: 20px;
  right: 36px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, rgba(248,250,252,0.18), rgba(248,250,252,0.06));
  animation: student-game-float-slow 7s ease-in-out infinite;
}

.student-game-stage-ground-band {
  position: absolute;
  left: -8%;
  right: -8%;
  bottom: -16px;
  height: 118px;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, #475569, #1e293b);
}

.student-game-asset {
  position: absolute;
  display: block;
  pointer-events: none;
  user-select: none;
}

.student-game-asset-captain {
  width: 138px;
  animation: student-game-float-slow 3.8s ease-in-out infinite;
}

.student-game-asset-beep {
  width: 110px;
  animation: student-game-beep-bob 2.2s ease-in-out infinite;
}

.student-game-asset-beacon {
  width: 110px;
  animation: student-game-beacon-object 2.8s ease-in-out infinite;
}

.student-game-asset-ship {
  width: 300px;
  animation: student-game-ship-hover 3.4s ease-in-out infinite;
}

.ship-landing { left: 12px; top: 44px; }
.beep-landing { left: 336px; top: 132px; }
.beacon-landing { right: 44px; top: 42px; }
.student-game-landing-lights {
  position: absolute;
  left: 88px;
  top: 206px;
  width: 186px;
  height: 54px;
  background: linear-gradient(90deg, rgba(52,211,153,0.22), rgba(96,165,250,0.05), rgba(52,211,153,0.22));
  filter: blur(18px);
  animation: student-game-beam-flicker 1.8s ease-in-out infinite;
}

.beep-gap { left: 38px; top: 126px; }
.student-game-gap {
  position: absolute;
  left: 258px;
  right: 228px;
  bottom: 54px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(2,6,23,0.95), rgba(15,23,42,0.86));
}
.student-game-jump-arc {
  position: absolute;
  left: 184px;
  top: 84px;
  width: 250px;
  height: auto;
  overflow: visible;
  transform: rotate(-8deg);
}

.student-game-jump-arc-path {
  animation: student-game-dash-move 2.2s linear infinite;
}
.tool-gap { right: 72px; top: 144px; }

.captain-search { left: 26px; top: 92px; }
.beep-search { left: 182px; top: 130px; }
.student-game-rock-cluster {
  position: absolute;
  right: 52px;
  bottom: 46px;
  width: 170px;
  height: 90px;
  background:
    radial-gradient(circle at 22% 60%, #334155 0 28px, transparent 29px),
    radial-gradient(circle at 56% 72%, #475569 0 26px, transparent 27px),
    radial-gradient(circle at 82% 48%, #64748b 0 22px, transparent 23px);
}
.student-game-footprints {
  position: absolute;
  left: 300px;
  bottom: 58px;
  width: 136px;
  height: 36px;
  background:
    radial-gradient(ellipse at 8% 56%, rgba(203,213,225,0.45) 0 8px, transparent 9px),
    radial-gradient(ellipse at 28% 34%, rgba(203,213,225,0.45) 0 8px, transparent 9px),
    radial-gradient(ellipse at 50% 56%, rgba(203,213,225,0.45) 0 8px, transparent 9px),
    radial-gradient(ellipse at 72% 34%, rgba(203,213,225,0.45) 0 8px, transparent 9px);
}
.tool-search { right: 108px; top: 130px; }

.captain-crater { left: 30px; top: 102px; }
.student-game-crater {
  position: absolute;
  left: 238px;
  top: 112px;
  width: 280px;
  height: 126px;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(circle at 50% 70%, rgba(2,6,23,0.95), rgba(15,23,42,0.92) 62%, transparent 63%);
}
.student-game-flashlight-beam-prop {
  position: absolute;
  left: 146px;
  top: 118px;
  width: 248px;
  height: 120px;
  clip-path: polygon(0 45%, 100% 0, 100% 100%);
  background: linear-gradient(90deg, rgba(253,224,71,0.24), rgba(253,224,71,0.02));
  animation: student-game-beam-flicker 1.4s ease-in-out infinite;
}
.beacon-crater { right: 46px; top: 56px; width: 96px; }

.ship-return { left: 8px; top: 66px; width: 278px; }
.beep-return { left: 276px; top: 136px; }
.beacon-return { right: 50px; top: 36px; width: 122px; }
.tool-return { left: 414px; top: 182px; }

.student-game-tool-prop {
  position: absolute;
  width: 58px;
  height: 42px;
  border-radius: 12px;
  background:
    linear-gradient(90deg, #fcd34d 0 62%, #f59e0b 62% 100%);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
  animation: student-game-tool-shimmer 2.4s ease-in-out infinite;
}

.student-game-tool-prop::before {
  content: "";
  position: absolute;
  right: -6px;
  top: -10px;
  width: 16px;
  height: 58px;
  border-radius: 8px;
  background: #f59e0b;
  transform: rotate(12deg);
}

.student-game-tool-prop::after {
  content: "";
  position: absolute;
  left: -8px;
  top: -12px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #fef08a;
  box-shadow: 26px 8px 0 #fde68a;
  animation: student-game-spark-pop 1.8s ease-in-out infinite;
}

.student-game-choice-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.student-game-choice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  animation: student-game-rise-in 0.42s ease-out both;
}

.student-game-choice-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(96, 165, 250, 0.08);
  box-shadow: 0 12px 22px rgba(96, 165, 250, 0.12);
}

.student-game-choice-card input {
  width: 24px;
  height: 24px;
  margin: 0;
  accent-color: var(--sg-accent);
  flex: 0 0 auto;
}

.student-game-choice-card:has(input:checked) {
  border-color: rgba(52, 211, 153, 0.8);
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.18), rgba(96, 165, 250, 0.14));
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.16), 0 12px 28px rgba(52, 211, 153, 0.18);
}

.student-game-choice-card:has(input:checked) .student-game-choice-title {
  color: #ffffff;
}

.student-game-choice-title {
  color: var(--sg-text);
  font-size: 1.05rem;
  font-weight: 700;
}

.student-game-choice-card-small {
  min-height: 70px;
}

.student-game-reason-block {
  margin-top: 10px;
}

.student-game-stars {
  display: flex;
  gap: 10px;
  margin: 20px 0 10px;
  font-size: 2rem;
  color: #facc15;
}

.student-game-star-pop {
  display: inline-block;
  opacity: 0;
  transform: scale(0.35) rotate(-18deg);
  animation: student-game-star-pop 0.45s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

.student-game-star-muted {
  color: rgba(250, 204, 21, 0.22);
}

.student-game-history-item {
  justify-content: space-between;
}

.student-game-history-main,
.student-game-history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.student-game-scene-detail {
  display: grid;
  gap: 10px;
}

.student-game-choice-list {
  margin: 0;
  padding-left: 20px;
  color: var(--sg-muted);
}

.student-game-choice-list li {
  margin: 4px 0;
}

.student-game-choice-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  margin-left: 8px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.22);
  color: var(--sg-text);
  font-size: 0.82rem;
}

.student-game-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.student-game-beacon {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: radial-gradient(circle, #f8fbff 0%, #86efac 30%, #34d399 58%, rgba(52, 211, 153, 0) 76%);
  box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.09), 0 0 24px rgba(52, 211, 153, 0.44);
  animation: student-game-beacon-glow 2.8s ease-in-out infinite;
}

.student-game-beacon-small {
  width: 14px;
  height: 14px;
  top: 16px;
  right: 16px;
}

.student-game-animate-scene {
  animation: student-game-scene-enter 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.student-game-animate-rise {
  animation: student-game-rise-in 0.5s ease-out both;
}

.student-game-float-card {
  animation-name: student-game-float, student-game-rise-in;
  animation-duration: 4.8s, 0.45s;
  animation-timing-function: ease-in-out, ease-out;
  animation-iteration-count: infinite, 1;
  animation-fill-mode: none, both;
}

.student-game-scene-preview-card {
  animation: student-game-rise-in 0.45s ease-out both;
}

@keyframes student-game-scene-enter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes student-game-rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes student-game-bob-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes student-game-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes student-game-beacon-glow {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.96);
    box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.08), 0 0 18px rgba(52, 211, 153, 0.34);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 0 0 10px rgba(52, 211, 153, 0.1), 0 0 34px rgba(96, 165, 250, 0.42);
  }
}

@keyframes student-game-star-pop {
  0% {
    opacity: 0;
    transform: scale(0.35) rotate(-18deg);
  }
  70% {
    opacity: 1;
    transform: scale(1.14) rotate(8deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes student-game-star-twinkle {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes student-game-ship-hover {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes student-game-beep-bob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(-2deg);
  }
}

@keyframes student-game-beacon-object {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.35));
  }
  50% {
    transform: translateY(-4px) scale(1.03);
    filter: drop-shadow(0 0 14px rgba(96, 165, 250, 0.45));
  }
}

@keyframes student-game-tool-shimmer {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }
  50% {
    transform: rotate(-4deg) translateY(-2px);
  }
}

@keyframes student-game-spark-pop {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.35);
  }
}

@keyframes student-game-dash-move {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -36;
  }
}

@keyframes student-game-beam-flicker {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes student-game-flashlight-wiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-4deg);
  }
}

@keyframes student-game-float-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes student-game-intro-ship-flight {
  0% {
    transform: translate(-59%, -45%) scale(0.86) rotate(-10deg);
  }
  35% {
    transform: translate(-50%, -49%) scale(1.02) rotate(-2deg);
  }
  70% {
    transform: translate(-37%, -51%) scale(1.14) rotate(7deg);
  }
  100% {
    transform: translate(-59%, -45%) scale(0.86) rotate(-10deg);
  }
}

@keyframes student-game-intro-exhaust-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: translate(-100%, -50%) scaleX(0.88);
  }
  50% {
    opacity: 1;
    transform: translate(-100%, -50%) scaleX(1.06);
  }
}

@keyframes student-game-intro-trail-pulse {
  0%,
  100% {
    opacity: 0.72;
    transform: translateY(-50%) scaleX(0.94);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) scaleX(1.02);
  }
}

@keyframes student-game-intro-speedline {
  0% {
    opacity: 0;
    transform: translateX(-10%) scaleX(0.8);
  }
  30% {
    opacity: 0.92;
  }
  100% {
    opacity: 0;
    transform: translateX(36%) scaleX(1.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .student-game-button,
  .student-game-progress-fill,
  .student-game-character-card,
  .student-game-speaker,
  .student-game-scene-prompt,
  .student-game-choice-card,
  .student-game-star-pop,
  .student-game-beacon,
  .student-game-animate-scene,
  .student-game-animate-rise,
  .student-game-float-card,
  .student-game-scene-preview-card,
  .student-game-story-block-beacon::after,
  .student-game-stage-star,
  .student-game-stage-moon,
  .student-game-asset,
  .student-game-landing-lights,
  .student-game-jump-arc,
  .student-game-tool-prop,
  .student-game-tool-prop::after,
  .student-game-flashlight-beam-prop,
  .student-game-intro-ship,
  .student-game-intro-ship-exhaust,
  .student-game-intro-trail,
  .student-game-intro-glow,
  .student-game-intro-speedline {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 720px) {
  body.student-game-body-portal {
    overflow: auto;
  }

  .student-game-main-portal {
    height: auto;
    overflow: visible;
  }

  .student-game-header {
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .student-game-main {
    width: min(100% - 20px, 1080px);
    padding-top: 20px;
  }

  .student-game-card,
  .student-game-card-large {
    padding: 20px;
  }

  .student-game-progress-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .student-game-portal {
    min-height: calc(100vh - 120px);
    height: auto;
  }

  .student-game-portal-world {
    height: auto;
    min-height: 420px;
    padding: 12px 12px 170px;
  }

  .student-game-portal-hud {
    top: 12px;
    left: 12px;
    right: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .student-game-portal-hud-main {
    max-width: none;
    width: 100%;
    padding: 14px 16px;
  }

  .student-game-portal-hud-side {
    justify-content: space-between;
  }

  .student-game-portal-progress {
    top: 132px;
    left: 12px;
    right: 12px;
  }

  .student-game-portal .student-game-stage,
  .student-game-feedback-card-portal {
    min-height: 400px;
  }

  .student-game-portal .student-game-asset-ship {
    width: min(58vw, 300px);
  }

  .student-game-portal .student-game-asset-captain {
    width: min(28vw, 150px);
  }

  .student-game-portal .student-game-asset-beep {
    width: min(22vw, 110px);
  }

  .student-game-portal .student-game-asset-beacon {
    width: min(22vw, 118px);
  }

  .student-game-portal .ship-landing { left: 0; top: 16%; }
  .student-game-portal .beep-landing { left: 50%; top: 56%; }
  .student-game-portal .beacon-landing { right: 2%; top: 18%; }
  .student-game-portal .student-game-landing-lights { left: 12%; top: 77%; width: 30%; }
  .student-game-portal .beep-gap { left: 4%; top: 53%; }
  .student-game-portal .student-game-gap { left: 31%; right: 16%; bottom: 14%; }
  .student-game-portal .student-game-jump-arc { left: 15%; top: 30%; width: 42%; height: auto; }
  .student-game-portal .captain-search { left: 0; top: 42%; }
  .student-game-portal .beep-search { left: 28%; top: 56%; }
  .student-game-portal .student-game-rock-cluster { right: 4%; width: 34%; }
  .student-game-portal .student-game-footprints { left: 46%; width: 24%; }
  .student-game-portal .captain-crater { left: 0; top: 42%; }
  .student-game-portal .student-game-crater { left: 30%; top: 42%; width: 42%; height: 130px; }
  .student-game-portal .student-game-flashlight-beam-prop { left: 21%; top: 45%; width: 38%; height: 110px; }
  .student-game-portal .beacon-crater { right: 4%; top: 24%; }
  .student-game-portal .ship-return { left: -2%; top: 22%; width: min(54vw, 270px); }
  .student-game-portal .beep-return { left: 42%; top: 58%; }
  .student-game-portal .beacon-return { right: 2%; top: 18%; }
  .student-game-portal .tool-return { left: 54%; top: 70%; }

  .student-game-portal-tray {
    position: relative;
    margin-top: -18px;
    padding: 0 8px 12px;
  }

  .student-game-portal-tray-inner {
    max-height: none;
    overflow: visible;
    padding: 18px 16px 18px;
    border-radius: 24px 24px 16px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .student-game-choice-grid-portal {
    grid-template-columns: 1fr;
  }

  .student-game-choice-card-portal {
    min-height: 82px;
  }

  .student-game-actions-portal {
    justify-content: stretch;
  }

  .student-game-actions-portal .student-game-button {
    width: 100%;
  }

  .student-game-intro-stage {
    min-height: 300px;
  }

  .student-game-intro-earth {
    left: 14px;
    bottom: 44px;
    width: 104px;
    height: 104px;
  }

  .student-game-intro-moon {
    right: 16px;
    bottom: 56px;
    width: 88px;
    height: 88px;
  }

  .student-game-intro-earth-label {
    left: 36px;
  }

  .student-game-intro-moon-label {
    right: 28px;
  }

  .student-game-intro-route {
    left: 110px;
    right: 104px;
  }

  .student-game-intro-ship {
    width: 212px;
  }

  .student-game-intro-ship-exhaust {
    left: calc(50% - 74px);
    width: 74px;
  }

  .student-game-intro-trail,
  .student-game-intro-speedline-one,
  .student-game-intro-speedline-two,
  .student-game-intro-speedline-three {
    left: 18%;
    width: 48%;
  }

  .student-game-intro-window {
    width: 92px;
  }

  .student-game-intro-window-left {
    left: -54px;
  }

  .student-game-intro-window-right {
    right: -54px;
  }

  .student-game-intro-stage-caption {
    max-width: calc(100% - 32px);
    text-align: center;
    white-space: normal;
  }
}
