/* Student console resource summary: only total power and tokens. */
.student-game-console .console-header {
  grid-template-columns: minmax(390px, 1fr) minmax(430px, 1.12fr) minmax(190px, .45fr) !important;
  min-height: 116px !important;
}

.student-game-console .console-title-area.console-title-lockup {
  gap: 9px;
}

.student-game-console .console-resource-pills {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(150px, 1fr)) !important;
  gap: 10px !important;
}

.student-game-console .console-resource-pills > span {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  min-height: 60px;
  display: flex !important;
  align-items: center;
  justify-content: flex-start !important;
  gap: 10px;
  padding: 8px 14px !important;
  overflow: hidden;
  border: 2px solid #17325f !important;
  border-radius: 16px !important;
  color: #17325f !important;
  white-space: normal !important;
  box-shadow: 0 5px #17325f, 0 10px 18px rgba(23, 50, 95, .16) !important;
}

.student-game-console .console-resource-pills .pill-icon {
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px;
  fill: currentColor;
}

.student-game-console .console-resource-copy {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0 !important;
  width: auto !important;
  display: grid !important;
  justify-content: start !important;
  gap: 1px;
  padding: 0 !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font-size: inherit !important;
  line-height: normal;
}

.student-game-console .console-resource-copy small {
  overflow: hidden;
  color: #496b95;
  font-size: .62rem;
  font-weight: 1000;
  line-height: 1.15;
  letter-spacing: .11em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-game-console .console-resource-copy strong {
  overflow: hidden;
  font-size: clamp(1.18rem, 1.75vw, 1.55rem);
  font-weight: 1000;
  line-height: 1.05;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-game-console .console-total-power-badge {
  background: linear-gradient(135deg, #fff8d7, #ffcf4f) !important;
}

.student-game-console .console-token-badge {
  background: linear-gradient(135deg, #fff, #e1f6ff) !important;
  color: #1f79ad !important;
}

/* Unified button feedback: one motion language for teacher tools and the student pod. */
:where(.pokemon-theme, .student-game-console) :where(button, .btn, .cm-button, .game-btn, .nav-btn, .main-action-btn, .teacher-score-preset, .teacher-command-action, .student-game-global-dock-button, .student-game-bottom-dock-button, .blackboard-todo-preset-button) {
  --classhub-button-lift: -2px;
  --classhub-button-press-y: 2px;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  transform: translateY(0) scale(1);
  transform-origin: center;
  transition:
    transform .16s cubic-bezier(.2,.8,.2,1),
    filter .16s ease,
    box-shadow .16s ease,
    border-color .16s ease,
    background .16s ease;
}

:where(.pokemon-theme, .student-game-console) :where(button, .btn, .cm-button, .game-btn, .nav-btn, .main-action-btn, .teacher-score-preset, .teacher-command-action, .student-game-global-dock-button, .student-game-bottom-dock-button, .blackboard-todo-preset-button):where(:hover, :focus-visible):not(:disabled):not([aria-disabled="true"]) {
  transform: translateY(var(--classhub-button-lift)) scale(1.01);
  filter: brightness(1.04) saturate(1.04);
}

:where(.pokemon-theme, .student-game-console) :where(button, .btn, .cm-button, .game-btn, .nav-btn, .main-action-btn, .teacher-score-preset, .teacher-command-action, .student-game-global-dock-button, .student-game-bottom-dock-button, .blackboard-todo-preset-button):focus-visible {
  outline: 3px solid rgba(255,207,79,.58);
  outline-offset: 3px;
}

:where(.pokemon-theme, .student-game-console) :where(button, .btn, .cm-button, .game-btn, .nav-btn, .main-action-btn, .teacher-score-preset, .teacher-command-action, .student-game-global-dock-button, .student-game-bottom-dock-button, .blackboard-todo-preset-button):active:not(:disabled):not([aria-disabled="true"]) {
  transform: translateY(var(--classhub-button-press-y)) scale(.98);
  filter: brightness(.97) saturate(1.08);
}

:where(.pokemon-theme, .student-game-console) :where(button, .btn, .cm-button, .game-btn, .nav-btn, .main-action-btn, .teacher-score-preset, .teacher-command-action, .student-game-global-dock-button, .student-game-bottom-dock-button, .blackboard-todo-preset-button):disabled,
:where(.pokemon-theme, .student-game-console) :where(button, .btn, .cm-button, .game-btn, .nav-btn, .main-action-btn, .teacher-score-preset, .teacher-command-action, .student-game-global-dock-button, .student-game-bottom-dock-button, .blackboard-todo-preset-button)[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .58;
  filter: grayscale(.24);
  transform: none;
}

.teacher-interactive-action {
  --classhub-button-lift: -3px;
}

/* Final-layer navigation and leaderboard rules. This file loads after theme CSS. */
.student-game-console .console-header {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.student-game-console .console-tab-bar {
  width: 100% !important;
  min-width: 0;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 7px !important;
  overflow: visible !important;
}

.student-game-console .console-tab-btn {
  min-width: 0 !important;
  width: 100% !important;
  min-height: 38px;
  padding: 6px 5px !important;
  background: linear-gradient(135deg, #f5fbff, #dff1ff) !important;
  color: #17325f !important;
  border: 2px solid rgba(23, 50, 95, .32) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px rgba(23, 50, 95, .22) !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
  line-height: 1.12 !important;
}

.student-game-console .console-leaderboard-tab {
  background: linear-gradient(135deg, #f5fbff, #dff1ff) !important;
  color: #17325f !important;
  border-color: rgba(23, 50, 95, .32) !important;
  box-shadow: 0 4px rgba(23, 50, 95, .22) !important;
}

.student-game-console .console-tab-btn.active,
.student-game-console .console-leaderboard-tab.active {
  background: linear-gradient(135deg, #d9f2ff, #9bd6ff) !important;
  border-color: #17325f !important;
  box-shadow: 0 5px #17325f !important;
}

.student-game-console .leaderboard-console-page,
.student-game-console .pet-leaderboard-list {
  width: min(100%, 1040px) !important;
  min-width: 0;
}

.student-game-console .leaderboard-console-page {
  display: flex !important;
  flex-direction: column !important;
}

.student-game-console .leaderboard-console-page .console-section-heading {
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 2px 10px;
}

.student-game-console .leaderboard-console-page .console-section-heading p {
  margin: 0;
  color: #ffcf4f;
}

.student-game-console .leaderboard-console-page .console-section-heading h3 {
  margin: 2px 0 0;
}

.student-game-console .leaderboard-heading-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.student-game-console .leaderboard-heading-badges > span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 2px solid rgba(23, 50, 95, .3);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: #17325f;
  font-size: .82rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.student-game-console .leaderboard-heading-badges .leaderboard-self-rank {
  border-color: rgba(255, 207, 79, .82);
  background: linear-gradient(135deg, #fff7c2, #ffe27a);
  box-shadow: 0 4px #17325f, 0 10px 18px rgba(23, 50, 95, .2);
}

.student-game-console .pet-leaderboard-list {
  display: grid !important;
  gap: 10px;
}

.student-game-console .pet-leaderboard-row.is-current-student {
  border-color: #ffcf4f !important;
  background:
    linear-gradient(90deg, rgba(255,207,79,.22), rgba(87,230,220,.12)),
    rgba(7, 24, 54, .88) !important;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.16), 0 14px 28px rgba(23,50,95,.28) !important;
}

.student-game-console .pet-leaderboard-row.is-current-student .leaderboard-rank {
  background: #ffcf4f !important;
  color: #17325f !important;
  border-color: #17325f !important;
}

.student-game-console .leaderboard-you-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 8px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 207, 79, .82);
  border-radius: 999px;
  background: rgba(255, 207, 79, .18);
  color: #ffec9c;
  font-size: .72rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  vertical-align: middle;
}

.student-game-console .pet-leaderboard-empty {
  min-height: 220px;
  display: grid;
  place-content: center;
  gap: 6px;
  padding: 28px;
  border: 3px dashed rgba(255, 207, 79, .7);
  border-radius: 20px;
  background: rgba(7, 24, 54, .78);
  color: #fff8d7;
  text-align: center;
}

.student-game-console .pet-leaderboard-empty strong {
  color: #ffcf4f;
  font-size: 1.15rem;
}

@media (max-width: 1180px) {
  .student-game-console .console-header {
    min-height: 150px !important;
  }
}

@media (max-width: 760px) {
  .student-game-console .console-tab-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .student-game-console .leaderboard-console-page .console-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .student-game-console .leaderboard-heading-badges {
    justify-content: flex-start;
  }

  .student-game-console .console-resource-pills {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .student-game-console .console-resource-pills > span {
    min-height: 54px;
    gap: 7px;
    padding: 7px 9px !important;
    border-radius: 14px !important;
    box-shadow: 0 4px #17325f, 0 8px 14px rgba(23, 50, 95, .14) !important;
  }

  .student-game-console .console-resource-pills .pill-icon {
    width: 26px !important;
    height: 26px !important;
    flex-basis: 26px;
  }

  .student-game-console .console-resource-copy small {
    font-size: .55rem;
    letter-spacing: .06em;
  }

  .student-game-console .console-resource-copy strong {
    font-size: clamp(1rem, 5vw, 1.3rem);
  }
}

.student-game-console .boss-attack-pet img,
.battle-effect-backdrop .boss-attack-pet img {
  transform: scaleX(-1);
  transform-origin: center bottom;
}

/* Enhanced game atmosphere: layered glass, shadows, motion and particles. */
.student-game-console {
  --fx-cyan: #57e6dc;
  --fx-gold: #ffd45c;
  --fx-coral: #ff6f76;
  --fx-blue: #65a8ff;
  isolation: isolate;
}

.student-game-console .console-body {
  position: relative;
  isolation: isolate;
}

.student-game-console .console-body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .62;
  background-image:
    radial-gradient(circle, rgba(87, 230, 220, .72) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 212, 92, .58) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(101, 168, 255, .5) 0 1px, transparent 1.8px);
  background-size: 83px 83px, 127px 127px, 173px 173px;
  background-position: 10px 20px, 54px 8px, 24px 72px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.18));
  animation: console-star-drift 28s linear infinite;
}

.student-game-console .console-tab-bar,
.student-game-console .console-section-heading,
.student-game-console .console-resource-pills > span {
  border: 1px solid rgba(255,255,255,.16) !important;
  background: linear-gradient(145deg, rgba(18, 45, 72, .72), rgba(7, 25, 44, .58)) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.16), inset 0 -1px rgba(0,0,0,.32), 0 14px 34px rgba(0,0,0,.24), 0 0 24px rgba(87,230,220,.06) !important;
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
}

.student-game-console .console-page-content {
  position: relative;
  isolation: isolate;
}

.student-game-console .console-page-content::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: 18px;
  background: linear-gradient(112deg, transparent 10%, rgba(255,255,255,.045) 38%, transparent 62%);
  transform: translateX(-35%);
  animation: console-glass-sweep 12s ease-in-out infinite;
}

.student-game-console :is(.current-pet-stage-card,.console-shop-card,.knowledge-assignment-card,.arena-player-card,.arena-shop-card,.adventure-card,.boss-adventure-card,.expedition-adventure-card,.mission-card,.console-mission-card,.leaderboard-row) {
  border-color: rgba(125, 210, 255, .22) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.11), inset 0 -10px 28px rgba(1,12,25,.18), 0 12px 28px rgba(0,0,0,.26), 0 0 0 1px rgba(87,230,220,.035) !important;
  backdrop-filter: blur(14px) saturate(1.25);
  -webkit-backdrop-filter: blur(14px) saturate(1.25);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease, filter .24s ease;
}

.student-game-console :is(.console-shop-card,.knowledge-assignment-card,.arena-shop-card,.console-mission-card):hover {
  transform: translateY(-4px);
  border-color: rgba(87,230,220,.48) !important;
  box-shadow: inset 0 1px rgba(255,255,255,.16), 0 18px 38px rgba(0,0,0,.34), 0 0 28px rgba(87,230,220,.13) !important;
  filter: brightness(1.05);
}

.student-game-console .game-btn,
.student-game-console .gacha-button,
.student-game-console .console-tab-btn {
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 1px rgba(0,0,0,.28);
}

.student-game-console .game-btn::after,
.student-game-console .gacha-button::after {
  content: "";
  position: absolute;
  top: -55%;
  bottom: -55%;
  left: -48%;
  width: 28%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  transform: rotate(18deg);
  transition: left .5s ease;
}

.student-game-console .game-btn:hover::after,
.student-game-console .gacha-button:hover::after {
  left: 122%;
}

.student-game-console .current-pet-hero-img,
.student-game-console .arena-avatar img,
.student-game-console .knowledge-battle-pet img,
.student-game-console .expedition-travel-pet img {
  filter: drop-shadow(0 16px 12px rgba(0,0,0,.32)) drop-shadow(0 0 10px rgba(87,230,220,.18));
}

.student-game-console .knowledge-battle-stage,
.student-game-console .boss-attack-stage,
.student-game-console .arena-battle-stage,
.battle-effect-backdrop :is(.boss-attack-stage,.arena-battle-stage) {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 0 -38px 70px rgba(0,0,0,.28), 0 20px 48px rgba(0,0,0,.35), 0 0 34px rgba(87,230,220,.09) !important;
}

.student-game-console .knowledge-hit-particles i,
.student-game-console .legendary-sparkle-burst i,
.battle-effect-backdrop .arena-orbit-particle {
  box-shadow: 0 0 8px currentColor, 0 0 18px rgba(87,230,220,.72), 0 0 30px rgba(255,212,92,.34);
}

.student-game-console .console-resource-pills > span:nth-child(2n) {
  box-shadow: inset 0 1px rgba(255,255,255,.16), 0 12px 28px rgba(0,0,0,.22), 0 0 22px rgba(255,212,92,.09) !important;
}

.student-game-console .console-resource-pills > span:nth-child(3n) {
  box-shadow: inset 0 1px rgba(255,255,255,.16), 0 12px 28px rgba(0,0,0,.22), 0 0 22px rgba(255,111,118,.08) !important;
}

@keyframes console-star-drift {
  from { background-position: 10px 20px, 54px 8px, 24px 72px; }
  to { background-position: 93px 103px, -73px 135px, 197px -101px; }
}

@keyframes console-glass-sweep {
  0%, 68%, 100% { transform: translateX(-55%); opacity: .2; }
  82% { transform: translateX(55%); opacity: .72; }
}

@media (max-width: 720px) {
  .student-game-console .console-body::before { opacity: .42; background-size: 97px 97px, 149px 149px, 211px 211px; }
  .student-game-console :is(.console-shop-card,.knowledge-assignment-card,.arena-shop-card,.console-mission-card):hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .student-game-console .console-body::before,
  .student-game-console .console-page-content::after { animation: none !important; }
  .student-game-console :is(.current-pet-stage-card,.console-shop-card,.knowledge-assignment-card,.arena-player-card,.arena-shop-card,.adventure-card,.console-mission-card) { transition: none !important; }
}
/* V3 final console readability */
.student-game-console .console-header{background:linear-gradient(100deg,rgba(255,255,255,.66),rgba(231,244,255,.38))!important;box-shadow:none!important;border-color:rgba(23,50,95,.12)!important}
.student-game-console .console-tab-bar{background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;padding:0!important}
.student-game-console .console-tab-btn,.student-game-console .console-leaderboard-tab,.student-game-console .console-knowledge-tab{background:linear-gradient(180deg,#fbfdff,#dcefff)!important;color:#102b56!important;border:2px solid rgba(23,50,95,.36)!important;box-shadow:0 2px 0 rgba(23,50,95,.22),0 6px 12px rgba(23,50,95,.1)!important;text-shadow:none!important}
.student-game-console .console-tab-btn.active,.student-game-console .console-leaderboard-tab.active,.student-game-console .console-knowledge-tab.active{background:linear-gradient(180deg,#cbeeff,#8fd1ff)!important;color:#102b56!important;border-color:#17325f!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.58),0 2px 0 #17325f!important;text-shadow:none!important}
.student-game-console .console-resource-pills > span{background:linear-gradient(180deg,#ffffff,#eaf6ff)!important;color:#17325f!important;border:2px solid rgba(23,50,95,.24)!important;box-shadow:0 2px 0 rgba(23,50,95,.18),0 7px 14px rgba(23,50,95,.1)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;text-shadow:none!important}
.student-game-console .console-resource-pills > span:nth-child(2n),.student-game-console .console-resource-pills > span:nth-child(3n){box-shadow:0 2px 0 rgba(23,50,95,.18),0 7px 14px rgba(23,50,95,.1)!important}
.student-game-console .console-total-power-badge{background:linear-gradient(180deg,#fffdf4,#fff0aa)!important;color:#17325f!important}
.student-game-console .console-token-badge{background:linear-gradient(180deg,#ffffff,#e8f6ff)!important;color:#17325f!important}
.student-game-console .console-arena-crystal-badge{background:linear-gradient(180deg,#ffffff,#eef2ff)!important;color:#17325f!important}
.student-game-console .console-resource-copy small{color:#315a89!important;opacity:1!important;text-shadow:none!important}
.student-game-console .console-resource-copy strong{color:#102b56!important;text-shadow:none!important}
.student-game-console .console-resource-pills .pill-icon{color:#17325f!important;filter:none!important}
.student-game-console .console-arena-crystal-badge .pill-icon{filter:drop-shadow(0 2px 3px rgba(23,50,95,.18))!important}
/* V3 knowledge quiz full-screen modal */
.student-game-console .knowledge-console-page.is-answering.knowledge-quiz-overlay{position:fixed!important;inset:0!important;z-index:120000!important;display:grid!important;place-items:center!important;padding:clamp(12px,2vw,24px)!important;overflow:hidden!important}
.student-game-console .knowledge-quiz-modal{width:min(1180px,calc(100vw - 24px))!important;height:min(860px,calc(100dvh - 24px))!important;max-height:calc(100dvh - 24px)!important;margin:0!important}
.student-game-console .knowledge-console-page.is-answering .knowledge-question-stage{min-height:0!important}
/* V4 body-portaled knowledge quiz modal */
.knowledge-console-page.is-answering.knowledge-quiz-overlay{position:fixed!important;inset:0!important;z-index:160000!important;display:grid!important;place-items:center!important;padding:clamp(12px,2vw,24px)!important;overflow:hidden!important;background:radial-gradient(circle at 20% 12%,rgba(70,225,194,.24),transparent 28%),radial-gradient(circle at 86% 18%,rgba(255,214,107,.2),transparent 24%),rgba(3,13,24,.92)!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important}
.knowledge-console-page.is-answering.knowledge-quiz-overlay .knowledge-quiz-modal{width:min(1180px,calc(100vw - 24px))!important;height:min(860px,calc(100dvh - 24px))!important;max-height:calc(100dvh - 24px)!important;margin:0!important}
.knowledge-console-page.is-answering.knowledge-quiz-overlay .knowledge-question-stage{min-height:0!important}

/* Game Loop V1: student daily loop, anchored feedback, and teacher command center. */
.student-game-console .student-today-page {
  width: min(100%, 1160px);
  display: grid;
  gap: 18px;
  margin: 0 auto;
  padding: clamp(8px, 1.4vw, 18px);
  color: #f8fbff;
}

.student-game-console .student-today-hero {
  display: grid;
  grid-template-columns: minmax(260px, .95fr) minmax(280px, 1.05fr) minmax(190px, .55fr);
  gap: 16px;
  align-items: stretch;
}

.student-game-console .student-today-pet,
.student-game-console .student-today-recommendation,
.student-game-console .student-today-sync,
.student-game-console .student-next-power-card,
.student-game-console .student-recent-rewards {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(17,38,74,.88), rgba(10,23,43,.82));
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 16px 34px rgba(1,8,22,.28);
}

.student-game-console .student-today-pet {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 138px;
  padding: 18px;
}

.student-game-console .student-today-pet img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(0,0,0,.34));
}

.student-game-console .student-today-pet div:last-child,
.student-game-console .student-today-recommendation,
.student-game-console .student-today-sync {
  min-width: 0;
}

.student-game-console .student-today-pet span,
.student-game-console .student-today-recommendation span,
.student-game-console .student-today-sync span,
.student-game-console .student-next-power-card span,
.student-game-console .student-recent-rewards span {
  display: block;
  color: #92d9ff;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.student-game-console .student-today-pet strong,
.student-game-console .student-today-recommendation strong,
.student-game-console .student-today-sync strong,
.student-game-console .student-next-power-card strong,
.student-game-console .student-recent-rewards strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: #fffdf2;
  font-size: clamp(1.05rem, 2.1vw, 1.55rem);
  font-weight: 1000;
  line-height: 1.05;
}

.student-game-console .student-today-pet small,
.student-game-console .student-today-recommendation p,
.student-game-console .student-today-sync small,
.student-game-console .student-next-power-card small,
.student-game-console .student-recent-rewards p {
  display: block;
  margin-top: 7px;
  color: rgba(248,251,255,.76);
  font-size: .86rem;
  line-height: 1.45;
}

.student-game-console .student-today-recommendation,
.student-game-console .student-today-sync {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
}

.student-game-console .student-today-sync.is-ready {
  border-color: rgba(70, 213, 146, .36);
}

.student-game-console .student-today-sync.is-syncing,
.student-game-console .student-today-sync.is-pending {
  border-color: rgba(255, 199, 86, .42);
}

.student-game-console .student-today-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.student-game-console .student-today-action-card {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(20,43,77,.9), rgba(8,22,42,.82));
  box-shadow: inset 0 1px rgba(255,255,255,.1), 0 12px 26px rgba(0,0,0,.22);
  color: #f8fbff;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.student-game-console .student-today-action-card:hover {
  transform: translateY(-3px);
  border-color: rgba(146,217,255,.54);
  box-shadow: inset 0 1px rgba(255,255,255,.13), 0 18px 34px rgba(0,0,0,.28);
}

.student-game-console .student-today-action-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.student-game-console .student-today-action-card header span {
  min-width: 0;
  color: rgba(248,251,255,.68);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: 0;
}

.student-game-console .student-today-action-card header strong {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  color: #fffdf2;
  font-size: .78rem;
  line-height: 1.1;
}

.student-game-console .student-today-action-card h3 {
  margin: 0;
  color: #fffdf2;
  font-size: 1.02rem;
  line-height: 1.18;
}

.student-game-console .student-today-action-card p {
  margin: 0;
  color: rgba(248,251,255,.74);
  font-size: .84rem;
  line-height: 1.35;
}

.student-game-console .student-today-action-card.tone-reward,
.teacher-command-metric-card.tone-reward,
.teacher-command-alert-row.tone-reward,
.game-delta-feedback-item.tone-reward {
  border-color: rgba(255, 208, 82, .52);
  background: linear-gradient(145deg, rgba(79,58,13,.94), rgba(20,31,56,.88));
}

.student-game-console .student-today-action-card.tone-success,
.teacher-command-metric-card.tone-success,
.game-delta-feedback-item.tone-success {
  border-color: rgba(70, 213, 146, .52);
  background: linear-gradient(145deg, rgba(11,76,62,.92), rgba(11,32,53,.86));
}

.student-game-console .student-today-action-card.tone-sync,
.teacher-command-metric-card.tone-sync {
  border-color: rgba(111, 190, 255, .52);
  background: linear-gradient(145deg, rgba(17,60,97,.92), rgba(10,26,51,.86));
}

.student-game-console .student-today-action-card.tone-warning,
.teacher-command-metric-card.tone-warning,
.teacher-command-alert-row.tone-warning {
  border-color: rgba(255, 151, 92, .58);
  background: linear-gradient(145deg, rgba(95,42,25,.92), rgba(27,28,49,.86));
}

.student-game-console .student-today-action-card.tone-legendary,
.teacher-command-metric-card.tone-legendary,
.teacher-command-alert-row.tone-legendary,
.game-delta-feedback-item.tone-legendary {
  border-color: rgba(206, 153, 255, .6);
  background: linear-gradient(145deg, rgba(70,35,108,.94), rgba(19,28,61,.88));
}

.game-delta-feedback-item.tone-spend {
  border-color: rgba(255, 111, 118, .58);
  background: linear-gradient(145deg, rgba(104,30,42,.94), rgba(30,30,54,.88));
}

.student-game-console .student-next-power-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.student-game-console .student-next-power-card progress {
  width: 100%;
  height: 12px;
  margin-top: 12px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
}

.student-game-console .student-next-power-card progress::-webkit-progress-bar {
  background: rgba(255,255,255,.14);
}

.student-game-console .student-next-power-card progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, #46d592, #ffd052);
}

.student-game-console .student-next-power-card progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #46d592, #ffd052);
}

.student-game-console .student-recent-rewards {
  padding: 18px;
}

.student-game-console .student-recent-rewards header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.student-game-console .student-recent-rewards ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.student-game-console .student-recent-rewards li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
}

.student-game-console .student-recent-rewards li small {
  margin: 0;
  color: rgba(248,251,255,.62);
  white-space: nowrap;
}

.game-delta-feedback-layer {
  position: fixed;
  inset: 0;
  z-index: 13280;
  pointer-events: none;
}

.game-delta-feedback-item {
  position: fixed;
  min-width: 86px;
  max-width: 180px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  color: #fffdf2;
  text-align: center;
  transform: translate(-50%, -50%);
  box-shadow: 0 16px 28px rgba(0,0,0,.28);
  animation: game-delta-rise 1.5s ease-out forwards;
}

.game-delta-feedback-item strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 1000;
  line-height: 1;
}

.game-delta-feedback-item span {
  display: block;
  margin-top: 3px;
  color: rgba(255,253,242,.76);
  font-size: .68rem;
  font-weight: 900;
  line-height: 1.1;
}

.teacher-game-command-center {
  width: min(100%, 1180px);
  margin: 0 auto 18px;
  padding: 18px;
  border-radius: 18px;
}

.teacher-command-center-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.teacher-command-center-head h3 {
  margin: 2px 0 0;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  line-height: 1.1;
}

.teacher-command-center-head p {
  margin: 6px 0 0;
  color: var(--manager-muted);
  font-size: .9rem;
  line-height: 1.45;
}

.teacher-command-quick-actions {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(102px, 1fr));
  gap: 8px;
  width: min(100%, 560px);
}

.teacher-command-action {
  min-width: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 2px solid rgba(49,90,137,.2);
  border-radius: 14px;
  background: rgba(255,255,255,.86);
  color: #17325f;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 4px 0 rgba(49,90,137,.16);
}

.teacher-command-action-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #ffd052;
  color: #17325f;
  font-size: 1rem;
  font-weight: 1000;
  box-shadow: inset 0 -2px rgba(23,50,95,.18);
}

.teacher-command-action strong {
  min-width: 0;
  color: #17325f;
  font-size: .76rem;
  font-weight: 1000;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.teacher-command-action.is-sync .teacher-command-action-icon {
  background: #c6efff;
}

.teacher-command-action.is-token-award .teacher-command-action-icon {
  background: #bff1d2;
}

.teacher-command-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.teacher-command-metric-card {
  min-height: 92px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  color: #f8fbff;
  box-shadow: inset 0 1px rgba(255,255,255,.1), 0 10px 22px rgba(0,0,0,.18);
}

.teacher-command-metric-card span,
.teacher-command-panel-title span {
  color: rgba(248,251,255,.7);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: 0;
}

.teacher-command-metric-card strong {
  overflow-wrap: anywhere;
  color: #fffdf2;
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  line-height: 1.05;
}

.teacher-command-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  gap: 12px;
  margin-top: 12px;
}

.teacher-command-alerts,
.teacher-command-leaderboard,
.teacher-command-knowledge {
  min-height: 168px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 14px;
  background: rgba(9,24,46,.52);
}

.teacher-command-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.teacher-command-panel-title strong {
  color: #fffdf2;
  font-size: .9rem;
}

.teacher-command-alert-row,
.teacher-command-leader-row {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 12px;
  color: #f8fbff;
  text-align: left;
  cursor: pointer;
}

.teacher-command-leader-row {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  background: rgba(255,255,255,.07);
}

.teacher-command-alert-row span,
.teacher-command-leader-row span,
.teacher-command-knowledge-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-command-alert-row strong,
.teacher-command-leader-row strong {
  color: #fffdf2;
  font-size: .78rem;
  white-space: nowrap;
}

.teacher-command-leader-row b {
  color: #ffd052;
  font-size: .9rem;
}

.teacher-command-empty {
  margin: 10px 0 0;
  color: var(--manager-muted);
  font-size: .9rem;
  line-height: 1.45;
}

.teacher-command-knowledge-row {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.teacher-command-knowledge-row span {
  display: block;
  color: rgba(248,251,255,.66);
  font-size: .78rem;
}

.teacher-command-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
}

.teacher-command-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #46d592, #6fbeff);
}

.teacher-roster-metric.is-power b {
  color: #ffd052;
}

.teacher-game-warehouse-page {
  --teacher-game-ink: #f8fbff;
}

.teacher-game-page-switch {
  width: min(100%, 1180px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 auto 16px;
}

.teacher-game-page-tab {
  min-width: 0;
  min-height: 78px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid rgba(49,90,137,.22);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #eaf7ff);
  color: #17325f;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(49,90,137,.16), 0 12px 22px rgba(49,90,137,.1);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.teacher-game-page-tab-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(49,90,137,.22);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf4, #dff4ff);
  color: #17325f;
  font-size: 1.15rem;
  font-weight: 1000;
  box-shadow: inset 0 1px rgba(255,255,255,.9), 0 2px 0 rgba(49,90,137,.14);
}

.teacher-game-page-tab-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.teacher-game-page-tab strong,
.teacher-game-page-tab span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.teacher-game-page-tab strong {
  font-size: 1rem;
  font-weight: 1000;
  line-height: 1.1;
}

.teacher-game-page-tab span {
  color: #496b95;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.25;
}

.teacher-game-page-tab.is-active {
  border-color: #17325f;
  background: linear-gradient(180deg, #fff8cf, #ffd95e);
  box-shadow: 0 5px 0 #17325f, 0 16px 26px rgba(49,90,137,.16);
}

.teacher-game-page-tab.is-active .teacher-game-page-tab-icon {
  border-color: #17325f;
  background: linear-gradient(180deg, #ffffff, #91ddff);
}

.teacher-game-page-panel {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.teacher-command-page-stack {
  display: grid;
  gap: 18px;
  align-items: start;
}

.teacher-token-ratio-control {
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(260px, 1.15fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border: 2px solid rgba(49,90,137,.15);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
}

.teacher-token-ratio-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
}

.teacher-token-ratio-copy span,
.teacher-token-ratio-stepper label span {
  color: #ff6f65;
  font-size: .78rem;
  font-weight: 1000;
}

.teacher-token-ratio-copy strong {
  color: #17325f;
  font-size: 1.45rem;
  font-weight: 1000;
  line-height: 1;
}

.teacher-token-ratio-copy p {
  margin: 0;
  color: #496b95;
  font-size: .86rem;
  line-height: 1.45;
}

.teacher-token-ratio-preset-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.teacher-token-ratio-preset {
  min-width: 0;
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 10px 8px;
  border: 2px solid rgba(49,90,137,.18);
  border-radius: 14px;
  background: #f5fbff;
  color: #17325f;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 3px 0 rgba(49,90,137,.14);
}

.teacher-token-ratio-preset span {
  font-size: 1.02rem;
  font-weight: 1000;
}

.teacher-token-ratio-preset small {
  color: #496b95;
  font-size: .66rem;
  font-weight: 900;
  line-height: 1.15;
}

.teacher-token-ratio-preset.is-active {
  border-color: #17325f;
  background: #ffd052;
  box-shadow: 0 4px 0 #17325f;
}

.teacher-token-ratio-stepper {
  grid-column: 2;
  display: grid;
  grid-template-columns: 42px minmax(90px, 1fr) 42px auto;
  gap: 8px;
  align-items: end;
}

.teacher-token-ratio-stepper > button:not(.teacher-token-ratio-apply) {
  width: 42px;
  height: 42px;
  border: 2px solid #17325f;
  border-radius: 12px;
  background: #fff;
  color: #17325f;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 1000;
  box-shadow: 0 3px 0 rgba(23,50,95,.25);
}

.teacher-token-ratio-stepper label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.teacher-token-ratio-stepper input {
  width: 100%;
  height: 42px;
  min-width: 0;
  border: 2px solid rgba(49,90,137,.22);
  border-radius: 12px;
  padding: 0 12px;
  color: #17325f;
  font-size: 1rem;
  font-weight: 1000;
}

.teacher-token-ratio-apply {
  min-height: 42px;
  white-space: nowrap;
}

.teacher-token-ratio-preview {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.teacher-token-ratio-preview span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(23,50,95,.08);
  color: #17325f;
  font-size: .78rem;
  font-weight: 1000;
}

.teacher-class-token-award-page {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 18px;
  border-radius: 18px;
}

.teacher-class-token-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.teacher-class-token-head h3 {
  margin: 2px 0 0;
  color: #17325f;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.08;
}

.teacher-class-token-summary {
  min-width: 150px;
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 2px solid rgba(49,90,137,.16);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff8cf, #fff3b9);
  color: #17325f;
  text-align: right;
  box-shadow: 0 4px 0 rgba(49,90,137,.14);
}

.teacher-class-token-summary span {
  color: #496b95;
  font-size: .76rem;
  font-weight: 900;
}

.teacher-class-token-summary strong {
  font-size: 1.18rem;
  font-weight: 1000;
  line-height: 1;
}

.teacher-class-token-award-grid {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
  gap: 16px;
  align-items: start;
}

.teacher-class-token-card,
.teacher-class-token-roster {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 2px solid rgba(49,90,137,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.78);
  box-shadow: inset 0 1px rgba(255,255,255,.7), 0 10px 24px rgba(49,90,137,.08);
}

.teacher-class-token-preview {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #17325f, #285c9a);
  color: #fffdf2;
  box-shadow: inset 0 1px rgba(255,255,255,.14), 0 5px 0 rgba(23,50,95,.2);
}

.teacher-class-token-preview span {
  color: #bff1d2;
  font-size: .82rem;
  font-weight: 1000;
}

.teacher-class-token-preview strong {
  font-size: clamp(1.35rem, 2.5vw, 2.15rem);
  font-weight: 1000;
  line-height: 1;
  overflow-wrap: anywhere;
}

.teacher-class-token-preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.teacher-class-token-preset {
  min-height: 62px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 2px solid rgba(49,90,137,.18);
  border-radius: 14px;
  background: linear-gradient(180deg, #e8fff3, #c9f2ff);
  color: #17325f;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 3px 0 rgba(49,90,137,.16);
}

.teacher-class-token-preset span {
  font-size: 1.08rem;
  font-weight: 1000;
  line-height: 1;
}

.teacher-class-token-preset small {
  color: #496b95;
  font-size: .68rem;
  font-weight: 900;
}

.teacher-class-token-preset.is-active {
  border-color: #17325f;
  background: linear-gradient(180deg, #fff8cf, #ffd95e);
  box-shadow: 0 4px 0 #17325f;
}

.teacher-class-token-stepper {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 8px;
  align-items: end;
}

.teacher-class-token-stepper > button {
  width: 44px;
  height: 44px;
  border: 2px solid #17325f;
  border-radius: 14px;
  background: #fff;
  color: #17325f;
  cursor: pointer;
  font-size: 1.12rem;
  font-weight: 1000;
  box-shadow: 0 3px 0 rgba(23,50,95,.25);
}

.teacher-class-token-stepper label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.teacher-class-token-stepper label span {
  color: #496b95;
  font-size: .8rem;
  font-weight: 1000;
}

.class-token-award-input {
  width: 100%;
  min-height: 44px;
  border: 2px solid rgba(49,90,137,.22);
  border-radius: 14px;
  background: #fff;
  color: #17325f;
  font-size: 1.08rem;
  font-weight: 1000;
  text-align: center;
}

.teacher-class-token-validation {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid rgba(255,111,101,.28);
  border-radius: 12px;
  background: #fff1f3;
  color: #9d2739;
  font-size: .78rem;
  font-weight: 900;
}

.teacher-class-token-submit {
  width: 100%;
  min-height: 46px;
}

.teacher-class-token-roster {
  max-height: 560px;
  overflow: auto;
}

.teacher-class-token-roster-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(49,90,137,.12);
}

.teacher-class-token-roster-title strong {
  color: #17325f;
  font-size: 1rem;
  font-weight: 1000;
}

.teacher-class-token-roster-title span {
  color: #496b95;
  font-size: .78rem;
  font-weight: 900;
}

.teacher-class-token-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(49,90,137,.12);
  border-radius: 14px;
  background: rgba(245,251,255,.86);
}

.teacher-class-token-name {
  min-width: 0;
  overflow: hidden;
  color: #17325f;
  font-size: .9rem;
  font-weight: 1000;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-class-token-row span:not(.teacher-class-token-name),
.teacher-class-token-row strong {
  white-space: nowrap;
  font-size: .78rem;
  font-weight: 900;
}

.teacher-class-token-row span:not(.teacher-class-token-name) {
  color: #496b95;
}

.teacher-class-token-row strong {
  color: #12633b;
}

.teacher-class-token-empty {
  padding: 24px;
  border: 1px dashed rgba(49,90,137,.24);
  border-radius: 14px;
  color: #496b95;
  font-size: .9rem;
  font-weight: 900;
  text-align: center;
}

.teacher-activity-lock {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15,31,55,.34);
  backdrop-filter: blur(5px);
}

.teacher-activity-lock-card {
  width: min(92vw, 420px);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px 20px;
  border: 3px solid #17325f;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #fff6d9);
  color: #17325f;
  text-align: center;
  box-shadow: 0 8px 0 #17325f, 0 22px 46px rgba(0,0,0,.24);
}

.teacher-activity-lock-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #ffd052;
  color: #17325f;
  font-size: 1.5rem;
  font-weight: 1000;
}

.teacher-activity-lock-card strong {
  font-size: 1.18rem;
  font-weight: 1000;
  line-height: 1.2;
}

.teacher-activity-lock-card small {
  max-width: 32ch;
  color: #496b95;
  font-size: .86rem;
  font-weight: 900;
  line-height: 1.45;
}

.teacher-game-page-panel .teacher-game-command-center,
.teacher-game-page-panel .pet-teacher-ops-panel {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.teacher-game-page-settings .pet-teacher-ops-panel {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  background: rgba(7,22,43,.4);
}

.teacher-on-demand-load {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 18px;
  padding: 14px 16px;
  border: 3px solid var(--teacher-game-navy, #17325f);
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 208, 82, .32), transparent 34%),
    linear-gradient(145deg, #f6fcff, #dff4ff);
  color: var(--teacher-game-navy, #17325f);
  box-shadow: 0 5px 0 var(--teacher-game-blue, #315a89);
}

.teacher-on-demand-load-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.teacher-on-demand-load-copy strong {
  font-size: 1rem;
  font-weight: 1000;
}

.teacher-on-demand-load-copy small {
  color: #496b95;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.4;
}

.teacher-on-demand-load-copy > span {
  width: fit-content;
  max-width: 100%;
  margin-top: 3px;
  padding: 4px 9px;
  border: 2px solid rgba(49, 90, 137, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #315a89;
  font-size: .74rem;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.teacher-on-demand-load.status-loaded {
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 208, 82, .34), transparent 34%),
    linear-gradient(145deg, #f3fff9, #d7f5e8);
}

.teacher-on-demand-load.status-loaded .teacher-on-demand-load-copy > span {
  border-color: rgba(31, 136, 108, .3);
  color: #1f886c;
}

.teacher-on-demand-load.status-error {
  background: linear-gradient(145deg, #fff8f5, #ffe3df);
}

.teacher-on-demand-load.status-error .teacher-on-demand-load-copy > span {
  border-color: rgba(188, 73, 63, .3);
  color: #bc493f;
}

.teacher-on-demand-load-button {
  flex: 0 0 auto;
  min-width: 190px;
  min-height: 48px;
  padding-inline: 18px;
  white-space: nowrap;
}

.teacher-manual-load-placeholder {
  min-height: 180px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: 24px;
  border: 3px dashed rgba(49, 90, 137, .36);
  border-radius: 20px;
  background: rgba(239, 249, 255, .72);
  color: var(--teacher-game-navy, #17325f);
  text-align: center;
}

.teacher-manual-load-placeholder strong {
  font-size: 1.05rem;
  font-weight: 1000;
}

.teacher-manual-load-placeholder span {
  max-width: 38ch;
  color: #587493;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.45;
}

.teacher-game-empty {
  flex: 1;
  min-height: 260px;
  display: grid;
  place-items: center;
}

.blackboard-todo-quest-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(32,96,92,.24);
  background:
    radial-gradient(circle at 88% 18%, rgba(255,207,79,.22), transparent 36%),
    linear-gradient(145deg, rgba(255,255,255,.82), rgba(237,249,247,.86));
}

.blackboard-todo-quest-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.blackboard-todo-quest-head h3 {
  margin: 2px 0 0;
  color: var(--manager-ink);
  font-size: 1.05rem;
  line-height: 1.12;
}

.blackboard-todo-quest-head > span {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(32,96,92,.12);
  color: #20605c;
  font-size: .72rem;
  font-weight: 950;
}

.blackboard-todo-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.blackboard-todo-stat {
  min-height: 64px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(23,50,95,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.68);
}

.blackboard-todo-stat span,
.blackboard-todo-preset-button span {
  color: var(--manager-muted);
  font-size: .72rem;
  font-weight: 900;
  line-height: 1.2;
}

.blackboard-todo-stat strong {
  color: #17325f;
  font-size: 1.35rem;
  font-weight: 1000;
  line-height: 1;
}

.blackboard-todo-preset-grid {
  display: grid;
  gap: 8px;
}

.blackboard-todo-preset-button {
  width: 100%;
  min-width: 0;
  min-height: 58px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 2px solid rgba(23,50,95,.22);
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf4, #eaf6ff);
  color: #17325f;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(23,50,95,.18);
}

.blackboard-todo-preset-button:hover {
  transform: translateY(-1px);
  border-color: rgba(32,96,92,.46);
  background: linear-gradient(180deg, #fff6cc, #e8fbf4);
}

.blackboard-todo-preset-button:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(23,50,95,.24);
}

.blackboard-todo-preset-button strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: .92rem;
  font-weight: 1000;
  line-height: 1.12;
}

/* Game Loop V2: clearer student game pod and quest-map affordances. */
.student-game-console .student-today-game-hud {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(145deg, rgba(6,19,36,.94), rgba(14,37,67,.9) 54%, rgba(25,42,56,.9));
  background-size: 34px 34px, 34px 34px, auto;
}

.student-game-console .student-today-pet-platform {
  position: relative;
  min-height: 168px;
  grid-template-columns: 112px minmax(0, 1fr);
  overflow: hidden;
  border-color: rgba(111,190,255,.34);
  background:
    linear-gradient(180deg, rgba(92,190,255,.2), transparent 46%),
    linear-gradient(145deg, rgba(19,55,88,.94), rgba(8,24,45,.9));
}

.student-game-console .student-today-pet-platform::before {
  content: "";
  position: absolute;
  left: 17px;
  bottom: 23px;
  width: 118px;
  height: 28px;
  border: 2px solid rgba(255,208,82,.62);
  border-radius: 50%;
  background: rgba(255,208,82,.13);
  transform: perspective(120px) rotateX(58deg);
  box-shadow: 0 0 22px rgba(255,208,82,.22);
}

.student-game-console .student-today-pet-platform .student-today-pet-aura {
  position: absolute;
  left: 25px;
  top: 22px;
  width: 98px;
  height: 98px;
  border: 2px dashed rgba(146,217,255,.46);
  border-radius: 50%;
  opacity: .75;
  animation: student-pod-ring-spin 12s linear infinite;
}

.student-game-console .student-today-pet-platform img,
.student-game-console .student-today-pet-platform div:last-child {
  position: relative;
  z-index: 2;
}

.student-game-console .student-today-pet-platform img {
  width: 104px;
  height: 104px;
  transform: translateY(-5px);
}

.student-game-console .student-today-pet-platform.rarity-legendary {
  border-color: rgba(255,208,82,.68);
  background:
    linear-gradient(180deg, rgba(255,208,82,.2), transparent 46%),
    linear-gradient(145deg, rgba(75,50,18,.94), rgba(24,31,58,.9));
}

.student-game-console .student-today-quest-map {
  position: relative;
  padding: 8px;
  border: 1px solid rgba(146,217,255,.18);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(70,213,146,.1), transparent 28%, rgba(255,208,82,.1) 72%, rgba(255,111,118,.08)),
    rgba(4,16,31,.35);
}

.student-game-console .student-today-quest-map::before {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(70,213,146,.72), rgba(111,190,255,.6), rgba(255,208,82,.72));
  opacity: .46;
}

.student-game-console .student-today-quest-map .student-today-action-card {
  position: relative;
  z-index: 1;
  min-height: 152px;
}

.student-game-console .student-today-action-icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.22);
  border-radius: 12px;
  background: rgba(4,16,31,.62);
  color: #fffdf2 !important;
  font-size: .86rem !important;
  font-weight: 1000;
  line-height: 1;
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 10px 16px rgba(0,0,0,.18);
}

.student-game-console .student-today-action-card.tone-success .student-today-action-icon {
  border-color: rgba(70,213,146,.64);
  color: #baffdf !important;
}

.student-game-console .student-today-action-card.tone-reward .student-today-action-icon,
.student-game-console .student-today-action-card.tone-legendary .student-today-action-icon {
  border-color: rgba(255,208,82,.68);
  color: #ffe48a !important;
}

.student-game-console .student-today-action-card.tone-warning .student-today-action-icon {
  border-color: rgba(255,151,92,.7);
  color: #ffc1a1 !important;
}

.student-game-console .student-next-power-progress,
.student-game-console .student-today-xp-rail {
  grid-column: 1 / -1;
  width: 100%;
  height: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(4,16,31,.56);
  box-shadow: inset 0 2px 7px rgba(0,0,0,.28);
}

.student-game-console .student-next-power-progress > div,
.student-game-console .student-today-xp-rail > div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #46d592, #6fbeff 48%, #ffd052);
  box-shadow: 0 0 18px rgba(111,190,255,.32);
}

.student-game-console .student-next-power-card .game-btn {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.student-game-console .student-recent-rewards-head,
.student-game-console .student-recent-reward-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.student-game-console .student-recent-reward-row {
  margin-top: 9px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
}

.student-game-console .student-recent-reward-row span {
  white-space: nowrap;
}

@keyframes student-pod-ring-spin {
  to { transform: rotate(360deg); }
}

@keyframes game-delta-rise {
  0% { opacity: 0; transform: translate(-50%, -20%) scale(.9); }
  16% { opacity: 1; transform: translate(-50%, -52%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -125%) scale(.96); }
}

@media (max-width: 1120px) {
  .student-game-console .student-today-hero,
  .teacher-command-detail-grid {
    grid-template-columns: 1fr;
  }

  .student-game-console .student-today-actions,
  .teacher-command-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-command-quick-actions {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-game-page-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-class-token-award-grid {
    grid-template-columns: 1fr;
  }

  .teacher-token-ratio-control {
    grid-template-columns: 1fr;
  }

  .teacher-token-ratio-stepper {
    grid-column: 1;
  }

  .student-game-console .student-today-quest-map::before {
    display: none;
  }

  .teacher-game-page-panel .teacher-command-grid {
    flex-direction: column;
    min-height: auto !important;
  }

  .teacher-game-page-panel .teacher-roster-panel {
    width: 100% !important;
    max-height: 360px !important;
  }
}

@media (max-width: 680px) {
  .student-game-console .student-today-page {
    padding: 8px 0;
  }

  .student-game-console .student-today-actions,
  .teacher-command-metric-grid {
    grid-template-columns: 1fr;
  }

  .teacher-command-quick-actions,
  .teacher-token-ratio-preset-grid,
  .teacher-token-ratio-stepper,
  .teacher-class-token-preset-grid,
  .teacher-class-token-stepper {
    grid-template-columns: 1fr;
  }

  .teacher-command-action,
  .teacher-token-ratio-stepper > button:not(.teacher-token-ratio-apply),
  .teacher-class-token-stepper > button {
    width: 100%;
  }

  .teacher-token-ratio-stepper > button:not(.teacher-token-ratio-apply),
  .teacher-class-token-stepper > button {
    height: 40px;
  }

  .student-game-console .student-next-power-card,
  .teacher-command-center-head,
  .teacher-class-token-head {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .student-game-console .student-today-pet-platform {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .student-game-console .student-today-pet-platform::before {
    left: 50%;
    transform: translateX(-50%) perspective(120px) rotateX(58deg);
  }

  .student-game-console .student-today-pet-platform .student-today-pet-aura {
    left: 50%;
    margin-left: -49px;
  }

  .student-game-console .student-today-action-card header {
    align-items: flex-start;
  }

  .teacher-game-page-switch,
  .blackboard-todo-stat-grid {
    grid-template-columns: 1fr;
  }

  .teacher-game-page-tab {
    min-height: 68px;
  }

  .teacher-class-token-summary {
    text-align: left;
  }

  .teacher-class-token-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .teacher-class-token-row span:not(.teacher-class-token-name),
  .teacher-class-token-row strong {
    white-space: normal;
  }

  .blackboard-todo-quest-head {
    flex-direction: column;
  }

  .blackboard-todo-quest-head > span {
    width: 100%;
    text-align: center;
  }

  .student-game-console .student-next-power-card .game-btn {
    grid-column: 1;
    grid-row: auto;
  }

  .teacher-command-leader-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .teacher-command-leader-row strong {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .student-game-console .student-today-action-card,
  .game-delta-feedback-item,
  .teacher-command-alert-row,
  .teacher-command-leader-row {
    animation: none !important;
    transition: none !important;
  }

  .student-game-console .student-today-action-card:hover {
    transform: none;
  }
}

/* Light cute lobby redesign */
.game-red-dot,
.game-red-count {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  background: #ff4f5f;
  color: #fff;
  box-shadow: 0 2px 0 rgba(49,90,137,.24), 0 5px 10px rgba(255,79,95,.22);
  font-weight: 1000;
  line-height: 1;
}

.game-red-dot {
  top: -5px;
  right: -5px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
}

.game-red-count {
  top: -9px;
  right: -9px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 11px;
}

.student-game-console .console-page-content.student-lobby-shell {
  width: min(100%, 1180px);
  min-height: 560px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  margin: 0 auto;
  padding: 12px;
  overflow: hidden;
  border: 3px solid #315a89;
  border-radius: 24px;
  background:
    linear-gradient(180deg, #e9fbff 0%, #f8fff1 58%, #fff8d8 100%);
  box-shadow: 0 8px 0 #315a89, 0 24px 42px rgba(49,90,137,.18);
  color: #17325f;
}

.student-game-console .student-lobby-topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 2px solid rgba(49,90,137,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.86);
}

.student-game-console .student-lobby-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 1000;
}

.student-game-console .student-lobby-identity strong {
  min-width: 0;
  overflow: hidden;
  color: #17325f;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-game-console .student-lobby-seat {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 3px solid #315a89;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffd95e, #ffb7c5);
  box-shadow: 0 4px 0 #315a89;
  color: #17325f;
}

.student-game-console .student-lobby-resource {
  position: relative;
  min-width: 86px;
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  padding: 4px 10px;
  border: 2px solid rgba(49,90,137,.3);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 0 rgba(49,90,137,.24);
  color: #17325f;
  font-size: .74rem;
  font-weight: 1000;
  white-space: nowrap;
}

.student-game-console button.student-lobby-resource {
  cursor: pointer;
}

.student-game-console .student-lobby-resource.mission-summary {
  border-color: #315a89;
  background: linear-gradient(180deg, #fff5b8, #fff);
}

.student-game-console .student-lobby-resource.sync-ready {
  background: linear-gradient(180deg, #edfff6, #fff);
}

.student-game-console .student-lobby-resource.sync-syncing,
.student-game-console .student-lobby-resource.sync-pending {
  background: linear-gradient(180deg, #fff4c9, #fff);
}

.student-game-console .student-lobby-main {
  position: relative;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 184px;
  gap: 12px;
  min-height: 390px;
}

.student-game-console .student-lobby-main::before {
  content: "";
  position: absolute;
  inset: 55% -12px -12px;
  background: linear-gradient(180deg, rgba(125,210,123,.28), rgba(102,190,118,.42));
  border-top: 2px dashed rgba(49,90,137,.14);
}

.student-game-console .student-lobby-left-rail,
.student-game-console .student-lobby-right-rail {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  align-content: start;
}

.student-game-console .student-lobby-rail-title {
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #5a7eba;
  font-size: .72rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.student-game-console .student-lobby-rail-title b {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border: 2px solid rgba(49,90,137,.22);
  border-radius: 999px;
  background: #fff;
  color: #e56a52;
}

.student-game-console .student-lobby-mission-card,
.student-game-console .student-lobby-shortcut,
.student-game-console .student-lobby-bottom-tab {
  position: relative;
  min-width: 0;
  min-height: 46px;
  display: grid;
  align-items: center;
  gap: 2px;
  padding: 8px 10px;
  border: 2px solid rgba(49,90,137,.24);
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 4px 0 rgba(49,90,137,.18);
  color: #17325f;
  text-align: left;
  cursor: pointer;
}

.student-game-console .student-lobby-mission-card strong,
.student-game-console .student-lobby-shortcut strong {
  min-width: 0;
  overflow: hidden;
  color: #17325f;
  font-size: .82rem;
  font-weight: 1000;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-game-console .student-lobby-mission-card span:not(.game-red-dot):not(.game-red-count),
.student-game-console .student-lobby-shortcut span:not(.game-red-dot):not(.game-red-count) {
  min-width: 0;
  overflow: hidden;
  color: #496b95;
  font-size: .66rem;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-game-console .student-lobby-mission-card.status-ready,
.student-game-console .student-lobby-mission-card.tone-reward {
  border-color: #ffca4f;
  background: linear-gradient(145deg, #fff8cf, #fff);
  box-shadow: 0 4px 0 #315a89, 0 10px 18px rgba(255,202,79,.22);
}

.student-game-console .student-lobby-mission-card.tone-success {
  border-color: rgba(79,188,135,.55);
  background: linear-gradient(145deg, #e8fff3, #fff);
}

.student-game-console .student-lobby-mission-card.tone-warning {
  border-color: rgba(255,156,168,.7);
  background: linear-gradient(145deg, #ffe2e7, #fff);
}

.student-game-console .student-lobby-mission-card.tone-legendary {
  border-color: rgba(255,202,79,.8);
  background: linear-gradient(145deg, #fff3b0, #f1fffb 70%);
}

.student-game-console .student-lobby-pet-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 3px solid rgba(49,90,137,.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,215,94,.42), transparent 20%),
    radial-gradient(circle at 82% 24%, rgba(149,224,255,.7), transparent 24%),
    linear-gradient(180deg, #d7f6ff, #fffdf2 68%, #dcf4c6);
}

.student-game-console .student-lobby-pet-stage.rarity-legendary {
  background:
    radial-gradient(circle at 18% 22%, rgba(255,215,94,.52), transparent 20%),
    radial-gradient(circle at 82% 24%, rgba(255,183,197,.55), transparent 24%),
    linear-gradient(180deg, #d7f6ff, #fff8cf 68%, #dcf4c6);
}

.student-game-console .student-lobby-cloud {
  position: absolute;
  width: 86px;
  height: 26px;
  border: 2px solid rgba(49,90,137,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
}

.student-game-console .student-lobby-cloud.cloud-one {
  top: 28px;
  left: 40px;
}

.student-game-console .student-lobby-cloud.cloud-two {
  top: 58px;
  right: 54px;
  width: 62px;
}

.student-game-console .student-lobby-platform {
  position: absolute;
  left: 50%;
  bottom: 76px;
  width: 220px;
  height: 48px;
  border: 3px solid #315a89;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffdf6e, #fff4b8);
  transform: translateX(-50%) perspective(180px) rotateX(58deg);
  box-shadow: 0 8px 0 rgba(49,90,137,.18);
}

.student-game-console .student-lobby-pet-avatar {
  position: relative;
  z-index: 3;
  align-self: center;
  justify-self: center;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  border: 4px solid #315a89;
  border-radius: 44px;
  background:
    radial-gradient(circle at 35% 30%, #fff 0 12%, transparent 13%),
    linear-gradient(145deg, #ffb7c5, #ffd95e 48%, #98e4c1);
  box-shadow: 0 10px 0 #315a89, 0 24px 28px rgba(49,90,137,.2);
}

.student-game-console .student-lobby-pet-avatar img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(49,90,137,.24));
}

.student-game-console .student-lobby-status {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-top: 2px solid rgba(49,90,137,.16);
  background: rgba(255,255,255,.84);
}

.student-game-console .student-lobby-status span,
.student-game-console .student-lobby-status small {
  display: block;
  color: #496b95;
  font-size: .76rem;
  font-weight: 850;
  line-height: 1.32;
}

.student-game-console .student-lobby-status strong {
  display: block;
  overflow-wrap: anywhere;
  color: #17325f;
  font-size: clamp(1.02rem, 2vw, 1.32rem);
  font-weight: 1000;
  line-height: 1.08;
}

.student-game-console .student-lobby-shortcut {
  background: linear-gradient(145deg, #fff, #f0f9ff);
}

.student-game-console .student-lobby-shortcut.shortcut-gacha {
  background: linear-gradient(145deg, #fff6c8, #fff);
}

.student-game-console .student-lobby-shortcut.shortcut-shop {
  background: linear-gradient(145deg, #e8fff3, #fff);
}

.student-game-console .student-lobby-bottom {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 2px 0 0;
}

.student-game-console .student-lobby-bottom-tab {
  min-height: 42px;
  place-items: center;
  padding: 7px 8px;
  background: #fff;
  font-size: .78rem;
  font-weight: 1000;
  text-align: center;
}

.student-game-console .student-lobby-bottom-tab.is-active {
  border-color: #315a89;
  background: linear-gradient(180deg, #bff0ff, #91ddff);
  box-shadow: 0 4px 0 #315a89;
}

.student-game-console .console-page-content.student-game-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  min-height: min(760px, calc(100dvh - 190px));
  overflow: hidden;
  border: 3px solid #315a89;
  border-radius: 24px;
  background: #f5fbff;
  box-shadow: 0 8px 0 #315a89, 0 22px 34px rgba(49, 90, 137, .16);
}

.student-game-console .console-header {
  display: none !important;
}

.student-game-console .console-body {
  padding-top: 10px;
}

.student-game-console .student-game-global-dock {
  position: sticky;
  top: 10px;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px;
  border: 3px solid #315a89;
  border-radius: 20px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 5px 0 #315a89, 0 14px 24px rgba(49,90,137,.16);
}

.student-game-console .student-game-global-dock-button {
  position: relative;
  min-height: 42px;
  display: grid;
  place-items: center;
  padding: 7px 8px;
  border: 2px solid rgba(49,90,137,.22);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #eaf7ff);
  color: #17325f;
  font-size: .76rem;
  font-weight: 1000;
  line-height: 1.15;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(49,90,137,.16);
}

.student-game-console .student-game-global-dock-button.is-active {
  border-color: #315a89;
  background: linear-gradient(180deg, #fff6c9, #91ddff);
  box-shadow: 0 4px 0 #315a89;
}

.student-game-console .student-game-screen {
  position: relative;
  width: min(100%, 1180px);
  min-height: min(760px, calc(100dvh - 28px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  margin: 0 auto;
  padding: 12px;
  overflow: hidden;
  border: 3px solid #315a89;
  border-radius: 24px;
  background: linear-gradient(180deg, #f4fcff, #fff8db);
  box-shadow: 0 8px 0 #315a89, 0 24px 42px rgba(49,90,137,.18);
  color: #17325f;
}

.student-game-console .student-game-feature-hud {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border: 2px solid rgba(49,90,137,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 4px 0 rgba(49,90,137,.12);
}

.student-game-console .student-game-stage {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(420px, 1.05fr);
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.student-game-console .student-game-scene-layer {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  overflow: hidden;
  border: 3px solid rgba(49,90,137,.22);
  border-radius: 24px;
  background-image: var(--student-game-bg);
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 5px 0 rgba(49,90,137,.16);
}

.student-game-console .student-game-scene-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.58));
  pointer-events: none;
}

.student-game-console .student-game-feature-copy {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 3;
  max-width: 280px;
  background: rgba(255,255,255,.84);
}

.student-game-console .student-game-pet-actor {
  position: absolute;
  left: var(--pet-anchor-x);
  top: var(--pet-anchor-y);
  z-index: 4;
  width: clamp(138px, 18vw, 218px);
  height: clamp(138px, 18vw, 218px);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  isolation: isolate;
  transform: translate(-50%, -50%) scale(calc(var(--pet-base-scale, 1) * var(--pet-focus-scale, 1.5)));
  transform-origin: 50% 88%;
}

.student-game-console .student-game-pet-actor-shadow {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: var(--pet-shadow-width);
  height: 16%;
  border-radius: 50%;
  background: rgba(35,66,112,.22);
  filter: blur(3px);
  transform: translateX(-50%);
  animation: studentGamePetActorShadow 3.2s ease-in-out infinite;
}

.student-game-console .student-game-pet-actor img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(34,67,111,.28));
  animation: studentGamePetActorBreath 3.2s ease-in-out infinite;
}

.student-game-console .student-game-pet-actor:active img {
  transform: translateY(-10px) scale(1.04);
}

.student-game-console .student-game-pet-actor.pet-fed-bounce img,
.student-game-console .current-pet-hero-img.pet-fed-bounce {
  animation: studentGamePetFeedBounce .9s ease;
}

.student-game-console .student-game-pet-actor .scene-badge-feet-glow {
  z-index: 1;
  left: 50%;
  bottom: 4%;
  width: 82%;
  height: 24%;
  opacity: .72;
}

.student-game-console .student-game-pet-actor .scene-armor-body-glow {
  z-index: 1;
  inset: 4% 2% 6%;
  border-radius: 999px;
  opacity: .35;
}

.student-game-console .student-game-pet-actor .scene-floating-particle {
  z-index: 3;
  width: clamp(6px, .8vw, 11px);
  height: clamp(6px, .8vw, 11px);
}

.student-game-console .student-game-scene-bubble {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 5;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 2px solid rgba(49,90,137,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 4px 0 rgba(49,90,137,.14);
}

.student-game-console .student-game-scene-bubble span {
  color: #496b95;
  font-size: .72rem;
  font-weight: 900;
}

.student-game-console .student-game-scene-bubble strong {
  color: #17325f;
  font-size: 1rem;
  font-weight: 1000;
}

.student-game-console .student-game-panel {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 12px;
  border: 3px solid rgba(49,90,137,.2);
  border-radius: 24px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 5px 0 rgba(49,90,137,.16);
}

.student-game-console .student-game-panel > .console-page-content {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #17325f;
}

.student-game-console .student-game-bottom-dock {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
  gap: 8px;
  padding: 8px;
  border: 3px solid #315a89;
  border-radius: 20px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 5px 0 #315a89, 0 14px 24px rgba(49,90,137,.16);
}

.student-game-console .student-game-bottom-dock-button {
  position: relative;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 7px 8px;
  border: 2px solid rgba(49,90,137,.22);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #eaf7ff);
  color: #17325f;
  font-size: .76rem;
  font-weight: 1000;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(49,90,137,.16);
}

.student-game-console .student-game-bottom-dock-button.is-active {
  border-color: #315a89;
  background: linear-gradient(180deg, #fff6c9, #91ddff);
  box-shadow: 0 4px 0 #315a89;
}

.student-game-console .student-game-hud {
  position: relative;
  z-index: 5;
  margin: 0;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 4px 0 rgba(49, 90, 137, .16);
}

.student-game-console .student-game-shell-scene {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  overflow: hidden;
  padding: clamp(14px, 2.2vw, 26px);
  border: 0;
  border-radius: 0;
  background-image: var(--student-game-bg);
  background-position: center;
  background-size: cover;
}

.student-game-console .student-game-shell-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255,255,255,.72), rgba(255,255,255,.18) 42%, rgba(255,255,255,.42));
  pointer-events: none;
}

.student-game-console .student-game-shell-scene::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(244, 255, 237, .72));
  pointer-events: none;
}

.student-game-console .student-game-scene-copy {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 8;
  align-self: start;
  display: grid;
  gap: 5px;
  max-width: 270px;
  padding: 12px 14px;
  border: 2px solid rgba(49,90,137,.2);
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 4px 0 rgba(49,90,137,.14);
}

.student-game-console .student-game-scene-copy span,
.student-game-console .student-game-scene-copy small {
  color: #496b95;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1.3;
}

.student-game-console .student-game-scene-copy strong {
  color: #17325f;
  font-size: clamp(1.06rem, 2vw, 1.42rem);
  font-weight: 1000;
  line-height: 1.05;
}

.student-game-console .student-lobby-stage-caption {
  position: absolute;
  top: clamp(12px, 2.2vw, 24px);
  left: 50%;
  z-index: 8;
  display: grid;
  gap: 4px;
  width: min(520px, calc(100% - 32px));
  padding: 10px 16px;
  border: 2px solid rgba(49,90,137,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 4px 0 rgba(49,90,137,.14), 0 12px 28px rgba(49,90,137,.12);
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
}

.student-game-console .student-lobby-stage-caption span,
.student-game-console .student-lobby-stage-caption small {
  min-width: 0;
  overflow: hidden;
  color: #496b95;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-game-console .student-lobby-stage-caption strong {
  min-width: 0;
  overflow: hidden;
  color: #17325f;
  font-size: clamp(1rem, 1.8vw, 1.34rem);
  font-weight: 1000;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-game-console .student-game-hotspot-grid {
  position: absolute;
  top: clamp(78px, 12%, 112px);
  right: clamp(16px, 5%, 54px);
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(46%, 430px);
  max-width: 420px;
}

.student-game-console .student-game-hotspot {
  position: relative;
  min-width: 0;
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 9px 12px;
  border: 2px solid rgba(49,90,137,.24);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 5px 0 rgba(49,90,137,.18), 0 12px 20px rgba(49,90,137,.1);
  color: #17325f;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.student-game-console .student-game-hotspot:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 rgba(49,90,137,.18), 0 16px 24px rgba(49,90,137,.14);
}

.student-game-console .student-game-hotspot strong,
.student-game-console .student-game-hotspot span:not(.game-red-dot):not(.game-red-count) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-game-console .student-game-hotspot strong {
  color: #17325f;
  font-size: .84rem;
  font-weight: 1000;
}

.student-game-console .student-game-hotspot span:not(.game-red-dot):not(.game-red-count) {
  color: #496b95;
  font-size: .68rem;
  font-weight: 850;
}

.student-game-console .student-game-hotspot.tone-reward,
.student-game-console .student-game-hotspot.tone-legendary {
  border-color: rgba(255,202,79,.72);
  background: linear-gradient(145deg, rgba(255,249,217,.95), rgba(255,255,255,.92));
}

.student-game-console .student-game-hotspot.tone-success {
  border-color: rgba(79,188,135,.55);
  background: linear-gradient(145deg, rgba(232,255,243,.95), rgba(255,255,255,.92));
}

.student-game-console .student-game-hotspot.tone-warning {
  border-color: rgba(255,156,168,.7);
  background: linear-gradient(145deg, rgba(255,226,231,.95), rgba(255,255,255,.92));
}

.student-game-console .student-game-hotspot.tone-sync {
  border-color: rgba(126,203,255,.62);
  background: linear-gradient(145deg, rgba(232,248,255,.95), rgba(255,255,255,.92));
}

.student-game-console .student-game-pet-stage {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  grid-template-rows: minmax(240px, 1fr) auto;
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.student-game-console .student-game-pet-shadow {
  position: absolute;
  left: 50%;
  bottom: 120px;
  width: min(42vw, 280px);
  height: 42px;
  border-radius: 50%;
  background: rgba(35, 66, 112, .18);
  filter: blur(3px);
  transform: translateX(-50%);
}

.student-game-console .student-game-pet-stage .student-lobby-pet-avatar {
  align-self: end;
  justify-self: start;
  width: clamp(230px, 30vw, 354px);
  height: clamp(230px, 30vw, 354px);
  margin-left: clamp(74px, 13vw, 170px);
  margin-bottom: clamp(70px, 9vh, 115px);
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.student-game-console .student-game-pet-stage .student-lobby-pet-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(34, 67, 111, .28));
}

.student-game-console .student-game-pet-breath {
  transform-origin: 50% 85%;
  animation: studentGamePetBreath 3.2s ease-in-out infinite;
}

.student-game-console .student-game-nameplate {
  align-self: end;
  margin: 0 auto;
  width: min(100%, 520px);
  border: 2px solid rgba(49,90,137,.2);
  border-radius: 20px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 5px 0 rgba(49,90,137,.16);
}

.student-game-console .student-game-dock {
  position: relative;
  z-index: 5;
  padding: 8px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 -2px 0 rgba(49,90,137,.12);
}

.student-game-console .game-modal-backdrop {
  backdrop-filter: blur(7px) saturate(1.08);
  -webkit-backdrop-filter: blur(7px) saturate(1.08);
}

.student-game-console .game-modal-frame {
  border: 3px solid #315a89 !important;
  border-radius: 24px !important;
  background-color: rgba(255,255,255,.94);
  box-shadow: 0 8px 0 #315a89, 0 24px 42px rgba(49,90,137,.22) !important;
}

@keyframes studentGamePetBreath {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  48% {
    transform: translateY(-8px) scale(1.035, .985);
  }
}

@keyframes studentGamePetActorBreath {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  48% {
    transform: translateY(-8px) scale(1.035, .985);
  }
}

@keyframes studentGamePetActorShadow {
  0%, 100% {
    transform: translateX(-50%) scaleX(1);
    opacity: .92;
  }
  48% {
    transform: translateX(-50%) scaleX(.86);
    opacity: .72;
  }
}

.teacher-game-command-center.teacher-command-light {
  border: 3px solid #315a89;
  background: linear-gradient(180deg, #f6fcff, #fff8df);
  box-shadow: 0 8px 0 #315a89, 0 20px 34px rgba(49,90,137,.16);
  color: #17325f;
}

.teacher-command-light .teacher-command-center-head h3,
.teacher-command-light .teacher-command-panel-title strong,
.teacher-command-light .teacher-command-metric-card strong,
.teacher-command-light .teacher-command-alert-row strong,
.teacher-command-light .teacher-command-leader-row strong,
.teacher-command-light .teacher-command-leader-row b,
.teacher-command-light .teacher-command-knowledge-row strong {
  color: #17325f;
}

.teacher-command-light .teacher-command-center-head p,
.teacher-command-light .teacher-command-metric-card span,
.teacher-command-light .teacher-command-panel-title span,
.teacher-command-light .teacher-command-alert-row span,
.teacher-command-light .teacher-command-leader-row span,
.teacher-command-light .teacher-command-knowledge-row span,
.teacher-command-light .teacher-command-empty {
  color: #496b95;
}

.teacher-command-light .teacher-command-metric-card {
  position: relative;
  border: 2px solid rgba(49,90,137,.22);
  background: rgba(255,255,255,.88);
  box-shadow: 0 4px 0 rgba(49,90,137,.18);
}

.teacher-command-light .teacher-command-metric-card.tone-reward {
  background: linear-gradient(145deg, #fff8cf, #fff);
}

.teacher-command-light .teacher-command-metric-card.tone-success {
  background: linear-gradient(145deg, #e8fff3, #fff);
}

.teacher-command-light .teacher-command-metric-card.tone-sync {
  background: linear-gradient(145deg, #e9fbff, #fff);
}

.teacher-command-light .teacher-command-metric-card.tone-legendary {
  background: linear-gradient(145deg, #fff1f5, #fff8cf);
}

.teacher-command-light .teacher-command-alerts,
.teacher-command-light .teacher-command-leaderboard,
.teacher-command-light .teacher-command-knowledge {
  border: 2px solid rgba(49,90,137,.2);
  background: rgba(255,255,255,.84);
  box-shadow: 0 4px 0 rgba(49,90,137,.16);
}

.teacher-command-light .teacher-command-panel-title {
  position: relative;
  padding-right: 26px;
}

.teacher-command-light .teacher-command-alert-row,
.teacher-command-light .teacher-command-leader-row {
  position: relative;
  border: 1px solid rgba(49,90,137,.18);
  background: #f0f9ff;
  color: #17325f;
}

.teacher-command-light .teacher-command-alert-row.tone-warning {
  border-color: rgba(255,79,95,.32);
  background: #fff4f5;
}

.teacher-command-light .teacher-command-alert-row.tone-reward {
  border-color: rgba(255,202,79,.55);
  background: #fff9dc;
}

.teacher-command-light .teacher-command-alert-row.tone-legendary {
  border-color: rgba(255,183,197,.65);
  background: #fff1f5;
}

.teacher-command-light .teacher-command-progress {
  border: 1px solid rgba(49,90,137,.16);
  background: #e3f0f7;
}

.teacher-command-light .teacher-command-progress i {
  background: linear-gradient(90deg, #66be76, #91ddff, #ffd95e);
}

.teacher-score-adjuster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.teacher-score-adjuster-grid.is-token-only {
  grid-template-columns: minmax(0, 1fr);
  max-width: 540px;
}

.teacher-score-adjuster-grid.is-token-only .teacher-score-adjuster {
  min-width: 0;
}

.teacher-score-adjuster {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 3px solid rgba(49,90,137,.22);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f0f9ff);
  box-shadow: 0 5px 0 rgba(49,90,137,.16);
  color: #17325f;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, filter .2s ease;
}

.teacher-score-adjuster.is-token-feedback-positive {
  animation: teacherTokenFeedbackPulse .78s cubic-bezier(.2,.9,.22,1);
  border-color: rgba(76,175,80,.58);
  box-shadow: 0 5px 0 rgba(49,90,137,.18), 0 0 0 5px rgba(76,175,80,.14), 0 18px 34px rgba(76,175,80,.18);
}

.teacher-score-adjuster.is-token-feedback-negative {
  animation: teacherTokenFeedbackPulse .78s cubic-bezier(.2,.9,.22,1);
  border-color: rgba(255,107,118,.62);
  box-shadow: 0 5px 0 rgba(49,90,137,.18), 0 0 0 5px rgba(255,107,118,.14), 0 18px 34px rgba(255,107,118,.18);
}

.teacher-token-feedback-burst {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 5;
  min-width: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 2px solid rgba(49,90,137,.2);
  border-radius: 999px;
  background: #fff;
  color: #17325f;
  font-size: .95rem;
  font-weight: 1000;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 6px 0 rgba(49,90,137,.18), 0 14px 26px rgba(49,90,137,.16);
  animation: teacherTokenBurstFloat 1s cubic-bezier(.2,.85,.2,1) both;
}

.teacher-token-feedback-burst.is-positive {
  background: linear-gradient(180deg, #e8fff3, #bff1d2);
  color: #12633b;
}

.teacher-token-feedback-burst.is-negative {
  background: linear-gradient(180deg, #fff1f3, #ffd2d9);
  color: #9d2739;
}

.teacher-score-adjuster-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.teacher-score-adjuster-head span {
  color: #496b95;
  font-size: .86rem;
  font-weight: 900;
}

.teacher-score-adjuster-head strong {
  color: #17325f;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 1000;
  line-height: 1;
}

.teacher-score-preset-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.teacher-score-preset-grid.is-negative {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.teacher-score-preset {
  min-height: 46px;
  display: grid;
  grid-template-columns: auto auto;
  gap: 1px;
  place-content: center;
  align-items: center;
  border: 2px solid rgba(49,90,137,.18);
  border-radius: 14px;
  color: #17325f;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(49,90,137,.16);
}

.teacher-score-preset span {
  font-size: .8rem;
  line-height: 1;
}

.teacher-score-preset strong {
  font-size: 1.02rem;
  line-height: 1;
}

.teacher-score-preset.is-positive {
  background: linear-gradient(180deg, #e8fff3, #bcf3d7);
}

.teacher-score-preset.is-negative {
  background: linear-gradient(180deg, #fff1f3, #ffcbd3);
}

@keyframes teacherTokenFeedbackPulse {
  0% { filter: brightness(1); transform: translateY(0) scale(1); }
  34% { filter: brightness(1.08); transform: translateY(-3px) scale(1.018); }
  100% { filter: brightness(1); transform: translateY(0) scale(1); }
}

@keyframes teacherTokenBurstFloat {
  0% { opacity: 0; transform: translateY(10px) scale(.72); }
  18% { opacity: 1; transform: translateY(0) scale(1.06); }
  72% { opacity: 1; transform: translateY(-12px) scale(1); }
  100% { opacity: 0; transform: translateY(-22px) scale(.92); }
}

.teacher-score-custom-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.teacher-score-custom-form input {
  min-height: 44px;
  width: 100%;
  border: 2px solid rgba(49,90,137,.2);
  border-radius: 14px;
  background: #fff;
  color: #17325f;
  font-size: 1rem;
  font-weight: 900;
  text-align: center;
}

.teacher-roster-metrics.is-token-power {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  justify-items: start;
}

.teacher-roster-metrics.is-token-power .teacher-roster-metric {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid rgba(49,90,137,.16);
  border-radius: 999px;
  color: #17325f;
  font-size: .72rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 -1px 0 rgba(49,90,137,.08);
}

.teacher-roster-metrics.is-token-power .teacher-roster-metric b {
  font-size: .78rem;
  font-weight: 1000;
}

.teacher-roster-metrics.is-token-power .teacher-roster-metric em {
  min-width: 0;
  overflow: hidden;
  color: #496b95;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-roster-metrics.is-token-power .teacher-roster-metric.is-token {
  background: linear-gradient(180deg, #fff8cf, #fff1a9);
}

.teacher-roster-metrics.is-token-power .teacher-roster-metric.is-power {
  background: linear-gradient(180deg, #e8fff3, #c9f2ff);
}

.teacher-game-command-center .teacher-command-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.teacher-command-compact-student-row {
  grid-template-columns: 42px minmax(0, 1fr) minmax(80px, auto) auto;
}

.teacher-command-compact-student-row img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(23,50,95,.2));
}

.teacher-command-compact-student-row small {
  min-width: 0;
  overflow: hidden;
  color: #496b95;
  font-size: .72rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-student-summary-page {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(16px, 2.5vw, 26px);
  border: 3px solid #315a89;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(240,249,255,.94));
  box-shadow: 0 8px 0 #315a89, 0 22px 38px rgba(49,90,137,.16);
}

.teacher-student-summary-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.teacher-student-summary-head h3 {
  margin: 3px 0 6px;
  color: #17325f;
  font-size: clamp(1.28rem, 2.3vw, 1.8rem);
}

.teacher-student-summary-head p {
  max-width: 720px;
  margin: 0;
  color: #496b95;
  font-weight: 750;
  line-height: 1.55;
}

.teacher-student-summary-count {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 2px solid rgba(49,90,137,.18);
  border-radius: 999px;
  background: #e9fbff;
  color: #17325f;
  font-size: .82rem;
  font-weight: 950;
}

.teacher-student-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.teacher-student-summary-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px;
  border: 2px solid rgba(49,90,137,.2);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #eef9ff);
  box-shadow: 0 4px 0 rgba(49,90,137,.16), 0 12px 24px rgba(49,90,137,.1);
}

.teacher-student-summary-identity {
  grid-column: 1 / -1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.teacher-student-summary-identity > strong {
  min-width: 0;
  overflow: hidden;
  color: #17325f;
  font-size: 1.05rem;
  font-weight: 1000;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-student-summary-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 950;
}

.teacher-student-summary-status.is-live {
  background: #dff8ea;
  color: #176b4b;
}

.teacher-student-summary-status.is-waiting {
  background: #f1f3f5;
  color: #68727d;
}

.teacher-student-summary-pet {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.teacher-student-summary-pet img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 5px 7px rgba(23,50,95,.2));
}

.teacher-student-summary-pet div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.teacher-student-summary-pet span,
.teacher-student-summary-token span {
  color: #496b95;
  font-size: .7rem;
  font-weight: 850;
}

.teacher-student-summary-pet strong {
  min-width: 0;
  overflow: hidden;
  color: #17325f;
  font-size: .9rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.teacher-student-summary-token {
  min-width: 82px;
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 3px;
  padding: 10px 12px;
  border: 2px solid rgba(217,164,0,.22);
  border-radius: 16px;
  background: linear-gradient(180deg, #fff8cf, #fff0a8);
}

.teacher-student-summary-token strong {
  color: #17325f;
  font-size: 1.35rem;
  font-weight: 1000;
  line-height: 1;
}

@media (max-width: 780px) {
  .teacher-game-command-center .teacher-command-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-command-compact-student-row {
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .teacher-command-compact-student-row small {
    display: none;
  }

  .teacher-student-summary-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .teacher-student-summary-grid {
    grid-template-columns: 1fr;
  }
}

.class-score-preset-btn {
  min-width: 58px;
  font-weight: 900;
}

.student-card-score-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.student-card-score-chip {
  min-height: 38px;
  border: 2px solid rgba(49,90,137,.16);
  border-radius: 12px;
  color: #17325f;
  font-size: .82rem;
  font-weight: 1000;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(49,90,137,.14);
}

.student-card-score-chip.is-positive {
  background: linear-gradient(180deg, #e8fff3, #bcf3d7);
}

.student-card-score-chip.is-negative {
  background: linear-gradient(180deg, #fff1f3, #ffcbd3);
}

.student-card-custom-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  margin-top: 10px;
}

.student-card-custom-score input {
  min-width: 0;
  min-height: 38px;
  border: 2px solid rgba(49,90,137,.18);
  border-radius: 12px;
  background: #fff;
  color: #17325f;
  font-size: .95rem;
  font-weight: 900;
  text-align: center;
}

/* Scoring Controls Polish V1: standard scoring page uses the same framed toy-button language as FunClass. */
.scoring-class-actions {
  align-items: center!important;
  justify-content: flex-end!important;
  gap: 8px!important;
  padding: 10px!important;
  border: 2px solid rgba(49,90,137,.16);
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 5px 0 rgba(49,90,137,.16), 0 14px 28px rgba(49,90,137,.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.scoring-class-actions .btn {
  min-height: 40px;
  border: 2px solid #17325f!important;
  border-radius: 999px!important;
  background: linear-gradient(180deg, #fff, #edf7ff)!important;
  color: #17325f!important;
  font-size: .9rem!important;
  font-weight: 1000!important;
  line-height: 1!important;
  box-shadow: 0 4px 0 rgba(49,90,137,.2)!important;
  transform: translateY(0);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}

.scoring-class-actions .btn:not(:disabled):hover,
.student-card-score-main-actions .score-btn:not(:disabled):hover,
.student-card-score-tools .student-card-score-chip:not(:disabled):hover,
.student-card-custom-score-submit:not(:disabled):hover {
  filter: brightness(1.035);
  transform: translateY(-1px);
}

.scoring-class-actions .btn:not(:disabled):active,
.student-card-score-main-actions .score-btn:not(:disabled):active,
.student-card-score-tools .student-card-score-chip:not(:disabled):active,
.student-card-custom-score-submit:not(:disabled):active {
  box-shadow: 0 2px 0 rgba(49,90,137,.2)!important;
  transform: translateY(2px);
}

.scoring-class-actions .class-score-preset-btn {
  min-width: 62px;
  background: linear-gradient(180deg, #ff8679, #cf604e)!important;
  color: #fff!important;
  text-shadow: 0 1px 0 rgba(105,37,32,.25);
  box-shadow: 0 4px 0 #943e38!important;
}

.student-card-score-main-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 14px auto 0;
}

.student-card-score-main-actions .score-btn {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0!important;
  border: 2px solid #17325f!important;
  border-radius: 50%!important;
  color: #17325f!important;
  font-size: 1.55rem!important;
  font-weight: 1000!important;
  line-height: 1!important;
}

.score-btn.is-negative {
  background: linear-gradient(180deg, #fff, #eff7ff)!important;
  box-shadow: 0 4px 0 #b9cbe1!important;
}

.score-btn.is-positive {
  background: linear-gradient(180deg, #ff8679, #cf604e)!important;
  color: #fff!important;
  box-shadow: 0 4px 0 #943e38!important;
  text-shadow: 0 1px 0 rgba(105,37,32,.28);
}

.student-card-score-tools .student-card-score-chip {
  border-color: #17325f;
  border-radius: 13px;
  font-size: .8rem;
  letter-spacing: 0;
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}

.student-card-score-chip.is-positive {
  background: linear-gradient(180deg, #e8fff3, #bcf3d7);
}

.student-card-score-chip.is-negative {
  background: linear-gradient(180deg, #fff1f3, #ffcbd3);
}

.student-card-custom-score-submit {
  min-width: 54px;
  min-height: 38px;
  padding: 0 12px!important;
  border: 2px solid #17325f!important;
  border-radius: 13px!important;
  background: linear-gradient(180deg, #fff, #edf7ff)!important;
  color: #17325f!important;
  font-size: .84rem!important;
  font-weight: 1000!important;
  box-shadow: 0 3px 0 rgba(49,90,137,.2)!important;
}

@media (max-width: 920px) {
  .teacher-score-adjuster-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .student-game-console .console-page-content.student-lobby-shell {
    min-height: auto;
  }

  .student-game-console .student-game-shell-scene {
    grid-template-columns: 1fr;
    min-height: 720px;
  }

  .student-game-console .student-game-scene-copy,
  .student-game-console .student-game-hotspot-grid {
    max-width: none;
  }

  .student-game-console .student-lobby-main {
    grid-template-columns: 1fr;
  }

  .student-game-console .student-lobby-topbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-game-console .student-lobby-identity {
    grid-column: 1 / -1;
  }

  .student-game-console .student-lobby-bottom {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .student-game-console .student-lobby-pet-stage {
    min-height: 360px;
  }

  .student-game-console .student-game-pet-stage {
    min-height: 390px;
  }
}

@media (max-width: 1180px) {
  .student-game-console .student-game-screen {
    width: min(100%, calc(100vw - 18px));
    min-height: calc(100dvh - 18px);
  }

  .student-game-console .student-game-stage {
    grid-template-columns: minmax(310px, .9fr) minmax(380px, 1.1fr);
    min-height: 470px;
  }

  .student-game-console .student-game-scene-layer {
    min-height: 470px;
  }

  .student-game-console .student-game-feature-hud {
    grid-template-columns: minmax(0, 1fr) repeat(4, auto);
  }

  .student-game-console .student-game-bottom-dock {
    grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  }
}

@media (max-width: 860px) {
  .student-game-console .student-game-screen {
    min-height: auto;
    overflow: visible;
  }

  .student-game-console .student-game-stage {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .student-game-console .student-game-scene-layer {
    min-height: 390px;
  }

  .student-game-console .student-game-screen-gacha .console-gacha-layout {
    display: flex;
    flex-direction: column;
    height: auto;
  }

  .student-game-console .student-game-feature-hud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-game-console .student-game-feature-hud .student-lobby-identity {
    grid-column: 1 / -1;
  }

  .student-game-console .student-game-panel {
    max-height: none;
  }

  .student-game-console .student-game-bottom-dock {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .student-game-console .student-game-bottom-dock-button {
    flex: 0 0 112px;
  }
}

@media (max-width: 620px) {
  .student-game-console .student-game-shell-scene {
    min-height: 820px;
    padding: 12px;
  }

  .student-game-console .student-game-hotspot-grid,
  .student-game-console .student-lobby-topbar,
  .student-game-console .student-lobby-bottom {
    grid-template-columns: 1fr;
  }

  .student-game-console .student-lobby-status {
    grid-template-columns: 1fr;
  }

  .student-game-console .student-lobby-status .game-btn {
    width: 100%;
  }

  .student-game-console .student-game-pet-stage .student-lobby-pet-avatar {
    width: 156px;
    height: 156px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .student-game-console .student-game-pet-breath,
  .student-game-console .student-game-hotspot,
  .student-game-console .student-lobby-mission-card,
  .student-game-console .student-lobby-shortcut,
  .student-game-console .student-lobby-bottom-tab,
  .student-game-console .student-lobby-cloud,
  .student-game-console .student-lobby-pet-avatar,
  .student-game-console .student-game-pet-actor img,
  .student-game-console .student-game-pet-actor-shadow {
    animation: none !important;
    transition: none !important;
  }
}

/* 2026-07-03: fixed student game console, battle hub, and equipment preview polish. */
.student-game-console .console-body {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 8px;
}

.student-game-console .student-game-screen {
  height: min(820px, calc(100dvh - 18px));
  max-height: calc(100dvh - 18px);
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.student-game-console .console-page-content.student-game-shell,
.student-game-console .console-page-content.student-lobby-shell {
  height: min(760px, calc(100dvh - 18px));
  max-height: calc(100dvh - 18px);
  min-height: 0;
}

.student-game-console .student-game-stage {
  min-height: 0;
  height: 100%;
  grid-template-rows: minmax(0, 1fr);
}

.student-game-console .student-game-scene-layer,
.student-game-console .student-game-panel {
  min-height: 0;
  height: 100%;
}

.student-game-console .student-game-panel {
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.student-game-console .student-game-panel > .console-page-content,
.student-game-console .student-battle-panel > .console-page-content {
  min-height: 0;
}

.student-game-console .student-game-scene-effect-layer {
  position: absolute;
  left: var(--pet-anchor-x, 50%);
  top: var(--pet-anchor-y, 72%);
  z-index: 6;
  width: clamp(220px, 28vw, 345px);
  height: clamp(220px, 28vw, 345px);
  border-radius: 999px;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(calc(var(--pet-base-scale, 1) * var(--pet-focus-scale, 1.5)));
}

.student-game-console .student-game-bottom-dock,
.student-game-console .student-lobby-bottom {
  grid-template-columns: repeat(8, minmax(72px, 1fr));
  align-items: stretch;
}

.student-game-console .student-game-bottom-dock-button,
.student-game-console .student-lobby-bottom-tab {
  min-width: 0;
  min-height: 54px;
  display: grid;
  grid-template-rows: 20px minmax(0, 1fr);
  align-content: center;
  justify-items: center;
  gap: 2px;
  padding: 6px 7px;
}

.student-game-console .student-game-dock-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(23, 50, 95, .22);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf4, #dff4ff);
  color: #17325f;
  font-size: .78rem;
  font-weight: 1000;
  line-height: 1;
  box-shadow: inset 0 1px rgba(255,255,255,.9), 0 2px 0 rgba(23,50,95,.12);
}

.student-game-console .student-game-dock-label {
  max-width: 100%;
  overflow: hidden;
  color: #17325f;
  font-size: clamp(.62rem, .92vw, .76rem);
  font-weight: 1000;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-game-console .student-battle-hub-page {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.student-game-console .student-battle-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.student-game-console .student-battle-mode-card {
  position: relative;
  min-width: 0;
  min-height: 72px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 8px;
  padding: 9px 10px;
  border: 2px solid rgba(49,90,137,.26);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #eaf7ff);
  color: #17325f;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(49,90,137,.15);
}

.student-game-console .student-battle-mode-card .student-game-dock-icon {
  grid-row: 1 / span 2;
}

.student-game-console .student-battle-mode-card strong,
.student-game-console .student-battle-mode-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-game-console .student-battle-mode-card strong {
  font-size: .86rem;
  font-weight: 1000;
}

.student-game-console .student-battle-mode-card small {
  color: #496b95;
  font-size: .68rem;
  font-weight: 900;
}

.student-game-console .student-battle-mode-card.is-active {
  border-color: #17325f;
  background: linear-gradient(180deg, #fff6c9, #bcecff);
  box-shadow: 0 5px 0 #17325f;
}

.student-game-console .student-battle-panel {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  overscroll-behavior: contain;
}

.student-game-console .student-battle-panel > .console-page-content {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.student-game-console .current-pet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  min-height: 0;
}

.student-game-console .current-pet-stage-card {
  position: relative;
  min-height: 390px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 20px;
}

.student-game-console .pet-equipment-effect-preview {
  position: relative;
  isolation: isolate;
  min-height: 280px;
  display: grid;
  place-items: center;
  overflow: visible;
}

.student-game-console .pet-equipment-effect-preview::before {
  content: "";
  position: absolute;
  inset: 12% 14% 8%;
  z-index: 0;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,255,255,.72), rgba(125,218,255,.2) 45%, transparent 72%);
  filter: blur(1px);
  pointer-events: none;
}

.student-game-console .pet-equipment-effect-preview .current-pet-hero-img {
  z-index: 3;
  width: min(78%, 310px);
  height: min(78%, 310px);
  object-fit: contain;
}

.student-game-console .badge-feet-glow,
.student-game-console .armor-body-glow,
.student-game-console .floating-particle {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.student-game-console .badge-feet-glow {
  left: 50%;
  bottom: 12%;
  width: 58%;
  height: 20%;
  border-radius: 999px;
  filter: blur(6px);
  transform: translateX(-50%);
  opacity: .72;
}

.student-game-console .armor-body-glow {
  inset: 18% 18% 14%;
  border-radius: 999px;
  background: rgba(255,255,255,.26);
  animation: studentGameEquipmentPulse 2.4s ease-in-out infinite;
}

.student-game-console .floating-particle {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  box-shadow: 0 0 12px currentColor;
  animation: studentGameEquipmentFloat 3.1s ease-in-out infinite;
}

.student-game-console .fp-1 { left: 18%; top: 30%; animation-delay: 0s; }
.student-game-console .fp-2 { left: 74%; top: 24%; animation-delay: .35s; }
.student-game-console .fp-3 { left: 66%; top: 62%; animation-delay: .7s; }
.student-game-console .fp-4 { left: 28%; top: 68%; animation-delay: 1.05s; }
.student-game-console .fp-5 { left: 48%; top: 18%; animation-delay: 1.4s; }
.student-game-console .fp-6 { left: 82%; top: 48%; animation-delay: 1.75s; }

.student-game-console .current-pet-control-card {
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
}

.student-game-console .current-pet-control-card-wide {
  width: 100%;
  display: grid;
  gap: 12px;
}

.student-game-console .current-pet-summary-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 2px solid rgba(49,90,137,.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,248,219,.9), rgba(232,248,255,.92));
  box-shadow: 0 4px 0 rgba(49,90,137,.12);
}

.student-game-console .current-pet-summary-strip span,
.student-game-console .current-pet-summary-strip small {
  display: block;
  color: #496b95;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.25;
}

.student-game-console .current-pet-summary-strip strong {
  display: block;
  color: #17325f;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 1000;
  line-height: 1.05;
}

.student-game-console .current-pet-summary-strip .game-btn {
  min-width: 112px;
  white-space: nowrap;
}

.student-game-console .equipment-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.student-game-console .equipment-slot-card {
  min-width: 0;
  overflow: hidden;
}

@keyframes studentGameEquipmentPulse {
  0%, 100% { opacity: .22; transform: scale(.96); }
  50% { opacity: .58; transform: scale(1.04); }
}

@keyframes studentGameEquipmentFloat {
  0%, 100% { opacity: .2; transform: translateY(10px) scale(.82); }
  45% { opacity: .9; transform: translateY(-12px) scale(1.12); }
}

@keyframes studentGamePetFeedBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  28% { transform: translateY(-14px) scale(1.08); }
  56% { transform: translateY(5px) scale(.96); }
  78% { transform: translateY(-5px) scale(1.03); }
}

@media (max-width: 1180px) {
  .student-game-console .student-game-bottom-dock,
  .student-game-console .student-lobby-bottom {
    grid-template-columns: repeat(8, minmax(68px, 1fr));
  }

  .student-game-console .current-pet-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .student-game-console .console-body {
    place-items: stretch;
  }

  .student-game-console .student-game-screen,
  .student-game-console .console-page-content.student-game-shell,
  .student-game-console .console-page-content.student-lobby-shell {
    height: auto;
    max-height: none;
  }

  .student-game-console .current-pet-layout,
  .student-game-console .student-battle-mode-grid {
    grid-template-columns: 1fr;
  }
}

/* Scene Layout Stability V2: fixed student stages, enlarged pets, and safe gacha panels. */
.student-game-console .student-lobby-shell {
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: min(760px, calc(100dvh - 18px));
  max-height: calc(100dvh - 18px);
  min-height: 0;
  overflow: hidden;
}

.student-game-console .student-lobby-shell .student-game-shell-scene {
  height: 100%;
  min-height: 0 !important;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}

.student-game-console .student-lobby-shell .student-game-scene-copy {
  max-width: min(280px, 34%);
}

.student-game-console .student-lobby-shell .student-lobby-stage-caption {
  top: clamp(12px, 2vw, 22px);
}

.student-game-console .student-lobby-shell .student-game-hotspot-grid {
  display: none;
  top: clamp(78px, 12%, 112px);
  right: clamp(16px, 5%, 54px);
  width: min(46%, 430px);
  max-width: 430px;
}

.student-game-console .student-lobby-shell .student-game-nameplate {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 3vw, 34px);
  width: min(520px, 78%);
  margin: 0;
  grid-template-columns: minmax(0, 1fr);
  text-align: center;
  transform: translateX(-50%);
  pointer-events: auto;
}

.student-game-console .student-lobby-shell .student-game-pet-stage {
  display: grid;
  place-items: center;
  pointer-events: none;
}

.student-game-console .student-lobby-shell .student-game-pet-stage .student-lobby-pet-avatar {
  align-self: center;
  justify-self: center;
  width: clamp(280px, 36vw, 430px);
  height: clamp(280px, 36vw, 430px);
  margin: 0;
  pointer-events: auto;
}

.student-game-console .student-lobby-shell .student-lobby-pet-avatar {
  justify-self: center;
}

.student-game-console .student-lobby-shell .student-game-pet-shadow {
  bottom: clamp(128px, 19vh, 184px);
  width: min(52vw, 360px);
  height: 48px;
}

.student-game-console .student-game-screen {
  overflow: hidden;
}

.student-game-console .student-game-stage {
  min-width: 0;
  overflow: hidden;
}

.student-game-console .student-game-scene-layer {
  overflow: hidden;
}

.student-game-console .student-game-screen-gacha .student-game-stage {
  grid-template-columns: minmax(285px, .82fr) minmax(0, 1.18fr);
  gap: 12px;
  overflow: hidden;
}

.student-game-console .student-game-screen-gacha .student-game-panel {
  overflow: hidden;
}

.student-game-console .student-game-screen-gacha .student-game-panel > .console-page-content {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  overflow: hidden;
}

.student-game-console .student-game-screen-gacha .console-section-heading {
  min-width: 0;
  padding: 10px 12px;
}

.student-game-console .student-game-screen-gacha .console-gacha-layout {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}

.student-game-console .student-game-screen-gacha .console-gacha-stage {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px;
}

.student-game-console .student-game-screen-gacha .console-gacha-machine-img {
  width: auto;
  height: 140px;
  object-fit: contain;
}

.student-game-console .student-game-screen-gacha .console-gacha-stats {
  width: min(100%, 330px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.student-game-console .student-game-screen-gacha .console-gacha-stats > div,
.student-game-console .student-game-screen-gacha .console-action-panel {
  min-width: 0;
}

.student-game-console .student-game-screen-gacha .console-action-panel {
  width: 100%;
  max-width: none;
  padding: 12px;
  overflow: hidden;
}

.student-game-console .student-game-screen-gacha .console-action-panel h3 {
  overflow-wrap: anywhere;
  font-size: clamp(1.42rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.student-game-console .student-game-screen-gacha .gacha-button {
  width: 100%;
  min-height: 52px;
  white-space: normal;
}

@media (max-width: 980px) {
  .student-game-console .student-lobby-shell {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .student-game-console .student-lobby-shell .student-game-shell-scene {
    min-height: 680px !important;
  }

  .student-game-console .student-lobby-shell .student-game-scene-copy,
  .student-game-console .student-lobby-shell .student-game-hotspot-grid,
  .student-game-console .student-lobby-shell .student-lobby-stage-caption,
  .student-game-console .student-lobby-shell .student-game-nameplate {
    max-width: none;
    width: auto;
  }

  .student-game-console .student-lobby-shell .student-game-hotspot-grid {
    display: none;
    left: 14px;
    right: 14px;
    top: 96px;
    width: auto;
  }

  .student-game-console .student-lobby-shell .student-lobby-stage-caption {
    left: 14px;
    right: 14px;
    transform: none;
  }

  .student-game-console .student-lobby-shell .student-game-nameplate {
    left: 14px;
    right: 14px;
    transform: none;
  }

  .student-game-console .student-game-screen-gacha .student-game-stage {
    grid-template-columns: 1fr;
  }
}

/* Fix red dot clipping by forcing overflow visible on buttons/cards with badges */
.student-game-console .student-game-bottom-dock-button,
.student-game-console .student-battle-mode-card,
.student-game-console .student-lobby-bottom-tab {
  overflow: visible !important;
}

/* Gacha Layout V3: one focused machine card and one action card. */
.student-game-console .student-game-screen-gacha .student-game-stage {
  grid-template-columns: minmax(0, 1fr);
  min-height: min(560px, calc(100dvh - 172px));
}

.student-game-console .student-game-screen-gacha .student-game-scene-layer {
  display: none;
}

.student-game-console .student-game-screen-gacha .student-game-panel {
  display: grid;
  padding: clamp(10px, 1.6vw, 16px);
  overflow: hidden;
}

.student-game-console .student-game-screen-gacha .student-game-panel > .console-page-content {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(10px, 1.4vw, 14px);
  overflow: hidden;
}

.student-game-console .student-game-screen-gacha .console-section-heading {
  padding: clamp(10px, 1.4vw, 14px) clamp(12px, 1.8vw, 18px);
}

.student-game-console .student-game-screen-gacha .console-gacha-layout {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(250px, 320px);
  gap: clamp(10px, 1.5vw, 16px);
  align-items: stretch;
  overflow: hidden;
}

.student-game-console .student-game-screen-gacha .console-gacha-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  gap: clamp(10px, 1.5vw, 16px);
  padding: clamp(12px, 2vw, 20px);
  overflow: hidden;
  border: 3px solid rgba(49,90,137,.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,.92), rgba(255,255,255,0) 34%),
    linear-gradient(180deg, #eefbff, #fff8d9 78%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.68), 0 5px 0 rgba(49,90,137,.16);
}

.student-game-console .student-game-screen-gacha .console-gacha-stage::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 0;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.62) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.48) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .34;
  pointer-events: none;
}

.student-game-console .student-game-screen-gacha .console-gacha-machine-img {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  height: clamp(220px, 42dvh, 340px);
  object-fit: contain;
  filter: drop-shadow(0 22px 22px rgba(49,90,137,.22));
}

.student-game-console .student-game-screen-gacha .console-gacha-stats {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.student-game-console .student-game-screen-gacha .console-gacha-stats > div {
  min-width: 0;
  min-height: 72px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 10px;
  border: 3px solid #315a89;
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 4px 0 rgba(49,90,137,.2);
}

.student-game-console .student-game-screen-gacha .console-gacha-stats strong {
  color: #f0523a;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 1000;
  line-height: 1;
}

.student-game-console .student-game-screen-gacha .console-gacha-stats span {
  color: #496b95;
  font-size: .78rem;
  font-weight: 1000;
  text-align: center;
}

.student-game-console .student-game-screen-gacha .console-action-panel {
  min-width: 0;
  width: 100%;
  max-width: none;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(10px, 1.5vw, 14px);
  padding: clamp(18px, 2vw, 24px);
  overflow: visible;
  border: 3px solid #315a89;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(235,252,255,.9));
  box-shadow: 0 5px 0 rgba(49,90,137,.18), 0 18px 28px rgba(49,90,137,.1);
}

.student-game-console .student-game-screen-gacha .console-action-panel h3 {
  margin: 0;
  color: #17325f;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1;
  overflow-wrap: normal;
}

.student-game-console .student-game-screen-gacha .console-action-panel p {
  margin: 0;
}

.student-game-console .student-game-screen-gacha .gacha-banner-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.student-game-console .student-game-screen-gacha .gacha-banner-option {
  min-width: 0;
  min-height: 92px;
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 10px 12px;
  border: 2px solid rgba(49,90,137,.28);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #eef7ff);
  color: #17325f;
  text-align: left;
  box-shadow: 0 3px 0 rgba(49,90,137,.14);
  cursor: pointer;
}

.student-game-console .student-game-screen-gacha .gacha-banner-option.is-active {
  border-color: #17325f;
  background: linear-gradient(180deg, #fff6c7, #dbf7ff);
  box-shadow: 0 4px 0 rgba(23,50,95,.24), inset 0 0 0 2px rgba(255,255,255,.7);
}

.student-game-console .student-game-screen-gacha .gacha-banner-option span,
.student-game-console .student-game-screen-gacha .gacha-banner-option small {
  color: #496b95;
  font-size: .72rem;
  font-weight: 1000;
}

.student-game-console .student-game-screen-gacha .gacha-banner-option strong {
  min-width: 0;
  color: #17325f;
  font-size: .95rem;
  font-weight: 1000;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.student-game-console .student-game-screen-gacha .gacha-banner-option em {
  color: #315a89;
  font-size: .7rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.18;
}

.student-game-console .student-game-screen-gacha .console-pity-track {
  flex: 0 0 auto;
}

.student-game-console .student-game-screen-gacha .gacha-button {
  width: 100%;
  min-height: 58px;
  margin-top: 2px;
  white-space: nowrap;
}

/* Gacha Ten Draw Preview V1: show every result in the reveal preview. */
.gacha-overlay-backdrop.is-ten-draw-reveal {
  padding: 14px;
}

.gacha-overlay-backdrop.is-ten-draw-reveal .gacha-reveal-container {
  width: min(980px, 96vw);
  max-height: min(92dvh, 860px);
  overflow: auto;
}

.gacha-reveal-scene.has-ten-draw-results {
  padding: clamp(18px, 3vw, 30px);
  overflow: visible !important;
}

.gacha-animation-container.is-egg-only-reveal.has-ten-draw-results {
  width: 100%;
  height: auto !important;
  min-height: min(62dvh, 540px);
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.gacha-animation-container.is-egg-only-reveal.has-ten-draw-results .gacha-reveal-card {
  width: min(100%, 860px);
}

.gacha-ten-result-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 12px);
  align-items: stretch;
}

.gacha-ten-result-card {
  position: relative;
  min-width: 0;
  min-height: 152px;
  display: grid;
  grid-template-rows: auto minmax(74px, 1fr) auto auto;
  justify-items: center;
  gap: 5px;
  padding: 10px 8px 9px;
  border: 3px solid #315a89;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 28%, rgba(255,255,255,.94), rgba(255,255,255,0) 46%),
    linear-gradient(180deg, #ffffff, #fff6c7 68%, #dbf7ff);
  box-shadow: 0 5px 0 rgba(23,50,95,.24), 0 14px 20px rgba(23,50,95,.14);
  color: #17325f;
  overflow: hidden;
}

.gacha-ten-result-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.74);
  pointer-events: none;
}

.gacha-ten-result-card.is-legendary {
  border-color: #ffcc00;
  background:
    radial-gradient(circle at 50% 26%, rgba(255,255,255,.98), rgba(255,246,199,.58) 48%, rgba(255,204,0,.22)),
    linear-gradient(180deg, #fff7bf, #ffe066 72%, #bff2ff);
  box-shadow: 0 5px 0 rgba(142,97,0,.34), 0 0 22px rgba(255,204,0,.45);
}

.gacha-ten-result-card.is-duplicate {
  background:
    radial-gradient(circle at 50% 28%, rgba(255,255,255,.92), rgba(255,255,255,0) 48%),
    linear-gradient(180deg, #ffffff, #e8f2ff 68%, #dfffe9);
}

.gacha-ten-result-index {
  justify-self: start;
  position: relative;
  z-index: 1;
  padding: 2px 8px;
  border-radius: 999px;
  background: #17325f;
  color: #fff8d7;
  font-size: .72rem;
  font-weight: 1000;
  line-height: 1.2;
}

.gacha-ten-result-pet {
  position: relative;
  z-index: 1;
  width: min(100%, 86px);
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(23,50,95,.28));
}

.gacha-ten-result-card.is-legendary .gacha-ten-result-pet {
  width: min(100%, 96px);
  height: 88px;
  filter:
    drop-shadow(0 8px 10px rgba(23,50,95,.28))
    drop-shadow(0 0 14px rgba(255,204,0,.62));
}

.gacha-ten-result-card strong,
.gacha-ten-result-card small {
  position: relative;
  z-index: 1;
  max-width: 100%;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gacha-ten-result-card strong {
  color: #17325f;
  font-size: clamp(.8rem, 1.1vw, .95rem);
  font-weight: 1000;
  line-height: 1.12;
  white-space: nowrap;
}

.gacha-ten-result-card small {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(49,90,137,.1);
  color: #315a89;
  font-size: .68rem;
  font-weight: 1000;
  line-height: 1.2;
}

.gacha-ten-result-card.is-legendary small {
  background: rgba(255,204,0,.24);
  color: #8a5a00;
}

@media (max-width: 920px) {
  .student-game-console .student-game-screen-gacha .student-game-stage {
    min-height: auto;
  }

  .student-game-console .student-game-screen-gacha .student-game-panel {
    overflow: auto;
  }

  .student-game-console .student-game-screen-gacha .student-game-panel > .console-page-content {
    height: auto;
    overflow: visible;
  }

  .student-game-console .student-game-screen-gacha .console-gacha-layout {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    overflow: visible;
  }

  .student-game-console .student-game-screen-gacha .console-gacha-machine-img {
    height: clamp(180px, 32dvh, 260px);
  }

  .gacha-ten-result-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .student-game-console .student-game-screen-gacha .console-gacha-stats {
    grid-template-columns: 1fr;
  }

  .student-game-console .student-game-screen-gacha .gacha-button {
    white-space: normal;
  }

  .student-game-console .student-game-screen-gacha .gacha-banner-selector {
    grid-template-columns: 1fr;
  }

  .gacha-animation-container.is-egg-only-reveal.has-ten-draw-results {
    min-height: 620px;
  }

  .gacha-ten-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gacha-ten-result-card {
    min-height: 122px;
    grid-template-rows: auto minmax(54px, 1fr) auto auto;
  }

  .gacha-ten-result-pet,
  .gacha-ten-result-card.is-legendary .gacha-ten-result-pet {
    width: min(100%, 68px);
    height: 62px;
  }
}

/* Responsive Viewport Fit V1: scale and scroll compact game surfaces instead of cropping them. */
.student-game-console {
  --student-game-fit-gap: clamp(6px, 1.05vmin, 10px);
  --student-game-fit-pad: clamp(6px, 1.25vmin, 12px);
  --student-game-fit-radius: clamp(16px, 2.2vmin, 24px);
}

.student-game-console .console-body {
  align-items: start;
  justify-items: center;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
}

.student-game-console .student-game-screen,
.student-game-console .console-page-content.student-game-shell,
.student-game-console .console-page-content.student-lobby-shell {
  width: min(100%, calc(100vw - max(12px, 2vmin)));
}

.student-game-console .student-game-screen {
  gap: var(--student-game-fit-gap);
  padding: var(--student-game-fit-pad);
  border-radius: var(--student-game-fit-radius);
}

.student-game-console .student-game-feature-hud,
.student-game-console .student-game-bottom-dock,
.student-game-console .student-game-global-dock {
  gap: var(--student-game-fit-gap);
  padding: var(--student-game-fit-pad);
}

.student-game-console .student-game-panel {
  padding: clamp(8px, 1.2vmin, 12px);
  border-radius: var(--student-game-fit-radius);
}

@media (max-height: 720px) {
  .student-game-console .console-body {
    align-items: start;
    padding: clamp(4px, 1dvh, 8px);
  }

  .student-game-console .student-game-screen,
  .student-game-console .console-page-content.student-game-shell,
  .student-game-console .console-page-content.student-lobby-shell {
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
  }

  .student-game-console .student-game-screen {
    gap: clamp(6px, 1dvh, 8px);
    padding: clamp(6px, 1.2dvh, 10px);
  }

  .student-game-console .student-game-feature-hud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 6px 8px;
  }

  .student-game-console .student-game-feature-hud .student-lobby-identity {
    grid-column: 1 / -1;
  }

  .student-game-console .student-game-stage {
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
  }

  .student-game-console .student-game-scene-layer {
    height: auto;
    min-height: clamp(240px, 48dvh, 360px);
  }

  .student-game-console .student-game-panel {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .student-game-console .student-game-bottom-dock {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .student-game-console .student-game-bottom-dock-button {
    flex: 0 0 clamp(88px, 18vw, 112px);
    min-height: clamp(34px, 6dvh, 40px);
    padding: 5px 7px;
  }

  .student-game-console .student-game-screen-gacha .student-game-panel {
    overflow: auto;
  }

  .student-game-console .student-game-screen-gacha .student-game-panel > .console-page-content {
    height: auto;
    overflow: visible;
  }

  .student-game-console .student-game-screen-gacha .console-gacha-layout {
    grid-template-columns: minmax(0, 1fr);
    height: auto;
    overflow: visible;
  }

  .student-game-console .student-game-screen-gacha .console-gacha-stage {
    gap: 8px;
    padding: clamp(10px, 2dvh, 14px);
  }

  .student-game-console .student-game-screen-gacha .console-gacha-machine-img {
    height: clamp(140px, 30dvh, 220px);
  }

  .student-game-console .student-game-screen-gacha .console-gacha-stats {
    gap: 8px;
  }

  .student-game-console .student-game-screen-gacha .console-gacha-stats > div {
    min-height: clamp(54px, 10dvh, 66px);
    padding: 8px;
  }

  .student-game-console .student-game-screen-gacha .console-action-panel {
    justify-content: flex-start;
    gap: clamp(8px, 1.5dvh, 12px);
    padding: clamp(12px, 2dvh, 16px);
  }

  .student-game-console .student-game-screen-gacha .console-action-panel h3 {
    font-size: clamp(1.55rem, 5dvh, 2.2rem);
    overflow-wrap: anywhere;
  }

  .student-game-console .student-game-screen-gacha .gacha-button {
    min-height: clamp(42px, 7dvh, 48px);
    white-space: normal;
  }
}

@media (max-width: 520px) {
  .student-game-console .student-game-feature-hud {
    grid-template-columns: 1fr;
  }

  .student-game-console .student-game-screen,
  .student-game-console .console-page-content.student-game-shell,
  .student-game-console .console-page-content.student-lobby-shell {
    width: min(100%, calc(100vw - 10px));
  }

  .student-game-console .student-game-panel,
  .student-game-console .student-game-screen-gacha .student-game-panel {
    padding: 8px;
  }
}

/* Power Readout Fit V1: power numbers must scale down, never ellipsize. */
.student-game-console .console-resource-pills > span {
  overflow: visible !important;
}

.student-game-console .console-resource-copy {
  overflow: visible !important;
  min-width: max-content !important;
}

.student-game-console .console-resource-copy strong {
  max-width: none !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums !important;
  font-size: clamp(.9rem, 1.22vw, 1.18rem) !important;
  letter-spacing: 0 !important;
}

@media (max-width: 860px) {
  .student-game-console .console-resource-copy strong {
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums !important;
    font-size: clamp(.78rem, 2.7vw, 1rem) !important;
    letter-spacing: 0 !important;
  }
}

/* 1280x720 Viewport Fit V2: hidden legacy header must not reserve a grid row. */
.student-game-console {
  grid-template-rows: minmax(0, 1fr) !important;
}

.student-game-console .console-body {
  grid-row: 1 / -1 !important;
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
}

@media (min-width: 861px) {
  .student-game-console .console-page-content.student-lobby-shell {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }

  .student-game-console .student-lobby-shell .student-game-shell-scene {
    height: 100% !important;
    min-height: 0 !important;
  }
}

@media (min-width: 861px) and (max-height: 720px) {
  .student-game-console .student-lobby-shell .student-game-pet-stage .student-lobby-pet-avatar {
    width: min(clamp(260px, 34vw, 430px), calc(100dvh - 230px));
    height: min(clamp(260px, 34vw, 430px), calc(100dvh - 230px));
  }
}

/* Student Feature Screen Fit V1: every non-home tab keeps the same viewport shell. */
@media (min-width: 861px) {
  .student-game-console .console-page-content.student-game-screen {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }

  .student-game-console .student-game-screen .student-game-feature-hud {
    grid-template-columns: minmax(0, 1fr) auto auto auto auto !important;
    align-items: center !important;
  }

  .student-game-console .student-game-screen .student-game-feature-hud .student-lobby-identity {
    grid-column: auto !important;
  }

  .student-game-console .student-game-screen .student-game-stage {
    display: grid !important;
    grid-template-columns: minmax(320px, .95fr) minmax(360px, 1.05fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .student-game-console .student-game-screen-gacha .student-game-stage {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .student-game-console .student-game-screen-gacha .student-game-panel {
    grid-column: 1 / -1 !important;
  }

  .student-game-console .student-game-screen .student-game-scene-layer,
  .student-game-console .student-game-screen .student-game-panel {
    height: 100% !important;
    min-height: 0 !important;
  }

  .student-game-console .student-game-screen .student-game-panel {
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .student-game-console .student-game-screen .student-game-panel > .console-page-content {
    display: grid !important;
    align-content: start !important;
    gap: 12px !important;
    height: auto !important;
    min-height: 100% !important;
    overflow: visible !important;
  }

  .student-game-console .student-game-screen .student-battle-hub-page {
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .student-game-console .student-game-screen .student-battle-panel {
    min-height: 0 !important;
    overflow-y: auto !important;
  }
}

/* Scrollable Game Warehouse V3: compact desktop viewports use page scrolling instead of clipped fixed shells. */
.student-game-console .console-body {
  overflow-x: hidden!important;
  overflow-y: auto!important;
  align-items: start!important;
  justify-items: center!important;
  padding-bottom: max(14px, env(safe-area-inset-bottom))!important;
  scroll-behavior: smooth;
}

.student-game-console .console-body::-webkit-scrollbar,
.student-game-console .student-game-panel::-webkit-scrollbar,
.student-game-console .student-battle-panel::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.student-game-console .console-body::-webkit-scrollbar-thumb,
.student-game-console .student-game-panel::-webkit-scrollbar-thumb,
.student-game-console .student-battle-panel::-webkit-scrollbar-thumb {
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: linear-gradient(180deg, #9bd6ff, #315a89);
}

@media (min-width: 861px) and (max-height: 820px) {
  .student-game-console .console-page-content.student-game-screen {
    grid-template-rows: auto auto auto!important;
    height: auto!important;
    min-height: calc(100dvh - 18px)!important;
    max-height: none!important;
    overflow: visible!important;
  }

  .student-game-console .console-page-content.student-lobby-shell {
    height: auto!important;
    min-height: calc(100dvh - 18px)!important;
    max-height: none!important;
    overflow: visible!important;
  }

  .student-game-console .student-game-screen .student-game-stage {
    grid-template-rows: auto!important;
    height: auto!important;
    min-height: 0!important;
    overflow: visible!important;
  }

  .student-game-console .student-game-screen .student-game-scene-layer {
    height: auto!important;
    min-height: clamp(260px, 52dvh, 380px)!important;
    overflow: hidden!important;
  }

  .student-game-console .student-game-screen .student-game-panel {
    height: auto!important;
    min-height: 0!important;
    max-height: none!important;
    overflow: visible!important;
  }

  .student-game-console .student-game-screen .student-game-panel > .console-page-content {
    min-height: 0!important;
  }

  .student-game-console .student-game-screen .student-battle-hub-page {
    grid-template-rows: auto auto auto!important;
    height: auto!important;
    min-height: 0!important;
    overflow: visible!important;
  }

  .student-game-console .student-game-screen .student-battle-panel {
    max-height: none!important;
    overflow: visible!important;
    padding-bottom: 10px!important;
  }

  .student-game-console .adventure-grid {
    align-items: start!important;
  }

  .student-game-console .student-game-bottom-dock {
    position: sticky!important;
    bottom: 8px!important;
    z-index: 30!important;
  }
}

/* Game Feel Motion V2: subtle stage movement, combat feedback, and responsive button rhythm. */
.student-game-console .student-game-screen {
  animation: student-game-screen-pop .34s cubic-bezier(.18,.92,.26,1.1) both;
}

.student-game-console .student-game-stage {
  position: relative;
}

.student-game-console .student-game-stage::after {
  content: "";
  position: absolute;
  inset: -18% -12%;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 34%, rgba(255,255,255,.18) 48%, transparent 62%);
  mix-blend-mode: screen;
  opacity: .42;
  transform: translateX(-72%);
  animation: student-game-stage-light-sweep 6.4s ease-in-out infinite;
}

.student-game-console .student-game-panel {
  animation: student-game-panel-slide .38s cubic-bezier(.2,.82,.24,1) both;
}

.student-game-console .student-battle-mode-card,
.student-game-console .adventure-card,
.student-game-console .arena-hero-card,
.student-game-console .arena-player-card,
.student-game-console .console-shop-card,
.student-game-console .mission-card,
.student-game-console .console-mission-card {
  animation: student-game-card-rise .42s cubic-bezier(.2,.82,.24,1) both;
}

.student-game-console .student-battle-mode-card:nth-child(2),
.student-game-console .adventure-card:nth-child(2),
.student-game-console .arena-player-card:nth-child(2) {
  animation-delay: .05s;
}

.student-game-console .student-battle-mode-card:nth-child(3),
.student-game-console .arena-player-card:nth-child(3) {
  animation-delay: .1s;
}

.student-game-console .student-battle-mode-card.is-active .student-game-dock-icon {
  animation: student-game-mode-pulse 1.5s ease-in-out infinite;
}

.student-game-console .student-game-bottom-dock-button.is-active .student-game-dock-icon {
  animation: student-game-dock-bounce 1.85s ease-in-out infinite;
}

.student-game-console .boss-stage img {
  transform-origin: center bottom;
  animation: student-game-boss-idle 4.2s ease-in-out infinite;
}

.student-game-console .boss-hp-fill {
  position: relative;
  overflow: hidden;
}

.student-game-console .boss-hp-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.58), transparent);
  transform: translateX(-100%);
  animation: student-game-hp-scan 1.35s linear infinite;
}

.student-game-console .expedition-game-thumbnail {
  position: relative;
  overflow: hidden;
}

.student-game-console .expedition-game-thumbnail::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 12%, rgba(255,255,255,.5), transparent 24%),
    linear-gradient(100deg, transparent 36%, rgba(255,207,79,.2), transparent 56%);
  opacity: .46;
  transform: translateX(-65%);
  animation: student-game-map-glint 4.6s ease-in-out infinite;
}

@keyframes student-game-screen-pop {
  0% { opacity: 0; transform: translateY(10px) scale(.985); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes student-game-panel-slide {
  0% { opacity: 0; transform: translateX(14px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes student-game-stage-light-sweep {
  0%, 52% { transform: translateX(-72%); opacity: 0; }
  62% { opacity: .42; }
  82%, 100% { transform: translateX(72%); opacity: 0; }
}

@keyframes student-game-card-rise {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes student-game-mode-pulse {
  0%, 100% { transform: translateY(0) scale(1); filter: brightness(1); }
  50% { transform: translateY(-2px) scale(1.08); filter: brightness(1.14) saturate(1.12); }
}

@keyframes student-game-dock-bounce {
  0%, 100% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-3px) scale(1.08); }
  60% { transform: translateY(1px) scale(.98); }
}

@keyframes student-game-boss-idle {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 10px 12px rgba(0,0,0,.2)); }
  50% { transform: translateY(-6px) scale(1.015); filter: drop-shadow(0 18px 18px rgba(0,0,0,.24)); }
}

@keyframes student-game-hp-scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes student-game-map-glint {
  0%, 55% { transform: translateX(-65%); opacity: 0; }
  68% { opacity: .52; }
  100% { transform: translateX(65%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .student-game-console .student-game-screen,
  .student-game-console .student-game-stage::after,
  .student-game-console .student-game-panel,
  .student-game-console .student-battle-mode-card,
  .student-game-console .adventure-card,
  .student-game-console .arena-hero-card,
  .student-game-console .arena-player-card,
  .student-game-console .console-shop-card,
  .student-game-console .mission-card,
  .student-game-console .console-mission-card,
  .student-game-console .student-battle-mode-card.is-active .student-game-dock-icon,
  .student-game-console .student-game-bottom-dock-button.is-active .student-game-dock-icon,
  .student-game-console .boss-stage img,
  .student-game-console .boss-hp-fill::after,
  .student-game-console .expedition-game-thumbnail::after {
    animation: none!important;
  }

  /* Disabled motion names: student-game-screen-pop, student-game-stage-light-sweep, student-game-card-rise, student-game-boss-idle. */
}

/* Right rail fit: fill battle and mission content inside the framed console without widening the frame. */
.student-game-console .student-game-screen .student-game-panel > .console-page-content,
.student-game-console .student-game-screen .student-battle-panel > .console-page-content,
.student-game-console .student-game-screen .student-battle-hub-page,
.student-game-console .student-game-screen .mission-console-page {
  width: 100% !important;
  max-width: none !important;
  grid-template-columns: minmax(0, 1fr) !important;
  justify-self: stretch !important;
}

.student-game-console .student-game-screen .student-battle-mode-grid,
.student-game-console .student-game-screen .mission-filter-bar,
.student-game-console .student-game-screen .mission-console-list {
  width: 100% !important;
}

/* One-tap attendance card for the student's classroom landing screen. */
.student-game-console .student-attendance-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 14px clamp(14px, 3vw, 28px) 0;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 18px;
  background: linear-gradient(105deg, rgba(13, 31, 65, .88), rgba(22, 77, 88, .78));
  box-shadow: 0 14px 28px rgba(6, 16, 40, .2), inset 0 1px 0 rgba(255,255,255,.18);
  color: #eef9ff;
  animation: student-game-card-rise .45s ease-out both;
}

.student-game-console .student-attendance-card.is-complete {
  background: linear-gradient(105deg, rgba(22, 83, 69, .9), rgba(31, 117, 91, .74));
}

.student-attendance-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 14px;
  background: rgba(255, 214, 105, .16);
  color: #ffdc79;
  font-size: 1.55rem;
  font-weight: 900;
}

.student-attendance-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.student-attendance-copy span {
  color: #9bd4dc;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.student-attendance-copy strong {
  overflow: hidden;
  color: #fff;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-attendance-copy small {
  color: rgba(238, 249, 255, .76);
  font-size: .78rem;
}

.student-attendance-button {
  min-width: 132px;
  border: 2px solid #ffdc79 !important;
  background: linear-gradient(180deg, #ffeaa5, #f4bd4d) !important;
  color: #163156 !important;
  box-shadow: 0 3px 0 #bd812b, 0 8px 18px rgba(0,0,0,.2) !important;
  font-weight: 900;
}

.student-attendance-button:disabled {
  border-color: rgba(255,255,255,.28) !important;
  background: rgba(255,255,255,.14) !important;
  color: rgba(255,255,255,.76) !important;
  box-shadow: none !important;
}

@media (max-width: 620px) {
  .student-game-console .student-attendance-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .student-attendance-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Teacher game warehouse: lightweight token monitor and QR game launcher. */
.teacher-game-warehouse-page {
  --teacher-game-navy: #17325f;
  --teacher-game-blue: #315a89;
  --teacher-game-sky: #dff5ff;
  --teacher-game-yellow: #ffd052;
  --teacher-game-cream: #fff8df;
}

.teacher-game-warehouse-page .teacher-game-command-center {
  width: min(100%, 1180px);
  padding: clamp(18px, 2.8vw, 30px);
  border-radius: 26px;
  background:
    radial-gradient(circle at 10% 0%, rgba(198, 239, 255, .95), transparent 34%),
    linear-gradient(145deg, #f8fdff 0%, #fff8df 100%);
}

.teacher-game-warehouse-page .teacher-command-center-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin: 0;
}

.teacher-game-warehouse-page .teacher-command-center-head > div:first-child {
  max-width: 760px;
}

.teacher-game-warehouse-page .teacher-command-center-head h3 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.teacher-game-warehouse-page .teacher-command-center-head p {
  font-size: clamp(.88rem, 1.4vw, 1rem);
}

.teacher-game-warehouse-page .teacher-command-quick-actions {
  width: 100%;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.teacher-game-warehouse-page .teacher-command-action {
  min-height: 82px;
  padding: 12px;
  border: 3px solid var(--teacher-game-blue);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #eff9ff);
  box-shadow: 0 5px 0 var(--teacher-game-blue), 0 12px 20px rgba(23, 50, 95, .12);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.teacher-game-warehouse-page .teacher-command-action:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #fffdf4, #e9f8ff);
  box-shadow: 0 7px 0 var(--teacher-game-blue), 0 16px 24px rgba(23, 50, 95, .16);
}

.teacher-game-warehouse-page .teacher-command-action:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--teacher-game-blue), 0 6px 12px rgba(23, 50, 95, .12);
}

.teacher-game-warehouse-page .teacher-command-action:focus-visible,
.teacher-game-warehouse-page .teacher-game-subpage-back:focus-visible,
.student-qr-launch-action:focus-visible,
.student-qr-launch-reload-tokens:focus-visible,
.student-qr-launch-print-all:focus-visible {
  outline: 4px solid #ff9f43;
  outline-offset: 4px;
}

.teacher-game-warehouse-page .teacher-command-action-icon {
  width: 38px;
  height: 38px;
  border: 2px solid rgba(23, 50, 95, .18);
  border-radius: 12px;
  font-size: 1.15rem;
}

.teacher-game-warehouse-page .teacher-command-action strong {
  font-size: clamp(.78rem, 1.2vw, .95rem);
}

.teacher-game-subpage {
  width: min(100%, 1180px);
  display: grid;
  gap: 16px;
  margin: 0 auto;
}

.teacher-game-subpage-back {
  width: max-content;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border: 3px solid var(--teacher-game-blue);
  border-radius: 15px;
  background: #fff;
  color: var(--teacher-game-navy);
  cursor: pointer;
  box-shadow: 0 4px 0 var(--teacher-game-blue);
}

.teacher-game-subpage-back:hover {
  background: var(--teacher-game-sky);
}

.student-qr-launch-shell {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 30px);
  border: 3px solid var(--teacher-game-blue, #315a89);
  border-radius: 26px;
  background:
    radial-gradient(circle at 94% 4%, rgba(255, 208, 82, .5), transparent 24%),
    linear-gradient(145deg, rgba(246, 252, 255, .98), rgba(255, 248, 223, .98));
  box-shadow: 0 8px 0 var(--teacher-game-blue, #315a89), 0 22px 38px rgba(49, 90, 137, .16);
}

.student-qr-launch-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.student-qr-launch-head h3 {
  margin: 4px 0 6px;
  color: var(--teacher-game-navy, #17325f);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.student-qr-launch-head p {
  max-width: 780px;
  margin: 0;
  color: #496b95;
  font-weight: 750;
  line-height: 1.55;
}

.student-qr-launch-head-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.student-qr-launch-head-actions > span {
  padding: 8px 13px;
  border: 2px solid rgba(49, 90, 137, .2);
  border-radius: 999px;
  background: #fff;
  color: var(--teacher-game-navy, #17325f);
  font-size: .82rem;
  font-weight: 950;
}

.student-qr-launch-head-action-stack {
  width: max-content;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.student-qr-launch-reload-tokens,
.student-qr-launch-print-all {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 3px solid var(--teacher-game-navy, #17325f);
  border-radius: 14px;
  color: var(--teacher-game-navy, #17325f);
  cursor: pointer;
  box-shadow: 0 4px 0 var(--teacher-game-navy, #17325f);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.student-qr-launch-reload-tokens {
  background: linear-gradient(180deg, #e9fff8, #bcebdc);
}

.student-qr-launch-print-all {
  background: var(--teacher-game-yellow, #ffd052);
}

.student-qr-launch-reload-tokens:hover:not(:disabled),
.student-qr-launch-print-all:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--teacher-game-navy, #17325f);
}

.student-qr-launch-reload-tokens:active:not(:disabled),
.student-qr-launch-print-all:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--teacher-game-navy, #17325f);
}

.student-qr-launch-reload-tokens:disabled {
  opacity: .62;
  cursor: wait;
  box-shadow: 0 2px 0 var(--teacher-game-navy, #17325f);
}

.student-qr-launch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.student-qr-launch-card {
  min-width: 0;
  min-height: 156px;
  display: grid;
  grid-template-rows: auto auto;
  gap: 12px;
  padding: 14px;
  border: 3px solid var(--teacher-game-blue, #315a89);
  border-radius: 21px;
  background: linear-gradient(150deg, #fff 15%, #eaf8ff 100%);
  color: var(--teacher-game-navy, #17325f);
  text-align: left;
  box-shadow: 0 5px 0 var(--teacher-game-blue, #315a89), 0 13px 22px rgba(23, 50, 95, .12);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.student-qr-launch-card:hover {
  transform: translateY(-2px);
  border-color: var(--teacher-game-navy, #17325f);
  box-shadow: 0 7px 0 var(--teacher-game-blue, #315a89), 0 18px 28px rgba(23, 50, 95, .16);
}

.student-qr-launch-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.student-qr-launch-seat {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 3px solid var(--teacher-game-navy, #17325f);
  border-radius: 17px;
  background: var(--teacher-game-yellow, #ffd052);
  color: var(--teacher-game-navy, #17325f);
  font-size: 1.2rem;
  font-weight: 1000;
  box-shadow: inset 0 -3px rgba(23, 50, 95, .16);
}

.student-qr-launch-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.student-qr-launch-copy strong {
  overflow: hidden;
  font-size: 1rem;
  font-weight: 1000;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-qr-launch-copy small,
.student-qr-launch-token small {
  color: #5c7699;
  font-size: .68rem;
  font-weight: 800;
}

.student-qr-launch-token {
  min-width: 72px;
  display: grid;
  justify-items: end;
  gap: 3px;
  padding: 9px 11px;
  border: 2px solid rgba(217, 164, 0, .26);
  border-radius: 14px;
  background: linear-gradient(180deg, #fff8cf, #ffed98);
}

.student-qr-launch-token strong {
  color: var(--teacher-game-navy, #17325f);
  font-size: 1.25rem;
  font-weight: 1000;
  line-height: 1;
}

.student-qr-launch-token .student-qr-launch-token-placeholder {
  color: #7990ad;
  font-size: 1.1rem;
}

.student-qr-launch-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.student-qr-launch-action {
  min-width: 0;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 11px;
  border: 2px solid var(--teacher-game-blue, #315a89);
  border-radius: 13px;
  color: var(--teacher-game-navy, #17325f);
  cursor: pointer;
  box-shadow: 0 3px 0 var(--teacher-game-blue, #315a89);
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}

.student-qr-launch-action.is-qr {
  background: linear-gradient(180deg, #ffe98c, #ffd052);
}

.student-qr-launch-action.is-game {
  background: linear-gradient(180deg, #e9fbff, #bfeaff);
}

.student-qr-launch-action:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 5px 0 var(--teacher-game-blue, #315a89);
}

.student-qr-launch-action:active {
  transform: translateY(3px);
  box-shadow: 0 0 0 var(--teacher-game-blue, #315a89);
}

.student-qr-launch-action span {
  font-size: 1rem;
  font-weight: 1000;
}

.teacher-game-page-gameSettings .pet-teacher-ops-panel {
  border: 3px solid var(--teacher-game-blue, #315a89);
  border-radius: 24px;
  background:
    radial-gradient(circle at 95% 5%, rgba(255, 208, 82, .24), transparent 28%),
    linear-gradient(145deg, rgba(13, 38, 71, .98), rgba(20, 58, 94, .96));
  box-shadow: 0 7px 0 var(--teacher-game-blue, #315a89), 0 20px 34px rgba(23, 50, 95, .2);
}

.teacher-student-summary-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.teacher-student-summary-token {
  min-width: 96px;
}

@media (max-width: 980px) {
  .teacher-game-warehouse-page .teacher-command-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .teacher-on-demand-load {
    align-items: stretch;
    flex-direction: column;
  }

  .teacher-on-demand-load-button {
    width: 100%;
    min-width: 0;
  }

  .student-qr-launch-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .student-qr-launch-head-actions {
    width: 100%;
    justify-content: space-between;
  }

  .student-qr-launch-head-action-stack {
    width: min(100%, 260px);
  }

  .student-qr-launch-reload-tokens,
  .student-qr-launch-print-all {
    width: 100%;
  }

  .student-qr-launch-grid {
    grid-template-columns: 1fr;
  }

  .teacher-game-warehouse-page .teacher-command-quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .teacher-game-warehouse-page .teacher-command-quick-actions {
    grid-template-columns: 1fr;
  }

  .teacher-game-warehouse-page .teacher-command-action {
    min-height: 64px;
  }

  .student-qr-launch-seat {
    width: 48px;
    height: 48px;
  }

  .student-qr-launch-main {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .student-qr-launch-token {
    grid-column: 1 / -1;
    width: 100%;
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: stretch;
  }

  .student-qr-launch-token strong {
    text-align: right;
  }

  .student-qr-launch-actions {
    grid-template-columns: 1fr;
  }
}
